/* ═══════════════════════════════════════════════════════════
   Rahi AI Coding Classes — Modern Design System 2026
   ═══════════════════════════════════════════════════════════ */

:root {
    --primary: #6d28d9;
    --primary-light: #8b5cf6;
    --primary-dark: #5b21b6;
    --accent: #06b6d4;
    --accent-2: #f59e0b;
    --success: #10b981;
    --whatsapp: #25d366;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --cream: #fefce8;
    --white: #ffffff;
    --gradient-hero: linear-gradient(135deg, #ede9fe 0%, #f0f9ff 35%, #fef3c7 70%, #fdf4ff 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 30px rgba(109, 40, 217, 0.12);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.15);
    --shadow-glow: 0 0 40px rgba(109, 40, 217, 0.25);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 76px;
    --header-h-desktop: 116px;
    --font: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.site-main { padding-top: var(--header-h); min-height: 60vh; }
@media (min-width: 768px) {
    .site-main { padding-top: var(--header-h-desktop); }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .site-main { padding-top: calc(var(--header-h) + 36px); }
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; }
.display-4 { letter-spacing: -0.03em; line-height: 1.15; }
.lead { font-weight: 400; line-height: 1.7; }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.section-subtitle { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* ── Buttons ── */
.btn {
    font-weight: 600;
    border-radius: 12px;
    padding: 0.6rem 1.25rem;
    transition: var(--transition);
    border: none;
}
.btn-lg { padding: 0.85rem 1.75rem; border-radius: 14px; }

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0891b2 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.45);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid rgba(109, 40, 217, 0.35);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}
.btn-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.btn-glow:hover::after { transform: translateX(100%); }

.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-cream { background: var(--cream); }
.bg-dark-gradient { background: var(--gradient-dark); }

/* ── Top Bar ── */
.top-bar {
    background: var(--gradient-dark);
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    padding: 0.4rem 0;
    z-index: 1040;
}
.top-bar a { color: #a5f3fc; text-decoration: none; }
.top-bar a:hover { color: #fff; }
.top-bar-inner { font-size: 0.8rem; }
.top-bar-address { max-width: 55%; }
.top-bar-meta { white-space: nowrap; }

/* ── Header / Nav ── */
.site-header {
    z-index: 1030;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}
.site-header .navbar { padding: 0.65rem 0; }

.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin-right: 1rem;
    line-height: 1;
}
.navbar-brand:hover { opacity: 0.92; }

/* Site Logo */
.site-logo {
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
.site-logo-header {
    height: 56px;
    max-width: 240px;
}
@media (min-width: 992px) {
    .site-logo-header {
        height: 72px;
        max-width: 320px;
    }
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .site-logo-header {
        height: 64px;
        max-width: 280px;
    }
}
@media (max-width: 575.98px) {
    .site-logo-header {
        height: 50px;
        max-width: 210px;
    }
}
.site-logo-footer {
    height: 56px;
    max-width: 240px;
}
.footer-logo-wrap {
    display: inline-block;
    background: #fff;
    padding: 0.65rem 1rem;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}
.footer-logo-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.site-logo-auth {
    height: 84px;
    max-width: 300px;
    margin: 0 auto;
}
.site-logo-admin {
    height: 72px;
    max-width: 280px;
    margin: 0 auto;
}
.site-logo-inline {
    height: 48px;
    max-width: 200px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 10px;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: rgba(109, 40, 217, 0.08);
}

.dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    animation: dropdownIn 0.25s ease;
}
.dropdown-item {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}
.dropdown-item:hover { background: rgba(109, 40, 217, 0.08); color: var(--primary); }

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Hero ── */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: 4rem 0;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobFloat 12s ease-in-out infinite;
    pointer-events: none;
}
.hero-blob-1 { width: 400px; height: 400px; background: #c4b5fd; top: -10%; right: -5%; }
.hero-blob-2 { width: 300px; height: 300px; background: #67e8f9; bottom: 10%; left: -8%; animation-delay: -4s; }
.hero-blob-3 { width: 200px; height: 200px; background: #fde68a; top: 40%; right: 30%; animation-delay: -8s; }

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(109, 40, 217, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(109, 40, 217, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(109, 40, 217, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    animation: fadeUp 0.8s ease;
}
.hero-badge .pulse-dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: fadeUp 0.8s ease 0.2s both;
}
.hero-card .form-control, .hero-card .form-select {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}
.hero-card .form-control:focus, .hero-card .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.12);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
}
.stat-item {
    text-align: center;
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.7);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.9);
    min-width: 100px;
    transition: var(--transition);
}
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
@media (min-width: 992px) {
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
    .stat-item { min-width: 0; }
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; margin-top: 0.25rem; }

/* ── Marquee ── */
.marquee-wrap {
    background: var(--dark);
    color: #fff;
    padding: 0.75rem 0;
    overflow: hidden;
}
.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}
.marquee-track span {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.85;
}
.marquee-track span i { color: var(--accent); margin-right: 0.5rem; }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Cards & Sections ── */
.section-padding { padding: 5rem 0; }
.section-dark {
    background: var(--gradient-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.section-dark::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    top: -200px; right: -100px;
    pointer-events: none;
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    transition: var(--transition);
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.benefit-card, .course-card, .feature-card {
    transition: var(--transition);
    border-radius: var(--radius);
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: var(--white);
    overflow: hidden;
}
.benefit-card {
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(109, 40, 217, 0.2);
}
.benefit-icon {
    width: 56px; height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(109,40,217,0.1), rgba(6,182,212,0.1));
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}
.benefit-card:hover .benefit-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}

