/* ============================================
   ASHMITA SCHOOL - MAIN STYLESHEET
   ============================================ */

:root {
    --primary: #1a4da1;
    --primary-light: #2c68c9;
    --primary-dark: #0f3575;
    --accent: #f9d423;
    --accent-light: #ffeb3b;
    --accent-dark: #e8c000;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #fbc02d;
    --info: #3498db;
    --text-dark: #1a2332;
    --text-muted: #6b7280;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Lato', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}
body.nav-lock {
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
    touch-action: none; /* Disables all touch interactions for the body */
}
body.nav-lock .nav-links {
    touch-action: auto !important; /* Re-enables touch scrolling for the menu itself */
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    padding-top: 80px; /* Offset for fixed navbar */
}

body.home-page {
    padding-top: 0;
}


h1, h2, h3, h4, h5, h6, 
.hero-title, .section-title, .event-title, .news-card-title, .notice-title, .stat-number, .widget-header h4, .footer-col h4 {
    font-family: var(--font-heading);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.topbar {
    background: #ffffff;
    color: var(--text-dark);
    font-size: 0.75rem;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    transition: margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 38px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transform-origin: top;
}

.topbar::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: -100%;
    width: 60%;
    background: var(--primary);
    transform: skewX(-30deg);
    transform-origin: top left;
    border-right: 2px solid #ffffff;
    z-index: 1;
    animation: slideInBlue 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.topbar-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.topbar-left { 
    display: flex; 
    gap: 24px; 
    align-items: center; 
}
.topbar-left span { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-weight: 500; 
    color: #ffffff; 
    opacity: 0;
    animation: fadeInReveal 0.5s ease 0.6s forwards;
}
.topbar-left span i { color: var(--accent); font-size: 0.85rem; }

@keyframes slideInBlue {
    to { left: -10%; } /* Adjusts so it covers about half the screen on most monitors */
}
@keyframes fadeInReveal {
    to { opacity: 1; }
}


.topbar-right { display: flex; gap: 8px; align-items: center; }
.topbar-right a {
    color: var(--text-muted);
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    font-size: 0.8rem;
}
.topbar-right a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    width: 100%;
    transition: var(--transition);
}

/* Home Page Special State */
body.home-page .navbar {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
body.home-page .navbar .nav-logo .logo-main { color: white; }
body.home-page .navbar .nav-logo .logo-accent { color: var(--accent); opacity: 0.9; }
body.home-page .navbar .nav-links a { color: rgba(255,255,255,0.9); }
body.home-page .navbar .nav-links a:hover { background: rgba(255,255,255,0.1); color: var(--primary-light); }
body.home-page .navbar .nav-links a.active { color: var(--accent) !important; }
body.home-page .navbar .nav-toggle span { background: white; }

/* Scrolled State for all pages */
.main-header.scrolled {
    background: transparent;
}
.main-header.scrolled .topbar {
    margin-top: -38px;
}

.main-header.scrolled .navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}
.main-header.scrolled .navbar .nav-logo .logo-main { color: var(--primary); }
.main-header.scrolled .navbar .nav-links a { color: var(--text-dark); }
.main-header.scrolled .navbar .nav-toggle span { background: var(--primary); }
.main-header.scrolled .navbar .nav-inner { height: 75px; }

/* Non-homepage adjustments */
body {
    padding-top: 118px; /* Combined height of topbar (38) and navbar (80) */
}
body.home-page {
    padding-top: 38px; /* Only topbar since navbar is absolute/transparent over hero */
}



.nav-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}
.navbar.scrolled .nav-inner { height: 75px; }


.nav-logo { display: flex; align-items: center; gap: 14px; }
.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
    transition: var(--transition);
}
.nav-logo:hover .logo-img { transform: scale(1.04); }
.logo-text { display: flex; flex-direction: column; }
.logo-main { 
    font-size: 1.55rem; 
    font-weight: 800; 
    color: var(--primary); 
    line-height: 0.9; 
    letter-spacing: -1px; 
    display: flex;
    flex-direction: column;
}
.logo-accent { 
    font-size: 0.7rem; 
    color: var(--accent-dark); 
    font-weight: 600; 
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
    margin-top: 3px;
    opacity: 0.85;
}

.nav-mobile-branding { display: none; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links li { position: relative; }
.nav-links a {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    display: flex; align-items: center; gap: 4px;
    white-space: nowrap;
}
.nav-links a:hover {
    background: rgba(26,60,110,0.07);
    color: var(--primary) !important;
}
.nav-links a.active { 
    color: var(--accent) !important; 
    font-weight: 700;
}

/* Navigation CTA Button */
.nav-links .nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 10px 22px;
    margin-left: 10px;
    border-radius: 999px;
    font-weight: 700;
    transition: var(--transition);
}
.nav-links .nav-cta:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26, 60, 110, 0.2);
}
.nav-links .nav-cta.active {
    background: var(--primary-dark);
}

