/* 
 * 🎨 ST L N CHILDREN ACADEMY - PREMIUM DESIGN SYSTEM (2025)
 * Philosophy: Trust, Excellence, Warmth
 */

:root {
    /* 
     * 🎨 STRICT MASTER DESIGN SYSTEM (Home Page Focus)
     * Target: Ages 10-19 | Tone: Modern, Energetic, Trustworthy
     */
    --bg-main: #FFFFFF;
    --bg-soft: #F5F9FC;
    /* Soft Blue/Grey Background */
    --bg-card: #FFFFFF;

    --text-primary: #0F172A;
    /* Text Dark */
    --text-secondary: #64748B;
    /* Muted Text */
    --text-light: #94a3b8;

    /* BRAND COLORS (MANDATORY) */
    --accent-primary: #0A2540;
    /* Primary Blue (Trust) */
    --accent-secondary: #1E88E5;
    /* Accent Sky (Action) */
    --accent-highlight: #F9A825;
    /* Accent Yellow (Energy) */

    --accent-cta: #1E88E5;
    /* Primary Buttons follow Sky Blue */

    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;

    /* 🧱 LAYOUT & RHYTHM */
    --container-width: 1240px;
    --space-xs: 0.5rem;
    --space-sm: 1.5rem;
    --space-md: 3rem;
    --space-lg: 5rem;
    --space-xl: 8rem;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* 🌫️ SHADOWS */
    --shadow-sm: 0 4px 6px -1px rgba(10, 37, 64, 0.05);
    --shadow-card: 0 10px 30px -5px rgba(10, 37, 64, 0.08);
    --shadow-hover: 0 20px 40px -5px rgba(10, 37, 64, 0.12);

    /* ✍️ TYPOGRAPHY (FLUID SCALING) */
    --font-heading: 'Poppins', 'Inter', sans-serif;
    --font-body: 'Inter', 'Roboto', sans-serif;

    --h1-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    --h2-size: clamp(2rem, 4vw + 1rem, 3rem);
    --h3-size: clamp(1.5rem, 2vw + 1rem, 2rem);
    --body-size: clamp(1rem, 1.5vw + 0.5rem, 1.15rem);
}

/* ... (Rest of existing CSS) ... */

/* 🌙 DARK MODE (Muted Blue Slate) */


/* RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;

    /* STICKY FOOTER SETUP */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Page Content Wrapper to push footer down */
.site-main {
    flex: 1;
    display: block;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.025em;
    /* Tighter, more modern */
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

p {
    max-width: 65ch;
    margin-bottom: 1.5rem;
}

ul,
ol {
    list-style: none;
    /* KILL BULLETS GLOBALLY */
}

/* SECTION RHYTHM */
section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
    /* Contain floats/aboslutes */
}

/* Alternating Backgrounds */
section:nth-of-type(even) {
    background-color: var(--bg-section);
}

