/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Colors matching the Logo */
    --primary: #0071bc;          /* Logo Royal Blue */
    --primary-light: #0b5fa4;    /* Slightly lighter blue */
    --primary-rgb: 0, 113, 188;
    --accent: #f15a24;           /* Logo Coral Orange */
    --accent-dark: #d54d19;      /* Darker Coral Orange */
    --accent-light: #fdebe5;     /* Very light orange tint */
    --secondary: #79b443;        /* Logo Green */
    --secondary-dark: #639534;   /* Darker Green */
    --white: #ffffff;
    --bg-light: #f4f6f8;         /* Soft light background */
    --bg-card: #ffffff;
    --text-main: #2d3748;        /* Dark grey text */
    --text-muted: #718096;       /* Light grey text */
    --text-light: #f7fafc;       /* Off-white text */
    --success: #79b443;          /* Green matches logo */
    --danger: #ef4444;           /* Red alert */
    --pink: #ec4899;             /* Love heart color */
    --yellow: #ffffff;           /* Changed to White per client request */
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --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-glow: 0 0 15px rgba(245, 158, 11, 0.3);
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-yellow { color: var(--yellow) !important; }
.text-white-opacity { color: rgba(255, 255, 255, 0.8) !important; }
.text-pink { color: var(--pink) !important; }
.d-none { display: none !important; }

/* Background Watermarks */
.bg-watermark {
    position: absolute;
    color: var(--primary);
    opacity: 0.03; /* 3% opacity is standard for high-end web portal watermark elements */
    pointer-events: none;
    z-index: 0;
    transform: rotate(-15deg);
    transition: var(--transition);
}

.bg-watermark svg {
    display: block;
    width: 100%;
    height: 100%;
    animation: watermarkFloat 6s ease-in-out infinite;
}

@keyframes watermarkFloat {
    0% { transform: translateY(0) rotate(-15deg); }
    50% { transform: translateY(-8px) rotate(-12deg); }
    100% { transform: translateY(0) rotate(-15deg); }
}

/* Grid systems */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(11, 37, 69, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
}
.btn-secondary:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(241, 90, 36, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}
.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%) !important;
    color: var(--white) !important;
    border: none;
}
.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 132, 228, 0.3);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--border-radius);
}

/* Sections Global Styles */
section {
    padding: 90px 0;
    position: relative;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 800;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* ==========================================================================
   1. TOP INFO BAR
   ========================================================================== */
.top-bar {
    background-color: var(--primary-light);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 24px;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-info i {
    color: var(--accent);
}

.top-social {
    display: flex;
    gap: 16px;
}

.top-social a {
    color: var(--text-light);
    opacity: 0.8;
}

.top-social a:hover {
    color: var(--accent);
    opacity: 1;
    transform: scale(1.1);
}

/* ==========================================================================
   2. MAIN HEADER & NAVBAR
   ========================================================================== */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.school-logo {
    animation: rotateLogo 20s linear infinite;
}

.school-logo:hover {
    animation-play-state: paused;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.school-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.school-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-dark);
    letter-spacing: 3px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-dark);
}

