/* 
Color Palette:
- Primary: #2a9d8f (Pastel Green)
- Secondary: #264653 (Dark Blue)
- Accent Colors (complementary palette):
  - Coral/Pink: #ff8a95
  - Yellow/Gold: #ffc857
  - Purple/Lavender: #a8b4e8
  - Peach: #ffb3a7
  - Sky Blue: #7fb3d3
  - Mint: #a8e6cf
- Background: #f8f9fa (Light Gray)
- White: #ffffff
- Text: #333333
*/

/* CSS Custom Properties for Color Management */
:root {
    --color-primary: #2a9d8f;
    --color-secondary: #264653;
    --color-coral: #ff8a95;
    --color-yellow: #ffc857;
    --color-purple: #a8b4e8;
    --color-peach: #ffb3a7;
    --color-blue: #7fb3d3;
    --color-mint: #a8e6cf;
    --color-background: #f8f9fa;
    --color-text: #333333;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Advanced Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f8f9fa;
    background-image: 
        linear-gradient(to bottom, transparent 0%, transparent 19px, rgba(42, 157, 143, 0.15) 19px, rgba(42, 157, 143, 0.15) 20px, transparent 20px),
        linear-gradient(to right, rgba(42, 157, 143, 0.1) 0%, rgba(42, 157, 143, 0.1) 1px, transparent 1px);
    background-size: 100% 20px, 20px 100%;
    background-position: 0 0, 0 0;
    background-attachment: fixed;
}

/* Reusable text block styling for readability over grid */
:root {
    --text-block-bg: rgba(255, 255, 255, 0.85);
    --text-block-border: rgba(255, 255, 255, 0.5);
    --text-block-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Apply subtle background to common text blocks across pages */
.hero-content p,
.about-text p,
.philosophy-text p,
.approach-intro p,
.story-intro p,
.highlight-content p,
#mission .mission-statement,
.yonder-intro,
.yonder-text p,
.container > p {
    background: var(--text-block-bg);
    border: 1px solid var(--text-block-border);
    backdrop-filter: blur(2px);
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: var(--text-block-shadow);
    display: inline-block;
    position: relative;
    z-index: 0; /* ensure headings sit above */
}

/* Ensure section titles always appear above any text backgrounds */
section h2, .container > h2, h2.fade-in {
    position: relative;
    z-index: 1;
}

/* Avoid double backgrounds inside existing cards/panels */
.service-card p,
.stat-box p,
.approach-card p,
.value-item p,
.pricing-card p,
.level-card p,
.team-member p,
.methodology-item p,
.faq-item p,
.price-level p,
.testimonial p,
.subject-intro {
    background: transparent;
    border: none;
    box-shadow: none;
    display: block;
}

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

section {
    padding: 70px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}


/* Removed glowing shiny effect for h2 headings */

h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
    display: block;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
    background-color: #f0f9f8; /* subtle pill behind title only */
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    z-index: 1;
}

h2:after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: rgba(42, 157, 143, 0.4);
    position: absolute;
    bottom: -10px;
    left: 0;
    transform: none;
}

/* Subtle background color tints for visual variety */
#services {
    background: linear-gradient(to bottom, #f8f9fa 0%, rgba(168, 180, 232, 0.05) 100%);
}

#methodology {
    background: linear-gradient(to bottom, rgba(255, 200, 87, 0.03), rgba(255, 138, 149, 0.05));
}

#learning-journey {
    background: linear-gradient(to bottom, rgba(127, 179, 211, 0.03), rgba(255, 179, 167, 0.03));
}

#consultation-faq {
    background: linear-gradient(to bottom, rgba(168, 230, 207, 0.05), rgba(255, 200, 87, 0.03));
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: #2a9d8f;
    transition: color 0.3s ease;
}

a:hover {
    color: #264653;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: #2a9d8f;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #264653;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-button.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px; /* Fixed height to ensure consistent vertical space */
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    font-size: 1.8rem;
    color: #2a9d8f;
    margin-bottom: 0;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center; /* This centers the items vertically */
    height: 100%; /* Ensures the ul takes full height of the nav */
}

nav ul li {
    margin-left: 25px;
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul li a {
    color: #333333;
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: #2a9d8f;
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Active Link State */
nav ul li a.active {
    color: #2a9d8f;
}

nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2a9d8f;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, rgba(38, 70, 83, 0.9), rgba(42, 157, 143, 0.8)), url('/api/placeholder/1200/600') center/cover no-repeat;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

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

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

#hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
    color: #000000;
}

#hero .cta-button {
    animation: fadeInUp 1s ease-out 0.6s both;
    transform: translateY(0);
    transition: all 0.3s ease;
}

