/* =========================================================
   HABERLER  (ListPages/_Type6.cshtml)
========================================================= */

.hb-section {
    padding: 56px 0 100px;
    background: #fff;
}


/* =========================================================
   ÖNE ÇIKAN HABER
========================================================= */

.hb-featured {
    display: grid;
    grid-template-columns: minmax(0, 808fr) minmax(0, 404fr);
    align-items: center;
    gap: 44px;
    color: inherit;
}

.hb-featured-media {
    display: block;
    height: 454px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(134.25deg, #0A1240 0%, #1B2A7A 58%, #0D5BAE 100%);
}

.hb-featured-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.hb-featured:hover .hb-featured-media img {
    transform: scale(1.03);
}

.hb-featured-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hb-featured-date {
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    color: var(--tg-subtle);
}

.hb-featured-title {
    margin-top: 13px;
    font-family: var(--tg-display);
    font-size: 34px;
    font-weight: 800;
    line-height: 40px;
    letter-spacing: -1.02px;
    color: var(--tg-ink);
    max-width: 386px; /* Figma kırılımı: "yükümlülüğünde" tek satır */
}

.hb-featured-text {
    margin-top: 16px;
    font-size: 17px;
    line-height: 28px;
    color: var(--tg-body);
}

.hb-featured-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    font-size: 15px;
    font-weight: 600;
    line-height: 18px;
    color: var(--tg-blue);
}


/* =========================================================
   KART IZGARASI
========================================================= */

.hb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 20px;
    margin-top: 20px;
}

/* İçerik blokları arası 20px (sahip isteği, 3 Kasım 2026; önceden 56px). */
.hb-featured + .hb-grid {
    margin-top: 20px;
}

.hb-section .tg-container > .hb-grid:first-child {
    margin-top: 0;
}


/* =========================================================
   HABER KARTI (Views/Shared/_HaberKart)
========================================================= */

.hb-card {
    display: flex;
    flex-direction: column;
    color: inherit;
}

.hb-card-media {
    display: block;
    height: 226px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(125.75deg, #0A1240 0%, #1B2A7A 58%, #0D5BAE 100%);
}

.hb-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.hb-card:hover .hb-card-media img {
    transform: scale(1.04);
}

.hb-card-date {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    color: var(--tg-subtle);
}

.hb-card-title {
    margin-top: 16px;
    font-family: var(--tg-display);
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    letter-spacing: -0.4px;
    color: var(--tg-ink);
    transition: color .2s ease;
}

.hb-card:hover .hb-card-title {
    color: var(--tg-navy);
}

.hb-card-text {
    margin-top: 15px;
    font-size: 15px;
    line-height: 25px;
    color: var(--tg-muted);
}


/* =========================================================
   SAYFALAMA
========================================================= */

.hb-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.hb-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--tg-line);
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 18px;
    color: var(--tg-text);
    transition: border-color .2s ease;
}

.hb-page:hover {
    border-color: var(--tg-geyser);
    color: var(--tg-text);
}

.hb-page.active {
    background: var(--tg-navy);
    border-color: var(--tg-navy);
    color: #fff;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {
    .hb-featured {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hb-featured-media {
        height: 360px;
    }

    .hb-featured-title {
        font-size: 28px;
        line-height: 34px;
    }

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

@media (max-width: 767px) {
    .hb-section {
        padding: 40px 0 72px;
    }

    .hb-featured-media {
        height: 240px;
    }

    .hb-featured-title {
        font-size: 24px;
        line-height: 30px;
        letter-spacing: -0.6px;
    }

    .hb-featured-text {
        font-size: 16px;
        line-height: 26px;
    }

    .hb-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 20px;
    }

    .hb-card-media {
        height: 200px;
    }
}
