﻿
.homeBannerContainer {
    /* Figma: main-campaign 272px = side kolonu (2×128 + 16 gap = 272). Eşit yükseklik. */
    min-height: 272px;
    margin-top: 20px;
}

/* Figma: block-campaign sol kenarı searchbox ile AYNI hizada (container 177px).
   Bootstrap .row negatif margin'i (-15px) banner'ı 15px SOLA taşırıp searchbox
   hizasından kaydırıyordu. Row margin'ini + kolon dış padding'lerini sıfırlayıp
   banner'ı container kenarlarına (=searchbox hizası) oturtuyoruz. */
@media (min-width: 992px) {
    .homeBannerContainer > .row {
        margin-left: 0;
        margin-right: 0;
    }
    .homeBannerContainer > .row > .homeBannerLeft {
        padding-left: 0;
    }
    .homeBannerContainer > .row > .bannerRight {
        padding-right: 0;
    }
}

.homeBannerLeft {
    box-shadow: 0px 8px 25px 0px rgba(64, 193, 197, 0.20);
    border-radius: 16px;
}

.homeBanners {
    width: 100%;
    height: 272px;
    overflow: hidden;
}

.homeBanners .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.homeBanners .swiper-slide picture {
    width: 328px;
    height: 272px;
    position: relative;
    display: block;
}

/* Figma: main-campaign foto kartın sol köşesine SIFIR boşlukla yaslanır.
   Bootstrap .col-md-6 padding'i (0 15px) fotoyu 15px sağa itip kartın sol
   kenarında beyaz şerit bırakıyordu ("arkada kalan beyazlık"). Foto kolonunun
   sol padding'ini sıfırlayıp genişliğini foto (328px) ile eşitliyoruz. */
@media (min-width: 768px) {
    .homeBanners .swiper-slide > .d-flex > .col-md-6:first-child {
        padding-left: 0;
        padding-right: 0;
        flex: 0 0 328px;
        max-width: 328px;
    }
}

.homeBanners .swiper-slide .content {
    height: fit-content;
    margin-top: 55px;
}

.homeBanners .swiper-slide picture img {
    width: auto;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.homeBanners .swiper-slide h3 {
    color: #40C1C5;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.54px;
}

.homeBanners .swiper-slide p {
    color: #424242;
    font-family: "Open Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.homeBanners .swiper-slide a.offer-btn {
    background: linear-gradient(77deg, #F3B84C -4.17%, #FFA011 97.55%);
    box-shadow: 0px 8px 20px 0px rgba(207, 142, 23, 0.30);
    padding: 8px 24px;
    border-radius: 12px;
    box-shadow: 0px 8px 20px 0px rgba(207, 142, 23, 0.30);
    color: #FFF;
    text-align: right;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.42px;
    text-transform: uppercase;
}

.homeBanners .swiper-slide a.offer-btn:hover {
    text-decoration: none;
}

.homeBanners .swiper-pagination-banner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.homeBanners .swiper-pagination-banner {
    z-index: 9;
}

.homeBanners .swiper-pagination-banner .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #D9D9D9 !important;
    border-radius: 50%;
    border: none;
    opacity: 1;
    transition: all 0.3s ease;
    display: block;
    z-index: 99999;
}

/* Figma slider-identificator aktif nokta: cyan halka + iç cyan dolgu.
   Kullanıcı iç dolgu çok küçük dedi → 12px kutu, 2px boşluk, iç 8px cyan dolu
   (halka korunur, dolgu daha belirgin). background-clip:content-box dolguyu
   content kutusuna çeker, border+padding halkayı oluşturur. */
.homeBanners .swiper-pagination-banner .swiper-pagination-bullet-active {
    width: 12px;
    height: 12px;
    padding: 2px;
    border: 0.5px solid #40C1C5;
    background-color: #40C1C5 !important;
    background-clip: content-box;
    box-sizing: border-box;
}

.homeBannerContainer .bannerRight {
    
}

.homeBannerContainer .bannerRight .content {
    background-color: #0D437F;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    margin-left: -10px;
    padding: 28px 20px;
}

.homeBannerContainer .bannerRight img {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.homeBannerContainer .bannerRight .content p {
    color: var(--white, #FFF);
    text-align: right;
    font-family: Montserrat;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    text-align: right
}

.homeBannerContainer .bannerRight .content a {
    border-radius: 8px;
    border: none;
    background: #FFF;
    color: #0D437F;
    text-align: right;
    font-family: Montserrat;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 8px 24px;
    margin-left: 20px;
    transition: all 0.3s ease;
}

.homeBannerContainer .bannerRight .content:hover {
    background-color: #40C1C5;
    transition: background-color 0.3s ease;
}

.homeBannerContainer .bannerRight .content:hover a {
    background: #FFF;
    color: #40C1C5;
}

.homeBannerContainer .bannerRight .row + .row {
    margin-top: 16px !important;
}

.homeBannerContainer .bannerRight .row {
    margin-right: -10px !important;
    /* Figma TWT/fly_elements — side kartlar da main kart gibi cyan gölge + radius (eskiden gölgesizdi) */
    box-shadow: 0px 8px 25px 0px rgba(64, 193, 197, 0.20);
    border-radius: 16px;
    /* Figma: side kart 128px sabit. Eskiden içerik+padding 134px'e itiyordu →
       2×134+16=284 > sol foto 272 → alt hizasızlık + sol kart altında beyaz boşluk.
       128px sabit → 2×128+16=272 = main ile birebir hizalı. */
    height: 128px;
}

.homeBannerContainer .bannerRight .row img {
    height: 128px;
    object-fit: cover;
}

@media(max-width: 767px) {
    .home-banner {
        padding-bottom: 0;
    }

    .homeBanners {
        text-align: center;
        height: 460px;
    }
    .homeBannerContainer {
        height: auto;
    }

    .homeBanners .swiper-pagination-banner {
        display: none;
    }
    .homeBanners .swiper-slide picture {
        margin: 0 auto;
    }

    .homeBanners .swiper-slide {
        padding-bottom: 10px;
    }

    .homeBannerContainer .bannerRight {
        padding-top: 0;
        padding-bottom: 25px;
    }

    .homeBanners .swiper-slide .content {
        height: auto;
        margin-top: 0;
    }

    .homeBanners .swiper-slide .content .offer-btn  {
        margin-bottom: 20px;
    }
}