.course-card {
    box-shadow: var(--shadow-sm);
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.course-card .card-img-top {
    height: 160px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.course-card:hover .card-img-top { transform: scale(1.05); }
.course-card .card-body { padding: 1.25rem; }
.course-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: rgba(109, 40, 217, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Who join cards */
.join-card {
    padding: 1.75rem 1rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.06);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}
.join-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.join-card .join-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}
.join-card:hover .join-icon { transform: scale(1.1); box-shadow: var(--shadow-glow); }

/* Process steps */
.process-step {
    position: relative;
    text-align: center;
    padding: 1.5rem 1rem;
}
.process-number {
    width: 48px; height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.4);
    transition: var(--transition);
}
.process-step:hover .process-number { transform: scale(1.15); }

/* Hub cards */
.hub-card {
    display: block;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.hub-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.hub-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    color: inherit;
}
.hub-card:hover::before { transform: scaleX(1); }
.hub-card strong { display: block; font-size: 1.1rem; color: var(--dark); }
.hub-card small { color: var(--text-muted); }

.tag-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--white);
    border: 1px solid #e2e8f0;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}
.tag-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Testimonials */
.testimonial-slider .slick-dots li button:before { color: var(--primary); }
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 0.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.05);
    height: 100%;
    transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* FAQ */