@media (max-width: 1100px) {
    .nav-links .nav-cta {
        margin: 10px 16px;
        text-align: center;
        justify-content: center;
    }
}

.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.dropdown-menu li a { 
    padding: 10px 14px; 
    border-radius: var(--radius-sm); 
    font-size: 0.85rem; 
    color: var(--text-dark) !important;
}
.dropdown-menu li a:hover {
    background: rgba(26,60,110,0.07);
    color: var(--primary) !important;
}


.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}
body.nav-lock .nav-toggle span {
    background: var(--primary) !important;
}
body.nav-lock {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}


/* ── Hero ── */
/* ── Premium Hero ── */
/* ── Super Premium Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    color: white;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

.hero-slider .slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 20, 40, 0.65) 0%, rgba(26, 60, 110, 0.4) 100%);
    z-index: 1;
}

.hero-inner-new {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1300px;
    padding: 120px 24px 80px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content-left {
    flex: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.8s ease backwards;
}
.hero-badge .badge-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.text-gradient {
    background: linear-gradient(to right, #facc15, #f59e0b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}



.rolling-dice-list {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.rolling-dice-item {
    height: 1.3em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1;
    padding-bottom: 0.1em; /* give drop descenders space */
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 550px;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.hero-actions {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Floating Stats Cards */
.hero-stats-new {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    animation: fadeInRight 0.8s ease 0.5s backwards;
    transition: transform 0.4s ease;
}
.hero-stat-card.delay-1 {
    animation-delay: 0.7s;
}
.hero-stat-card:hover {
    transform: translateX(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info strong {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
}

.stat-info span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Curve Divider */
.hero-bottom-curve {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 5;
    line-height: 0;
}
.hero-bottom-curve svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Hero Animated Text ── */
.hero-title .rolling-dice-container {
    display: inline-block;
    height: 1.3em;
    overflow: hidden;
    position: relative;
    vertical-align: middle;
    margin-left: 10px;
    margin-top: -0.1em; /* Baseline fine-tune */
}

@media (max-width: 992px) {
    .hero-inner-new {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 150px;
    }

    .hero-title .rolling-dice-container {
        display: block;  /* On mobile: sits on a new line centered */
        margin: 10px auto 0;
        width: 100%;
    }

    .rolling-dice-list {
        width: 100%;
    }

    .rolling-dice-item {
        justify-content: center; /* Center word on mobile line */
    }

    .hero-stats-new {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 30px;
    }
    .hero-desc {
        margin: 0 auto 40px;
    }
    .hero-actions {
        justify-content: center;
    }
}
@media (max-width: 600px) {
    .hero-stats-new {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    .hero-stat-card {
        justify-content: center;
    }
}

.btn-premium {
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-premium.solid {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px rgba(26, 77, 161, 0.4);
}

.btn-premium.solid:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 77, 161, 0.6);
}

.btn-premium.glass {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-premium.glass:hover {
    background: #ffffff;
    color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.3);
}

.btn-premium.outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-premium.outline:hover {
    background: white;
    color: var(--primary-dark);
    border-color: white;
    transform: translateY(-5px);
}


/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: none; cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}
.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232,160,32,0.4); }
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-blue { background: var(--primary); color: white; }
.btn-blue:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,60,110,0.3); }

/* ── Sections ── */
.section { padding: 80px 0; overflow: hidden; position: relative; }
.section-alt { background: var(--bg-light); overflow: hidden; position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; overflow-x: hidden; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--primary-light);
    font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 12px;
}
.section-label::before, .section-label::after {
    content: ''; display: block;
    height: 2px; width: 24px; background: var(--primary-light);
    border-radius: 2px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 14px;
}
.section-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* ── Cards ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }

.news-card-img {
    width: 100%; height: 200px; object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 3rem;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 20px; }
