/* ============================================
   PREMIUM MOBILE HEADER & FOOTER ENHANCEMENTS
   Glassmorphism + Rich Gradients + Micro-animations
   ============================================ */

/* ========================================
   MOBILE HEADER - PREMIUM GLASSMORPHISM
   ======================================== */
@media (max-width: 992px) {

    /* Premium Header Bar */
    .navbar {
        background: linear-gradient(135deg, #0B3D2E 0%, #0d4a37 40%, #0B3D2E 100%) !important;
        border-bottom: 2px solid rgba(201, 162, 77, 0.4) !important;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(201, 162, 77, 0.15) inset !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
    }

    /* Logo Image - Glowing Ring */
    .navbar .logo-img {
        height: 42px !important;
        border-radius: 50% !important;
        border: 2px solid rgba(201, 162, 77, 0.55) !important;
        padding: 2px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 0 14px rgba(201, 162, 77, 0.25), 0 0 4px rgba(201, 162, 77, 0.1) inset !important;
    }

    /* School Name */
    .navbar .school-name {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: #fff !important;
        letter-spacing: 0.3px !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
    }

    /* School Address - Gold Badge Style */
    .navbar .school-address {
        font-size: 0.6rem !important;
        color: var(--gold) !important;
        letter-spacing: 1.2px !important;
        text-transform: uppercase !important;
        opacity: 0.9 !important;
    }

    /* Hamburger Button - Glass Card */
    .mobile-toggle {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, rgba(201, 162, 77, 0.18), rgba(201, 162, 77, 0.06)) !important;
        border: 1.5px solid rgba(201, 162, 77, 0.45) !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
        transition: all 0.25s ease !important;
    }

    .mobile-toggle:active {
        transform: scale(0.9) !important;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3) !important;
    }

    .mobile-toggle i {
        font-size: 1.15rem !important;
        color: var(--gold) !important;
    }
}

/* ========================================
   MOBILE FOOTER - COMPLETE PREMIUM REDESIGN
   ======================================== */
