/* ============================================
   Combined Mathematics Portal — Teal & White Theme
   Complete Redesign — Minimal, Fresh, Professional
   ============================================ */

/* ----- Custom Properties ----- */
:root {
    --teal-900: #0d4f4f;
    --teal-800: #106060;
    --teal-700: #147373;
    --teal-600: #1a8a8a;
    --teal-500: #26a1a1;
    --teal-50: #e8f5f5;
    --teal-10: #f0fafa;
    
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --accent: #0d4f4f;
    --accent-hover: #147373;
    --accent-light: #e8f5f5;
    
    --success: #059669;
    --error: #dc2626;
    
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* ----- Reset ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ----- Utility ----- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

.section {
    padding: 100px 0;
}

.section-header {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.05rem;
    line-height: 1.7;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--teal-10);
    color: var(--teal-800);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    line-height: 1;
}

.btn-primary {
    background: var(--teal-900);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--teal-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 79, 79, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--teal-900);
    border: 1.5px solid var(--teal-900);
}

.btn-outline:hover {
    background: var(--teal-900);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    border: 1.5px solid var(--gray-200);
}

.btn-ghost:hover {
    border-color: var(--gray-400);
    color: var(--gray-900);
}.btn-pill {
    border-radius: 50px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.w-full { width: 100%; }

/* ============================================
   PRELOADER
   ============================================ */
.preloader-overlay {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.4s ease, visibility 0.4s;
    opacity: 1;
    visibility: visible;
}

.preloader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.preloader-spinner {
    width: 36px;
    height: 36px;
    border: 2.5px solid var(--gray-200);
    border-top-color: var(--teal-900);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.preloader-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-400);
    letter-spacing: 0.03em;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-logo {
    height: 36px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex: 1;
    margin: 0 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-500);
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--teal-900);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-900);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--gray-700);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--teal-10);
    color: var(--teal-900);
}

.mobile-menu-toggle i {
    width: 20px;
    height: 20px;
}

/* ----- Mobile Drawer ----- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.open { right: 0; }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.drawer-header .logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.close-drawer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition);
}

.close-drawer:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.close-drawer i { width: 18px; height: 18px; }

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer-link {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.drawer-link:hover,
.drawer-link.active {
    background: var(--teal-10);
    color: var(--teal-900);
}

.drawer-btn {
    margin-top: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: var(--teal-900);
    color: var(--white);
    font-weight: 600;
    text-align: center;
}

.drawer-btn:hover {
    background: var(--teal-700);
    color: var(--white);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding: 130px 0 90px;
    background: radial-gradient(circle at 80% 20%, rgba(38, 161, 161, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(13, 79, 79, 0.05) 0%, transparent 40%),
                linear-gradient(180deg, var(--teal-10) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

/* Floating Math Formulas Background */
.hero-math-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.math-formula {
    position: absolute;
    font-family: 'Cambria Math', 'STIX Two Math', 'Times New Roman', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(13, 79, 79, 0.16);
    user-select: none;
    white-space: nowrap;
    animation: floatFormula 10s ease-in-out infinite alternate;
}

.formula-1 { top: 12%; left: 4%; font-size: 1.3rem; animation-duration: 9s; }
.formula-2 { top: 22%; right: 6%; font-size: 1.2rem; animation-duration: 11s; }
.formula-3 { top: 58%; left: 3%; font-size: 1.25rem; animation-duration: 8.5s; }
.formula-4 { bottom: 12%; right: 8%; font-size: 1.1rem; animation-duration: 12s; }
.formula-5 { top: 76%; left: 24%; font-size: 1.4rem; animation-duration: 10.5s; }
.formula-6 { top: 16%; right: 34%; font-size: 1.15rem; animation-duration: 9.5s; opacity: 0.8; }
.formula-7 { bottom: 20%; left: 46%; font-size: 1.1rem; animation-duration: 11.5s; }
.formula-8 { top: 44%; right: 48%; font-size: 1.25rem; animation-duration: 13s; }
.formula-9 { bottom: 32%; right: 30%; font-size: 1.15rem; animation-duration: 10s; }

@keyframes floatFormula {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.14; }
    50% { transform: translateY(-14px) rotate(2deg); opacity: 0.22; }
    100% { transform: translateY(6px) rotate(-1.5deg); opacity: 0.16; }
}

