/* --- Genel Ayarlar & Reset --- */
body {
    font-family: 'Poppins', sans-serif;
}

/* --- YENİ: Container Daraltma --- */
@media (min-width: 1024px) {
    .container {
        max-width: 960px !important;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1400px !important;
    }
}

/* --- Hero Slider & Animasyonlar --- */
.hero-slide {
    transition: opacity 1s ease-in-out;
}

/* --- MOBİL MENÜ GEÇİŞİ --- */
.mobile-menu-overlay {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    z-index: 9999;
    visibility: hidden;
    position: fixed;
    inset: 0;
    background-color: #1C355E;
    /* Lacivert */
}

.mobile-menu-overlay.open {
    transform: translateX(0);
    visibility: visible;
}

/* --- HEADER SCROLL GÖLGE --- */
#site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* --- HAMBURGER ANİMASYONU --- */
#mobile-menu-btn .hamburger-bar {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    display: block;
    transform-origin: center center;
}

#mobile-menu-btn.open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#mobile-menu-btn.open .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu-btn.open .hamburger-bar:nth-child(3) {
    width: 1.5rem !important;
    transform: translateY(-7px) rotate(-45deg);
}

/* --- SCROLL LOCK (Scrollbar Kayma Önleme) --- */
body.scroll-lock {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}

/* --- NAV LINK AKTİF ALTI ÇİZGİSİ --- */
.nav-link {
    position: relative;
}

.nav-link.active-page::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 2px;
    background-color: #E31E24;
    border-radius: 99px;
}

/* --- SSS (Accordion) Yapısı --- */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-content {
    max-height: 500px;
}

.faq-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* --- Popup (Magnific Popup) Genel --- */
.white-popup {
    position: relative;
    background: #FFF;
    padding: 40px;
    width: auto;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 10px;
}

/* --- WHATSAPP POPUP ÖZEL TASARIMI (GÜNCELLENDİ: Mobil & Masaüstü Aynı) --- */

/* 1. Popup İçeriği Tasarımı */
#whatsapp-branches-modal {
    padding: 0 !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 320px;
    /* Mobilde çok geniş olmasın */
    margin: 0;
    /* Otomatik ortalamayı iptal et */
}

/* Header Kısmı */
#whatsapp-branches-modal .bg-\[\#25D366\] {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 1.25rem;
}

/* Şube Listesi İtemleri */
#whatsapp-branches-modal a {
    transition: all 0.2s ease;
    border: 1px solid #f3f4f6;
    margin-bottom: 0.5rem;
}

#whatsapp-branches-modal a:hover {
    transform: translateX(5px);
    border-color: #25D366;
    background-color: #f0fdf4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* 2. Pozisyonlandırma (Tüm Ekranlar İçin Sağ Alt) */
.mfp-wa-custom .mfp-container {
    padding: 0;
    display: flex;
    align-items: flex-end;
    /* En alta hizala */
    justify-content: flex-end;
    /* En sağa hizala */
}

.mfp-wa-custom .mfp-content {
    width: auto !important;
    margin-right: 24px;
    /* Sağdan boşluk (Buton hizası - right-6 = 1.5rem ~ 24px) */
    margin-bottom: 90px;
    /* Aşağıdan boşluk (Butonun üstü) */
    vertical-align: bottom;
}

/* Animasyon: Aşağıdan yukarı kayarak gel */
.mfp-wa-custom.mfp-ready .mfp-content {
    animation: waSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes waSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 3. Arka Plan Karartma Ayarı */
.mfp-wa-custom.mfp-bg {
    opacity: 0.5;
    /* Hafif karartma */
    background: #000;
}

/* --- Galeri & Görsel Efektleri --- */
.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Şube Kartları Özel Efektleri --- */
.branch-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.branch-card:hover {
    transform: translateY(-10px);
}

.map-container iframe {
    filter: grayscale(0.2);
    transition: filter 0.5s ease;
}

.branch-card:hover .map-container iframe {
    filter: grayscale(0);
}

/* --- Kurumsal Referanslar (Marquee) Alanı --- */
.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.seamless-marquee {
    display: flex;
    width: max-content;
    animation: seamless-scroll 40s linear infinite;
    will-change: transform;
}

@keyframes seamless-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Özel Liste İkonları (Check & Info) --- */
.info-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    list-style: none;
}

.info-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: #1C355E;
    font-size: 1.1rem;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    list-style: none;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: #E31E24;
    font-size: 0.8rem;
}

