/* --- Page Banner --- */
.page-banner {
    background: linear-gradient(135deg, rgba(30,115,190,0.92), rgba(0,0,0,0.75));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30,115,190,0.92), rgba(0,0,0,0.75));
    z-index: 0;
}

.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(30,115,190,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(221,51,51,0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: cover, cover, 100px 100px;
    z-index: 0;
    opacity: 0.5;
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

/* Page-specific banner backgrounds */
.page-banner.about-banner { background-image: linear-gradient(135deg, rgba(30,115,190,0.9), rgba(0,0,0,0.7)), url('../images/hero-bg.mp4'); }
.page-banner.staff-banner { background-image: linear-gradient(135deg, rgba(30,115,190,0.9), rgba(0,0,0,0.7)), url('../images/hero-bg.mp4'); }
.page-banner.principal-banner { background-image: linear-gradient(135deg, rgba(30,115,190,0.9), rgba(0,0,0,0.7)), url('../images/hero-bg.mp4'); }
.page-banner.admission-banner { background-image: linear-gradient(135deg, rgba(221,51,51,0.9), rgba(30,115,190,0.8)), url('../images/hero-bg.mp4'); }
.page-banner.entrance-banner { background-image: linear-gradient(135deg, rgba(221,51,51,0.9), rgba(30,115,190,0.8)), url('../images/hero-bg.mp4'); }
.page-banner.fees-banner { background-image: linear-gradient(135deg, rgba(39,174,96,0.9), rgba(30,115,190,0.8)), url('../images/hero-bg.mp4'); }
.page-banner.house-banner { background-image: linear-gradient(135deg, rgba(142,68,173,0.9), rgba(30,115,190,0.8)), url('../images/hero-bg.mp4'); }
.page-banner.ncc-banner { background-image: linear-gradient(135deg, rgba(30,115,190,0.9), rgba(39,174,96,0.8)), url('../images/hero-bg.mp4'); }
.page-banner.ipsc-banner { background-image: linear-gradient(135deg, rgba(243,156,18,0.9), rgba(30,115,190,0.8)), url('../images/hero-bg.mp4'); }
.page-banner.school-life-banner { background-image: linear-gradient(135deg, rgba(52,152,219,0.9), rgba(30,115,190,0.8)), url('../images/hero-bg.mp4'); }
.page-banner.resources-banner { background-image: linear-gradient(135deg, rgba(142,68,173,0.9), rgba(30,115,190,0.8)), url('../images/hero-bg.mp4'); }
.page-banner.epfo-banner { background-image: linear-gradient(135deg, rgba(30,115,190,0.9), rgba(0,0,0,0.7)), url('../images/hero-bg.mp4'); }
.page-banner.payment-banner { background-image: linear-gradient(135deg, rgba(221,51,51,0.9), rgba(30,115,190,0.8)), url('../images/hero-bg.mp4'); }
.page-banner.faculty-banner { background-image: linear-gradient(135deg, rgba(30,115,190,0.9), rgba(0,0,0,0.7)), url('../images/hero-bg.mp4'); }
.page-banner.assignments-banner { background-image: linear-gradient(135deg, rgba(39,174,96,0.9), rgba(30,115,190,0.8)), url('../images/hero-bg.mp4'); }

.page-banner h1 {
    color: var(--white);
    font-size: 44px;
    margin-bottom: 12px;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.4);
}

.page-banner p {
    opacity: 0.95;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    margin-top: 15px;
    font-size: 13px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--white);
    text-decoration: underline;
}

.breadcrumb span {
    color: rgba(255,255,255,0.6);
    margin: 0 5px;
}/* ========================================
   Kittur Sainik School - Main Stylesheet
   "In Pursuit of Excellence"
   Inspired by Apple's design language
   ======================================== */

/* --- CSS Variables / Theme --- */
:root {
    --primary: #1e73be;
    --primary-dark: #155a9c;
    --primary-light: #4a8fd4;
    --accent: #dd3333;
    --accent-hover: #b02828;
    --accent-light: #ff6b6b;
    --dark: #161819;
    --dark-bg: #212222;
    --footer-bg: #313131;
    --footer-bottom: #2d2d2d;
    --text: #333333;
    --text-light: #6b6b6b;
    --bg-light: #f5f5f7;
    --bg-card: #ffffff;
    --white: #ffffff;
    --font-body: 'PT Sans', Arial, sans-serif;
    --font-heading: 'Federo', 'Georgia', serif;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 30px rgba(30,115,190,0.2);
    --transition: all 0.3s var(--ease-out);
    --transition-slow: all 0.6s var(--ease-out);
    --transition-spring: all 0.5s var(--ease-spring);
    --highlight-section:#1b3348;

    /* Apple-Inspired Animation Variables */
    --ease-out: cubic-bezier(0.32, 0.08, 0.24, 1);
    --ease-in-out: cubic-bezier(0.6, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-apple: cubic-bezier(0.44, 0.12, 0.24, 1);
    --anim-duration-fast: 0.4s;
    --anim-duration-normal: 0.6s;
    --anim-duration-slow: 0.9s;
    --anim-duration-reveal: 1.2s;
    --anim-duration-extra-slow: 1.8s;
    --blur-amount: 20px;
    --blur-amount-sm: 10px;
    
    /* 3D Transform */
    --perspective: 1000px;
    --rotate-x: 0deg;
    --rotate-y: 0deg;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.4;
    color: var(--dark);
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 15px; }

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.section-title span {
    color: var(--primary);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30,115,190,0.4);
}

.btn-accent {
    background: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 15px rgba(221,51,51,0.4);
}

.btn-small {
    padding: 8px 20px;
    font-size: 13px;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--dark);
    color: #8b8c8c;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid var(--dark);
}

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

.top-bar a {
    color: #8b8c8c;
}