.btn-nav-cta {
    padding: 8px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.school-logo-img {
    height: 52px;
    width: 52px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background-color: var(--white);
    padding: 2px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.logo-area:hover .school-logo-img {
    transform: rotate(360deg);
    border-color: var(--accent);
}

/* Header Contact Widget */
.header-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
    animation: phonePulse 2s infinite;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.contact-text strong {
    font-size: 0.95rem;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
}

@keyframes phonePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); box-shadow: 0 0 10px rgba(241, 90, 36, 0.3); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   3. HERO BANNER SECTION
   ========================================================================== */
.hero-section {
    height: calc(100vh - 120px);
    min-height: 550px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    padding: 0;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    transform: scale(1);
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 32, 96, 0.75) 100%);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    animation: kenBurns 16s ease-in-out infinite;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-top: -30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-text-area {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(241, 90, 36, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-dot-square {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    display: inline-block;
    border-radius: 2px;
    animation: pulseGlow 1.5s infinite;
}

.hero-title {
    font-size: 3.25rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

/* Watch Video Button & Pulse Circles */
.btn-play-video {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-play-video:hover {
    color: var(--accent);
}

.play-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(241, 90, 36, 0.4);
    transition: var(--transition);
}

.btn-play-video:hover .play-circle {
    transform: scale(1.1);
    background-color: var(--accent-dark);
    box-shadow: 0 6px 20px rgba(241, 90, 36, 0.6);
}

.play-circle::before,
.play-circle::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: playPulse 2s linear infinite;
    pointer-events: none;
}

.play-circle::after {
    animation-delay: 1s;
}

@keyframes playPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Wave Divider SVG */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 3;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.hero-wave .shape-fill {
    fill: var(--bg-light);
}

/* Marquee Bar */
.marquee-bar {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    padding: 12px 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    z-index: 5;
    position: relative;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.marquee-bar marquee {
    display: block;
    vertical-align: middle;
}

/* ==========================================================================
   4. KEY HIGHLIGHTS / STATS COUNTER
   ========================================================================== */
.stats-section {
    padding: 50px 0;
    background-color: var(--bg-light);
    margin-top: -10px;
    z-index: 4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.stat-card {
    text-align: center;
    position: relative;
    padding: 30px 20px;
    background-color: var(--bg-light);
    border: 1.5px solid #e2e8f0;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    background-color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 113, 188, 0.15), 0 0 15px rgba(241, 90, 36, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 16px;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.15);
    color: var(--secondary);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 8px;
}

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

/* ==========================================================================
   5. ABOUT US SECTION
   ========================================================================== */
.about-section {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-area {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    padding-right: 30px;
    padding-bottom: 30px;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 85%;
    height: 85%;
    border: 5px solid var(--accent);
    border-radius: var(--border-radius);
    z-index: 1;
}

.about-main-img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    width: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: 50px;
    left: -20px;
    background-color: var(--primary);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 4px solid var(--accent);
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.experience-badge .exp-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.about-text-area {
    display: flex;
    flex-direction: column;
}

.about-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.about-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon-mini {
    background-color: var(--accent-light);
    color: var(--accent-dark);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.about-feature-item h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.about-feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   PRINCIPAL MESSAGE MODAL
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(30px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.principal-modal-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.principal-desig {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.modal-body p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 16px;
    text-align: justify;
}

.modal-closing {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

/* ==========================================================================
   6. ACADEMIC PROGRAMS SECTION
   ========================================================================== */
.programs-section {
    background-color: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.program-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.program-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.program-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .program-img-wrapper img {
    transform: scale(1.1);
}

.program-icon {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background-color: var(--accent);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 2;
    border: 3px solid var(--bg-light);
}

.program-info {
    padding: 30px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-info h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.program-age {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.program-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.program-highlights {
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
}

.program-highlights li {
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.program-highlights li i {
    color: var(--success);
}

/* ==========================================================================
   7. WHY CHOOSE US / FEATURES SECTION
   ========================================================================== */
.features-section {
    background-color: var(--primary);
    color: var(--white);
    background-image: linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 24px;
    display: inline-block;
}

.feature-card h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ==========================================================================
   8. ADMISSIONS & ENQUIRY FORM SECTION
   ========================================================================== */
.admissions-section {
    background-color: var(--bg-light);
}

.admissions-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: flex-start;
}

.admissions-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-item {
    display: flex;
    gap: 20px;
}

.step-num {
    background-color: var(--primary);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.step-detail h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.step-detail p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Enquiry Form Card */
.enquiry-form-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid #e2e8f0;
}

.form-header {
    margin-bottom: 24px;
}

.form-header h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.enquiry-form-card label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.enquiry-form-card label .required {
    color: var(--danger);
}

.enquiry-form-card input,
.enquiry-form-card select,
.enquiry-form-card textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid #cbd5e1;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
}

.enquiry-form-card input:focus,
.enquiry-form-card select:focus,
.enquiry-form-card textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Form validation states styling */
.enquiry-form-card input.valid,
.enquiry-form-card select.valid {
    border-color: var(--success);
}

.enquiry-form-card input.invalid,
.enquiry-form-card select.invalid {
    border-color: var(--danger);
    background-color: #fef2f2;
}

.error-msg {
    color: var(--danger);
    font-size: 0.75rem;
    margin-top: 4px;
    display: none;
}

.error-msg.visible {
    display: block;
}

/* Captcha area */
.captcha-box {
    background-color: var(--bg-light);
    border: 1px dashed #cbd5e1;
    padding: 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.captcha-box label {
    margin-bottom: 0;
}

.captcha-box input {
    width: 120px;
    padding: 8px 12px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.88rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.alert-success {
    background-color: #ecfdf5;
    color: var(--success);
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background-color: #fef2f2;
    color: var(--danger);
    border: 1px solid #fca5a5;
}

/* ==========================================================================
   9. CAMPUS GALLERY (FILTERABLE & LIGHTBOX)
   ========================================================================== */
.gallery-section {
    background-color: var(--white);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.gallery-filter-btn {
    background-color: var(--bg-light);
    border: 1px solid #cbd5e1;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 240px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.2));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 24px;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-text h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.overlay-text span {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
}

.gallery-zoom-icon {
    background-color: var(--accent);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

/* Lightbox Modal Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--white);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3100;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3100;
}

.lightbox-arrow:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.arrow-left { left: 40px; }
.arrow-right { right: 40px; }

.lightbox-content {
    max-width: 80%;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    color: var(--white);
    margin-top: 20px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    text-align: center;
    font-weight: 500;
}

/* ==========================================================================
   10. FACULTY & LEADERSHIP SECTION
   ========================================================================== */
.faculty-section {
    background-color: var(--bg-light);
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.faculty-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.faculty-img-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.faculty-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.faculty-card:hover .faculty-img-wrapper img {
    transform: scale(1.05);
}

.faculty-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
    background-image: linear-gradient(to top, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0));
    transition: var(--transition);
}

.faculty-card:hover .faculty-social {
    bottom: 0;
}

.faculty-social a {
    background-color: var(--accent);
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
}

.faculty-social a:hover {
    background-color: var(--white);
    color: var(--primary);
}

.faculty-info {
    padding: 24px 20px;
    text-align: center;
}

.faculty-info h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.faculty-info .designation {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.faculty-info .motto {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ==========================================================================
   11. TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    background-color: var(--primary);
    background-image: linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95)), url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.testimonial-slider-container {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

.testimonial-slider {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease-in-out;
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.testimonial-content-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    backdrop-filter: blur(5px);
}

.stars {
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    gap: 4px;
}

.testimonial-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-user img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--accent);
}

.user-info h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.user-info span {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Slider Controls */
.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -20px;
    width: calc(100% + 40px);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.slider-arrow {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 2.2rem;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition);
}

.slider-arrow:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background-color: var(--accent);
    width: 24px;
    border-radius: 50px;
}

/* ==========================================================================
   12. FOOTER SECTION
   ========================================================================== */
.footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0 0;
    border-top: 4px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent);
}

.about-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.about-col .footer-logo h4 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
}

.about-col .footer-logo span {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
}

.footer-desc {
    font-size: 0.88rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.footer-social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.footer-social-links a:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.links-col ul a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.contact-list li {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
    font-size: 0.88rem;
}

.contact-list i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.newsletter-col p {
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    position: relative;
    margin-bottom: 12px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--white);
    font-size: 0.88rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 38px;
    height: 38px;
    background-color: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--accent-dark);
    color: var(--white);
}

.newsletter-feedback {
    font-size: 0.75rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom {
    background-color: #0b0f19;
    padding: 24px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Video Modal Styling */
.video-modal-content {
    max-width: 800px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-modal-content .modal-close {
    color: var(--white);
    top: -40px;
    right: 0;
}

/* Screen readers accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   NEW SECTIONS: WHY CHOOSE, FACILITIES, EVENTS, NEWS, CONTACT, PRINCIPAL
   ========================================================================== */

/* Section 2: Welcome Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.highlight-card {
    background-color: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}
.highlight-card i {
    font-size: 1.8rem;
    color: var(--secondary);
    background-color: var(--accent-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.highlight-card h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--primary);
}
.highlight-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Section 3: Why Choose Our School */
.why-choose-section {
    background-color: var(--white);
}
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.why-choose-card {
    background-color: var(--bg-light);
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
}
.why-choose-card:hover {
    background-color: var(--white);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.why-choose-icon-wrapper {
    background-color: var(--primary);
    color: var(--accent);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px auto;
    transition: var(--transition);
}
.why-choose-card:hover .why-choose-icon-wrapper {
    background-color: var(--accent);
    color: var(--primary);
    transform: rotate(360deg);
}
.why-choose-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--primary);
}
.why-choose-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Section 5: Academics Features Bar */
.academics-features-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    margin-top: 40px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}
.academics-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.academics-feature-item i {
    font-size: 1.5rem;
    color: var(--accent);
}
.academics-feature-item span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
}

/* Section 6: Facilities Grid */
.facilities-section {
    background-color: var(--bg-light);
}
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.facility-card {
    background-color: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}
.facility-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.facility-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.facility-card:hover .facility-img img {
    transform: scale(1.1);
}
.facility-desc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 37, 69, 0.9);
    color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: var(--transition);
    font-size: 0.88rem;
    line-height: 1.5;
}
.facility-card:hover .facility-desc-overlay {
    opacity: 1;
}
.facility-info-bar {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--white);
    border-top: 1px solid #cbd5e1;
}
.facility-info-bar i {
    font-size: 1.3rem;
    color: var(--secondary);
}
.facility-info-bar h3 {
    font-size: 1.05rem;
    margin-bottom: 0;
    color: var(--primary);
}

/* Section 7: Events & Activities */
.events-section {
    background-color: var(--white);
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.event-card {
    background-color: var(--bg-light);
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.btn-event-view i {
    transition: var(--transition);
}
.btn-event-view:hover i {
    transform: translateX(4px);
}
.event-img-wrapper {
    height: 180px;
    position: relative;
    overflow: hidden;
}
.event-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: var(--shadow-sm);
}
.event-info {
    padding: 20px;
}
.event-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary);
}
.event-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Section 8: Principal Message Dedicated Section */
.principal-section {
    background-color: var(--white);
    position: relative;
    border-top: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
}
.principal-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 50px;
    align-items: center;
}
.principal-photo-wrapper {
    position: relative;
}
.principal-photo-frame {
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    z-index: 2;
    aspect-ratio: 4/5;
}
.principal-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.principal-photo-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--accent);
    border-radius: var(--border-radius);
    z-index: 1;
}
.principal-message-content {
    padding: 20px 0;
}
.principal-quote-icon {
    font-size: 3rem;
    color: rgba(var(--primary-rgb), 0.08);
    line-height: 1;
    margin-bottom: 10px;
}
.principal-message-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 24px;
    text-align: justify;
}
.principal-signature h4 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 4px;
}
.principal-signature span {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
}