.news-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tag-blue { background: rgba(52,152,219,0.12); color: #2563b8; }
.tag-green { background: rgba(39,174,96,0.12); color: #27ae60; }
.tag-yellow { background: rgba(243,156,18,0.12); color: #c07c10; }
.tag-purple { background: rgba(155,89,182,0.12); color: #7c3aed; }
.tag-grey { background: rgba(52,73,94,0.1); color: #34495e; }
.tag-red { background: rgba(231,76,60,0.1); color: #e74c3c; }
.tag-orange { background: rgba(230,126,34,0.1); color: #e67e22; }

.news-card-title { font-size: 1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; line-height: 1.4; }
.news-card-desc { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; margin-bottom: 16px; }
.news-card-footer { display: flex; justify-content: space-between; align-items: center; }
.news-date { font-size: 0.78rem; color: var(--text-light); display: flex; align-items: center; gap: 5px; }
.read-more { font-size: 0.82rem; font-weight: 600; color: var(--primary-light); display: flex; align-items: center; gap: 4px; }
.read-more:hover { color: var(--primary); }
.read-more i { transition: var(--transition); }
.read-more:hover i { transform: translateX(3px); }

/* ── Notice Board ── */
.notice-board {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.notice-board-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 20px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.notice-board-header h3 { color: white; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.notice-board-header a { color: var(--accent-light); font-size: 0.82rem; font-weight: 600; }
.notice-ticker { max-height: 380px; overflow-y: auto; }
.notice-ticker::-webkit-scrollbar { width: 4px; }
.notice-ticker::-webkit-scrollbar-track { background: var(--bg-light); }
.notice-ticker::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.notice-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; gap: 14px; align-items: flex-start;
    transition: var(--transition);
    cursor: pointer;
}
.notice-item:hover { background: var(--bg-light); }
.notice-priority {
    width: 4px; height: 48px; border-radius: 4px;
    flex-shrink: 0; margin-top: 2px;
}
.notice-title { font-size: 0.9rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 4px; line-height: 1.4; }
.notice-meta { font-size: 0.78rem; color: var(--text-light); display: flex; gap: 12px; flex-wrap: wrap; }
.notice-meta span { display: flex; align-items: center; gap: 4px; }
.new-badge {
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

/* ── Stats ── */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 60px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 32px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-icon { font-size: 2rem; color: var(--accent); margin-bottom: 12px; }
.stat-number { font-size: 2.8rem; font-weight: 800; color: white; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* ── Events ── */
.event-item {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 20px; border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-white);
    transition: var(--transition);
    margin-bottom: 16px;
}
.event-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); transform: translateX(4px); }
.event-date {
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    min-width: 60px;
    flex-shrink: 0;
}
.event-date .day { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.event-date .month { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }
.event-info { flex: 1; }
.event-title { font-size: 0.95rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.event-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.event-meta span { display: flex; align-items: center; gap: 6px; }

/* ── Features ── */
.feature-card {
    text-align: center;
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card:hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: var(--shadow-xl); 
    border-color: var(--primary-light); 
}
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: white;
    margin: 0 auto 24px;
    box-shadow: 0 10px 25px rgba(26,60,110,0.2);
    transition: var(--transition);
}
.feature-card:hover .feature-icon { 
    transform: scale(1.1) rotate(-5deg); 
    box-shadow: 0 15px 35px rgba(26,60,110,0.3);
}
.feature-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 12px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; }

/* ── Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; inset: 0;
    background: rgba(26,60,110,0.7);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem;
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

/* ── Page Banner ── */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: url('/assets/images/hero-pattern.svg') center/cover;
    opacity: 0.05;
}
.page-banner h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; margin-bottom: 10px; }
.page-banner p { color: rgba(255,255,255,0.75); font-size: 1rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.breadcrumb a { color: var(--accent-light); font-size: 0.85rem; }
.breadcrumb span { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* ── Full News Card ── */
.news-full-card { background: var(--bg-white); border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; margin-bottom: 24px; display: flex; gap: 0; transition: var(--transition); }
.news-full-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.news-full-img { width: 240px; flex-shrink: 0; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; color: white; font-size: 3rem; }
.news-full-img img { width: 100%; height: 100%; object-fit: cover; }
.news-full-body { padding: 24px; flex: 1; }
.news-full-title { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; line-height: 1.4; }
.news-full-title a:hover { color: var(--primary-light); }
.news-full-excerpt { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; margin-bottom: 14px; }

/* ── Sidebar ── */
.sidebar-widget { background: var(--bg-white); border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; margin-bottom: 24px; }
.widget-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 16px 20px; }
.widget-header h4 { color: white; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.widget-body { padding: 16px 20px; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-text h4 { font-size: 0.9rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.contact-info-text p, .contact-info-text a { font-size: 0.875rem; color: var(--text-muted); }

/* ── Form ── */
.form-card { background: var(--bg-white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 36px; box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-control {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,184,0.1); }
.form-control.error { border-color: var(--danger); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Alert ── */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
}
.alert-success { background: rgba(39,174,96,0.1); border: 1px solid rgba(39,174,96,0.25); color: #155724; }
.alert-danger { background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.25); color: #721c24; }
.alert-info { background: rgba(52,152,219,0.1); border: 1px solid rgba(52,152,219,0.25); color: #0c5460; }
.alert-warning { background: rgba(243,156,18,0.1); border: 1px solid rgba(243,156,18,0.25); color: #856404; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--text-dark);
    transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: white; border-color: var(--primary); }

/* ── Footer ── */
.footer { background: var(--primary-dark); color: #94a3b8; }
.footer-top { padding: 64px 0; }
.footer-grid {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
}
.footer-logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.25rem; font-weight: 800; color: white; margin-bottom: 20px;
}
.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.footer-about p { font-size: 0.875rem; line-height: 1.8; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 0.85rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--primary-dark); }
.footer-col h4 { color: white; font-size: 0.95rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,0.08); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: #94a3b8; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent-light); padding-left: 4px; }
.footer-col ul li a i { font-size: 0.65rem; color: var(--accent); }
.footer-contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.875rem; margin-bottom: 12px; }
.footer-contact-list li i { color: var(--accent); margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0; }
.footer-bottom-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.82rem; flex-wrap: wrap; gap: 10px;
}

/* ── Animations ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }

.animate-on-scroll { opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { order: -1; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
}

@media (max-width: 900px) {
    .nav-toggle { display: flex; z-index: 10002; position: relative; }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        max-width: 85%;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        background: #ffffff;
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10001;
        align-items: stretch;
        gap: 0;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-mobile-branding {
        display: flex;
        align-items: center;
        padding: 24px;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 10px;
    }
    
    .nav-mobile-branding img {
        height: 48px;
        width: auto;
        margin-right: 12px;
    }
    
    .nav-mobile-branding .brand-info {
        display: flex;
        flex-direction: column;
    }
    
    .nav-mobile-branding .brand-name {
        font-family: var(--font-header);
        font-weight: 800;
        font-size: 1.1rem;
        color: var(--primary-dark);
        line-height: 1;
    }
    
    .nav-mobile-branding .brand-tag {
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--accent-dark);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-top: 2px;
    }
    
    .nav-links > li:not(.nav-mobile-branding) {
        padding: 0 20px;
    }
    .nav-links.open {
        transform: translateX(0);
    }
    .nav-links > li {
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .nav-links > li:last-child {
        border-bottom: none;
    }
    .nav-links > li > a {
        padding: 16px 4px;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--primary-dark) !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: none !important;
    }
    .nav-links > li > a i.fa-chevron-down {
        font-size: 0.7rem;
        transition: transform 0.3s ease;
        color: #94a3b8;
    }
    .dropdown.open > a i.fa-chevron-down {
        transform: rotate(180deg);
        color: var(--primary);
    }
    .nav-links .nav-cta {
        margin: 20px 0 0;
        text-align: center;
        justify-content: center;
        border-radius: 12px;
        padding: 14px;
    }

    /* Simple flat sub-menu */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 8px 0;
        display: none;
        min-width: unset;
        border-radius: 0;
    }
    .dropdown.open .dropdown-menu {
        display: block;
    }
    .dropdown-menu li a {
        padding: 10px 4px 10px 20px !important;
        font-size: 0.92rem !important;
        font-weight: 500 !important;
        color: #64748b !important;
        border-bottom: none !important;
        border-radius: 0 !important;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .dropdown-menu li a::before {
        content: '—';
        color: #cbd5e1;
        font-size: 0.75rem;
    }
    .dropdown-menu li a:hover {
        color: var(--primary) !important;
        background: transparent !important;
    }
    .topbar-left { display: none; }
    
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 10000;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .news-full-card { flex-direction: column; }
    .news-full-img { width: 100%; height: 180px; }
    .form-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    
    /* Fixed header on mobile handled by main-header */
    .main-header.scrolled .topbar { margin-top: 0; }
    .navbar {
        width: 100%;
        z-index: 10003;
    }
    .topbar { display: none; } /* Hide topbar on mobile to save space */
    body { padding-top: 80px; }
    body.home-page { padding-top: 0; }

}

@media (max-width: 480px) {
    .section { padding: 50px 0; }
    .hero { min-height: 85vh; height: 85dvh; display: flex; align-items: center; justify-content: center; }
    .hero-inner-new { padding-top: 100px; padding-bottom: 80px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .hero-title { font-size: 2.1rem; margin-bottom: 20px; text-align: center; }
    .hero-desc { font-size: 0.92rem; line-height: 1.6; margin-bottom: 30px; text-align: center; margin-left: auto; margin-right: auto; }
    .hero-actions { flex-direction: column; width: 100%; gap: 12px; align-items: center; }
    .hero-actions .btn-premium { width: 100%; max-width: 280px; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-bottom-curve { z-index: 20; background: transparent; } /* Higher z-index to stay above everything */
}
.about-preview { 
    padding: 100px 0; 
    background: var(--bg-white); 
    position: relative; 
    overflow: hidden; 
}
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    align-items: center; 
}
.about-image { 
    position: relative; 
}
.image-wrapper { 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    aspect-ratio: 1/1; /* Square ratio */
    width: 95%;
    margin: 0 auto;
    background: #f1f5f9; /* Fallback background color */
}
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* ── About Section Slider ── */
.about-slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.about-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}
.about-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.about-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 6s ease;
}
.about-slide.active img {
    transform: scale(1.05);
}

/* Prev / Next arrow buttons */
.about-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-dark);
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
    opacity: 0;
}
#aboutSliderWrapper:hover .about-slider-btn {
    opacity: 1;
}
.about-slider-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}
.about-slider-btn.prev { left: 12px; }
.about-slider-btn.next { right: 12px; }

/* Navigation dots */
.about-slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.about-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
}
.about-dot.active {
    background: #fff;
    transform: scale(1.4);
}
.image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 15px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    pointer-events: none;
}
.about-image::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background: var(--accent);
    bottom: -30px; left: -30px;
    border-radius: var(--radius-lg);
    z-index: 0;
    opacity: 0.2;
}
.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: var(--primary-dark);
    color: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    text-align: center;
    border-bottom: 4px solid var(--accent);
    min-width: 180px;
}
.experience-badge .number { 
    display: block; 
    font-size: 2.5rem; 
    font-weight: 800; 
    color: var(--accent); 
    line-height: 1; 
    margin-bottom: 4px; 
}
.experience-badge .text { 
    display: block; 
    font-size: 0.75rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    opacity: 0.9; 
}
.about-preview::before {
    content: '';
    position: absolute;
    top: -10%; right: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.about-content { 
    padding-left: 20px; 
}
.about-content .section-label { 
    justify-content: flex-start; 
}
.about-content .section-label::before { display: none; } /* Hide the left dash for left-aligned */

.about-content .section-title { 
    text-align: left; 
    margin-bottom: 24px; 
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}
.about-text { 
    color: var(--text-muted); 
    font-size: 1.05rem; 
    line-height: 1.8; 
    margin-bottom: 40px; 
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 48px;
}
.highlight-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.highlight-icon {
    width: 50px;
    height: 50px;
    background: rgba(26,77,161,0.08);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}
.highlight-item:hover .highlight-icon {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}
.highlight-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}
.highlight-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 90px; }
    .about-content { padding-left: 0; }
    .about-image { max-width: 500px; margin: 0 auto; }
}

