/* =========================================
   IMPORTS & VARIABLES
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

:root {
    /* Primary Colors - Brighter and more vibrant */
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #f472b6;
    --secondary-glow: rgba(244, 114, 182, 0.5);
    --accent: #22c55e;
    --accent-glow: rgba(34, 197, 94, 0.4);
    
    /* Glass Effects - Stronger for better visibility */
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-bg-strong: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-border-hover: rgba(255, 255, 255, 0.5);
    
    /* Text Colors - High Contrast */
    --text-dark: #0f172a;
    --text-light: #ffffff;
    --text-bright: #f1f5f9;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
    
    /* Background */
    --bg-deep: #0a0f1e;
    --bg-darker: #050810;
    
    /* Shadows - More pronounced */
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.7);
    --shadow-text: 0 2px 4px rgba(0, 0, 0, 0.8);
    
    /* Other */
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-card: 20px;
    --radius-sm: 12px;
}

/* =========================================
   GLOBAL RESET & PERFORMANCE OPTIMIZATIONS
========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { 
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-bright);
    overflow-x: hidden;
    position: relative;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

a { 
    text-decoration: none; 
    color: inherit;
}

img { 
    max-width: 100%;
    height: auto;
}

/* =========================================
   TYPOGRAPHY - CLEAN & SHARP
========================================= */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    color: #e2e8f0;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Strong text visibility */
strong, b {
    font-weight: 600;
    color: #ffffff;
}

/* Links with better contrast */
a {
    color: #e2e8f0;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* Muted text - still readable */
.text-muted {
    color: #cbd5e1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* =========================================
   ANIMATED LIQUID BACKGROUND (3 Blobs)
========================================= */
.background-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at 30% 20%, #0d1f3c 0%, #060d1a 60%);
    transition: background 0.5s ease;
}

/* Noise grain overlay for depth */
.background-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}

