/* =========================================================
   INDEX - HABERLER / BLOG FINAL RESPONSIVE
========================================================= */

:root {
    --news-wrap-max: 1760px;
    --news-side-space: 16px;
    --news-gap-top: 18px;
    --news-bg-start: #02142f;
    --news-bg-end: #031a3d;
    --news-card-radius: 34px;
    --news-card-shadow: 0 20px 60px rgba(2, 12, 32, .18);
    --news-border: 1px solid rgba(255,255,255,.06);
}

.news-area,
.news-area *,
.news-area-no-gap,
.news-area-flush {
    box-sizing: border-box;
}

.news-area,
.news-area-no-gap,
.news-area-flush {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    position: relative;
    overflow: hidden;
}

.news-area-spaced {
    padding-top: var(--news-gap-top) !important;
}

.anasayfa-banner,
.hero-banner,
.banner-area,
.main-banner {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.news-shell {
    width: min(calc(100% - (var(--news-side-space) * 2)), var(--news-wrap-max));
    margin: 0 auto;
    padding: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 30px) clamp(24px, 3vw, 36px);
    background: linear-gradient(180deg, var(--news-bg-start) 0%, var(--news-bg-end) 100%);
    border: var(--news-border);
    border-radius: var(--news-card-radius);
    box-shadow: var(--news-card-shadow);
    position: relative;
    overflow: hidden;
}

.news-shell::before {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(37,99,235,.18), rgba(37,99,235,0) 70%);
    pointer-events: none;
}

.news-shell::after {
    content: "";
    position: absolute;
    left: -180px;
    top: -180px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(59,130,246,.10), rgba(59,130,246,0) 70%);
    pointer-events: none;
}

.news-top {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 8px 0 34px;
}

.news-mini-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 9px 24px;
    border-radius: 999px;
    background: #eef2ff;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    margin: 0 0 20px;
    box-shadow: 0 10px 26px rgba(15,23,42,.08);
}

.news-top h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 3.4vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    color: #ffffff;
}

.news-top p {
    max-width: 920px;
    margin: 0 auto;
    font-size: clamp(15px, 1.15vw, 20px);
    line-height: 1.7;
    color: rgba(255,255,255,.78);
}

.news-grid-modern {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 1.4vw, 24px);
}

.news-card-modern {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 30px rgba(15,23,42,.18);
    transition: transform .28s ease, box-shadow .28s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #0a1b3f;
    min-width: 0;
}

.news-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15,23,42,.26);
}

.news-card-modern-image {
    display: block;
    overflow: hidden;
}

.news-card-modern-image img {
    width: 100%;
    height: clamp(190px, 12vw, 230px);
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.news-card-modern:hover .news-card-modern-image img {
    transform: scale(1.05);
}

.news-card-modern-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.news-card-modern-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.news-card-modern-date {
    font-size: 12px;
    font-weight: 800;
    color: rgba(255,255,255,.78);
}

.news-card-modern-badge {
    min-height: 30px;
    padding: 4px 13px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    background: rgba(37,99,235,.16);
    color: #60a5fa;
    white-space: nowrap;
}

.news-card-modern-title {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 900;
    min-height: 54px;
}

.news-card-modern-title a {
    text-decoration: none;
    color: #ffffff !important;
}

.news-card-modern-desc {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.75;
    flex: 1;
    min-height: 72px;
    color: rgba(255,255,255,.72) !important;
}

.news-card-modern-title,
.news-card-modern-desc {
    overflow-wrap: anywhere;
}

.news-card-modern-footer {
    margin-top: auto;
}

.news-card-modern-link {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(37,99,235,.24);
}

.news-button-wrap {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px 0 0;
}

.more-news-btn {
    min-height: 52px;
    padding: 0 28px;
    border-radius: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(37,99,235,.24);
}

/* RESPONSIVE */
@media (max-width: 1399px) {
    .news-grid-modern {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    :root {
        --news-gap-top: 16px;
    }

    .news-grid-modern {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    :root {
        --news-side-space: 14px;
        --news-gap-top: 14px;
    }

    .news-shell {
        border-radius: 28px;
    }

    .news-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-top {
        padding: 4px 0 26px;
    }
}

@media (max-width: 640px) {
    :root {
        --news-wrap-max: 100%;
        --news-side-space: 0px;
        --news-gap-top: 12px;
    }

    .news-area-spaced {
        padding-top: 12px !important;
    }

    .news-shell {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 18px 0 14px;
        background: linear-gradient(180deg, #031734 0%, #05214a 100%);
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .news-top {
        padding: 0 14px 14px;
        text-align: left;
    }

    .news-mini-title {
        min-height: 32px;
        padding: 6px 12px;
        font-size: 11px;
        margin: 0 0 10px;
        box-shadow: none;
    }

    .news-top h2 {
        font-size: 22px;
        line-height: 1.2;
        margin: 0 0 8px;
    }

    .news-top p {
        font-size: 12px;
        line-height: 1.5;
    }

    .news-grid-modern {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 14px 4px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .news-grid-modern::-webkit-scrollbar {
        display: none;
    }

    .news-card-modern {
        flex: 0 0 calc(100vw - 28px);
        min-width: calc(100vw - 28px);
        max-width: calc(100vw - 28px);
        border-radius: 18px;
        scroll-snap-align: start;
    }

    .news-card-modern-image img {
        height: 215px;
    }

    .news-card-modern-body {
        padding: 16px;
    }

    .news-card-modern-title {
        font-size: 17px;
        min-height: auto;
    }

    .news-card-modern-desc {
        min-height: auto;
    }

    .news-button-wrap {
        padding: 16px 14px 0;
        text-align: left;
    }

    .more-news-btn {
        width: 100%;
        min-height: 44px;
        font-size: 13px;
    }
}