@media (max-width: 576px) {
    .about-highlights { grid-template-columns: 1fr; }
    .experience-badge { right: 10px; min-width: 150px; padding: 15px; }
    .experience-badge .number { font-size: 2rem; }
}

/* ── Principal's Voice Section ── */
.principal-voice {
    padding: 120px 0;
    background: #f0f8ff; /* Clearer light blue theme */
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}
.principal-voice .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.voice-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}
.voice-image {
    position: relative;
    z-index: 2;
}
.voice-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    position: relative;
    z-index: 2;
}
.voice-shape {
    position: absolute;
    width: 120%; height: 120%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    top: -10%; left: -10%;
    z-index: 1;
    opacity: 0.1;
}
.voice-content {
    position: relative;
}
.voice-content .section-label {
    color: var(--primary-light);
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.voice-content .section-title {
    color: var(--primary-dark);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 30px;
    text-align: left;
}
.voice-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.voice-text p {
    margin-bottom: 20px;
    font-style: italic;
}
.principal-signature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}
.sig-title h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-dark);
}
.sig-title span {
    font-size: 0.85rem;
    color: var(--text-light);
}
.btn-dark {
    border: 1px solid var(--primary-light) !important;
    color: var(--primary-light) !important;
}
.btn-dark:hover {
    background: var(--primary-light);
    color: white !important;
    border-color: var(--primary-light) !important;
}