/* Mobile Spacing */
@media (max-width: 768px) {
    section {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
}

/* UTILITIES */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.span-2 {
    grid-column: span 2;
}

.gap-sm {
    gap: 0.75rem !important;
}

.btn-block {
    width: 100%;
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.m-0 {
    margin: 0 !important;
}

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

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Visibility Utilities */
.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

/* ... Header Styles ... */

/* Mobile Media Query Updates */
@media (max-width: 900px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none !important;
    }

    /* Ensure mobile menu links stack */
    .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links .mobile-only a.btn-primary {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* ... Existing content ... */

/* HEADER & NAVIGATION (REBUILT) */
.site-header {
    height: 80px;
    min-height: 80px;
    /* Force height */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    height: 100%;
    /* Fill header */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    /* Dark Slate for contrast */
    letter-spacing: -0.03em;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease;
}

.brand-logo:hover {
    transform: translateY(-1px);
}

.logo-img {
    height: 48px;
    /* Slightly larger logo */
    width: auto;
    display: none;
}

@media (min-width: 1024px) {
    .logo-img {
        display: block;
    }
}

/* Zone 2: Nav Links */
.main-nav {
    display: block;
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: 2rem;
    margin-right: 2rem;
    /* Add spacing from logo */
}

.nav-links {
    display: flex;
    gap: 36px;
    /* Increased gap from 24px */
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0 0;
    /* Removing vertical padding to use height for centering if needed, or keeping it simple */
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link.active {
    color: var(--accent-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    /* Overlap border slightly */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-primary);
    border-radius: 3px 3px 0 0;
}

/* Zone 3: Actions */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

/* Login Button (Subtle Text) */
.nav-link.btn-login {
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s;
}

.nav-link.btn-login:hover {
    color: var(--accent-primary);
    background: transparent;
    /* Ensure no bg overlap */
}

/* Admissions Button (Dominant CTA) */
.nav-link.btn-primary {
    background-color: var(--accent-secondary);
    color: #ffffff !important;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    /* Rounded corners */
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
    text-align: center;
    display: inline-block;
    line-height: 1.2;
}

.nav-link.btn-primary:hover {
    background-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    border-radius: 50%;
    transition: color 0.2s, background-color 0.2s;
}

.theme-toggle:hover {
    color: var(--accent-primary);
    background-color: var(--bg-section);
}

/* Removed old nav-link styles overlapping with new structure */

/* ENERGETIC BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    /* Comfortable touch target */
    border-radius: 50px;
    /* Pill shape for modern youth feel */
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy spring */
    cursor: pointer;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

/* Primary: Warm Orange (Action) */
.btn-primary {
    background-color: var(--accent-cta);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.4);
    /* Glow */
}

.btn-primary:hover {
    background-color: #fca311;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 159, 28, 0.5);
}

/* Secondary/Outline: Bright Sky Blue */
.btn-outline {
    background: white;
    box-shadow: inset 0 0 0 2px var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-secondary);
    box-shadow: inset 0 0 0 2px var(--accent-secondary), 0 5px 15px rgba(45, 168, 255, 0.3);
    color: white;
    transform: translateY(-3px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 900px) {

    /* Fixed Mobile Menu */
    .mobile-menu-toggle {
        display: block !important;
        z-index: 1002;
    }

    .main-nav {
        display: flex;
        /* Ensure it's display flex to hold items */
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-card);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 5rem 2rem 2rem;
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
        flex-direction: column;
        /* Column layout for links */
        align-items: flex-start;
        /* Left align */
    }

    /* Active State (JS toggles .nav-open) */
    .main-nav.nav-open {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.1rem;
        color: var(--text-primary);
        padding: 0.5rem 0;
        /* Touch target */
    }

    .nav-link.btn-primary,
    .nav-link.btn-login {
        width: 100%;
        text-align: center;
        margin-top: 0;
        /* Reset margins if any */
    }
}

/* 
   ---------------------------
   1️⃣ HERO SECTION (PREMIUM) 
   ---------------------------
*/
/* 
   ---------------------------
   1️⃣ HERO SECTION (MASTER DESIGN) 
   ---------------------------
*/
#hero {
    position: relative;
    height: 85vh;
    /* Taller, more immersive */
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    margin-top: -80px;
    /* Pull behind header */
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.8);
    /* Stronger dim for text pop */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Master Gradient: Deep Blue -> Transparent -> Deep Blue */
    background: linear-gradient(to bottom,
            rgba(10, 37, 64, 0.8) 0%,
            rgba(10, 37, 64, 0.4) 40%,
            rgba(10, 37, 64, 0.9) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title {
    font-size: 4.5rem;
    /* Massive, Confident */
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 65ch;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 2rem;
    }
}

/* 
   ---------------------------
   2️⃣ ABOUT SECTION (2-COL)
   ---------------------------
*/
#about-preview {
    padding: var(--space-xl) 0;
    background-color: var(--bg-main);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    /* Big */
    margin-bottom: var(--space-sm);
    color: var(--accent-primary);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.link-arrow {
    font-weight: 600;
    color: var(--accent-highlight);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-arrow:hover {
    gap: 0.75rem;
    /* Slide effect */
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    transform: rotate(1deg);
    /* Slight playful tilt */
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: rotate(0deg) scale(1.02);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        display: none;
        /* Text focus on mobile or stack? Stack better. */
    }

    .about-image {
        display: block;
        margin-top: var(--space-md);
    }
}

/* 
   ---------------------------
   3️⃣ ACADEMICS (CARDS)
   ---------------------------
*/
/* 
   ---------------------------
   3️⃣ ACADEMICS (IMAGE CARDS)
   ---------------------------
*/
#academics-preview {
    padding: var(--space-xl) 0;
    background-color: var(--bg-soft);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--accent-primary);
}

