/* --- RESET & TEMEL AYARLAR --- */
:root {
    --primary: #ec407a;       /* Canlı Pembe */
    --primary-dark: #c2185b;
    --secondary: #1e293b;     /* Koyu Lacivert */
    --text-color: #334155;    /* Okunaklı Gri */
    --light-bg: #fff5f8;      
    --white: #ffffff;
    --shadow: 0 10px 30px -10px rgba(236, 64, 122, 0.2);
    --border-radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* --- 1. KAYMAYI ENGELLEYEN KOD (EN ÜSTE) --- */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Flex Yardımcıları */
.flex-between { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* --- HEADER DÜZENLEMELERİ --- */
.top-bar { 
    background: var(--secondary); 
    color: white; 
    padding: 10px 0; 
    font-size: 0.85rem; 
}
.top-bar i { color: var(--primary); margin-right: 5px; }

header {
    background: white;
    padding: 0; 
    height: 90px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header içindeki container'ın sınırını kaldırıp LOGOYU SOLA YASLIYORUZ */
header .container {
    max-width: 100%; 
    padding-left: 40px; 
    padding-right: 40px; 
    width: 100%; 
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
    width: 45px; height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.logo-text h1 { font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--secondary); }
.logo-text span { font-size: 0.75rem; letter-spacing: 1.5px; color: #64748b; font-weight: 600; text-transform: uppercase; }

/* --- NAVİGASYON --- */
.desktop-nav { margin-left: auto; margin-right: 30px; } 
.desktop-nav > ul { display: flex; gap: 25px; align-items: center; }

.desktop-nav > ul > li { position: relative; } 

.desktop-nav a { 
    font-weight: 700; 
    font-size: 0.95rem; 
    color: var(--secondary); 
    padding: 25px 0; 
    display: inline-block;
}
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary); }

/* --- DROPDOWN (AÇILIR MENÜ) --- */
.dropdown {
    position: absolute;
    top: 100%; 
    left: -20px;
    background: white;
    width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0 0 10px 10px;
    border-top: 3px solid var(--primary);
    
    /* Gizleme Efektleri */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: block !important; 
    z-index: 1001;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li { border-bottom: 1px solid #f1f5f9; width: 100%; display: block; }
.dropdown li:last-child { border-bottom: none; }

.dropdown a {
    padding: 15px 20px !important; 
    display: block;
    color: var(--text-color);
    font-weight: 500;
    transition: 0.2s;
}
.dropdown a:hover {
    background: var(--light-bg);
    color: var(--primary);
    padding-left: 25px !important; 
}

/* --- WHATSAPP & MOBİL BUTON --- */
.btn-header {
    background: #25D366;
    color: white !important;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    white-space: nowrap; 
}
.btn-header:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }

.mobile-toggle { 
    display: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    margin-left: 15px;
    color: var(--secondary);
}

/* --- BUTON STİLLERİ (Genel) --- */
.btn-primary { 
    background: var(--primary); 
    color: white; 
    padding: 15px 35px; 
    border-radius: 8px; 
    font-weight: 700; 
    border: none; 
    cursor: pointer; 
    display: inline-block; 
    box-shadow: 0 5px 15px rgba(236, 64, 122, 0.3);
    transition: 0.3s;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-outline { 
    background: transparent; 
    border: 2px solid var(--primary); 
    color: var(--primary); 
    padding: 15px 35px; 
    border-radius: 8px; 
    font-weight: 700; 
    display: inline-block;
    transition: 0.3s;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* --- HERO SECTION (SOLA YASLI) --- */
.hero-wrapper {
    position: relative;
    height: 85vh;
    /* background satırını sildik çünkü artık video var */
    display: flex;
    align-items: center; 
    justify-content: flex-start !important; /* KESİN SOL */
    overflow: hidden; /* Video dışarı taşmasın diye önemli */
}

.back-video {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%; 
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Videonun background-size: cover gibi davranmasını sağlar */
    z-index: -1; /* Videoyu en arkaya atar, yazıların altında kalır */
}

.hero-wrapper .container {
    display: flex;
    justify-content: flex-start !important;
    align-items: center;
    width: 100%;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 35%, rgba(255,255,255,0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px; 
    width: 100%;
    padding-left: 0; 
    text-align: left !important;
    margin-right: auto;
    margin-left: 0;
}

.hero-badge {
    background: rgba(236, 64, 122, 0.1);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 4.5rem; 
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--secondary);
    font-weight: 800;
}

.hero-content p {
    font-size: 1.3rem;
    color: #334155;
    margin-bottom: 35px;
    max-width: 90%; 
    line-height: 1.6;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: flex-start !important;
}

/* --- HİZMETLER --- */
.services-section { padding: 80px 0; background: var(--light-bg); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--secondary); font-weight: 800; margin-bottom: 10px; }
.line { width: 70px; height: 4px; background: var(--primary); margin: 0 auto; border-radius: 2px; }

/* --- HİZMETLER GRID DÜZENİ (2x2) --- */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Kart stilleri */
.service-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: 0.3s; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(236, 64, 122, 0.15); }
.card-img img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 25px; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--secondary); }
.btn-link { color: var(--primary); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }

/* --- STATS BAR (Minimal & Çizgili) --- */
.stats-bar { 
    background: transparent; 
    color: var(--secondary); 
    padding: 40px 0; 
    border-radius: 0; 
    margin-top: 0; 
    position: relative; 
    z-index: 10; 
    box-shadow: none; 
    border-bottom: 2px solid var(--primary); 
}

.stats-bar .flex-between {
    display: flex;
    justify-content: space-around; 
    align-items: center;
    flex-wrap: wrap;
    max-width: 1000px; 
    margin: 0 auto; 
}

.stat-item { 
    text-align: center; 
    flex: 1; 
    min-width: 150px; 
    border-right: none; 
    padding: 20px;
    position: relative; 
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px; 
    height: 2px;
    background: var(--primary);
    opacity: 0.5; 
}

.stat-item h3 { 
    font-size: 2.8rem; 
    font-weight: 800;
    font-variant-numeric: tabular-nums; 
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto; 
    color: var(--primary); 
    margin-bottom: 10px;
}

.stat-item p {
    margin-top: 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase; 
    letter-spacing: 1px;
    color: var(--secondary);
}

/* --- HAKKIMIZDA (KART & ROZET) --- */
.about-section { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.about-img { position: relative; }
.about-img img { 
    border-radius: 20px; 
    width: 100%; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

/* 15 Yıl Rozeti */
.exp-badge {
    position: absolute;
    bottom: 30px; right: -30px; 
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 5px solid var(--primary);
}
.exp-badge h2 { font-size: 3.5rem; color: var(--primary); font-weight: 800; line-height: 1; }
.exp-badge span { font-size: 1.1rem; font-weight: 700; color: var(--secondary); }

.check-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check-list i { color: var(--primary); }

/* --- FOOTER --- */
footer { background: #0f172a; color: #94a3b8; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-widget h4 { color: white; margin-bottom: 20px; font-size: 1.2rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.copyright { text-align: center; border-top: 1px solid #1e293b; padding-top: 20px; font-size: 0.9rem; }

/* --- İLETİŞİM SAYFASI ÖZEL (DÜZELTİLDİ - 3'lü Grid) --- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Tane yan yana */
    gap: 20px;
}

/* İletişim Bilgi Kartları (Küçültüldü) */
.contact-info-card {
    background: white;
    padding: 25px 15px; /* İç boşluk azaldı */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s;
    border: 1px solid #f1f5f9;
}
.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(236, 64, 122, 0.15);
    border-color: var(--primary);
}
.contact-icon {
    width: 50px; height: 50px; /* İkon kutusu küçüldü */
    background: var(--light-bg);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; /* İkon boyutu küçüldü */
    margin: 0 auto 15px;
}

/* İletişim Formu */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}
.form-control:focus {
    border-color: var(--primary);
    outline: none;
    background: #fff5f8;
}
textarea.form-control { resize: none; height: 120px; }

/* Harita */
.map-wrapper {
    height: 100%;
    min-height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.map-wrapper iframe { width: 100%; height: 100%; border: none; }

/* --- HİZMETLERİMİZ SAYFASI ÖZEL (ZIG-ZAG) --- */

.service-detail-section { padding: 100px 0; background: #fff; }
.service-row { display: flex; align-items: center; gap: 60px; margin-bottom: 100px; }
.service-row:nth-child(even) { flex-direction: row-reverse; }
.service-row:last-child { margin-bottom: 0; }

.service-img { flex: 1; position: relative; }
.service-img img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); transition: 0.3s; }
.service-img:hover img { transform: scale(1.02); }

.service-text { flex: 1; }
.service-text h2 { font-size: 2.2rem; margin-bottom: 20px; color: var(--secondary); font-weight: 800; }
.service-text p { color: #64748b; margin-bottom: 20px; font-size: 1.05rem; }

.feature-list { margin-bottom: 30px; }
.feature-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 600; color: var(--secondary); }
.feature-list i { color: var(--primary); background: rgba(236, 64, 122, 0.1); padding: 8px; border-radius: 50%; font-size: 0.9rem; }

/* --- MOBİL UYUM (TÜM SAYFALAR İÇİN) --- */
@media (max-width: 992px) {
    /* Header & Nav */
    header .container { padding-left: 20px; padding-right: 20px; }
    .desktop-nav { display: none; } 
    .mobile-toggle { display: block; } 
    .btn-header span { display: none; } 
    .btn-header { padding: 10px; border-radius: 50%; }

    /* Hero */
    .hero-wrapper { justify-content: center !important; }
    .hero-wrapper .container { justify-content: center !important; }
    .hero-content { text-align: center !important; margin: 0 auto; padding: 0 20px; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-btns { justify-content: center !important; }
    .hero-overlay { background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.4) 100%); }

    /* Stats Bar */
    .stats-bar { padding: 30px 0; }
    .stat-item { margin-bottom: 30px; min-width: 45%; }
    .stat-item::after { bottom: -15px; } 

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .exp-badge { right: 20px; bottom: 20px; padding: 15px; }
    .exp-badge h2 { font-size: 2.5rem; }

    /* İletişim */
    .contact-grid { grid-template-columns: 1fr; } /* Mobilde tek sütun */
    .contact-form-wrapper { padding: 25px; }

    /* Hizmet Detay (Zig-Zag) */
    .service-row, .service-row:nth-child(even) { flex-direction: column; gap: 30px; }
    .service-img, .service-text { width: 100%; }
}
/* --- İLETİŞİM SAYFASI ÖZEL (GENİŞ ARALIKLI) --- */