.top-bar a:hover {
    color: var(--white);
}

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-left i {
    margin-right: 5px;
}

.top-bar-right a {
    margin-left: 15px;
}

/* --- Header --- */
.site-header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

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

.site-logo img {
    max-width: 60px;
    max-height: 60px;
    border-radius: 50%;
}

.site-logo-text {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.site-logo-text span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    font-family: var(--font-body);
    letter-spacing: 1px;
}

/* --- Navigation - Horizontal Layout (Desktop) --- */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    %, 100% { transform: scale(1); opacity: .3; }
}

.main-nav ul li {
    position: relative;
}
    %, 100% { box-shadow:  4px 15px rgba(255,183,,.3); }
.main-nav ul li a {
    display: block;
    padding: 8px 12px;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out), transform 0.3s var(--ease-spring);
    position: relative;
    border-radius: 4px;
    white-space: nowrap;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    width: auto;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    transform: scaleX(1);
}

.main-nav ul li a:hover {
    color: #000;
    background: rgba(255,255,255,0.1);
}

.main-nav ul li a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-left: none;
    padding-left: 12px;
}

/* --- Nav Arrow (vertical dropdown indicator) --- */
.nav-arrow {
    display: inline-block;
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.4s var(--ease-spring);
    vertical-align: middle;
}

.menu-item-has-children:hover .nav-arrow {
    transform: rotate(-180deg);
}

/* --- Dropdown - Vertical Expansion with Awesome Animation --- */
.main-nav ul li .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scaleY(0.95);
    transform-origin: top center;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s, transform 0.4s var(--ease-spring);
    z-index: 100;
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--primary);
}

.main-nav ul li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
}

/* Staggered reveal for dropdown items */
.main-nav ul li .dropdown li {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    transition-delay: 0s;
}

.main-nav ul li .dropdown li a {
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* On desktop, show items on hover */
.main-nav ul li:hover .dropdown li {
    opacity: 1;
    transform: translateY(0);
}

/* Also show items when parent has .show-dropdown class (for mobile JS toggle) */
.main-nav ul li.show-dropdown .dropdown li,
.main-nav ul li .dropdown.open li {
    opacity: 1;
    transform: translateY(0);
}

.main-nav ul li:hover .dropdown li:nth-child(1) { transition-delay: 0.04s; }
.main-nav ul li:hover .dropdown li:nth-child(2) { transition-delay: 0.08s; }
.main-nav ul li:hover .dropdown li:nth-child(3) { transition-delay: 0.12s; }
.main-nav ul li:hover .dropdown li:nth-child(4) { transition-delay: 0.16s; }
.main-nav ul li:hover .dropdown li:nth-child(5) { transition-delay: 0.20s; }
.main-nav ul li:hover .dropdown li:nth-child(6) { transition-delay: 0.24s; }
.main-nav ul li:hover .dropdown li:nth-child(7) { transition-delay: 0.28s; }
.main-nav ul li:hover .dropdown li:nth-child(8) { transition-delay: 0.32s; }

.main-nav ul li .dropdown li:last-child a {
    border-bottom: none;
}

.main-nav ul li .dropdown li a {
    padding: 12px 18px;
    color: rgba(0,0,0,0.85);
    font-size: 14px;
    text-transform: capitalize;
    letter-spacing: 0.6px;
    line-height: 1.2;
    transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.main-nav ul li .dropdown li a::after {
    display: none;
}

.main-nav ul li .dropdown li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s var(--ease-out);
}

.main-nav ul li .dropdown li a:hover::before {
    transform: scaleY(1);
}

.main-nav ul li .dropdown li a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateX(5px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, rgba(30,115,190,0.85), rgba(221,51,51,0.75), rgba(0,0,0,0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    /* padding: 140px 20px; */
    position: relative;
    overflow: hidden;
    height: 480px;
}

/* Abstract Geometric Shapes */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

.hero-shape-1 {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(30,115,190,0.3), rgba(221,51,51,0.2));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite, float 6s ease-in-out infinite;
    pointer-events: none;
}

.hero-shape-2 {
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(221,51,51,0.25), rgba(30,115,190,0.15));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 10s ease-in-out infinite reverse, float 8s ease-in-out infinite reverse;
    pointer-events: none;
}

.hero-shape-3 {
    position: absolute;
    top: 30%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(30,115,190,0.15));
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.hero-shape-4 {
    position: absolute;
    top: 60%;
    right: 15%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(221,51,51,0.2), rgba(255,255,255,0.1));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 6s ease-in-out infinite, float 5s ease-in-out infinite;
    pointer-events: none;
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; animation-duration: 14s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; animation-duration: 16s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; animation-duration: 13s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; animation-duration: 19s; }
.particle:nth-child(9) { left: 90%; animation-delay: 16s; animation-duration: 11s; }
.particle:nth-child(10) { left: 95%; animation-delay: 18s; animation-duration: 20s; }

/* Grid Pattern Overlay */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

.hero h1 {
    font-size: 56px;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.4);
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    padding-top: 12px;
}

.hero-text {
    text-align: center;
    /* max-width: 600px; */
}

.hero h1 {
    font-size: 56px;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.4);
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.hero-school-image {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-left: 0;
    z-index: 2;
}

.school-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: left bottom;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.hero-girl-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-right: 0;
    z-index: 2;
}

.girl-image {
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(-10px 0 30px rgba(0,0,0,0.2));
}