.program-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    text-align: left;
    /* Align left for image card */
    position: relative;
    overflow: hidden;
    padding: 0;
    /* Remove padding to let image fill */
}

.program-card .card-img-wrapper {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.program-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.program-card .card-body {
    padding: 1.5rem;
    position: relative;
}

.program-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
    /* Tweak size */
    font-weight: 700;
    color: var(--accent-primary);
}

.program-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

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


/* 
   ---------------------------
   4️⃣ TRUST SECTION (EMOTIONAL)
   ---------------------------
*/
#trust-section {
    padding: var(--space-lg) 0;
    background: white;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.trust-item {
    display: flex;
    flex-direction: column;
    /* Stack for modern clean look or row? Row is better for strip */
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: background 0.3s;
}

.trust-item:hover {
    background: var(--bg-soft);
}

.trust-icon-box {
    background: var(--bg-soft);
    color: var(--accent-primary);
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
    width: 64px;
    /* Larger */
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    overflow: hidden;
    border: 2px solid var(--border-light);
}

.trust-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trust-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.trust-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 
   ---------------------------
   5️⃣ PEOPLE (LEADERSHIP)
   ---------------------------
*/
#leadership-preview {
    padding: var(--space-xl) 0;
    background-color: var(--bg-main);
}

.leader-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-md);
}

.leader-img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    /* Rectangular */
    object-fit: cover;
    object-position: top center;
    /* Focus on face */
    flex-shrink: 0;
    /* Removed border to avoid any 'circle' confusion */
    box-shadow: var(--shadow-sm);
}

.leader-info h3 {
    font-size: 1.25rem;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.leader-role {
    color: var(--accent-secondary);
    /* Pop of color */
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.leader-quote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .leader-card {
        flex-direction: column;
        text-align: center;
    }
}

/* 
   ---------------------------
   6️⃣ GALLERY STRIP
   ---------------------------
*/
#gallery-strip {
    padding: var(--space-lg) 0;
    background: #000;
    /* Cinema feel */
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    padding: 0 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE */
    scrollbar-width: none;
    /* Firefox */
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    min-width: 250px;
    /* Card size */
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* 
   ---------------------------
   COMMON UTILITIES
   ---------------------------
 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
    }

    .span-2 {
        grid-column: span 1 !important;
        /* Reset span on mobile */
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 
   ---------------------------
   🎬 MOTION UTILITIES
   ---------------------------
 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger for grids (optional refinement) */
.grid-3 .animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.grid-3 .animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

/* 
   ---------------------------
   COMMON
   ---------------------------
 */

/* 
   ---------------------------
   🎓 ADMISSIONS PROGRESS BAR
   ---------------------------
 */
.admission-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin: 32px auto 40px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: #fff;
    z-index: 2;
    /* Ensure circle stays above line */
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--accent-secondary);
    background: #2563eb;
    /* Prompt said #2563eb, but we should use brand color if possible. Prompt said "Active Step .step.active .step-circle { background: #2563eb... }" strictly. I will use the hex code to be safe, or closest brand match. */
    border-color: var(--accent-secondary);
    color: #fff;
}

/* Connector Line (Prompt Strict) */
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18px;
    right: -36px;
    /* Adjusted visually for 48px gap */
    width: 32px !important;
    /* Prompt restricted this */
    height: 2px;
    background: #cbd5e1;
    z-index: 1;
}

