/* --- FONTS --- */
@font-face {
    font-family: 'WaltzPrint18';
    src: url('./fonts/WaltzPrint18.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- COLOR PALETTE VARIABLES --- */
:root {
    --dark-aqua: #08708a;
    --light-aqua: #56b1bf;
    --pink: #c54a71;
    --yellow: #ffe932;
    --sand: #d0d3c5;
    --red: #d73a31;
    --dark-green: #032b2f;
    --white: #ffffff;
}

/* --- GLOBAL RESET & TYPOGRAPHY --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'WaltzPrint18', serif;
    color: var(--dark-green);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3 {
    margin-bottom: 15px;
    font-weight: 700;
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

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

/* --- BUTTON STYLES --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.2s ease, background-color 0.2s;
    text-align: center;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover {
    transform: scale(1.05);
    filter: brightness(110%);
}

.btn-red { background-color: var(--red); color: white; }
.btn-pink { background-color: var(--pink); color: white; }
.btn-teal { background-color: var(--dark-aqua); color: white; }

/* --- HEADER SECTION --- */
.main-header {
    min-height: 120px;
    background-color: var(--white);
    border-bottom: 5px solid var(--yellow);
    display: flex;
    align-items: center;
    padding: 10px 0;
    position: relative;
    z-index: 1000;
}

.header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-title img {
    height: 100px;
    width: auto;
}

/* Desktop Nav Styles */
.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav a.nav-link {
    color: var(--dark-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.header-nav a.nav-link:hover {
    color: var(--pink);
}

/* Hamburger Icon (Hidden on Desktop) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 4px;
    background-color: var(--dark-aqua);
    border-radius: 4px;
    transition: 0.3s;
}

/* --- HOME PAGE: HERO SECTION --- */
.hero {
    background-color: var(--light-aqua);
    padding: 60px 0;
}

.hero-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-img {
    flex: 1;
    min-width: 300px;
}

.hero-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #56b1bf;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-text h1 {
    color: var(--pink);
    font-size: 2.5rem;
}

/* --- HOME PAGE: FEATURES SECTION --- */
.features {
    background-color: var(--yellow);
    padding: 50px 0;
}

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

.feature-box {
    background-color: rgba(255,255,255,0.6);
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    border: 2px solid var(--dark-green);
}

.feature-graphic {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--pink);
}

.feature-box img {
    margin: 0 auto;
}

/* --- HOME PAGE: BENEFITS SECTION --- */
.benefits {
    background-color: var(--sand);
    padding: 60px 0;
}

.benefits-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.benefits-graphic {
    flex: 1;
    min-width: 300px;
}

.benefits-list {
    flex: 1;
    min-width: 300px;
}

.benefits-list ul {
    list-style: none;
}

.benefits-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--pink);
    font-weight: bold;
    font-size: 1.5rem;
}

/* --- HOME PAGE: TESTIMONIALS SECTION --- */
.testimonials {
    background-color: var(--white);
    padding: 60px 0;
}

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

.testimonial-card {
    background-color: var(--dark-aqua);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.testimonial-graphic {
    width: 180px;
    height: 180px;
    background-color: white;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.testimonial-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 20px;
    color: var(--yellow);
    text-transform: uppercase;
}

/* --- METHOD PAGE: HEADER & PATH --- */

.method-header {
    text-align: center;
    padding: 60px 20px 30px;
    background-color: var(--light-aqua);
    color: var(--white);
}

.method-path-container {
    position: relative;
    max-width: 1000px; /* Slightly narrower to keep items closer to the path */
    margin: 0 auto;
    padding: 80px 20px;
}

/* The Winding Path SVG */
.winding-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind everything */
    pointer-events: none; /* Let clicks pass through */
    opacity: 0.6;
}

/* Individual Step Rows */
.step-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    position: relative;
    z-index: 1; /* Above the path */
}

/* Alternate Order */
.step-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* --- UPDATED GRAPHIC STYLES --- */

/* The Graphic Box */
.step-graphic {
    width: 42%;
    /* UPDATED: Flex properties for stacking images */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Space between images and connector */
    transition: transform 0.3s ease;
}

.step-graphic:hover {
    transform: scale(1.02);
}

.step-graphic img {
    width: 100%;
    background-color: var(--white);
    
    /* UPDATED: Border and Shadow changes */
    border: 3pt solid black;
    box-shadow: none; 
    border-radius: 20px; /* Kept rounded corners */
}

/* NEW: Style for the SVG separator between images */
.connector-icon {
    width: 40px;
    height: 60px;
    display: block;
    opacity: 0.8;
}

/* The Text Box */
.step-content {
    width: 48%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    border: 2px dashed var(--light-aqua); /* Friendly dashed border */
}

.step-content h2 {
    font-size: 2.2rem;
    color: var(--dark-aqua);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.step-content ul {
    list-style: none;
    padding: 0;
}

.step-content li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--dark-green);
}

.step-content li::before {
    content: '🐼'; 
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.2rem;
}

/* --- METHOD PAGE: OPTIONS/PRICING --- */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: center;
}

.option-box {
    background-color: rgba(255,255,255,0.85);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--dark-green);
    text-align: center;
    transition: transform 0.2s;
}

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