#hero .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

/* Page Hero Section - keep clean without full-width solid bands */
.page-hero {
    background: linear-gradient(135deg, rgba(38, 70, 83, 0.9), rgba(42, 157, 143, 0.8));
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: stretch;
}

.about-text {
    flex: 3;
    min-width: 300px;
    display: flex;
    align-items: center;
}

.stats {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
    align-items: stretch;
    flex: 1;
}

.stat-box {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    min-width: 100px;
    max-width: 180px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-box:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-box h3 {
    font-size: 2rem;
    color: #2a9d8f;
    margin-bottom: 12px;
    line-height: 1.2;
}

.stat-box p {
    font-size: 0.85rem;
    white-space: nowrap;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Color variety for stat boxes */
.stat-box:nth-child(1) h3 {
    color: var(--color-primary);
}

.stat-box:nth-child(2) h3 {
    color: var(--color-coral);
}

.stat-box:nth-child(3) h3 {
    color: var(--color-yellow);
}

.stat-box:nth-child(4) h3 {
    color: var(--color-purple);
}

/* Services Section */
#services {
    background-color: #f8f9fa;
    padding: 40px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.service-card[data-service-toggle] {
    cursor: pointer;
}

.service-card::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;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.95);
}

.service-card > i,
.service-header i:first-child {
    font-size: 2.5rem;
    color: #2a9d8f;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Color variety for service card icons */
.service-card:nth-child(1) > i,
.service-card:nth-child(1) .service-header i:first-child {
    color: var(--color-primary);
}

.service-card:nth-child(2) > i,
.service-card:nth-child(2) .service-header i:first-child {
    color: var(--color-coral);
}

.service-card:nth-child(3) > i,
.service-card:nth-child(3) .service-header i:first-child {
    color: var(--color-yellow);
}

.service-card:nth-child(4) > i,
.service-card:nth-child(4) .service-header i:first-child {
    color: var(--color-purple);
}

.service-card:nth-child(5) > i,
.service-card:nth-child(5) .service-header i:first-child {
    color: var(--color-peach);
}

.service-card:nth-child(6) > i,
.service-card:nth-child(6) .service-header i:first-child {
    color: var(--color-blue);
}

.service-card:hover > i,
.service-card:hover .service-header i:first-child {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Service card header with toggle button */
.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

.service-card > i:first-child {
    margin-bottom: 0;
}

.service-header h3 {
    flex: 1;
    margin-bottom: 0;
    text-align: left;
}

.service-toggle {
    background: transparent;
    border: none;
    color: #2a9d8f;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-toggle:hover {
    color: #264653;
    transform: scale(1.1);
}

.service-toggle.active i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.service-toggle i {
    transition: transform 0.3s ease;
}

/* Service card subject lists: left-align and collapsed by default */
.service-subjects {
    text-align: left;
    width: 100%;
    margin-top: 0;
    padding-left: 15px;
    padding-top: 0;
    padding-bottom: 0;
    list-style: disc;
    opacity: 0;
    max-height: 0;
    overflow: visible;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease, padding-bottom 0.3s ease;
}

.service-subjects.active {
    opacity: 1;
    max-height: 500px; /* large enough for all items */
    margin-top: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.service-subjects li {
    text-align: left;
    margin-bottom: 8px;
    font-size: 0.9rem; /* slightly smaller to ensure long text fits on one line */
    line-height: 1.4;
    white-space: nowrap;
}

/* Special Service Styling */
.special-service {
    grid-column: 1 / -1;
    background-color: #f0f9f8;
    border: 2px solid #2a9d8f;
}

.special-service i {
    color: #264653;
}

/* Service Link */
.service-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    position: relative;
}

.service-link::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.service-link:hover::after {
    margin-left: 10px;
}

/* Alt Section Background - remove full-width band */
.alt-section {
    background-color: transparent;
}

/* Approach Section */
#approach {
    background-color: #ffffff;
}

/* Flowchart Container Styles */
.approach-intro {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
    display: block;
    width: 100%;
    padding: 15px 20px;
}

.flowchart-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.flow-step {
    background-color: #ffffff;
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    width: 250px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.flow-number {
    width: 40px;
    height: 40px;
    background-color: #2a9d8f;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.flow-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.flow-content h3 {
    margin-bottom: 10px;
    color: #264653;
    font-size: 1.2rem;
}

.flow-content p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex: 1;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    color: #2a9d8f;
    font-size: 1.5rem;
}

/* Original Approach Steps (keeping for reference) */
.approach-steps {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 0;
    max-width: none;
    text-align: center;
    position: relative;
    padding: 20px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 35px;
    height: 35px;
    background-color: #2a9d8f;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    margin: 0 auto 10px;
}

.step h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.step p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2a9d8f;
    font-size: 1.8rem;
    padding: 0 10px;
    flex-shrink: 0;
}