.hero .tagline {
    font-size: 26px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-style: italic;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* --- Announcement Bar --- */
.announcement-bar {
    background: var(--accent);
    color: var(--white);
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.announcement-bar marquee {
    color: var(--white);
}

/* --- Sections General --- */
section {
    padding: 70px 0;
}

section:nth-child(even):not(.quick-links) {
    background: var(--white);
}

/* --- Motto / Vision / Mission --- */
.mvm-section {
    background: var(--white);
}

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

.mvm-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.mvm-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-bottom-color: var(--accent);
}

.mvm-card .icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.mvm-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mvm-card p {
    font-size: 16px;
    color: var(--text);
    font-style: italic;
}

/* --- About Section (School at a Glance) --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 100%;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin-top: 10px;
}

.about-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px 10px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
}

.stat-item .number {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.stat-item .label {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 5px;
}

/* --- Notifications --- */
.notifications-section {
    background: var(--white);
}

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

.notif-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.notif-card.important {
    border-left-color: var(--accent);
    background: #fff5f5;
}

.notif-card h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-card h4 .badge {
    font-size: 11px;
    background: var(--accent);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 12px;
    font-family: var(--font-body);
}

.notif-card p {
    font-size: 14px;
    color: #555;
}

/* --- Quick Links --- */
.quick-links {
    background: var(--highlight-section);
    color: var(--white);
    text-align: center;
}

.quick-links h2 {
    color: var(--white);
}

.quick-links .section-title::after {
    background: var(--white);
}

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

.link-card {
    background: rgba(255,255,255,0.15);
    padding: 25px 15px;
    border-radius: 8px;
    transition: var(--transition);
    text-align: center;
}

.link-card:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.link-card a {
    color: var(--white);
    display: block;
}

.link-card .link-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.link-card .link-title {
    font-weight: 600;
    font-size: 14px;
}

.link-card .link-label {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
}

/* --- Staff Pages Common --- */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.staff-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.staff-card .staff-avatar {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 60px;
}

.staff-card .staff-info {
    padding: 20px;
}

.staff-card .staff-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.staff-card .staff-info .designation {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.staff-card .staff-info .department {
    color: var(--text-light);
    font-size: 13px;
}

/* --- House System --- */
.house-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.house-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.house-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.house-card .house-header {
    padding: 30px 20px;
    text-align: center;
    color: var(--white);
}

.house-card .house-header h3 {
    color: var(--white);
    font-size: 26px;
    margin-bottom: 5px;
}

.house-card .house-body {
    padding: 25px 20px;
}

.house-card .house-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.house-bhils .house-header { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.house-changpas .house-header { background: linear-gradient(135deg, #8e44ad, #6c3483); }
.house-gonds .house-header { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.house-jarawas .house-header { background: linear-gradient(135deg, #7f8c8d, #616a6b); }
.house-mizos .house-header { background: linear-gradient(135deg, #3498db, #2980b9); }
.house-todas .house-header { background: linear-gradient(135deg, #27ae60, #1e8449); }

/* --- House Color Swatches Strip --- */
.house-swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 50px;
    max-width: 900px;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.house-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 90px;
}

.house-swatch-item .swatch-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
    cursor: default;
}

/* Swatch dot colors */
.swatch-bhils { background: #f1c40f; }
.swatch-changpas { background: #8e44ad; }
.swatch-gonds { background: #e74c3c; }
.swatch-jarawas { background: #7f8c8d; }
.swatch-mizos { background: #3498db; }
.swatch-todas { background: #27ae60; }

.house-swatch-item:hover .swatch-dot {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.house-swatch-item .swatch-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.3px;
}

.house-swatch-item .swatch-hex {
    font-size: 11px;
    color: var(--text-light);
    font-family: var(--font-body);
}

@media (max-width: 600px) {
    .house-swatches {
        gap: 14px;
        padding: 20px 15px;
    }
    .house-swatch-item {
        min-width: 72px;
    }
    .house-swatch-item .swatch-dot {
        width: 38px;
        height: 38px;
    }
    .house-swatch-item .swatch-name {
        font-size: 12px;
    }
}

/* --- Resources / Pratibimb --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.resource-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.resource-card .resource-thumb {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), #4a8fd4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
}

.resource-card .resource-info {
    padding: 20px;
}

.resource-card .resource-info h4 {
    margin-bottom: 8px;
}

.resource-card .resource-info .vol {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 12px;
}

.resource-card .resource-info .badge-new {
    background: var(--accent);
    color: var(--white);
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- EPFO Page --- */
.epfo-details {
    max-width: 800px;
    margin: 0 auto;
}

.epfo-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.epfo-table tr {
    border-bottom: 1px solid #eee;
}

.epfo-table tr:last-child {
    border-bottom: none;
}

.epfo-table td {
    padding: 15px 20px;
    font-size: 15px;
}

.epfo-table td:first-child {
    font-weight: 600;
    background: var(--primary);
    color: var(--white);
    width: 250px;
}

.epfo-table td:last-child {
    color: var(--text);
}

/* --- Assignments Page --- */
.assign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.assign-card {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.assign-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.assign-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 20px;
}

/* --- Page Content --- */
.page-content {
    padding: 60px 0;
    min-height: 400px;
}

.page-content h2 {
    margin-bottom: 20px;
}

.page-content p {
    margin-bottom: 15px;
}

/* --- Footer --- */
.site-footer {
    background: var(--footer-bg);
    color: #aaa;
}

.footer-widgets {
    padding: 50px 0;
    text-align: center;
}

.footer-widgets .newsletter h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    max-width: 450px;
    margin: 0 auto 30px;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #7c7c7c;
    border-radius: 4px;
    font-size: 15px;
    letter-spacing: 0.8px;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input[type="email"]:hover {
    border-color: rgba(255,255,255,0.5);
}

.newsletter-form input[type="email"]:focus {
    border-color: rgba(255,255,255,0.6);
}

.newsletter-form button {
    padding: 12px 25px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #5c7c19;
}

.footer-social {
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-block;
    color: #4a4a4a;
    font-size: 20px;
    margin: 0 8px;
    padding: 0.5em;
    transition: var(--transition);
}

.footer-social a:hover {
    color: #8cba29;
}

.footer-contact {
    margin-bottom: 20px;
}

.footer-contact p {
    margin-bottom: 5px;
    font-size: 14px;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--primary);
}

.footer-bottom {
    background: var(--footer-bottom);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #6b6b6b;
}

.footer-bottom a {
    color: #6b6b6b;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* --- Scroll to Top --- */
.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 48px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 4px 4px 0 0;
    font-size: 22px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
}

/* --- Notification Ticker --- */
.ticker-wrap {
    background: var(--dark);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
    border-bottom: 2px solid var(--accent);
}

.ticker-wrap .ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-wrap .ticker span {
    margin-right: 50px;
}

.ticker-wrap .ticker span i {
    color: var(--accent);
    margin-right: 8px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Important Updates --- */
.update-item {
    background: var(--white);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.update-item:hover {
    transform: translateX(5px);
}

.update-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.update-item h4 .date {
    font-size: 12px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 400;
}

.update-item .update-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary);
}

/* --- Payment Page --- */
.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.payment-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.payment-card .pay-icon {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 20px;
}

.payment-card h3 {
    margin-bottom: 15px;
}

.payment-card p {
    color: #666;
    margin-bottom: 20px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .mvm-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .notif-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .main-nav.open {
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li a {
        padding: 14px 20px;
        border-bottom: none;
    }

    .main-nav ul li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a::after {
        display: none;
    }

    .main-nav ul li .dropdown {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        box-shadow: none;
        background: rgba(0,0,0,0.35);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, visibility 0.3s ease;
    }

    .main-nav ul li.show-dropdown .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: 500px;
    }

    /* Make dropdown list items visible on mobile when parent is toggled */
    .main-nav ul li.show-dropdown .dropdown li {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition-delay: 0s !important;
    }

    /* Rotate chevron when dropdown is open on mobile */
    .main-nav ul li.show-dropdown > a .dropdown-icon {
        transform: rotate(180deg);
    }

    .main-nav ul li .dropdown li a {
        padding-left: 40px;
        color: rgba(255,255,255,0.9);
    }

    /* Remove staggered animation delays on mobile for dropdowns */
    .main-nav ul li.show-dropdown .dropdown li:nth-child(1),
    .main-nav ul li.show-dropdown .dropdown li:nth-child(2),
    .main-nav ul li.show-dropdown .dropdown li:nth-child(3),
    .main-nav ul li.show-dropdown .dropdown li:nth-child(4),
    .main-nav ul li.show-dropdown .dropdown li:nth-child(5),
    .main-nav ul li.show-dropdown .dropdown li:nth-child(6),
    .main-nav ul li.show-dropdown .dropdown li:nth-child(7),
    .main-nav ul li.show-dropdown .dropdown li:nth-child(8) {
        transition-delay: 0s !important;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero .tagline {
        font-size: 18px;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 5px;
    }

    .top-bar-left span {
        margin-right: 10px;
        font-size: 12px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .site-logo-text {
        font-size: 16px;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }

    .house-grid {
        grid-template-columns: 1fr;
    }

    .epfo-table td {
        display: block;
        width: 100%;
    }

    .epfo-table td:first-child {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }


/* ========================================
   SKELETON LOADING ANIMATION
   ======================================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text-sm {
    height: 12px;
    width: 60%;
}

.skeleton-text-lg {
    height: 24px;
    width: 80%;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.skeleton-card {
    height: 200px;
    border-radius: 12px;
}

.skeleton-button {
    height: 44px;
    width: 120px;
    border-radius: 50px;
}

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

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(30,115,190,0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 24px;
    height: 24px;
    border-width: 3px;
}

.spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 5px;
}

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

/* Pulse Loading Animation */
.pulse-loading {
    animation: pulse-loading 1.5s ease-in-out infinite;
}

@keyframes pulse-loading {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Page Loader Overlay */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.page-loader-content {
    text-align: center;
}

.page-loader-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logo-pulse 2s ease-in-out infinite;
}

.page-loader-logo i {
    font-size: 40px;
    color: var(--white);
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30,115,190,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(30,115,190,0); }
}


/* ========================================
   APPLE-INSPIRED ANIMATIONS & EFFECTS
   ======================================== */

/* --- Reveal Animations (Intersection Observer) --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), filter 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-blur.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Staggered children reveal */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(11) { transition-delay: 0.55s; }
.stagger-children.visible > *:nth-child(12) { transition-delay: 0.6s; }
.stagger-children.visible > *:nth-child(13) { transition-delay: 0.65s; }
.stagger-children.visible > *:nth-child(14) { transition-delay: 0.7s; }
.stagger-children.visible > *:nth-child(15) { transition-delay: 0.75s; }
.stagger-children.visible > *:nth-child(16) { transition-delay: 0.8s; }
.stagger-children.visible > *:nth-child(17) { transition-delay: 0.85s; }
.stagger-children.visible > *:nth-child(18) { transition-delay: 0.9s; }
.stagger-children.visible > *:nth-child(19) { transition-delay: 0.95s; }
.stagger-children.visible > *:nth-child(20) { transition-delay: 1.0s; }
.stagger-children.visible > *:nth-child(21) { transition-delay: 1.05s; }
.stagger-children.visible > *:nth-child(22) { transition-delay: 1.1s; }
.stagger-children.visible > *:nth-child(23) { transition-delay: 1.15s; }
.stagger-children.visible > *:nth-child(24) { transition-delay: 1.2s; }
.stagger-children.visible > *:nth-child(25) { transition-delay: 1.25s; }
.stagger-children.visible > *:nth-child(26) { transition-delay: 1.3s; }
.stagger-children.visible > *:nth-child(27) { transition-delay: 1.35s; }
.stagger-children.visible > *:nth-child(28) { transition-delay: 1.4s; }
.stagger-children.visible > *:nth-child(29) { transition-delay: 1.45s; }
.stagger-children.visible > *:nth-child(30) { transition-delay: 1.5s; }
.stagger-children.visible > *:nth-child(31) { transition-delay: 1.55s; }
.stagger-children.visible > *:nth-child(32) { transition-delay: 1.6s; }
.stagger-children.visible > *:nth-child(33) { transition-delay: 1.65s; }
.stagger-children.visible > *:nth-child(34) { transition-delay: 1.7s; }
.stagger-children.visible > *:nth-child(35) { transition-delay: 1.75s; }
.stagger-children.visible > *:nth-child(36) { transition-delay: 1.8s; }
.stagger-children.visible > *:nth-child(37) { transition-delay: 1.85s; }
.stagger-children.visible > *:nth-child(38) { transition-delay: 1.9s; }
.stagger-children.visible > *:nth-child(39) { transition-delay: 1.95s; }
.stagger-children.visible > *:nth-child(40) { transition-delay: 2.0s; }

/* --- Hover Animations --- */
.hover-lift {
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.hover-glow {
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), filter 0.3s var(--ease-out);
}

.hover-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(30,115,190,0.35);
    filter: brightness(1.05);
}

.hover-scale {
    transition: transform 0.4s var(--ease-spring);
}

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

.hover-scale-sm {
    transition: transform 0.3s var(--ease-out);
}

.hover-scale-sm:hover {
    transform: scale(1.03);
}

.hover-rotate-icon i, .hover-rotate-icon svg {
    transition: transform 0.4s var(--ease-spring);
    display: inline-block;
}

.hover-rotate-icon:hover i, .hover-rotate-icon:hover svg {
    transform: rotate(15deg) scale(1.1);
}

.hover-underline {
    position: relative;
    display: inline-block;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.4s var(--ease-out);
}

.hover-underline:hover::after {
    width: 100%;
}

.hover-border-grow {
    position: relative;
}

.hover-border-grow::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary);
    border-radius: inherit;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    pointer-events: none;
}

.hover-border-grow:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* --- Card Image Zoom --- */
.img-zoom-wrap {
    overflow: hidden;
}

.img-zoom-wrap img {
    transition: transform 0.6s var(--ease-out);
}

.img-zoom-wrap:hover img {
    transform: scale(1.08);
}

/* --- Parallax Sections --- */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 0;
}

.parallax-content {
    position: relative;
    z-index: 1;
}

/* --- Text Animations --- */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #4a8fd4, var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s var(--ease-smooth) infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.text-reveal {
    overflow: hidden;
    display: block;
}

.text-reveal span {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.text-reveal.visible span {
    opacity: 1;
    transform: translateY(0);
}

/* --- Float Animation --- */
.float-anim {
    animation: float 3s var(--ease-smooth) infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- Pulse Animation --- */
.pulse-anim {
    animation: pulse 2s var(--ease-in-out) infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* --- Shimmer Load Effect --- */
.shimmer {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

/* --- Count-up Animation --- */
.count-up {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.count-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Smooth Section Transitions --- */
section {
    transition: background-color 1s var(--ease-smooth);
}

/* --- Nav Link Bounce Effect --- */
.main-nav ul li a {
    position: relative;
    transition: color 0.3s ease, transform 0.3s var(--ease-spring);
}

.main-nav ul li a:hover {
    transform: scale(1.05);
}

/* --- Hero Parallax & Fade --- */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30,115,190,0.92), rgba(0,0,0,0.75));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;

    position: absolute;
    z-index: 2;
    top: 0;
    margin: auto;
    width: 100%;
    max-width: none;
}

.hero h1 {
    animation: heroTextIn 1.2s var(--ease-out) forwards;
    transform-origin: center;
}

@keyframes heroTextIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.hero .tagline {
    animation: heroTaglineIn 1s var(--ease-out) 0.3s both;
}

@keyframes heroTaglineIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    animation: heroTaglineIn 1s var(--ease-out) 0.5s both;
}

.hero .btn {
    animation: heroTaglineIn 1s var(--ease-out) 0.7s both;
}

/* --- Page Banner Animation --- */
.page-banner h1 {
    animation: heroTextIn 1s var(--ease-out) forwards;
}

.page-banner p {
    animation: heroTaglineIn 0.8s var(--ease-out) 0.2s both;
}

.page-banner .breadcrumb {
    animation: heroTaglineIn 0.8s var(--ease-out) 0.4s both;
}

/* --- Card Entry Animations --- */
.mvm-card, .staff-card, .house-card, .resource-card, .payment-card, .notif-card, .link-card, .assign-card, .update-item {
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

/* --- Button Enhanced Animations --- */
.btn {
    position: relative;
    overflow: hidden;
    transition: background 0.4s var(--ease-out), transform 0.3s var(--ease-spring), box-shadow 0.4s var(--ease-out);
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn i, .btn svg {
    transition: transform 0.3s var(--ease-spring);
    display: inline-block;
}

.btn:hover i, .btn:hover svg {
    transform: translateX(4px);
}

/* --- Stat Item Animation --- */
.stat-item {
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* --- Notification Card Enhancements --- */
.notif-card {
    position: relative;
    overflow: hidden;
}

.notif-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s var(--ease-out);
}

.notif-card:hover::after {
    left: 100%;
}

.notif-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* --- Quick Link Card Enhanced --- */
.link-card {
    position: relative;
    z-index: 1;
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.05);
    border-radius: inherit;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s var(--ease-out);
    z-index: -1;
}

.link-card:hover::before {
    transform: scaleY(1);
}

.link-card .link-icon {
    transition: transform 0.4s var(--ease-spring);
}

.link-card:hover .link-icon {
    transform: scale(1.2) rotate(-5deg);
}

/* ========================================
   CONTACT PAGE
   ======================================== */

/* --- Page Banner (Contact) --- */
.page-banner.contact-banner {
    background-image: linear-gradient(135deg, rgba(30,115,190,0.9), rgba(0,0,0,0.7)), url('../images/hero-bg.mp4');
}

/* --- Route / Car Journey Section --- */
.route-section {
    background: var(--white);
    padding: 70px 0;
}

.route-sub {
    text-align: center;
    max-width: 640px;
    margin: -20px auto 35px;
    color: var(--text-light);
    font-size: 16px;
}

.route-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
}

.route-controls label {
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
}

.route-controls label i {
    margin-right: 6px;
    color: var(--accent);
}

.route-select {
    padding: 11px 18px;
    border: 2px solid rgba(30,115,190,0.3);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.route-select:hover,
.route-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30,115,190,0.12);
}

.route-stage {
    background: linear-gradient(135deg, #f7fbff 0%, #eef5fc 100%);
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(30,115,190,0.08);
}

#routeSvg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

/* markers */
.route-marker .marker-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    fill: var(--dark);
}

.route-marker .dest-icon {
    pointer-events: none;
}

.route-marker .marker-pulse {
    transform-origin: center;
    animation: markerPulse 2.2s var(--ease-in-out) infinite;
}

@keyframes markerPulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.18); }
}

.route-marker.hovering .marker-pulse {
    animation-duration: 0.9s;
}

/* car */
#car {
    transition: opacity 0.4s ease;
    cursor: pointer;
}

#car .car-bob {
    animation: carBob 0.6s ease-in-out infinite;
}

@keyframes carBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

#car .wheel {
    transform-origin: center;
    animation: wheelSpin 0.35s linear infinite;
}

@keyframes wheelSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#car .headlight {
    animation: headlightGlow 1.4s ease-in-out infinite;
}

@keyframes headlightGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; filter: drop-shadow(0 0 4px #fff3b0); }
}

#car.arrived .car-bob {
    animation: carWiggle 0.3s ease-in-out 3;
}

@keyframes carWiggle {
    0%, 100% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(-3px) rotate(-4deg); }
    75% { transform: translateY(-3px) rotate(4deg); }
}

.dust-group circle {
    pointer-events: none;
}

/* route info strip */
.route-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.route-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.route-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(30,115,190,0.18);
}

.route-stat i {
    font-size: 26px;
    color: var(--primary);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,115,190,0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.route-stat-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.route-stat strong {
    font-size: 16px;
    color: var(--dark);
}

/* --- Contact Main (Map + Info) --- */
.contact-main {
    background: var(--bg-light);
    padding: 70px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 35px;
    align-items: stretch;
}

.map-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.map-frame {
    flex: 1;
    min-height: 380px;
    position: relative;
}

.map-frame iframe {
    display: block;
}

.map-directions {
    margin: 16px;
    text-align: center;
    width: calc(100% - 32px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--white);
    padding: 22px 24px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    color: var(--text);
    border-left-color: var(--accent);
}

.info-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
}

.info-card:hover .info-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    transform: scale(1.08) rotate(-6deg);
}

.info-text h4 {
    margin: 0 0 4px;
    font-size: 17px;
    color: var(--primary);
}

.info-text p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

.info-hover {
    margin-left: auto;
    font-size: 18px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition);
}