@media (max-width: 1024px) {
    .voice-wrapper { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .voice-image { max-width: 500px; margin: 0 auto; }
    .voice-content .section-title { text-align: center; }
    .principal-signature { flex-direction: column; gap: 24px; text-align: center; }
}

/* ── Events Grid Modern ── */
.events-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.event-card-modern {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 0; /* Changed to 0 to accommodate image */
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}
.event-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}
.event-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: var(--bg-light); /* Fallback bg */
}
.event-card-img.no-img {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-card-img.no-img i {
    font-size: 3.5rem;
    color: var(--primary);
    opacity: 0.3; /* Increased opacity for better visibility */
    transition: var(--transition);
}
.event-card-img.no-img::after {
    content: 'NO RECENT CAPTURES';
    position: absolute;
    bottom: 20px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary);
    opacity: 0.3;
}
.event-card-modern:hover .event-card-img.no-img i {
    transform: scale(1.1) rotate(-5deg);
    opacity: 0.5;
}
.event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.event-card-modern:hover .event-card-img img {
    transform: scale(1.1);
}

.event-card-body { padding: 30px; position: relative; }

.event-badge-top {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 999px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.event-card-modern.placeholder .event-badge-top {
    color: var(--accent-dark);
}

.event-card-date {
    position: absolute;
    top: -40px;
    left: 20px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    z-index: 3;
    box-shadow: 0 8px 16px rgba(26,60,110,0.25);
}
.event-card-date .day { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.event-card-date .month { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; opacity: 0.9; }

.event-card-body { position: relative; }
.event-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}
.event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.event-card-meta span { display: flex; align-items: center; gap: 6px; }
.event-card-meta i { color: var(--accent-dark); }

.event-card-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.event-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
    display: flex; align-items: center; gap: 6px;
    transition: var(--transition);
}
.event-card-link:hover { color: var(--primary); }
.event-card-link i { transition: var(--transition); }
.event-card-link:hover i { transform: translateX(5px); }