.hero-container-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.hero-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--teal-800);
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--teal-500);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.3); }
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--gray-900);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-content h1 em {
    font-style: normal;
    color: var(--teal-900);
    position: relative;
    display: inline-block;
}

.hero-content h1 em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--teal-500);
    border-radius: 3px;
    opacity: 0.35;
}

.hero-content .lead {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-ctas .btn {
    padding: 12px 28px;
    font-size: 0.95rem;
}

/* Hero Stats Bar */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--teal-900);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--gray-200);
}

/* Hero Teacher Image Card */
.hero-img-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.teacher-hero-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.teacher-hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(38, 161, 161, 0.3) 0%, rgba(13, 79, 79, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 0.9; }
}

.teacher-hero-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: 0 20px 45px rgba(13, 79, 79, 0.16);
    background: var(--gray-100);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.teacher-hero-card:hover .teacher-hero-frame {
    transform: translateY(-4px);
    box-shadow: 0 25px 55px rgba(13, 79, 79, 0.22);
}

.teacher-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.teacher-hero-card:hover .teacher-hero-img {
    transform: scale(1.05);
}

/* Floating Badges */
.hero-floating-badge {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px;
    padding: 10px 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.hero-floating-badge:hover {
    transform: scale(1.04);
}

.badge-top-left {
    top: 6%;
    left: -24px;
    animation: floatBadge1 6s ease-in-out infinite alternate;
}

.badge-bottom-right {
    bottom: 6%;
    right: -24px;
    animation: floatBadge2 7s ease-in-out infinite alternate;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--teal-50);
    color: var(--teal-900);
    border-radius: 10px;
}

.badge-icon i {
    width: 20px;
    height: 20px;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.badge-text span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
}

