/* ═══════════════════════════════════════════════════════
   DDOCTOR — PREMIUM RESPONSIVE STYLES (OLADOC STYLE)
   ══════════════════════════════════════════════════════ */

@media (max-width: 991.98px) {
    /* --- 1. Mobile Menu Container --- */
    .dd-navbar .navbar-collapse {
        background: #fff;
        max-height: 85vh;
        overflow-y: auto;
        border-top: 1px solid #eee;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1050; /* Bootstrap standard for collapses */
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

    /* --- 2. Mobile Auth Buttons (Top) --- */
    .dd-m-auth-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        border-radius: 12px;
        text-decoration: none;
        background: #fff;
        border: 1px solid #f0f3ff;
    }
    .dd-m-auth-btn i { font-size: 24px; margin-bottom: 5px; color: #1B2B8C; }
    .dd-m-auth-btn span { font-size: 13px; font-weight: 700; color: #333; }

    /* --- 3. Accordion Logic (Force Push-Down) --- */
    .dd-mega-item.dropdown {
        position: static !important;
    }

    /* Bootstrap adds .show to the dropdown menu, we make it static */
    .dd-mega-item .dropdown-menu.show {
        display: block !important;
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        float: none !important;
        border: none !important;
        background: #f8faff !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    /* Keep hidden by default so it can toggle */
    .dd-mega-item .dropdown-menu {
        display: none;
    }

    /* Style the desc only on mobile */
    .dd-m-desc {
        font-size: 11px;
        color: #888;
        display: block;
        font-weight: 400;
        margin-top: 2px;
    }

    .dd-nav-links .nav-link {
        padding: 15px 20px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #1B2B8C !important;
        border-bottom: 1px solid #f5f5f5;
    }

    /* --- 4. Spacing for Buttons --- */
    .dd-nav-mobile-buttons { padding: 10px 20px 30px; }
    .dd-btn-join-doctor, .dd-btn-login {
        height: 48px;
        border-radius: 24px !important;
        justify-content: center;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
    }
}

/* --- DESKTOP REVERSIONS (IMAGE 3 STYLE) --- */
@media (min-width: 992px) {
    /* Set back to default widths or relative to container */
    .dd-mega-menu {
        width: 1140px !important; /* Boxed width matching standard container */
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: 95vw;
    }
    .dd-m-desc { display: none !important; }
}