@media (max-width: 992px) {
    .events-grid-premium { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .events-grid-premium { grid-template-columns: 1fr; }
}


/* ── News & Notices Grid ── */
.news-notices-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ── Creative Footer ── */
.footer-premium {
    background: #d0e1f9; /* Clearly bluish light blue theme */
    color: var(--text-dark); /* Darker text for better contrast on blue */
    padding: 100px 0 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(26,60,110,0.1);
}
.footer-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--border) 1px, transparent 1.5px);
    background-size: 30px 30px;
    z-index: 0;
    opacity: 0.5;
}
.footer-grid-premium {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    position: relative;
    z-index: 1;
    margin-bottom: 80px;
}
.footer-col-premium h4 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 35px;
    position: relative;
    display: inline-block;
}
.footer-col-premium h4::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 0;
    width: 35px; height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}
.footer-about-premium .footer-logo-premium {
    display: flex; align-items: center; gap: 15px;
    margin-bottom: 25px;
}
.footer-about-premium .footer-logo-premium span {
    font-size: 1.5rem; font-weight: 900; color: var(--primary-dark); letter-spacing: -0.5px;
}
.footer-social-premium {
    display: flex; gap: 12px; margin-top: 35px;
}
.social-btn {
    width: 42px; height: 42px;
    background: white;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-light); font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.social-btn:hover { 
    background: var(--primary-light); 
    transform: translateY(-5px); 
    color: white;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.footer-links-premium { list-style: none; padding: 0; }
.footer-links-premium li { margin-bottom: 18px; }
.footer-links-premium a {
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex; align-items: center; gap: 12px;
    font-size: 0.95rem;
}
.footer-links-premium a:hover { color: var(--primary-light); transform: translateX(8px); }
.footer-links-premium a i { font-size: 0.7rem; opacity: 0.6; color: var(--primary-light); }

.footer-contact-item {
    display: flex; gap: 18px; margin-bottom: 28px;
}
.footer-contact-item i {
    width: 40px; height: 40px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-light);
    font-size: 1rem; flex-shrink: 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.footer-contact-item div p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--text-dark); font-weight: 600; }
.footer-contact-item div span { font-size: 0.78rem; color: var(--text-light); display: block; margin-bottom: 2px; }

.footer-bottom-premium {
    background: #bbd1ee; /* Deeper bluish for bottom bar */
    padding: 30px 0;
    border-top: 1px solid rgba(26,60,110,0.1);
    position: relative;
    z-index: 1;
}
.footer-bottom-inner {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: var(--primary-dark); }

@media (max-width: 1200px) {
    .footer-grid-premium { grid-template-columns: repeat(2, 1fr); gap: 50px; }
}
@media (max-width: 768px) {
    .footer-grid-premium { grid-template-columns: 1fr; gap: 40px; text-align: left; }
    .footer-bottom-inner { flex-direction: column; gap: 20px; text-align: center; }
    .footer-bottom-links { justify-content: center; }
}


/* ── Contact CTA ── */
.section-cta {
    background: linear-gradient(135deg, var(--primary-dark), #1a3c6e);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.section-cta::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 40%; height: 200%;
    background: radial-gradient(circle, rgba(243,156,18,0.05), transparent 70%);
}

.cta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.cta-info h2 { font-size: 2.5rem; color: white; }

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}
.c-method {
    display: flex;
    gap: 20px;
    align-items: center;
    color: white;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    transition: var(--transition);
}
.c-method:hover { background: rgba(255,255,255,0.1); transform: translateX(10px); }
.c-icon {
    width: 54px; height: 54px;
    background: rgba(255,255,255,0.1);
    color: var(--accent);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.c-method span { display: block; font-size: 0.8rem; opacity: 0.7; margin-bottom: 2px; }
.c-method strong { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.5px; }

.cta-form-card {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.cta-form-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 30px;
}
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.cta-form-card .form-group { margin-bottom: 20px; }
.cta-form-card .form-control {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    font-size: 0.95rem;
}
.cta-form-card .form-control:focus {
    background: white;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(26,60,110,0.05);
}

@media (max-width: 992px) {
    .cta-wrapper { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .c-method { justify-content: flex-start; text-align: left; }
    .cta-form-card { padding: 30px; }
    .section-cta { padding: 80px 0; }
}
@media (max-width: 600px) {
    .form-grid-2 { grid-template-columns: 1fr; }
}


/* ── Why Us Mosaic ── */
.why-us-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 24px;
}
.mosaic-item {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.mosaic-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.mosaic-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.mosaic-bg img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.mosaic-item:hover .mosaic-bg img { transform: scale(1.15); }
.mosaic-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16,42,76,0.92), rgba(16,42,76,0.1));
    z-index: 1;
}

.mosaic-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.mosaic-item:not(.mosaic-bg-overlay) .mosaic-content {
    justify-content: center;
}
.mosaic-bg-overlay .mosaic-content { 
    color: white; 
    justify-content: flex-end;
}

.mosaic-icon {
    width: 54px; height: 54px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: var(--transition);
}
.mosaic-bg-overlay .mosaic-icon {
    background: rgba(255,255,255,0.15);
    color: var(--accent);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
}
.mosaic-item:hover .mosaic-icon { transform: scale(1.1) rotate(-5deg); }