/* Section 13: Latest News & Announcements */
.news-section {
    background-color: var(--white);
}
.news-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 40px;
}
.news-hero-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    border: 1px solid #cbd5e1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.news-hero-img {
    height: 220px;
    overflow: hidden;
}
.news-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-hero-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-badge {
    background-color: var(--secondary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 12px;
}
.news-hero-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary);
}
.news-hero-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}
.news-list-container {
    background-color: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    max-height: 480px;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}
.news-list-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.news-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.news-date-box {
    background-color: var(--primary);
    color: var(--white);
    width: 65px;
    height: 65px;
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.news-date-box .day {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}
.news-date-box .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}
.news-details {
    flex-grow: 1;
}
.news-details h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--primary);
    line-height: 1.4;
}
.news-details h4 a:hover {
    color: var(--secondary);
}
.news-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}
.news-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 4px;
}

/* Section 14: Contact Us & Map */
.contact-section {
    background-color: var(--bg-light);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}
.branches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.branch-card {
    background-color: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.branch-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.branch-header h3 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0;
}
.branch-badge {
    background-color: var(--accent);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.branch-body {
    padding: 20px;
}
.branch-offering {
    display: block;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.branch-address {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}
.branch-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 12px;
}
.branch-contacts a {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.branch-contacts a:hover {
    color: var(--accent);
}
.contact-social-icons {
    display: flex;
    gap: 12px;
}
.contact-social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}
.contact-social-icons a:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}
.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 400px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Dual Maps Grid for Contact Page */
.dual-maps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
}
.map-card {
    transition: var(--transition);
}
.map-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--secondary) !important;
}
@media (max-width: 767px) {
    .dual-maps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes rotateLogo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* ==========================================================================
   NAV DROPDOWN SYSTEM
   ========================================================================== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-dropdown .dropdown-toggle i {
    font-size: 0.75rem;
    transition: var(--transition);
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--white);
    min-width: 280px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #cbd5e1;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent var(--white) transparent;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: var(--accent-light);
    color: var(--accent-dark);
    padding-left: 24px;
}

