/* RESET - Landing page only, no dashboard conflict */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #c4161c;
    --white: #ffffff;
    --dark: #1f2937;
    --gray: #f3f4f6;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--dark);
}

.container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Landing Header – two rows, clean alignment */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Top row: logo left | phone center | social right */
.header-top {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 12px 0;
    gap: 32px;
}

.logo-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #1e293b;
}

.logo-brand img {
    display: block;
    height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.logo-icon {
    font-size: 1.75rem;
    color: #059669;
    flex-shrink: 0;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 2px;
}

.header-phone-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-phone {
    display: flex;
    align-items: center;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.header-phone i {
    margin-right: 10px;
    color: #059669;
    font-size: 1rem;
}

.header-phone:hover { color: var(--red); }

.header-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-social a {
    color: #64748b;
    font-size: 1.1rem;
}

.header-social a:hover { color: var(--red); }

/* Bottom row: nav left | Apply Now right */
.navbar {
    background: white;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 12px 0;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a:hover { color: var(--red); }

.nav-links a.active {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.nav-links li { list-style: none; }

.btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f97316;
    color: white !important;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-apply:hover { background: #ea580c; }

/* Hero fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.3s;
}

.fade-in.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero */
.hero {
    background: var(--red);
    color: var(--white);
    padding: 140px 20px;
    position: relative;
    min-height: 800px;
}
.hero:not(.hero-carousel) {
    text-align: left;
}

.hero.hero-with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    pointer-events: none;
}

.hero.hero-with-bg .hero-content-inner {
    position: relative;
    z-index: 1;
}

/* Hero carousel (3+ images) */
.hero.hero-carousel {
    padding: 0;
    min-height: 800px;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-slide-caption {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1rem;
}

.hero-content-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 120px 20px 140px;
    text-align: left;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}

.hero-carousel .hero-content-overlay h1,
.hero-carousel .hero-content-overlay p {
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s;
}

.hero-carousel-btn:hover {
    background: rgba(0,0,0,0.6);
}

.hero-prev { left: 12px; }
.hero-next { right: 12px; }

/* Hero Login Buttons - top-right, theme colors */
.hero-login-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 4;
}

.hero-login-static {
    position: absolute;
    top: 20px;
    right: 20px;
}

.btn-login {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-login:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-login-admin { background: var(--primary-color); color: var(--secondary-color); }
.btn-login-teacher { background: var(--accent-color); color: var(--primary-color); }
.btn-login-student { background: var(--secondary-color); color: var(--primary-color); border: 2px solid var(--primary-color); }

/* Hero content left-aligned per mockup */
.hero-content-left {
    text-align: left;
}

.hero-content-left .hero-sub,
.hero-content-left p {
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
}

.hero-cta-buttons {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero-apply {
    display: inline-block;
    background: #10b981;
    color: white !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-hero-apply:hover { background: #059669; }

.btn-hero-learn {
    display: inline-block;
    background: transparent;
    color: white !important;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.9);
    transition: all 0.2s;
}

.btn-hero-learn:hover {
    background: rgba(255,255,255,0.15);
}

.hero-carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.hero-carousel-dots .dot.active,
.hero-carousel-dots .dot:hover {
    background: white;
}

.hero-tagline {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0;
}

.hero-sub {
    font-size: 1rem;
    opacity: 0.95;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.buttons {
    margin-top: 30px;
}

.btn-red {
    display: inline-block;
    background: var(--white);
    color: var(--red);
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 10px;
}

.btn-red {
    transition: all 0.3s ease;
}

.btn-red:hover {
    background: #fef2f2;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-hero-primary {
    background: #10b981;
    color: white !important;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-right: 12px;
    transition: all 0.3s;
}
.btn-hero-primary:hover { background: #059669; transform: translateY(-2px); }

.btn-hero-secondary {
    background: rgba(255,255,255,0.2);
    color: white !important;
    padding: 12px 28px;
    border: 2px solid white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }

/* Stats Section (4 colored boxes: Blue, Green, Orange, Red) */
.stats-section {
    padding: 56px 20px;
    background: #fafafa;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.stats-section .stat-box {
    padding: 36px 24px;
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.stats-section .stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.stats-section .stat-box .stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.95;
}

.stats-section .stat-box .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stats-section .stat-box .stat-label {
    font-size: 0.95rem;
}

.stat-blue { background: #2563eb; }
.stat-green { background: #059669; }
.stat-orange { background: #ea580c; }
.stat-red { background: #dc2626; }

/* Why Choose Us — colorful */
.why-choose-section {
    padding: 72px 20px;
    background: linear-gradient(180deg, #f0f9ff 0%, #fefce8 50%, #fef2f2 100%);
}
.why-choose-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.why-choose-title {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}
.why-choose-sub {
    text-align: center;
    color: #475569;
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto 48px;
    line-height: 1.65;
}
.why-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.why-card-new {
    background: white;
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    border: 2px solid transparent;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.why-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}
.why-card-new:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
/* Color 1: Blue */
.why-card-color-1 .why-card-icon-wrap { background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); }
.why-card-color-1::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.why-card-color-1 { border-color: #dbeafe; }
.why-card-color-1:hover { box-shadow: 0 16px 48px rgba(59, 130, 246, 0.2); }
/* Color 2: Green */
.why-card-color-2 .why-card-icon-wrap { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); }
.why-card-color-2::before { background: linear-gradient(90deg, #10b981, #34d399); }
.why-card-color-2 { border-color: #d1fae5; }
.why-card-color-2:hover { box-shadow: 0 16px 48px rgba(16, 185, 129, 0.2); }
/* Color 3: Orange */
.why-card-color-3 .why-card-icon-wrap { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); }
.why-card-color-3::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.why-card-color-3 { border-color: #fed7aa; }
.why-card-color-3:hover { box-shadow: 0 16px 48px rgba(245, 158, 11, 0.2); }
/* Color 4: Red */
.why-card-color-4 .why-card-icon-wrap { background: linear-gradient(135deg, var(--red), #b91c1c); box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4); }
.why-card-color-4::before { background: linear-gradient(90deg, var(--red), #f87171); }
.why-card-color-4 { border-color: #fecaca; }
.why-card-color-4:hover { box-shadow: 0 16px 48px rgba(220, 38, 38, 0.2); }
.why-card-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}
.why-card-icon-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.why-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.3;
}
.why-card-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}
.why-card-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
}
.why-card-date i { font-size: 0.8rem; color: #94a3b8; }
.why-card-color-1 .why-card-date { color: #2563eb; }
.why-card-color-1 .why-card-date i { color: #3b82f6; }
.why-card-color-2 .why-card-date { color: #059669; }
.why-card-color-2 .why-card-date i { color: #10b981; }
.why-card-color-3 .why-card-date { color: #d97706; }
.why-card-color-3 .why-card-date i { color: #f59e0b; }
.why-card-color-4 .why-card-date { color: var(--red); }
.why-card-color-4 .why-card-date i { color: #ef4444; }
.why-card-level {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 10px;
    font-weight: 600;
    border-radius: 9999px;
    margin-top: 8px;
}
.why-card-color-1 .why-card-level { background: #dbeafe; color: #1d4ed8; }
.why-card-color-2 .why-card-level { background: #d1fae5; color: #047857; }
.why-card-color-3 .why-card-level { background: #fed7aa; color: #b45309; }
.why-card-color-4 .why-card-level { background: #fecaca; color: #b91c1c; }
.why-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
}
.why-card-color-1 .why-card-link { color: #2563eb; }
.why-card-color-1 .why-card-link:hover { color: #1d4ed8; text-decoration: underline; }
.why-card-color-2 .why-card-link { color: #059669; }
.why-card-color-2 .why-card-link:hover { color: #047857; text-decoration: underline; }
.why-card-color-3 .why-card-link { color: #d97706; }
.why-card-color-3 .why-card-link:hover { color: #b45309; text-decoration: underline; }
.why-card-color-4 .why-card-link { color: var(--red); }
.why-card-color-4 .why-card-link:hover { color: #b91c1c; text-decoration: underline; }
.events-empty-landing {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 32px;
    background: white;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.events-empty-landing i { font-size: 2.5rem; color: var(--red); margin-bottom: 16px; display: block; }
.events-empty-landing p { color: #64748b; font-size: 1rem; line-height: 1.6; margin: 0; }
.why-choose-section .btn-events-all {
    display: block;
    text-align: center;
    max-width: 200px;
    margin: 0 auto;
}

/* Legacy why classes (kept for other pages) */
.why-sub { text-align: center; color: #64748b; font-size: 1.05rem; max-width: 520px; margin: 0 auto 40px; line-height: 1.6; }
.why-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.why-card { background: white; border-radius: 14px; padding: 32px 24px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid #e5e7eb; transition: transform 0.2s, box-shadow 0.2s; }
.why-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.why-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--red), color-mix(in srgb, var(--red) 80%, black)); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 20px; }
.why-icon-img { width: 36px; height: 36px; object-fit: contain; filter: brightness(0) invert(1); }

/* Section headings */
.about-section h2,
.landing-gallery h2,
.landing-highlights h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

/* About Section (two-column, design with wave) */
.about-section {
    padding: 80px 20px;
    background: white;
    position: relative;
    overflow: hidden;
}

.about-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65%;
    height: 80%;
    background: radial-gradient(ellipse 90% 70% at 0% 100%, rgba(134, 239, 172, 0.4) 0%, rgba(134, 239, 172, 0.15) 40%, transparent 70%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    position: relative;
    z-index: 1;
}

.about-image-col .about-img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 1;
}

.about-img-placeholder {
    aspect-ratio: 1;
    background: var(--gray);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}
.about-img-placeholder i { font-size: 3rem; margin-bottom: 12px; }

.about-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 8px;
}

.about-text-col h2 {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 16px;
}

.about-desc {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
}
.about-story {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}
.about-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin: 0 0 28px 0;
}

.about-benefit {
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-icon-green { color: #10b981; }
.about-icon-orange { color: #f97316; }
.about-icon-blue { color: #3b82f6; }
.about-icon-red { color: #ef4444; }

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #15803d;
    color: white !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
}
.btn-read-more:hover { background: #166534; }

/* About Vision & Mission */
.about-vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}
.about-vm-card {
    background: white;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}
.about-vm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}
.about-vm-vision { border-top: 4px solid #3b82f6; }
.about-vm-mission { border-top: 4px solid var(--red); }
.about-vm-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}
.about-vm-vision .about-vm-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: white; }
.about-vm-mission .about-vm-icon { background: linear-gradient(135deg, var(--red), #b91c1c); color: white; }
.about-vm-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.about-vm-vision h3 { color: #1d4ed8; }
.about-vm-mission h3 { color: var(--red); }
.about-vm-card p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}
@media (max-width: 768px) {
    .about-vm-grid { grid-template-columns: 1fr; }
}

/* Gallery View All */
.gallery-view-all {
    text-align: center;
    margin-top: 28px;
}

.btn-view-photos {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #16a34a;
    color: white !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
}
.btn-view-photos:hover { background: #15803d; }

.link-read-more-event {
    color: #10b981;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}
.link-read-more-event:hover { text-decoration: underline; }

/* CTA Banner (red, per mockup) */
.cta-banner {
    background: var(--primary-color);
    padding: 24px 20px;
    text-align: center;
}

.cta-banner-link {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.cta-banner-link:hover {
    text-decoration: underline;
}

/* Event cards */
.event-card {
    position: relative;
}

.event-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #dcfce7;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}


/* Features */
.features {
    padding: 80px 20px;
    text-align: center;
}

.features h2 {
    margin-bottom: 40px;
    color: var(--red);
}

.features .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.features .card {
    padding: 30px;
    background: var(--gray);
    border-radius: 8px;
    font-weight: bold;
}

/* Contact Form */
.contact {
    background: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.contact h2 {
    margin-bottom: 10px;
    color: var(--red);
}

.contact .contact-sub {
    margin-bottom: 30px;
    color: #6b7280;
}

.contact form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.contact input,
.contact textarea {
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(196, 22, 28, 0.2);
}

.contact textarea {
    resize: vertical;
    min-height: 120px;
}

.contact button {
    padding: 14px 24px;
    border-radius: 6px;
    border: none;
    background: var(--red);
    color: var(--white);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 6px;
}

.contact button:hover {
    background: #a81218;
}

.contact .form-error {
    display: block;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: -6px;
}

/* Counters Section */
.counters {
    background: var(--gray);
    padding: 80px 20px;
    text-align: center;
}

.counters h2 {
    margin-bottom: 40px;
    color: var(--red);
}

.counter-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.counter-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 10px;
    min-width: 160px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.counter-card h3 {
    font-size: 2.2rem;
    color: var(--red);
    margin-bottom: 10px;
}

.counter-card p {
    margin: 0;
    color: var(--dark);
}

/* Dashboard Preview */
.dashboard-preview {
    background: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.dashboard-preview h2 {
    margin-bottom: 15px;
    color: var(--red);
    font-size: 2rem;
}

.dashboard-preview > .container > p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.dashboard-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.dashboard-preview .slide {
    position: relative;
    min-width: 100%;
    box-sizing: border-box;
    background: var(--gray);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.dashboard-preview .slide .overlay {
    position: absolute;
    bottom: 50px;
    left: 20px;
    background: rgba(196, 22, 28, 0.9);
    color: white;
    padding: 15px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
    text-align: left;
}

.dashboard-preview .slide .overlay p {
    margin: 0 0 6px 0;
}

.dashboard-preview .slide .overlay p:last-child {
    margin-bottom: 0;
}

.dashboard-preview .slide:hover .overlay {
    opacity: 1;
}

.dashboard-preview .slide img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 10px;
    display: block;
    border-radius: 8px;
}

.dashboard-preview .slide h3 {
    font-weight: bold;
    color: var(--red);
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--red);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 2;
}

.prev-btn:hover,
.next-btn:hover {
    background: #a81218;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Levels */
.levels {
    background: var(--gray);
    padding: 60px 20px;
    text-align: center;
}

.levels h2 {
    margin-bottom: 15px;
    color: var(--red);
}

.levels p {
    font-size: 1.1rem;
}

/* CTA */
.cta {
    background: var(--red);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.cta h2 {
    margin-bottom: 25px;
}

.btn-large {
    font-size: 1.2rem;
    padding: 16px 36px;
}

/* Back-to-top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    background: var(--red);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

#backToTop:hover {
    background: #a81218;
}

/* Flash success */
.flash-success {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #059669;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: flashFade 4s ease forwards;
}

@keyframes flashFade {
    0%, 20% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}

/* Footer */
.footer {
    background: #111827;
    color: #d1d5db;
    padding: 40px 20px;
    text-align: center;
}

.footer .container {
    max-width: 900px;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}

.footer-quick-links a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-quick-links a:hover {
    color: white;
}

/* About / Why Choose Us */
.landing-about {
    padding: 60px 20px;
    text-align: center;
    background: var(--white);
}
.landing-about h2 { color: var(--red); margin-bottom: 16px; }
.landing-about-text { max-width: 700px; margin: 0 auto 24px; color: #374151; line-height: 1.6; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 32px auto 0;
    text-align: left;
}

.why-item {
    padding: 24px;
    background: var(--gray);
    border-radius: 12px;
    border-left: 4px solid var(--red);
}

.why-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.why-item h3 {
    margin: 8px 0 8px;
    color: var(--red);
    font-size: 1.1rem;
}

.why-item p {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Testimonials / Parent Feedback — 3-slide carousel, Why Choose Us style */
.testimonial-carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 50px;
}
.testimonial-carousel-inner {
    overflow: hidden;
}
.testimonial-track {
    display: flex;
    transition: transform 0.4s ease-out;
    gap: 24px;
}
.testimonial-item {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
}
.testimonials-section .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--red), color-mix(in srgb, var(--red) 85%, black));
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(198, 38, 38, 0.35);
    transition: transform 0.2s;
}
.testimonials-section .carousel-btn:hover {
    transform: translateY(-50%) scale(1.05);
}
.testimonials-section .prev-btn { left: 0; }
.testimonials-section .next-btn { right: 0; }
.testimonials-section .carousel-dots {
    margin-top: 28px;
}
.testimonial-card-new .why-card-icon-wrap {
    margin-bottom: 16px;
}
.testimonial-photo-new {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    display: block;
}
.testimonial-message-new {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 14px;
    font-style: italic;
}
.testimonial-name-new {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.why-card-color-1 .testimonial-name-new { color: #1e40af; }
.why-card-color-2 .testimonial-name-new { color: #047857; }
.why-card-color-3 .testimonial-name-new { color: #b45309; }
.why-card-color-4 .testimonial-name-new { color: #b91c1c; }
.testimonial-role-new {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
}
.testimonials-empty-new {
    max-width: 500px;
    margin: 0 auto;
    padding: 48px 32px;
    text-align: center;
    background: white;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.testimonials-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonials-empty-icon i {
    font-size: 1.75rem;
    color: var(--red);
}
.testimonials-empty-new p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

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

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--red);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.carousel-dots .dot.active,
.carousel-dots .dot:hover {
    background: var(--red);
}

/* CTA admission section */
.cta-instruction {
    margin-bottom: 24px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Gallery — small cards in grid, fixed height so images don't cover page */
.school-gallery {
    padding: 60px 20px;
    background: #ffffff;
}

.school-gallery.page-content {
    background: #ffffff;
    padding: 40px 20px 60px;
}

.school-gallery-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.school-gallery-title {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 600;
    color: #1A202C;
    margin-bottom: 36px;
}

.school-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.school-gallery .gallery-item {
    height: 180px !important;
    min-height: 0;
    max-height: 180px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.school-gallery .gallery-link {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    text-decoration: none;
}

.school-gallery .gallery-item img {
    width: 100%;
    height: 180px !important;
    max-height: 180px !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: 0.4s;
}

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

.school-gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    padding: 14px 32px;
    background: #4CAF50;
    color: white !important;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 9999px;
    transition: background 0.2s;
}

.school-gallery-btn:hover { background: #45a049; }

.school-gallery .school-gallery-empty {
    grid-column: 1 / -1;
    padding: 48px 24px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

/* Gallery page — enhanced */
.gallery-intro-section .gallery-intro-text {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.gallery-photos-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 28px;
    text-align: center;
}
.gallery-empty-card {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
    padding: 48px 32px;
    background: white;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.gallery-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-empty-card .gallery-empty-icon i {
    font-size: 1.75rem;
    color: var(--red);
}
.gallery-empty-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}
.school-gallery-empty i {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 12px;
    display: block;
}

.school-gallery-empty p {
    color: #64748b;
    margin: 0;
}

@media (max-width: 992px) {
    .school-gallery .gallery-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 992px) {
    .events-grid-landing { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .school-gallery .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .events-grid-landing { grid-template-columns: 1fr; }
    .events-grid-page { grid-template-columns: 1fr; }
    .event-past-card { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 480px) {
    .school-gallery .gallery-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
}

/* Legacy gallery (if used elsewhere) */
.gallery-empty, .highlights-empty {
    text-align: center;
    padding: 56px 32px;
    background: white;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    max-width: 420px;
    margin: 0 auto;
}
.gallery-empty i, .highlights-empty i { font-size: 2.5rem; color: #94a3b8; margin-bottom: 1rem; display: block; }
.gallery-empty p, .highlights-empty p { color: #64748b; font-size: 1rem; line-height: 1.6; margin: 0; }

/* Highlights / Events (legacy, kept for other uses) */
.landing-highlights {
    padding: 60px 20px;
    background: var(--white);
}
.landing-highlights h2 { color: var(--red); margin-bottom: 28px; text-align: center; }
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.highlight-card {
    padding: 20px;
    background: var(--gray);
    border-radius: 10px;
    border-left: 4px solid var(--red);
}
.highlight-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--dark); }
.highlight-card p { font-size: 0.95rem; color: #6b7280; margin-bottom: 10px; line-height: 1.5; }
.highlight-date { font-size: 0.85rem; color: var(--red); font-weight: 600; }

/* Events section — polished colorful cards */
.events-section {
    padding: 72px 20px;
    background: linear-gradient(180deg, #f0f9ff 0%, #fefce8 50%, #fef2f2 100%);
}
.events-section .container {
    max-width: 1120px;
    margin: 0 auto;
}
.events-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.events-section-sub {
    text-align: center;
    color: #64748b;
    font-size: 1.05rem;
    margin-bottom: 40px;
}
.events-grid-landing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
    align-items: stretch;
}
.event-card-style {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}
.event-card-style::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: 16px 16px 0 0;
}
.event-card-style:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
    border-color: transparent;
}
.event-card-page {
    border-left: 4px solid transparent;
}
.event-card-color-1.event-card-page { border-left-color: #3b82f6; }
.event-card-color-2.event-card-page { border-left-color: #10b981; }
.event-card-color-3.event-card-page { border-left-color: #f59e0b; }
.event-card-color-4.event-card-page { border-left-color: var(--red); }
.event-card-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 14px;
}
.event-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
/* Event card colors — match Why Choose Us */
.event-card-color-1 .event-card-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); }
.event-card-color-1::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.event-card-color-1 { border-color: #dbeafe; }
.event-card-color-1:hover { box-shadow: 0 16px 48px rgba(59, 130, 246, 0.2); }
.event-card-color-1 .event-read-more { color: #2563eb; }
.event-card-color-1 .event-read-more:hover { color: #1d4ed8; }
.event-card-color-2 .event-card-icon { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); }
.event-card-color-2::before { background: linear-gradient(90deg, #10b981, #34d399); }
.event-card-color-2 { border-color: #d1fae5; }
.event-card-color-2:hover { box-shadow: 0 16px 48px rgba(16, 185, 129, 0.2); }
.event-card-color-2 .event-read-more { color: #059669; }
.event-card-color-2 .event-read-more:hover { color: #047857; }
.event-card-color-3 .event-card-icon { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); }
.event-card-color-3::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.event-card-color-3 { border-color: #fed7aa; }
.event-card-color-3:hover { box-shadow: 0 16px 48px rgba(245, 158, 11, 0.2); }
.event-card-color-3 .event-read-more { color: #d97706; }
.event-card-color-3 .event-read-more:hover { color: #b45309; }
.event-card-color-4 .event-card-icon { background: linear-gradient(135deg, var(--red), #b91c1c); box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4); }
.event-card-color-4::before { background: linear-gradient(90deg, var(--red), #f87171); }
.event-card-color-4 { border-color: #fecaca; }
.event-card-color-4:hover { box-shadow: 0 16px 48px rgba(220, 38, 38, 0.2); }
.event-card-color-4 .event-read-more { color: var(--red); }
.event-card-color-4 .event-read-more:hover { color: #b91c1c; }
.event-card-style .event-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
}
.event-card-color-1 .event-card-title { color: #1e40af; }
.event-card-color-2 .event-card-title { color: #047857; }
.event-card-color-3 .event-card-title { color: #b45309; }
.event-card-color-4 .event-card-title { color: #b91c1c; }
.event-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 14px;
    font-weight: 600;
}
.event-card-color-1 .event-card-date,
.event-card-color-1 .event-card-date i { color: #2563eb; }
.event-card-color-2 .event-card-date,
.event-card-color-2 .event-card-date i { color: #059669; }
.event-card-color-3 .event-card-date,
.event-card-color-3 .event-card-date i { color: #d97706; }
.event-card-color-4 .event-card-date,
.event-card-color-4 .event-card-date i { color: var(--red); }
.event-card-date i {
    font-size: 0.9rem;
}
.event-card-style .event-card-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}
.event-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #10b981;
    text-decoration: none;
}
.event-read-more:hover { text-decoration: underline; }

/* Legacy event card (events page) */
.event-card-link { text-decoration: none; color: inherit; }
.event-card-new { display: flex; flex-direction: column; gap: 0; background: white; border-radius: 14px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid #e5e7eb; transition: box-shadow 0.25s, transform 0.25s; height: 100%; }
.event-card-link:hover .event-card-new { box-shadow: 0 12px 36px rgba(0,0,0,0.1); transform: translateY(-4px); }
.event-date-badge { flex-shrink: 0; width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(135deg, var(--red), color-mix(in srgb, var(--red) 82%, black)); color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 16px; }
.event-day { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.event-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.event-card-meta { font-size: 0.8rem; color: var(--red); font-weight: 600; }
.event-card-meta i { margin-right: 6px; }
.event-card-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--red); margin-top: 12px; }
.event-card-link:hover .event-card-cta { text-decoration: underline; }
.events-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 56px 32px;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.events-empty i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    display: block;
}
.events-empty p {
    color: #64748b;
    font-size: 1.05rem;
    margin: 0;
}
.btn-events-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--red);
    color: white !important;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 9999px;
    text-decoration: none;
    margin: 0 auto;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(211, 47, 47, 0.3);
}
.btn-events-all:hover {
    background: color-mix(in srgb, var(--red) 85%, black);
    transform: translateY(-2px);
}

/* Events page — uses Why Choose Us design (why-choose-section, why-cards-grid, why-card-new) */
.events-page-content.why-choose-section .why-cards-grid {
    margin-bottom: 48px;
}
.events-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 56px;
    align-items: stretch;
}
.event-card-page {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.event-card-page .event-card-desc {
    flex: 1;
}
.event-card-full .event-card-desc {
    margin-bottom: 16px;
}
.event-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.event-card-level {
    font-size: 0.8rem;
    padding: 5px 12px;
    font-weight: 600;
    border-radius: 9999px;
    align-self: flex-start;
}
.event-card-color-1 .event-card-level { background: #dbeafe; color: #1d4ed8; }
.event-card-color-2 .event-card-level { background: #d1fae5; color: #047857; }
.event-card-color-3 .event-card-level { background: #fed7aa; color: #b45309; }
.event-card-color-4 .event-card-level { background: #fecaca; color: #b91c1c; }
.events-empty-page {
    max-width: 500px;
    margin: 56px auto 0;
    text-align: center;
    padding: 48px 32px;
    background: white;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.events-empty-page i {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 16px;
    display: block;
}
.events-empty-page p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}
.events-past-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--red);
    margin-top: 48px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #fecaca;
}
.events-past-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.event-past-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 24px;
    padding: 20px 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--red);
    align-items: start;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.event-past-card:hover {
    box-shadow: 0 6px 24px rgba(198, 38, 38, 0.12);
}
.event-past-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
    padding-top: 2px;
}
.event-past-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.event-past-content p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* Contact info */
.contact .contact-info {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.contact .contact-info p { margin: 6px 0; }

/* Page hero (for dedicated pages) — compact, matches landing style */
.page-hero {
    background: linear-gradient(135deg, var(--red) 0%, color-mix(in srgb, var(--red) 88%, black) 100%);
    color: white;
    padding: 48px 20px 56px;
    text-align: center;
    position: relative;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.04), transparent);
    pointer-events: none;
}
.page-hero h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.page-hero p {
    font-size: 1rem;
    opacity: 0.95;
    max-width: 520px;
    margin: 0 auto;
}

.page-content {
    padding: 56px 20px 64px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 20%);
}
.page-stats { padding: 40px 20px; background: var(--gray); }
.page-cta {
    padding: 40px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.page-cta .cta-banner {
    background: var(--red);
    border-radius: 12px;
    padding: 20px 24px;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact page — enhanced */
.contact-intro-section .contact-intro-text {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.contact-methods-section .why-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 0;
}
.contact-office-hours {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.contact-office-hours h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 10px;
}
.contact-office-hours p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}
.contact-success {
    padding: 14px 18px;
    background: #d1fae5;
    color: #047857;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}
.contact-info-empty {
    color: #94a3b8;
    font-size: 0.95rem;
}
@media (max-width: 900px) {
    .contact-methods-section .why-cards-grid { grid-template-columns: 1fr; }
}

/* Contact page grid */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}
.contact-info-card,
.contact-form-card {
    background: var(--gray);
    padding: 32px;
    border-radius: 12px;
    text-align: left;
}
.contact-info-card h2,
.contact-form-card h2 {
    color: var(--red);
    margin-bottom: 20px;
    font-size: 1.35rem;
}
.contact-info-card .contact-info p {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-info-card .contact-info i {
    color: var(--red);
    width: 20px;
}
.contact-form-card form { display: flex; flex-direction: column; gap: 12px; }

.about-motto { margin-bottom: 20px; color: #64748b; font-style: italic; }

.gallery-full .gallery-item { animation: none; opacity: 1; transform: none; }

.landing-highlights.page-content {
    background: transparent;
}

/* Admissions Requirements page — same design as Events/Why Choose Us */
.admission-requirements-page.why-choose-section .why-cards-grid {
    margin-bottom: 40px;
}
.admission-intro-text {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    max-width: 600px;
    margin: -8px auto 40px;
    text-align: center;
}
.admission-fee-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 28px 36px;
    margin-bottom: 40px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
.admission-fee-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--red), color-mix(in srgb, var(--red) 85%, black));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.admission-fee-content {
    font-size: 1.1rem;
    color: #1e293b;
}
.admission-fee-content strong { color: var(--red); }
.admission-fee-note {
    display: block;
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 6px;
    font-weight: 400;
}
.admission-requirements-page .admission-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.btn-admission-apply {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--red);
    color: white !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}
.btn-admission-apply:hover {
    background: color-mix(in srgb, var(--red) 85%, black);
    transform: translateY(-2px);
}
.btn-admission-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: white;
    color: var(--red) !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid var(--red);
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}
.btn-admission-status:hover {
    background: var(--red);
    color: white !important;
}

/* Check Results page — same design as Why Choose Us */
.check-results-inner {
    max-width: 900px;
}
.check-results-page .why-choose-sub {
    margin-bottom: 32px;
}
.result-search-card {
    background: white;
    border-radius: 20px;
    padding: 32px 40px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    margin-bottom: 32px;
}
.result-search {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}
.result-search input {
    padding: 14px 18px;
    min-width: 260px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.result-search input:focus {
    outline: none;
    border-color: var(--red);
}
.result-search select {
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.result-search select:focus {
    outline: none;
    border-color: var(--red);
}
.result-search-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--red), color-mix(in srgb, var(--red) 85%, black));
    color: white !important;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.result-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 38, 38, 0.35);
}
.result-empty-card {
    background: white;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    border: 2px dashed #e2e8f0;
}
.result-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.result-empty-icon i {
    font-size: 1.75rem;
    color: var(--red);
}
.result-empty-card h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 700;
}
.result-empty-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}
.result-select-card {
    background: white;
    border-radius: 20px;
    padding: 32px 40px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}
.result-select-card h3 {
    font-size: 1.2rem;
    color: var(--red);
    margin-bottom: 8px;
    font-weight: 700;
}
.result-select-card h3 i { margin-right: 8px; }
.result-select-card > p {
    color: #64748b;
    margin-bottom: 24px;
}
.result-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.result-select-item {
    text-decoration: none;
    color: inherit;
    display: block;
}
.result-select-item .why-card-desc {
    margin: 0;
    font-size: 0.85rem;
}
.result-print-btn {
    margin-top: 24px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--red), color-mix(in srgb, var(--red) 85%, black));
    color: white !important;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.result-print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 38, 38, 0.35);
}

/* Report card — red & white school report style */
.report-card {
    width: 100%;
    background: white;
    border-top: 6px solid var(--red);
    padding: 36px 44px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: left;
    margin-top: 24px;
    border: 1px solid #e5e7eb;
    border-top: 6px solid var(--red);
    position: relative;
}
.report-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.report-card .school-logo {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain;
    margin-bottom: 8px;
}
.report-card .school-logo-icon {
    font-size: 1.25rem;
    color: #c62828;
    margin-bottom: 8px;
}
.report-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 8px 0 4px;
    letter-spacing: 0.05em;
}
.report-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}
.report-header .school-details {
    font-size: 0.85rem;
    color: #64748b;
}
.report-header .school-details p { margin: 2px 0; }
.report-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}
/* Terminal report (PDF-style) */
.terminal-report .report-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 16px 0 4px;
    letter-spacing: 0.02em;
}
.terminal-report .report-level {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 12px;
}
.terminal-report .report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.terminal-report .section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin: 16px 0 8px;
}
.terminal-report .info-grid,
.terminal-report .summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 24px;
    font-size: 0.9rem;
}
.terminal-report .info-grid p,
.terminal-report .summary-grid p { margin: 4px 0; }
.terminal-report .remarks-block {
    padding: 8px 0;
    font-size: 0.9rem;
}
.terminal-report .remarks-block p { margin: 0; }
.terminal-report .signatures-block {
    font-size: 0.85rem;
    color: #64748b;
}
.terminal-report .signatures-block p {
    margin: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
}
.terminal-report .report-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: #94a3b8;
}
.terminal-report .report-footer p { margin: 4px 0; }
.student-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px 24px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.student-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #334155;
}
.report-card .result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.report-card .result-table th {
    background: #c62828;
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}
.report-card .result-table th:nth-child(2),
.report-card .result-table th:nth-child(3),
.report-card .result-table th:nth-child(4),
.report-card .result-table th:nth-child(5),
.report-card .result-table th:nth-child(6) {
    text-align: center;
}
.report-card .result-table td {
    padding: 10px 12px;
    border: 1px solid #eee;
}
.report-card .result-table td:nth-child(2),
.report-card .result-table td:nth-child(3),
.report-card .result-table td:nth-child(4),
.report-card .result-table td:nth-child(5),
.report-card .result-table td:nth-child(6) {
    text-align: center;
}
.report-card .result-table tbody tr:nth-child(even) {
    background: #f9fafb;
}
.report-card .result-table .grade {
    font-weight: bold;
    color: #ff9800;
}
.report-card .result-participation {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 8px;
    margin: 20px 0;
}
.report-card .result-summary {
    margin-top: 20px;
    padding: 16px 20px;
    background: #fafafa;
    border-radius: 6px;
    border-left: 4px solid #c62828;
    font-weight: 600;
}
.result-summary p {
    margin: 6px 0;
    font-size: 0.9rem;
    font-weight: 500;
}
.print-btn {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 0.95rem;
    background: #c62828;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.print-btn:hover {
    background: #a81218;
}
/* Print styles for result sheet */
@media print {
    .landing-header, .navbar, #backToTop, .print-btn,
    .result-search, .report-empty, .report-select { display: none !important; }
    .result-page { background: white !important; padding: 0 !important; }
    .report-card { box-shadow: none !important; border: 1px solid #ddd !important; margin: 0 !important; }
    .report-card + .report-card { break-before: page; margin-top: 20px !important; }
}

/* Legacy — kept for compatibility */
.result-card-student {
    background: white;
    padding: 32px 36px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    border-left: 6px solid #10b981;
}
.result-card-student h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}
.result-card-student p {
    margin: 8px 0;
    font-size: 1rem;
    color: #475569;
}
.result-empty {
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 460px;
    padding: 56px 36px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 2px dashed #e2e8f0;
}
.result-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 20px;
}
.result-empty h3 { color: #1e293b; margin-bottom: 8px; font-size: 1.2rem; font-weight: 600; }
.result-empty p { color: #64748b; font-size: 0.95rem; margin: 0; }
.result-select-student {
    background: white;
    margin: 0 auto;
    width: 100%;
    max-width: 540px;
    padding: 36px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}
.result-select-student h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.result-select-student h3 i { color: #3b82f6; }
.result-select-student > p { color: #64748b; margin-bottom: 20px; font-size: 0.95rem; }

/* Legacy check results (kept for form styles) */
.check-results-search-card {
    background: white;
    border-radius: 20px;
    padding: 40px 44px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.check-results-search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3b82f6, var(--red));
    border-radius: 20px 20px 0 0;
}
.check-results-search-header {
    margin-bottom: 28px;
}
.check-results-search-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 16px;
}
.check-results-search-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}
.check-results-search-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}
.check-results-form .form-group { margin-bottom: 18px; }
.check-results-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}
.check-results-form input,
.check-results-form select,
.check-results-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-control { width: 100%; }
.w-100 { width: 100% !important; }
.form-row-optional { margin-bottom: 18px; }
.check-results-form input:focus,
.check-results-form select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(196, 22, 28, 0.1);
}
.check-results-form .form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.check-results-form .form-row .form-group { flex: 1; min-width: 160px; }
.btn-check-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white !important;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}
.btn-check-results:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}
.check-results-empty {
    text-align: center;
    padding: 56px 32px;
    background: white;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.check-results-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}
.check-results-empty h3 { color: #1e293b; margin-bottom: 8px; font-size: 1.2rem; font-weight: 600; }
.check-results-empty p { color: #64748b; font-size: 0.95rem; margin: 0; }
.check-results-select {
    background: white;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    margin-bottom: 28px;
}
.check-results-select h3 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.check-results-select h3 i { color: #3b82f6; }
.check-results-select > p { color: #64748b; margin-bottom: 24px; font-size: 0.95rem; }
.student-select-list { display: flex; flex-direction: column; gap: 14px; }
.student-select-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: white;
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.student-select-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}
.student-select-card:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
.student-select-color-1 { border-color: #dbeafe; }
.student-select-color-1::before { background: #3b82f6; }
.student-select-color-1:hover { border-color: #93c5fd; }
.student-select-color-2 { border-color: #d1fae5; }
.student-select-color-2::before { background: #10b981; }
.student-select-color-2:hover { border-color: #6ee7b7; }
.student-select-color-3 { border-color: #fed7aa; }
.student-select-color-3::before { background: #f59e0b; }
.student-select-color-3:hover { border-color: #fcd34d; }
.student-select-color-4 { border-color: #fecaca; }
.student-select-color-4::before { background: var(--red); }
.student-select-color-4:hover { border-color: #fca5a5; }
.student-select-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
}
.student-select-color-1 .student-select-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.student-select-color-2 .student-select-icon { background: linear-gradient(135deg, #10b981, #059669); }
.student-select-color-3 .student-select-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.student-select-color-4 .student-select-icon { background: linear-gradient(135deg, var(--red), #b91c1c); }
.student-select-info { flex: 1; }
.student-select-info strong { display: block; margin-bottom: 2px; }
.student-select-info span { font-size: 0.9rem; color: #64748b; }
.student-select-card > i { color: #94a3b8; font-size: 0.9rem; }
.student-info-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: white;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    margin-bottom: 28px;
    border-left: 6px solid #10b981;
}
.student-info-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}
.student-info-text h2 { font-size: 1.4rem; margin-bottom: 6px; color: #1e293b; font-weight: 700; }
.student-info-text p { margin: 0; color: #64748b; font-size: 0.95rem; }
.student-info-text p i { color: #94a3b8; margin-right: 6px; font-size: 0.85rem; }
.results-list { display: flex; flex-direction: column; gap: 28px; }
.result-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}
.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 20px 20px 0 0;
}
.result-card-color-1::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.result-card-color-2::before { background: linear-gradient(90deg, #10b981, #34d399); }
.result-card-color-3::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.result-card-color-4::before { background: linear-gradient(90deg, var(--red), #f87171); }
.result-card-title {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 14px;
    border-bottom: 2px solid #e5e7eb;
}
.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #475569;
}
.result-meta span { display: flex; align-items: center; gap: 8px; }
.result-meta i { color: var(--red); width: 16px; }
.result-table-wrap {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.result-table th {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}
.result-table th:nth-child(2),
.result-table th:nth-child(3),
.result-table th:nth-child(4),
.result-table th:nth-child(5),
.result-table th:nth-child(6) { text-align: center; }
.result-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
}
.result-table td:nth-child(2),
.result-table td:nth-child(3),
.result-table td:nth-child(4),
.result-table td:nth-child(5),
.result-table td:nth-child(6) { text-align: center; }
.result-table tbody tr:hover { background: #f8fafc; }
.result-participation {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.result-remarks {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}
.result-remarks p { margin: 10px 0; font-size: 0.95rem; color: #475569; line-height: 1.6; }

@media (max-width: 768px) {
    .contact-page-grid { grid-template-columns: 1fr; }
    .highlights-grid { grid-template-columns: 1fr; }
    .admission-req-grid { grid-template-columns: 1fr; }
    .admission-fee-box { flex-direction: column; text-align: center; }
    .admission-actions { flex-direction: column; }
    .result-page { padding: 40px 16px 60px; }
    .result-search { flex-direction: column; }
    .result-search input { min-width: 100%; }
    .report-card { padding: 24px 20px; margin: 20px 0; }
    .report-card .result-table { font-size: 0.85rem; }
    .report-card .result-table th, .report-card .result-table td { padding: 8px 10px; }
    .result-table th, .result-table td { padding: 10px 8px; }

/* Lightbox2 — keep site header visible, overlay below header */
.lightboxOverlay {
    top: 120px !important;
    height: calc(100vh - 120px) !important;
}
/* Position lightbox container below header */
body .lightbox {
    top: 120px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(100vh - 120px) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .header-top-inner {
        flex-wrap: wrap;
        min-height: auto;
        gap: 12px;
    }
    .header-phone-wrap {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
    .nav-inner {
        flex-wrap: wrap;
        gap: 16px;
    }
    .nav-inner {
        flex-wrap: wrap;
        min-height: auto;
        gap: 16px;
    }
    .nav-links {
        flex-wrap: wrap;
        gap: 12px;
    }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .hero h1 {
        font-size: 1.9rem;
    }
    .hero .buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .btn-red { margin-right: 0; }
    .prev-btn { left: 5px; padding: 10px 12px; }
    .next-btn { right: 5px; padding: 10px 12px; }
    .highlights-grid { grid-template-columns: 1fr; }
    .highlights-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .why-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
    .why-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .testimonials-section .prev-btn { left: 5px; }
    .testimonials-section .next-btn { right: 5px; }
    .testimonial-carousel { padding: 0 40px; }
    .testimonial-item { flex: 0 0 calc(50% - 12px); }
    .cta-buttons { flex-direction: column; }
    .hero.hero-carousel { min-height: 800px; }
    .hero-content-overlay { padding: 60px 16px; }
    .hero-carousel-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    .hero-prev { left: 8px; }
    .hero-next { right: 8px; }
}
@media (max-width: 480px) {
    .stats-row { grid-template-columns: 1fr; }
    .why-cards { grid-template-columns: 1fr; }
    .why-cards-grid { grid-template-columns: 1fr; gap: 16px; }
    .testimonial-item { flex: 0 0 100%; }
    .testimonial-carousel { padding: 0 36px; }
}
