/* ========================================= 
   variables.css 
   ========================================= */
/**
/**
 * Divyansh Educational Foundation - Design Tokens
 * Single source of truth for all CSS custom properties
 * Extracted from style.css :root + admin design tokens
 */

:root {
    /* ============================================
       BRAND COLORS (Colorful Academic Palette)
       ============================================ */
    --background: #f8fafc;
    --foreground: #0f172a;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --primary: #2563eb; /* Vibrant Blue */
    --primary-foreground: #ffffff;
    --secondary: #0f172a; /* Deep Slate Blue */
    --secondary-foreground: #ffffff;
    --accent: #ea580c; /* Action Orange */
    --accent-foreground: #ffffff;
    
    /* 10 Vibrant Colors */
    --color-1-blue: #3b82f6;
    --color-2-green: #16a34a;
    --color-3-purple: #9333ea;
    --color-4-red: #ef4444;
    --color-5-orange: #f97316;
    --color-6-yellow: #eab308;
    --color-7-pink: #ec4899;
    --color-8-cyan: #06b6d4;
    --color-9-indigo: #6366f1;
    --color-10-teal: #14b8a6;

    --muted: #e2e8f0;
    --muted-foreground: #475569;
    --muted-foreground-opacity-5: rgba(71, 85, 105, 0.05);
    --border: #e2e8f0;
    --destructive: #dc2626;
    --ring: #2563eb;
    --footer-bg: #020617;

    /* ============================================
       TYPOGRAPHY
       ============================================ */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* ============================================
       BORDER RADIUS
       ============================================ */
    --radius: 0.75rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* ============================================
       SHADOWS (Clean/Neutral, no color tint)
       ============================================ */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);

    /* ============================================
       LAYOUT
       ============================================ */
    --container-max-width: 1280px;
    --container-padding: 1rem;

    /* ============================================
       ADMIN DESIGN TOKENS
       ============================================ */
    /* Layout */
    --admin-sidebar-width: 260px;
    --admin-header-height: 64px;

    /* Colors - Synced with frontend palette */
    --admin-bg: #f8fafc;
    --admin-surface: #ffffff;
    --admin-surface-hover: #f1f5f9;
    --admin-border: #e2e8f0;
    --admin-border-light: rgba(15, 23, 42, 0.08);

    /* Text hierarchy */
    --admin-text-primary: #0f172a;
    --admin-text-secondary: #475569;
    --admin-text-muted: #64748b;
    --admin-text-disabled: #cbd5e1;

    /* Semantic colors */
    --admin-accent: #2563eb; /* Vibrant blue for admin active info */
    --admin-accent-hover: #1d4ed8;
    --admin-secondary: #0f172a;

    --admin-success: #059669;
    --admin-success-bg: #ECFDF5;
    --admin-warning: #D97706;
    --admin-warning-bg: #FFFBEB;
    --admin-error: #DC2626;
    --admin-error-bg: #FEF2F2;
    --admin-info: #2563eb;
    --admin-info-bg: #eff6ff;

    /* Spacing scale (4px base) */
    --space-0: 0;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    /* Admin Typography */
    --admin-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --admin-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;

    /* Admin Shadows */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

    /* Admin header gray palette (used in admin-header.php inline styles) */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-200: #fecaca;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --sidebar-width: 18rem;
}

/* ========================================= 
   base.css 
   ========================================= */
/**
 * Divyansh Educational Foundation - Base Styles
 * Reset, body defaults, typography, scrollbar, selection
 * Extracted from style.css lines 43-166
 */

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    max-width: 100%;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--foreground);
    background-color: var(--background);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--foreground);
}

h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a04d2f;
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background-color: var(--primary);
    color: white;
}

/* ========================================= 
   layout.css 
   ========================================= */
/**
 * Divyansh Educational Foundation - Layout
 * Container, grids, sections, navigation, footer
 * Extracted from style.css (deduplicated)
 */

/* ============================================
   Layout Components
   ============================================ */
.container {
    max-width: var(--container-max-width, 1280px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 1rem);
    width: 100%;
}

.main-content {
    flex: 1;
    min-height: calc(100vh - 200px);
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .top-bar-content {
        flex-direction: row;
    }
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-foreground);
    transition: opacity 0.2s;
}

.top-bar-link:hover {
    opacity: 0.8;
}

.top-bar-right {
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .top-bar-right {
        font-size: 0.875rem;
    }
}

/* ============================================
   Main Header & Navigation
   ============================================ */
.main-header {
    background-color: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 3.5rem;
    width: 3.5rem;
    object-fit: contain;
}

@media (min-width: 640px) {
    .logo-img {
        height: 4rem;
        width: 4rem;
    }
}

.logo-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
}

@media (min-width: 640px) {
    .logo-title {
        font-size: 1.25rem;
    }
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

@media (min-width: 640px) {
    .logo-subtitle {
        font-size: 0.875rem;
    }
}

/* Desktop Navigation */
.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    color: var(--foreground);
    transition: color 0.2s, background-color 0.2s;
    font-size: 0.875rem;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    background-color: var(--muted);
}

.btn-admin {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius);
    transition: background-color 0.2s;
}

.btn-admin:hover,
.nav-link.btn-admin:hover {
    background-color: rgba(37, 99, 235, 0.9);
    color: #ffffff;
}