/* Testimonials Section */
#testimonials {
    background-color: transparent;
    color: #000000;
    padding: 80px 0;
}

#testimonials h2:after {
    background-color: rgba(42, 157, 143, 0.4);
}

.testimonial-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

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

.student-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.student-grade {
    font-size: 0.9rem;
    opacity: 0.8;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-controls button {
    background: transparent;
    border: none;
    color: #264653;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.testimonial-controls button:hover {
    color: #2a9d8f;
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--color-yellow);
}

/* Color variety for testimonial dots */
.testimonial-dots .dot:nth-child(1).active {
    background-color: var(--color-primary);
}

.testimonial-dots .dot:nth-child(2).active {
    background-color: var(--color-coral);
}

.testimonial-dots .dot:nth-child(3).active {
    background-color: var(--color-yellow);
}

/* Contact Section */
#contact {
    background-color: #f8f9fa;
}

#contact-main {
    background-color: #f8f9fa;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.info-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(10px);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-coral), var(--color-yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.info-item:hover::before {
    transform: scaleX(1);
}

.info-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.95));
}

.info-item i {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #2a9d8f, #264653);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(42, 157, 143, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

/* Color variety for contact icons */
.info-item:nth-child(1) i {
    background: linear-gradient(135deg, var(--color-primary), #1d7870);
    box-shadow: 0 8px 20px rgba(42, 157, 143, 0.3);
}

.info-item:nth-child(2) i {
    background: linear-gradient(135deg, var(--color-coral), #e6757f);
    box-shadow: 0 8px 20px rgba(255, 138, 149, 0.3);
}

.info-item:nth-child(3) i {
    background: linear-gradient(135deg, var(--color-yellow), #e6b34a);
    box-shadow: 0 8px 20px rgba(255, 200, 87, 0.3);
}

.info-item:hover i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(42, 157, 143, 0.4);
}

.info-content {
    flex: 1;
    width: 100%;
}

.info-content h3 {
    color: #264653;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
}

.info-content p {
    color: #555;
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* For contact.html structure with info-content */
.info-item > .info-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* For index.html structure without info-content wrapper */
.info-item > p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #264653;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    background-color: #ffffff;
}

textarea {
    resize: vertical;
}

/* Subject Detail Sections */
.subject-detail {
    padding: 80px 0;
}

.subject-intro {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    display: block !important;
    width: 100%;
}

.level-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Mathematics section: 3 boxes always on one row */
.mathematics-container {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: auto;
}

/* Keep mathematics on one row for laptop sizes - reduce gap if needed */
@media (min-width: 769px) and (max-width: 1400px) {
    .mathematics-container {
        gap: 15px;
    }
    
    .mathematics-container .level-card {
        min-width: 0;
        padding: 25px 20px;
    }
}

/* English section: 2x2 grid */
.english-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
}

/* Science section: 2 boxes centered */
.science-container {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

.level-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.level-card h3 {
    color: #264653;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.level-card ul {
    margin: 15px 0;
    padding-left: 20px;
}

.level-card li {
    margin-bottom: 8px;
    position: relative;
}

/* Study Space Section */
.study-space-info {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
    align-items: stretch;
}

.info-column {
    flex: 1;
    min-width: 300px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.info-column h3 {
    color: #264653;
    margin-bottom: 20px;
}

.info-column ul {
    margin: 15px 0;
    padding-left: 30px;
}

.info-column li {
    margin-bottom: 8px;
}

.cta-text {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 25px 0 20px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.team-member h3 {
    margin: 20px 0 5px;
    color: #264653;
}

.position {
    color: #2a9d8f;
    font-weight: 600;
    margin-bottom: 15px;
}

.team-member p {
    padding: 0 20px 20px;
}

/* Philosophy List */
.philosophy-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.philosophy-list li {
    padding: 15px 20px;
    background-color: #ffffff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 50px;
}

.philosophy-list li::before {
    content: '✓';
    position: absolute;
    left: 20px;
    color: #2a9d8f;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Methodology Section */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.methodology-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.methodology-item:hover {
    transform: translateY(-5px);
}

.methodology-item i {
    font-size: 2.5rem;
    color: #2a9d8f;
    margin-bottom: 20px;
}

/* Color variety for methodology icons */
.methodology-item:nth-child(1) i {
    color: var(--color-primary);
}

.methodology-item:nth-child(2) i {
    color: var(--color-coral);
}

.methodology-item:nth-child(3) i {
    color: var(--color-yellow);
}

.methodology-item:nth-child(4) i {
    color: var(--color-purple);
}

.methodology-item:nth-child(5) i {
    color: var(--color-peach);
}

.methodology-item:nth-child(6) i {
    color: var(--color-blue);
}

.methodology-item h3 {
    margin-bottom: 15px;
    color: #264653;
}

/* Learning Journey Section */
#learning-journey {
    padding: 80px 0;
    background-color: transparent;
}

.learning-journey-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.journey-timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, 
        var(--color-primary) 0%,
        var(--color-coral) 20%,
        var(--color-yellow) 40%,
        var(--color-purple) 60%,
        var(--color-peach) 80%,
        var(--color-blue) 100%
    );
    transform: translateX(-50%);
    z-index: 1;
}

.journey-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.journey-step:last-child {
    margin-bottom: 0;
}

.step-left {
    flex: 0 0 35%;
    padding-right: 40px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2a9d8f, #264653);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
    position: relative;
    z-index: 3;
    border: 4px solid #f8f9fa;
    transition: all 0.3s ease;
}

/* Color variety for each step number */
.journey-step:nth-child(2) .step-number {
    background: linear-gradient(135deg, var(--color-primary), #1d7870);
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
}

.journey-step:nth-child(3) .step-number {
    background: linear-gradient(135deg, var(--color-coral), #e6757f);
    box-shadow: 0 4px 15px rgba(255, 138, 149, 0.3);
}

.journey-step:nth-child(4) .step-number {
    background: linear-gradient(135deg, var(--color-yellow), #e6b34a);
    box-shadow: 0 4px 15px rgba(255, 200, 87, 0.3);
}

.journey-step:nth-child(5) .step-number {
    background: linear-gradient(135deg, var(--color-purple), #8b95c4);
    box-shadow: 0 4px 15px rgba(168, 180, 232, 0.3);
}

.journey-step:nth-child(6) .step-number {
    background: linear-gradient(135deg, var(--color-peach), #e69991);
    box-shadow: 0 4px 15px rgba(255, 179, 167, 0.3);
}

.journey-step:nth-child(7) .step-number {
    background: linear-gradient(135deg, var(--color-blue), #6a9bb8);
    box-shadow: 0 4px 15px rgba(127, 179, 211, 0.3);
}

.journey-step:hover .step-number {
    transform: scale(1.1);
}

.journey-step:nth-child(2):hover .step-number {
    box-shadow: 0 6px 20px rgba(42, 157, 143, 0.4);
}

.journey-step:nth-child(3):hover .step-number {
    box-shadow: 0 6px 20px rgba(255, 138, 149, 0.4);
}

.journey-step:nth-child(4):hover .step-number {
    box-shadow: 0 6px 20px rgba(255, 200, 87, 0.4);
}

.journey-step:nth-child(5):hover .step-number {
    box-shadow: 0 6px 20px rgba(168, 180, 232, 0.4);
}

.journey-step:nth-child(6):hover .step-number {
    box-shadow: 0 6px 20px rgba(255, 179, 167, 0.4);
}

.journey-step:nth-child(7):hover .step-number {
    box-shadow: 0 6px 20px rgba(127, 179, 211, 0.4);
}

.step-content {
    flex: 0 0 50%;
    padding-left: 40px;
    margin-left: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.journey-step:hover .step-content {
    transform: translateX(10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.step-icon {
    margin-bottom: 15px;
}

.step-icon i {
    font-size: 2rem;
    color: #2a9d8f;
    transition: all 0.3s ease;
}

/* Color variety for step icons */
.journey-step:nth-child(2) .step-icon i {
    color: var(--color-primary);
}

.journey-step:nth-child(3) .step-icon i {
    color: var(--color-coral);
}

.journey-step:nth-child(4) .step-icon i {
    color: var(--color-yellow);
}

.journey-step:nth-child(5) .step-icon i {
    color: var(--color-purple);
}

.journey-step:nth-child(6) .step-icon i {
    color: var(--color-peach);
}

.journey-step:nth-child(7) .step-icon i {
    color: var(--color-blue);
}

.journey-step:hover .step-icon i {
    transform: scale(1.1) rotate(5deg);
}

.step-content h3 {
    font-size: 1.4rem;
    color: #264653;
    margin-bottom: 12px;
}

.step-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Alternating layout for visual variety */
/* Timeline-line is 1st child, so journey-steps alternate: 2nd (left), 3rd (right), 4th (left), etc. */
/* Odd numbered journey-steps (3rd, 5th, 7th child) are reversed to appear on right */
.journey-step:nth-child(2n+3) {
    flex-direction: row-reverse;
}

.journey-step:nth-child(2n+3) .step-left {
    padding-right: 0;
    padding-left: 40px;
    justify-content: flex-start;
}

.journey-step:nth-child(2n+3) .step-content {
    padding-left: 30px;
    padding-right: 50px;
    margin-left: 0;
}

.journey-step:nth-child(2n+3):hover .step-content {
    transform: translateX(-10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
    
    .journey-step {
        flex-direction: column !important;
        padding-left: 60px;
        margin-bottom: 40px;
    }
    
    .journey-step:nth-child(2n+3) {
        flex-direction: column !important;
    }
    
    .step-left {
        position: absolute;
        left: 0;
        padding: 0;
        justify-content: flex-start;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-content {
        flex: 1;
        width: 100%;
        padding: 25px 20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .journey-step:nth-child(2n+3) .step-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .journey-step:hover .step-content {
        transform: translateY(-5px);
    }
    
    .journey-step:nth-child(2n+3):hover .step-content {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .journey-timeline {
        padding: 0 10px;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .journey-step {
        padding-left: 50px;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
    
    .step-content {
        padding: 20px 15px;
    }
}

/* Map Section */
.map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    width: 100%;
    position: relative;
}

.map-placeholder img {
    width: 100%;
    height: auto;
    display: block;
}

.map-note {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 4px;
    font-style: italic;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    color: #264653;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.faq-item h3::before {
    content: 'Q:';
    position: absolute;
    left: 0;
    color: #2a9d8f;
    font-weight: bold;
}

/* Pricing Section */
.pricing-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

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

.pricing-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card h3 {
    color: #264653;
    margin-bottom: 20px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #2a9d8f;
    margin-bottom: 20px;
}

.price-unit {
    font-size: 1rem;
    font-weight: normal;
    color: #777;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0 8px 25px;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2a9d8f;
}

.featured {
    border: 2px solid #2a9d8f;
    transform: translateY(-10px);
}

.featured:hover {
    transform: translateY(-15px);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: #2a9d8f;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-note {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

/* Register Section */
#register {
    background-color: #e9f6f3;
    padding: 80px 0;
}

.register-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#registration-success {
    text-align: center;
    padding: 40px 20px;
}

#registration-success i {
    font-size: 3rem;
    color: #2a9d8f;
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* CTA Section */
#cta-section {
    padding: 80px 0;
    background-color: transparent;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: transparent;
    border-radius: 10px;
    box-shadow: none;
}

.cta-content h2 {
    color: #264653;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Consultation FAQ Section */
#consultation-faq {
    background-color: transparent;
    padding: 80px 0;
}

#consultation-faq .faq-container {
    max-width: 900px;
}

#consultation-faq .faq-item {
    transition: all 0.3s ease;
}

#consultation-faq .faq-item:hover {
    transform: translateY(-5px);
}

/* Simplified FAQ Styling without Q and A prefixes */
.faq-item {
    margin-bottom: 25px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    color: #264653;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-item p {
    margin-top: 0;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: #264653;
    color: #ffffff;
    padding: 30px 0;
    text-align: center;
}

.footer-bottom {
    width: 100%;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* Secret link: hidden against footer background, visible on hover */
.footer-bottom .secret-link {
    color: #264653; /* same as footer background to hide */
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom .secret-link:hover,
.footer-bottom .secret-link:focus {
    color: #ffffff;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .flowchart-container {
        flex-direction: column;
        align-items: center;
    }
    
    .flow-step {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
        height: auto;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 15px 0;
        height: auto;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
        height: auto;
    }
    
    .menu-toggle {
        display: block;
    }
    
    #hero {
        padding: 80px 0;
    }

    #hero h1 {
        font-size: 2.2rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero {
        padding: 60px 0;
    }
    
    .about-content, 
    .contact-container,
    .level-container,
    .study-space-info,
    .pricing-grid,
    .team-grid,
    .methodology-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Keep mathematics section on one row even on smaller screens */
    .mathematics-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* English section: stack to 1 column on mobile */
    .english-container {
        grid-template-columns: 1fr;
    }
    
    /* Science section: stack to 1 column on mobile */
    .science-container {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .approach-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .featured {
        transform: translateY(0);
    }
    
    .featured:hover {
        transform: translateY(-5px);
    }
    
    .cta-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 50px 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    #hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-wrap: wrap;
    }
    
    .stat-box {
        flex: 1 1 calc(50% - 10px);
        min-width: 140px;
    }
    
    .level-card,
    .pricing-card,
    .methodology-item,
    .team-member {
        padding: 20px;
    }
    
    .info-item {
        padding: 30px 20px;
    }
    
    .info-item i {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .info-content h3 {
        font-size: 1.2rem;
    }
    
    .info-content p {
        font-size: 1rem;
    }
    
    .flow-step {
        min-height: 180px;
    }
    
    .cta-content {
        padding: 25px 15px;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* Additional CSS for single-row flowchart */
.flowchart-container.single-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.flowchart-container.single-row .flow-step {
    width: 220px;
    min-height: 220px;
    padding: 20px 15px;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

.flowchart-container.single-row .flow-arrow {
    padding: 0 10px;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.flowchart-cta {
    text-align: center;
    margin-top: 30px;
}

/* Responsive adjustments for single-row flowchart */
@media (max-width: 1200px) {
    .flowchart-container.single-row .flow-step {
        width: 180px;
        padding: 15px 10px;
    }
    
    .flowchart-container.single-row .flow-step p {
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .flowchart-container.single-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .flowchart-container.single-row .flow-step {
        width: 45%;
        margin-bottom: 20px;
    }
    
    .flowchart-container.single-row .flow-arrow {
        display: none;
    }
    
    /* Add arrows between rows */
    .flowchart-container.single-row .flow-step:nth-child(1)::after,
    .flowchart-container.single-row .flow-step:nth-child(3)::after {
        content: '→';
        position: absolute;
        right: -15px;
        top: 50%;
        transform: translateY(-50%);
        color: #2a9d8f;
        font-size: 1.5rem;
    }
    
    .flowchart-container.single-row .flow-step:nth-child(2)::after {
        content: '↓';
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        color: #2a9d8f;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .flowchart-container.single-row {
        flex-direction: column;
        align-items: center;
    }
    
    .flowchart-container.single-row .flow-step {
        width: 100%;
        max-width: 300px;
        margin-bottom: 40px;
    }
    
    .flowchart-container.single-row .flow-step::after {
        content: '↓' !important;
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        color: #2a9d8f;
        font-size: 1.5rem;
    }
    
    .flowchart-container.single-row .flow-step:last-child::after {
        display: none;
    }
    
    .flow-arrow {
        display: none;
    }
}

/* Updated CSS for centered box with left-aligned text */
#cta-section {
    padding: 80px 0;
    background-color: transparent;
    text-align: center; /* Keep the section centered */
}

.cta-content {
    max-width: 800px;
    margin: 0 auto; /* Keep the box centered */
    padding: 40px;
    background: transparent;
    border-radius: 10px;
    box-shadow: none;
    /* Default state is center-aligned */
    text-align: center;
}

.cta-content.text-left {
    text-align: middle; /* Left align the text inside */
}

.cta-content.text-left h2 {
    text-align: left;
    display: inline-block;
    position: relative;
    left: 0;
    transform: none;
    margin-left: 0;
}

.cta-content.text-left h2:after {
    left: 0;
    transform: none;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .cta-content {
        padding: 25px 15px;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
}

/* CSS for Yonder Meaning Section */
#yonder-meaning {
    background-color: #f0f9f8;
    padding: 80px 0;
}

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

.yonder-text {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.yonder-text:before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(42, 157, 143, 0.2);
    line-height: 1;
}

.yonder-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.yonder-text p:first-of-type {
    font-size: 1.25rem;
    font-weight: 500;
}

.yonder-text em {
    color: #2a9d8f;
    font-style: italic;
    font-weight: 500;
}

.yonder-text p:last-child {
    font-weight: 500;
}

@media (max-width: 768px) {
    .yonder-text {
        padding: 30px;
    }
    
    .yonder-text:before {
        font-size: 80px;
    }
    
    .yonder-text p {
        font-size: 1rem;
    }
    
    .yonder-text p:first-of-type {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .yonder-text {
        padding: 25px 20px;
    }
}

/* CSS for Yonder Introduction */
.yonder-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #264653;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(42, 157, 143, 0.2);
}

.yonder-intro em {
    color: #2a9d8f;
    font-style: italic;
    font-weight: 600;
}

@media (max-width: 768px) {
    .yonder-intro {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .yonder-intro {
        font-size: 1rem;
    }
}

/* CSS for About Page with Full-Width Content (No Stats) */
.about-content-full {
    max-width: 900px;
    margin: 0 auto;
}

.about-content-full p {
    margin-bottom: 15px;
}

/* Retain the Yonder intro styling */
.yonder-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #264653;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(42, 157, 143, 0.2);
}

.yonder-intro em {
    color: #2a9d8f;
    font-style: italic;
    font-weight: 600;
}

@media (max-width: 768px) {
    .yonder-intro {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .yonder-intro {
        font-size: 1rem;
    }
}

/* Mission Section Styles */
.mission-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Reduce large gap beneath mission block */
#mission {
    padding-bottom: 30px; /* was inheriting section 70px */
}

/* Reduce space above the next section to bring content closer */
#our-story {
    padding-top: 40px; /* was inheriting section 70px */
}

.mission-text {
    flex: 1;
}

.mission-statement {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #264653;
    font-weight: 500;
    margin-top: 20px;
}

.mission-visual {
    display: flex;
    gap: 20px;
    flex: 1;
}

.mission-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
}

.mission-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.mission-card i {
    font-size: 2.5rem;
    color: #2a9d8f;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

/* Color variety for mission card icons */
.mission-card:nth-child(1) i {
    color: var(--color-primary);
}

.mission-card:nth-child(2) i {
    color: var(--color-coral);
}

.mission-card:nth-child(3) i {
    color: var(--color-yellow);
}

.mission-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.mission-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #264653;
}

.mission-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Story Section Styles */
.story-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.story-text {
    flex: 2;
}

.story-intro h3 {
    font-size: 1.8rem;
    color: #264653;
    margin-bottom: 20px;
}

.story-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #555;
}

.story-highlights {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateX(10px);
}

.highlight-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2a9d8f, #264653);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.highlight-content h4 {
    font-size: 1.2rem;
    color: #264653;
    margin-bottom: 8px;
}

.highlight-content p {
    color: #666;
    line-height: 1.6;
}

.story-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-highlight {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-highlight:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2a9d8f;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Approach Section Styles */
.approach-content {
    max-width: 1200px;
    margin: 0 auto;
}

.approach-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    display: block;
    width: 100%;
    padding: 15px 20px;
}

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

.approach-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 157, 143, 0.1), transparent);
    transition: left 0.5s;
}

.approach-card:hover::before {
    left: 100%;
}

.approach-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.approach-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2a9d8f, #264653);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

/* Color variety for approach card icons */
.approach-card:nth-child(1) .approach-icon {
    background: linear-gradient(135deg, var(--color-primary), #1d7870);
}

.approach-card:nth-child(2) .approach-icon {
    background: linear-gradient(135deg, var(--color-coral), #e6757f);
}

.approach-card:nth-child(3) .approach-icon {
    background: linear-gradient(135deg, var(--color-yellow), #e6b34a);
}

.approach-card:nth-child(4) .approach-icon {
    background: linear-gradient(135deg, var(--color-purple), #8b95c4);
}

.approach-card:nth-child(5) .approach-icon {
    background: linear-gradient(135deg, var(--color-peach), #e69991);
}

.approach-card:nth-child(6) .approach-icon {
    background: linear-gradient(135deg, var(--color-blue), #6a9bb8);
}

.approach-card:hover .approach-icon {
    transform: scale(1.1) rotate(5deg);
}

.approach-card h3 {
    font-size: 1.3rem;
    color: #264653;
    margin-bottom: 15px;
}

.approach-card p {
    color: #666;
    line-height: 1.6;
}

/* Values Section Styles */
.values-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.value-item {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e9c46a, #f4a261);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

/* Color variety for value item icons */
.value-item:nth-child(1) .value-icon {
    background: linear-gradient(135deg, var(--color-primary), #1d7870);
}

.value-item:nth-child(2) .value-icon {
    background: linear-gradient(135deg, var(--color-coral), #e6757f);
}

.value-item:nth-child(3) .value-icon {
    background: linear-gradient(135deg, var(--color-yellow), #e6b34a);
}

.value-item:nth-child(4) .value-icon {
    background: linear-gradient(135deg, var(--color-purple), #8b95c4);
}

.value-item:nth-child(5) .value-icon {
    background: linear-gradient(135deg, var(--color-peach), #e69991);
}

.value-item:nth-child(6) .value-icon {
    background: linear-gradient(135deg, var(--color-blue), #6a9bb8);
}

.value-item:hover .value-icon {
    transform: scale(1.1) rotate(-5deg);
}

.value-item h3 {
    font-size: 1.2rem;
    color: #264653;
    margin-bottom: 12px;
}

.value-item p {
    color: #666;
    line-height: 1.6;
}

/* About CTA Section */
#about-cta .cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 30px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Application section - white background for readability */
#application .cta-content {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#about-cta h2 {
    font-size: 2.2rem;
    color: #264653;
    margin-bottom: 20px;
}

#about-cta p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.secondary {
    background-color: transparent;
    color: #2a9d8f;
    border: 2px solid #2a9d8f;
}

.cta-button.secondary:hover {
    background-color: #2a9d8f;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mission-content,
    .story-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .mission-visual {
        flex-direction: column;
    }
    
    .story-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mission-visual {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .mission-card {
        flex: 1 1 calc(50% - 10px);
        min-width: 200px;
    }
    
    .story-stats {
        grid-template-columns: 1fr;
    }
    
    .approach-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button.secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .mission-visual {
        flex-direction: column;
    }
    
    .mission-card {
        flex: 1;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
    }
    
    #about-cta h2 {
        font-size: 1.8rem;
    }
}

/* Spacing adjustments for About page - Our Approach section */
#our-approach h2 {
    margin-bottom: 12px; /* tighten space under heading */
}

#our-approach .approach-intro {
    margin: 0 auto 30px; /* reduce gap before the intro paragraph */
}

/* CSS for Updated Subject Areas Section */
.subject-areas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px auto;
    max-width: 900px;
}

.subject-area {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    width: calc(33.333% - 20px);
    min-width: 250px;
}

.subject-area:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.subject-area i {
    font-size: 3rem;
    color: #2a9d8f;
    margin-bottom: 20px;
}

.subject-area h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #264653;
}

.grade-range {
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
}

/* CSS for Simplified Pricing Section */
.simplified-pricing {
    max-width: 900px;
    margin: 0 auto 30px;
}

.pricing-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.price-level {
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 200px;
    max-width: 250px;
}

.price-level:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.price-level h3 {
    color: #264653;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2a9d8f;
}

.price-unit {
    font-size: 1rem;
    font-weight: normal;
    color: #777;
}

.pricing-note {
    text-align: center;
    font-size: 0.95rem;
    color: #777;
    font-style: italic;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .subject-area {
        width: calc(50% - 15px);
    }
    
    .price-level {
        flex: 1 1 180px;
    }
}

@media (max-width: 480px) {
    .subject-area {
        width: 100%;
    }
    
    .price-level {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* CSS for Single Line Pricing Section */
.simplified-pricing.single-row {
    max-width: 1200px;
    margin: 0 auto 30px;
    overflow-x: auto; /* Allows horizontal scrolling on smaller screens */
}

.simplified-pricing.single-row .pricing-row {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap; /* Prevent wrapping to keep all boxes on one line */
    gap: 15px;
}

.simplified-pricing.single-row .price-level {
    flex: 1 0 0; /* Equal width distribution */
    min-width: 160px; /* Minimum width for readability */
    max-width: 220px; /* Maximum width to prevent stretching */
    padding: 25px 15px; /* Slightly reduced padding */
}

.simplified-pricing.single-row .price-level h3 {
    font-size: 1.1rem; /* Slightly smaller font */
}

.simplified-pricing.single-row .price {
    font-size: 1.8rem; /* Slightly smaller price */
}

/* Create responsive behavior for very small screens */
@media (max-width: 900px) {
    .simplified-pricing.single-row .pricing-row {
        justify-content: flex-start; /* Left align when scrolling is needed */
        padding-bottom: 15px; /* Add space for scrollbar */
    }
    
    .simplified-pricing.single-row:after {
        content: "→ Scroll for more →";
        display: block;
        text-align: center;
        font-size: 0.9rem;
        color: #777;
        margin-top: 10px;
        font-style: italic;
    }
}

@media (max-width: 480px) {
    .simplified-pricing.single-row .price-level {
        min-width: 140px;
        padding: 20px 10px;
    }
    
    .simplified-pricing.single-row .price-level h3 {
        font-size: 1rem;
    }
    
    .simplified-pricing.single-row .price {
        font-size: 1.6rem;
    }
}

/* CSS for Learn More Links */
.learn-more-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: #2a9d8f;
    position: relative;
    transition: all 0.3s ease;
}

.learn-more-link::after {
    content: '↓';
    margin-left: 5px;
    transition: transform 0.3s;
    display: inline-block;
}

.learn-more-link:hover {
    color: #264653;
}

.learn-more-link:hover::after {
    transform: translateY(3px);
}

/* Ensure subject areas have enough height for the link */
.subject-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 230px;
}

.subject-area .grade-range {
    margin-bottom: 5px;
}
/* Logo and site title alignment */
.logo a {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 100px;      /* adjust as needed */
  height: auto;
  margin-right: 8px; /* space between logo and text */
}

.logo h1 {
  margin: 0;        /* remove default margins */
  line-height: 1;   /* vertically center the text */
}
