/* =================================
   Global Styles & Reset
   ================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ef4444;
    --primary-dark: #dc2626;
    --primary-light: #f87171;
    --secondary-color: #1f2937;
    --accent-color: #000000;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    padding-top: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =================================
   Navigation Bar
   ================================= */

.navbar {
    background-color: #1f1f1f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-hidden {
    transform: translateY(-100%);
}

.navbar-dark {
    background-color: #140a0a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-light {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-light .nav-tagline {
    color: var(--text-dark);
}

.navbar-light .nav-menu a {
    color: var(--text-dark);
}

.navbar-light .nav-menu a:hover,
.navbar-light .nav-menu a.active {
    color: var(--primary-color);
}

.navbar-light .hamburger span {
    background-color: var(--text-dark);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.01rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    width: 200px;
    justify-content: center;
}

.logo-image {
    height: 100px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo-image:hover {
    opacity: 0.9;
}

/* Individual sizing for each logo to ensure they appear the same size */
.logo-light {
    height: 100px;
}

.logo-dark {
    height: 150px;
    margin-top: -25px;
    margin-bottom: -25px;
}

/* Show light logo (logo2.png) on dark navbar */
.navbar-dark .logo-light {
    display: block;
}

.navbar-dark .logo-dark {
    display: none;
}

/* Show dark logo (logo3.png) on light navbar */
.navbar-light .logo-light {
    display: none;
}

.navbar-light .logo-dark {
    display: block;
}

.nav-tagline {
    flex-grow: 1;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    transition: color 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    animation: smoothPopIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0s;
}

.logo-icon {
    font-size: 2rem;
    font-weight: bold;
}

.logo-text {
    color: #ffffff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-shrink: 0;
}

/* Pop-in animation for nav items - ONLY on home page */
.page-home .nav-menu li {
    opacity: 0;
    transform: scale(0.5);
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Staggered delays for each nav item - ONLY on home page */
.page-home .nav-menu li:nth-child(1) { animation-delay: 0.1s; }
.page-home .nav-menu li:nth-child(2) { animation-delay: 0.2s; }
.page-home .nav-menu li:nth-child(3) { animation-delay: 0.3s; }
.page-home .nav-menu li:nth-child(4) { animation-delay: 0.4s; }
.page-home .nav-menu li:nth-child(5) { animation-delay: 0.5s; }

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-10px);
    }
    70% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Smoother animation for tagline (no overshoot) */
@keyframes smoothPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.nav-menu a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s;
}

/* =================================
   Buttons
   ================================= */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-dark);
    color: white;
}

.btn-primary:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* White variant for dark backgrounds (like hero section) */
.hero .btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