/* --- Çerez Banner Animasyonu --- */
#cookie-banner {
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #E31E24;
    z-index: 9998;
}

#cookie-banner.hidden {
    display: none !important;
}

#cookie-banner:not(.hidden) {
    animation: slideInUp 0.5s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Yardımcı Classlar --- */
.overflow-hidden {
    overflow: hidden !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

/* --- Başlık Düzenlemeleri --- */
.hero-title,
.branch-title {
    text-transform: capitalize !important;
}

/* --- DROPDOWN TASARIMI (GELİŞMİŞ) --- */
.group:hover .group-hover\:visible {
    visibility: visible;
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* --- ÖZEL BUTONLAR (Yeni Eklendi) --- */
.btn-custom {
    padding: 0.75rem 1.5rem;
    /* px-6 py-3 ile aynı */
    border-radius: 0.75rem;
    /* rounded-xl */
    font-weight: 700;
    /* font-bold */
    font-size: 0.875rem;
    /* text-sm */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    text-transform: capitalize;
    /* Sadece baş harfler büyük */
    white-space: nowrap;
}

/* Kırmızı Buton (Detaylı Bilgi vb.) */
.btn-red {
    background-color: #E31E24;
    color: white;
    border: 1px solid #E31E24;
    box-shadow: 0 4px 6px -1px rgba(227, 30, 36, 0.2);
}

.btn-red:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
}

/* Beyaz Çerçeveli Buton (Slider 2. Buton) */
.btn-outline-white {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
    background-color: white;
    color: #E31E24;
    transform: translateY(-1px);
}

/* Beyaz Dolgulu Buton (Yan Bannerlar için) */
.btn-white {
    background-color: white;
    color: #E31E24;
    border: 1px solid white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    /* Bannerdaki boşluk için */
}

.btn-white:hover {
    background-color: #f9fafb;
    transform: translateY(-1px);
}

/* --- SAYFA ÜST BAŞLIK (PAGE HERO HEADER) TASARIMI --- */
/* Eğitimler, Blog vb. sayfalardaki üst alanı standartlaştırır */

.page-header {
    background-color: #1C355E;
    /* bg-brand-blue */
    color: white;
    padding-top: 4rem;
    /* py-16 */
    padding-bottom: 4rem;
    /* py-16 */
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .page-header {
        padding-top: 5rem;
        /* md:py-20 */
        padding-bottom: 5rem;
        /* md:py-20 */
    }
}

/* Arka Plan Deseni */
.page-header-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* İçerik Container (Z-Index için) */
.page-header-content {
    position: relative;
    z-index: 10;
}

/* Breadcrumb (Navigasyon Linkleri) */
.page-breadcrumb {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 500;
    color: #bfdbfe;
    /* text-blue-200 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* tracking-wider */
}

.page-breadcrumb a {
    transition: color 0.3s;
}

.page-breadcrumb a:hover {
    color: white;
}

.page-breadcrumb .separator {
    margin: 0 0.5rem;
}

/* Ana Başlık (H1) */
.page-title {
    font-size: 2.25rem;
    /* text-4xl */
    font-weight: 700;
    /* font-bold */
    margin-bottom: 1rem;
    text-transform: capitalize;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 3rem;
        /* text-5xl */
    }
}

/* Kırmızı Alt Çizgi */
.page-divider {
    width: 5rem;
    /* w-20 */
    height: 0.375rem;
    /* h-1.5 */
    background-color: #E31E24;
    /* bg-brand-red */
    margin-left: auto;
    margin-right: auto;
    border-radius: 9999px;
}

/* Alt Açıklama Metni (Subtitle) */
.page-subtitle {
    margin-top: 1rem;
    color: #bfdbfe;
    /* text-blue-200 */
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 300;
    /* font-light */
    font-style: italic;
    max-width: 42rem;
    /* max-w-2xl */
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .page-subtitle {
        font-size: 1rem;
        /* text-base */
    }
}

/* --- HEADER BUTON IŞIK SÜZMESİ --- */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(255, 255, 255, 0.45) 50%,
            transparent 80%);
    animation: btn-shimmer-sweep 3s ease-in-out infinite;
    pointer-events: none;
}

.btn-shimmer:hover::after {
    animation-play-state: paused;
}

@keyframes btn-shimmer-sweep {
    0% {
        left: -100%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    40% {
        left: 160%;
        opacity: 1;
    }

    41% {
        opacity: 0;
    }

    100% {
        left: 160%;
        opacity: 0;
    }
}