/* =====================================================
   MH-108 — 1 BÜYÜK + 2 KÜÇÜK / GÖRSEL ÜSTÜ BAŞLIK
   v1.3 — KÜÇÜK HABER ZEMİN ARALIĞI

   - 1 büyük haber
   - altında 2 küçük haber
   - boş slot görünmez
   - küçüklerden yalnız biri varsa tam genişlik olur
   - üst başlık + başlık görsel üzerindedir
   - sol / orta / sağ hizalama
   - üst / alt dikey konum
   - metin katmanı görselin en fazla %65'ini kullanır
===================================================== */

.muhatap-home-widget.mh-108 {
    width: 100%;
    max-width: 1170px;

    margin: 0 auto;

    padding-left: 18px;
    padding-right: 18px;

    box-sizing: border-box;
}

.muhatap-home-widget.mh-108 * {
    box-sizing: border-box;
}


/* =====================================================
   SATIRLAR
===================================================== */

.mh-108-big-row {
    width: 100%;

    margin: 0 0 18px;
    padding: 0;
}

.mh-108-small-row {
    display: grid;

    width: 100%;

    margin: 0 0 18px;
    padding: 0;

    gap: 18px;
}

.mh-108-small-row.is-double {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
}

.mh-108-small-row.is-single {
    grid-template-columns:
        minmax(0, 1fr);
}


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

.mh-108-item {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.mh-108-card {
    position: relative;

    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    aspect-ratio: 16 / 9;

    background: #111;

    color: inherit;
    text-decoration: none;
}

.mh-108-card:hover {
    color: inherit;
    text-decoration: none;
}


/* =====================================================
   GÖRSEL
===================================================== */

.mh-108-image {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: center;
}


/* =====================================================
   METİN KATMANI
===================================================== */

.mh-108-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    padding: clamp(12px, 2vw, 26px);

    pointer-events: none;
}


/* Dikey konum */

.mh-108-item.is-vertical-top .mh-108-overlay {
    align-items: flex-start;
}

.mh-108-item.is-vertical-bottom .mh-108-overlay {
    align-items: flex-end;
}


/* Yatay konum */

.mh-108-item.is-align-left .mh-108-overlay {
    justify-content: flex-start;
}

.mh-108-item.is-align-center .mh-108-overlay {
    justify-content: center;
}

.mh-108-item.is-align-right .mh-108-overlay {
    justify-content: flex-end;
}


/* =====================================================
   KOPYA ALANI
   Görselin en fazla %65'i
===================================================== */

.mh-108-copy {
    width: fit-content;
    max-width: 65%;

    min-width: 0;

    text-align: left;
}

.mh-108-item.is-align-center .mh-108-copy {
    text-align: center;
}

.mh-108-item.is-align-right .mh-108-copy {
    text-align: right;
}


/* =====================================================
   ÜST BAŞLIK
===================================================== */

.mh-108-kicker-wrap {
    margin: 0 0 5px;
}

.mh-108-kicker {
    display: inline;

    padding: .08em .45em;

    background:
        linear-gradient(
            to bottom,
            transparent 0,
            transparent 1px,
            var(
                --mh108-kicker-bg,
                #ba243f
            ) 1px,
            var(
                --mh108-kicker-bg,
                #ba243f
            ) calc(100% - 1px),
            transparent calc(100% - 1px),
            transparent 100%
        );

    color:
        var(
            --mh108-kicker-color,
            #ffffff
        );

    font-size:
        clamp(
            13px,
            1.45vw,
            22px
        );

    line-height: 1.18;
    font-weight: 700;

    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}


/* =====================================================
   ANA BAŞLIK
   Satır kırıldığında her satır kendi zemin parçasını taşır
===================================================== */

.mh-108-title {
    margin: 0;
    padding: 0;

    max-width: 100%;

    font-size:
        clamp(
            23px,
            3.15vw,
            48px
        );

    line-height: 1.20;
    font-weight: 700;

    color:
        var(
            --mh108-title-color,
            #ffd84d
        );
}

.mh-108-title span {
    display: inline;

    padding: .04em .22em;

    background:
        linear-gradient(
            to bottom,
            transparent 0,
            transparent 3px,
            var(
                --mh108-title-bg,
                #000000
            ) 3px,
            var(
                --mh108-title-bg,
                #000000
            ) calc(100% - 3px),
            transparent calc(100% - 3px),
            transparent 100%
        );

    color:
        inherit;

    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;

    white-space: normal;

    overflow-wrap: break-word;
    word-break: normal;
}


/* =====================================================
   KÜÇÜK KART ÖLÇEĞİ
===================================================== */

.mh-108-small .mh-108-overlay {
    padding:
        clamp(
            10px,
            1.35vw,
            18px
        );
}

