/* EMERGENCY MOBILE FIXES - VERSION 4 (Aggressive Logo Reset) */
@media (max-width: 991px) {

    /* 1. HEADER & LOGO RESET */
    .header {
        background-color: #ffffff !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
        height: auto !important;
        min-height: 80px !important;
        width: 100% !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }

    .header .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 20px !important;
        max-width: 100% !important;
    }

    /* FORCE COLOR LOGO - AGGRESSIVE RESET */
    .navbar-brand img,
    .logo img {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;

        /* Reset all possible filters */
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        mix-blend-mode: normal !important;
        isolation: isolate !important;

        /* Ensure normal color rendering */
        color: transparent !important;
        background: transparent !important;

        max-height: 55px !important;
        width: auto !important;
        position: static !important;
        margin: 0 !important;
    }

    .logo {
        width: auto !important;
        position: static !important;
        z-index: 10002 !important;
        transform: none !important;
        left: auto !important;
        display: flex !important;
        align-items: center !important;

        /* Ensure container doesn't have filters */
        filter: none !important;
        -webkit-filter: none !important;
        opacity: 1 !important;
    }

    .mobile-toggle {
        display: block !important;
        color: #000000 !important;
        font-size: 28px !important;
        cursor: pointer !important;
        z-index: 10002 !important;
    }

    /* 2. MENU FIX (Full Screen & Accordion) */
    .nav-menu {
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 80px) !important;
        background-color: #ffffff !important;
        padding: 30px 20px !important;
        display: none !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        z-index: 9998 !important;
        border-top: 1px solid #eee !important;
        transform: none !important;
        margin: 0 !important;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu ul {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0 !important;
        list-style: none !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav-menu ul li {
        width: 100% !important;
        border-bottom: 1px solid #f5f5f5 !important;
        padding: 15px 0 !important;
    }

    .nav-menu a {
        color: #222222 !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        padding: 10px !important;
        display: block !important;
        text-decoration: none !important;
    }

    /* ACCORDION SUBMENU FIX */
    .dropdown {
        display: block !important;
        width: 100% !important;
    }

    .dropdown-content {
        position: static !important;
        /* Pushes content down */
        display: none;
        width: 100% !important;
        min-width: 100% !important;
        box-shadow: none !important;
        background-color: #f9f9f9 !important;
        padding: 0 !important;
        margin-top: 10px !important;
        border-radius: 8px !important;
        transform: none !important;
        border: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Hover effektini ləğv edirik ki, öz-özünə basılmasın */
    .dropdown:hover .dropdown-content,
    .dropdown:active .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: none !important;
    }

    /* Yalnız JavaScript ilə 'active' klassı əlavə olunanda açılsın */
    .dropdown.active .dropdown-content {
        display: block !important;
        animation: fadeIn 0.3s ease;
        /* Yumşaq açılma effekti */
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .dropdown-content a {
        font-size: 16px !important;
        padding: 12px 10px !important;
        color: #555 !important;
        border-bottom: 1px solid #eee !important;
    }

    /* 3. HERO & LAYOUT RESET */
    .hero-container,
    .doctor-container,
    .intro-grid,
    .about-content,
    .footer .container {
        flex-direction: column-reverse !important;
        display: flex !important;
        align-items: center !important;
        text-align: center !important;
        padding-top: 0 !important;
        gap: 30px !important;
    }

    .hero-text-content,
    .doctor-text-content,
    .intro-text,
    .about-text {
        width: 100% !important;
        padding: 0 10px !important;
    }

    .hero-image-holder,
    .doctor-image-wrapper,
    .intro-img,
    .about-image {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
        display: flex !important;
        justify-content: center !important;
        order: -1 !important;
    }

    .hero-image-holder img,
    .doctor-image-wrapper img,
    .intro-img img {
        width: 100% !important;
        height: auto !important;
        max-height: 350px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
    }

    /* 4. BUTTONS FIX */
    .hero-cta-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        align-items: center !important;
        margin-top: 20px !important;
    }

    .btn,
    .btn-primary,
    .btn-primary-gold,
    .btn-secondary-outline,
    .cta-btn,
    .hero-cta-buttons a {
        width: 100% !important;
        max-width: 320px !important;
        padding: 15px !important;
        font-size: 16px !important;
        white-space: normal !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    h2 {
        font-size: 24px !important;
    }

    p {
        font-size: 16px !important;
        color: #555 !important;
    }

    /* 5. INNER PAGE LAYOUT FIXES (Grid Reset) */
    .process-grid,
    .benefits-grid,
    .gallery-grid-master,
    .blog-grid,
    .resume-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        width: 100% !important;
    }

    .process-step,
    .benefit-card,
    .blog-card,
    .gallery-placeholder,
    .resume-col {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .page-header-master {
        height: 200px !important;
        /* Smaller header on mobile */
        padding: 0 15px !important;
    }

    .page-header-content h1 {
        font-size: 24px !important;
    }
}

/* FORCE LANGUAGE SWITCHER COLORS (NUCLEAR OPTION) */
.lang-switch a.lang-btn,
.lang-switch .lang-btn {
    color: #333333 !important;
    /* Absent/Inactive is BLACK */
    text-decoration: none !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}

.lang-switch a.lang-btn.active,
.lang-switch .lang-btn.active {
    color: #d4af37 !important;
    /* Active is GOLD */
    font-weight: 700 !important;
    opacity: 1 !important;
}