@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* =========================================
   DESIGN SYSTEM & VARIABLES
   ========================================= */
:root {
    /* Color Palette */
    --primary: #1E3A8A;
    --primary-light: #3B82F6;
    --primary-dark: #172554;
    --secondary: #C79820;
    --secondary-light: #E6C15C;
    --secondary-dark: #8C6811;
    --dark: #0F172A;
    --dark-muted: #334155;
    --light: #F8FAFC;
    --light-alt: #F1F5F9;
    --white: #FFFFFF;
    
    /* Semantic Colors */
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing System */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-xxl: 4rem;
    
    /* Layout Constants */
    --header-height: 80px;
    --ticker-height: 40px;
    --container-width: 1200px;
    
    /* Borders & Shadows */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-premium: 0 20px 25px -5px rgba(30, 58, 138, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   BASE RESET & LAYOUT
   ========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--dark-muted);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: var(--font-body);
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-padding {
    padding: var(--space-xxl) 0;
}

.bg-light {
    background-color: var(--light);
}

.bg-primary {
    background-color: var(--primary);
    color: var(--white);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light-alt);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* =========================================
   TYPOGRAPHY & UTILITIES
   ========================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--dark-muted); opacity: 0.8; }
.font-serif { font-family: var(--font-heading); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid { display: grid; }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Grid Columns */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1200px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Section Header Utility */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-sm);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: var(--radius-full);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--dark-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    gap: var(--space-sm);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--dark);
    box-shadow: 0 4px 10px rgba(199, 152, 32, 0.2);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(199, 152, 32, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background-color: var(--light);
    transform: translateY(-2px);
}

/* =========================================
   TOP HEADER TICKER BAR
   ========================================= */
.ticker-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    font-size: 0.85rem;
    height: var(--ticker-height);
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid var(--secondary);
    z-index: 100;
}

.ticker-bar-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-label {
    background-color: var(--secondary);
    color: var(--dark);
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    position: relative;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    width: 0;
    height: 0;
    border-top: calc(var(--ticker-height) / 2) solid transparent;
    border-bottom: calc(var(--ticker-height) / 2) solid transparent;
    border-left: 10px solid var(--secondary);
}

.ticker-content-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.ticker-content {
    display: flex;
    align-items: center;
    position: absolute;
    white-space: nowrap;
    height: 100%;
    will-change: transform;
    animation: tickerLoop 25s linear infinite;
    padding-left: 20px;
}

.ticker-item {
    padding-right: 50px;
    display: flex;
    align-items: center;
}

.ticker-item span {
    color: var(--secondary-light);
    margin-right: 8px;
    font-weight: 600;
}

@keyframes tickerLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-content:hover {
    animation-play-state: paused;
}

.top-contact-hours {
    display: none !important;
}

/* =========================================
   MAIN HEADER / FIXED NAVIGATION
   ========================================= */
body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--dark-muted);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-header {
    background-color: var(--white);
    height: var(--header-height);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
    transition: var(--transition-normal);
}

.main-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

/* School Logo Branding */
.school-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img {
    height: 55px;
    width: auto;
    transition: var(--transition-normal);
}

.main-header.scrolled .logo-img {
    height: 48px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.school-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.school-motto {
    font-size: 0.75rem;
    color: var(--dark-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-muted);
    padding: var(--space-sm) 0.5rem;
    position: relative;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: var(--space-md);
    right: var(--space-md);
    height: 2px;
    background-color: var(--secondary);
    transform: scaleX(0);
    transition: var(--transition-fast);
    transform-origin: bottom right;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Dropdown Menu Style */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    border-top: 3px solid var(--primary);
    z-index: 1000;
}

.dropdown-menu-right {
    left: auto !important;
    right: 0 !important;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.6rem var(--space-lg);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-muted);
    transition: var(--transition-fast);
}

.dropdown-link:hover {
    background-color: var(--light-alt);
    color: var(--primary);
    padding-left: calc(var(--space-lg) + 5px);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1130;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.mobile-nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1200px) {
    .mobile-nav-toggle {
        display: flex;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 85vw);
        max-width: calc(100vw - 20px);
        height: 100vh;
        height: 100dvh;
        background-color: var(--white);
        box-shadow: -5px 0 25px rgba(0,0,0,0.2);
        flex-direction: column;
        align-items: flex-start;
        padding: 4.5rem 1.25rem 2rem;
        transition: right var(--transition-slow);
        z-index: 1120;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-menu .nav-item {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem 0.5rem;
        color: var(--dark);
        border-bottom: 1px solid var(--light-alt);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-top: none;
        padding-left: 0.75rem;
        display: none;
        border-left: 2px solid var(--primary-light);
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
        background: var(--light);
        border-radius: var(--radius-sm);
    }
    
    .nav-item-dropdown.active-drop .dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .main-header {
        height: 65px;
    }
    .header-container {
        padding: 0 12px;
        gap: 8px;
    }
    .school-logo {
        gap: 8px;
        max-width: calc(100% - 45px);
    }
    .logo-img {
        height: 42px !important;
    }
    .school-name {
        font-size: 1.05rem !important;
        line-height: 1.1;
    }
    .school-motto {
        font-size: 0.65rem !important;
    }
}

@media (max-width: 380px) {
    .school-name {
        font-size: 0.92rem !important;
    }
    .school-motto {
        display: none;
    }
}