.info-card:hover .info-hover {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .route-stage {
        padding: 18px;
    }
    .route-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .route-controls .btn {
        width: 100%;
    }
}

/* --- Footer Animation --- */
.newsletter-form button {
    position: relative;
    overflow: hidden;
}

.newsletter-form button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.newsletter-form button:hover::after {
    left: 100%;
}

.footer-social a {
    transition: transform 0.3s var(--ease-spring), color 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px) scale(1.2);
}

/* --- Scroll to Top Enhanced --- */
.scroll-top {
    transition: opacity 0.4s var(--ease-out), visibility 0.4s, transform 0.4s var(--ease-spring), background 0.3s ease;
    transform: translateY(20px);
}

.scroll-top.visible {
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px) scale(1.1);
}

/* --- Ticker Enhanced --- */
.ticker-wrap .ticker {
    animation: ticker 35s linear infinite;
}

.ticker-wrap:hover .ticker {
    animation-duration: 50s;
}

/* --- Breadcrumb Animation --- */
.breadcrumb a {
    transition: color 0.3s ease, transform 0.3s var(--ease-spring);
    display: inline-block;
}

.breadcrumb a:hover {
    transform: translateX(3px);
}

/* --- Badge Animation --- */
.badge, .badge-new {
    animation: badgePulse 2s var(--ease-in-out) infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* --- Loading Skeleton --- */
.skeleton {
    background: linear-gradient(90deg, 
        #e0e0e0 25%, 
        #f0f0f0 50%, 
        #e0e0e0 75%
    );
    background-size: 200% 100%;
    animation: skeletonLoad 1.5s infinite;
    border-radius: 4px;
}

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

/* --- Mobile Menu Animation --- */
.main-nav {
    transition: max-height 0.5s var(--ease-in-out), opacity 0.4s ease;
}

@media (max-width: 768px) {
    .main-nav {
        opacity: 0;
    }
    .main-nav.open {
        opacity: 1;
    }
}

/* --- Dropdown Smooth Animation --- */
.main-nav ul li .dropdown {
    transition: opacity 0.3s var(--ease-out), visibility 0.3s, transform 0.3s var(--ease-spring);
    transform-origin: top center;
}

.main-nav ul li:hover .dropdown {
    transition: opacity 0.3s var(--ease-out), visibility 0.3s, transform 0.3s var(--ease-spring);
}

/* --- EPFO Table Animation --- */
.epfo-table tr {
    transition: background 0.3s ease, transform 0.3s var(--ease-out);
}

.epfo-table tr:hover {
    background: rgba(30,115,190,0.05);
    transform: translateX(5px);
}

/* --- Staff Card Enhanced --- */
.staff-card {
    position: relative;
}

.staff-card .staff-avatar {
    transition: transform 0.5s var(--ease-spring);
}

.staff-card:hover .staff-avatar {
    transform: scale(1.05);
}

.staff-card .staff-avatar i {
    transition: transform 0.5s var(--ease-spring);
}

.staff-card:hover .staff-avatar i {
    transform: scale(1.15) rotate(-5deg);
}

/* --- House Card Enhanced --- */
.house-card .house-header {
    transition: transform 0.4s var(--ease-out);
}

.house-card:hover .house-header {
    transform: scale(1.02);
}

/* --- Resource Card Enhanced --- */
.resource-card .resource-thumb i {
    transition: transform 0.5s var(--ease-spring);
}

.resource-card:hover .resource-thumb i {
    transform: scale(1.2) rotate(-10deg);
}

/* --- Payment Card Enhanced --- */
.payment-card .pay-icon i {
    transition: transform 0.5s var(--ease-spring);
}

.payment-card:hover .pay-icon i {
    transform: scale(1.15) rotate(-5deg);
}

/* --- Assignment Card Enhanced --- */
.assign-card {
    position: relative;
}

.assign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.assign-card:hover::before {
    transform: scaleX(1);
}

/* --- Update Item Enhanced --- */
.update-item {
    position: relative;
    overflow: hidden;
}

.update-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s var(--ease-out);
}