@media (max-width: 768px) {

    /* ---- FOOTER BASE ---- */
    .footer-section {
        padding: 0 !important;
        background: 
            linear-gradient(175deg, #0f5640 0%, #0B3D2E 30%, #072b20 70%, #051c14 100%) !important;
        position: relative;
        overflow: hidden;
    }

    /* Decorative Background Orbs */
    .footer-section::before {
        content: '';
        position: absolute;
        top: -100px;
        left: -80px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(201, 162, 77, 0.07) 0%, transparent 65%);
        pointer-events: none;
        z-index: 0;
    }

    .footer-section::after {
        content: '';
        position: absolute;
        bottom: -80px;
        right: -60px;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(201, 162, 77, 0.05) 0%, transparent 65%);
        pointer-events: none;
        z-index: 0;
    }

    .footer-section .container {
        position: relative;
        z-index: 1;
        padding: 0 !important;
    }

    /* ---- GRID STACKED ---- */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin-bottom: 0 !important;
    }

    /* ---- ABOUT SECTION (Logo + Desc + Social) ---- */
    .footer-about {
        padding: 30px 22px 26px !important;
        text-align: center !important;
        border-bottom: 1px solid rgba(201, 162, 77, 0.12) !important;
        background: linear-gradient(180deg, rgba(201, 162, 77, 0.04) 0%, transparent 100%) !important;
    }

    .logo-area {
        justify-content: center !important;
        gap: 14px !important;
        margin-bottom: 14px !important;
    }

    .footer-logo-img {
        height: 50px !important;
        border-radius: 50% !important;
        border: 2.5px solid rgba(201, 162, 77, 0.5) !important;
        padding: 3px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        box-shadow: 0 0 20px rgba(201, 162, 77, 0.18), 0 0 6px rgba(201, 162, 77, 0.1) inset !important;
    }

    .footer-logo-text h3 {
        font-size: 1rem !important;
        color: #fff !important;
        text-align: left !important;
        line-height: 1.3 !important;
    }

    .school-desc {
        font-size: 0.8rem !important;
        color: rgba(255, 248, 238, 0.55) !important;
        line-height: 1.6 !important;
        max-width: 340px !important;
        margin: 0 auto 18px !important;
    }

    /* Social Icons - Glassmorphism Squares */
    .social-icons {
        justify-content: center !important;
        gap: 12px !important;
    }

    .social-link {
        width: 44px !important;
        height: 44px !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)) !important;
        border: 1px solid rgba(201, 162, 77, 0.2) !important;
        color: var(--gold) !important;
        font-size: 1.05rem !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
        transition: all 0.3s ease !important;
    }

    .social-link:active {
        background: linear-gradient(135deg, var(--gold), #b8960b) !important;
        color: var(--primary) !important;
        transform: scale(0.9) !important;
        border-color: var(--gold) !important;
        box-shadow: 0 0 20px rgba(201, 162, 77, 0.3) !important;
    }

    /* ---- WIDGET SECTIONS ---- */
    .footer-widget {
        padding: 22px 22px !important;
        border-bottom: 1px solid rgba(201, 162, 77, 0.08) !important;
    }

    /* Widget Titles - Premium Gold Accent Bar */
    .widget-title {
        font-size: 0.72rem !important;
        letter-spacing: 2.5px !important;
        text-transform: uppercase !important;
        color: var(--gold) !important;
        margin-bottom: 16px !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        font-family: var(--font-body) !important;
        font-weight: 700 !important;
    }

    .widget-title::before {
        content: '' !important;
        display: inline-block !important;
        width: 18px !important;
        height: 2px !important;
        background: linear-gradient(90deg, var(--gold), transparent) !important;
        flex-shrink: 0 !important;
    }

    /* ---- FOOTER LINKS - Compact Two-Column ---- */
    .footer-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 2px 12px !important;
        padding: 0 !important;
    }

    .footer-links li {
        margin-bottom: 0 !important;
    }

    .footer-links a {
        font-size: 0.82rem !important;
        color: rgba(255, 248, 238, 0.65) !important;
        padding: 9px 0 9px 18px !important;
        display: block !important;
        position: relative !important;
        transition: all 0.2s ease !important;
        border-radius: 6px !important;
        border-left: 0 !important;
    }

    .footer-links a::before {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 6px !important;
        height: 6px !important;
        border-radius: 50% !important;
        background: rgba(201, 162, 77, 0.3) !important;
        transition: all 0.2s ease !important;
    }

    .footer-links a:hover,
    .footer-links a:active {
        color: #fff !important;
        background: rgba(201, 162, 77, 0.08) !important;
        padding-left: 22px !important;
    }

    .footer-links a:hover::before,
    .footer-links a:active::before {
        background: var(--gold) !important;
        box-shadow: 0 0 8px rgba(201, 162, 77, 0.4) !important;
    }

    /* ---- CONTACT LIST - Premium Mini-Cards ---- */
    .footer-contact-list {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .footer-contact-list li {
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)) !important;
        border: 1px solid rgba(201, 162, 77, 0.12) !important;
        border-radius: 14px !important;
        padding: 16px 12px !important;
        margin-bottom: 0 !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
        transition: all 0.25s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    }

    .footer-contact-list li:active {
        background: linear-gradient(145deg, rgba(201, 162, 77, 0.1), rgba(201, 162, 77, 0.03)) !important;
        border-color: rgba(201, 162, 77, 0.3) !important;
        transform: scale(0.97) !important;
    }

    .footer-contact-list i {
        font-size: 1.1rem !important;
        color: var(--gold) !important;
        margin-top: 0 !important;
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
        background: rgba(201, 162, 77, 0.1) !important;
        flex-shrink: 0 !important;
        min-width: 36px !important;
    }

    .footer-contact-list li span {
        font-size: 0.75rem !important;
        line-height: 1.5 !important;
        color: rgba(255, 248, 238, 0.7) !important;
    }

    /* ---- PARENTS LOGIN - Premium Gold CTA ---- */
    .footer-parent-login {
        padding: 22px 22px !important;
        border-top: 1px solid rgba(201, 162, 77, 0.12) !important;
    }

    .parent-login-btn {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 15px 24px !important;
        border-radius: 14px !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        letter-spacing: 1.5px !important;
        background: linear-gradient(135deg, var(--gold), #d4af57, var(--gold)) !important;
        background-size: 200% 200% !important;
        animation: btnShimmer 3s ease infinite !important;
        box-shadow: 0 6px 24px rgba(201, 162, 77, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
        text-transform: uppercase !important;
        border: none !important;
    }

    .parent-login-btn:active {
        transform: scale(0.96) !important;
        box-shadow: 0 3px 12px rgba(201, 162, 77, 0.4) !important;
    }

    /* ---- FOOTER BOTTOM ---- */
    .footer-bottom {
        padding: 14px 22px !important;
        font-size: 0.72rem !important;
        color: rgba(255, 248, 238, 0.35) !important;
        border-top: 1px solid rgba(201, 162, 77, 0.08) !important;
        text-align: center !important;
    }

    .developer-credit {
        padding: 0 22px 16px !important;
        font-size: 0.68rem !important;
        color: rgba(255, 248, 238, 0.28) !important;
    }

    .developer-credit a {
        color: rgba(201, 162, 77, 0.6) !important;
    }
}

/* ---- Extra Small Phones ---- */
@media (max-width: 380px) {
    .footer-links {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .footer-contact-list {
        grid-template-columns: 1fr !important;
    }

    .footer-contact-list li {
        flex-direction: row !important;
        text-align: left !important;
        padding: 12px 14px !important;
        gap: 12px !important;
    }
}