.option-box.featured {
    background-color: #ffffff;
    border: 3px solid var(--pink);
    padding: 40px 30px;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.option-box.featured:hover {
    transform: scale(1.08);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--pink);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.option-price {
    font-weight: bold; 
    font-size: 1.1rem; 
    margin: 15px 0; 
    color: var(--dark-aqua);
}

/* --- TEACHER PAGE: HERO & INTRO --- */
.teacher-hero {
    background-color: var(--sand);
    padding: 80px 0;
}

.teacher-hero-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* 1/3 width graphic area */
.teacher-graphic-col {
    flex: 1; 
    min-width: 250px;
    display: flex;
    justify-content: center;
}

.teacher-graphic-col img {
    border-radius: 50%;
    border: 8px solid var(--light-aqua);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    max-width: 350px;
    width: 100%;
}

/* 2/3 width text area */
.teacher-text-col {
    flex: 2;
}

.pull-quote {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-aqua);
    line-height: 1.3;
    margin-bottom: 30px;
    position: relative;
}

.pull-quote::before {
    content: "“";
    font-size: 5rem;
    color: var(--yellow);
    position: absolute;
    top: -40px;
    left: -30px;
    z-index: -1;
}

.teacher-bio-intro {
    font-size: 1.2rem;
}

/* --- TEACHER PAGE: DETAILS GRID SECTION --- */
.teacher-details {
    background-color: var(--white);
    padding: 80px 0;
}

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

.detail-box {
    background-color: var(--white);
    border: 3px solid var(--dark-green);
    border-radius: 15px;
    padding: 35px;
    box-shadow: 5px 5px 0px var(--sand);
    transition: transform 0.2s;
}

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

.detail-box h3 {
    color: var(--pink);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-box ul {
    list-style-type: none;
    padding-left: 10px;
}

.detail-box li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.detail-box li::before {
    content: "•";
    color: var(--light-aqua);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* --- FOOTER SECTION --- */
.footer {
    background-color: var(--dark-green);
    color: var(--sand);
    padding: 40px 0;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--light-aqua);
    text-decoration: none;
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--pink);
}

/* --- MOBILE MENU / RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Header & Navigation */
    .hamburger {
        display: flex;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 2px solid var(--yellow);
        gap: 20px;
        z-index: 999;
    }

    .header-nav.active {
        display: flex;
    }

    /* General Layout Adjustments */
    .footer-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links a {
        display: block;
        margin: 10px 0;
    }

    /* Teacher Page Specifics */
    .teacher-hero-layout {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .pull-quote {
        font-size: 1.8rem;
    }

     .pull-quote::before {
        left: 0;
        top: -50px;
    }

    /* Method Page Specifics */
    .step-row {
        flex-direction: column !important;
        margin-bottom: 60px;
    }
    
    .step-graphic, .step-content {
        width: 100%;
        margin-bottom: 20px;
    }

    .winding-svg {
        display: none; /* Hide complex path on mobile */
    }
}



/* --- READING TOOL STYLES --- */

/* 1. Custom Chinese Font */
@font-face {
    font-family: 'SquidChinese';
    /* Assumes this font is in the same folder as WaltzPrint18.ttf */
    src: url('./fonts/SquidChinese.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 2. New Button Variant (Neutral) */
.btn-sand {
    background-color: var(--sand);
    color: var(--dark-green);
}
.btn-sand:hover {
    background-color: #e0e3d5; /* Slightly darker sand */
}

/* 3. The Reading Layout */
.reading-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

/* 4. The Main Flashcard */
#text-display-area {
    background-color: var(--white);
    border: 4px solid var(--dark-green);
    border-radius: 20px;
    /* Using your 'Sand' color for a solid shadow effect */
    box-shadow: 10px 10px 0px var(--sand);
    
    padding: 50px 30px;
    min-height: 200px;
    margin-bottom: 30px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Typography */
    font-size: 3.5rem;
    line-height: 1.3;
    color: var(--dark-green);
    font-family: 'SquidChinese', sans-serif; 
    
    /* Interaction */
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    transition: transform 0.2s ease;
}

#text-display-area:hover {
    transform: translateY(-2px);
}

/* 5. Controls Alignment */
.controls-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* 6. Speed Toggle Switch */
.speed-control-group {
    display: flex;
    gap: 5px;
    background-color: var(--sand);
    padding: 5px;
    border-radius: 50px;
    border: 2px solid var(--sand);
}

.btn-speed {
    padding: 8px 18px;
    font-size: 1rem;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--dark-green);
    font-family: 'WaltzPrint18', serif;
    font-weight: bold;
    transition: 0.2s;
}

.btn-speed.active {
    background-color: var(--dark-aqua);
    color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* 7. Translation Box */
#translation-box {
    margin-top: 30px;
    padding: 30px;
    border-radius: 15px;
    background-color: var(--white);
    border: 3px dashed var(--light-aqua);
    
    text-align: center;
    font-size: 1.5rem;
    color: var(--dark-green);
    display: none; /* Hidden by default */
}

/* 8. Divider Line */
hr.divider {
    border: 0;
    height: 3px;
    background-color: var(--sand);
    margin: 40px auto;
    width: 60%;
    border-radius: 2px;
}