﻿/* =====================================================
   HERO SLIDER
===================================================== */

#heroSlider.hero {
    position: relative;
    width: 100%;
    height: clamp(590px, 38vw, 690px);
    overflow: hidden;
    background: #020617;
    isolation: isolate;
}

#heroSlider .hero-slide {
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: var(--pos, 50% 24%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease, visibility .8s ease;
}

    #heroSlider .hero-slide.active {
        z-index: 1;
        opacity: 1;
        visibility: visible;
    }

/*
   Slider 2 ve 3, geniş masaüstünde standart cover ile fazla yakın görünür.
   Alttaki katman alanı doldurur; üstteki net katman görseli geriden gösterir.
   Bu kurallar yalnız masaüstünde çalışır ve mobil kadrajı etkilemez.
*/
@media (min-width: 1101px) {
    #heroSlider .hero-slide-2,
    #heroSlider .hero-slide-3 {
        background-image: none;
    }

    #heroSlider .hero-slide-2::before,
    #heroSlider .hero-slide-3::before,
    #heroSlider .hero-slide-2::after,
    #heroSlider .hero-slide-3::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background-image: var(--hero-image);
        background-repeat: no-repeat;
    }

    #heroSlider .hero-slide-2::before,
    #heroSlider .hero-slide-3::before {
        inset: -22px;
        background-size: cover;
        background-position: 50% 10%;
        filter: blur(18px) brightness(.58) saturate(.88);
        transform: scale(1.035);
    }

    #heroSlider .hero-slide-2::after {
        background-size: 86% auto;
        background-position: var(--pos, 100% 0%);
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3.5%, #000 100%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 3.5%, #000 100%);
    }

    #heroSlider .hero-slide-3::after {
        background-size: 86% auto;
        background-position: var(--pos, 50% 0%);
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
    }
}

#heroSlider .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(2,6,23,.08) 0%, rgba(2,6,23,.18) 43%, rgba(2,6,23,.64) 100%);
}

#heroSlider .hero-content {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: min(590px, 35vw);
    height: 100%;
    margin-left: auto;
    margin-right: clamp(5.5rem, 9vw, 11rem);
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

/* Slider 1: sağdaki koyu ve boş alan. */
#heroSlider .hero-slide-1 .hero-content {
    width: min(560px, 33vw);
    margin-right: clamp(6rem, 10vw, 12rem);
}

/* Slider 2: yüzlerden ayrılan sol güvenli alana yerleşir. */
#heroSlider .hero-slide-2 .hero-overlay {
    background: linear-gradient(90deg, rgba(2,6,23,.78) 0%, rgba(2,6,23,.62) 18%, rgba(2,6,23,.18) 34%, rgba(2,6,23,.03) 58%);
}

#heroSlider .hero-slide-2 .hero-content {
    width: min(390px, 22vw);
    margin-left: clamp(4.75rem, 6vw, 7.5rem);
    margin-right: auto;
    padding: 0;
    transform: translateY(1.5rem);
}

/* Slider 3: kişi ile kitabın arasındaki gerçek boşluk. */
#heroSlider .hero-slide-3 .hero-overlay {
    background: linear-gradient(90deg, rgba(2,6,23,.08) 0%, rgba(2,6,23,.12) 40%, rgba(2,6,23,.58) 51%, rgba(2,6,23,.46) 66%, rgba(2,6,23,.05) 82%);
}

#heroSlider .hero-slide-3 .hero-content {
    width: min(370px, 22vw);
    margin-left: 47%;
    margin-right: auto;
    padding: 0;
}

#heroSlider .hero-label {
    margin-bottom: .7rem;
    color: #d6b25e;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

#heroSlider .hero-title {
    margin: 0 0 1.25rem;
    color: #fff;
    font-size: clamp(2.15rem, 3.35vw, 3.25rem);
    font-weight: 500;
    line-height: 1.14;
    text-wrap: balance;
    text-shadow: 0 3px 18px rgba(0,0,0,.32);
}

#heroSlider .hero-slide-2 .hero-title {
    font-size: clamp(1.9rem, 2.45vw, 2.55rem);
}

#heroSlider .hero-slide-3 .hero-title {
    font-size: clamp(1.85rem, 2.25vw, 2.35rem);
}

#heroSlider .hero-sub {
    max-width: 540px;
    margin: 0 0 1.35rem;
    color: rgba(255,255,255,.92);
    line-height: 1.65;
}

#heroSlider .hero-actions-social {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .35rem;
}

#heroSlider .hero-slide-2 .hero-actions-social {
    flex-direction: column;
    align-items: flex-start;
}

#heroSlider .hero-slide-3 .hero-actions-social {
    flex-wrap: nowrap;
    gap: .6rem;
}

/* Kitap slaydında iki butonu yan yana ve sade tutar. */
#heroSlider .hero-slide-3 .cta-text {
    font-size: 0;
}

#heroSlider .hero-slide-3 .hero-cta-instagram .cta-text::after {
    content: "Instagram";
    font-size: .62rem;
}

#heroSlider .hero-slide-3 .hero-cta-youtube .cta-text::after {
    content: "YouTube";
    font-size: .62rem;
}

    #heroSlider .hero-actions-social .hero-cta {
        min-height: 46px;
        padding: .55rem 1rem .55rem .55rem;
        display: inline-flex;
        align-items: center;
        gap: .62rem;
        border-radius: 999px;
        color: #fff;
        font-size: .64rem;
        font-weight: 600;
        letter-spacing: .09em;
        line-height: 1.2;
        text-decoration: none;
        text-transform: uppercase;
        backdrop-filter: blur(10px);
        transition: transform .25s ease, background .25s ease, border-color .25s ease;
    }

        #heroSlider .hero-actions-social .hero-cta:hover {
            transform: translateY(-2px);
        }