.hero .btn-secondary:hover {
    background-color: #ffffff;
    color: var(--text-dark);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* =================================
   Hero Section
   ================================= */

.hero {
    background: 
        linear-gradient(135deg, rgba(48, 19, 19, 0.85) 0%, rgba(20, 10, 10, 0.9) 100%),
        url('HD-wallpaper-triangles-awesome-cool-math-red.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    padding: 15rem 30px 14rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(239, 68, 68, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #f3f4f6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 2.5rem auto 0;
    position: relative;
    z-index: 1;
}

.stat-card {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-card:hover {
    background-color: rgba(220, 38, 38, 0.15);
    transform: translateY(-5px);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.stat-card:hover .stat-number {
    color: #ffffff;
}

.stat-card:hover .stat-label {
    color: #f3f4f6;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #f9fafb;
    transition: color 0.4s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.stat-label {
    font-size: 1rem;
    color: #d1d5db;
    transition: color 0.4s ease;
}

/* =================================
   Section Styles
   ================================= */

.grade-levels {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

section {
    padding: 4rem 20px 6rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* =================================
   Why Choose Us Section
   ================================= */

.why-us {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border: 2px solid var(--primary-dark);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* =================================
   Subjects Section
   ================================= */

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.subject-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.subject-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.subject-card > p {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.subject-card ul {
    list-style: none;
    padding-left: 0;
}

.subject-card ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.subject-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* =================================
   Testimonials Section
   ================================= */

.testimonials {
    background-color: #202020;
}

.testimonials .section-title {
    color: #ffffff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-card .testimonial-text {
    color: #e5e7eb;
}

.testimonial-card .testimonial-author {
    color: #9ca3af;
}

.stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* =================================
   CTA Section
   ================================= */

.cta {
    background: var(--bg-white);
    color: var(--text-dark);
    text-align: center;
    padding: 8rem 0 8rem;
    border-top: 1px solid var(--border-color);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* =================================
   Footer
   ================================= */

.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 3rem 20px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #000000;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* =================================
   Page Header (for internal pages)
   ================================= */

.page-header {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 10rem 20px 4rem;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* =================================
   About Page Styles
   ================================= */

.our-story {
    padding: 4rem 20px;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.story-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.story-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.placeholder-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.image-placeholder p {
    font-size: 1.25rem;
    font-weight: 600;
}

.approach {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.approach-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.approach-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.approach-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.approach-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Tutors Section */

.tutors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tutor-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.tutor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tutor-avatar {
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto;
}

.tutor-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tutor-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.tutor-bio {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tutor-qualifications {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Values Section */

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

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* =================================
   Services Page Styles
   ================================= */

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.program-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.4);
}

.program-card.featured {
    border-color: var(--primary-color);
}

.program-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: #fecaca;
    color:var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.program-card h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.program-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.program-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.program-features {
    list-style: none;
    margin-bottom: 2rem;
}

.program-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.program-card .btn {
    width: 100%;
    text-align: center;
}

/* Accordion Styles */

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background-color: #d1d5db;
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #e5e7eb;
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.accordion-content p {
    padding: 1.5rem;
    background-color: var(--bg-light);
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.grade-content {
    padding: 1.5rem;
    background-color: var(--bg-light);
}

.grade-content h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.grade-content > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.grade-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.topics-grid {
    display: grid;
    gap: 1rem;
}

.topic-box {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
}

.topic-box h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.topic-box ul {
    list-style: none;
    padding-left: 0;
}

.topic-box ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.topic-box ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Special Programs */

.special-programs {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.special-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.special-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.special-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.special-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.special-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s;
    display: inline-block;
}

.link-arrow:hover {
    transform: translateX(5px);
}

/* How It Works */

.how-it-works {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Pricing Info */

.pricing-info {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.highlighted {
    border-color: var(--primary-color);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.pricing-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pricing-note {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
}

.pricing-disclaimer {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* =================================
   Contact Page Styles
   ================================= */

.contact-section {
    padding: 4rem 20px;
}

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

/* Contact Form */

.contact-form-container h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

/* Scheduled Class Time Field */
#class-schedule {
    background-color: #f0f9ff !important;
    border-color: #bae6fd !important;
    font-weight: 600;
    color: var(--primary-color);
    cursor: not-allowed;
}

#class-schedule:not(:placeholder-shown) {
    background-color: #fef2f2 !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Highlight pre-selected class field */
#subject.preselected {
    animation: highlightPulse 2s ease-in-out;
    background-color: #fef3c7 !important;
}

@keyframes highlightPulse {
    0%, 100% {
        background-color: #ffffff;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
    50% {
        background-color: #fef3c7;
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
    }
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    color: var(--text-light);
    font-weight: normal;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Contact Info */

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-info-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.info-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Office Hours */

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hours-item:last-child {
    border-bottom: none;
}

.day {
    color: var(--text-dark);
    font-weight: 600;
}

.time {
    color: var(--text-light);
}

.quick-contact {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

.quick-contact h3 {
    color: var(--text-dark);
}

.quick-contact p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* FAQ Section */

.faq-section {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-item {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Map Section */

.map-placeholder {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.map-content {
    max-width: 500px;
    margin: 0 auto;
}

.map-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.map-content h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.map-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.map-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* =================================
   Responsive Design
   ================================= */

@media (max-width: 1024px) {
    .nav-tagline {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-tagline {
        display: none;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: inherit;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        gap: 0;
    }
    
    .navbar-light .nav-menu {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-light .nav-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a.active::after {
        display: none;
    }
    
    /* Hero Section */
    .hero {
        background-attachment: scroll;
        padding: 12rem 20px 8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    /* Section Title */
    .section-title {
        font-size: 2rem;
    }
    
    /* Page Header */
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    /* Story Content */
    .story-content {
        grid-template-columns: 1fr;
    }
    
    /* Steps Container */
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }
    
    /* Contact Wrapper */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* Programs Grid */
    .programs-grid,
    .features-grid,
    .subjects-grid,
    .testimonials-grid,
    .special-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================
   Animations
   ================================= */

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

.feature-card,
.subject-card,
.testimonial-card,
.program-card,
.special-card {
    animation: fadeIn 0.6s ease-out;
}

/* =================================
   Timetable Page Styles
   ================================= */

.timetable-notice {
    background-color: var(--bg-light);
    padding: 3rem 0;
}

.notice-box {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.notice-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.notice-box p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.notice-box p:last-child {
    margin-bottom: 0;
}

.timetable-section {
    padding: 4rem 0;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(250, 250, 250, 0.92) 100%),
        url('bws-maths-tutoring.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.timetable-section.secondary {
    background: 
        linear-gradient(135deg, rgba(250, 250, 250, 0.92) 0%, rgba(255, 255, 255, 0.88) 100%),
        url('bws-maths-tutoring.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 2rem;
}

.timetable-group {
    margin-bottom: 3rem;
}

.timetable-heading {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

/* Reduce spacing between VCE subject headings and cards */
.subject-column .timetable-heading {
    margin-bottom: .5rem;
}

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

.subject-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timetable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.timetable-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.timetable-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.class-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.class-badge.units-12 {
    background-color: #dbeafe;
    color: #1e40af;
}

.class-badge.units-34 {
    background-color: #e9d5ff;
    color: #6b21a8;
}

.timetable-card h4 {
    color: var(--text-dark);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.class-details {
    margin: 1rem 0;
}

.class-time {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.class-info {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-light);
}

.class-status {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.class-status.available {
    background-color: #d1fae5;
    color: #065f46;
}

.class-status.full {
    background-color: #fee2e2;
    color: #991b1b;
}

.class-status.on-request {
    background-color: #fef3c7;
    color: #92400e;
}

.class-status.limited {
    background-color: #fecaca;
    color: #991b1b;
}

.timetable-footnote {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-style: italic;
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    width: 100%;
}

.one-on-one-info {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: .5px solid var(--border-color);
}

.info-card-large {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.info-card-large h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.info-card-large p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.features-inline {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.feature-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.feature-inline .icon {
    font-size: 1.5rem;
}

/* Form Row for Side-by-Side Inputs */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-intro {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.program-level {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.format-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 6px;
    font-size: 0.95rem;
}

.semester-classes {
    padding: 4rem 0;
    background: 
        linear-gradient(135deg, rgba(10, 25, 47, 0.92) 0%, rgba(15, 23, 42, 0.95) 100%),
        url('360_F_258947425_FdwXFXX5zxm5hqOi3vtZgpYJ7vbqqGHw.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    border-bottom: 3px solid var(--primary-color);
}

.semester-classes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.semester-classes .container {
    position: relative;
    z-index: 1;
}

.semester-classes .section-title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.semester-classes .section-subtitle {
    color: #e5e7eb;
}

/* Responsive Timetable Styles */
@media (max-width: 768px) {
    .timetable-subjects-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .timetable-grid {
        grid-template-columns: 1fr;
    }

    .features-inline {
        flex-direction: column;
        gap: 1rem;
    }

    .one-on-one-info {
        padding: 3rem 0;
    }

    .info-card-large h2 {
        font-size: 1.75rem;
    }

    .timetable-heading {
        font-size: 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