.mh-108-small .mh-108-kicker {
    font-size:
        clamp(
            11px,
            1.05vw,
            16px
        );
}

.mh-108-small .mh-108-title {
    font-size:
        clamp(
            18px,
            2vw,
            30px
        );
}

/* =====================================================
   SATIR NEFESİ — TEK REFERANS
   Büyük ve küçük kartlarda zemin blokları birleşmez.
===================================================== */

.mh-108-big .mh-108-title {
    line-height: 1.20;
}

.mh-108-small .mh-108-title {
    line-height: 1.20;
}



/* =====================================================
   ORTALI BAŞLIK
   Ortada çok gereksiz parçalanmayı azalt
===================================================== */

.mh-108-item.is-align-center .mh-108-copy {
    max-width: 65%;
}

.mh-108-item.is-align-center .mh-108-title span,
.mh-108-item.is-align-center .mh-108-kicker {
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}


/* =====================================================
   SAĞ / SOL
   Başlık doğal olarak 2–4 satıra bölünebilir
===================================================== */

.mh-108-item.is-align-left .mh-108-title,
.mh-108-item.is-align-right .mh-108-title {
    max-width: 100%;
}


/* =====================================================
   DAR ALAN
===================================================== */

@media (max-width: 900px) {

    .muhatap-home-widget.mh-108 {
        padding-left: 14px;
        padding-right: 14px;
    }

    .mh-108-big-row {
        margin-bottom: 14px;
    }

    .mh-108-small-row {
        gap: 12px;
        margin-bottom: 14px;
    }

    .mh-108-overlay {
        padding: 14px;
    }

    .mh-108-copy {
        max-width: 65%;
    }

    .mh-108-big .mh-108-kicker {
        font-size: 14px;
    }

    .mh-108-big .mh-108-title {
        font-size: 30px;
    }

    .mh-108-small .mh-108-kicker {
        font-size: 12px;
    }

    .mh-108-small .mh-108-title {
        font-size: 21px;
    }
}


/* =====================================================
   MOBİL
   İKİLİ YAPI KORUNUR
===================================================== */

@media (max-width: 768px) {

    .mh-108-small-row.is-double {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 10px;
    }

    .mh-108-big-row,
    .mh-108-small-row {
        margin-bottom: 12px;
    }

    .mh-108-overlay {
        padding: 11px;
    }

    .mh-108-copy {
        max-width: 65%;
    }

    .mh-108-big .mh-108-kicker {
        font-size: 12px;
        line-height: 1.13;
    }

    .mh-108-big .mh-108-title {
        font-size: 24px;
        line-height: 1.20;
    }

    .mh-108-small .mh-108-overlay {
        padding: 8px;
    }

    .mh-108-small .mh-108-kicker {
        font-size: 9px;
        line-height: 1.13;
    }

    .mh-108-small .mh-108-title {
        font-size: 15px;
        line-height: 1.20;
    }
}


/* =====================================================
   ÇOK DAR MOBİL
===================================================== */

@media (max-width: 480px) {

    .muhatap-home-widget.mh-108 {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mh-108-small-row.is-double {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 8px;
    }

    .mh-108-small-row {
        margin-bottom: 10px;
    }

    .mh-108-overlay {
        padding: 9px;
    }

    .mh-108-copy {
        max-width: 65%;
    }

    .mh-108-big .mh-108-kicker {
        font-size: 10px;
        line-height: 1.13;
    }

    .mh-108-big .mh-108-title {
        font-size: 20px;
        line-height: 1.20;
    }

    .mh-108-small .mh-108-overlay {
        padding: 6px;
    }

    .mh-108-small .mh-108-kicker {
        font-size: 8px;
        line-height: 1.13;
    }

    .mh-108-small .mh-108-title {
        font-size: 12px;
        line-height: 1.20;
    }
}

/* =====================================================
   v1.1 — KÜÇÜK HABER SATIR ARALIĞI
   Büyük haber korunur.
   Küçük haberlerde zemin blokları daha sıkı tutulur.
===================================================== */

.mh-108-small .mh-108-title {
    line-height: 1.12;
}

.mh-108-small .mh-108-title span {
    padding-top: .02em;
    padding-bottom: .02em;

    background:
        linear-gradient(
            to bottom,
            transparent 0,
            transparent 2px,
            var(
                --mh108-title-bg,
                #000000
            ) 2px,
            var(
                --mh108-title-bg,
                #000000
            ) calc(100% - 2px),
            transparent calc(100% - 2px),
            transparent 100%
        );
}

@media (max-width: 768px) {

    .mh-108-small .mh-108-title {
        line-height: 1.10;
    }

    .mh-108-small .mh-108-title span {
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {

    .mh-108-small .mh-108-title {
        line-height: 1.09;
    }
}