.update-item:hover::before {
    transform: scaleY(1);
}

/* --- 404 Page Animation --- */
.error-page h1 {
    animation: heroTextIn 1s var(--ease-out) forwards;
}

.error-page h2 {
    animation: heroTaglineIn 0.8s var(--ease-out) 0.2s both;
}

.error-page p {
    animation: heroTaglineIn 0.8s var(--ease-out) 0.4s both;
}

.error-page .btn {
    animation: heroTaglineIn 0.8s var(--ease-out) 0.6s both;
}

/* --- About Page Core Values Animation --- */
.about-content-full .mvm-grid {
    /* reuse existing */
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s var(--ease-smooth) infinite;
    color: white;
    font-size: 24px;
    z-index: 2;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
}

/* --- Responsive Animation Adjustments --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur {
        opacity: 1;
        transform: none;
        filter: none;
    }
    .stagger-children > * {
        opacity: 1;
        transform: none;
    }
    .ticker-wrap .ticker {
        animation: none;
    }
}

/* --- Smooth Image Loading --- */
img {
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}

img[src], img[srcset] {
    opacity: 1;
}

img.loaded {
    opacity: 1;
}

/* --- Focus Styles for Accessibility --- */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* --- Glass Morphism Effect --- */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Neon Glow Effect --- */
.neon-glow {
    box-shadow: 0 0 10px rgba(30,115,190,0.3), 
                0 0 20px rgba(30,115,190,0.2), 
                0 0 40px rgba(30,115,190,0.1);
    transition: box-shadow 0.4s var(--ease-out);
}