.blob {
    position: absolute;
    filter: blur(90px);
    opacity: 0.65;
    border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.blob-1 {
    width: 550px; height: 550px;
    background: radial-gradient(circle, #2563eb, #1d4ed8);
    top: -150px; left: -150px;
    animation: floatBlob1 18s infinite ease-in-out;
}

.blob-2 {
    width: 650px; height: 650px;
    background: radial-gradient(circle, #ec4899, #be185d);
    bottom: -200px; right: -200px;
    animation: floatBlob2 22s infinite ease-in-out;
}

.blob-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #10b981, #047857);
    top: 40%; left: 45%;
    transform: translate(-50%, -50%);
    animation: floatBlob3 28s infinite ease-in-out;
    opacity: 0.35;
}

@keyframes floatBlob1 {
    0%   { transform: translate3d(0px, 0px, 0) scale(1) rotate(0deg); border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
    25%  { transform: translate3d(80px, 120px, 0) scale(1.15) rotate(15deg); border-radius: 60% 40% 45% 55% / 45% 55% 50% 50%; }
    50%  { transform: translate3d(40px, 250px, 0) scale(0.95) rotate(-10deg); border-radius: 50% 50% 60% 40% / 60% 40% 55% 45%; }
    75%  { transform: translate3d(-60px, 100px, 0) scale(1.1) rotate(20deg); border-radius: 45% 55% 40% 60% / 50% 60% 45% 55%; }
    100% { transform: translate3d(0px, 0px, 0) scale(1) rotate(0deg); border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
}

@keyframes floatBlob2 {
    0%   { transform: translate3d(0px, 0px, 0) scale(1); border-radius: 60% 40% 30% 70% / 50% 40% 60% 50%; }
    33%  { transform: translate3d(-100px, -80px, 0) scale(1.2); border-radius: 40% 60% 70% 30% / 60% 50% 40% 50%; }
    66%  { transform: translate3d(-200px, -50px, 0) scale(0.9); border-radius: 55% 45% 50% 50% / 45% 55% 50% 50%; }
    100% { transform: translate3d(0px, 0px, 0) scale(1); border-radius: 60% 40% 30% 70% / 50% 40% 60% 50%; }
}

@keyframes floatBlob3 {
    0%   { transform: translate3d(-50%, -50%, 0) scale(1); }
    30%  { transform: translate3d(-60%, -60%, 0) scale(1.3); }
    60%  { transform: translate3d(-40%, -45%, 0) scale(0.8); }
    100% { transform: translate3d(-50%, -50%, 0) scale(1); }
}

/* =========================================
   PAGE ENTRY ANIMATIONS
========================================= */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

body { animation: fadeIn 0.5s ease-out; }
main { animation: pageIn 0.7s ease-out 0.1s both; }
.hero-content { animation: pageIn 0.9s ease-out 0.2s both; }

/* =========================================
   GLASSMORPHISM UTILITIES - REFINED
========================================= */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);
}

.glass-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card h1,
.glass-card h2,
.glass-card h3,
.glass-card h4 {
    color: #ffffff;
}

.glass-card p {
    color: #e2e8f0;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-card:hover::before {
    left: 100%;
}

/* =========================================
   HEADER & NAVBAR — CONSISTENT
========================================= */
header.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 999;
    padding: 14px 5%;
    transition: var(--transition);
    background: rgba(6, 13, 26, 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
}

header.site-header.scrolled {
    padding: 10px 5%;
    background: rgba(6, 13, 26, 0.92);
    border-bottom-color: var(--glass-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-container img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    border-radius: 10px;
}

.logo-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.school-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.school-tagline {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
    -webkit-text-fill-color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 8px;
    position: relative;
    transition: all 0.25s ease;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-links li a.active {
    background: linear-gradient(135deg, rgba(37,99,235,0.35), rgba(236,72,153,0.2));
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.6rem;
    color: white;
    background: transparent;
    border: 0;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,0.1); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.95);
    outline-offset: 3px;
}

/* Mobile nav */
@media (max-width: 968px) {
    .hamburger { display: flex; align-items: center; }

    .nav-links {
        position: fixed;
        top: 70px; left: 0;
        width: 100%;
        background: rgba(6, 13, 26, 0.97);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 0 20px;
        gap: 4px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, padding 0.3s ease;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        max-height: 600px;
        padding: 16px 20px;
    }

    .nav-links li a { padding: 12px 16px; border-radius: 10px; display: block; text-align: center; }
    
    /* Center align dropdown items in mobile */
    .nav-dropdown > a {
        text-align: center;
        justify-content: center;
    }

    .school-name { font-size: 1rem; }
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: 100vh;
    min-height: 100svh; /* Better mobile viewport handling */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 110px 20px 60px; /* Increased top padding to fully clear the fixed header */
    box-sizing: border-box;
}

.hero-content {
    padding: 60px 50px;
    max-width: 800px;
    width: 100%;
}

/* Prevent hero card from drifting up toward the fixed header on hover */
.hero .glass-card:hover {
    transform: none;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 20px;
    display: block;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    padding: 0 10px;
}

.hero-content p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: #60a5fa;
    text-shadow: 0 2px 6px rgba(96, 165, 250, 0.6);
}
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.5px; }

/* =========================================
   BUTTONS - ENHANCED WITH RIPPLE
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
    transition: width 0s, height 0s;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5),
                0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.2);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.btn-outline::before {
    background: rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15),
                0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-sm {
    padding: 9px 24px;
    font-size: 0.85rem;
}

/* =========================================
   MAIN LAYOUT
========================================= */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 50px 24px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

#staff-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    #staff-container {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PAGE HEADER BANNER (for inner pages)
========================================= */
.page-banner {
    padding: 140px 24px 60px;
    text-align: center;
}

.page-banner h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.page-banner p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb span { opacity: 0.5; }

/* =========================================
   SECTION TITLES
========================================= */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.section-title i {
    font-size: 1.2rem;
    width: 42px; height: 42px;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
    padding-left: 54px;
}

/* =========================================
   NOTICE BOARD
========================================= */
.notice-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.notice-item:hover {
    background: var(--glass-bg-strong);
    border-color: rgba(255,255,255,0.3);
    transform: translateX(4px);
}

.notice-date {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(37,99,235,0.15);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.notice-text { font-size: 0.88rem; font-weight: 500; line-height: 1.5; }
.badge-new {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--secondary);
    background: rgba(236,72,153,0.15);
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 8px;
    vertical-align: middle;
}

/* =========================================
   GLASS FORM INPUTS
========================================= */
.glass-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.glass-input {
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.15);
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    color: white;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    width: 100%;
}