/* Show on desktop hover */
@media (min-width: 992px) {
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* ==========================================================================
   SUBPAGE LAYOUT COMPONENTS
   ========================================================================== */
.page-banner {
    padding: 120px 0 70px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.page-banner-title {
    font-size: 2.8rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 18px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumbs .current {
    color: var(--white);
}

/* Subpage inner layout */
.subpage-container {
    padding: 80px 0;
}

/* Timetable & Syllabus Styles */
.timetable-wrapper {
    margin-bottom: 50px;
}

.timetable-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 5px solid var(--accent);
    padding-left: 12px;
}

.timetable-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.timetable-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    min-width: 600px;
}

.timetable-table th {
    background-color: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: left;
    padding: 16px 20px;
}

.timetable-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-main);
    font-size: 0.95rem;
}

.timetable-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.timetable-table tr:hover {
    background-color: #f1f5f9;
}

.badge-pdf {
    background-color: #ef4444;
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Download Cards Grid */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.download-card {
    background-color: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.download-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.download-icon {
    font-size: 2.5rem;
    color: #ef4444;
    margin-bottom: 20px;
}

.download-card h4 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.download-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.5;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
}

/* FAQ Accordions */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--accent-light);
    color: var(--accent-dark);
}

.faq-question i {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 28px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-question {
    background-color: rgba(0, 113, 188, 0.04);
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 16px 28px 28px 28px;
    border-top: 1px solid #cbd5e1;
    transition: max-height 0.5s ease-in-out, padding 0.3s ease;
}

/* Testimonials Subpage Grids */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonials-grid .testimonial-slide {
    display: block;
    opacity: 1;
    transform: none;
    position: static;
}

.testimonials-grid .testimonial-content-card {
    background-color: var(--white);
    border: 1px solid #cbd5e1;
    box-shadow: var(--shadow-md);
}

.testimonials-grid .testimonial-text {
    color: var(--text-main);
}

.testimonials-grid .user-info h4 {
    color: var(--primary);
}

.testimonials-grid .user-info span {
    color: var(--text-muted);
}

/* Legal Policy Layouts */
.legal-card {
    background-color: var(--white);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin: 0 auto;
    max-width: 950px;
    border: 1px solid #e2e8f0;
}

.legal-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-top: 35px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    font-weight: 700;
}