/* 3'lü Grid Yapısı */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Eşit Sütun */
    gap: 80px; /* ARALIĞI 80px YAPTIM (Bayağı açıldı) */
    margin-bottom: 60px;
}

/* İletişim Bilgi Kartları */
.contact-info-card {
    background: white;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s;
    border: 1px solid #f1f5f9;
    height: 100%; 
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(236, 64, 122, 0.15);
    border-color: var(--primary);
}

.contact-icon {
    width: 70px; height: 70px;
    background: var(--light-bg);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.contact-info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary);
    font-weight: 700;
}

/* Form ve Harita */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 8px; font-weight: 600; color: var(--secondary);
}
.form-control {
    width: 100%; padding: 15px; border: 2px solid #e2e8f0; border-radius: 8px; font-family: 'Manrope', sans-serif; transition: 0.3s;
}
.form-control:focus { border-color: var(--primary); outline: none; background: #fff5f8; }
textarea.form-control { resize: none; height: 120px; }

.map-wrapper {
    height: 100%; min-height: 500px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.map-wrapper iframe { width: 100%; height: 100%; border: none; }

/* Mobil Uyum */
@media (max-width: 992px) {
    .contact-grid { 
        grid-template-columns: 1fr; /* Mobilde alt alta */
        gap: 30px; /* Mobilde çok açılırsa kötü durur, burası 30 kalsın */
    } 
    .contact-form-wrapper { padding: 25px; }
}
/* =========================================
   HERO BÖLÜMÜ DÜZELTME (HEADER ALTINA GİRMESİN)
   ========================================= */

.hero-wrapper {
    position: relative;
    /* Yükseklik ayarı: Mobilde çok kısalmasın diye min-height ekledik */
    min-height: 60vh; 
    background-position: center; 
    background-size: cover; 
    background-repeat: no-repeat;
    display: flex; 
    align-items: center; /* Dikey ortala */
    padding-top: 80px; /* ÖNEMLİ: Header payı kadar aşağı ittik */
}

/* Mobilde header daha küçük olduğu için ayar */
@media (max-width: 992px) {
    .hero-wrapper {
        min-height: 50vh;
        padding-top: 60px; 
    }
    
    .hero-content h1 {
        font-size: 2.5rem; /* Mobilde başlık çok devasa olmasın */
    }
}
/* =========================================
   HİZMET DETAY SAYFALARI (STANDART & KOMPAKT)
   ========================================= */

/* 1. Sayfa Düzeni (Sol Geniş, Sağ Dar) */
.page-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; /* Sol 2, Sağ 1 birim */
    gap: 50px; 
    padding: 60px 0; /* Boşluk azaltıldı */
}

/* 2. Sidebar (Yapışkan Menü) */
.sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    border: 1px solid #f1f5f9;
    position: sticky; 
    top: 110px; /* Header'ın altında kalsın */
    z-index: 90;
}