.neon-glow:hover {
    box-shadow: 0 0 15px rgba(30,115,190,0.4), 
                0 0 30px rgba(30,115,190,0.3), 
                0 0 60px rgba(30,115,190,0.15);
}

/* --- Apple-Style Section Divider --- */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    margin: 0;
}

/* --- Marquee Alternative Animation --- */
.marquee-wrap {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marqueeScroll 20s linear infinite;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Page Load Animation --- */
@keyframes pageLoad {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

body {
    animation: pageLoad 0.5s var(--ease-out);
}

/* ============================================
   THEME SWITCHER (3-Color Custom Picker)
   ============================================ */

.theme-switcher {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 999;
}

.theme-switcher-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    border: 2px solid rgba(0,0,0,0.08);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                color 0.4s ease;
    position: relative;
}

.theme-switcher-btn:hover {
    transform: scale(1.1) rotate(-15deg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.theme-switcher-btn:active {
    transform: scale(0.95);
}

.theme-switcher-panel {
    position: absolute;
    bottom: 58px;
    left: 0;
    background: var(--white);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.18);
    display: none;
    flex-direction: column;
    gap: 6px;
    min-width: 170px;
    border: 1px solid rgba(0,0,0,0.06);
    transform-origin: bottom left;
    animation: panelIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-switcher-panel.open {
    display: flex;
}

@keyframes panelIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.theme-swatch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.25s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.theme-swatch:hover {
    background: var(--bg-light);
}

.theme-swatch .swatch-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-swatch:hover .swatch-circle {
    transform: scale(1.1);
}

.theme-swatch .swatch-label {
    font-weight: 600;
    flex: 1;
}

.theme-swatch .swatch-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-swatch.active {
    background: var(--bg-light);
}

.theme-swatch.active .swatch-check {
    display: flex;
}

.theme-swatch.active .swatch-circle {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

/* Theme switcher label on hover */
.theme-switcher-btn .tooltip {
    position: absolute;
    left: 56px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: var(--font-body);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

.theme-switcher-btn .tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--dark);
}

.theme-switcher-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Responsive: hide on very small screens or adjust position */
@media (max-width: 480px) {
    .theme-switcher {
        left: 15px;
        bottom: 15px;
    }
    .theme-switcher-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .theme-switcher-panel {
        min-width: 150px;
        padding: 8px;
    }
    .theme-swatch {
        padding: 8px 10px;
        font-size: 13px;
    }
    .theme-swatch .swatch-circle {
        width: 26px;
        height: 26px;
    }
}

/* ==========================================================
   EVENTS & CALENDAR PAGE STYLES
   ========================================================== */

.page-banner.events-banner {
    background: linear-gradient(135deg, rgba(142,68,173,.92), rgba(30,115,190,.85));
}

.event-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
    box-shadow:  2px 12px rgba(,,,.06);
    border-left: 4px solid var(--primary);
    transition: all .4s cubic-bezier(.25, .46, .45, .94);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.event-card::before {
    content: '';
    position: absolute;
    top: ;
    left: ;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30,115,190,.03), transparent);
    opacity: ;
    transition: opacity .4s ease;
    pointer-events: none;
}

.event-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:  12px 35px rgba(30,115,190,.15);
    border-left-color: var(--accent);
}

