:root {
    --primary-color: #d4af37;
    /* CHANGED FROM BLUE TO GOLD */
    --text-dark: #333333;
    --text-light: #777777;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.7;
    background-color: #fdfdfd;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-color);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-btn {
    cursor: pointer;
    font-weight: 700;
    /* Always bold to prevent shift */
    color: #333333;
    /* Default BLACK (not gray) */
    text-decoration: none;
    margin: 0 5px;
    /* Consistent spacing */
    display: inline-block;
}

.lang-btn.active {
    color: var(--primary-color);
    /* GOLD */
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: var(--white);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.greeting {
    font-size: 24px;
    color: var(--text-light);
    font-weight: 300;
}

.hero-text h1 {
    font-size: 48px;
    margin: 10px 0;
    color: var(--text-dark);
    line-height: 1.2;
}

.specialty {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 20px;
}

.description {
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #008ba3;
}

/* Images */
.hero-image img,
.about-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-image img {
    height: 500px;
    width: auto;
    object-fit: cover;
}

/* Memberships */
.memberships {
    margin: 20px 0;
    padding: 20px;
    background: #f0f8ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.memberships h5 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.memberships ul {
    list-style: none;
}

.memberships li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
}

.memberships li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Resume Section */
.resume {
    padding: 80px 0;
    background: var(--white);
}