.mosaic-content h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; line-height: 1.3; }
.mosaic-bg-overlay h3 { color: white; }
.mosaic-item:not(.mosaic-bg-overlay) h3 { color: var(--primary-dark); }

.mosaic-content p { font-size: 0.86rem; line-height: 1.6; color: var(--text-muted); }
.mosaic-bg-overlay p { color: rgba(255,255,255,0.85); }

/* Spanning logic */
.mosaic-lg { grid-row: span 2; }
.mosaic-wide { grid-column: span 2; }
.mosaic-full { grid-column: span 2; grid-row: span 2; }

@media (max-width: 1200px) {
    .why-us-mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; }
}
@media (max-width: 992px) {
    .why-us-mosaic { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .why-us-mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .mosaic-lg, .mosaic-wide, .mosaic-full { grid-row: auto; grid-column: auto; }
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
}
.section-title-small {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
}
.view-all-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* News List */
.news-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.news-mini-card {
    display: flex;
    gap: 20px;
    background: var(--bg-white);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.news-mini-card:hover {
    transform: translateX(8px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}
.news-mini-img {
    width: 120px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light);
    flex-shrink: 0;
}
.news-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.news-mini-body { flex: 1; min-width: 0; }
.news-mini-body .tag { margin-bottom: 6px; display: inline-block; }
.news-mini-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
    white-space: normal; /* Allow wrapping on small screens */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-mini-meta { font-size: 0.75rem; color: var(--text-light); }

/* Notice Board Premium */
.notice-board-premium {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.board-header {
    background: var(--primary-dark);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}
.board-header h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin: 0; }
.board-header a { font-size: 0.8rem; color: var(--accent-light); font-weight: 600; }

.board-body { padding: 0; }
.notice-ticker-item {
    display: flex;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}
.notice-ticker-item:hover { background: var(--bg-light); }
.notice-ticker-item:last-child { border-bottom: none; }

.notice-date-box {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid var(--border);
}
.notice-date-box .d { font-weight: 800; font-size: 1.1rem; line-height: 1; color: var(--primary-dark); }
.notice-date-box .m { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }

.notice-info { flex: 1; }
.notice-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 3px;
    line-height: 1.4;
    display: flex; align-items: center; gap: 6px;
}
.badge-new-dot {
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
    display: inline-block;
}
.notice-prio { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

@media (max-width: 992px) {
    .news-notices-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
    .news-notices-grid { gap: 30px; }
    .news-mini-card { padding: 12px; gap: 14px; }
    .news-mini-img { width: 90px; height: 75px; }
    .notice-ticker-item { padding: 14px 16px; gap: 12px; }
    .notice-date-box { width: 44px; height: 44px; }
    .notice-date-box .d { font-size: 1rem; }
}

/* ── News & Notices Section – Light Background Theme ── */
.news-notices-section {
    position: relative;
}

/* Decorative background circles */
.news-notices-section::before,
.news-notices-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.news-notices-section::before {
    width: 500px; height: 500px;
    background: rgba(26, 77, 161, 0.06);
    top: -120px; right: -100px;
}
.news-notices-section::after {
    width: 300px; height: 300px;
    background: rgba(26, 77, 161, 0.04);
    bottom: -80px; left: -60px;
}

.news-notices-section .section-inner { position: relative; z-index: 1; }

/* Section header text on light bg */
.news-notices-section .section-label {
    color: var(--primary-light);
}
.news-notices-section .section-label::before,
.news-notices-section .section-label::after {
    background: var(--primary-light);
}
.news-notices-section .section-title {
    color: var(--primary-dark);
}
.news-notices-section .section-subtitle {
    color: var(--text-muted);
}

/* News mini cards on light bg */
.news-notices-section .news-mini-card {
    background: #ffffff;
    border-color: rgba(26, 77, 161, 0.12);
    box-shadow: 0 2px 12px rgba(26,77,161,0.08);
}
.news-notices-section .news-mini-card:hover {
    background: #ffffff;
    border-color: var(--primary-light);
    box-shadow: 0 6px 24px rgba(26,77,161,0.15);
}
.news-notices-section .news-mini-card h3 a {
    color: var(--primary-dark);
}
.news-notices-section .news-mini-card h3 a:hover {
    color: var(--primary-light);
}
.news-notices-section .news-mini-meta {
    color: var(--text-muted);
}
.news-notices-section .section-header-row h2 {
    color: var(--primary-dark);
}
.news-notices-section .view-all-link {
    color: var(--primary-light);
}
.news-notices-section .view-all-link:hover {
    color: var(--primary);
}
.news-notices-section .alert-info {
    background: rgba(26,77,161,0.07);
    border-color: rgba(26,77,161,0.2);
    color: var(--primary-dark);
}

/* Notice board on light bg */
.news-notices-section .notice-board-premium {
    background: #ffffff;
    border: 1px solid rgba(26, 77, 161, 0.15);
    box-shadow: 0 2px 12px rgba(26,77,161,0.08);
}
.news-notices-section .board-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-bottom: none;
}
.news-notices-section .board-header h3 {
    color: #ffffff;
}
.news-notices-section .board-header a {
    color: var(--accent-light);
}
.news-notices-section .notice-ticker-item {
    border-bottom-color: var(--border);
}
.news-notices-section .notice-ticker-item:hover {
    background: var(--bg-light);
}
.news-notices-section .notice-date-box {
    background: rgba(26,77,161,0.08);
    border-color: rgba(26,77,161,0.2);
}
.news-notices-section .notice-date-box .d,
.news-notices-section .notice-date-box .m {
    color: var(--primary);
}
.news-notices-section .notice-info h4 {
    color: var(--primary-dark);
}



/* ============================================
   GLOBAL RESPONSIVENESS FIXES
   ============================================ */

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

/* About and Feature Grids */
.about-grid, .contact-grid {
    display: grid;
    gap: 40px;
}
.about-grid { grid-template-columns: 1fr 1fr; }
.contact-grid { grid-template-columns: 1fr 1.5fr; }

/* Timeline Utility (Refactored from About.php) */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}
.timeline-line {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 4px;
    background: rgba(26,60,110,0.06);
    transform: translateX(-50%);
}
.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    width: 100%;
}
.timeline-card {
    width: 45%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.timeline-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.timeline-dot {
    position: absolute;
    left: 50%; top: 30px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary-light);
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 8px rgba(26,60,110,0.05);
}

