/* ============================================================
   Custom Styling & Theme Overrides for School Website
   Primary: School Maroon (#6B171E) | Secondary: Warm Gold (#F4B942)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #6B171E;
    --primary-dark: #4A0E15;
    --primary-light: #8B1E28;
    --secondary-color: #F4B942;
    --secondary-hover: #D99B1C;
    --secondary-light: #FEF3C7;
    --text-dark: #3B0B11;
    --text-muted: #64748B;
    --bg-light: #FDF8F8;
    --card-border: #F1D9DC;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: #FFFFFF;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', sans-serif;
}

/* Hide scrollbars utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Animation utilities */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(244, 185, 66, 0.4); }
    50% { box-shadow: 0 0 25px rgba(244, 185, 66, 0.8); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.pulse-glow {
    animation: pulseGlow 2.5s infinite;
}

/* Glassmorphism */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-banner {
    background: rgba(107, 23, 30, 0.88);
    backdrop-filter: blur(10px);
}

/* Section styling helpers */
.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: #FEF3C7;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.75rem;
    }
}

/* Assignment Card Hover */
.assignment-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--card-border);
}
.assignment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -8px rgba(107, 23, 30, 0.15);
    border-color: #FACFD2;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}
.lightbox-modal.active,
.lightbox-modal.flex {
    display: flex !important;
}

/* Print styling */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    body {
        background: #FFF;
        color: #000;
    }
}

/* Mobile & Touch View Optimizations */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
    /* Prevent iOS zoom-in jump on form inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Lightbox mobile padding */
    .lightbox-modal {
        padding: 12px;
    }
    .lightbox-modal img {
        max-height: 70vh !important;
    }
    
    /* Ensure no unwanted horizontal overflow */
    body {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* Mobile Smooth Native App Enhancements */
@media (max-width: 1023px) {
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
    
    /* Touch friendly button minimum sizing */
    button, a, input, select {
        touch-action: manipulation;
    }

    /* Enhanced horizontal swipe feel */
    .snap-x {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .snap-start {
        scroll-snap-align: start;
    }
}

/* Ensure all embedded maps and videos scale seamlessly on mobile */
iframe, video {
    max-width: 100% !important;
}

/* Luxury Mobile Drawer Smooth Slide Animation */
#mobileMenu {
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
#mobileMenu.drawer-open {
    transform: translateX(0) !important;
}
#mobileMenuOverlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#mobileMenuOverlay.drawer-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ============================================================
   Admin Welcome & Dashboard Banner Reliability Classes
   ============================================================ */
.admin-welcome-banner {
    background-color: #6B171E !important;
    background-image: linear-gradient(135deg, #6B171E 0%, #4A0E15 50%, #2A060A 100%) !important;
    color: #FFFFFF !important;
}

.admin-welcome-banner h2 {
    color: #FFFFFF !important;
}

.admin-welcome-banner p {
    color: #FCE7E8 !important;
}

/* ============================================================
   Full-Bleed Edge-to-Edge Hero Slider (Zero Side Pillars)
   ============================================================ */
.hero-slider-container {
    width: 100% !important;
    max-width: 100vw !important;
    aspect-ratio: 16 / 6;
    min-height: 240px;
    max-height: 680px;
    overflow: hidden !important;
    position: relative !important;
}

@media (max-width: 1024px) {
    .hero-slider-container {
        aspect-ratio: 16 / 7;
        min-height: 260px;
    }
}

@media (max-width: 640px) {
    .hero-slider-container {
        aspect-ratio: 16 / 8;
        min-height: 210px;
    }
}

.hero-slide {
    width: 100% !important;
    height: 100% !important;
    inset: 0 !important;
}

.hero-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}