.event-card:hover::before {
    opacity: 1;
}

.event-card.past {
    border-left-color: #999;
    opacity: .7;
}

.event-card.past:hover {
    opacity: .85;
    border-left-color: #666;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 72px;
    background: linear-gradient(135deg, var(--primary), #1a5f8a);
    color: var(--white);
    border-radius: 12px;
    padding: 10px;
    flex-shrink: ;
    transition: transform .4s cubic-bezier(.25, .46, .45, .94);
}

.event-card:hover .event-date {
    transform: scale(1.08) rotate(-3deg);
}

.event-card.past .event-date {
    background: linear-gradient(135deg, #888, #666);
}

.event-day {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-heading);
}

.event-month {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.event-details {
    flex: 1;
    min-width: ;
}

.event-details h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin:   6px ;
    transition: color .3s ease;
}

.event-card:hover .event-details h3 {
    color: var(--primary);
}

.event-meta {
    font-size: 13px;
    color: var(--text-light);
    margin:   8px ;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.event-meta i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.event-details p:last-child {
    font-size: 14px;
    color: var(--text-color);
    margin: ;
    line-height: 1.6;
}

.event-status {
    flex-shrink: ;
}

.event-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.event-badge.upcoming {
    background: #e8f5e9;
    color: #2e7d32;
}

.event-badge.past-badge {
    background: #f5f5f5;
    color: #888;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.calendar-month {
    background: var(--white);
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow:  2px 12px rgba(,,,.06);
    border-top: 4px solid var(--primary);
    transition: all .4s cubic-bezier(.25, .46, .45, .94);
    position: relative;
    overflow: hidden;
}

.calendar-month::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(30,115,190,.06), transparent 70%);
    border-radius: 50%;
    transition: transform .5s ease;
    pointer-events: none;
}