.glass-input:focus {
    border-color: var(--primary);
    background: rgba(37,99,235,0.08);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.glass-input::placeholder { color: rgba(255,255,255,0.35); }

select.glass-input option {
    background: #1e293b;
    color: white;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* =========================================
   RESOURCES PAGE — TABS
========================================= */
.resources-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 11px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tab-btn:active::before {
    width: 300px;
    height: 300px;
    transition: width 0s, height 0s;
}

.tab-btn:hover { 
    border-color: rgba(255, 255, 255, 0.4); 
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: pageIn 0.4s ease-out; }

.resource-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    margin-bottom: 14px;
    cursor: pointer;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.event-card {
    padding: 24px;
}

.event-card h3 {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.event-card p {
    color: rgba(255,255,255,0.72);
    font-size: 0.9rem;
}

.event-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.event-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.resource-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.resource-icon.blue  { background: rgba(37,99,235,0.2);  color: #60a5fa; }
.resource-icon.pink  { background: rgba(236,72,153,0.2); color: #f472b6; }
.resource-icon.green { background: rgba(16,185,129,0.2); color: #34d399; }
.resource-icon.amber { background: rgba(245,158,11,0.2); color: #fbbf24; }

/* =========================================
   FEE TABLE
========================================= */
.fee-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

.fee-table thead tr {
    background: rgba(37,99,235,0.2);
}

.fee-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #a5b4fc;
}

.fee-table td {
    padding: 15px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--glass-border);
}

.fee-table tbody tr {
    transition: background 0.2s;
}

.fee-table tbody tr:hover { background: rgba(255,255,255,0.05); }
.fee-table tbody tr:last-child td { border-bottom: none; }

/* =========================================
   CONTACT PAGE
========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: start;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.contact-info-card:hover { background: var(--glass-bg-strong); transform: translateX(5px); }

.contact-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-icon.blue  { background: rgba(37,99,235,0.2);  color: #60a5fa; border: 1px solid rgba(37,99,235,0.3); }
.contact-icon.pink  { background: rgba(236,72,153,0.2); color: #f472b6; border: 1px solid rgba(236,72,153,0.3); }
.contact-icon.green { background: rgba(16,185,129,0.2); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.contact-icon.amber { background: rgba(245,158,11,0.2); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }

.contact-info-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.contact-info-value { font-size: 0.92rem; font-weight: 500; }
.contact-info-value a { color: #a5b4fc; }
.contact-info-value a:hover { text-decoration: underline; }

.map-wrapper {
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    height: 280px;
}

.map-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.social-btn {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: white;
    transition: var(--transition);
    cursor: pointer;
}

.social-btn:hover { background: var(--glass-bg-strong); transform: translateY(-3px); border-color: rgba(255,255,255,0.35); }



/* =========================================
   ABOUT PAGE
========================================= */
.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.stat-chip-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: #60a5fa;
    text-shadow: 0 2px 6px rgba(96, 165, 250, 0.6);
}

/* =========================================
   ACTIVITY CARDS
========================================= */
.activity-card {
    padding: 30px 24px;
    text-align: center;
    border-radius: var(--radius-card);
}

.activity-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

/* =========================================
   FOOTER
========================================= */
footer.site-footer {
    background: rgba(6, 13, 26, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 60px 24px 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto 50px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 16px;
    line-height: 1.8;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }

/* =========================================
   SCROLL REVEAL UTILITY
========================================= */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

/* Stagger siblings slightly for a natural cascade effect */
.js-enabled .reveal:nth-child(2) { transition-delay: 0.05s; }
.js-enabled .reveal:nth-child(3) { transition-delay: 0.1s; }
.js-enabled .reveal:nth-child(4) { transition-delay: 0.15s; }

.js-enabled .reveal.visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* Fallback: if JS hasn't fired within 800ms, force elements visible
   (handles cases where IntersectionObserver fires late on initial viewport) */
@keyframes revealFallback {
    to { opacity: 1; transform: translateY(0); }
}
.js-enabled .reveal {
    animation: revealFallback 0.01s 1s forwards;
}

/* =========================================
   RESULT PORTAL
========================================= */
.result-box {
    border-radius: var(--radius-card);
    padding: 30px;
    margin-top: 30px;
    display: none;
    animation: pageIn 0.4s ease-out;
    min-height: 220px;
}

.result-box.is-loading {
    display: block;
}

.result-heading {
    color: #60a5fa;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.result-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.result-divider {
    border-color: var(--glass-border);
    margin-bottom: 20px;
}

.result-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px;
    padding: 24px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.result-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.result-kicker {
    color: #93c5fd;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 700;
}

.result-badge {
    background: rgba(16,185,129,0.16);
    color: #6ee7b7;
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    background: rgba(255,255,255,0.05);
    padding: 16px;
    border-radius: 12px;
}

.result-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-weight: 600;
    margin-top: 4px;
}

.result-meta-note {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.result-actions {
    text-align: center;
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.form-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-status.success {
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.3);
    color: #34d399;
}

.topper-card {
    padding: 24px;
    text-align: center;
}

.topper-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.topper-score {
    margin-top: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 2px 6px rgba(251, 191, 36, 0.6);
}

.staff-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    color: #cbd5e1;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.result-table th, .result-table td {
    padding: 12px 16px;
    text-align: left;
}

.result-table thead tr { background: rgba(255,255,255,0.1); }
.result-table tbody tr { border-bottom: 1px solid var(--glass-border); }
.result-table tbody tr:last-child { border-bottom: none; font-weight: 700; border-top: 2px solid rgba(255,255,255,0.2); }

.grade-good { color: #34d399; }
.grade-great { color: #60a5fa; }
.result-status-text { color: #fbbf24; }

.result-loading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.result-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid rgba(96, 165, 250, 0.18);
    border-top-color: #60a5fa;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.result-loading-title {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.result-loading-text {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.result-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.result-skeleton {
    display: block;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.18), rgba(255,255,255,0.08));
    background-size: 220% 100%;
    animation: shimmer 1.2s linear infinite;
}

.result-skeleton.short { width: 44%; }
.result-skeleton.medium { width: 68%; }
.result-skeleton.long { width: 100%; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .contact-grid   { grid-template-columns: 1fr; }
    .form-row       { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.6rem; }
    .page-banner h1  { font-size: 2.2rem; }
    .result-summary { grid-template-columns: 1fr; }
    .result-card-head { flex-direction: column; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-content { padding: 32px 20px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-stats { gap: 20px; }
    .container { padding: 30px 16px; }
    .hero { min-height: 100svh; padding: 100px 16px 40px; }
    .section-subtitle { padding-left: 0; }
    .section-title { align-items: flex-start; }
    .result-table th, .result-table td { padding: 10px 8px; font-size: 0.8rem; }
    .result-box { padding: 18px; }
    .result-card { padding: 18px; }
    .result-skeleton-grid { grid-template-columns: 1fr; }
}

/* =========================================
   CURSOR GLOW
========================================= */
.cursor-glow {
    position: fixed;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    transform: translate3d(50vw, 50vh, 0);
    z-index: 0;
    margin-left: -200px;
    margin-top: -200px;
    will-change: transform;
}

.form-status.error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

.btn-icon-delete {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.25);
    color: #fca5a5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-icon-delete:hover {
    background: rgba(239,68,68,0.25);
    transform: scale(1.1);
}





/* =========================================
   MODAL (Shared across pages)
========================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    z-index: 1;
    animation: pageIn 0.4s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
   IMAGE VIEWER MODAL
========================================= */
.image-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.image-viewer-modal.active {
    display: flex;
}

.image-viewer-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: pageIn 0.4s ease-out;
}

.image-viewer-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 10001;
}

.image-viewer-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.image-viewer-caption {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 16px 32px;
    border-radius: 50px;
    color: white;
    font-size: 0.95rem;
    max-width: 80%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .image-viewer-close {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .image-viewer-caption {
        bottom: 20px;
        padding: 12px 24px;
        font-size: 0.85rem;
        max-width: 90%;
    }
}


/* =========================================
   DROPDOWN NAVIGATION
========================================= */
.nav-links li {
    position: relative;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(6, 13, 26, 0.97);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateX(4px);
}

.dropdown-menu li a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

@media (max-width: 968px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 4px;
        margin-left: 16px;
        background: rgba(255,255,255,0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0 8px;
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 300px;
        padding: 8px;
    }

    .nav-dropdown > a {
        justify-content: space-between;
        width: 100%;
    }
}



/* =========================================
   FIXED LAYOUT FOR HOMEPAGE
========================================= */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.right-sidebar > .glass-card {
    flex: 1;
    min-height: 0;
}

.notice-list {
    max-height: 380px;
    overflow-y: auto;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#events-container {
    max-height: 380px;
    overflow-y: auto;
    padding-right: 6px;
}

#events-container::-webkit-scrollbar,
.notice-list::-webkit-scrollbar { 
    width: 4px; 
}

#events-container::-webkit-scrollbar-track,
.notice-list::-webkit-scrollbar-track { 
    background: transparent; 
}

#events-container::-webkit-scrollbar-thumb,
.notice-list::-webkit-scrollbar-thumb { 
    background: var(--primary); 
    border-radius: 10px; 
}

.left-content {
    min-height: 600px;
}

@media (max-width: 900px) {
    .right-sidebar {
        position: static;
        max-height: none;
    }
    
    .notice-list,
    #events-container {
        max-height: 500px;
    }
}

/* =========================================
   FACULTY CARD (Shared - used on homepage)
========================================= */
.faculty-card {
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.faculty-card:hover {
    transform: translateY(-6px);
}

.faculty-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: white;
    flex-shrink: 0;
}



/* =========================================
   MOBILE RESPONSIVE FIXES FOR ADMISSION, FEE & RESULT
========================================= */

@media (max-width: 768px) {
    /* Force all grid layouts to single column on mobile */
    #admission > div,
    #downloads > div,
    #fee > div > div {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    /* Remove any grid-template-columns */
    #admission > div > *,
    #downloads > div > *,
    #fee > div > div > * {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Fee table wrapper - horizontal scroll */
    #fee div[style*="overflow-x"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px;
        padding: 0 20px;
    }
    
    /* Fee table - minimum width to prevent overlap */
    .fee-table {
        min-width: 600px;
        width: 100%;
        display: table;
    }
    
    .fee-table th,
    .fee-table td {
        padding: 10px 8px;
        font-size: 0.75rem;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .fee-table th {
        font-size: 0.7rem;
    }
    
    .fee-table th small,
    .fee-table td small {
        display: block;
        font-size: 0.65rem;
        margin-top: 2px;
    }
    
    /* Discount cards - stack vertically */
    #fee div[style*="grid-template-columns:1fr 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
    }
    
    #fee div[style*="grid-template-columns:1fr 1fr 1fr"] > div {
        width: 100% !important;
    }
    
    /* Form rows - Stack on mobile */
    .form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .form-row .form-group {
        width: 100% !important;
        margin-bottom: 16px;
    }
    
    /* Resource tabs */
    .resources-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 140px;
        font-size: 0.85rem;
        padding: 12px 16px;
    }
    
    .tab-btn i {
        font-size: 0.9rem;
    }
    
    /* Resource cards in downloads */
    .resource-card {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .fee-table {
        min-width: 550px;
    }
    
    .fee-table th,
    .fee-table td {
        padding: 8px 6px;
        font-size: 0.7rem;
    }
    
    .fee-table th {
        font-size: 0.65rem;
    }
    
    .tab-btn {
        flex: 1 1 100%;
        font-size: 0.8rem;
        padding: 10px 12px;
    }
    
    /* Smaller cards on mobile */
    .glass-card {
        padding: 16px !important;
    }
    
    .section-title h2 {
        font-size: 1.2rem;
    }
    
    .section-title i {
        font-size: 1.1rem;
    }
    
    /* Adjust section title padding */
    .section-title + p[style*="padding-left"] {
        padding-left: 0 !important;
    }
}

/* =========================================
   RESULT PAGE MOBILE ENHANCEMENTS
========================================= */

@media (max-width: 768px) {
    /* Result table - Make it responsive */
    .result-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .result-table thead,
    .result-table tbody,
    .result-table tr {
        display: table;
        width: 100%;
    }
    
    .result-table th,
    .result-table td {
        min-width: 80px;
    }
    
    /* Result header info */
    .result-header {
        flex-direction: column;
        text-align: center;
    }
    
    .result-header > div {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .result-table th,
    .result-table td {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
    
    .result-table th {
        font-size: 0.7rem;
    }
}