.resume-grid {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.resume-col {
    flex: 1;
    min-width: 300px;
}

.resume-col h3 {
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.resume-item {
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
}

.resume-item::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.resume-item .year {
    font-weight: bold;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 5px;
}

.resume-item h4 {
    font-size: 18px;
    color: var(--text-dark);
}

.resume-item p {
    font-weight: 500;
}

.small-desc {
    font-size: 13px;
    color: #888;
    display: block;
    margin-top: 5px;
}

/* Blog */
.blog {
    padding: 80px 0;
    background: var(--bg-light);
}

.blog-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-thumb {
    height: 150px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 40px;
}

.blog-info {
    padding: 20px;
}

.blog-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Service Icons */
.service-item i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.img-placeholder {
    width: 350px;
    height: 400px;
    background: #e0e0e0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: #bdbdbd;
}

/* Services */
.services {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 50px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.service-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-item .num {
    font-size: 40px;
    color: #e0e6ed;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-item h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* About */
.about {
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

.about-text h4 {
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.stat-item i {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    color: #ffffff !important;
}

.footer-col p,
.footer-col a,
.footer-col li,
.footer-col i {
    margin-bottom: 10px;
    color: #d4af37 !important;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #7f8c8d;
    font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .mobile-toggle {
        display: block;
    }

    .hero .container,
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        flex-direction: column-reverse;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .treatments-showcase h2 {
        font-size: 32px;
    }


    .hero-image,
    .about-image {
        margin-bottom: 30px;
    }

    .stats {
        justify-content: center;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    border-radius: 8px;
    padding: 10px 0;
    top: 100%;
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 15px;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Micro-Flip List Items */
.flip-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.flip-li {
    background-color: transparent;
    height: 40px;
    /* Base height for the title */
    perspective: 1000px;
    margin-bottom: 8px;
    cursor: pointer;
}

.flip-li-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-li:hover .flip-li-inner {
    transform: rotateX(180deg);
}

.flip-li-front,
.flip-li-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.flip-li-front {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
}

.flip-li-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateX(180deg);
    font-weight: 400;
    font-size: 0.85rem;
}

/* Premium Services Showcase */
.treatments-showcase {
    padding: 100px 0;
    background-color: #fcfcfc;
    /* Subtle off-white */
}

.treatments-showcase .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.treatments-showcase h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.treatments-showcase p {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.treatment-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Soft diffused shadow */
    text-decoration: none;
    height: 400px;
    transition: transform 0.3s ease;
}

.treatment-card:hover {
    transform: translateY(-5px);
}

.img-holder {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transform: scale(1.0);
    transition: all 0.6s ease-in-out;
}

/* Grayscale Zoom Hover Effect */
.treatment-card:hover .img-holder img {
    filter: grayscale(0%);
    transform: scale(1.15);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: #ffffff;
    z-index: 2;
    pointer-events: none;
}

.card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.read-more {
    display: inline-block;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.treatment-card:hover .read-more {
    color: #d4af37;
    /* Elegant gold accent */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .treatments-grid {
        grid-template-columns: 1fr;
    }

    .treatment-card {
        height: 300px;
    }

    .treatments-showcase h2 {
        font-size: 32px;
    }
}

/* --- PREMIUM HERO SECTION CSS --- */

/* Ümumi Bölmə Ayarları */
.hero-section {
    padding: 80px 0 100px 0;
    /* Üstdən və altdan boşluq */
    background-color: #fcfcfc;
    /* Çox açıq, sınıq ağ fon (Gözü yormur) */
    overflow: hidden;
    /* Daşmaların qarşısını alır */
}

/* Konteyner (Yan-yana düzülüş üçün) */
.hero-container {
    display: flex;
    align-items: center;
    /* Şaquli mərkəzləmə */
    justify-content: space-between;
    /* Aralarında məsafə burax */
    gap: 60px;
    /* İki tərəf arasındakı boşluq */
}

/* SOL TƏRƏF: Mətnlər */
.hero-text-content {
    flex: 1;
    /* Sol tərəf 1 pay yer tutsun */
    max-width: 600px;
}

/* "Qaş" Yazısı (Kiçik qızılı başlıq) */
.gold-eyebrow {
    display: block;
    color: #d4af37;
    /* Bizim əsas Qızılı rəngimiz */
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    /* Hərflər arası geniş boşluq (Premium hava verir) */
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Əsas Böyük Başlıq (H1) */
.hero-text-content h1 {
    font-family: 'Playfair Display', serif;
    /* Jurnal şrifti */
    font-size: 3.8rem;
    /* Çox böyük və iddialı */
    line-height: 1.15;
    /* Sətirlər birbirinə yaxın */
    color: #222;
    /* Tünd qara */
    margin-bottom: 25px;
}

/* Başlıqdakı Qızılı Vurğu */
.highlight-gold {
    color: #d4af37;
    font-style: italic;
    /* Zəriflik üçün əyri yazı */
}

/* Alt Mətn (Paraqraf) */
.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: #666;
    /* Boz rəng */
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Düymələr Qrupu */
.hero-cta-buttons {
    display: flex;
    gap: 20px;
    /* Düymələr arası məsafə */
}

/* Ümumi Düymə Stili */
.btn {
    padding: 16px 40px;
    border-radius: 4px;
    /* Azca yuvarlaq künclər */
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
}

/* Qızılı Əsas Düymə */
.btn-primary-gold {
    background-color: #d4af37;
    color: #fff;
    border: 2px solid #d4af37;
}

.btn-primary-gold:hover {
    background-color: #b5952f;
    /* Üstünə gələndə tündləşir */
    border-color: #b5952f;
    transform: translateY(-3px);
    /* Bir az yuxarı qalxır */
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    /* Qızılı kölgə */
}

/* İkinci (Çərçivəli) Düymə */
.btn-secondary-outline {
    background-color: transparent;
    color: #222;
    border: 2px solid #222;
}

.btn-secondary-outline:hover {
    background-color: #222;
    color: #fff;
    transform: translateY(-3px);
}

/* SAĞ TƏRƏF: Şəkil */
.hero-image-holder {
    flex: 1;
    /* Sağ tərəf 1 pay yer tutsun */
    position: relative;
    display: flex;
    justify-content: flex-end;
    /* Şəkli sağa yasla */
}

/* Şəklin Özü */
.hero-image-holder img {
    width: 100%;
    max-width: 550px;
    /* Şəklin maksimum eni */
    height: auto;
    position: relative;
    z-index: 2;
    /* Dairənin üstündə dursun */
    border-radius: 12px;
    /* Küncləri yumşalt */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    /* Böyük, yumşaq kölgə (Premium hissiyat) */
}

/* Arxa Fondakı Dekorativ Dairə */
.decorative-circle {
    position: absolute;
    top: -10%;
    /* Şəklin biraz yuxarısından başlasın */
    right: -10%;
    /* Şəklin biraz sağından çıxsın */
    width: 60%;
    padding-bottom: 60%;
    /* Kvadrat/Dairə yaratmaq üçün */
    background-color: #f0f0f0;
    /* Çox açıq boz dairə */
    border-radius: 50%;
    z-index: 1;
    /* Şəklin arxasında qalsın */
}

/* MOBİL UYĞUNLUQ (Responzivlik) - HERO */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        /* Mobildə şəkil üstdə, yazı altdan gəlsin */
        text-align: center;
        /* Mətnləri mərkəzlə */
        gap: 40px;
    }

    .hero-image-holder {
        justify-content: center;
        /* Şəkli mərkəzlə */
        width: 100%;
    }

    .hero-image-holder img {
        max-width: 100%;
        /* Mobildə tam ekran olsun */
    }

    .hero-text-content h1 {
        font-size: 2.8rem;
        /* Mobildə başlığı kiçilt */
    }

    .hero-cta-buttons {
        justify-content: center;
        /* Düymələri mərkəzlə */
    }

    .decorative-circle {
        width: 80%;
        padding-bottom: 80%;
        top: 10%;
        right: 10%;
    }
}

/* --- DOCTOR SECTION (PREMIUM BW) --- */
.doctor-section {
    padding: 100px 0;
    background-color: #ffffff;
    /* Təmiz ağ fon (Hero-dan fərqlənsin) */
}

.doctor-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    /* Şəkil və yazı arası məsafə */
}

/* Şəkil Hissəsi */
.doctor-image-wrapper {
    flex: 1;
    max-width: 450px;
    position: relative;
}

.doctor-image-wrapper img {
    width: 100%;
    border-radius: 5px;
    filter: grayscale(100%);
    /* Şəkli tam ağ-qara edir (əgər rənglidirsə) */
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
}

/* Üstünə gələndə azca rənglənə bilər */
.doctor-image-wrapper:hover img {
    filter: grayscale(20%);
}

/* Şəklin Arxasındakı Qızılı Çərçivə */
.image-border {
    position: absolute;
    top: 20px;
    left: -20px;
    /* Sol tərəfə çıxır */
    width: 100%;
    height: 100%;
    border: 2px solid #d4af37;
    /* Qızılı rəng */
    z-index: 1;
    border-radius: 5px;
}

/* Yazı Hissəsi */
.doctor-text-content {
    flex: 1;
    max-width: 600px;
}

.doctor-text-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: #222;
}

.doctor-text-content p {
    font-family: 'Inter', sans-serif;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Statistika (10 il təcrübə və s.) */
.doctor-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.credential-item {
    display: flex;
    flex-direction: column;
}

.credential-item .count {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #d4af37;
    font-weight: 700;
}

.credential-item .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

/* Link */
.btn-text-gold {
    color: #222;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.btn-text-gold:hover {
    color: #d4af37;
}

/* Mobil Uyğunluq - DOCTOR */
@media (max-width: 992px) {
    .doctor-container {
        flex-direction: column;
        /* Mobildə alt-alta */
        text-align: center;
    }

    .image-border {
        left: 10px;
        /* Mobildə çərçivəni mərkəzlə */
        top: 10px;
    }

    /* --- RE-BRANDING CSS (PREMIUM) --- */

    .navbar-brand {
        font-family: 'Playfair Display', serif;
        /* O premium şrift */
        font-size: 1.5rem;
        font-weight: 700;
        color: #222;
        /* Qara */
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .navbar-brand:hover {
        color: #d4af37;
        /* Üstünə gələndə Qızılı olsun */
    }

    /* --- KÖHNƏ GÖY RƏNGLƏRİ ÖLDÜRƏN KOD (RE-BRANDING) --- */

    /* 1. Global Overrides */
    h2,
    h3,
    h4,
    .resume-col h3 {
        color: #222 !important;
        /* Göy yox, Qara olsun */
        font-family: 'Playfair Display', serif !important;
    }

    /* 2. Timeline Dots & Decoration */
    .resume-item::before {
        background-color: #d4af37 !important;
        /* QIZILI DOT */
    }

    .resume-item {
        border-left-color: #d4af37 !important;
        /* QIZILI LINE */
    }

    .memberships {
        border-left-color: #d4af37 !important;
    }

    .memberships li::before {
        color: #d4af37 !important;
    }

    .service-item i,
    .stat-item i,
    .logo i {
        color: #d4af37 !important;
    }

    /* 3. Dates & Years */
    .year {
        color: #d4af37 !important;
        /* QIZILI */
        font-weight: 700;
        font-family: 'Playfair Display', serif;
    }

    /* 4. Text & Roles */
    .resume-item p {
        color: #222 !important;
        /* Role title black */
        font-weight: 600;
    }

    .memberships h5 {
        color: #d4af37 !important;
    }

    /* 5. Links */
    a {
        color: #d4af37;
        transition: color 0.3s ease;
    }

    a:hover {
        color: #bfa15f;
    }

    /* 6. Buttons */
    .lang-btn.active {
        color: #d4af37 !important;
    }

    .btn-primary {
        background: #d4af37 !important;
        color: #ffffff !important;
        /* Text visible */
    }

    .btn-primary:hover {
        background: #b5952f !important;
    }

    .doctor-credentials {
        justify-content: center;
    }

    .doctor-credentials {
        justify-content: center;
    }
}

/* --- TƏHSİL VƏ TƏCRÜBƏ BÖLMƏSİ (TAM DÜZƏLİŞ) --- */

/* 1. Əsas Bölmə Başlıqları */
section h2,
h2.mb-5,
.section-title {
    color: #d4af37 !important;
    /* QIZILI */
    font-family: 'Playfair Display', serif !important;
    text-transform: capitalize !important;
}

/* 2. İxtisas Adları */
.text-primary,
h3.text-primary,
.subheading {
    color: #d4af37 !important;
    font-family: 'Playfair Display', serif !important;
    font-weight: 600 !important;
}

/* 3. Nöqtələr (Timeline Dots) */
.timeline li::before,
.resume-item::before,
.bullet {
    background-color: #d4af37 !important;
    border: 2px solid #d4af37 !important;
}

/* 4. Tarixlər */
.date,
.text-md-right,
.resume-date {
    color: #222 !important;
    font-weight: 700 !important;
    font-family: 'Playfair Display', serif !important;
}

/* 5. Universitet Adları */
h3.mb-0,
.resume-item h3 {
    color: #000 !important;
    font-weight: 700 !important;
}

/* 6. Linklər - DIQQƏT: Buttonları pozmamaq üçün :not(.btn) istifadə edirik */
a:not(.btn) {
    color: #d4af37 !important;
}

a:not(.btn):hover {
    color: #bfa15f !important;
}

/* 7. DÜYMƏLƏR ÜÇÜN XÜSUSİ DÜZƏLİŞ (MÜTLƏQ AĞ OLSUN) */
.btn-primary-gold,
.btn-primary,
a.btn-primary-gold,
a.btn-primary,
.hero-cta-buttons a.btn-primary-gold {
    /* Extra Specificity */
    color: #ffffff !important;
    /* Mətn ağ */
    background-color: #d4af37 !important;
    /* Fon qızılı */
    border-color: #d4af37 !important;
    text-shadow: none !important;
}

.btn-primary-gold:hover,
.btn-primary:hover,
a.btn-primary-gold:hover {
    background-color: #b5952f !important;
    color: #ffffff !important;
}

.btn-secondary-outline {
    color: #222 !important;
    border-color: #222 !important;
}

.btn-secondary-outline:hover {
    color: #fff !important;
    /* Fixed typo */
    background-color: #222 !important;
}

/* 8. Logo Düzəlişi - Absolute Positioning ilə Header-i kiçik saxlayırıq */
/* YALNIZ PC ÜÇÜN (992px-dən böyük) - Mobildə buna toxunmuruq! */
@media (min-width: 992px) {
    .logo {
        position: relative;
        z-index: 1100;
        width: 250px;
        /* Logo üçün fixed yer */
    }

    .logo img {
        position: absolute;
        top: -40px;
        left: -220px;
        /* Daha 50px sola (Toplam -220px) */
        max-height: 220px !important;
        width: auto !important;
        display: block !important;
        z-index: 1100;
    }

    .header {
        height: 90px !important;
        /* Standart hündürlük */
        padding: 0 !important;
    }
}

/* MOBIL DEFAULT HALINI QORUYUR - MÜDAXİLƏ ETMƏ */

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* 9. Layout Fix for Nav and Lang Switch */
.nav-menu {
    position: absolute;
    /* Flex-dən çıxarıb zorla ortaya qoyuruq */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    z-index: 1000;
}

.nav-menu ul li a {
    font-weight: 700 !important;
    /* Bold olsun */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
    /* Menu üzərində qalsın */
}

/* 9. Bullet Points */
ul li::marker {
    color: #d4af37 !important;
}

/* 10. Blog Page Overrides */
.blog-thumb i {
    color: #ffffff !important;
    /* Qızılı fon üzərində ağ rəng */
    background-color: transparent !important;
}

.read-more {
    color: #d4af37 !important;
    font-weight: 600 !important;
}

.read-more:hover {
    color: #b5952f !important;
}

.page-header {
    background: #f9f9f9 !important;
    /* Bej/boz fon */
}

.page-header h1 {
    color: #333 !important;
    font-family: 'Playfair Display', serif !important;
}

/* 11. Home Page Hierarchy Fix */
h2 .highlight-gold {
    font-size: 0.7em !important;
    /* Əsas başlıqdan kiçik olsun */
    display: block;
    /* Yeni sətir effekti */
    margin-top: 5px;
}

/* 12. Image Zoom Effect (Refactored) */
.zoom-mask {
    overflow: hidden;
    /* Şəkil böyüyəndə qırağa çıxmasın */
    border-radius: inherit;
    /* Mövcud radiusu qoruyaq */
    display: block;
    position: relative;
    z-index: 2;
    /* Dekorasiyaların üstündə (və ya altında) olması üçün */
    width: 100%;
    height: 100%;
}

.zoom-mask img {
    transition: transform 0.5s ease;
    /* Hamar keçid */
    will-change: transform;
    /* Performans üçün */
    width: 100%;
    /* Container-i doldursun */
    display: block;
}

/* Hover-i parent elementdən tuturuq */
.hero-image-holder:hover .zoom-mask img,
.doctor-image-wrapper:hover .zoom-mask img {
    transform: scale(1.05);
    /* Yüngül zoom */
}


/* --- MASTER SERVICE TEMPLATE (GOLD/BLACK/WHITE) --- */

/* Global Master Overrides */
.master-page h1,
.master-page h2,
.master-page h3,
.master-page h4 {
    font-family: 'Playfair Display', serif !important;
    color: #222 !important;
}

.master-page p,
.master-page li {
    font-family: 'Inter', sans-serif !important;
    color: #555 !important;
}

/* 1. Master Page Header (Sub-Hero) */
.page-header-master {
    position: relative;
    height: 400px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0 !important;
    /* Reset default styling */
    padding: 0 !important;
}

.page-header-master::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark Overlay */
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.page-header-content h1 {
    font-size: 3.5rem;
    color: #fff !important;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.page-header-content .hero-subtitle {
    color: #ffffff !important;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
}

.breadcrumb-master {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #d4af37 !important;
    /* Gold for visibility */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.breadcrumb-master a {
    color: #fff !important;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-master a:hover {
    color: #d4af37 !important;
}

/* 2. Intro Section (Split) */
.intro-master {
    padding: 100px 0;
}

.intro-master .gold-line {
    width: 60px;
    height: 3px;
    background-color: #d4af37;
    margin-bottom: 20px;
}

.intro-master h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.intro-master p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.intro-master img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 3. Process Section (Timeline) */
.process-master {
    padding: 100px 0;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step .step-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #d4af37;
    opacity: 0.3;
    font-weight: 700;
    margin-bottom: -15px;
    display: block;
    position: relative;
    z-index: 1;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    background: #fff;
    /* To cover the number if needed */
    display: inline-block;
    padding: 0 10px;
}

.process-step p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.process-step::after {
    /* Connecting Line */
    content: "";
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    z-index: 0;
}

.process-step:last-child::after {
    display: none;
}

/* NUCLEAR FOOTER OVERRIDES - HIGH SPECIFICITY */
body .footer .container .footer-col h3,
html body .footer .footer-col h3 {
    color: #ffffff !important;
}

body .footer .container .footer-col p,
body .footer .container .footer-col a,
body .footer .container .footer-col li,
body .footer .container .footer-col i,
body .footer .container .footer-col span,
html body .footer .footer-col p,
html body .footer .footer-col a {
    color: #d4af37 !important;
    text-decoration: none !important;
}

/* 4. Why Choose Us (Benefits) */
.benefits-master {
    padding: 100px 0;
    background-color: #fcfcfc;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background: #fff;
    padding: 40px 30px;
    border: 1px solid #eee;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    margin-top: 10px;
}

/* 5. Master Gallery */
.gallery-master {
    padding: 100px 0;
}

.gallery-grid-master {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns for Wide Images */
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-placeholder {
    height: 350px;
    /* Taller for better view */
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.gallery-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show full image, no crop */
    transition: transform 0.5s;
}

.gallery-placeholder:hover img {
    transform: scale(1.1);
}

/* 6. FAQ Accordion */
.faq-master {
    padding: 100px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    background: #fff;
    padding: 25px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #222;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: #d4af37;
}

.accordion-header i {
    color: #d4af37;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #555;
    line-height: 1.7;
}

.accordion-item.active .accordion-body {
    max-height: 200px;
    /* Adjust as needed */
    padding-bottom: 25px;
}

.accordion-item.active .accordion-header i {
    transform: rotate(45deg);
    /* To make it X */
}

/* 7. CTA Section */
.cta-master {
    padding: 100px 0;
    background: #222;
    /* Pure Black for contrast */
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-master h2 {
    color: #fff !important;
    font-size: 2.8rem;
    margin-bottom: 30px;
}

.cta-master p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    background: #fff;
    color: #b5952f;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #d4af37;
}

/* 2. Intro Section (Split Layout) */
.section-intro {
    padding: 100px 0;
}

.intro-grid {
    display: flex;
    align-items: center;
    gap: 60px;
}

.intro-text {
    flex: 1;
}

.intro-img {
    flex: 1;
    position: relative;
}

.intro-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* 3. Process Section (Vertical Timeline) */
.process-section {
    background: #fbfbfb;
    padding: 100px 0;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
    border-top: 3px solid #d4af37;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-icon {
    font-size: 40px;
    color: #d4af37;
    margin-bottom: 20px;
}

.step-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* 4. Gallery Grid */
.gallery-section {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    height: 300px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* 5. FAQ Accordion */
.faq-section {
    padding: 100px 0;
    background: #fcfcfc;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #222;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-question i {
    color: #d4af37;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: all 0.3s ease;
    color: #555;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
    /* Kifayət qədər hündürlük */
    border-top: 1px solid #eee;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    /* Plyusu çarpaz et */
}

/* Map placeholder if needed */
.footer-map {
    width: 100%;
    height: 350px;
    background: #222;
    margin-bottom: 50px;
    border: 1px solid #333;
}

/* --- GLOBAL MOBILE OPTIMIZATION (max-width: 768px) --- */
@media (max-width: 768px) {

    /* Container Padding */
    .container {
        padding: 0 20px;
    }

    /* Section Padding Reduced */
    .hero,
    .resume,
    .blog,
    .services,
    .about,
    .intro-master,
    .process-master,
    .benefits-master,
    .gallery-master,
    .faq-master,
    .section-intro,
    .process-section,
    .gallery-section,
    .faq-section {
        padding: 50px 0 !important;
    }

    /* Hero Titles */
    .hero-text h1,
    .master-page h1,
    .page-header-content h1,
    .banner-content h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .hero-text h1 {
        font-size: 32px !important;
    }

    /* Grids to Column */
    .resume-grid,
    .about-content,
    .hero .container,
    .footer .container,
    .intro-grid {
        flex-direction: column !important;
        gap: 30px !important;
    }

    /* Manual Grid overrides */
    .seo-grid {
        grid-template-columns: 1fr !important;
    }

    .blog-grid {
        justify-content: center;
    }

    /* Footer adjustments */
    .footer-col {
        width: 100%;
        text-align: center;
        min-width: auto !important;
    }

    /* Images */
    .hero-image img,
    .about-image img,
    .intro-img img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }

    /* Fix Master Header Height - Auto to fit text */
    .page-header-master {
        height: auto !important;
        min-height: 300px !important;
        padding: 60px 0 !important;
    }

    /* Process Steps on Master */
    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    /* Hide decorative lines on mobile */
    .process-step::after {
        display: none;
    }

    /* Font size adjustments */
    h2 {
        font-size: 1.8rem !important;
    }

    p {
        font-size: 1rem !important;
    }
}

/* --- CRITICAL MOBILE DESIGN RESET (max-width: 991px) --- */
@media (max-width: 991px) {

    /* 1. FORCE LOGO VISIBILITY (NUCLEAR OPTION) */
    .header .logo,
    .navbar-brand,
    .navbar-brand img,
    .navbar-brand svg {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 9999 !important;

        /* Filter removed to restore original logo colors */

        /* 2. FORCE FULL-WIDTH MOBILE MENU */
        .nav-menu {
            position: absolute !important;
            top: 100% !important;
            left: 0 !important;
            width: 100% !important;
            max-width: 100vw !important;
            margin: 0 !important;
            background-color: #ffffff !important;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
            padding: 20px !important;
            z-index: 10000 !important;
            display: none;
        }

        .nav-menu.active {
            display: block !important;
        }

        .nav-menu ul {
            flex-direction: column !important;
            text-align: center !important;
            gap: 15px !important;
        }

        .nav-menu a {
            color: #222 !important;
            font-size: 18px !important;
            padding: 10px;
            display: block;
        }

        /* 3. HERO STACKING (NUCLEAR) */
        .hero-container,
        .intro-grid,
        .footer .container {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .hero-image-holder {
            order: -1 !important;
            width: 100% !important;
            height: 300px !important;
            margin-bottom: 30px !important;
        }

        .hero-image-holder img {
            height: 100% !important;
            object-fit: cover !important;
            border-radius: 8px !important;
        }

        .hero-text-content {
            width: 100% !important;
            text-align: center !important;
            background: #ffffff !important;
            padding: 20px !important;
        }

        .hero-text-content h1 {
            font-size: 24px !important;
            line-height: 1.3 !important;
        }

        /* Mobile Toggle Color */
        .mobile-toggle {
            display: block !important;
            margin-left: 15px;
        }

        .mobile-toggle i {
            color: #000000 !important;
            font-size: 28px !important;
        }

        /* Header fixes */
        .header {
            background: #fff !important;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
        }
    }
}

/* --- MOBİL KART DÜZƏLİŞİ (YAZILARI AĞ ET) --- */
@media (max-width: 991px) {
    .treatment-card .card-content h3 {
        color: #ffffff !important;
        /* Yazını məcburi ağ edir */
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9) !important;
        /* Oxunaqlı olsun deyə kölgə */
    }

    .treatment-card .card-content .read-more {
        color: #d4af37 !important;
        /* "Ətraflı bax" yazısı qızılı olsun */
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
    }
}

/* --- EEAT Author Verification Card --- */
.author-verification-card {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 50px;
    padding: 30px;
    background: #fdfbf7;
    border: 1px solid #ebdcb9;
    border-radius: 12px;
}

.author-avatar {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #d4af37;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info-block {
    flex-grow: 1;
}

.author-badge-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b5891d;
    background: #f8efdb;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.author-info-block h4 {
    margin: 0 0 5px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333333;
}

.author-meta-bio {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555555;
    margin: 0 0 10px 0;
}

.author-verify-links {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.author-verify-links a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-verify-links a:hover {
    color: #b5891d;
    text-decoration: underline;
}

@media (max-width: 576px) {
    .author-verification-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    .author-verify-links {
        justify-content: center;
    }
}