@keyframes floatBadge1 {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@keyframes floatBadge2 {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* ============================================
   TEACHERS / LECTURERS SECTION
   ============================================ */
.teachers-section {
    background: var(--white);
}

.stream-category-header {
    text-align: center;
    margin-bottom: 32px;
    margin-top: 20px;
}

.stream-category-header h3 {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    position: relative;
    padding-bottom: 8px;
}

.stream-category-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: var(--teal-500);
    border-radius: 2px;
    opacity: 0.4;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.teacher-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.teacher-card:hover {
    border-color: var(--teal-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.teacher-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}

.teacher-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.teacher-card:hover .teacher-image {
    transform: scale(1.03);
}

.teacher-info {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.teacher-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.teacher-subject {
    display: inline-block;
    background: var(--teal-10);
    color: var(--teal-800);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.btn-teacher-details {
    display: inline-block;
    border: 1.5px solid var(--teal-900);
    color: var(--teal-900);
    background: transparent;
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-teacher-details:hover {
    background: var(--teal-900);
    color: var(--white);
}

/* ----- Skeleton Loading ----- */
.skeleton {
    pointer-events: none;
    user-select: none;
}

.skeleton-img {
    background: var(--gray-200);
    position: relative;
    overflow: hidden;
}

.skeleton-text {
    background: var(--gray-200);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton-title {
    width: 140px;
    height: 18px;
    margin-bottom: 12px;
}

.skeleton-sub {
    width: 90px;
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-btn {
    width: 110px;
    height: 32px;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
    margin-top: 14px;
    position: relative;
    overflow: hidden;
}

.skeleton::after,
.skeleton-img::after,
.skeleton-text::after,
.skeleton-btn::after,
.skeleton-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* ----- Class Card Grid & Skeleton Loading ----- */
.classes-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.class-skeleton-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    min-height: 230px;
}

.skeleton-badge-placeholder {
    width: 120px;
    height: 24px;
    border-radius: 4px;
    background: var(--gray-200);
    position: relative;
    overflow: hidden;
}

.skeleton-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.skeleton-line-placeholder {
    height: 16px;
    border-radius: 4px;
    background: var(--gray-200);
    position: relative;
    overflow: hidden;
}
.skeleton-line-placeholder.w-80 { width: 85%; }
.skeleton-line-placeholder.w-60 { width: 65%; }
.skeleton-line-placeholder.w-40 { width: 45%; }

.skeleton-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.skeleton-btn-placeholder {
    height: 34px;
    flex: 1;
    border-radius: var(--radius-sm);
    background: var(--gray-200);
    position: relative;
    overflow: hidden;
}

.skeleton-icon-placeholder {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--gray-200);
    position: relative;
    overflow: hidden;
}

/* ============================================
   REVIEWS SECTION (AUTO-SCROLL)
   ============================================ */
.reviews-section {
    background: var(--gray-50);
    padding: 80px 0 0;
    overflow: hidden;
}

.reviews-outer {
    width: 100%;
    overflow: hidden;
    margin-top: 48px;
    padding-bottom: 60px;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.reviews-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scrollReviews 40s linear infinite;
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes scrollReviews {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    width: 290px;
    min-height: 360px;
    flex-shrink: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 24px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: box-shadow 0.25s, transform 0.25s;
    cursor: default;
    user-select: none;
}

.review-card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.review-stars {
    font-size: 1.1rem;
    color: #f59e0b;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.83rem;
    color: var(--gray-600);
    line-height: 1.7;
    flex: 1;
    font-style: italic;
    margin: 0;
    overflow: hidden;
    max-height: 11.5em;
    transition: max-height 0.35s ease;
}

.review-card.expanded .review-text {
    max-height: 1000px;
}

.read-more-btn {
    align-self: flex-start;
    border: none;
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: -2px;
}

.read-more-btn:hover {
    background: rgba(16, 185, 129, 0.18);
    transform: translateY(-1px);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-author strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gray-900);
}

.review-author span {
    display: block;
    font-size: 0.76rem;
    color: var(--gray-400);
    margin-top: 2px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--gray-500);
    margin-bottom: 36px;
    font-size: 1rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--teal-10);
    color: var(--teal-800);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.contact-icon i {
    width: 18px;
    height: 18px;
}

.contact-item h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--gray-900);
}

.contact-item p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ----- Form Card ----- */
.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    position: relative;
}

.form-card h3 {
    font-size: 1.35rem;
    margin-bottom: 28px;
    color: var(--gray-900);
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-900);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(13, 79, 79, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.error-msg {
    color: var(--error);
    font-size: 0.78rem;
    display: none;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: var(--error);
}

.form-group.has-error .error-msg {
    display: block;
}

.btn-submit {
    height: 48px;
    width: 100%;
}

.form-success-alert {
    position: absolute;
    inset: 0;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 5;
    border-radius: var(--radius-lg);
}

.form-success-alert.show {
    opacity: 1;
    pointer-events: auto;
}

.success-icon {
    width: 56px;
    height: 56px;
    color: var(--success);
    margin-bottom: 20px;
}

.form-success-alert h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.form-success-alert p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 64px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-logo-container {
    display: inline-block;
    background: var(--white);
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    width: 72px;
    height: 72px;
    overflow: hidden;
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.footer-brand p {
    max-width: 320px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--gray-400);
}

.footer-links h4,
.footer-socials h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: var(--gray-400);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--teal-900);
    color: var(--white);
    transform: translateY(-2px);
}

.social-icons a svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--gray-500);
}

.footer-bottom a {
    color: var(--teal-500);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--teal-300);
}

/* ============================================
   TEACHER MODAL
   ============================================ */
.teacher-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.teacher-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.teacher-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

.teacher-modal-content {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.teacher-modal.open .teacher-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.teacher-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition);
    z-index: 10;
}

.teacher-modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
    transform: rotate(90deg);
}

.teacher-modal-close i {
    width: 18px;
    height: 18px;
}

.teacher-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.modal-columns {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
}

.modal-img-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.modal-teacher-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    color: var(--gray-900);
}

.modal-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--gray-100);
}

.modal-teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-img-col .teacher-subject {
    background: var(--teal-10);
    color: var(--teal-800);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 100px;
}

.modal-classes-col {
    overflow-y: auto;
    padding-right: 8px;
}

.modal-classes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.modal-class-box {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition);
    border-left: 3px solid var(--teal-900);
}

.modal-class-box:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
    border-left-color: var(--teal-500);
}

.class-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}

.class-title-badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-900);
    background: var(--gray-100);
    padding: 3px 10px;
    border-radius: 4px;
}

.class-box-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.class-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--gray-600);
}

.class-detail-item i {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
    flex-shrink: 0;
}

.detail-label {
    font-weight: 500;
    color: var(--gray-400);
    min-width: 80px;
    font-size: 0.82rem;
}

.detail-value {
    font-weight: 600;
    color: var(--gray-800);
}

.class-fees-item {
    border-top: 1px dashed var(--gray-200);
    padding-top: 10px;
    margin-top: 2px;
}

.class-fees-item .price-tag {
    font-size: 1rem;
    font-weight: 700;
    color: var(--teal-900);
}

.class-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.btn-class-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--teal-900);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

.btn-class-whatsapp:hover {
    background: var(--teal-700);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-qr-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-qr-icon:hover {
    border-color: var(--teal-500);
    color: var(--teal-900);
    background: var(--teal-10);
}

/* ============================================
   QR MODAL
   ============================================ */
.qr-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.qr-modal-overlay.open {
    display: flex;
    animation: qrFadeIn 0.2s ease;
}

@keyframes qrFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.qr-modal-wrapper {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 90vw;
    animation: qrScaleIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes qrScaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.qr-info-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 32px;
    background: var(--gray-50);
    min-width: 240px;
    justify-content: center;
}

.qr-info-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 2px;
}

.qr-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.qr-info-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--teal-800);
    box-shadow: var(--shadow-sm);
}

.qr-info-icon i {
    width: 14px;
    height: 14px;
}

.qr-info-key {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1px;
}

.qr-info-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
}

.qr-info-fee {
    border-top: 1px dashed var(--gray-200);
    padding-top: 12px;
    margin-top: -2px;
}

.qr-price-tag {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--teal-900);
}

.qr-modal-divider {
    width: 1px;
    background: var(--gray-200);
    flex-shrink: 0;
}

.qr-modal-card {
    background: var(--white);
    padding: 28px 36px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    min-width: 280px;
}

.qr-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.qr-modal-close:hover {
    background: var(--gray-900);
    border-color: var(--gray-900);
    color: var(--white);
    transform: rotate(90deg);
}

.qr-modal-close i {
    width: 16px;
    height: 16px;
}

.qr-modal-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    text-align: center;
}

.qr-modal-canvas {
    width: 220px;
    height: 220px;
    border-radius: 8px;
    display: block;
    border: 1px solid var(--gray-100);
}

.qr-modal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--teal-900);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

.qr-modal-link:hover {
    background: var(--teal-700);
    color: var(--white);
    transform: translateY(-1px);
}

.qr-modal-footer {
    font-size: 0.7rem;
    color: var(--gray-400);
    text-align: center;
    margin-top: 4px;
    border-top: 1px solid var(--gray-100);
    padding-top: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.qr-dev-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.qr-dev-logo {
    height: 18px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.lightbox-close:hover { opacity: 1; }

.lightbox-close i {
    width: 28px;
    height: 28px;
}

.lightbox-img {
    max-width: 85%;
    max-height: 75%;
    border-radius: var(--radius-sm);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.open .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-top: 20px;
}

/* ============================================
   FLOATING CREDIT CAPSULE
   ============================================ */
.credit-capsule {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.credit-capsule:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-300);
}

.credit-logo {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1.5px solid var(--teal-500);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .hero-container-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text-col {
        align-items: center;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .badge-top-left {
        left: 0;
        top: 2%;
    }
    
    .badge-bottom-right {
        right: 0;
        bottom: 2%;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .section {
        padding: 80px 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-container {
        height: 60px;
        padding: 0 16px;
    }
    
    .nav-logo {
        height: 32px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .btn-contact-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-ctas .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .teachers-grid {
        grid-template-columns: minmax(0, 340px);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .form-card {
        padding: 24px 20px;
    }
    
    .modal-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .modal-classes-container {
        grid-template-columns: 1fr;
    }
    
    .modal-img-wrapper {
        max-width: 160px;
    }
    
    .teacher-modal-content {
        max-height: 90vh;
        border-radius: var(--radius-md);
    }
    
    .teacher-modal-body {
        padding: 24px 20px;
    }
    
    .qr-modal-wrapper {
        flex-direction: column;
        width: calc(100% - 32px);
        max-width: 340px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .qr-info-card {
        padding: 20px;
        min-width: 0;
    }
    
    .qr-modal-divider {
        width: 100%;
        height: 1px;
    }
    
    .qr-modal-card {
        padding: 20px;
        min-width: 0;
    }
    
    .qr-modal-canvas {
        width: 180px;
        height: 180px;
    }
    
    .credit-capsule {
        bottom: 12px;
        left: 12px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content .lead {
        font-size: 0.92rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .mobile-drawer {
        width: 100%;
        right: -100%;
    }
    
    .mobile-drawer.open {
        right: 0;
    }
}