/* 3. İçerik Görselleri */
.service-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
    height: 350px; /* Resim yüksekliği sabitlendi */
}

/* 4. Vurgulu Kutu */
.highlight-box {
    background: #fff5f8; 
    padding: 20px; 
    border-radius: 8px; 
    border-left: 4px solid var(--primary); 
    margin: 25px 0;
}

/* 5. Hero Bölümü (KOMPAKT VERSİYON) */
/* Bu sınıfı PHP dosyalarındaki section'a ekleyeceğiz */
.hero-wrapper.compact-hero {
    min-height: 35vh; /* Yükseklik kısıldı */
    padding-top: 80px;
    align-items: center;
}

.hero-wrapper.compact-hero .hero-content h1 {
    font-size: 2.2rem; /* Başlık küçüldü */
    margin-bottom: 10px;
}

.hero-wrapper.compact-hero .hero-content p {
    font-size: 1rem; /* Yazı küçüldü */
    max-width: 600px;
}

/* 6. Mobil Uyumluluk */
@media (max-width: 992px) {
    .page-grid { 
        grid-template-columns: 1fr; /* Mobilde tek sütun */
        gap: 40px; 
        padding: 40px 0;
    }
    .sidebar-card { 
        position: relative; top: 0; 
    }
    .hero-wrapper.compact-hero {
        min-height: 30vh;
    }
    .hero-wrapper.compact-hero .hero-content h1 {
        font-size: 1.8rem;
    }
}/* --- MOBİL MENÜ AYARLARI (Buradan Başlıyor) --- */
@media (max-width: 992px) {
    /* Menü açıldığında bu sınıf devreye girecek */
    .desktop-nav.active {
        display: block !important;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px 0;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border-top: 2px solid var(--primary);
        animation: slideDown 0.3s ease forwards;
        z-index: 999;
    }

    /* Linkleri alt alta diz */
    .desktop-nav.active > ul {
        flex-direction: column;
        gap: 0;
    }

    .desktop-nav.active a {
        display: block;
        padding: 15px 30px;
        border-bottom: 1px solid #f1f5f9;
        width: 100%;
    }

    /* Dropdown mobilde gizli kalsın */
    .desktop-nav.active .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: none !important;
    }

} /* <--- İŞTE BU EKSİKTİ! (Media Query Burada Bitiyor) */


