﻿/* =========================================================
   HERO SLIDER - GENEL
========================================================= */

.hero-carousel {
    width: 100%;
    position: relative;
}

.hero-slide {
    position: relative;
    width: 100%;
    min-height: 620px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Ortak başlık yapısı */
.hero-title-wrapper {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 780px;
    width: 100%;
    padding: 0 16px;
}

.hero-title {
    margin: 0;
    color: #004a8f;
    font-weight: 800;
    font-size: 3.1rem;
    line-height: 1.12;
    opacity: 0;
    transform: translateY(20px);
}

/* Badge görseli */
.hero-badge-img {
    position: absolute;
    top: 30%;
    right: -10px;
    width: 330px;
    height: auto;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
    opacity: 0;
}


/* =========================================================
   ANİMASYONLAR
========================================================= */

.carousel-item.active .hero-title {
    animation: heroTitleIn .7s ease-out forwards .12s;
}

.carousel-item.active .hero-badge-img {
    animation: heroBadgeFadeIn .6s ease-out forwards .2s, heroBadgeBreeze 8s ease-in-out infinite .8s;
}

@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroBadgeFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroBadgeBreeze {
    0% {
        transform: translate3d(0,0,0) rotate(-0.5deg);
    }

    50% {
        transform: translate3d(-6px,-4px,0) rotate(1.2deg);
    }

    100% {
        transform: translate3d(0,0,0) rotate(-0.5deg);
    }
}

/* Slide-1 yaprak animasyonu */
@keyframes yaprakBreeze {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}


/* =========================================================
   VARYANT METİN STİLLERİ (Desktop)
========================================================= */

.hero-title--variant3,
.hero-title--variant4,
.hero-title--variant5,
.hero-title--variant6 {
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 3px 12px rgba(0,0,0,0.35);
}

.hero-title--variant2 {
    color: #fff;
    text-align:left;
}

.hero-title--variant2-desktop {
    display: block;
}

.hero-title--variant2-mobile {
    display: none;
}


.hero-title--variant3 {
    color: #3a4145;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-title--variant4,
.hero-title--variant5,
.hero-title--variant6 {
    color: #fff;
}


/* =========================================================
   OK / CONTROLS
========================================================= */

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.hero-carousel .carousel-control-prev {
    left: 25px;
}

.hero-carousel .carousel-control-next {
    right: 25px;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 52px;
    height: 52px;
    background-size: 24px 24px;
    background-color: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    backdrop-filter: blur(6px);
}

.hero-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-carousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: #ffffff !important;
    border-color: #004a8f !important;
    box-shadow: 0 4px 12px rgba(0,74,143,0.28);
    transform: scale(1.08);
}

/* Sol ok hover → mavi ikon */
.hero-carousel .carousel-control-prev:hover .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23004a8f' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
}

/* Sağ ok hover → mavi ikon */
.hero-carousel .carousel-control-next:hover .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23004a8f' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}
/* =========================================================
   TABLET (1199px)
========================================================= */

@media (max-width: 1199.98px) {

    .hero-slide {
        min-height: 560px;
        background-size: cover;
    }

    .hero-title {
        font-size: 2.7rem;
    }

    .hero-badge-img {
        width: 380px;
        top: 22%;
    }
}


/* =========================================================
   MOBİL ( < 576px )
========================================================= */

@media (max-width: 575.98px) {

    /* --- Tüm mobil slider görüntüleri taşmasın --- */
    .hero-slide {
        min-height: 560px;
        background-size: 100% auto !important; /* TAŞMA YOK */
        background-position: top center !important;
    }

    /* --- Varsayılan tüm başlıklar MAVİ --- */
    .hero-title,
    .hero-title--variant3,
    .hero-title--variant4,
    .hero-title--variant5,
    .hero-title--variant6 {
        font-size: 2rem !important;
        line-height: 1.22 !important;
        text-align: center !important;
       
        color: #004a8f !important; /* DEFAULT MOBILE → MAVİ */
        text-shadow: none !important;
    }

    .hero-title--variant2 {
        font-size: 3rem !important;
        line-height: 1.25 !important;
        text-align:left !important;
        font-weight: 400 !important;
        color: #004a8f !important; /* DEFAULT MOBILE → MAVİ */
        text-shadow: none !important;
    }

    /* ====================================================
       SLIDE 1 - Mobile BG + Yaprak animasyonu
    ==================================================== */
    .hero-slide:not([class*="--variant"]) {
        background-image: url('/images/slide/mobil/slide_1_mobil_bg.png') !important;
    }

        .hero-slide:not([class*="--variant"]) .hero-badge-img {
            display: none;
        }

        .hero-slide:not([class*="--variant"]) .hero-content::after {
            content: '';
            position: absolute;
            top: 190px;
            left: 0;
            right: 0;
            height: 280px;
            background-image: url('/images/slide/mobil/slide_1_mobil_yaprak.png');
            background-size: 100% auto;
            background-repeat: no-repeat;
            animation: yaprakBreeze 5s infinite ease-in-out;
        }


    /* ====================================================
       SLIDE 2 - ONLY MOBILE TITLE VISIBLE + WHITE COLOR
    ==================================================== */
    .hero-slide--variant2 {
        background-image: url('/images/slide/mobil/slide_2_mobil_bg.png') !important;
    }

    .hero-title-wrapper--variant2 {
        display: block !important; /* Mobilde görünür */
    }

    .hero-title--variant2 {
        color: #ffffff !important;
    }


    /* ====================================================
       SLIDE 3
    ==================================================== */
    .hero-slide--variant3 {
        background-image: url('/images/slide/mobil/slide_3_mobil_bg.png') !important;
    }


    /* ====================================================
       SLIDE 4
    ==================================================== */
    .hero-slide--variant4 {
        background-image: url('/images/slide/mobil/slide_4_mobil_bg.png') !important;
    }


    /* ====================================================
       SLIDE 5
    ==================================================== */
    .hero-slide--variant5 {
        background-image: url('/images/slide/mobil/slide_5_mobil_bg.png') !important;
    }


    /* ====================================================
       SLIDE 6 - WHITE TEXT ONLY IN MOBILE
    ==================================================== */
    .hero-slide--variant6 {
        background-image: url('/images/slide/mobil/slide_6_mobil_bg.png') !important;
    }

    .hero-title--variant6 {
        color: #ffffff !important;
    }


    /* Mobil okları küçült */
    .hero-carousel .carousel-control-prev-icon,
    .hero-carousel .carousel-control-next-icon {
        width: 40px;
        height: 40px;
        background-size: 18px 18px;
    }

    .hero-carousel .carousel-control-prev {
        left: 12px;
    }

    .hero-carousel .carousel-control-next {
        right: 12px;
    }

    /* Slide 1: ilk satır bold olsun */
    .hero-slide:not([class*="--variant"]) .hero-title::first-line {
        font-weight: 900;
    }

    /* Slide 2: mobilde sadece mobil başlık görünsün */
    .hero-title--variant2-desktop {
        display: none;
    }

    .hero-title--variant2-mobile {
        display: block;
    }

    /* Slide 2: mobilde metin biraz daha aşağıda ve sola yaslı */
    .hero-title-wrapper--variant2 {
        top: 150px; /* istediğin kadar oynayabilirsin: 70–90 */
        left: 0;
        transform: none;
        max-width: 100%;
        padding: 0 20px;
        text-align: center !important;
    }

    .hero-title--variant2-mobile {
        text-align:center !important;
    }


}

@media (min-width: 576px) {
    .carousel-item .hero-slide--variant6 {
        display: none !important;
    }
}
