/*
 * EnFavori Home Hero — single source v2
 * --------------------------------------
 * Masaüstü: 1 büyük + sağda 2 küçük tam-görsel kart.
 * Mobil: yalnız tek büyük kart.
 * Başlık ve meta görselin içindedir; ayrı alt metin bandı yoktur.
 * Geometri CSS yüklenir yüklenmez sabittir; JS yalnız aktif slide değiştirir.
 */

.ef-hero,
.ef-hero * {
    box-sizing: border-box;
}

.ef-hero {
    width: 100%;
    margin: 0 0 18px;
}

.ef-hero-viewport {
    position: relative;
    width: 100%;
    min-height: 430px;
}

.ef-hero-slide {
    width: 100%;
    margin: 0;
}

.ef-hero-slide[hidden] {
    display: none !important;
}

.ef-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 12px;
    width: 100%;
    height: 430px;
    min-height: 430px;
}

.ef-hero-grid.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.ef-hero-side {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    height: 430px;
}

.ef-hero-card {
    position: relative;
    display: block;
    min-width: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #fff;
    background: #dfe8ee;
    border: 1px solid rgba(20, 40, 68, .10);
    border-radius: 14px;
    text-decoration: none;
    isolation: isolate;
    contain: layout paint;
}

.ef-hero-card:hover,
.ef-hero-card:focus {
    color: #fff;
    text-decoration: none;
    outline: none;
}

.ef-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 0;
    transform: none;
    transition: none;
}

.ef-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(5, 17, 31, 0) 42%,
        rgba(5, 17, 31, .22) 62%,
        rgba(5, 17, 31, .78) 100%
    );
    pointer-events: none;
}

.ef-hero-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    width: 100%;
    padding: 24px;
    pointer-events: none;
}

.ef-hero-copy {
    display: block;
    min-width: 0;
}

.ef-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
    color: #5ce0d5;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .34);
}

.ef-hero-meta-dot {
    color: rgba(255, 255, 255, .88);
}

.ef-hero-title {
    display: -webkit-box;
    max-width: 760px;
    overflow: hidden;
    color: #fff;
    font-size: clamp(25px, 2vw, 31px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.025em;
    text-shadow: 0 3px 16px rgba(0, 0, 0, .52);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ef-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 124px;
    height: 38px;
    padding: 0 13px;
    color: #142844;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.ef-hero-cta i {
    color: #13a89d;
    font-size: 10px;
}

.ef-hero-card-side .ef-hero-content {
    display: block;
    padding: 16px;
}

.ef-hero-card-side .ef-hero-meta {
    margin-bottom: 5px;
    font-size: 10px;
}

.ef-hero-card-side .ef-hero-title {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.18;
    -webkit-line-clamp: 2;
}

.ef-hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 48px;
    margin-top: 8px;
}

.ef-hero-nav {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #142844;
    background: #fff;
    border: 1px solid #dce5ec;
    border-radius: 11px;
    box-shadow: 0 4px 14px rgba(20, 40, 68, .07);
    cursor: pointer;
    transform: none;
    transition: none;
}

.ef-hero-nav:focus-visible {
    outline: 3px solid rgba(24, 199, 187, .22);
    outline-offset: 2px;
}

.ef-hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    max-width: min(360px, 62vw);
}

.ef-hero-dot {
    appearance: none;
    width: 7px;
    height: 7px;
    padding: 0;
    background: #cfd8e1;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transform: none;
    transition: none;
}

.ef-hero-dot.is-active {
    width: 20px;
    background: #16b8ad;
}

@media (max-width: 991.98px) {
    .ef-hero-grid {
        grid-template-columns: minmax(0, 1.65fr) minmax(240px, .95fr);
        height: 390px;
        min-height: 390px;
    }

    .ef-hero-side {
        height: 390px;
    }

    .ef-hero-viewport {
        min-height: 390px;
    }

    .ef-hero-content {
        padding: 19px;
    }

    .ef-hero-title {
        font-size: 24px;
    }

    .ef-hero-card-side .ef-hero-content {
        padding: 13px;
    }

    .ef-hero-card-side .ef-hero-title {
        font-size: 15px;
    }
}

@media (max-width: 767.98px) {
    .ef-hero {
        margin-bottom: 14px;
    }

    .ef-hero-viewport {
        min-height: 0;
    }

    .ef-hero-grid,
    .ef-hero-grid.is-single {
        display: block;
        height: auto;
        min-height: 0;
    }

    .ef-hero-side {
        display: none;
    }

    /*
     * Mobilde kartı biraz daha dik tutuyoruz. 16:9 görünüm başlık ve görseli
     * sıkıştırıyordu; 3:2 oran hem görsele hem metne daha fazla nefes alanı verir.
     */
    .ef-hero-card-main {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 3 / 2;
        border-radius: 13px;
    }

    .ef-hero-image {
        object-fit: cover;
        object-position: center center;
    }

    .ef-hero-shade {
        background: linear-gradient(
            180deg,
            rgba(5, 17, 31, 0) 24%,
            rgba(5, 17, 31, .15) 48%,
            rgba(5, 17, 31, .88) 100%
        );
    }

    .ef-hero-content {
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 10px;
        padding: 16px 16px 15px;
    }

    .ef-hero-meta {
        gap: 6px;
        margin-bottom: 7px;
        font-size: 10.5px;
    }

    .ef-hero-title {
        max-width: 100%;
        font-size: clamp(19px, 5.3vw, 23px);
        line-height: 1.14;
        -webkit-line-clamp: 2;
    }

    .ef-hero-cta {
        align-self: end;
        min-width: 42px;
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 50%;
    }

    .ef-hero-cta-text {
        display: none;
    }

    .ef-hero-cta i {
        font-size: 12px;
    }

    .ef-hero-controls {
        gap: 10px;
        min-height: 40px;
        margin-top: 7px;
    }

    .ef-hero-nav {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .ef-hero-dots {
        gap: 4px;
        max-width: 58vw;
    }

    .ef-hero-dot {
        width: 6px;
        height: 6px;
    }

    .ef-hero-dot.is-active {
        width: 17px;
    }
}

@media (max-width: 390px) {
    .ef-hero-card-main {
        aspect-ratio: 3 / 2;
        height: auto;
        min-height: 0;
    }

    .ef-hero-content {
        grid-template-columns: minmax(0, 1fr) 38px;
        gap: 9px;
        padding: 14px 14px 13px;
    }

    .ef-hero-meta {
        margin-bottom: 6px;
        font-size: 9.5px;
    }

    .ef-hero-title {
        font-size: 18px;
        line-height: 1.14;
        -webkit-line-clamp: 2;
    }

    .ef-hero-cta {
        min-width: 38px;
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ef-hero-nav,
    .ef-hero-dot,
    .ef-hero-image {
        transition: none;
        animation: none;
    }
}