.btn-admin-mobile:hover,
.mobile-nav-link.btn-admin-mobile:hover {
    color: #ffffff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
    background-color: var(--muted);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.mobile-nav.open {
    display: block;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: background-color 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: var(--muted);
    color: var(--primary);
}

.btn-admin-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 1rem;
    padding: 0.75rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--card);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-content {
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-bottom p {
    margin-top: 0.25rem;
}

/* ============================================
   Section Styles
```css
        display: flex;
    }
}

/* ============================================
   Navigation
   ============================================ */
.nav-link {
    font-weight: 500;
    color: var(--foreground);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
    font-size: 0.875rem;
}

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

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

.btn-admin {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius);
    transition: background-color 0.2s;
}

.btn-admin:hover,
.nav-link.btn-admin:hover {
    background-color: rgba(37, 99, 235, 0.9);
    color: #ffffff;
}

.btn-admin-mobile:hover,
.mobile-nav-link.btn-admin-mobile:hover {
    color: #ffffff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
    background-color: var(--muted);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.mobile-nav.open {
    display: block;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: background-color 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: var(--muted);
    color: var(--primary);
}

.btn-admin-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 1rem;
    padding: 0.75rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--card);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-content {
    padding: 3rem 1rem;
}

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

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

.footer-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

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

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-bottom p {
    margin-top: 0.25rem;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 3rem 1rem;
}

.section-hero {
    background-color: var(--muted);
    padding: 4rem 1rem 3rem;
}

.section-card {
    background-color: var(--card);
    padding: 3rem 1rem;
}

.section-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 3rem 1rem;
}

.section.badge-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.section-title {
    font-size: clamp(1.875rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--primary);
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 3rem;
}

/* ============================================
   Grid Layouts (Single Definition â€” Deduplicated)
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

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

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

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

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

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

/* ========================================= 
   components.css 
   ========================================= */
/**
 * Divyansh Educational Foundation - Components
 * Cards, buttons, forms, alerts, badges, hero, course cards,
 * contact cards, timing, steps, certificates, stats, library, spinner
 * Extracted from style.css (with overflow fixes applied)
 */

/* ============================================
   Card Components
   ============================================ */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
}

.card-gradient {
    background-color: var(--muted);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.card-primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

.premium-card-bg {
    background-color: var(--primary);
    color: white;
}

/* ============================================
   Icon Box
   ============================================ */
.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-box svg {
    width: 1.75rem;
    height: 1.75rem;
    color: white;
}

.icon-box-lg {
    width: 4rem;
    height: 4rem;
}

.icon-box-lg svg {
    width: 2rem;
    height: 2rem;
}

.icon-box-primary {
    background-color: var(--primary);
}

.icon-box-secondary {
    background-color: var(--secondary);
}

.icon-box-light {
    background-color: rgba(37, 99, 235, 0.1);
}

.icon-box-light svg {
    color: var(--primary);
}

.card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover {
    color: var(--secondary-foreground);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-white {
    background-color: white;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    color: var(--primary);
}

.btn-white-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-white-outline:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Form Components
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.15), 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--muted-foreground);
}

.form-textarea {
    resize: none;
    min-height: 120px;
}

.form-input-icon {
    position: relative;
}

.form-input-icon .icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
}

.form-input-icon .icon-right {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    cursor: pointer;
}

.form-input-icon input {
    padding-left: 3rem;
}

.form-input-icon input.has-right-icon {
    padding-right: 3rem;
}

/* ============================================
   Alert Messages
   ============================================ */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #166534;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.alert-info {
    background-color: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--primary);
}

.alert-warning {
    background-color: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #92400e;
}

/* ============================================
   Badge / Tag
   ============================================ */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.badge-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.badge-secondary {
    background-color: rgba(37, 99, 235, 0.2);
    color: var(--secondary);
}

/* ============================================
   List Styles
   ============================================ */
.list-check {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.list-check li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--muted-foreground);
}

.list-check svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    margin-top: 0.125rem;
}

.list-bullet li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.list-bullet li::before {
    content: '';
    width: 0.375rem;
    height: 0.375rem;
    background-color: var(--secondary);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.75;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Hero Background Blobs */
.blur-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    z-index: 0;
    opacity: 0.15;
    max-width: 100%;
}

.blur-blob-primary {
    width: min(16rem, 80vw);
    height: min(16rem, 80vw);
    background-color: var(--primary);
}

.blur-blob-secondary {
    width: min(24rem, 90vw);
    height: min(24rem, 90vw);
    background-color: var(--secondary);
}

.hero-image-container {
    perspective: 1000px;
}

.hero-image {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 28rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-2xl);
    transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-image {
    transform: scale(1.02);
}

