/**
 * Ana sayfa hero slider — tema renkleri (--primary_color, --secondary_color) ve gövde tipografisi ile uyumlu.
 * Swiper varsayılan z-index:1, section-margin ile yukarı çekilen bölümlerin üstüne binmesini önlemek için
 * .home-page-main içindeki bölümler üstte tutulur.
 */

.home-hero-stack {
    position: relative;
    z-index: 0;
}

/* Slider altı — kurumsal lacivert */
.home-hero-primary-strip {
    position: relative;
    overflow: hidden;
    padding: 2.85rem 1rem 3.1rem;
    color: #fff;
    background: #14348e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Üstte ince vurgu çizgisi */
.home-hero-primary-strip__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.14);
}

.home-hero-lead {
    padding-top: 0.15rem;
}

.home-hero-lead-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    font-size: clamp(1.4rem, 3.4vw, 2.15rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    text-align: left;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.18);
}

.home-hero-lead-title__line {
    display: block;
    text-align: left;
}

.home-hero-lead-title__line:first-child {
    font-weight: 700;
    font-size: 0.92em;
    color: rgba(255, 255, 255, 0.96);
    letter-spacing: 0.02em;
}

.home-hero-lead-title__line--emphasis {
    font-size: 1.05em;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.home-hero-lead-text {
    font-size: clamp(0.9375rem, 1.65vw, 1.07rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
    text-align: left;
}

@media (min-width: 992px) {
    .home-hero-lead-text {
        margin-left: auto;
        max-width: min(34rem, 100%);
        text-align: right;
    }
}

/* Swiper kütüphanesinin üstte kalmasını kır — alt bölümler görünsün */
.home-hero-swiper.swiper {
    z-index: 0 !important;
}

.home-hero-swiper {
    position: relative;
    width: 100%;
    min-height: clamp(420px, 72vh, 680px);
    max-height: 760px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 52%);
    overflow: hidden;
}

.home-hero-swiper .swiper-wrapper,
.home-hero-swiper .swiper-slide {
    min-height: clamp(400px, 68vh, 640px);
    max-height: 720px;
}

/* Pazarla demo tarzı: sol metin, sağ görsel, beyaz zemin */
.home-hero-swiper .swiper-slide {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: transparent;
    box-sizing: border-box;
}

.home-hero-slide__wrap {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 2rem 0 3.25rem;
}

.home-hero-row {
    width: 100%;
}

.home-hero-copy {
    text-align: left;
    padding-right: clamp(0rem, 2vw, 1.5rem);
}

/* Başlık — gövde metin rengi (siyaha yakın) */
.home-hero-swiper .home-hero-title {
    font-size: clamp(1.65rem, 2.8vw + 0.5rem, 2.65rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: rgb(var(--text_color));
}

/* Gövde — ana metin rengi */
.home-hero-swiper .home-hero-text {
    font-size: clamp(0.9375rem, 1.1vw + 0.65rem, 1.0625rem);
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 32rem;
    margin-left: 0;
    margin-right: 0;
    font-weight: 400;
    color: rgba(var(--text_color), 0.88);
}

/* Sağ görsel alanı */
.home-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: clamp(0rem, 2vw, 1rem);
}

.home-hero-visual__frame {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
    overflow: hidden;
    min-height: clamp(220px, 36vw, 380px);
    background-color: #f1f5f9;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 24px 48px -18px rgba(20, 52, 142, 0.18),
        0 12px 28px -12px rgba(15, 23, 42, 0.1);
}

/* Fotoğraf slaytları — çerçeve/gölge yok, tam görünüm */
.home-hero-visual__frame.home-hero-visual--photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0;
    overflow: visible;
    background: none;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.home-hero-visual--photo .home-hero-visual__img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(62vh, 560px);
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* Slayt görseli olmayan — soyut panel (lacivert + vurgu) */
.home-hero-visual--abstract {
    position: relative;
    background: linear-gradient(145deg, #eef2f7 0%, #e2e8f0 100%);
}

.home-hero-visual--abstract::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 85% 70% at 70% 40%,
        rgb(var(--primary_color) / 0.18) 0%,
        transparent 55%
    );
    pointer-events: none;
}

.home-hero-visual--tone-1::after {
    content: '';
    position: absolute;
    width: 55%;
    height: 55%;
    right: 8%;
    bottom: 10%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(var(--secondary_color) / 0.2), rgb(var(--secondary_color) / 0.05));
    pointer-events: none;
}

.home-hero-visual--tone-2::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 45%;
    left: 10%;
    top: 15%;
    border-radius: 50%;
    background: linear-gradient(120deg, rgb(var(--primary_color) / 0.2), transparent);
    pointer-events: none;
}

.home-hero-visual--tone-3::after {
    content: '';
    position: absolute;
    inset: 18%;
    border-radius: 20px;
    border: 2px solid rgb(var(--secondary_color) / 0.12);
    pointer-events: none;
}

.home-hero-swiper .home-hero-pagination.swiper-pagination-bullets {
    bottom: 1.35rem !important;
    z-index: 3;
}

.home-hero-swiper .home-hero-pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: rgba(15, 23, 42, 0.22);
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-hero-swiper .home-hero-pagination .swiper-pagination-bullet-active {
    background: rgb(var(--primary_color));
    transform: scale(1.2);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75),
        0 0 0 3px rgb(var(--primary_color) / 0.28);
}

.home-hero-swiper .home-hero-prev,
.home-hero-swiper .home-hero-next {
    color: rgb(var(--text_color));
    z-index: 3;
    width: 44px;
    height: 44px;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(var(--border_color), 0.95);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-hero-swiper .home-hero-prev::after,
.home-hero-swiper .home-hero-next::after {
    font-size: 1rem;
    font-weight: 700;
}

.home-hero-swiper .home-hero-prev:hover,
.home-hero-swiper .home-hero-next:hover {
    background: rgb(var(--primary_color));
    color: #fff;
    border-color: rgb(var(--primary_color));
}

@media (max-width: 767.98px) {
    .home-hero-swiper .home-hero-prev,
    .home-hero-swiper .home-hero-next {
        display: none;
    }

    .home-hero-slide__wrap {
        padding-top: 1.25rem;
        padding-bottom: 3rem;
    }

    .home-hero-copy {
        padding-right: 0;
        text-align: left;
    }

    .home-hero-visual {
        padding-left: 0;
    }

    .home-hero-visual--photo .home-hero-visual__img {
        max-height: min(48vh, 380px);
    }
}

/* Ana sayfa: slider altındaki bölümler üstte; negatif margin kaldırıldı */
.home-page-main {
    position: relative;
    z-index: 1;
    background: rgb(var(--background_color));
}

.home-page-main > .section {
    position: relative;
    z-index: 2;
}

.home-page-main > .section.section-margin {
    margin-top: 0;
    padding-top: 2.75rem;
}

/* Kategori kartları tema arka planı ile uyumlu */
.home-page-main .home-category {
    background-color: rgb(var(--elements_background_color));
    border: 1px solid rgba(var(--border_color), 0.65);
}

.home-page-main .home-category-title {
    color: rgb(var(--text_color));
}