/* ── Mobile Overrides (Max 992px) ── */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .news-full-card { flex-direction: column; }
    .news-full-img { width: 100%; height: 200px; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* ── Mobile Overrides (Max 768px) ── */
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: 1.8rem; }
    
    /* Timeline Mobile */
    .timeline-line { left: 20px; transform: none; }
    .timeline-item { justify-content: flex-start !important; padding-left: 50px; }
    .timeline-card { width: 100% !important; margin: 0 !important; }
    .timeline-dot { left: 20px; transform: translateX(-50%); }

    /* Admission Specifics */
    .admission-steps { grid-template-columns: 1fr !important; gap: 40px !important; }
    .connector-line { display: none; }

    /* Principal Message Float Fix */
    .principal-message-wrap .about-image { 
        float: none !important; 
        width: 100% !important; 
        max-width: 350px; 
        margin: 0 auto 40px !important; 
    }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn-premium { width: 100%; justify-content: center; }
}


/* ──────────────────────────────────────────────────────────
   ADMISSION PAGE STYLES
   ────────────────────────────────────────────────────────── */
.admission-hero {
    position: relative;
    padding: 160px 0 100px !important;
    text-align: center;
    color: white;
    overflow: hidden;
}

.admission-stats {
    background: var(--bg-white);
    padding: 30px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.stat-mini-card {
    transition: var(--transition);
    padding: 20px;
    border-right: 1px solid var(--border);
}
.stat-mini-card:last-child { border-right: none; }
.stat-mini-card:hover { transform: translateY(-5px); }
.stat-mini-card h4 { font-size: 2rem; color: var(--primary); margin-bottom: 5px; }

.admission-steps-container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background: var(--bg-white);
    padding: 40px 25px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    transition: var(--transition);
    z-index: 2;
}
.step-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg); 
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 25px;
    box-shadow: 0 0 0 8px rgba(26,77,161,0.08);
}

.step-card h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.connector-line {
    position: absolute;
    top: 80px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--border), var(--border) 10px, transparent 10px, transparent 20px);
    z-index: 1;
}

.doc-list-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.doc-item-premium {
    background: #f8fafc;
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    gap: 20px;
    transition: var(--transition);
}
.doc-item-premium:hover {
    background: white;
    border-color: var(--primary-light);
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
}
.doc-item-premium i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 3px;
}
.doc-item-premium strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}
.doc-item-premium span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.calendar-card {
    background: linear-gradient(135deg, #102a4c, #1a3c6e);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}
.calendar-card h3 { color: white; margin-bottom: 30px; display: flex; align-items: center; gap: 12px; }
.calendar-card table td { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.95rem; }
.calendar-card table tr:last-child td { border-bottom: none; }
.calendar-card .date-val { text-align: right; color: var(--accent); font-weight: 700; }

@media (max-width: 992px) {
    .admission-steps-container { grid-template-columns: 1fr 1fr; }
    .connector-line { display: none; }
    .doc-list-modern { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .admission-steps-container { grid-template-columns: 1fr; }
    .admission-stats .grid-4 { grid-template-columns: 1fr 1fr; }
    .stat-mini-card { border-right: none; border-bottom: 1px solid var(--border); }
    .stat-mini-card:nth-child(even) { border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); }
    .stat-mini-card:last-child, .stat-mini-card:nth-last-child(2) { border-bottom: none; }
}