/* --- ANIMASYON TANIMI (Media Query'nin DIŞINDA OLMALI) --- */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- GENEL BODY AYARI --- */
body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden; /* Sağa sola kaymayı engeller */
    width: 100%;
}
/* --- MOBİL MENÜ VE DROPDOWN DÜZELTMESİ (EN ALTA) --- */
@media (max-width: 992px) {
    /* Menü Kutusu */
    .desktop-nav.active {
        display: block !important;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: white;
        padding: 0;
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        border-top: 3px solid var(--primary);
        z-index: 9999;
        animation: slideDown 0.3s ease forwards;
    }

    /* Linkler */
    .desktop-nav.active > ul {
        flex-direction: column;
        width: 100%;
        margin: 0;
    }

    .desktop-nav.active > ul > li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }

    .desktop-nav.active a {
        display: block;
        padding: 15px 25px;
        color: var(--secondary);
        font-size: 1rem;
        width: 100%;
    }

    /* --- DROPDOWN (ALT MENÜ) --- */
    /* Başlangıçta gizli */
    .desktop-nav.active .dropdown {
        display: none; 
        position: static; /* Mobilde alta itilsin */
        width: 100%;
        box-shadow: none;
        border: none;
        background: #f8fafc; /* Açık gri zemin */
        padding-left: 20px;
    }

    /* JS 'show' sınıfını ekleyince GÖRÜNÜR OLACAK */
    .desktop-nav.active .dropdown.show {
        display: block !important; /* Kesin açıl */
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }
   
}
 @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* --- KESİN ÇÖZÜM: MOBİL AYARLARI --- */