.legal-card p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 18px;
    line-height: 1.7;
}

.legal-card ul {
    list-style-type: disc;
    padding-left: 24px;
    margin-bottom: 24px;
}

.legal-card li {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Quick Action card hover styles */
.quick-btn-card {
    transition: var(--transition);
}
.quick-btn-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
    background-color: var(--white) !important;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

/* Laptop Screens (under 1200px) */
@media (max-width: 1199px) {
    .container { max-width: 960px; }
    .hero-title { font-size: 2.75rem; }
    .stats-grid { padding: 30px 20px; }
    .stat-number { font-size: 2.2rem; }
    .about-grid { gap: 40px; }
    .programs-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .faculty-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .why-choose-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .facilities-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .events-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* Tablet Screens (under 992px) */
@media (max-width: 991px) {
    .container { max-width: 720px; }
    section { padding: 70px 0; }
    
    /* Navigation Bar Mobile Layout */
    .menu-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 40px 40px 40px;
        transition: var(--transition);
        z-index: 1050;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }
    
    .btn-nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    /* Toggle icon state active */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Dropdown Styles on Mobile */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background-color: #f8fafc;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease-out;
    }
    
    .dropdown-menu.open {
        max-height: 600px;
        padding: 8px 0;
        margin-top: 8px;
        border-left: 3px solid var(--accent);
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown-menu a {
        padding: 10px 16px;
        font-size: 0.95rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-dropdown .dropdown-toggle i {
        margin-left: 5px;
    }
    
    /* Hero & Sections */
    .hero-section { height: calc(85vh); }
    .hero-title { font-size: 2.25rem; }
    .hero-description { font-size: 1.05rem; }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 24px 16px;
    }
    .stat-card {
        padding: 20px 10px;
    }
    .stat-number {
        font-size: 2.2rem;
    }
    
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrapper { max-width: 500px; margin: 0 auto; }
    
    .admissions-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    
    .lightbox-arrow { width: 44px; height: 44px; font-size: 1.1rem; }
    .arrow-left { left: 16px; }
    .arrow-right { right: 16px; }
    
    .d-none-md { display: none !important; }
    
    .principal-grid { grid-template-columns: 1fr; gap: 30px; }
    .news-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .why-choose-grid { grid-template-columns: repeat(2, 1fr); }
    .facilities-grid { grid-template-columns: repeat(2, 1fr); }
    .events-grid { grid-template-columns: repeat(2, 1fr); }

    /* Subpage Responsive Grids for Tablet */
    .download-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .legal-card { padding: 35px; }
    .page-banner { padding: 100px 0 50px 0; }
    .page-banner-title { font-size: 2.2rem; }
    /* Quick Notices Grid tablet responsive overrides */
    .quick-notices-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
}

/* Mobile Screens (under 768px) */
@media (max-width: 767px) {
    .container { padding: 0 16px; }
    section { padding: 50px 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 12px; }
    .section-subtitle { font-size: 0.8rem; }
    
    /* Top Bar adjustments */
    .top-bar-container { flex-direction: column; gap: 8px; text-align: center; }
    .top-info { flex-direction: column; gap: 4px; }
    
    /* Hero Section */
    .hero-section { height: 430px !important; min-height: 400px !important; padding-bottom: 20px !important; }
    .hero-title { font-size: 1.9rem; }
    .hero-buttons { flex-direction: column; gap: 10px; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .btn-play-video { margin-bottom: 16px; }
    
    /* stats counter */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 20px 12px;
    }
    .stat-card {
        padding: 16px 8px;
    }
    .stat-card:last-child {
        grid-column: span 2;
    }
    .stat-number {
        font-size: 2rem;
    }
    
    /* Contact Branches */
    .branches-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Program & features cards */
    .programs-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .faculty-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }

    /* Contact page mobile fix */
    .contact-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
    .branches-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

    /* Academics feature bar — vertical stack on mobile */
    .academics-features-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px 20px;
    }
    .academics-feature-item {
        gap: 14px;
    }
    .academics-feature-item i {
        font-size: 1.8rem;
        min-width: 32px;
        text-align: center;
    }
    .academics-feature-item span {
        font-size: 1rem;
    }
    
    .enquiry-form-card { padding: 24px 16px; }
    .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
    .captcha-box { flex-direction: column; align-items: stretch; gap: 10px; }
    .captcha-box input { width: 100%; }
    
    .testimonial-slider-container { padding: 0 10px; }
    .testimonial-slider { height: auto; min-height: 380px; }
    .testimonial-content-card { padding: 24px 16px; }
    .testimonial-text { font-size: 0.95rem; margin-bottom: 20px; }
    .slider-arrows { display: none; } /* relies on dot navigation on mobile */
    
    /* Footer layout */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom-container { flex-direction: column; gap: 8px; text-align: center; }
    
    .modal-content { padding: 24px 16px; }
    .modal-header { flex-direction: column; text-align: center; gap: 12px; }
    
    .highlights-grid { grid-template-columns: 1fr; }
    .why-choose-grid { grid-template-columns: 1fr; }
    .facilities-grid { grid-template-columns: 1fr; }
    .events-grid { grid-template-columns: 1fr; }

    /* Subpage Mobile Overrides */
    .download-grid { grid-template-columns: 1fr; gap: 16px; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
    .legal-card { padding: 24px 16px; }
    .page-banner { padding: 80px 0 40px 0; }
    .page-banner-title { font-size: 1.8rem; }
    /* Quick Action buttons mobile grid responsive override */
    .quick-links-buttons-grid { grid-template-columns: 1fr !important; gap: 15px !important; }
}

