/* ============================================
   MOBILE MENU COMPLETE STYLES
   ============================================ */

/* CBSE Button Desktop */
.cbse-btn {
    background: linear-gradient(135deg, #c30a10 0%, #8b0000 100%);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s ease;
}

.cbse-btn:hover {
    background: linear-gradient(135deg, #a00 0%, #600 100%);
    color: #fff !important;
}

/* ============================================
   HAMBURGER BUTTON
   ============================================ */

.mobile-hamburger {
    width: 50px;
    height: 50px;
    background: #c30a10;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 12px;
}

.mobile-hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.mobile-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   OVERLAY
   ============================================ */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   MOBILE SIDEBAR
   ============================================ */

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-sidebar.active {
    right: 0;
}

/* ============================================
   SIDEBAR HEADER WITH CLOSE BUTTON
   ============================================ */

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #c30a10 0%, #8b0000 100%);
    flex-shrink: 0;
}

.mobile-menu-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.mobile-close-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-close-btn span {
    color: #fff;
    font-size: 30px;
    line-height: 1;
    font-weight: 300;
}

.mobile-close-btn:hover,
.mobile-close-btn:active {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   NAVIGATION MENU
   ============================================ */

.mobile-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list > li {
    border-bottom: 1px solid #eee;
}

.mobile-menu-list > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-menu-list > li > a:hover,
.mobile-menu-list > li > a:active {
    background: #f5f5f5;
    color: #c30a10;
}

/* ============================================
   SUBMENU ARROW
   ============================================ */

.submenu-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    color: #c30a10;
    transition: all 0.3s ease;
}

.mobile-menu-list > li.open > a .submenu-arrow {
    background: #c30a10;
    color: #fff;
    transform: rotate(45deg);
}

/* ============================================
   SUBMENU (CHILD ITEMS)
   ============================================ */

.submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.mobile-menu-list > li.open > .submenu {
    display: block;
}

.submenu li {
    border-bottom: 1px solid #eee;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu li a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.submenu li a::before {
    content: '›';
    position: absolute;
    left: 25px;
    color: #c30a10;
    font-size: 16px;
    font-weight: 700;
}

.submenu li a:hover,
.submenu li a:active {
    background: #eee;
    color: #c30a10;
    padding-left: 45px;
}

/* ============================================
   SIDEBAR FOOTER
   ============================================ */

.mobile-sidebar-footer {
    padding: 15px;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.mobile-call-btn,
.mobile-cbse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-call-btn {
    background: #25d366;
    color: #fff !important;
}

.mobile-call-btn:hover {
    background: #1da851;
}

.mobile-cbse-btn {
    background: #c30a10;
    color: #fff !important;
}

.mobile-cbse-btn:hover {
    background: #a00;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .top-area {
        display: none !important;
    }
    
    .mainmenu-area {
        display: none !important;
    }
    
    .logo-area {
        padding: 10px 0;
    }
    
    .logo img {
        max-height: 55px;
        width: auto;
    }
}

@media (min-width: 992px) {
    .mobile-hamburger,
    .mobile-sidebar,
    .mobile-menu-overlay {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-height: 45px;
    }
    
    .mobile-hamburger {
        width: 45px;
        height: 45px;
    }
}

/* Scrollbar */
.mobile-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.mobile-sidebar-nav::-webkit-scrollbar-thumb {
    background: #c30a10;
    border-radius: 4px;
}

/* ============================================
   MOBILE LOGO & HAMBURGER - FIXED
   ============================================ */

@media (max-width: 991px) {
    .logo-area {
        padding: 10px 0;
    }
    
    /* Logo image sizing */
    .logo img,
    .mobile-logo-img {
        max-height: 50px !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* Hamburger */
    .mobile-hamburger {
        width: 45px;
        height: 45px;
        padding: 10px;
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .logo-area {
        padding: 8px 0;
    }
    
    .logo img,
    .mobile-logo-img {
        max-height: 42px !important;
    }
    
    .mobile-hamburger {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 400px) {
    .logo img,
    .mobile-logo-img {
        max-height: 38px !important;
    }
    
    .mobile-hamburger {
        width: 38px;
        height: 38px;
        padding: 8px;
    }
    
    .mobile-hamburger span {
        width: 18px;
        height: 2px;
    }
}

 /* Quick mobile logo/hamburger fix */
    @media (max-width: 991px) {
        .logo img {
            max-height: 148px !important;
            max-width: 270px !important;
            width: auto !important;
        }
        .mobile-hamburger {
            width: 42px !important;
            height: 42px !important;
        }
    }
    @media (max-width: 480px) {
        .logo img {
            max-height: 140px !important;
            max-width: 230px !important;
        }
        .mobile-hamburger {
            width: 38px !important;
            height: 38px !important;
        }
    }