/* 1. Sağa Sola Kaymayı Önle (En Üst Öncelik) */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 992px) {
    /* Mobil Menü Kutusu */
    .desktop-nav.active {
        display: block !important;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: white;
        padding: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        border-top: 3px solid var(--primary);
        z-index: 9999;
    }

    .desktop-nav.active > ul {
        flex-direction: column;
        width: 100%;
        margin: 0;
    }

    .desktop-nav.active a {
        display: block;
        padding: 15px 25px;
        border-bottom: 1px solid #f1f5f9;
        width: 100%;
        color: var(--secondary);
    }

    /* --- DROPDOWN (ALT MENÜ) --- */
    /* Varsayılan: Gizli */
    .desktop-nav .dropdown {
        display: none; 
        position: static; 
        width: 100%;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        padding-left: 20px;
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    /* JS ile 'show' eklenince: GÖRÜNÜR */
    /* !important kullanarak diğer tüm gizleme kurallarını eziyoruz */
    .desktop-nav .dropdown.show {
        display: block !important; 
    }
}

/* --- SADECE YATILI HASTA BAKICI HERO AYARI --- */
.hero-wrapper.yatili-hero {
    height: 292.67px !important;
    min-height: 292.67px !important;
    background-position: center !important;
    background-size: cover !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important; /* İç boşluğu sıfırladık ki taşmasın */
}

/* Mobilde de aynı kalsın istiyorsan */
@media (max-width: 992px) {
    .hero-wrapper.yatili-hero {
        height: 292.67px !important;
        min-height: 292.67px !important;
    }
}

/* --- HERO RESİM VE BOYUT SORUNU ÇÖZÜMÜ --- */

.hero-wrapper {
    /* 1. Yükseklik Ayarı: Sabit yükseklik (height) YERİNE min-height kullanıyoruz */
    min-height: 55vh; /* Ekranın %55'i kadar yer kaplasın (Mobilde ve PC'de dengeli) */
    
    /* 2. Resim Ayarı: Resim ne olursa olsun kutuya tam otursun */
    background-size: cover !important; 
    background-position: center center !important;
    background-repeat: no-repeat !important;
    
    /* 3. İçerik Hizalama: Yazılar hep ortada kalsın */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start; /* Sola yaslı (İstersen center yap) */
    
    /* 4. Taşma Önlemi: Resim taşmasın */
    position: relative;
    overflow: hidden;
    padding: 60px 0; /* Üstten alttan boşluk ver ki yazılar kenara yapışmasın */
}

/* Mobilde yazıların sığması için özel ayar */
@media (max-width: 992px) {
    .hero-wrapper {
        min-height: 400px; /* Mobilde en az 400px olsun ki yazılar sığsın */
        padding: 80px 0 40px 0; /* Header payı + boşluk */
        text-align: center; /* Mobilde ortalı olsun */
        justify-content: center;
    }
}
/* Mobil Düzenlemeler - Sadece mobilde çalışır */
@media screen and (max-width: 768px) {
    
    /* 1. Kayan yazı ve buton çakışması */
    .slider-content, .hero-section {
        padding-bottom: 50px !important; /* Butonlarla yazı arasına mesafe */
    }
    .marquee-text, .scrolling-text {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }

    /* 2. Hakkımızda görsel ve yazıların kenarlara yapışması */
    .about-section, .hakkimizda-area {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .about-image img {
        width: calc(100% - 10px) !important;
        margin: 0 auto 20px auto !important;
        border-radius: 10px; /* Görselin kenarlarını yumuşatır */
    }

    /* 3. Biz kimiz ve üst görsel arası boşluk */
    .who-we-are {
        margin-top: 30px !important;
        padding: 0 15px !important;
    }
    
    .who-we-are h2, .who-we-are p {
        margin-left: 5px !important; /* Yazıları sola yapışmaktan kurtarır */
    }

    /* 4. Yatılı hasta bakıcı tikli maddelerin hizalanması */
    .service-details-content ul, .care-list {
        padding-left: 10px !important;
        list-style: none !important;
    }

    .service-details-content ul li {
        display: flex !important;
        align-items: flex-start !important;
        margin-bottom: 12px !important;
        text-align: left !important;
        line-height: 1.5 !important;
        gap: 10px !important;
    }

    .service-details-content ul li i {
        margin-top: 5px !important; /* Tik işaretini yazı ortasına değil başına hizalar */
        flex-shrink: 0;
    }
}