/* STICKY FLOATERS */
.sticky-floaters-left {
    position: fixed;
    bottom: 30px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.floater-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.floater-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floater-call {
    background-color: var(--primary);
    border: 2px solid var(--white);
    animation: pulseCall 2.5s infinite;
}

.floater-whatsapp {
    background-color: #25D366;
    border: 2px solid var(--white);
    animation: pulseWa 2.5s infinite 1.2s;
}

@keyframes pulseCall {
    0% { box-shadow: 0 0 0 0 rgba(0, 32, 96, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(0, 32, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 32, 96, 0); }
}

@keyframes pulseWa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* BACK TO TOP */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.1);
    text-decoration: none;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(241, 90, 36, 0.3);
}

/* BLOG CARD GRID 3-COLUMN */
.blog-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.blog-card-banner {
    height: 210px;
    overflow: hidden;
    position: relative;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    margin-top: auto;
}

.blog-card-author {
    font-size: 0.82rem;
    color: var(--text-main);
    font-weight: 600;
}

.blog-card-author i {
    color: var(--accent);
    margin-right: 4px;
}

.blog-card-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.blog-card-link:hover {
    color: var(--accent-dark);
    gap: 8px;
}

@media (max-width: 991px) {
    .blog-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .blog-grid-3 {
        grid-template-columns: 1fr;
    }
    .sticky-floaters-left {
        bottom: 20px;
        left: 15px;
    }
    .back-to-top-btn {
        bottom: 20px;
        right: 15px;
    }
    .floater-btn {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
    }
    .back-to-top-btn {
        width: 44px;
        height: 44px;
    }
}