.step-label {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

@media (max-width: 480px) {
    .admission-progress {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .step::after {
        display: none;
    }

    .step {
        flex-direction: column;
    }
}

/* GENERIC CARD COMPONENT */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    height: 100%;
}

/* FACILITIES ICON BASE */
/* FACILITIES ICON BASE & TRUST IMAGES */
.facility-icon,
.trust-icon-box {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 3px solid #f1f5f9;
    overflow: hidden;
    /* Script for image crop */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.facility-icon img,
.trust-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.facility-icon:hover,
.trust-icon-box:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-colored);
    border-color: var(--accent-primary);
}

/* FEATURE LISTS (ACADEMICS) */
.feature-list {
    margin-top: 1.5rem;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.feature-item::before {
    content: "✓";
    color: var(--accent-support);
    /* Green Check */
    font-weight: 900;
}

/* 
   ---------------------------
   8️⃣ FORM STYLES (GLOBAL)
   ---------------------------
 */
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    max-width: 700px;
    /* Calm constraint */
    margin: 0 auto;
    /* Center alignment */
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-main);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-highlight);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-feedback {
    display: none;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.form-feedback.success {
    background-color: #dcfce7;
    color: #166534;
}

.form-feedback.error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* 
   ---------------------------
   ADMISSIONS TIMELINE (VERTICAL STEPS)
   ---------------------------
 */
.steps-container {
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--bg-warm);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--border-medium);
}

/* 
   ---------------------------
   9️⃣ NOTICE CARDS
   ---------------------------
 */
.notice-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-secondary);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notice-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.notice-date-badge {
    background: var(--bg-warm);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 60px;
    flex-shrink: 0;
    border: 1px solid var(--border-medium);
}

.notice-month {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.notice-day {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.1;
}

.notice-content h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.notice-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.notice-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-secondary);
    text-decoration: none;
}

/* 
   ---------------------------
   🔟 COMPACT FOOTER (Student-First)
   ---------------------------
 */
/* 
   ---------------------------
   🔟 PREMIUM FOOTER
   ---------------------------
 */
.site-footer {
    background-color: #0f172a;
    /* Slate 900 */
    padding: 4rem 0 2rem;
    color: #cbd5e1;
    /* Slate 300 */
    font-size: 0.95rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tagline {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.footer-nav h4,
.footer-contact h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
    color: var(--accent-secondary);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.footer-contact i {
    color: var(--accent-secondary);
    margin-top: 4px;
}

.footer-bottom {
    padding-top: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-secondary);
    transform: translateY(-3px);
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-contact p {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Footer Columns */
.footer-brand,
.footer-nav,
.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-brand h3,
.footer-nav h4,
.footer-contact h4 {
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.footer-brand .tagline {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact i {
    width: 20px;
    text-align: center;
    color: var(--accent-secondary);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-secondary);
    transform: translateY(-3px);
    color: white;
}


/* 
   ---------------------------
   1️⃣1️⃣ CONTACT TOAST (MODAL)
   ---------------------------
 */
dialog.contact-modal {
    border: none;
    border-radius: var(--radius-lg);
    padding: 0;
    background: transparent;
    max-width: 500px;
    width: 90%;
    margin: auto;
    box-shadow: var(--shadow-header);
}

dialog.contact-modal::backdrop {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

dialog[open] {
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

dialog::backdrop {
    animation: fadeIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ensure modal content fits nicely */
.contact-modal .modal-content {
    background: #ffffff;
    max-height: 90vh;
    overflow-y: auto;
}

[data-theme="dark"] .contact-modal .modal-content {
    background: var(--bg-card);
}

/* 
   ---------------------------
   1️⃣2️⃣ ACADEMIC & TRANSPORT FEES
   ---------------------------
 */
.fee-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    /* For image corners */
    text-align: left;
    /* Image card look */
    padding: 0;
}

.fee-card .card-img-wrapper {
    width: 100%;
    height: 180px;
    /* 16:9 approx */
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.fee-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.fee-card .card-body {
    padding: 1.5rem;
    text-align: center;
}

.fee-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.fee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-secondary);
}

.fee-card h4 {
    transition: color 0.3s ease;
}

.fee-card:hover h4 {
    color: var(--accent-secondary);
}

/* Response Grid Adjustments */
.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
}

/* 
   ---------------------------
   1️⃣2️⃣ FEE TABLE STYLES
   ---------------------------
 */
/* 
   ---------------------------
   1️⃣2️⃣ PREMIUM FEE TABLE STYLES
   ---------------------------
 */
.table-responsive-container {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    background: white;
    margin-top: 2rem;
    border: 1px solid var(--border-light);
}

.fee-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 700px;
    /* Ensure scroll on mobile */
    font-size: 1rem;
    text-align: left;
}

.fee-table thead {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    /* Premium Dark Header */
    color: #fff;
}

.fee-table th {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.fee-table th:first-child {
    border-top-left-radius: 16px;
    /* Match container radius if visible, but container clips it */
}

.fee-table th:last-child {
    border-top-right-radius: 16px;
}

.fee-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
    transition: background-color 0.2s;
}

.fee-table tbody tr:last-child td {
    border-bottom: none;
}

.fee-table tbody tr:hover td {
    background-color: #f8fafc;
    /* Very subtle hover */
    color: var(--primary-blue);
}

.fee-value {
    font-weight: 700;
    color: var(--text-heading);
    background: #eef2ff;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.95rem;
    display: inline-block;
}

.fee-table tr td:first-child {
    font-weight: 600;
    /* Bold the "Label" column */
    color: var(--text-heading);
}

/* Mobile Adjustments */
@media (max-width: 600px) {

    .fee-table th,
    .fee-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* 
   ---------------------------
   📱 RESPONSIVE OVERRIDES (MANDATORY)
   ---------------------------
*/

/* GLOBAL TOUCH TARGETS */
button,
.btn,
a.nav-link,
input,
select,
textarea {
    min-height: 44px;
    touch-action: manipulation;
}

/* TYPOGRAPHY UTILIZATION */
h1,
.hero-title {
    font-size: var(--h1-size) !important;
}

h2,
.section-header h2 {
    font-size: var(--h2-size) !important;
}

h3,
.program-card h3 {
    font-size: var(--h3-size) !important;
}

p,
.hero-subtitle,
.program-card p {
    font-size: var(--body-size);
}


/* 📱 MOBILE (≤ 480px) */
@media (max-width: 480px) {

    /* GRIDS: Force 1 Column */
    .grid-3,
    .grid-4,
    .trust-grid,
    .updates-grid,
    #home-notices {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* HERO: Stacked & Centered */
    .hero-content {
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* NAVBAR */
    .brand-logo span {
        font-size: 1.1rem;
    }

    /* CARDS */
    .program-card {
        border-radius: var(--radius-md);
    }

    .trust-item {
        flex-direction: column;
        text-align: center;
    }

    /* FOOTER: Stacked */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-nav ul {
        justify-content: center;
        flex-direction: column;
    }

    .footer-brand,
    .footer-nav,
    .footer-contact {
        width: 100%;
        min-width: auto;
    }
}

/* 📱 TABLET (481px - 1024px) */
@media (min-width: 481px) and (max-width: 1024px) {

    /* GRIDS: 2 Columns */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* HERO: Relaxed padding */
    .hero-title {
        font-size: 3.5rem;
    }
}

/* 🖥 DESKTOP (1025px+) */
@media (min-width: 1025px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Gallery Page (Masonry Layout) --- */
.gallery-grid {
    column-count: 4;
    /* Desktop: 4 columns */
    column-gap: 1.5rem;
    padding-bottom: var(--space-xl);
    display: block;
    /* Ensure column-count works */
}

.gallery-item {
    break-inside: avoid;
    /* Prevent split across columns */
    margin-bottom: 1.5rem;
    /* Rhythm spacing */
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: auto;
    /* Natural height for masonry */
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gallery-item:hover img {
    transform: scale(1.03);
    /* Subtle zoom */
}

/* Gallery Caption */
.gallery-caption {
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-heading);
    background: #fff;
    border-top: 1px solid var(--border-light);
}

/* Tablet (2 columns) */
@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 1rem;
    }
}

/* Mobile (1 column) */
@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* --- Admissions Page Redesign --- */
.admission-hero {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-lg);
    background: linear-gradient(to bottom, #f8fafc, #fff);
}

.admission-hero h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.admission-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.admission-progress {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

/* Form Card Refinement */
.form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    border: 1px solid var(--border-light);
    max-width: 900px;
    margin: 0 auto;
}

.form-label {
    font-weight: 500;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Trust Strip */
.trust-strip {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    text-align: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-item i {
    color: var(--accent-success);
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .form-card {
        padding: 1.5rem;
    }

    .trust-strip {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
}

/* Mobile Header Fix for Admissions Page */
@media (max-width: 900px) {

    .header-actions .btn-login,
    .header-actions .btn-primary {
        display: none !important;
    }
}

/* --- Contact Page Redesign --- */
.contact-hero {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-lg);
    background: linear-gradient(to bottom, #f0f9ff, #fff);
    /* Warm/Soft Blue */
}

.contact-hero h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.contact-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Details : Form */
    gap: 4rem;
    align-items: start;
}

.contact-detail-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-sky);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .contact-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-detail-card {
        padding: 1.25rem;
    }

    .contact-map-container {
        height: 300px;
    }
}

.contact-map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 400px;
    width: 100%;
}

.reassurance-strip {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.reassurance-strip i {
    color: var(--accent-success);
    margin-right: 0.5rem;
}



/* 
   ---------------------------
   1️⃣1️⃣ PREMIUM GALLERY GRID
   ---------------------------
 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    /* Modern rounded corners */
    overflow: hidden;
    aspect-ratio: 4/3;
    /* Uniform shape */
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #000;
    /* Loading bg */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.95;
}

/* Hover Effects */
.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.gallery-item:hover img {
    transform: scale(1.15);
    opacity: 1;
}

/* Overlay Info */
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

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

.gallery-item h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
    /* Stagger */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 600;
}

.gallery-item:hover h3,
.gallery-item:hover p {
    transform: translateY(0);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.lightbox-modal.open {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-modal.open .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--accent-highlight);
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 
   ---------------------------
   ✨ ANIMATIONS & INTERACTIONS
   ---------------------------
*/
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.floating-element {
    animation: float 4s ease-in-out infinite;
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.hover-lift-premium {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

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

.hero-reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: revealText 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.hero-reveal:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-reveal:nth-child(3) {
    animation-delay: 0.4s;
}

/* Form Sizing Enforcement */
.form-group {
    width: 100%;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
}

/* Progress Step Completed */
.step.completed .step-circle {
    background: var(--accent-success);
    color: white;
    border-color: var(--accent-success);
}

.step.completed .step-label {
    color: var(--accent-success);
    font-weight: 600;
}

@media (max-width: 480px) {
    .trust-strip {
        gap: 0.5rem !important;
        padding: 1rem !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        justify-content: space-between;
    }

    .trust-item {
        flex-direction: column;
        text-align: center;
        min-width: 80px;
        flex: 1;
    }

    .trust-item i {
        font-size: 1.2rem !important;
        margin-right: 0 !important;
        margin-bottom: 0.25rem;
    }

    .trust-item span {
        font-size: 0.75rem !important;
        line-height: 1.2;
    }
}

/* 
   ---------------------------
   1️⃣3️⃣ REFINED FORM CONTROLS
   ---------------------------
 */
.form-control {
    height: 50px;
    /* Standardize height */
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

/* Custom File Upload */
.file-upload-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--accent-primary);
    background: #fff;
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.file-upload-label span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.file-upload-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* Custom Grid for Student + Gender */
.grid-custom-header {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1rem;
    align-items: start;
}

/* Standard Grid-2 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Responsive Grids */
@media (max-width: 768px) {

    .grid-custom-header,
    .grid-2 {
        grid-template-columns: 1fr !important;
    }

    .grid-3 {
        grid-template-columns: 1fr !important;
    }
}