.accordion-item {
    border: none;
    margin-bottom: 0.75rem;
    border-radius: var(--radius) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.accordion-button {
    font-weight: 600;
    border-radius: var(--radius) !important;
    padding: 1.25rem 1.5rem;
    background: var(--white);
}
.accordion-button:not(.collapsed) {
    background: rgba(109, 40, 217, 0.06);
    color: var(--primary);
    box-shadow: none;
}
.accordion-body { padding: 1.25rem 1.5rem; color: var(--text-muted); }

/* Page hero */
.page-hero {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 3rem 0 !important;
    margin-top: 0;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(109, 40, 217, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(109, 40, 217, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.5;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }

.breadcrumb { font-size: 0.85rem; }
.breadcrumb-item a { color: var(--primary); text-decoration: none; font-weight: 600; }

.page-content {
    font-size: 1.05rem;
    line-height: 1.8;
}
.page-content h2 { margin-top: 2rem; font-size: 1.35rem; color: var(--dark); }
.page-content ul { padding-left: 0; list-style: none; }
.page-content ul li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
}
.page-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* CTA blocks */
.cta-block {
    background: var(--gradient-dark) !important;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.cta-block::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(6,182,212,0.3), transparent);
    top: -50px; right: -50px;
}

.inquiry-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

/* Footer */
.site-footer {
    background: var(--gradient-dark) !important;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 60%);
    bottom: -300px; left: -200px;
}
.site-footer .footer-link {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}
.site-footer .footer-link:hover {
    color: #fff;
    transform: translateX(4px);
}
.footer-brand { font-size: 1.25rem; font-weight: 800; }
.footer-social a {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Floating widgets */
.whatsapp-float {
    position: fixed; bottom: 100px; right: 24px; z-index: 999;
    width: 58px; height: 58px;
    background: var(--whatsapp);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.65rem;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    transition: var(--transition);
    animation: whatsappPulse 3s infinite;
}
.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 6px 32px rgba(37, 211, 102, 0.7), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

.sticky-admission {
    position: fixed; bottom: 24px; right: 24px; z-index: 998;
    display: flex; flex-direction: column; gap: 10px;
}
.sticky-admission .btn {
    border-radius: 50%;
    width: 48px; height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}
.sticky-admission .btn-warning {
    width: auto;
    border-radius: var(--radius-pill);
    padding: 0 1.25rem;
    font-size: 0.85rem;
    animation: bounceSoft 2s infinite;
}
@keyframes bounceSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.scroll-top {
    position: fixed; bottom: 170px; right: 28px; z-index: 997;
    width: 44px; height: 44px;
    border: none;
    border-radius: 12px;
    background: var(--dark);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.scroll-top:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

/* Modals */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.modal-header.gradient-header {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 1.25rem 1.5rem;
}
.modal-body { padding: 1.5rem; }
.modal-body .form-control, .modal-body .form-select {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
}
.modal-body .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.12);
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

/* Blog */
.blog-content h2, .blog-content h3 { margin-top: 1.5rem; }
.blog-content a { color: var(--primary); font-weight: 600; }

/* Gallery hover */
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
}
.gallery-item:hover img { transform: scale(1.08); }

/* Map */
.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--white);
}

.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0.65rem 1rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.1);
}

.admin-sidebar { min-height: 100vh; background: var(--dark); }
.admin-sidebar .nav-link { color: rgba(255,255,255,.75); padding: .6rem 1rem; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(109, 40, 217, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile · Tablet · Desktop
   Breakpoints: 576 · 768 · 992 · 1200
   ═══════════════════════════════════════════════════════════ */

/* ── Base fluid fixes ── */
img, video, iframe, embed, object { max-width: 100%; height: auto; }
.table-responsive { -webkit-overflow-scrolling: touch; }

/* Sidebar sticky only on desktop */
.sidebar-card { border-radius: var(--radius-lg); }
@media (min-width: 992px) {
    .sidebar-card {
        position: sticky;
        top: calc(var(--header-h-desktop) + 1rem);
    }
}

/* Hero CTA full-width on small phones */
.hero-cta-group .btn { min-height: 48px; }

/* ── Mobile Bottom Bar (< 992px) ── */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    display: flex;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.1);
    padding: 0.5rem 0.75rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    gap: 0.5rem;
}
.mobile-bar-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 52px;
    padding: 0.4rem 0.25rem;
    border: none;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    color: var(--text);
}
.mobile-bar-btn i { font-size: 1.25rem; }
.mobile-bar-demo {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: var(--dark);
}
.mobile-bar-call {
    background: rgba(109, 40, 217, 0.1);
    color: var(--primary);
}
.mobile-bar-wa {
    background: rgba(37, 211, 102, 0.12);
    color: #128c7e;
}
.mobile-bar-btn:active { transform: scale(0.96); }