/* Mobile Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   HERO / BANNER COMPONENT
   ========================================= */
.hero {
    position: relative;
    height: calc(100vh - var(--header-height) - var(--ticker-height));
    min-height: 500px;
    background-color: var(--dark);
    color: var(--white);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(23, 37, 84, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--space-lg);
    transform: translateY(30px);
    opacity: 0;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-badge {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    line-height: 1.15;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    gap: var(--space-md);
}

/* Slider Controls */
.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-fast);
}

.hero-control:hover {
    background-color: var(--secondary);
    color: var(--dark);
}

.hero-prev { left: var(--space-lg); }
.hero-next { right: var(--space-lg); }

/* Banner pages (shorter version of hero) */
.page-banner {
    position: relative;
    padding: var(--space-xxl) 0;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(90, 12, 14, 0.9) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: var(--space-xs);
}

.breadcrumbs {
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumbs span {
    margin: 0 var(--space-xs);
}

@media (max-width: 768px) {
    .hero { min-height: 400px; height: 70vh; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 0.95rem; margin-bottom: var(--space-md); }
    .hero-ctas { flex-direction: column; gap: var(--space-sm); }
    .hero-ctas .btn { width: 100%; justify-content: center; padding: 0.85rem 1.25rem; }
    .hero-badge { font-size: 0.75rem; padding: var(--space-xs) var(--space-sm); }
    .hero-control { width: 40px; height: 40px; font-size: 0.85rem; }
    .hero-prev { left: var(--space-sm); }
    .hero-next { right: var(--space-sm); }
    .page-banner { padding: var(--space-xl) 0; }
    .page-banner h1 { font-size: 1.75rem; }
    .breadcrumbs { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .hero { min-height: 350px; height: 60vh; }
    .hero h1 { font-size: 1.65rem; }
    .hero p { font-size: 0.9rem; }
    .page-banner h1 { font-size: 1.5rem; }
    .hero-content { padding: 0 var(--space-sm); }
}

/* =========================================
   FEATURED SECTIONS
   ========================================= */

/* Notice Board & Circulars */
.announcements-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
}

@media (max-width: 900px) {
    .announcements-grid {
        grid-template-columns: 1fr;
    }
}

.notice-board {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    border-top: 4px solid var(--primary);
    overflow: hidden;
    height: 100%;
}

.notice-header {
    background-color: var(--light);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--light-alt);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-header h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-list {
    padding: var(--space-lg);
    max-height: 400px;
    overflow-y: auto;
}

.notice-item {
    display: flex;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--light-alt);
    transition: var(--transition-fast);
}

.notice-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.notice-item:hover {
    transform: translateX(5px);
}

.notice-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    color: var(--white);
    border-radius: var(--radius-md);
    min-width: 65px;
    height: 65px;
    font-weight: 700;
}

.notice-date span:first-child {
    font-size: 1.25rem;
    line-height: 1;
}

.notice-date span:last-child {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.notice-text h4 {
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: 4px;
}

.notice-text p {
    font-size: 0.85rem;
}

/* Quick Info / Spotlight */
.info-card {
    background-color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary);
    transition: var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.info-card:hover::before {
    background-color: var(--primary);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

/* Welcome Segment */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xxl);
    align-items: center;
}

.welcome-image {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.welcome-image img {
    border-radius: var(--radius-lg);
    transition: var(--transition-slow);
}

.welcome-image:hover img {
    transform: scale(1.03);
}

.welcome-badge {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
    background-color: rgba(30, 58, 138, 0.9);
    backdrop-filter: blur(5px);
    color: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--secondary);
}

.welcome-badge span {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.welcome-text h3 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.welcome-text p {
    margin-bottom: var(--space-md);
}

@media (max-width: 900px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

/* =========================================
   KEY STATS DASHBOARD
   ========================================= */
.stats {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: var(--space-xxl) 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(199, 152, 32, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: var(--space-sm);
    font-family: var(--font-body);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   TESTIMONIALS SLIDER
   ========================================= */
.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform var(--transition-slow);
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: var(--space-lg);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--dark);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
    position: relative;
}

.testimonial-quote::before {
    content: '“';
    font-size: 4rem;
    color: var(--secondary-light);
    position: absolute;
    top: -2.5rem;
    left: -2rem;
    font-family: Georgia, serif;
    opacity: 0.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    border: 2px solid var(--secondary);
    object-fit: cover;
}

.testimonial-info {
    text-align: left;
}

.testimonial-name {
    font-weight: 700;
    color: var(--dark);
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--dark-muted);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background-color: var(--light-alt);
    cursor: pointer;
    transition: var(--transition-fast);
}

.testimonial-dot.active {
    background-color: var(--primary);
    width: 25px;
}

/* =========================================
   ACCORDION (FAQs)
   ========================================= */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-alt);
    overflow: hidden;
    transition: var(--transition-normal);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-header {
    width: 100%;
    padding: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: left;
    color: var(--dark);
    background: none;
}

.accordion-icon {
    font-size: 1.25rem;
    transition: transform var(--transition-normal);
    color: var(--primary);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
    padding: 0 var(--space-lg);
    background-color: var(--light);
}

.accordion-item.active .accordion-content {
    padding: 0 var(--space-lg) var(--space-lg);
}

/* =========================================
   ADMISSIONS & ENQUIRY FORM
   ========================================= */
.admission-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xxl);
}

@media (max-width: 900px) {
    .admission-grid {
        grid-template-columns: 1fr;
    }
}

.admission-info-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--primary);
    height: fit-content;
}

.checklist-title {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
    border-bottom: 2px solid var(--light-alt);
    padding-bottom: var(--space-sm);
}

.checklist-item {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.checklist-item i {
    color: var(--success);
    margin-top: 4px;
}

/* Multi-step Form */
.form-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-premium);
    border-top: 5px solid var(--secondary);
}

.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--light-alt);
    z-index: 1;
    transform: translateY(-50%);
}

.form-step-progress {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary);
    z-index: 2;
    transform: translateY(-50%);
    transition: width var(--transition-normal);
}

.form-step {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--white);
    border: 3px solid var(--light-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark-muted);
    position: relative;
    z-index: 3;
    transition: var(--transition-normal);
}

.form-step.active {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--white);
}

.form-step.completed {
    border-color: var(--primary);
    background-color: var(--white);
    color: var(--primary);
}

.form-step-section {
    display: none;
}

.form-step-section.active {
    display: block;
    animation: fadeIn var(--transition-normal);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-alt);
    background-color: var(--light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(123, 17, 19, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-xl);
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: var(--space-xs);
    display: none;
}

.form-success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xxl) var(--space-xl);
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideUp var(--transition-normal);
}

.modal-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: var(--space-md);
}

/* =========================================
   ACADEMICS & TABS SYSTEM
   ========================================= */
.tabs-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.tabs-list {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid var(--light-alt);
    gap: var(--space-xl);
}

.tab-btn {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-muted);
    padding: var(--space-md) var(--space-lg);
    position: relative;
    transition: var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn var(--transition-normal);
}

.academic-panel-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

@media (max-width: 900px) {
    .academic-panel-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

/* Curriculum Subject Cards */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.subject-card {
    background-color: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-alt);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.subject-icon {
    font-size: 1.5rem;
    color: var(--primary);
    background-color: var(--light);
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.subject-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
}

/* =========================================
   GALLERY WITH LIGHTBOX
   ========================================= */
.gallery-filter-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background-color: var(--light);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--light-alt);
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(123, 17, 19, 0.4) 100%);
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    color: var(--white);
    z-index: 2;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 2px;
}

.gallery-caption {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-caption {
    color: var(--white);
    text-align: center;
    margin-top: var(--space-md);
    font-size: 1.1rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--secondary);
}

/* =========================================
   CONTACT DETAILS & INTERACTIVE CONTENT
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: var(--space-xxl);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-info-item {
    display: flex;
    gap: var(--space-md);
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--primary);
    background-color: var(--light);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    font-family: var(--font-body);
}

/* Custom styled Map Card */
.map-card {
    height: 350px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light-alt);
    position: relative;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: var(--space-xxl) 0 0;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xxl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: 1.5fr 1fr 1.2fr;
    }
}
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-xs);
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.footer-brand {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-contact-info li {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-info i {
    color: var(--secondary);
    margin-top: 4px;
}

.newsletter-form {
    display: flex;
    gap: var(--space-xs);
}

.newsletter-input {
    flex: 1;
    padding: 0.6rem var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-btn {
    background-color: var(--secondary);
    color: var(--dark);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-fast);
}

.newsletter-btn:hover {
    background-color: var(--secondary-light);
}

.footer-bottom {
    padding: var(--space-lg) 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--secondary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--secondary-light);
    text-decoration: underline;
}

.footer-bottom-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.footer-bottom-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-map {
    margin-top: var(--space-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-map iframe {
    display: block;
}

@media (max-width: 768px) {
    .footer-bottom-inner {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
    .footer-bottom-inner p {
        font-size: 0.78rem;
    }
    .footer-map iframe {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .footer-bottom-inner p {
        font-size: 0.72rem;
    }
    .footer-map iframe {
        height: 100px;
    }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    border-radius: var(--radius-lg);
    background-color: var(--light);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(123, 17, 19, 0.12);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background-color: rgba(123, 17, 19, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-size: 1.35rem;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 90px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.16);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    z-index: 995;
}

.back-to-top:hover {
    transform: translateY(-4px);
    opacity: 0.95;
}

.developer-credit {
    color: var(--secondary);
    font-weight: 700;
    margin-top: 0.35rem;
}

.footer-credit-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-credit-wrap {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   KEYFRAME ANIMATIONS
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeIn var(--transition-slow) forwards;
}

.animate-slide {
    animation: slideUp var(--transition-slow) forwards;
}

/* =========================================
   COMPREHENSIVE RESPONSIVE OVERRIDES
   ========================================= */

/* Tablet Portrait (601-768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 65px;
        --space-xxl: 2.5rem;
    }
    .container { padding: 0 var(--space-md); }
    .section-padding { padding: var(--space-xl) 0; }
    .section-header h2 { font-size: 1.85rem; }
    .section-header p { font-size: 0.95rem; }
    .btn { padding: 0.7rem 1.25rem; font-size: 0.9rem; }
    .welcome-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .welcome-text h2,
    .welcome-text h3 { font-size: 1.6rem !important; }
    .stat-number { font-size: 2.5rem; }
    .stat-label { font-size: 0.9rem; }
    .tabs-list { gap: var(--space-sm); flex-wrap: wrap; }
    .tab-btn { font-size: 0.95rem; padding: var(--space-sm) var(--space-md); }
    .academic-panel-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .admission-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .announcements-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .ticker-label { font-size: 0.7rem; padding: 0 0.6rem; letter-spacing: 0.5px; }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --header-height: 60px;
        --ticker-height: 35px;
        --space-xxl: 2rem;
    }
    html { font-size: 15px; }
    .container { padding: 0 var(--space-sm); }
    .section-header h2 { font-size: 1.5rem; }
    .section-header p { font-size: 0.85rem; }
    .section-header { margin-bottom: var(--space-lg); }
    .info-card { padding: var(--space-lg); }
    .info-icon { font-size: 2rem; }
    .info-card h3 { font-size: 1.1rem; }
    .notice-header { padding: var(--space-md); flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
    .notice-header h3 { font-size: 1.15rem; }
    .notice-date { min-width: 50px; height: 50px; }
    .notice-date span:first-child { font-size: 1rem; }
    .welcome-badge { bottom: var(--space-sm); right: var(--space-sm); padding: var(--space-sm); }
    .welcome-badge span { font-size: 1rem; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.8rem; letter-spacing: 0.5px; }
    .testimonial-quote { font-size: 1.05rem; }
    .testimonial-quote::before { font-size: 2.5rem; top: -1.5rem; left: -0.5rem; }
    .footer-top { grid-template-columns: 1fr; gap: var(--space-lg); }
    .footer-col h3 { font-size: 1.1rem; margin-bottom: var(--space-md); }
    .footer-brand { font-size: 1.25rem; }
    .footer-bottom { font-size: 0.75rem; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .footer-credit-wrap { align-items: center; text-align: center; }
    .newsletter-form { flex-direction: column; }
    .newsletter-input { width: 100%; }
    .newsletter-btn { width: 100%; padding: 0.7rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .form-card { padding: var(--space-lg); }
    .form-row { grid-template-columns: 1fr; }
    .form-navigation { flex-direction: column-reverse; gap: var(--space-sm); }
    .form-navigation .btn { width: 100%; justify-content: center; }
    .form-steps { gap: 0; }
    .checklist-title { font-size: 1.1rem; }
    .map-card { height: 250px; }
    .back-to-top { width: 42px; height: 42px; right: 16px; bottom: 76px; }
    .ticker-label { font-size: 0.65rem; padding: 0 0.5rem; }
    .ticker-bar { font-size: 0.75rem; }
    .accordion-header { padding: var(--space-md); font-size: 0.95rem; }
}

/* Small phones (max-width: 360px) */
@media (max-width: 360px) {
    html { font-size: 14px; }
    .school-name { font-size: 1rem; }
    .school-motto { font-size: 0.65rem; }
    .logo-img { height: 40px; }
    .hero h1 { font-size: 1.4rem; }
    .section-header h2 { font-size: 1.3rem; }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero { min-height: 300px; height: 50vh; }
    .page-banner { padding: var(--space-lg) 0; }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-link { padding: var(--space-md); }
    .btn { min-height: 44px; }
    .filter-btn { min-height: 44px; padding: 0.6rem 1.25rem; }
    .gallery-overlay { opacity: 1; background: linear-gradient(0deg, rgba(15, 23, 42, 0.7) 0%, transparent 50%); }
    .info-card:hover { transform: none; }
    .feature-card:hover { transform: none; }
}

/* =========================================
   ADDMISSION BANNER RIBBON (NEW)
   ========================================= */
.admission-banner {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
    color: var(--dark);
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
}

.admission-banner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.admission-banner-text {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.05rem;
}

.admission-banner-text i {
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .admission-banner-container {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    .admission-banner-text {
        flex-direction: column;
        gap: var(--space-sm);
        font-size: 0.95rem;
    }
}

/* =========================================
   RESPONSIVE TABLES & CONTAINERS
   ========================================= */
table {
    width: 100%;
}

@media (max-width: 768px) {
    table th, table td {
        padding: var(--space-sm) !important;
        font-size: 0.8rem;
    }
}

/* =========================================
   LAPTOP NAVIGATION MEDIA QUERY
   ========================================= */
@media (min-width: 1201px) and (max-width: 1440px) {
    .nav-menu {
        gap: 0.3rem;
    }
    .nav-link {
        font-size: 0.8rem;
        padding: 0.25rem 0.35rem;
    }
    .school-name {
        font-size: 1.15rem;
    }
    .logo-img {
        height: 42px;
    }
}

/* =========================================
   MOBILE MENU EXPANSION ROTATION
   ========================================= */
@media (max-width: 1200px) {
    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav-link i {
        padding: 0.5rem;
        margin-right: -0.5rem;
        transition: transform var(--transition-normal);
    }
    .nav-item-dropdown.active-drop > .nav-link i {
        transform: rotate(180deg);
    }
}

/* =========================================
   MOBILE DROPDOWN LIST STYLING (NEW)
   ========================================= */
@media (max-width: 1200px) {
    .dropdown-menu .dropdown-link {
        font-size: 0.95rem;
        padding: 0.55rem var(--space-xl) !important;
        color: var(--dark-muted) !important;
        opacity: 0.85;
        border-bottom: 1px dashed var(--light-alt);
        transition: padding var(--transition-fast);
    }
    .dropdown-menu .dropdown-link:last-child {
        border-bottom: none;
    }
    .dropdown-menu .dropdown-link:hover {
        padding-left: calc(var(--space-xl) + 5px) !important;
        color: var(--primary) !important;
    }
}

/* =========================================
   MOBILE BRANDING RESPONSIVENESS (NEW)
   ========================================= */
@media (max-width: 768px) {
    .logo-img {
        height: 45px;
    }
    .school-name {
        font-size: 1.15rem;
    }
    .school-motto {
        font-size: 0.7rem;
    }
}

/* =========================================
   TOP CONTACT BAR (Science College Nanded Style)
   ========================================= */
.top-contact-bar {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1200;
    position: relative;
}

.top-contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.top-contact-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.top-contact-item {
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.top-contact-item:hover {
    color: var(--secondary-light);
}

.top-contact-item i {
    color: var(--secondary);
    font-size: 0.78rem;
}

.top-contact-right {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.top-social-links {
    display: flex;
    gap: var(--space-sm);
}

.top-social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
}

.top-social-links a:hover {
    background-color: var(--secondary);
    color: var(--dark);
    border-color: var(--secondary);
}

.admin-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
}

.admin-login-btn:hover {
    background-color: var(--secondary);
    color: var(--dark);
    border-color: var(--secondary);
}

.admin-login-btn i {
    font-size: 0.72rem;
}

@media (max-width: 768px) {
    .top-contact-bar {
        font-size: 0.75rem;
    }
    .top-contact-left {
        gap: var(--space-sm);
    }
    .top-contact-hours {
        display: none;
    }
    .top-contact-right {
        gap: var(--space-sm);
    }
    .top-social-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .top-contact-container {
        flex-direction: column;
        gap: 4px;
    }
    .top-contact-left {
        justify-content: center;
    }
}

/* =========================================
   WHY CHOOSE US CARDS
   ========================================= */
.why-card {
    background-color: var(--white);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--light-alt);
    position: relative;
    overflow: hidden;
}

.why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.why-card:hover::after {
    transform: scaleX(1);
}

.why-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.why-card h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.why-card p {
    font-size: 0.9rem;
    color: var(--dark-muted);
    line-height: 1.6;
}

/* =========================================
   COMMUNITY / LEADER CARDS
   ========================================= */
.leader-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    text-align: center;
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    transition: var(--transition-normal);
    border: 1px solid var(--light-alt);
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.leader-img-wrapper {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto var(--space-md);
    border: 4px solid var(--secondary-light);
    box-shadow: 0 4px 15px rgba(199, 152, 32, 0.2);
}

.leader-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-info h4 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.leader-role {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   CALL & WHATSAPP FLOATING ACTION BUTTONS
   ========================================= */
.call-float {
    position: fixed !important;
    bottom: 24px;
    left: 24px;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.35);
    transition: var(--transition-normal);
    z-index: 99999 !important;
}

.call-float:hover {
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.45);
}

.whatsapp-float {
    position: fixed !important;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    background-color: #25D366;
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: var(--transition-normal);
    z-index: 99999 !important;
}

.whatsapp-float:hover {
    color: var(--white);
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.back-to-top {
    position: fixed !important;
    right: 24px;
    bottom: 90px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.16);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    z-index: 99999 !important;
}

.back-to-top:hover {
    transform: translateY(-4px);
    opacity: 0.95;
}

@media (max-width: 768px) {
    .call-float {
        bottom: 18px;
        left: 16px;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .whatsapp-float {
        bottom: 18px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        right: 16px;
        bottom: 76px;
    }
}

@media (max-width: 768px) {
    .call-float {
        bottom: 18px;
        left: 16px;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .whatsapp-float {
        bottom: 18px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}

/* =========================================
   ADMISSION OPEN FLOATING BADGE (subtle)
   ========================================= */
.admission-float-badge {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 900;
    transition: var(--transition-normal);
    animation: pulseBadge 2s ease-in-out infinite;
}

.admission-float-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-premium);
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(30, 58, 138, 0.5); }
}

@media (max-width: 768px) {
    .admission-float-badge {
        bottom: 16px;
        left: 16px;
        padding: 8px 14px;
        font-size: 0.72rem;
    }
}

/* =========================================
   INNER PAGE CONTENT SECTIONS (shared)
   ========================================= */
.content-section {
    padding: var(--space-xxl) 0;
}

.content-section:nth-child(even) {
    background-color: var(--light);
}

.content-block {
    max-width: 900px;
    margin: 0 auto;
}

.content-block h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 3px solid var(--secondary);
    display: inline-block;
}

.content-block p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-muted);
    margin-bottom: var(--space-md);
    text-align: justify;
}

.placeholder-content {
    background-color: var(--light-alt);
    border: 2px dashed var(--primary-light);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    color: var(--primary);
    font-weight: 500;
    font-style: italic;
}

/* Tabbed Interface (for Academics page) */
.tabs-container {
    margin-top: var(--space-xl);
}

.tab-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--light-alt);
    margin-bottom: var(--space-xl);
}

.tab-btn {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-muted);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.tab-btn:hover {
    color: var(--primary);
    background-color: var(--light);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Timeline (for history section) */
.principal-message-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) 1.3fr;
    gap: var(--space-xxl);
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary);
}

.principal-profile { text-align: center; align-self: center; }

.principal-profile img {
    display: block;
    width: min(100%, 250px);
    aspect-ratio: 4 / 5;
    margin: 0 auto var(--space-md);
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.principal-profile-caption h3 { margin-bottom: 3px; font-size: 1.15rem; }
.principal-profile-caption p { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.principal-message-content { display: flex; flex-direction: column; justify-content: center; }
.principal-message-content p { color: var(--dark-muted); line-height: 1.8; margin-bottom: var(--space-md); text-align: justify; }

.principal-message-content blockquote {
    margin: var(--space-lg) 0;
    padding: var(--space-md) var(--space-lg);
    border-left: 4px solid var(--secondary);
    background: var(--light);
    color: var(--dark);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.7;
    text-align: left;
}

.principal-signature { display: flex; flex-direction: column; color: var(--primary); }
.principal-signature span { color: var(--dark-muted); font-size: 0.9rem; }
.timeline {
    position: relative;
    max-width: 800px;
    margin: var(--space-xl) auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-xl);
    padding-left: var(--space-lg);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 4px;
    width: 14px;
    height: 14px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.timeline-year {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.timeline-item h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.timeline-item p {
    font-size: 0.9rem;
    color: var(--dark-muted);
    line-height: 1.6;
}

/* Facility Cards Grid */
.facility-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--light-alt);
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-light);
}

.facility-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto var(--space-md);
}

.facility-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
    font-family: var(--font-body);
    font-weight: 600;
}

.facility-card p {
    font-size: 0.9rem;
    color: var(--dark-muted);
}

/* Admission Document List */
.doc-list {
    list-style: none;
    padding: 0;
}

.doc-list li {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--light-alt);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    font-size: 0.95rem;
    color: var(--dark-muted);
    line-height: 1.6;
}

.doc-list li:last-child {
    border-bottom: none;
}

.doc-list li i {
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    padding: var(--space-md);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Filter Buttons */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid var(--light-alt);
    border-radius: var(--radius-full);
    background: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: var(--space-xl);
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--radius-md);
}

.lightbox-caption {
    color: var(--white);
    margin-top: var(--space-md);
    font-size: 1rem;
}

.lightbox-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xxl);
}

.contact-info-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-info-item i {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-info-item p {
    font-size: 0.9rem;
    color: var(--dark-muted);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Card Styling */
.form-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl);
    border-top: 4px solid var(--primary);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem var(--space-md);
    border: 1px solid var(--light-alt);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    background-color: var(--light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   COMPREHENSIVE RESPONSIVE: NEW COMPONENTS
   ========================================= */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .why-card {
        padding: var(--space-lg) var(--space-md);
    }
    .why-icon {
        font-size: 2rem;
    }
    .leader-img-wrapper {
        width: 120px;
        height: 120px;
    }
    .timeline {
        padding-left: 30px;
    }
    .timeline::before {
        left: 10px;
    }
    .timeline-item::before {
        left: -24px;
        width: 12px;
        height: 12px;
    }
}

/* Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .grid-2 {
        grid-template-columns: 1fr !important;
    }
    .leader-card {
        padding: var(--space-lg) var(--space-md);
    }
    .leader-img-wrapper {
        width: 110px;
        height: 110px;
    }
    .facility-card {
        padding: var(--space-lg);
    }
    .facility-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .content-block h2 {
        font-size: 1.6rem;
    }
    .content-block p {
        font-size: 0.95rem;
        text-align: left;
    }
    .placeholder-content {
        padding: var(--space-lg);
        font-size: 0.9rem;
    }
    .tab-nav {
        gap: 2px;
    }
    .tab-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.85rem;
    }
    .doc-list li {
        font-size: 0.9rem;
    }
    .contact-info-item i {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .filter-bar {
        gap: 6px;
    }
    .filter-btn {
        padding: 6px var(--space-md);
        font-size: 0.8rem;
    }
    .admission-banner-container {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    .admission-banner-text {
        flex-direction: column;
        gap: var(--space-sm);
        font-size: 0.95rem;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr !important;
    }
    .why-card {
        padding: var(--space-md);
    }
    .why-icon {
        font-size: 1.8rem;
        margin-bottom: var(--space-sm);
    }
    .why-card h4 {
        font-size: 1rem;
    }
    .why-card p {
        font-size: 0.85rem;
    }
    .leader-card {
        padding: var(--space-md);
    }
    .leader-img-wrapper {
        width: 100px;
        height: 100px;
    }
    .leader-info h4 {
        font-size: 0.95rem;
    }
    .leader-role {
        font-size: 0.75rem;
    }
    .facility-card {
        padding: var(--space-md);
    }
    .facility-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    .facility-card h3 {
        font-size: 1rem;
    }
    .facility-card p {
        font-size: 0.85rem;
    }
    .tab-nav {
        flex-direction: column;
        border-bottom: none;
        gap: 4px;
    }
    .tab-btn {
        width: 100%;
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
        padding: var(--space-sm) var(--space-md);
        background-color: var(--light);
        border-radius: var(--radius-sm);
    }
    .tab-btn.active {
        border-bottom: none;
        border-left-color: var(--primary);
        background-color: var(--white);
    }
    .timeline {
        padding-left: 25px;
    }
    .timeline::before {
        left: 8px;
        width: 2px;
    }
    .timeline-item::before {
        left: -20px;
        width: 10px;
        height: 10px;
    }
    .timeline-item {
        padding-left: var(--space-md);
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-img {
        max-width: 95%;
        max-height: 70vh;
    }
    .lightbox-close {
        top: var(--space-md);
        right: var(--space-md);
        font-size: 1.5rem;
    }
    .content-block h2 {
        font-size: 1.4rem;
    }
    .placeholder-content {
        padding: var(--space-md);
        font-size: 0.85rem;
    }
    .doc-list li {
        font-size: 0.85rem;
        gap: var(--space-sm);
    }
}



/* ==========================================================================
   Pre-Primary Activities Page Styles
   ========================================================================== */

.activities-container {
    padding: var(--space-xl) 0;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.activity-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    height: 100%;
}

.activity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Carousel Styles */
.activity-carousel-wrapper {
    position: relative;
    height: 260px;
    background: #e9ecef;
    overflow: hidden;
}

.activity-carousel-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    cursor: pointer;
}