.calendar-month:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:  15px 40px rgba(30,115,190,.12);
    border-top-color: var(--accent);
}

.calendar-month:hover::before {
    transform: scale(2);
}

.calendar-month:nth-child(4n+1) { border-top-color: #1e73be; }
.calendar-month:nth-child(4n+2) { border-top-color: #e74c3c; }
.calendar-month:nth-child(4n+3) { border-top-color: #27ae60; }
.calendar-month:nth-child(4n+4) { border-top-color: #f39c12; }

.calendar-month h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin:   14px ;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-month h3 span {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-light);
}

.calendar-month ul {
    list-style: none;
    padding: ;
    margin: ;
}

.calendar-month ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px ;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: var(--text-color);
    transition: transform .3s ease, color .3s ease;
}

.calendar-month ul li:last-child {
    border-bottom: none;
}

.calendar-month ul li:hover {
    transform: translateX(6px);
    color: var(--primary);
}

.cal-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: ;
    transition: transform .3s ease;
}

.calendar-month ul li:hover .cal-date {
    transform: scale(1.15);
}

.download-banner {
    background: linear-gradient(135deg, #1e73be, #2c3e50);
    border-radius: 16px;
    padding: 40px;
    margin: 40px  50px ;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow:  10px 40px rgba(30,115,190,.2);
}

.download-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
    animation: downloadPulse 4s ease-in-out infinite;
}

.download-banner::after {
    content: '\f1c1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -30px;
    right: 30px;
    font-size: 120px;
    color: rgba(255,255,255,.06);
    pointer-events: none;
}

@keyframes downloadPulse {
    %, 100% { transform: scale(1); opacity: .3; }
    50% { transform: scale(1.3); opacity: .6; }
}

.download-banner-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 200px;
}

.download-banner-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin:   8px ;
    color: var(--white);
}

.download-banner-content p {
    font-size: 14px;
    opacity: .85;
    margin: ;
    line-height: 1.6;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--dark);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all .4s cubic-bezier(.25, .46, .45, .94);
    position: relative;
    z-index: 1;
    box-shadow:  4px 15px rgba(255,183,,.3);
    animation: downloadBtnPulse 2s ease-in-out infinite;
    flex-shrink: ;
}

.download-btn i {
    font-size: 20px;
    transition: transform .3s ease;
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:  8px 25px rgba(255,183,,.4);
    color: var(--dark);
}

.download-btn:hover i {
    transform: translateY(-2px);
}

@keyframes downloadBtnPulse {
    %, 100% { box-shadow:  4px 15px rgba(255,183,,.3); }
    50% { box-shadow:  4px 25px rgba(255,183,,.5); }
}

.calendar-year-label {
    font-size: 14px;
    color: var(--text-light);
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    margin-top: 4px;
}

.calendar-section {
    margin-top: 60px;
}

@media (max-width: 768px) {
    .event-card {
        flex-wrap: wrap;
        padding: 18px 20px;
    }
    .event-date {
        min-width: 60px;
        min-height: 60px;
    }
    .event-day {
        font-size: 22px;
    }
    .event-status {
        width: 100%;
        text-align: right;
    }
    .calendar-grid {
        grid-template-columns: 1fr 1fr;
    }
    .download-banner {
        padding: 28px 24px;
        flex-direction: column;
        text-align: center;
    }
    .download-banner::after {
        font-size: 80px;
        bottom: -20px;
        right: 20px;
    }
    .download-banner-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    .event-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .event-date {
        flex-direction: row;
        gap: 8px;
        min-width: auto;
        padding: 8px 16px;
        border-radius: 8px;
    }
    .event-day {
        font-size: 20px;
    }
    .event-month {
        font-size: 12px;
        margin-top: ;
    }
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}