/* Hide floating widgets when mobile bar is active */
@media (max-width: 991.98px) {
    body.has-mobile-bar {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
    .whatsapp-float,
    .sticky-admission { display: none !important; }
    .scroll-top {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

/* ── Large Desktop (≥ 1200px) ── */
@media (min-width: 1200px) {
    .container { max-width: 1140px; }
    .hero-section { min-height: 88vh; }
    .section-padding { padding: 6rem 0; }
    .navbar-brand { margin-right: 0.5rem; }
}

/* ── Desktop (992px – 1199px) ── */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section { min-height: 90vh; padding: 3.5rem 0; }
    .section-padding { padding: 4.5rem 0; }
    .hero-blob-1 { width: 320px; height: 320px; }
    .hero-blob-2 { width: 240px; height: 240px; }
}


/* ── Tablet (768px – 991px) ── */
@media (min-width: 768px) and (max-width: 991.98px) {
    :root { --header-h: 68px; }
    .top-bar-inner {
        font-size: 0.72rem;
        justify-content: center !important;
        text-align: center;
    }
    .top-bar-address { max-width: 100%; }
    .hero-section {
        min-height: auto;
        padding: 2.5rem 0 3.5rem;
    }
    .hero-section .display-4 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
    .section-padding { padding: 3.5rem 0; }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .stat-item { min-width: 0; }
    .hero-card { margin-top: 2rem; }
    .hero-cta-group .btn { width: auto; min-width: 160px; }
    .testimonial-card { padding: 1.5rem; }
    .inquiry-card { padding: 1.5rem; }
    .page-hero { padding: 2.5rem 0 !important; }
    .page-content { font-size: 1rem; }
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: var(--radius);
        margin-top: 0.5rem;
        padding: 0.5rem 1rem 1rem;
        box-shadow: var(--shadow-md);
    }
    .mobile-nav-cta .btn { flex: 1; }
}

/* ── Mobile Large (576px – 767px) ── */
@media (min-width: 576px) and (max-width: 767.98px) {
    :root { --header-h: 64px; }
    .hero-section {
        min-height: auto;
        padding: 2rem 0 3rem;
    }
    .hero-section .display-4 { font-size: clamp(1.65rem, 5vw, 2.1rem); }
    .section-padding { padding: 3rem 0; }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .stat-item { min-width: 0; width: 100%; }
    .hero-blob-1 { width: 250px; height: 250px; }
    .hero-blob-2 { width: 180px; height: 180px; }
    .hero-blob-3 { display: none; }
    .benefit-card, .join-card, .hub-card { padding: 1.25rem; }
    .testimonial-card { padding: 1.25rem; margin: 0.25rem; }
    .accordion-button { padding: 1rem 1.25rem; font-size: 0.95rem; }
    .page-hero h1 { font-size: 1.65rem; }
    .cta-block .btn { width: 100%; margin-bottom: 0.5rem; }
    .cta-buttons .btn { flex: 1; min-width: 0; }
    .footer-logo-wrap { margin-bottom: 0.5rem; }
    .navbar-collapse {
        background: var(--white);
        border-radius: var(--radius);
        margin: 0.5rem -0.5rem 0;
        padding: 0.75rem 1rem 1rem;
        box-shadow: var(--shadow-md);
    }
    .nav-link { padding: 0.65rem 0.75rem !important; }
    .mobile-nav-cta { width: 100%; }
    .mobile-nav-cta .btn { flex: 1; min-height: 44px; }
}

/* ── Mobile Small (< 576px) ── */
@media (max-width: 575.98px) {
    :root { --header-h: 60px; }
    .site-main { padding-top: var(--header-h); }
    .hero-section {
        min-height: auto;
        padding: 1.5rem 0 2.5rem;
    }
    .hero-section .display-4 {
        font-size: clamp(1.45rem, 7vw, 1.85rem);
        line-height: 1.2;
    }
    .hero-section .lead { font-size: 0.95rem; }
    .hero-badge { font-size: 0.75rem; padding: 0.4rem 0.75rem; }
    .section-padding { padding: 2.5rem 0; }
    .section-title { font-size: clamp(1.4rem, 5.5vw, 1.75rem); }
    .section-label { font-size: 0.7rem; }
    .section-label::before { width: 18px; }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    .stat-item {
        min-width: 0;
        width: 100%;
        padding: 0.5rem 0.6rem;
    }
    .stat-number { font-size: 1.2rem; }
    .stat-label { font-size: 0.65rem; }

    .hero-cta-group .btn-lg {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .hero-blob-1 { width: 180px; height: 180px; opacity: 0.35; }
    .hero-blob-2 { width: 140px; height: 140px; opacity: 0.35; }
    .hero-blob-3 { display: none; }
    .hero-card { margin-top: 1.5rem; }
    .hero-card .card-body { padding: 1.25rem !important; }

    .btn { min-height: 44px; }
    .btn-sm { min-height: 36px; }
    .btn-lg { padding: 0.75rem 1.25rem; font-size: 0.95rem; }

    .benefit-card { padding: 1.15rem; }
    .benefit-icon { width: 48px; height: 48px; font-size: 1.25rem; }
    .join-card { padding: 1.25rem 0.75rem; }
    .join-card .join-icon { width: 52px; height: 52px; font-size: 1.25rem; }
    .join-card h3, .join-card .h6 { font-size: 0.85rem; }
    .hub-card { padding: 1.15rem; }
    .hub-card strong { font-size: 0.95rem; }
    .tag-pill { font-size: 0.75rem; padding: 0.35rem 0.75rem; }

    .course-card .card-img-top { height: 140px; }
    .course-card .card-body { padding: 1rem; }
    .testimonial-card { padding: 1.15rem; margin: 0.15rem; }
    .testimonial-avatar { width: 40px; height: 40px; font-size: 0.95rem; }

    .accordion-button {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    .accordion-body { padding: 1rem; font-size: 0.9rem; }

    .page-hero { padding: 2rem 0 !important; }
    .page-hero h1 { font-size: 1.4rem; }
    .page-hero .lead { font-size: 0.9rem; }
    .page-content { font-size: 0.95rem; line-height: 1.7; }
    .page-content h2 { font-size: 1.15rem; margin-top: 1.5rem; }
    .page-content .table { font-size: 0.8rem; }
    .page-content img { border-radius: var(--radius); }

    .inquiry-card { padding: 1.25rem; }
    .cta-block { padding: 1.5rem !important; }
    .cta-block .btn { width: 100%; margin-bottom: 0.5rem; }
    .cta-buttons .btn { flex: 1; min-width: 0; }
    .cta-block h3, .cta-block .h4 { font-size: 1.15rem; }

    .navbar-brand { margin-right: 0.35rem; }
    .site-header .navbar { padding: 0.5rem 0; }
    .navbar-toggler { padding: 0.35rem 0.5rem; }
    .navbar-collapse {
        background: var(--white);
        border-radius: var(--radius);
        margin: 0.25rem -0.25rem 0;
        padding: 0.5rem 0.75rem 0.75rem;
        box-shadow: var(--shadow-md);
        max-height: 70vh;
        overflow-y: auto;
    }
    .nav-link {
        padding: 0.6rem 0.5rem !important;
        font-size: 0.95rem;
    }
    .dropdown-menu { box-shadow: none; border: 1px solid #e2e8f0; }
    .mobile-nav-cta { width: 100%; flex-direction: column !important; }
    .mobile-nav-cta .btn { width: 100%; min-height: 44px; }

    .site-footer { text-align: center; }
    .site-footer .row > div { margin-bottom: 1.5rem; }
    .footer-social { justify-content: center; }
    .footer-logo-wrap { padding: 0.5rem 0.75rem; }

    .marquee-track span { font-size: 0.75rem; }
    .marquee-track { gap: 2rem; }

    .modal-dialog { margin: 0.75rem; }
    .modal-body { padding: 1.25rem; }

    .map-wrap iframe,
    iframe[title*="map"] {
        height: 220px !important;
        min-height: 220px;
    }

    /* Prevent horizontal overflow from long SEO button rows */
    .d-flex.flex-wrap.gap-2,
    .page-content .btn { max-width: 100%; }
    .page-content .btn { white-space: normal; text-align: left; }
    .row.g-2 .col-md-6 .border.rounded {
        font-size: 0.85rem;
        padding: 0.75rem !important;
    }
}

/* ── Tablet + Mobile shared (≤ 991px) ── */
@media (max-width: 991.98px) {
    :root { --header-h: 64px; }
    .hero-section { min-height: auto; overflow-x: clip; }
    .section-padding { padding: 3rem 0; }
    .section-dark::before { width: 300px; height: 300px; }
    .display-4 { font-size: clamp(1.65rem, 5vw, 2.25rem); }
    .hero-section h1 { overflow-wrap: break-word; word-wrap: break-word; }
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    .stat-item { min-width: 0 !important; width: 100%; }
    .process-step { padding: 1rem 0.5rem; }
    .glass-card { padding: 1.25rem !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