.activity-carousel-slide.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.3s, transform 0.2s;
    z-index: 10;
}

.carousel-control:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: var(--space-sm);
}

.carousel-control.next {
    right: var(--space-sm);
}

.carousel-dots {
    position: absolute;
    bottom: var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: var(--white);
    width: 12px;
    border-radius: var(--radius-full);
}

/* Activity Details */
.activity-details {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.activity-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.category-celebration { background: #fff3cd; color: #856404; }
.category-cognitive { background: #cce5ff; color: #004085; }
.category-creative { background: #d4edda; color: #155724; }
.category-motor { background: #f8d7da; color: #721c24; }
.category-wellness { background: #e2e3e5; color: #383d41; }
.category-language { background: #e8dbfc; color: #6f42c1; }

.activity-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.activity-title i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.activity-description {
    font-size: 0.9rem;
    color: var(--dark-alt);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

/* Card Class Tabs */
.activity-card-tabs {
    display: flex;
    border-bottom: 1px solid var(--light-alt);
    margin-bottom: var(--space-md);
    gap: var(--space-xs);
}

.activity-card-tab {
    border: none;
    background: none;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-alt);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.activity-card-tab:hover {
    color: var(--primary);
}

.activity-card-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.activity-tab-content {
    display: none;
}

.activity-tab-content.active {
    display: block;
    animation: fadeIn 0.4s;
}

/* Class Info/Craft Note */
.craft-note {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
    border-left: 2px solid var(--secondary);
    padding-left: var(--space-xs);
}

.activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: var(--space-sm);
    border-top: 1px solid #f1f3f5;
}

.activity-tag {
    background: #f1f3f5;
    color: #495057;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }
    .activity-carousel-wrapper {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .principal-message-card { grid-template-columns: 1fr; gap: var(--space-lg); padding: var(--space-lg); }
    .principal-profile img { width: 190px; }
}

/* =========================================
   ADMIN LOGIN MODAL
   ========================================= */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.admin-modal {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-modal-overlay.active .admin-modal {
    transform: translateY(0) scale(1);
}

.admin-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.admin-modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.admin-modal-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.admin-modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.admin-modal-header h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0 0 0.3rem;
    font-weight: 700;
}

.admin-modal-header p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

/* ─── Login Form ─────────────────────────── */
.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.admin-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

.admin-form-group label i {
    color: #6b7280;
    margin-right: 4px;
    font-size: 0.8rem;
}

.admin-form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #f9fafb;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.admin-form-group input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admin-form-group input::placeholder {
    color: #9ca3af;
}

.admin-password-wrapper {
    position: relative;
}

.admin-password-wrapper input {
    padding-right: 3rem;
}

.admin-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.95rem;
    padding: 4px;
    transition: color 0.2s;
}

.admin-password-toggle:hover {
    color: #2563eb;
}

/* ─── Error Message ──────────────────────── */
.admin-login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shakeError 0.4s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ─── Submit Button ──────────────────────── */
.admin-login-submit {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 0.3rem;
}

.admin-login-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.admin-login-submit:active:not(:disabled) {
    transform: translateY(0);
}

.admin-login-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ─── Modal Footer ───────────────────────── */
.admin-modal-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.admin-modal-footer p {
    color: #9ca3af;
    font-size: 0.75rem;
    margin: 0;
}

.admin-modal-footer i {
    color: #10b981;
    margin-right: 4px;
}

/* =========================================
   ADMIN LOGGED-IN STATE (Top Bar)
   ========================================= */
.admin-login-btn.admin-logged-in {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: white !important;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
}

.admin-login-btn.admin-logged-in:hover {
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

/* ─── Admin Dropdown Menu ────────────────── */
.admin-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.admin-dropdown-menu.active {
    opacity: 1;
    transform: translateY(0);
}

.admin-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 1.2rem;
    font-size: 0.85rem;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.admin-dropdown-item:hover {
    background: #f3f4f6;
}

.admin-dropdown-info {
    cursor: default;
}

.admin-dropdown-info:hover {
    background: transparent;
}

.admin-dropdown-info i {
    font-size: 1.8rem;
    color: #2563eb;
}

.admin-dropdown-info div {
    display: flex;
    flex-direction: column;
}

.admin-dropdown-info strong {
    font-size: 0.9rem;
    color: #1e293b;
}

.admin-dropdown-info small {
    font-size: 0.75rem;
    color: #9ca3af;
}

.admin-dropdown-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 0;
}

.admin-dropdown-logout {
    color: #dc2626;
}

.admin-dropdown-logout:hover {
    background: #fef2f2;
}

.admin-dropdown-logout i {
    color: #dc2626;
}

/* =========================================
   ADMIN TOAST NOTIFICATIONS
   ========================================= */
.admin-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10001;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-toast.active {
    opacity: 1;
    transform: translateY(0);
}

.admin-toast-success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.admin-toast-info {
    background: linear-gradient(135deg, #1e3a5f, #3b82f6);
}

.admin-toast-error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* ─── Mobile Responsive ──────────────────── */
@media (max-width: 480px) {
    .admin-modal {
        padding: 2rem 1.5rem 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .admin-toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }

    .admin-dropdown-menu {
        min-width: 200px;
    }
}

/* =========================================
   ADMIN DASHBOARD STYLES
   ========================================= */
.admin-dashboard-body {
    background-color: #f8fafc;
    min-height: 100vh;
    color: #1e293b;
}

.dashboard-nav {
    background: #1e3a8a;
    color: white;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.dashboard-brand img {
    height: 40px;
    width: auto;
}

.dashboard-brand span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.dashboard-nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.system-health-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.system-health-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
}

.system-health-pill.degraded .dot {
    background-color: #ef4444;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 65px);
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-sidebar {
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 1.5rem 1rem;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 1.5rem;
}

.sidebar-item button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.sidebar-item button i.nav-icon {
    width: 22px;
    font-size: 1rem;
    color: #64748b;
    transition: color 0.2s;
}

.sidebar-item button .nav-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.sidebar-item button:hover {
    background: #f1f5f9;
    color: #1e3a8a;
}

.sidebar-item button:hover i.nav-icon {
    color: #1e3a8a;
}

.sidebar-item button.active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.sidebar-item button.active i.nav-icon {
    color: #1d4ed8;
}

.nav-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.sidebar-item button.active .nav-badge {
    background: #dbeafe;
    color: #1e40af;
}

.dashboard-main {
    padding: 2rem;
    overflow-y: auto;
}

.dashboard-header-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dashboard-header-block h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.blue { background: #dbeafe; color: #1d4ed8; }
.stat-icon.gold { background: #fef3c7; color: #b45309; }
.stat-icon.green { background: #d1fae5; color: #047857; }
.stat-icon.purple { background: #f3e8ff; color: #6b21a8; }

.stat-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.stat-details p {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 2px;
}

.content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header-bar {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-title h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.search-filter-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
}

.search-input-wrapper input {
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
    width: 220px;
    transition: border-color 0.2s;
}

.search-input-wrapper input:focus {
    border-color: #3b82f6;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #334155;
    outline: none;
    background: white;
}

.btn-primary-action {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    border: none;
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.admin-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}

.admin-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.admin-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background-color: #f8fafc;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-neutral { background: #f1f5f9; color: #475569; }

.action-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.btn-icon.edit:hover { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.btn-icon.delete:hover { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.btn-icon.toggle:hover { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }

.pagination-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 0.85rem;
    color: #64748b;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid #cbd5e1;
    background: white;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:not(:disabled):hover {
    background: #f1f5f9;
}

/* Dashboard Modal Forms */
.dashboard-modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
}

.dashboard-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.dashboard-form-full {
    grid-column: span 2;
}

.dashboard-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dashboard-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.dashboard-form-group input,
.dashboard-form-group select,
.dashboard-form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.dashboard-form-group input:focus,
.dashboard-form-group select:focus,
.dashboard-form-group textarea:focus {
    border-color: #2563eb;
}

.dashboard-modal-container {
    max-width: 650px !important;
}

/* =========================================
   ADMIN DASHBOARD RESPONSIVE STYLES
   ========================================= */
@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .dashboard-sidebar {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 1rem 0.75rem;
    }

    .sidebar-title {
        display: none;
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        gap: 6px;
        scrollbar-width: none;
    }

    .sidebar-menu::-webkit-scrollbar {
        display: none;
    }

    .sidebar-item button {
        white-space: nowrap;
        padding: 0.5rem 0.85rem;
        font-size: 0.82rem;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    .sidebar-item button.active {
        background: #eff6ff;
        border-color: #bfdbfe;
    }

    .dashboard-main {
        padding: 1rem 0.75rem;
    }

    .card-header-bar {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .search-filter-box {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .search-input-wrapper {
        grid-column: span 2;
        width: 100%;
    }

    .filter-select {
        grid-column: span 2;
        width: 100%;
    }

    .search-filter-box .btn-primary-action {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 0.85rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 600px) {
    .dashboard-nav-container {
        padding: 0.6rem 0.85rem;
        flex-wrap: wrap;
        gap: 8px;
    }

    .dashboard-brand {
        font-size: 1rem;
    }

    .dashboard-brand img {
        height: 32px;
    }

    .dashboard-nav-right {
        gap: 6px;
        width: 100%;
        justify-content: space-between;
        margin-top: 4px;
        padding-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .system-health-pill {
        font-size: 0.7rem;
        padding: 2px 8px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .stat-card {
        padding: 0.85rem;
        gap: 0.65rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        border-radius: 8px;
    }

    .stat-details h3 {
        font-size: 1.25rem;
    }

    .stat-details p {
        font-size: 0.75rem;
    }

    .admin-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.65rem 0.75rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .pagination-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        text-align: center;
        padding: 0.85rem;
    }

    .dashboard-modal-container {
        width: 95vw !important;
        max-width: 95vw !important;
        padding: 1.25rem !important;
        margin: 10px auto;
    }

    .dashboard-form-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }
}