/* ============================================================
   NOTICE BOARD — VERTICAL TICKER (scrolling upward)
   ============================================================ */
.notice-ticker-wrapper {
    overflow: hidden;
    max-height: 260px;
    position: relative;
}

.notice-ticker-wrapper:hover .notice-ticker-inner {
    animation-play-state: paused;
}

.notice-ticker-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: noticeTicker 18s linear infinite;
}

@keyframes noticeTicker {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Pulsing red dot for Live Updates */
.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    animation: livePulse 1.4s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}

@keyframes livePulse {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0   rgba(239, 68, 68, 0.7); }
    50%  { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(239, 68, 68, 0); }
}

/* ============================================================
   TABLET NAV FIX — prevent overflow on 768–991px
   ============================================================ */
@media (min-width: 768px) and (max-width: 991px) {
    .nav-list {
        flex-wrap: wrap;
        gap: 4px 8px;
    }
    .nav-item {
        flex-shrink: 0;
    }
    .nav-link {
        font-size: 0.82rem;
        padding: 8px 10px;
    }
    /* Ensure mobile dropdown works on tablet too */
    .dropdown-menu.open {
        display: block !important;
        position: static;
        box-shadow: none;
        background: transparent;
        padding: 4px 0 4px 12px;
    }
}

/* ============================================================
   GLOBAL OVERFLOW FIX — prevent horizontal scrollbar on all pages
   ============================================================ */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ============================================================
   ABOUT PAGE: CORE VALUES & SCHOOL TIMELINE
   ============================================================ */
.core-values-section {
    background-color: var(--white);
    padding: 90px 0;
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.core-value-card {
    border-radius: var(--border-radius);
    padding: 40px 30px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
}

.core-value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.core-value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    z-index: -1;
    transition: var(--transition);
}

.core-value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition);
}

.core-value-card:hover .core-value-icon {
    transform: scale(1.15) rotate(5deg);
}

.core-value-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    color: var(--white);
}

.core-value-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* History Timeline Styles */
.history-section {
    background-color: var(--bg-light);
    padding: 90px 0;
}

.about-timeline {
    position: relative;
    max-width: 850px;
    margin: 40px auto 0 auto;
    padding: 20px 0;
}

/* Central vertical line */
.about-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item-left {
    flex-direction: row;
}

.timeline-item-right {
    flex-direction: row-reverse;
}

/* Timeline dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.15rem;
    z-index: 2;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--primary);
    color: var(--white);
    border-color: var(--accent);
    transform: translateX(-50%) scale(1.1);
}

/* Timeline content card */
.timeline-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    width: calc(50% - 50px);
    position: relative;
    transition: var(--transition);
}

.timeline-item:hover .timeline-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Triangle pointers */
.timeline-card::after {
    content: '';
    position: absolute;
    top: 24px;
    border-style: solid;
    display: block;
    width: 0;
    height: 0;
}

.timeline-item-left .timeline-card::after {
    right: -12px;
    border-width: 12px 0 12px 12px;
    border-color: transparent transparent transparent var(--white);
}

.timeline-item-right .timeline-card::after {
    left: -12px;
    border-width: 12px 12px 12px 0;
    border-color: transparent var(--white) transparent transparent;
}

/* Card details */
.timeline-year {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(241, 90, 36, 0.2);
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.timeline-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Milestones & Core Values */
@media (max-width: 767px) {
    .core-values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-timeline::before {
        left: 20px;
        transform: none;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-bottom: 35px;
    }
    
    .timeline-dot {
        left: 20px;
        transform: none;
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        top: 15px;
    }
    
    .timeline-item:hover .timeline-dot {
        transform: scale(1.1);
    }
    
    .timeline-card {
        width: calc(100% - 60px);
        margin-left: 60px;
        padding: 20px;
    }
    
    .timeline-card::after {
        left: -10px !important;
        right: auto !important;
        border-width: 10px 10px 10px 0 !important;
        border-color: transparent var(--white) transparent transparent !important;
        top: 24px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .core-values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}