.hero-image-glow {
    position: absolute;
    inset: 0;
    background-color: var(--muted);
    border-radius: 1.5rem;
    filter: blur(32px);
    z-index: 1;
    transform: scale(0.95);
    transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-image-glow {
    transform: scale(1);
}

/* ============================================
   Course Cards (OVERFLOW FIX APPLIED)
   ============================================ */
.course-card {
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
}

.course-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.course-card-code {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(37, 99, 235, 0.2);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.course-card:hover .course-card-code {
    background-color: var(--primary);
    color: white;
}

.course-card-title {
    font-size: 1.25rem;
    color: var(--primary);
}

.course-card-price {
    text-align: right;
}

.course-card-fee {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.course-card-duration {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* FIX: Removed negative margin that caused horizontal overflow.
   Using border-top + separate bottom-radius instead. */
.course-card-footer {
    margin-top: auto;
    padding: 1rem 2rem;
    background-color: rgba(245, 240, 235, 0.5);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    margin: 0 -2rem -2rem;
}

/* Override negative margin on small screens to prevent overflow */
@media (max-width: 640px) {
    .course-card-footer {
        margin: 0 -1.5rem -1.5rem;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 360px) {
    .course-card-footer {
        margin: 0 -1rem -1rem;
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .card {
        padding: 1rem;
    }
}

.course-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.course-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.course-card-meta-item svg {
    width: 0.875rem;
    height: 0.875rem;
}

.course-card-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    transition: gap 0.2s;
}

.course-card-link:hover {
    gap: 0.5rem;
}

/* ============================================
   Contact Info Cards
   ============================================ */
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.contact-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    background-color: rgba(37, 99, 235, 0.03);
}

.contact-card:hover .icon-box {
    transform: scale(1.15);
}

/* ============================================
   Timing Table
   ============================================ */
.timing-row {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    margin-bottom: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

@media (min-width: 768px) {
    .timing-row {
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
    }
}

.timing-row:hover {
    background-color: rgba(37, 99, 235, 0.03);
    transform: scale(1.01);
}

.timing-row.closed {
    background-color: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.timing-day {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timing-day-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timing-day-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.timing-session-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timing-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

/* ============================================
   Step Process
   ============================================ */
.step-card {
    position: relative;
    background-color: var(--card);
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.step-number {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    transition: transform 0.3s ease, background 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.2) rotate(10deg);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.step-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Timeline steps */
.timeline {
    position: relative;
}

.timeline-step {
    position: relative;
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    transition: transform 0.3s ease;
}

.timeline-step:hover {
    transform: translateX(10px);
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.75rem;
    top: 3.5rem;
    bottom: -3rem;
    width: 2px;
    background-color: var(--border);
}

.timeline-number {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-step:hover .timeline-number {
    transform: scale(1.2);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.timeline-content {
    padding-top: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ============================================
   Certificate Display
   ============================================ */
.certificate {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.2);
}

.certificate-inner {
    border: 8px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

@media (min-width: 768px) {
    .certificate-inner {
        padding: 3rem;
    }
}

.certificate-header {
    text-align: center;
    margin-bottom: 2rem;
}

.certificate-header svg {
    width: 4rem;
    height: 4rem;
    color: var(--primary);
    margin: 0 auto 1rem;
}

.certificate-title {
    font-size: 1.875rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .certificate-title {
        font-size: 2.25rem;
    }
}

.certificate-divider {
    width: 8rem;
    height: 4px;
    background-color: var(--secondary);
    margin: 0 auto;
}

.certificate-body {
    text-align: center;
}

.certificate-name {
    font-size: 1.5rem;
    color: var(--primary);
    border-bottom: 2px solid rgba(37, 99, 235, 0.3);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin: 1rem 0;
}

@media (min-width: 768px) {
    .certificate-name {
        font-size: 1.875rem;
    }
}

.certificate-course {
    font-size: 1.25rem;
    margin: 1rem 0;
}

@media (min-width: 768px) {
    .certificate-course {
        font-size: 1.5rem;
    }
}

.certificate-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.certificate-signature {
    text-align: center;
}

.certificate-signature-line {
    width: 8rem;
    height: 2px;
    background-color: var(--foreground);
    margin-bottom: 0.5rem;
}

.certificate-signature-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.certificate-institution {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ============================================
   Stats Section (RESPONSIVE FIX APPLIED)
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

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

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

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.stats-grid>div:hover .stat-value {
    transform: scale(1.1);
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ============================================
   Library Timeline
   ============================================ */
.library-timeline-item {
    position: relative;
    display: flex;
    gap: 2rem;
}

.library-timeline-connector {
    position: absolute;
    left: 1.75rem;
    top: 3.5rem;
    bottom: -3rem;
    width: 2px;
    background-color: var(--border);
}

.library-timeline-number {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.library-timeline-content {
    padding-top: 0.5rem;
}

/* ============================================
   Specialty Cards
   ============================================ */
.specialty-card {
    transition: all 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

/* ============================================
   Admission Page Specifics
   ============================================ */
.bg-white-50 {
    background-color: rgba(255, 255, 255, 0.5);
}

.hero-bg-gradient {
    background-color: var(--muted);
}

.card-primary-gradient {
    background-color: var(--primary);
    color: white;
}

.card-primary-gradient .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.card-primary-gradient svg {
    color: white;
}

.card-light-gradient {
    background-color: var(--muted);
    border: 1px solid var(--border);
}

.badge-gradient {
    background-color: var(--primary);
    color: white;
}

.cta-banner {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius-lg);
}

.divider-gradient {
    height: 1px;
    background-color: var(--border);
    border: none;
}

/* ============================================
   Blurred Background Decorations
   ============================================ */
.blur-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    opacity: 0.1;
    pointer-events: none;
    max-width: 100%;
}

.blur-primary {
    background-color: var(--primary);
}

.blur-secondary {
    background-color: var(--secondary);
}

/* ============================================
   Loader / Spinner
   ============================================ */
.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   Page Transition Overlay
   ============================================ */
#pageTransitionOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(10px);
}

#pageTransitionOverlay.active {
    opacity: 1;
    visibility: visible;
}

.transition-loader {
    text-align: center;
}

.transition-loader .loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(37, 99, 235, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.transition-loader p {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ========================================= 
   utilities.css 
   ========================================= */
/**
 * Divyansh Educational Foundation - Utilities
 * Merged from admin-common.css + style.css utility sections
 * Single source for all utility classes (deduplicated)
 */

/* ============================================
   DISPLAY & FLEXBOX UTILITIES
   ============================================ */
.d-flex {
    display: flex;
}

.d-inline-flex {
    display: inline-flex;
}

.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block;
}

.d-none {
    display: none;
}

.d-grid {
    display: grid;
}

.flex {
    display: flex;
}

.flex-col,
.flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.flex-1 {
    flex: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.items-center,
.align-items-center {
    align-items: center;
}

.items-start,
.align-items-start {
    align-items: flex-start;
}

.align-items-end {
    align-items: flex-end;
}

.align-items-stretch {
    align-items: stretch;
}

.justify-start {
    justify-content: flex-start;
}

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

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

/* ============================================
   GAP UTILITIES
   ============================================ */
.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.25rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* ============================================
   MARGIN UTILITIES
   ============================================ */
.m-0 {
    margin: 0;
}

.m-1 {
    margin: 0.25rem;
}

.m-2 {
    margin: 0.5rem;
}

.m-3 {
    margin: 0.75rem;
}

.m-4 {
    margin: 1rem;
}

.m-5 {
    margin: 1.25rem;
}

.m-6 {
    margin: 1.5rem;
}

.m-8 {
    margin: 2rem;
}

.m-auto {
    margin: auto;
}

.mt-0 {
    margin-top: 0;
}

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

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

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

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

.mt-5 {
    margin-top: 1.25rem;
}

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

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

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

.mb-0 {
    margin-bottom: 0;
}

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

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

.mb-3 {
    margin-bottom: 0.75rem;
}

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

.mb-5 {
    margin-bottom: 1.25rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

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

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.ml-0 {
    margin-left: 0;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.ml-4 {
    margin-left: 1rem;
}

.ml-auto {
    margin-left: auto;
}

.mr-0 {
    margin-right: 0;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mr-4 {
    margin-right: 1rem;
}

.mr-auto {
    margin-right: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.my-0 {
    margin-top: 0;
    margin-bottom: 0;
}

.my-4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* ============================================
   PADDING UTILITIES
   ============================================ */
.p-0 {
    padding: 0;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-12 {
    padding: 2.5rem;
}

.pt-0 {
    padding-top: 0;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pt-8 {
    padding-top: 2rem;
}

.pb-0 {
    padding-bottom: 0;
}

.pb-4 {
    padding-bottom: 1rem;
}

.pb-6 {
    padding-bottom: 1.5rem;
}

.pl-4 {
    padding-left: 1rem;
}

.pl-10 {
    padding-left: 2.5rem;
}

.pl-12 {
    padding-left: 3rem;
}

.pr-4 {
    padding-right: 1rem;
}

.pr-12 {
    padding-right: 3rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* ============================================
   TEXT UTILITIES
   ============================================ */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-tight {
    line-height: 1.25;
}

/* ============================================
   COLOR UTILITIES
   ============================================ */
.text-secondary {
    color: var(--secondary);
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--muted-foreground);
}

.text-white {
    color: white !important;
}

.text-white-opacity-90 {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ============================================
   BACKGROUND UTILITIES
   ============================================ */
.bg-background {
    background-color: var(--background);
}

.bg-card {
    background-color: var(--card);
}

.bg-muted {
    background-color: var(--muted);
}

/* ============================================
   WIDTH & HEIGHT UTILITIES
   ============================================ */
.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.w-5 {
    width: 1.25rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-20 {
    width: 5rem;
}

.w-64 {
    width: 16rem;
}

.w-72 {
    width: 18rem;
}

.h-2 {
    height: 0.5rem;
}

.h-3 {
    height: 0.75rem;
}

.h-5 {
    height: 1.25rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.min-h-screen {
    min-height: 100vh;
}

.max-w-xs {
    max-width: 20rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-7xl {
    max-width: 80rem;
}

/* ============================================
   BORDER & RADIUS UTILITIES
   ============================================ */
.border {
    border: 1px solid var(--border);
}

.border-0 {
    border: 0;
}

.border-2 {
    border-width: 2px;
}

.border-t {
    border-top: 1px solid var(--border);
}

.border-b {
    border-bottom: 1px solid var(--border);
}

.border-l {
    border-left: 1px solid;
}

.border-r {
    border-right: 1px solid;
}

.rounded {
    border-radius: var(--radius, 0.25rem);
}

.rounded-lg {
    border-radius: var(--radius-lg, 0.5rem);
}

.rounded-xl {
    border-radius: var(--radius-xl, 0.75rem);
}

.rounded-2xl {
    border-radius: var(--radius-2xl, 1rem);
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* ============================================
   POSITIONING UTILITIES
   ============================================ */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.top-1 {
    top: 0.25rem;
}

.right-0 {
    right: 0;
}

.right-1 {
    right: 0.25rem;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.inset-y-0 {
    top: 0;
    bottom: 0;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

/* ============================================
   OVERFLOW & VISIBILITY
   ============================================ */
.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-y-auto {
    overflow-y: auto;
}

.invisible {
    visibility: hidden;
}

.visible {
    visibility: visible;
}

.hidden {
    display: none;
}

/* ============================================
   CURSOR & POINTER EVENTS
   ============================================ */
.cursor-pointer {
    cursor: pointer;
}

.cursor-default {
    cursor: default;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.pointer-events-none {
    pointer-events: none;
}

/* ============================================
   TRANSITIONS
   ============================================ */
.transition-all {
    transition: all 0.2s ease;
}

.transition-colors {
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

/* ============================================
   OPACITY
   ============================================ */
.opacity-0 {
    opacity: 0;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-90 {
    opacity: 0.9;
}

.opacity-100 {
    opacity: 1;
}

/* ============================================
   SHADOWS (Single definition â€” deduplicated)
   ============================================ */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: var(--shadow-2xl);
}

.shadow-inner {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

/* ============================================
   GRID UTILITIES
   ============================================ */
.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

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

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

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

.col-span-3 {
    grid-column: span 3;
}

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

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .md\:col-span-2 {
        grid-column: span 2;
    }
}

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

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* ============================================
   RESPONSIVE VISIBILITY
   ============================================ */
@media (min-width: 640px) {
    .sm\:block {
        display: block;
    }

    .sm\:flex {
        display: flex;
    }

    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sm\:text-xl {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .md\:block {
        display: block;
    }

    .md\:flex {
        display: flex;
    }
}

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

    .lg\:flex {
        display: flex;
    }
}

/* ============================================
   GLASSMORPHISM & EFFECTS
   ============================================ */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.hover-scale {
    transition: transform 0.2s ease;
}

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

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Form Focus Ring */
.focus-ring:focus-within {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    border-color: var(--primary);
}

/* ============================================
   FONT FAMILIES
   ============================================ */
.font-sans {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    border-top: 4px solid var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.1);
}

.testimonial-quote-icon {
    color: var(--primary);
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-author-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.testimonial-author-info p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0.75rem;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.12);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    gap: 1rem;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--primary);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   VERTICAL TIMELINE
   ============================================ */
.timeline-vertical {
    position: relative;
    padding-left: 3rem;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.timeline-v-item {
    position: relative;
    padding-bottom: 2.5rem;
}

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

.timeline-v-dot {
    position: absolute;
    left: -2.25rem;
    top: 0.25rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    z-index: 1;
}

.timeline-v-item:nth-child(even) .timeline-v-dot {
    background: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.timeline-v-content {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-v-content:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
}

.timeline-v-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.timeline-v-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.timeline-v-content p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   PROCESS STEPS
   ============================================ */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    counter-reset: process-counter;
}

.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.1);
}

.process-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.process-badge {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background-color: var(--primary);
    color: white;
}

.process-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.process-step p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Process connector arrows (desktop only) */
.process-step:not(:last-child)::after {
    content: '\2192';
    position: absolute;
    right: -1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.4;
    z-index: 1;
}

/* ============================================
   EXPECT (VISIT) CARDS
   ============================================ */
.expect-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.expect-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.expect-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background-color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary);
}

.hero-section {
    position: relative;
    background-color: var(--muted);
    overflow: hidden;
}

.expect-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.expect-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   PHILOSOPHY CARDS
   ============================================ */
.philosophy-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-card:nth-child(2) {
    border-left-color: var(--secondary);
}

.philosophy-card:nth-child(3) {
    border-left-color: #22c55e;
}

.philosophy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.philosophy-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.philosophy-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   HOW IT WORKS (HOME)
   ============================================ */
.how-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-step:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.how-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.how-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.35rem 0;
}

.how-step p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   RESPONSIVE: NEW SECTIONS
   ============================================ */
@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr !important;
    }
    .process-step:not(:last-child)::after {
        display: none;
    }
    .timeline-vertical {
        padding-left: 2.5rem;
    }
}

/* ========================================= 
   animations.css 
   ========================================= */
/**
 * Divyansh Educational Foundation - Animations
 * All keyframes, animation utilities, hover effects, page transitions
 * Extracted from style.css (lines 1977-2773)
 */

/* ============================================
   KEYFRAME DEFINITIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-3deg);
    }

    75% {
        transform: rotate(3deg);
    }
}

@keyframes bounceSubtle {

    0%,
    100% {
        transform: translateY(-5%);
    }

    50% {
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes sectionEnter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ANIMATION UTILITY CLASSES
   ============================================ */
.animate-fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-bounce-subtle:hover {
    animation: bounceSubtle 1s infinite;
}

/* ============================================
   STAGGERED ANIMATION DELAYS
   ============================================ */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* ============================================
   PAGE LOAD ANIMATIONS
   ============================================ */
/* Cards animate on load */
.card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.grid-2 .card:nth-child(1),
.grid-3 .card:nth-child(1),
.grid-4 .card:nth-child(1) {
    animation-delay: 0.1s;
}

.grid-2 .card:nth-child(2),
.grid-3 .card:nth-child(2),
.grid-4 .card:nth-child(2) {
    animation-delay: 0.2s;
}

.grid-3 .card:nth-child(3),
.grid-4 .card:nth-child(3) {
    animation-delay: 0.3s;
}

.grid-4 .card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Hero content animation */
.hero-title {
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ============================================
   NAVIGATION HOVER EFFECTS
   ============================================ */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
    left: 10%;
}

.nav-link:hover {
    color: var(--primary);
}

/* Override: Admin button must keep white text on hover */
.nav-link.btn-admin:hover {
    color: #ffffff;
}

/* ============================================
   FOOTER LINK HOVER
   ============================================ */
.footer-links a {
    position: relative;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a::before {
    content: '\2192';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: opacity 0.3s ease, left 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 15px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

/* ============================================
   LOGO HOVER
   ============================================ */
.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover .logo-img {
    animation: wiggle 0.5s ease;
}

/* ============================================
   IMAGE HOVER
   ============================================ */
img {
    transition: transform 0.5s ease;
}

.card img:hover,
.about-image:hover {
    transform: scale(1.05);
}

/* ============================================
   ALERT ANIMATIONS
   ============================================ */
.alert {
    animation: fadeInDown 0.4s ease-out;
}

.alert-success {
    animation: fadeInDown 0.4s ease-out, pulse 2s ease-in-out 0.4s;
}

/* ============================================
   MOBILE MENU ANIMATION
   ============================================ */
.mobile-nav {
    animation: fadeInDown 0.3s ease-out;
}

.mobile-nav-link {
    animation: fadeInRight 0.3s ease-out backwards;
}

.mobile-nav-link:nth-child(1) {
    animation-delay: 0.05s;
}

.mobile-nav-link:nth-child(2) {
    animation-delay: 0.1s;
}

.mobile-nav-link:nth-child(3) {
    animation-delay: 0.15s;
}

.mobile-nav-link:nth-child(4) {
    animation-delay: 0.2s;
}

.mobile-nav-link:nth-child(5) {
    animation-delay: 0.25s;
}

.mobile-nav-link:nth-child(6) {
    animation-delay: 0.3s;
}

.mobile-nav-link:nth-child(7) {
    animation-delay: 0.35s;
}

/* ============================================
   LINK HOVER UNDERLINE
   ============================================ */
a[style*="color: var(--primary)"] {
    position: relative;
    transition: color 0.3s ease;
}

a[style*="color: var(--primary)"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

a[style*="color: var(--primary)"]:hover::after {
    width: 100%;
}

/* ============================================
   PAGE TRANSITION SYSTEM
   ============================================ */
/* Main content enter/exit */
.main-content {
    opacity: 0;
    transform: translateY(20px);
}

.main-content.page-enter {
    animation: pageEnter 0.5s ease-out forwards;
}

.main-content.page-exit {
    animation: pageExit 0.3s ease-in forwards;
}

/* Initial page load */
body:not(.page-loaded) .main-content {
    opacity: 0;
}

body.page-loaded .main-content {
    animation: pageEnter 0.6s ease-out forwards;
}

/* Section transitions within page */
.section,
.section-hero,
.section-card,
.section-primary {
    opacity: 0;
    transform: translateY(30px);
}

body.page-loaded .section,
body.page-loaded .section-hero,
body.page-loaded .section-card,
body.page-loaded .section-primary {
    animation: sectionEnter 0.6s ease-out forwards;
}

body.page-loaded .section-hero {
    animation-delay: 0.1s;
}

body.page-loaded .section:nth-of-type(1) {
    animation-delay: 0.2s;
}

body.page-loaded .section:nth-of-type(2) {
    animation-delay: 0.3s;
}

body.page-loaded .section-card:nth-of-type(1) {
    animation-delay: 0.3s;
}

body.page-loaded .section-card:nth-of-type(2) {
    animation-delay: 0.4s;
}

body.page-loaded .section-primary {
    animation-delay: 0.4s;
}

/* Header stays visible during transition */
.main-header,
.top-bar {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================
   ACCESSIBILITY: Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================= 
   responsive.css 
   ========================================= */
/**
 * Divyansh Educational Foundation - Responsive Overrides
 * Enhanced breakpoints: 320px, 360px, 480px, 768px
 * Mobile-first hardening with root cause fixes
 */

/* ============================================
   TABLET (â‰¤ 768px)
   ============================================ */
@media (max-width: 768px) {

    /* Container Fix */
    .container {
        padding-left: var(--container-padding, 1rem);
        padding-right: var(--container-padding, 1rem);
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Typography Scaling */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 2.25rem !important;
    }

    .section-title {
        font-size: 1.875rem !important;
    }

    /* Word Break for long text */
    .hero-title,
    .section-title,
    .hero-subtitle,
    .section-subtitle,
    h1,
    h2,
    h3 {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Grid Stacking */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Card Scaling */
    .card {
        padding: 1.5rem !important;
    }

    /* Top Bar Stacking */
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .top-bar-left {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .top-bar-right {
        text-align: center;
        width: 100%;
        font-size: 0.75rem;
    }

    /* Navbar Height & Logo */
    .main-header {
        height: auto !important;
        padding: 0.5rem 0;
    }

    .nav-container {
        height: auto !important;
        padding: 0.5rem 1rem !important;
    }

    .logo-img {
        height: 40px !important;
        width: auto !important;
    }

    .logo-title {
        font-size: 1.25rem !important;
        letter-spacing: 0.05em;
    }

    .logo-subtitle {
        font-size: 0.625rem !important;
    }

    /* Hamburger Menu Button */
    .mobile-menu-btn {
        margin-left: auto;
    }

    /* Hero Section */
    .section-hero {
        padding: 3rem 1rem !important;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.125rem !important;
        margin-bottom: 2rem !important;
    }

    /* Background Blobs - Clamp size to prevent overflow */
    .blur-blob {
        opacity: 0.15 !important;
    }

    .blur-blob-primary {
        width: 12rem !important;
        height: 12rem !important;
    }

    .blur-blob-secondary {
        width: 16rem !important;
        height: 16rem !important;
    }

    /* Contact card - prevent overflow on hover */
    .contact-card:hover {
        transform: translateX(3px);
    }

    /* Timeline - prevent overflow and stack on mobile */
    .timeline-step:hover {
        transform: translateX(5px);
    }

    .timeline-step,
    .library-timeline-item {
        flex-direction: column;
        gap: 1rem !important;
        align-items: flex-start;
    }

    .timeline-step:not(:last-child)::after,
    .library-timeline-connector {
        left: 1.75rem !important;
        top: 3.5rem !important;
    }

    /* Force long text to break instead of overflowing (e.g. email addresses) */
    .contact-card p,
    .text-muted,
    .card p {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Stats Grid responsive fix */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================
   MOBILE (â‰¤ 480px)
   ============================================ */
@media (max-width: 480px) {

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .stat-item {
        padding: 1.25rem !important;
    }

    /* Course Cards */
    .course-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .course-card-footer {
        margin: 0 -1.5rem -1.5rem !important;
        padding: 1rem 1.5rem !important;
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Badges & Flags */
    .badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    /* Timeline / Step Position Adjustment */
    .step-number {
        left: -0.5rem !important;
        top: -0.75rem !important;
        width: 2.25rem !important;
        height: 2.25rem !important;
        font-size: 0.875rem !important;
    }

    /* Timing Cards */
    .timing-card-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .timing-card-day-icon {
        width: 3.5rem !important;
        height: 3.5rem !important;
    }

    /* Certificate Fixes */
    .certificate-inner {
        padding: 1.5rem !important;
        border-width: 4px !important;
    }

    .certificate-footer {
        flex-direction: column !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }

    /* Buttons full-width at mobile */
    .btn {
        padding: 0.75rem 1.5rem;
    }

    /* Contact card hover disabled at small sizes */
    .contact-card:hover {
        transform: none;
    }

    /* Sections reduced padding */
    .section {
        padding: 2.5rem 1rem !important;
    }

    /* #statsGrid responsive override */
    #statsGrid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   SMALL MOBILE (â‰¤ 360px)
   ============================================ */
@media (max-width: 360px) {

    h1,
    .hero-title {
        font-size: 1.75rem !important;
    }

    h2,
    .section-title {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .logo-title {
        font-size: 1.125rem !important;
    }

    .section {
        padding: 2.5rem 0.75rem !important;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem !important;
    }

    /* Course Card Specifics */
    .course-card-footer {
        margin: 0 -1rem -1rem !important;
        padding: 0.75rem 1rem !important;
    }

    .card {
        padding: 1rem !important;
    }
}

/* ============================================
   MINIMUM MOBILE (â‰¤ 320px)
   ============================================ */
@media (max-width: 320px) {

    h1,
    .hero-title {
        font-size: 1.5rem !important;
    }

    h2,
    .section-title {
        font-size: 1.25rem !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
    }

    .section {
        padding: 2rem 0.5rem !important;
    }

    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .top-bar {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .footer-content {
        padding: 2rem 0.5rem;
    }

    .certificate-inner {
        padding: 1rem !important;
        border-width: 3px !important;
    }
}

/* ============================================
   OVERFLOW ROOT CAUSE FIXES (Global)
   ============================================ */

/* Fix: Stats grid repeated column override */
#statsGrid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
}

/* Fix: Ensure all images and media respect container bounds */
img,
video,
svg,
iframe {
    max-width: 100%;
}

/* Fix: Flexbox blowout prevention (allows flex items to shrink below their content size) */
* {
    min-width: 0;
}

/* Fix: Tables should scroll horizontally, not page */
table {
    display: block;
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .stat-item {
        padding: 1.25rem !important;
    }

    /* Course Cards */
    .course-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .course-card-footer {
        margin: 0 -1.5rem -1.5rem !important;
        padding: 1rem 1.5rem !important;
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Badges & Flags */
    .badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    /* Timeline / Step Position Adjustment */
    .step-number {
        left: -0.5rem !important;
        top: -0.75rem !important;
        width: 2.25rem !important;
        height: 2.25rem !important;
        font-size: 0.875rem !important;
    }

    /* Timing Cards */
    .timing-card-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .timing-card-day-icon {
        width: 3.5rem !important;
        height: 3.5rem !important;
    }

    /* Certificate Fixes */
    .certificate-inner {
        padding: 1.5rem !important;
        border-width: 4px !important;
    }

    .certificate-footer {
        flex-direction: column !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }

    /* Buttons full-width at mobile */
    .btn {
        padding: 0.75rem 1.5rem;
    }

    /* Contact card hover disabled at small sizes */
    .contact-card:hover {
        transform: none;
    }

    /* Sections reduced padding */
    .section {
        padding: 2.5rem 1rem !important;
    }

    /* #statsGrid responsive override */
    #statsGrid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   SMALL MOBILE (â‰¤ 360px)
   ============================================ */
@media (max-width: 360px) {

    h1,
    .hero-title {
        font-size: 1.75rem !important;
    }

    h2,
    .section-title {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .logo-title {
        font-size: 1.125rem !important;
    }

    .section {
        padding: 2.5rem 0.75rem !important;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem !important;
    }

    /* Course Card Specifics */
    .course-card-footer {
        margin: 0 -1rem -1rem !important;
        padding: 0.75rem 1rem !important;
    }

    .card {
        padding: 1rem !important;
    }
}

/* ============================================
   MINIMUM MOBILE (â‰¤ 320px)
   ============================================ */
@media (max-width: 320px) {

    h1,
    .hero-title {
        font-size: 1.5rem !important;
    }

    h2,
    .section-title {
        font-size: 1.25rem !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
    }

    .section {
        padding: 2rem 0.5rem !important;
    }

    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .top-bar {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .footer-content {
        padding: 2rem 0.5rem;
    }

    .certificate-inner {
        padding: 1rem !important;
        border-width: 3px !important;
    }
}

/* ============================================
   OVERFLOW ROOT CAUSE FIXES (Global)
   ============================================ */

/* Fix: Stats grid repeated column override */
#statsGrid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
}

/* Fix: Ensure all images and media respect container bounds */
img,
video,
svg,
iframe {
    max-width: 100%;
}

/* Fix: Flexbox blowout prevention (allows flex items to shrink below their content size) */
* {
    min-width: 0;
}

/* Fix: Tables should scroll horizontally, not page */
table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Fix: Global Horizontal Overflow Preventer */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ============================================
   COLORFUL PALETTE UTILITIES
   ============================================ */
.bg-color-1 { background-color: var(--color-1-blue) !important; color: #fff !important; }
.bg-color-2 { background-color: var(--color-2-green) !important; color: #fff !important; }
.bg-color-3 { background-color: var(--color-3-purple) !important; color: #fff !important; }
.bg-color-4 { background-color: var(--color-4-red) !important; color: #fff !important; }
.bg-color-5 { background-color: var(--color-5-orange) !important; color: #fff !important; }
.bg-color-6 { background-color: var(--color-6-yellow) !important; color: #fff !important; }
.bg-color-7 { background-color: var(--color-7-pink) !important; color: #fff !important; }
.bg-color-8 { background-color: var(--color-8-cyan) !important; color: #fff !important; }
.bg-color-9 { background-color: var(--color-9-indigo) !important; color: #fff !important; }
.bg-color-10 { background-color: var(--color-10-teal) !important; color: #fff !important; }

.text-color-1 { color: var(--color-1-blue) !important; }
.text-color-2 { color: var(--color-2-green) !important; }
.text-color-3 { color: var(--color-3-purple) !important; }
.text-color-4 { color: var(--color-4-red) !important; }
.text-color-5 { color: var(--color-5-orange) !important; }
.text-color-6 { color: var(--color-6-yellow) !important; }
.text-color-7 { color: var(--color-7-pink) !important; }
.text-color-8 { color: var(--color-8-cyan) !important; }
.text-color-9 { color: var(--color-9-indigo) !important; }
.text-color-10 { color: var(--color-10-teal) !important; }

.bg-color-1-soft { background-color: var(--color-1-blue) !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important; text-shadow: none !important; border: none !important; }
.bg-color-2-soft { background-color: var(--color-2-green) !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35) !important; text-shadow: none !important; border: none !important; }
.bg-color-3-soft { background-color: var(--color-3-purple) !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(147, 51, 234, 0.35) !important; text-shadow: none !important; border: none !important; }
.bg-color-4-soft { background-color: var(--color-4-red) !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35) !important; text-shadow: none !important; border: none !important; }
.bg-color-5-soft { background-color: var(--color-5-orange) !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35) !important; text-shadow: none !important; border: none !important; }
.bg-color-6-soft { background-color: var(--color-6-yellow) !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(234, 179, 8, 0.35) !important; text-shadow: none !important; border: none !important; }
.bg-color-7-soft { background-color: var(--color-7-pink) !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35) !important; text-shadow: none !important; border: none !important; }
.bg-color-8-soft { background-color: var(--color-8-cyan) !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35) !important; text-shadow: none !important; border: none !important; }
.bg-color-9-soft { background-color: var(--color-9-indigo) !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35) !important; text-shadow: none !important; border: none !important; }
.bg-color-10-soft { background-color: var(--color-10-teal) !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35) !important; text-shadow: none !important; border: none !important; }

/* Ensure icons inside these vibrant boxes render distinctly as huge white elements */
.icon-box svg, [class*="bg-color-"][class*="-soft"] svg { stroke: #ffffff !important; color: #ffffff !important; stroke-width: 2.5px; opacity: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }

