﻿/* =========================
   Online Tuition - Premium Redesign
   ========================= */

/* Expand container width for this page */
.container {
    max-width: 1400px;
}

/* Hero Section */
.tuition-hero {
    position: relative;
    padding: var(--space-4xl) var(--space-xl) var(--space-3xl);
    background: linear-gradient(-45deg, #1a252f, #2c3e50, #1e3a2f, #2c3e50);
    background-size: 400% 400%;
    animation: heroGradient 15s ease infinite;
    overflow: hidden;
}

.tuition-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(var(--primary-color-rgb), 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(var(--primary-color-rgb), 0.06) 0%, transparent 40%);
    pointer-events: none;
}

@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) rotate(15deg) scale(1.2); opacity: 0.6; }
}

.tuition-hero .hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.tuition-hero .hero-particles .particle {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb), 0.08);
    color: rgba(var(--primary-color-rgb), 0.15);
    font-size: 1.1em;
    animation: particleFloat 8s ease-in-out infinite;
}

.tuition-hero .particle-1 { top: 10%; left: 8%; animation-delay: 0s; }
.tuition-hero .particle-2 { top: 20%; right: 10%; animation-delay: 1.5s; }
.tuition-hero .particle-3 { top: 60%; left: 5%; animation-delay: 3s; }
.tuition-hero .particle-4 { top: 70%; right: 8%; animation-delay: 4.5s; }
.tuition-hero .particle-5 { top: 40%; left: 15%; animation-delay: 6s; }
.tuition-hero .particle-6 { top: 30%; right: 18%; animation-delay: 2s; }

/* Hero Layout — text left / images right */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text-col {
    text-align: left;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    background: rgba(var(--primary-color-rgb), 0.15);
    border: 1px solid rgba(var(--primary-color-rgb), 0.25);
    color: var(--primary-light);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin: 0 0 var(--space-md);
    letter-spacing: -0.03em;
}


.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 var(--space-xl);
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.35);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.45);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
}

.trust-avatars {
    display: flex;
}

.trust-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #2c3e50;
    margin-left: -8px;
}

.trust-avatars img:first-child {
    margin-left: 0;
}

.hero-trust strong {
    color: var(--primary-light);
}

/* Right column — Hero Images */
.hero-images-col {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.hero-characters {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.hero-char {
    position: relative;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-main-char {
    width: 100%;
    height: 100%;
    min-height: 360px;
    max-height: 520px;
    object-fit: cover;
    object-position: center 30%;
    z-index: 1;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.35));
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero-main-char:hover {
    transform: scale(1.03);
}



/* Entrance Animations */
.animate-hero-text {
    opacity: 0;
    transform: translateX(-40px);
    animation: heroTextIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-hero-images {
    opacity: 0;
    transform: translateX(40px);
    animation: heroImagesIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes heroTextIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroImagesIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger children entrance */
.animate-hero-text .hero-badge-pill {
    opacity: 0;
    animation: fadeSlideUp 0.5s ease 0.3s forwards;
}

.animate-hero-text .hero-title {
    opacity: 0;
    animation: fadeSlideUp 0.5s ease 0.45s forwards;
}

.animate-hero-text .hero-subtitle {
    opacity: 0;
    animation: fadeSlideUp 0.5s ease 0.6s forwards;
}

.animate-hero-text .hero-actions {
    opacity: 0;
    animation: fadeSlideUp 0.5s ease 0.75s forwards;
}

.animate-hero-text .hero-trust {
    opacity: 0;
    animation: fadeSlideUp 0.5s ease 0.9s forwards;
}

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

.animate-hero-images .hero-main-char {
    opacity: 0;
    animation: charFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

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

.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    padding: var(--space-2xs) var(--space-sm);
    border-radius: var(--radius-full);
    background: rgba(var(--primary-color-rgb), 0.08);
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.stats-badge i {
    font-size: 0.75rem;
}

.stats-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tuition-stat-card {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid rgba(var(--primary-color-rgb), 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.tuition-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tuition-stat-card:hover::before {
    opacity: 1;
}

.tuition-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(var(--primary-color-rgb), 0.1);
    border-color: rgba(var(--primary-color-rgb), 0.18);
}

.stat-icon-wrap {
    width: 52px;
    height: 52px;
    margin: 0 auto var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1), rgba(var(--primary-color-rgb), 0.04));
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tuition-stat-card:hover .stat-icon-wrap {
    transform: scale(1.1);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 var(--space-2xs);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat-number .counter {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    margin: 0 0 var(--space-2xs);
    font-weight: 600;
}

.stat-desc {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    margin: 0;
    line-height: var(--line-height-relaxed);
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
}

.stats-review-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
    transition: opacity var(--transition-fast);
}

.stats-review-link:hover {
    opacity: 0.8;
}

.stats-review-link i {
    font-size: 0.7em;
    margin-left: 2px;
}

.stats-review-count {
    color: var(--text-light);
    font-weight: 500;
}

/* Section Base */
.section-subjects,
.section-teachers,
.section-fee,
.section-testimonials {
    padding: var(--space-lg) var(--space-xl);
}

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

/* Subjects + Stats side-by-side layout */
.subjects-stats-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-2xl);
    align-items: stretch;
}

.subjects-stats-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.subjects-stats-left .section-header {
    text-align: left;
    margin: 0 0 var(--space-lg);
}

.subjects-stats-left .subjects-grid {
    flex: 1;
    align-content: center;
}

.subjects-label {
    display: inline-block;
    padding: var(--space-2xs) var(--space-md);
    border-radius: var(--radius-full);
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.subjects-title-accent {
    color: var(--primary-color);
}

.subjects-stats-right {
    padding: var(--space-2xl) 0 var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    height: 100%;
}

.subjects-stats-right .subjects-stats-cards {
    flex: 1;
}

.subjects-stats-cards .tuition-stat-card {
    flex: 1;
}

.subjects-stats-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.2vw, 1.4rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.subjects-stats-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.subjects-stats-cards .tuition-stat-card {
    text-align: left;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
}

.subjects-stats-cards .tuition-stat-card:hover {
    transform: translateX(6px);
}

.subjects-stats-cards .stat-icon-wrap {
    margin: 0;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    font-size: var(--font-size-xl);
    border-radius: var(--radius-md);
}

.subjects-stats-cards .stat-number {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: 2px;
}

.subjects-stats-cards .stat-label {
    margin: 0;
    font-size: var(--font-size-base);
    font-weight: 600;
}

.subjects-stats-cards .stat-desc {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--text-light);
    margin: 2px 0 0;
    line-height: 1.4;
    opacity: 0.8;
}

.subjects-stats-right .stats-badge {
    margin-bottom: 0;
    align-self: flex-start;
}

.section-teachers {
    background: var(--white);
    position: relative;
}

.section-teachers::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(180deg, rgba(var(--primary-color-rgb), 0.04) 0%, transparent 100%);
    pointer-events: none;
}

.section-teachers .section-label {
    background: rgba(var(--primary-color-rgb), 0.08);
    border: none;
    padding: var(--space-2xs) var(--space-md);
    position: relative;
}

.section-teachers .section-label::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.4;
}

.section-fee {
    background: linear-gradient(180deg, #fafcfa 0%, #f0f5f0 100%);
    position: relative;
}

.section-fee .section-label {
    border: 1px dashed rgba(var(--primary-color-rgb), 0.3);
    background: transparent;
}

.section-testimonials {
    background: var(--white);
    overflow: hidden;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.section-label {
    display: inline-block;
    padding: var(--space-2xs) var(--space-md);
    border-radius: var(--radius-full);
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--space-sm);
    letter-spacing: -0.03em;
}

.fee-nowrap {
    white-space: nowrap;
}

.section-fee .section-header h2 {
    white-space: normal;
}

.section-header p {
    font-size: var(--font-size-base);
    color: var(--text-color);
    margin: 0;
    line-height: var(--line-height-relaxed);
}

/* Subjects Grid — Modern Green Card Grid */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.subject-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--primary-color-rgb), 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

/* Slide-in green accent bar on hover */
.subject-card-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 0 4px 4px 0;
}

.subject-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(var(--primary-color-rgb), 0.18);
    border-color: rgba(var(--primary-color-rgb), 0.35);
}

.subject-card:hover .subject-card-accent {
    transform: scaleY(1);
}

.subject-card-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(var(--primary-color-rgb), 0.22);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.subject-card:hover .subject-card-icon {
    transform: scale(1.08) rotate(-4deg);
}

.subject-card-icon:has(img) {
    background: transparent;
    box-shadow: none;
}

.subject-card-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.subject-card-body {
    flex: 1;
    min-width: 0;
}

.subject-card-body h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.subject-card-body p {
    font-size: var(--font-size-sm);
    color: var(--text-color);
    margin: 0;
    line-height: var(--line-height-relaxed);
    opacity: 0.85;
}

.subject-card-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 3px var(--space-sm);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.25);
}

.subjects-cta {
    margin-top: var(--space-2xl);
    text-align: center;
}

.subjects-cta p {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--text-light);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(var(--primary-color-rgb), 0.04);
    border-radius: var(--radius-full);
    border: 1px solid rgba(var(--primary-color-rgb), 0.08);
}

/* Teachers Carousel */
.teacher-card {
    flex: 0 0 320px;
    min-width: 280px;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
    position: relative;
}

.teacher-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb),0.15), rgba(var(--primary-color-rgb),0.04), rgba(var(--primary-color-rgb),0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.teacher-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07), 0 24px 48px rgba(var(--primary-color-rgb), 0.06);
    transform: translateY(-6px);
}

.teacher-image {
    position: relative;
    width: 100%;
    height: 180px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(var(--primary-color-rgb),0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(var(--primary-color-rgb),0.05) 0%, transparent 50%),
        linear-gradient(135deg, #f5faf5 0%, #eef7ee 50%, #f0faf0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.teacher-image::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: -10%;
    right: -10%;
    height: 28px;
    background: var(--white);
    border-radius: 50%;
    z-index: 2;
}

.teacher-image img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.2);
}

.teacher-photo-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-3xl);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--white);
    background: linear-gradient(135deg, #2196F3, #1565c0);
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.teacher-card:hover .teacher-photo-placeholder {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.25);
}

.teacher-online-badge {
    position: absolute;
    bottom: 16px;
    left: 50%;
    margin-left: 42px;
    z-index: 3;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 3px var(--white), 0 0 0 6px rgba(var(--primary-color-rgb), 0.12);
    animation: teacher-pulse 2s ease-in-out infinite;
}

@keyframes teacher-pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px rgba(var(--primary-color-rgb),0.12); }
    50% { box-shadow: 0 0 0 3px var(--white), 0 0 0 9px rgba(var(--primary-color-rgb),0.06); }
}

.teacher-info {
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
    position: relative;
}

.teacher-info > *:first-child {
    margin-top: 0;
}

.teacher-info h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--space-3xs);
    letter-spacing: -0.02em;
}

.teacher-role {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    padding: 2px var(--space-sm);
    border-radius: var(--radius-full);
    background: rgba(var(--primary-color-rgb), 0.08);
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.teacher-role::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-color);
}

.teacher-role.math {
    background: rgba(33, 150, 243, 0.08);
    color: #1565c0;
}

.teacher-role.math::before { background: #2196F3; }

.teacher-role.physics {
    background: rgba(156, 39, 176, 0.08);
    color: #6a1b9a;
}

.teacher-role.physics::before { background: #9c27b0; }

.teacher-role.chemistry {
    background: rgba(255, 87, 34, 0.08);
    color: #bf360c;
}

.teacher-role.chemistry::before { background: #ff5722; }

.teacher-role.biology {
    background: rgba(233, 30, 99, 0.08);
    color: #ad1457;
}

.teacher-role.biology::before { background: #e91e63; }

.teacher-role.english {
    background: rgba(255, 193, 7, 0.1);
    color: #c47f00;
}

.teacher-role.english::before { background: #ffc107; }

.teacher-meta {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    padding: var(--space-sm) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.teacher-meta span {
    font-size: var(--font-size-xs);
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
    flex: 1;
}

.teacher-meta span i {
    width: 14px;
    color: var(--primary-color);
    text-align: center;
}

.teacher-rating {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-bottom: var(--space-sm);
}

.teacher-rating i {
    color: #ffc107;
    font-size: 0.75rem;
}

.teacher-rating span {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-left: var(--space-2xs);
    background: rgba(255, 193, 7, 0.12);
    padding: 1px var(--space-2xs);
    border-radius: 4px;
}

.teacher-bio {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--text-color);
    margin: 0;
    opacity: 0.8;
    position: relative;
    padding-left: var(--space-sm);
    border-left: 2px solid rgba(var(--primary-color-rgb), 0.15);
}

.teacher-card:hover .teacher-bio {
    opacity: 1;
}

/* Carousel – Infinite Loop */
.carousel-wrapper {
    position: relative;
    max-width: 1300px;

    margin: 0 auto;
    overflow: visible;
}

.carousel-viewport {
    overflow: hidden;
    padding: 8px 0;
    position: relative;
    border-radius: var(--radius-lg);
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 4%,
        black 96%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 4%,
        black 96%,
        transparent 100%
    );
}

.carousel-track {
    display: flex;
    gap: var(--space-lg);
    width: max-content;
    will-change: transform;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: var(--white);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 6px 24px rgba(var(--primary-color-rgb), 0.4),
        0 2px 8px rgba(var(--primary-color-rgb), 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    pointer-events: auto;
}

.carousel-arrow::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    z-index: -1;
    filter: blur(14px);
    transition: opacity 0.3s ease;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.12);
    box-shadow:
        0 8px 36px rgba(var(--primary-color-rgb), 0.55),
        0 4px 12px rgba(var(--primary-color-rgb), 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.carousel-arrow:hover::after {
    opacity: 0.4;
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.92);
    box-shadow:
        0 3px 12px rgba(var(--primary-color-rgb), 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-arrow-left {
    left: -20px;
}

.carousel-arrow-right {
    right: -20px;
}

.carousel-pause {
    position: absolute;
    right: var(--space-lg);
    bottom: calc(var(--space-lg) * -1);
    z-index: 20;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(var(--primary-color-rgb), 0.3);
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-dark);
    cursor: pointer;
}
.carousel-pause:hover, .carousel-pause:focus-visible { background: var(--primary-color); color: var(--white); }

/* Seat Available Card */
/* Seat Available Cards */
.seat-available-card {
    border: none;
    background: linear-gradient(135deg, #fafffa 0%, var(--white) 100%);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.seat-available-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb),0.2), transparent 40%, rgba(var(--primary-color-rgb),0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.seat-available-card:hover::before {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb),0.35), rgba(var(--primary-color-rgb),0.1) 50%, rgba(var(--primary-color-rgb),0.2));
}

.seat-available-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 24px 48px rgba(var(--primary-color-rgb), 0.06);
    transform: translateY(-4px);
}

.seat-image {
    height: 180px;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(var(--primary-color-rgb),0.1) 0%, transparent 60%),
        linear-gradient(135deg, #f0faf0 0%, #eaf5ea 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    position: relative;
    overflow: hidden;
}

.seat-image::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 24px;
    background: var(--white);
    border-radius: 50% 50% 0 0;
    z-index: 2;
}

.seat-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1), rgba(var(--primary-color-rgb), 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    border: 1px solid rgba(var(--primary-color-rgb), 0.12);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    transform: rotate(-4deg);
}

.seat-available-card:hover .seat-icon-wrap {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.18), rgba(var(--primary-color-rgb), 0.08));
    border-color: rgba(var(--primary-color-rgb), 0.25);
    transform: rotate(0deg) scale(1.06);
}

.seat-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-dark));
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.25);
}

.seat-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--white);
    animation: seatPulse 2s ease-in-out infinite;
}

@keyframes seatPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

.seat-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
}

.seat-info h3 {
    color: var(--primary-dark);
    font-size: var(--font-size-lg);
    margin: 0;
    letter-spacing: -0.02em;
}

.seat-info .teacher-role {
    margin-bottom: 0;
}

.seat-info .teacher-bio {
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--text-light);
    border-left: none;
    padding-left: 0;
    padding: 0 var(--space-md);
}

/* Apply for Teaching Button – Primary CTA */
.seat-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
    padding: 12px var(--space-lg);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.25);
    position: relative;
    overflow: hidden;
}

.seat-apply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.seat-apply-btn:hover::before {
    left: 100%;
}

.seat-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.35);
}

.seat-apply-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(var(--primary-color-rgb), 0.2);
}

/* Hide old carousel controls */
.carousel-controls {
    display: none !important;
}

/* Fee Grid */
.fee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.fee-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: 3px solid transparent;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

.fee-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-light);
    border-top-color: var(--primary-color);
}

.fee-card.featured {
    border-color: var(--primary-color);
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(var(--primary-color-rgb), 0.12);
    position: relative;
    background: linear-gradient(180deg, #fafffa 0%, var(--white) 40%);
}

.fee-badge {
    display: inline-flex;
    align-self: center;
    padding: var(--space-2xs) var(--space-md);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.35);
    white-space: nowrap;
    margin-bottom: var(--space-md);
}

.fee-card h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.fee-card h3 i {
    color: var(--primary-color);
    font-size: 0.9em;
}

.fee-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.fee-currency {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-color);
}

.fee-amount {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
    line-height: 1;
}

.fee-amount.original {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-light);
    text-decoration: line-through;
    text-decoration-color: #e53935;
    opacity: 0.6;
    position: relative;
    line-height: 1.4;
}

.fee-amount.original::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 2px;
    background: #e53935;
    border-radius: 1px;
}

.fee-amount.discounted {
    color: #e53935;
    position: relative;
}

.fee-amount.discounted::before {
    content: '';
    position: absolute;
    top: -4px;
    right: -8px;
    width: 8px;
    height: 8px;
    background: #e53935;
    border-radius: 50%;
    opacity: 0.3;
}

.fee-period {
    font-size: var(--font-size-sm);
    color: var(--text-color);
}

.fee-desc {
    font-size: var(--font-size-sm);
    color: var(--text-color);
    margin: 0 0 var(--space-lg);
}

.fee-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
}

.fee-features li {
    font-size: var(--font-size-sm);
    color: var(--text-color);
    padding: var(--space-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.fee-features li i {
    color: var(--primary-color);
    font-size: 0.9em;
}

.btn-fee-cta {
    display: block;
    width: 100%;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-fee-cta:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.3);
}

button.btn-fee-cta {
    font-family: inherit;
}

.package-rows {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.package-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(var(--primary-color-rgb), 0.05);
    border: 1px solid rgba(var(--primary-color-rgb), 0.12);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
}

.package-row span {
    color: var(--text-color);
    font-weight: 500;
}

.package-row strong {
    color: var(--primary-dark);
    font-weight: 700;
    white-space: nowrap;
}

.fee-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    overflow-y: auto;
    background: rgba(26, 37, 47, 0.7);
    backdrop-filter: blur(4px);
}

.fee-modal.show {
    display: flex;
}

.fee-modal-content {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.fee-modal-content .section-label {
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.fee-modal-content h2 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 var(--space-xs);
}

.fee-modal-sub {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xl);
}

.fee-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    font-size: var(--font-size-lg);
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.fee-modal-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.fee-modal-table-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-dark);
    margin: var(--space-xl) 0 var(--space-sm);
}

.fee-modal-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.fee-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.fee-modal-table th,
.fee-modal-table td {
    text-align: left;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.fee-modal-table thead th {
    background: rgba(var(--primary-color-rgb), 0.08);
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--font-size-xs);
    letter-spacing: 0.05em;
}

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

.fee-modal-table tbody tr:hover {
    background: rgba(var(--primary-color-rgb), 0.04);
}

.fee-modal-table td strong {
    color: var(--primary-dark);
    white-space: nowrap;
}

.fee-modal-checklist {
    list-style: none;
    margin: 0 0 var(--space-lg);
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs) var(--space-lg);
}

.fee-modal-checklist li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-color);
    padding: var(--space-2xs) 0;
}

.fee-modal-checklist i {
    color: var(--primary-color);
    flex-shrink: 0;
}

.fee-modal-tagline {
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
}

.fee-modal-tagline i {
    color: var(--primary-color);
    margin-right: var(--space-2xs);
}

.fee-modal-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.fee-modal-actions .btn-fee-cta,
.fee-modal-actions .fee-modal-wa {
    flex: 1;
    min-width: 220px;
}

.fee-modal-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--primary-dark);
    border: 1px solid rgba(var(--primary-color-rgb), 0.35);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.fee-modal-wa:hover {
    background: rgba(var(--primary-color-rgb), 0.08);
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.2);
}

@media (max-width: 560px) {
    .fee-modal-content {
        padding: var(--space-xl) var(--space-md);
    }

    .fee-modal-checklist {
        grid-template-columns: 1fr;
    }

    .fee-modal-actions .btn-fee-cta,
    .fee-modal-actions .fee-modal-wa {
        min-width: 100%;
    }
}

.discount-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.discount-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

.discount-item:hover {
    background: rgba(var(--primary-color-rgb), 0.04);
    border-color: rgba(var(--primary-color-rgb), 0.2);
}

.discount-item.highlight {
    background: rgba(var(--primary-color-rgb), 0.06);
    border-color: var(--primary-color);
    border-style: dashed;
}

.discount-subjects {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark);
}

.discount-value {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--primary-color);
}

.schedule-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

.schedule-item:hover {
    background: rgba(var(--primary-color-rgb), 0.04);
    border-color: rgba(var(--primary-color-rgb), 0.2);
}

.schedule-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    font-size: var(--font-size-base);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.schedule-item:hover .schedule-icon {
    background: var(--primary-color);
    color: var(--white);
}

.schedule-details h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 var(--space-2xs);
}

.schedule-details p {
    font-size: var(--font-size-xs);
    color: var(--text-color);
    margin: 0;
}

.payment-methods h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 var(--space-sm);
}

.payment-icons {
    display: flex;
    gap: var(--space-md);
}

.payment-icons span {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: var(--font-size-lg);
    transition: all 0.25s ease;
}

.payment-icons span:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.06);
}

/* Testimonials Carousel */
.testimonials-multi-row {
    overflow: hidden;
    position: relative;
    padding: 0 var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    content-visibility: auto;
    contain-intrinsic-size: 1px 36rem;
}

.testimonials-track {
    display: flex;
    gap: var(--space-sm);
    width: max-content;
    align-items: center;
}

.testimonials-track.testimonials-animate {
    animation: testimonialScrollLeft 50s linear infinite;
}

.testimonials-track.testimonials-animate:hover {
    animation-play-state: paused;
}

.testimonials-track.testimonials-animate-reverse {
    animation: testimonialScrollRight 50s linear infinite;
    transform: translateX(-50%);
}

.testimonials-track.testimonials-animate-reverse:hover {
    animation-play-state: paused;
}

.testimonials-multi-row.testimonials-paused .testimonials-track { animation-play-state: paused; }
.testimonials-pause { display: block; margin: var(--space-lg) auto 0; padding: var(--space-xs) var(--space-md); border: 1px solid rgba(var(--primary-color-rgb), 0.3); border-radius: var(--radius-full); background: var(--white); color: var(--primary-dark); cursor: pointer; }
.testimonials-pause:hover, .testimonials-pause:focus-visible { background: var(--primary-color); color: var(--white); }

@keyframes testimonialScrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes testimonialScrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.testimonial-card {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.testimonial-card.testimonial-image-card {
    flex: 0 0 380px;
    padding: var(--space-sm);
    justify-content: center;
    align-items: center;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.testimonial-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

.testimonial-card-badge {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ff0000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(255,0,0,0.3);
}

.testimonial-image-card {
    position: relative;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 var(--space-2xs);
}

.testimonial-info span {
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

.testimonial-stars {
    margin-bottom: var(--space-sm);
    color: #ffc107;
    font-size: var(--font-size-sm);
}

.testimonial-stars i + i {
    margin-left: 2px;
}

.testimonial-text {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--text-color);
    margin: 0 0 var(--space-md);
    font-style: italic;
}

.testimonial-result {
    display: inline-block;
    padding: var(--space-2xs) var(--space-sm);
    border-radius: var(--radius-full);
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-dark);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

/* Registration Section */
.section-register {
    position: relative;
    padding: 0;
    background: linear-gradient(180deg, #1a252f 0%, #1e2d3d 40%, #1a252f 100%);
    overflow: hidden;
    scroll-margin-top: 68px;
}

.register-wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 2;
}

.register-wave-top svg {
    display: block;
    width: 100%;
    height: 80px;
}

.register-wave-bottom {
    position: relative;
    line-height: 0;
    z-index: 2;
}

.register-wave-bottom svg {
    display: block;
    width: 100%;
    height: 80px;
}

.register-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.register-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
}

.orb-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -5%;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    animation: orbFloat1 8s ease-in-out infinite;
}

.orb-2 {
    width: 250px;
    height: 250px;
    top: 40%;
    right: -3%;
    background: radial-gradient(circle, #2196F3, transparent 70%);
    animation: orbFloat2 10s ease-in-out infinite;
}

.orb-3 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 30%;
    background: radial-gradient(circle, #9c27b0, transparent 70%);
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 20px) scale(1.1); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -30px) scale(1.05); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -15px) scale(0.95); }
}

.register-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.section-register .container {
    position: relative;
    z-index: 3;
    padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
}

.register-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Toggle Buttons */
.enroll-toggle {
    display: flex;
    background: var(--bg-color);
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border-color);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.enroll-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.enroll-toggle-btn i {
    font-size: 1em;
}

.enroll-toggle-btn.active {
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.enroll-toggle-btn:hover:not(.active) {
    color: var(--text-dark);
}

/* Register Grid */
.register-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    align-items: stretch;
}

/* Sidebar Panels */
.register-sidebar {
    color: var(--white);
    padding-top: var(--space-xl);
}

.sidebar-panel {
    display: none;
}

.sidebar-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.register-sidebar .section-label {
    background: rgba(var(--primary-color-rgb), 0.2);
    color: var(--primary-light);
}

.register-sidebar h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--white);
    margin: var(--space-sm) 0 var(--space-md);
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.register-sidebar p {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 var(--space-xl);
    line-height: var(--line-height-relaxed);
}

.register-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-2xl);
}

.register-perks li {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-md) 0;
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    line-height: 1.5;
}

.register-perks li i {
    color: var(--primary-light);
    font-size: 1em;
    flex-shrink: 0;
    margin-top: 2px;
}

.register-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.trust-stars {
    display: flex;
    gap: 2px;
    color: #ffc107;
    font-size: var(--font-size-sm);
}

.register-trust-badge span {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
}

.register-trust-badge span a {
    color: var(--primary-light);
    text-decoration: underline;
    font-weight: 500;
    transition: opacity var(--transition-fast);
}

.register-trust-badge span a:hover {
    opacity: 0.8;
}

/* Teacher Quote */
.tutor-quote {
    background: rgba(var(--primary-color-rgb), 0.1);
    border-left: 3px solid var(--primary-light);
    padding: var(--space-md);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-top: var(--space-lg);
}

.tutor-quote p {
    font-size: var(--font-size-sm);
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
    line-height: var(--line-height-relaxed);
    margin: 0 0 var(--space-xs);
}

.tutor-quote span {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--primary-light);
}

/* Form Card */
.register-form-card {
    position: relative;
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.card-glow {
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--primary-light), var(--primary-color), transparent);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.5);
}

/* Form Panels (Student / Teacher) */
.form-panel {
    display: none;
}

.form-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Form Grid Columns */
.form-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

/* Form Styles */
.form-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.form-step-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-step-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--text-light);
    font-size: var(--font-size-sm);
    font-weight: 700;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.step-label {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-step-indicator.active .form-step-number {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.form-step-indicator.active .step-label {
    color: var(--text-dark);
}

.form-step-indicator.completed .form-step-number {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

.form-step-indicator.completed .step-label {
    color: var(--text-dark);
}

.step-connector {
    width: 32px;
    height: 2px;
    background: var(--border-color);
    border-radius: 1px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-step h3 i {
    color: var(--primary-color);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
}

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15);
}

.form-group textarea { min-height: 7rem; resize: vertical; line-height: var(--line-height); }
.form-group textarea::placeholder { color: var(--text-light); }
.checkbox-fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.checkbox-fieldset legend { margin-bottom: var(--space-2xs); font-size: var(--font-size-sm); font-weight: 500; color: var(--text-dark); }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #b3261e; }
.form-group-error { margin: 0; color: #b3261e; font-size: var(--font-size-xs); }

.form-group input::placeholder {
    color: var(--text-light);
}

.form-confirm {
    text-align: center;
    padding: var(--space-xl) 0;
}

.confirm-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    font-size: var(--font-size-3xl);
}

.form-confirm h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-dark);
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.form-confirm h3 i {
    display: none;
}

.form-confirm p {
    font-size: var(--font-size-sm);
    color: var(--text-color);
    margin: 0;
}

.confirm-note {
    display: inline-block;
    margin-top: var(--space-md);
    font-size: var(--font-size-xs);
    color: var(--text-light);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-color);
    border-radius: var(--radius-md);
}

.timing-notice {
    margin-top: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: var(--radius-lg);
}

.timing-notice-times {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-xl);
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.timing-notice-times i {
    color: var(--primary-color);
    margin-right: var(--space-2xs);
}

.timing-notice-warning {
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: 1.65;
    color: var(--text-color);
}

.timing-notice-warning i {
    color: #b26a00;
    margin-right: var(--space-2xs);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.form-actions-right {
    display: flex;
    gap: var(--space-sm);
    margin-left: auto;
}

.btn-form-prev,
.btn-form-next {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-form-prev {
    background: #5a6268;
    color: var(--white);
    border: 1px solid #5a6268;
}

.btn-form-prev:hover {
    background: var(--border-color);
}

.btn-form-next {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.btn-form-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.35);
}

.btn-form-submit {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.35);
}

.btn-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Status */
.form-status {
    margin-top: var(--space-md);
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-dark);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

.form-status.error {
    display: block;
    background: rgba(229, 57, 53, 0.06);
    color: #c62828;
    border: 1px solid rgba(229, 57, 53, 0.15);
}

.hidden {
    display: none !important;
}

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

/* =========================
   Register Section Responsive
   ========================= */

@media (max-width: 992px) {
    .fee-grid {
        gap: var(--space-md);
    }

    .register-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .register-sidebar {
        text-align: center;
        padding-top: var(--space-md);
    }

    .register-perks {
        display: inline-block;
        text-align: left;
    }

    .teacher-card {
        flex: 0 0 280px;
    }

    .subjects-grid {
        gap: var(--space-sm);
    }

    .subject-card {
        padding: var(--space-md) var(--space-lg);
        gap: var(--space-md);
    }

    .subject-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .subject-card-body h3 {
        font-size: var(--font-size-base);
    }

    .subjects-stats-layout {
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .carousel-arrow {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .carousel-arrow-left {
        left: 8px;
    }

    .carousel-arrow-right {
        right: 8px;
    }

    .tuition-hero {
        padding: var(--space-3xl) var(--space-md) var(--space-2xl);
    }

    .tuition-hero .hero-particles {
        display: none;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }

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

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 600px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .hero-characters {
        min-height: 0;
    }

    .hero-main-char {
        min-height: 280px;
        max-height: 400px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .tuition-stat-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: var(--space-md);
        padding: var(--space-md) var(--space-lg);
    }

    .stat-icon-wrap {
        margin: 0;
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .stat-number {
        margin: 0;
        font-size: var(--font-size-2xl);
    }

    .stat-label {
        margin: 0;
    }

    .stat-desc {
        display: none;
    }

    .section-subjects,
    .section-teachers,
    .section-fee,
    .section-testimonials {
        padding: var(--space-xl) var(--space-md);
    }

    .subjects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .subject-card {
        padding: var(--space-md);
        gap: var(--space-sm);
    }

    .subject-card-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .subject-card-body h3 {
        font-size: var(--font-size-base);
    }

    .subject-card-body p {
        font-size: var(--font-size-xs);
    }

    .subject-card-badge {
        font-size: 0.5rem;
        padding: 2px var(--space-xs);
    }

    .section-register .container {
        padding: var(--space-xl) var(--space-md) var(--space-xl);
    }

    .register-wave-top svg,
    .register-wave-bottom svg {
        height: 50px;
    }

    .teacher-card {
        flex: 0 0 calc(100% - 20px);
    }

    .testimonial-card {
        flex: 0 0 300px;
    }

    .testimonial-card.testimonial-image-card {
        flex: 0 0 340px;
    }

    /* Subjects + Stats stack vertically */
    .subjects-stats-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .subjects-stats-right {
        padding: var(--space-lg) 0;
    }

    .subjects-stats-cards {
        flex-direction: row;
        gap: var(--space-sm);
    }

    .subjects-stats-cards .tuition-stat-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md) var(--space-sm);
        gap: var(--space-sm);
        flex: 1;
        min-width: 0;
    }

    .subjects-stats-cards .stat-number {
        font-size: var(--font-size-xl);
        word-break: break-word;
    }

    .subjects-stats-cards .stat-label {
        font-size: var(--font-size-xs);
    }

    .subjects-stats-cards .stat-desc {
        display: none;
    }

    .subjects-stats-cards .stat-icon-wrap {
        margin: 0 auto;
    }

    .subjects-stats-cards .stat-number {
        text-align: center;
    }

    .form-grid,
    .form-grid.cols-3 {
        grid-template-columns: 1fr;
    }

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

    .step-label {
        display: none;
    }

    .form-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .form-actions button {
        width: 100%;
        justify-content: center;
    }

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

    .enroll-toggle {
        width: 100%;
        flex-direction: column;
        border-radius: var(--radius-lg);
    }

    .enroll-toggle-btn {
        justify-content: center;
    }

    .fee-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}



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

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-characters {
        min-height: 0;
    }

    .hero-main-char {
        min-height: 220px;
        max-height: 320px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-fee .section-header h2 {
        white-space: normal;
    }

    .register-form-card {
        padding: var(--space-lg);
    }

    .register-wave-top svg,
    .register-wave-bottom svg {
        height: 40px;
    }

    .register-orb {
        filter: blur(40px);
        opacity: 0.1;
    }

    .orb-1 {
        width: 200px;
        height: 200px;
    }

    .orb-2 {
        width: 150px;
        height: 150px;
    }

    .orb-3 {
        width: 120px;
        height: 120px;
    }

    .teacher-card {
        flex: 0 0 calc(100% - 20px);
    }

    /* Static layout on phones — disable carousel transforms/masks */
    .carousel-viewport {
        -webkit-mask-image: none;
        mask-image: none;
        overflow: visible;
    }

    .carousel-track {
        transform: none !important;
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: var(--space-md);
        padding: 4px;
    }

    .carousel-track .teacher-card {
        scroll-snap-align: start;
        flex: 0 0 85%;
    }

    .carousel-arrow {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 280px;
    }

    .testimonial-card.testimonial-image-card {
        flex: 0 0 300px;
    }

    .testimonials-multi-row {
        padding: 0;
    }

    .hero-badge-pill {
        font-size: 0.75rem;
        padding: var(--space-2xs) var(--space-md);
    }

    .hero-trust {
        flex-direction: column;
        gap: var(--space-sm);
    }

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

    .fee-card {
        padding: var(--space-lg);
    }

    .fee-amount {
        font-size: var(--font-size-2xl);
    }

    .section-header p {
        font-size: var(--font-size-sm);
    }

    .sidebar-panel {
        padding: var(--space-lg);
    }

    .form-panel {
        padding: var(--space-md);
    }

    .checkbox-group {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions .btn-hero-primary,
    .hero-actions .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    .teacher-image,
    .seat-image {
        height: 150px;
    }

    .teacher-image img {
        width: 90px;
        height: 90px;
    }

    .teacher-online-badge {
        bottom: 12px;
        margin-left: 32px;
        width: 12px;
        height: 12px;
    }

    .teacher-info {
        padding: var(--space-md) var(--space-md) var(--space-lg);
    }

    .seat-icon-wrap {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
        border-radius: 18px;
    }

    .seat-info {
        padding: var(--space-md) var(--space-md) var(--space-lg);
    }

    .subjects-grid {
        gap: var(--space-sm);
    }

    .subject-card {
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-sm);
    }

    .subject-card-icon {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .subject-card-body h3 {
        font-size: var(--font-size-sm);
    }

    .subject-card-body p {
        font-size: var(--font-size-xs);
        line-height: 1.4;
    }

    .subject-card-badge {
        font-size: 0.45rem;
        padding: 1px var(--space-xs);
    }

    .subjects-cta p {
        border: none;
        background: transparent;
        padding: 0;
    }

    .subjects-stats-cards {
        flex-direction: column;
    }

    .subjects-stats-heading {
        font-size: var(--font-size-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
}

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

    .hero-characters {
        min-height: 0;
    }

    .hero-main-char {
        min-height: 180px;
        max-height: 260px;
    }

    .subjects-grid {
        gap: var(--space-xs);
    }

    .subject-card {
        padding: var(--space-xs) var(--space-sm);
        gap: var(--space-xs);
    }

    .subject-card-icon {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .subject-card-body h3 {
        font-size: var(--font-size-xs);
        margin-bottom: 2px;
    }

    .subject-card-body p {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    .subject-card-badge {
        font-size: 0.4rem;
        padding: 1px 5px;
    }

    /* Static layout — disable carousel */
    .carousel-viewport {
        -webkit-mask-image: none;
        mask-image: none;
        overflow: visible;
    }

    .carousel-track {
        transform: none !important;
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: var(--space-sm);
        padding: 4px;
    }

    .carousel-track .teacher-card {
        scroll-snap-align: start;
        flex: 0 0 85%;
    }

    .carousel-arrow {
        display: none;
    }
}

/* =========================
   Become a Tutor Section
   ========================= */

.section-tutor {
    padding: var(--space-3xl) var(--space-xl);
    background: var(--bg-color);
    position: relative;
}

.tutor-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-2xl);
    max-width: 1300px;
    margin: 0 auto;
    align-items: start;
}

.tutor-info-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-small);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.tutor-info-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb),0.12), rgba(var(--primary-color-rgb),0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.tutor-info-card h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 var(--space-md);
}

.tutor-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
}

.tutor-benefits li {
    font-size: var(--font-size-sm);
    color: var(--text-color);
    line-height: var(--line-height-relaxed);
    padding: var(--space-xs) 0;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.tutor-benefits li i {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.tutor-testimonial {
    background: rgba(var(--primary-color-rgb),0.04);
    border-left: 3px solid var(--primary-color);
    padding: var(--space-md);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.tutor-testimonial p {
    font-size: var(--font-size-sm);
    font-style: italic;
    color: var(--text-color);
    line-height: var(--line-height-relaxed);
    margin: 0 0 var(--space-sm);
}

.tutor-testimonial span {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-dark);
}

/* Tutor Form Card */
.tutor-form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-small);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.tutor-form-card .card-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-color-rgb),0.06), transparent);
    pointer-events: none;
}

.tutor-form-card h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 var(--space-2xs);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.tutor-form-card h3 i {
    color: var(--primary-color);
}

.tutor-form-desc {
    font-size: var(--font-size-sm);
    color: var(--text-color);
    margin: 0 0 var(--space-lg);
    line-height: var(--line-height-relaxed);
}

/* Tutor Form Grid */
.tutor-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.tutor-form-grid .full-width {
    grid-column: 1 / -1;
}

.required {
    color: #e53935;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--text-color);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* File Upload */
.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
}

.file-upload-wrapper input[type="file"] {
    padding: var(--space-sm);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(var(--primary-color-rgb),0.03);
    font-size: var(--font-size-sm);
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.file-upload-wrapper input[type="file"]:hover {
    border-color: var(--primary-light);
}

.file-upload-hint {
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

/* Textarea */
.tutor-form-grid textarea {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.tutor-form-grid textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15);
}

.tutor-form-grid textarea::placeholder {
    color: var(--text-light);
}

/* Submit Button */
.tutor-form-actions {
    margin-top: var(--space-lg);
    text-align: center;
}

.btn-tutor-submit {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    font-size: var(--font-size-base);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-tutor-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.35);
}

.btn-tutor-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Status Messages */
.tutor-form-status {
    margin-top: var(--space-md);
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    display: none;
}

.tutor-form-status.success {
    display: block;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-dark);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

.tutor-form-status.error {
    display: block;
    background: rgba(229, 57, 53, 0.06);
    color: #c62828;
    border: 1px solid rgba(229, 57, 53, 0.15);
}

/* =========================
   FAQ Section
   ========================= */
.section-faq {
    padding: var(--space-2xl) 0 var(--space-5xl);
    background: var(--white);
}

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

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(var(--primary-color-rgb), 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(var(--primary-color-rgb), 0.3);
    box-shadow: var(--shadow-small);
}

.faq-item summary {
    padding: var(--space-lg) var(--space-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item[open] {
    border-color: rgba(var(--primary-color-rgb), 0.25);
    box-shadow: var(--shadow-small);
}

.faq-item p {
    padding: 0 var(--space-xl) var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .faq-item summary {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--font-size-sm);
    }
    .faq-item p {
        padding: 0 var(--space-lg) var(--space-md);
        font-size: var(--font-size-xs);
    }
}

/* =========================
   Copy Rewrite Additions
   ========================= */

/* Subject card badges - Enrolling Now (green) */
.subject-card-badge.enrolling {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 2px 12px rgba(var(--primary-color-rgb), 0.35);
    animation: badgePulse 2s ease-in-out infinite;
}

/* Subject card badges - Launching Soon (amber) */
.subject-card-badge.launching {
    background: linear-gradient(135deg, #FF9800, #E65100);
    color: #fff;
    box-shadow: 0 2px 12px rgba(255, 152, 0, 0.3);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Hero trust strip - text-based */
.hero-trust-text {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-top: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    border-left: 3px solid var(--primary-color);
    background: rgba(var(--primary-color-rgb),0.06);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hero-trust-text strong {
    color: var(--primary-light);
}

/* Stats footer CTA */
.stats-footer-cta {
    margin-top: var(--space-lg);
    text-align: center;
}

.stats-youtube-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255,0,0,0.08);
    border: 1px solid rgba(255,0,0,0.2);
    border-radius: var(--radius-full);
    color: #ff4444;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.stats-youtube-link:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,0,0,0.3);
}

/* Subjects waitlist link */
.subjects-waitlist-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.subjects-waitlist-link:hover {
    gap: var(--space-sm);
    color: var(--primary-dark);
}

/* Teacher growing faculty card */
.teacher-growing-card {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    border: 1px solid rgba(var(--primary-color-rgb),0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 300px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.teacher-growing-content {
    padding: var(--space-xl);
    text-align: center;
    width: 100%;
}

.teacher-growing-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb),0.1);
    color: var(--primary-color);
    font-size: var(--font-size-xl);
}

.teacher-growing-content h3 {
    font-size: var(--font-size-lg);
    color: #fff;
    margin-bottom: var(--space-sm);
}

.teacher-growing-content p {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.teacher-growing-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

.growing-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.growing-btn-teach {
    background: rgba(var(--primary-color-rgb),0.12);
    border: 1px solid rgba(var(--primary-color-rgb),0.35);
    color: var(--primary-light);
}

.growing-btn-teach:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb),0.3);
}

.growing-btn-join {
    background: rgba(33,150,243,0.12);
    border: 1px solid rgba(33,150,243,0.35);
    color: #64b5f6;
}

.growing-btn-join:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33,150,243,0.3);
}

/* Teacher watch link */
.teacher-watch-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary-color);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-decoration: none;
    margin-top: var(--space-xs);
    transition: color 0.3s ease;
}

.teacher-watch-link:hover {
    color: var(--primary-dark);
}

/* Founding-batch fee badge */
.fee-badge.founding {
    background: linear-gradient(135deg, #FF9800, #E65100);
    color: #fff;
    font-size: 0.6rem;
}

/* Fee free trial */
.fee-free-trial {
    text-align: center;
    padding: var(--space-sm);
    margin: var(--space-sm) 0;
    background: rgba(var(--primary-color-rgb),0.06);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    color: var(--primary-color);
    font-weight: 600;
}

.fee-free-trial i {
    margin-right: var(--space-xs);
}

/* Fee founding desc */
.founding-desc {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    line-height: 1.5;
}

.founding-desc strong {
    color: var(--primary-color);
}

/* Fee refund link */
.fee-refund-link {
    margin-top: var(--space-md);
    text-align: center;
}

.fee-refund-link a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.fee-refund-link a:hover {
    color: var(--primary-color);
}

/* Fee sibling note */
.fee-sibling-note {
    text-align: center;
    margin-top: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

.fee-sibling-note i {
    color: var(--primary-color);
}

/* Register CTA row */
.register-cta-row {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.register-cta-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.register-cta-youtube {
    background: #ff0000;
    border: 1px solid #ff0000;
    color: var(--white);
}

.register-cta-youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: #fff !important;
    transform: translateY(-2px);
}

.register-cta-wa {
    background: #128c7e;
    border: 1px solid #128c7e;
    color: var(--white);
}

.register-cta-wa:hover {
    background: #128c7e;
    border-color: #128c7e;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Testimonial placeholder */
/* Testimonial section header link */
.section-testimonials .section-header p a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.section-testimonials .section-header p a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .register-cta-row {
        flex-direction: column;
    }
    .teacher-growing-actions {
        flex-direction: column;
    }
    .growing-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .teacher-growing-content {
        padding: var(--space-lg);
    }
}

/* Anchor target for hash links */
.anchor-target {
    display: block;
    height: 0;
    width: 0;
    visibility: hidden;
    position: relative;
    top: -100px;
}
