/* =============================================================
   DLS PG COLLEGE — NEW MOBILE DRAWER MENU
   Clean slide-in side menu for mobile screens
   ============================================================= */

/* ===== TOP MARQUEE BAR — VISIBLE ON ALL SCREENS ===== */
.top-marquee-bar {
    display: block;
    background: #0d1b2a;
    background: #c97c1e;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.marquee-track {
    display: inline-flex;
    animation: marqueeScroll 30s linear infinite;
    will-change: transform;
}

.top-marquee-bar:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    padding: 0 20px;
    letter-spacing: 0.2px;
}

.marquee-item i {
    font-size: 12px;
    color: #ffffff;
    opacity: 0.9;
}

.marquee-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    padding: 0 4px;
}

/* ===== HIDE on desktop (992px+) ===== */
.mobile-header,
.mobile-drawer-trigger,
.mobile-drawer-overlay,
.mobile-drawer {
    display: none;
}

/* ===== MOBILE: max 991px ===== */
@media (max-width: 991px) {

    /* ===== TOP MARQUEE — mobile adjustments ===== */
    .top-marquee-bar {
        background: linear-gradient(90deg, #c97c1e, #a86515, #c97c1e);
        padding: 6px 0;
    }

    .top-marquee-bar .marquee-item {
        font-size: 12px;
        padding: 0 16px;
    }

    .top-marquee-bar .marquee-item i {
        color: #fff;
        opacity: 0.85;
    }

    .top-marquee-bar .marquee-divider {
        color: rgba(255, 255, 255, 0.4);
    }

    /* ===== HIDE OLD MENU SYSTEM ON MOBILE ===== */
    /* Hide old toolbar */
    .modern-toolbar {
        display: none !important;
    }

    /* Hide old header-top (replaced by mobile-header) */
    .modern-header-top {
        display: none !important;
    }

    /* Hide old rsmenu toggle + mobile-logo */
    .modern-menu-area .rs-menu-toggle,
    .modern-menu-area .mobile-logo {
        display: none !important;
    }

    /* Hide old nav-menu (replaced by drawer) */
    .modern-menu-area .nav-menu {
        display: none !important;
    }

    /* Hide old menu bar area — we use new mobile header */
    .menu-area.menu-sticky.modern-menu-area {
        display: none !important;
    }

    /* ===== NEW MOBILE HEADER ===== */
    .mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        background: #fff;
        padding: 10px 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        position: sticky;
        top: 0;
        z-index: 998;
    }

    /* Logo section */
    .mobile-header-left {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        min-width: 0;
    }

    .mobile-header-logo {
        width: 50px;
        height: 50px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .mobile-header-title {
        font-size: 13px;
        font-weight: 700;
        color: #1a1a2e;
        line-height: 1.25;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-family: 'Poppins', sans-serif;
    }

    .mobile-header-title small {
        display: block;
        font-size: 10px;
        font-weight: 500;
        color: #888;
        letter-spacing: 0.3px;
        margin-top: 1px;
    }

    /* Hamburger button */
    .mobile-drawer-trigger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #c97c1e, #a86515);
        border: none;
        border-radius: 10px;
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.3s;
        box-shadow: 0 3px 10px rgba(201, 124, 30, 0.3);
    }

    .mobile-drawer-trigger:active {
        transform: scale(0.95);
    }

    .mobile-hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 20px;
    }

    .mobile-hamburger span {
        display: block;
        width: 100%;
        height: 2.5px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s;
    }

    /* ===== OVERLAY ===== */
    .mobile-drawer-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-drawer-overlay.active {
        display: block;
        opacity: 1;
    }

    /* ===== DRAWER ===== */
    .mobile-drawer {
        display: block !important;
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: linear-gradient(180deg, #2a1805 0%, #1a0f02 100%);
        z-index: 9999;
        overflow-y: auto;
        overflow-x: hidden;
        transition: left 0.35s cubic-bezier(0.23, 1, 0.32, 1);
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
        -webkit-overflow-scrolling: touch;
    }

    .mobile-drawer.open {
        left: 0;
    }

    /* Drawer Header */
    .drawer-header {
        padding: 20px;
        background: linear-gradient(135deg, #c97c1e, #a86515);
        display: flex;
        align-items: center;
        gap: 14px;
        position: relative;
    }

    .drawer-header-logo {
        width: 55px;
        height: 55px;
        object-fit: contain;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.15);
        padding: 5px;
        flex-shrink: 0;
    }

    .drawer-header-info {
        flex: 1;
        min-width: 0;
    }

    .drawer-header-info h3 {
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        margin: 0 0 2px;
        line-height: 1.3;
        font-family: 'Poppins', sans-serif;
    }

    .drawer-header-info p {
        color: rgba(255, 255, 255, 0.75);
        font-size: 10px;
        margin: 0;
        font-weight: 400;
        letter-spacing: 0.3px;
    }

    .drawer-close {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        color: #fff;
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s;
    }

    .drawer-close:hover {
        background: rgba(255, 255, 255, 0.35);
    }

    /* ===== DRAWER AFFILIATION ===== */
    .drawer-affiliation {
        padding: 10px 16px;
        background: rgba(201, 124, 30, 0.12);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: #e8dcc8;
        font-size: 10.5px;
        line-height: 1.5;
        font-weight: 500;
        text-align: center;
    }

    /* ===== DRAWER ACTION BUTTONS ===== */
    .drawer-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .drawer-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(245, 165, 45, 0.35);
        color: #f5d9a8;
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
        text-align: center;
        line-height: 1.3;
        transition: all 0.3s;
    }

    .drawer-btn i {
        font-size: 13px;
    }

    .drawer-btn:hover,
    .drawer-btn:focus {
        background: rgba(201, 124, 30, 0.35);
        color: #fff;
    }

    .drawer-btn-primary {
        background: linear-gradient(135deg, #c97c1e, #a86515);
        border-color: transparent;
        color: #fff;
        font-size: 12.5px;
    }

    .drawer-btn-primary:hover,
    .drawer-btn-primary:focus {
        background: linear-gradient(135deg, #e08c22, #b8701a);
        color: #fff;
    }

    /* ===== DRAWER CONTACT INFO ===== */
    .drawer-contact-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .drawer-contact-item {
        display: flex;
        align-items: flex-start;
        gap: 9px;
        color: #d4c4aa;
        font-size: 11.5px;
        line-height: 1.45;
        text-decoration: none;
        font-weight: 500;
    }

    .drawer-contact-item i {
        flex-shrink: 0;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: rgba(245, 165, 45, 0.18);
        color: #f5a52d;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    a.drawer-contact-item:hover {
        color: #fff;
    }

    /* ===== DRAWER MENU ITEMS ===== */
    .drawer-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .drawer-menu>li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Parent link (has submenu) */
    .drawer-menu>li>.drawer-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        color: #f0e6d6;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        font-family: 'Poppins', sans-serif;
        transition: all 0.25s;
        cursor: pointer;
    }

    .drawer-menu>li>.drawer-link:hover,
    .drawer-menu>li>.drawer-link:active {
        background: rgba(255, 255, 255, 0.05);
        color: #f5a52d;
    }

    .drawer-menu>li>.drawer-link .drawer-icon {
        font-size: 16px;
        margin-right: 12px;
        width: 20px;
        text-align: center;
        opacity: 0.7;
        color: #f5a52d;
    }

    .drawer-menu>li>.drawer-link .drawer-text {
        flex: 1;
    }

    .drawer-menu>li>.drawer-link .drawer-arrow {
        font-size: 10px;
        transition: transform 0.3s;
        opacity: 0.5;
        color: #f5a52d;
    }

    .drawer-menu>li.drawer-open>.drawer-link .drawer-arrow {
        transform: rotate(180deg);
        opacity: 1;
    }

    .drawer-menu>li.drawer-open>.drawer-link {
        background: rgba(201, 124, 30, 0.12);
        color: #f5a52d;
    }

    /* Simple link (no submenu) */
    .drawer-menu>li>a.drawer-simple {
        display: flex;
        align-items: center;
        padding: 14px 20px;
        color: #f0e6d6;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        font-family: 'Poppins', sans-serif;
        transition: all 0.25s;
    }

    .drawer-menu>li>a.drawer-simple:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #f5a52d;
    }

    .drawer-menu>li>a.drawer-simple .drawer-icon {
        font-size: 16px;
        margin-right: 12px;
        width: 20px;
        text-align: center;
        opacity: 0.7;
        color: #f5a52d;
    }

    /* ===== SUBMENU PANEL ===== */
    .drawer-submenu {
        display: none;
        background: rgba(0, 0, 0, 0.15);
        padding: 6px 0;
    }

    .drawer-menu>li.drawer-open>.drawer-submenu {
        display: block;
    }

    /* Mega columns inside drawer */
    .drawer-mega {
        padding: 8px 16px 12px;
    }

    .drawer-mega-col {
        margin-bottom: 14px;
    }

    .drawer-mega-col:last-child {
        margin-bottom: 0;
    }

    .drawer-mega-title {
        color: #f5a52d;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin: 0 0 8px;
        padding: 0 8px;
        font-family: 'Poppins', sans-serif;
    }

    .drawer-mega-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .drawer-mega-links li a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 7px 8px;
        color: #d4c4aa;
        text-decoration: none;
        font-size: 13px;
        font-weight: 400;
        font-family: 'Poppins', sans-serif;
        border-radius: 6px;
        transition: all 0.2s;
    }

    .drawer-mega-links li a:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.06);
    }

    .drawer-mega-links li a .fa-chevron-right {
        font-size: 7px;
        opacity: 0.4;
    }

    /* Simple dropdown submenu */
    .drawer-dropdown {
        padding: 4px 0;
    }

    .drawer-dropdown a {
        display: block;
        padding: 9px 20px 9px 52px;
        color: #d4c4aa;
        text-decoration: none;
        font-size: 13px;
        font-weight: 400;
        font-family: 'Poppins', sans-serif;
        transition: all 0.2s;
        position: relative;
    }

    .drawer-dropdown a::before {
        content: '›';
        position: absolute;
        left: 36px;
        color: #f5a52d;
        font-size: 14px;
        opacity: 0.5;
    }

    .drawer-dropdown a:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.04);
    }

    /* Drawer Footer */
    .drawer-footer {
        padding: 16px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 8px;
    }

    .drawer-footer-links {
        display: flex;
        gap: 12px;
        justify-content: center;
    }

    .drawer-footer-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        color: #f5a52d;
        text-decoration: none;
        font-size: 16px;
        transition: all 0.3s;
    }

    .drawer-footer-links a:hover {
        background: #c97c1e;
        color: #fff;
    }

    .drawer-contact {
        text-align: center;
        margin-top: 12px;
    }

    .drawer-contact a {
        color: #d4c4aa;
        font-size: 11px;
        text-decoration: none;
    }

    /* ===== COMPACT at 576px ===== */
    @media (max-width: 576px) {
        .top-marquee-bar {
            padding: 5px 0;
        }

        .top-marquee-bar .marquee-item {
            font-size: 11px;
            padding: 0 14px;
        }

        .mobile-header {
            padding: 8px 12px;
        }

        .mobile-header-logo {
            width: 42px;
            height: 42px;
        }

        .mobile-header-title {
            font-size: 12px;
        }

        .mobile-header-title small {
            font-size: 9px;
        }

        .mobile-drawer-trigger {
            width: 40px;
            height: 40px;
        }

        .drawer-header {
            padding: 16px;
        }

        .drawer-header-logo {
            width: 45px;
            height: 45px;
        }

        .drawer-header-info h3 {
            font-size: 13px;
        }
    }

    /* ===== COMPACT at 480px ===== */
    @media (max-width: 480px) {
        .mobile-header-title {
            font-size: 11px;
        }

        .mobile-header-logo {
            width: 77px;
            height: 85px;
        }

        .mobile-drawer {
            width: 280px;
        }
    }

    /* ===== ALSO HIDE OLD HEADER ELEMENTS ===== */
    /* Hide the old rs-header-top (we use .mobile-header instead) */
    .rs-header-top.header-main-section {
        display: none !important;
    }

    /* Hide old breadcrumbs on mobile */
    .rs-breadcrumbs {
        display: none !important;
    }
}