#heroSlider .cta-icon-wrap {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
}

#heroSlider .cta-icon {
    width: 15px;
    height: 15px;
}

#heroSlider .hero-cta-instagram {
    border: 1px solid rgba(255,255,255,.28);
    background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
}

#heroSlider .hero-cta-youtube {
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(0,0,0,.35);
}

#heroSlider .hero-cta-instagram:hover .cta-icon {
    filter: drop-shadow(0 0 6px rgba(214,41,118,.6));
}

#heroSlider .hero-cta-youtube:hover .cta-icon {
    filter: drop-shadow(0 0 6px rgba(255,0,0,.6));
}

#heroSlider .hero-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    padding: 0;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: rgba(0,0,0,.25);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

    #heroSlider .hero-nav:hover {
        background: rgba(0,0,0,.48);
    }

#heroSlider .hero-prev {
    left: 1.5rem;
}

#heroSlider .hero-next {
    right: 1.5rem;
}

    #heroSlider .hero-prev::before, #heroSlider .hero-next::before {
        color: #fff;
        font-size: 32px;
        line-height: 1;
    }

#heroSlider .hero-prev::before {
    content: "‹";
}

#heroSlider .hero-next::before {
    content: "›";
}

@media (max-width: 1100px) and (min-width: 769px) {
    #heroSlider.hero {
        height: clamp(560px, 55vw, 650px);
    }

    #heroSlider .hero-content {
        margin-right: 4.5rem;
    }

    #heroSlider .hero-slide-1 .hero-content {
        width: 39vw;
        margin-right: 4.5rem;
    }

    #heroSlider .hero-slide-2 .hero-overlay,
    #heroSlider .hero-slide-3 .hero-overlay {
        background: linear-gradient(180deg, rgba(2,6,23,.04) 0%, rgba(2,6,23,.14) 44%, rgba(2,6,23,.82) 100%);
    }

    #heroSlider .hero-slide-2 .hero-content,
    #heroSlider .hero-slide-3 .hero-content {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 4.5rem 2.2rem;
        justify-content: flex-end;
        transform: none;
    }

    #heroSlider .hero-slide-2 .hero-title,
    #heroSlider .hero-slide-3 .hero-title {
        max-width: 520px;
    }

    #heroSlider .hero-slide-2 .hero-actions-social,
    #heroSlider .hero-slide-3 .hero-actions-social {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 768px) {
    #heroSlider.hero {
        height: min(780px, 133vw);
        min-height: 590px;
        max-height: none;
    }

    #heroSlider .hero-slide,
    #heroSlider .hero-slide-1,
    #heroSlider .hero-slide-2,
    #heroSlider .hero-slide-3 {
        background-position: var(--pos-m, 50% 35%);
    }

        #heroSlider .hero-overlay,
        #heroSlider .hero-slide-2 .hero-overlay,
        #heroSlider .hero-slide-3 .hero-overlay {
            background: linear-gradient(180deg, rgba(2,6,23,.06) 0%, rgba(2,6,23,.14) 38%, rgba(2,6,23,.50) 65%, rgba(2,6,23,.90) 100%);
        }

        #heroSlider .hero-content,
        #heroSlider .hero-slide-1 .hero-content,
        #heroSlider .hero-slide-2 .hero-content,
        #heroSlider .hero-slide-3 .hero-content {
            width: 100%;
            max-width: none;
            height: 100%;
            margin: 0;
            /* Başlık ve sosyal butonları eğitim kartlarının üstünde tutar. */
            padding: 0 1.35rem 6.5rem;
            justify-content: flex-end;
            transform: none;
        }

    #heroSlider .hero-label {
        margin-bottom: .5rem;
        font-size: .68rem;
        letter-spacing: .15em;
    }

    #heroSlider .hero-title,
    #heroSlider .hero-slide-2 .hero-title,
    #heroSlider .hero-slide-3 .hero-title {
        max-width: calc(100% - 2rem);
        margin-bottom: .8rem;
        font-size: clamp(1.65rem, 7.2vw, 2.2rem);
        line-height: 1.12;
    }

    #heroSlider .hero-sub {
        display: -webkit-box;
        overflow: hidden;
        font-size: .9rem;
        line-height: 1.5;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    #heroSlider .hero-actions-social {
        flex-direction: row;
        align-items: center;
        gap: .5rem;
        margin-top: 0;
    }

        #heroSlider .hero-actions-social .hero-cta {
            min-height: 42px;
            padding: .45rem .68rem .45rem .45rem;
            gap: .45rem;
            font-size: .56rem;
            letter-spacing: .05em;
        }

    #heroSlider .cta-icon-wrap {
        width: 29px;
        height: 29px;
    }

    #heroSlider .cta-icon {
        width: 14px;
        height: 14px;
    }

    #heroSlider .hero-nav {
        top: 42%;
        width: 38px;
        height: 38px;
    }

    #heroSlider .hero-prev {
        left: .7rem;
    }

    #heroSlider .hero-next {
        right: .7rem;
    }

        #heroSlider .hero-prev::before, #heroSlider .hero-next::before {
            font-size: 27px;
        }
}

@media (max-width: 420px) {
    #heroSlider .hero-content,
    #heroSlider .hero-slide-1 .hero-content,
    #heroSlider .hero-slide-2 .hero-content,
    #heroSlider .hero-slide-3 .hero-content {
        padding-right: 1rem;
        padding-bottom: 6rem;
        padding-left: 1rem;
    }

    #heroSlider .hero-actions-social .hero-cta {
        padding-right: .52rem;
        font-size: .51rem;
    }
}
