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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 1.5rem;
    text-align: center;
    margin-bottom: 0;
    position: relative;
}

/* Hero background image for first hero section only */
.hero:first-of-type {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/speaking_cartoon_chinese.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 60vh;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-badge {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cta-button.secondary {
    background: white;
    color: var(--primary);
}

/* Muted hero variant for sections */
.hero.hero-muted {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
    color: var(--text-dark);
}

/* Sections */
.section {
    padding: 3rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Ensure no gap after hero */
.hero ~ .section-colored,
.hero ~ .section-colored-alt1,
.hero ~ .section-colored-alt2,
.hero ~ .section-colored-alt3,
.hero ~ .section-colored-alt4 {
    margin-top: 0;
}

/* Subtle gradient backgrounds for sections */
.section-colored {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-colored-alt1 {
    background: linear-gradient(135deg, #f5f0ff 0%, #ede5ff 100%);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-colored-alt2 {
    background: linear-gradient(135deg, #fff4f0 0%, #ffe8e5 100%);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-colored-alt3 {
    background: linear-gradient(135deg, #f0fff4 0%, #e8ffe5 100%);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-colored-alt4 {
    background: linear-gradient(135deg, #fffaf0 0%, #fff5e8 100%);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}


@media (min-width: 768px) {
    .section-colored,
    .section-colored-alt1,
    .section-colored-alt2,
    .section-colored-alt3,
    .section-colored-alt4 {
        padding: 4rem 2rem;
    }
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Feature Grid */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

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

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

/* Steps */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Center steps container on wide screens */
.steps {
    margin: 0 auto;
    max-width: 800px;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: start;
    text-align: left;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

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

.step-content p {
    color: var(--text-light);
}

/* Topics Grid */
.topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin: 2rem 0;
}

.topic {
    background: var(--bg-light);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Schedule */
.schedule-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.schedule-card.full {
    border-left: 4px solid #ef4444;
}

.schedule-card.available {
    border-left: 4px solid #10b981;
}

.schedule-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.schedule-time {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.schedule-location {
    color: var(--text-light);
    font-size: 0.9rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.status-badge.full {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.available {
    background: #d1fae5;
    color: #059669;
}

/* Leader Card */
.leader-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.leader-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.leader-role {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.leader-bio {
    color: var(--text-light);
    line-height: 1.7;
}

/* Meeting Structure */
.meeting-structure {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.meeting-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.meeting-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.meeting-item p {
    color: var(--text-light);
}

/* Join Section */
.join-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 1.5rem;
    text-align: center;
}

.join-section .section-title {
    color: white;
}

.join-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.next-steps {
    text-align: left;
    max-width: 400px;
    margin: 2rem auto;
}

.next-steps li {
    margin: 0.75rem 0;
    padding-left: 0.5rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 639px) {
    .hero:first-of-type {
        min-height: 50vh;
        background-size: cover;
        background-position: center;
    }
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero:first-of-type {
        min-height: 65vh;
    }
    
    .features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .meeting-structure {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (min-width: 768px) {
    .hero {
        padding: 6rem 2rem;
    }
    
    .hero:first-of-type {
        min-height: 70vh;
        background-attachment: scroll;
    }
    
    .section {
        padding: 4rem 2rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Image styles */
.section-image {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Impeccable polish: a warmer, more editorial system for the youth club. */
:root {
    --primary: #153f8f;
    --primary-dark: #0b2b66;
    --secondary: #d9563b;
    --accent: #f2b84b;
    --accent-dark: #342306;
    --text-dark: #17233a;
    --text-light: #526076;
    --bg-light: #f4f1e9;
    --bg-white: #fffdf8;
    --border: #dcd6c8;
    --focus: #f08a5d;
    --shadow: 0 18px 45px rgba(21, 43, 78, 0.12);
}

html { scroll-padding-top: 5rem; }

body {
    background: var(--bg-white);
    font-family: "Segoe UI", "Noto Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

::selection { background: var(--accent); color: var(--accent-dark); }

a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

.site-header {
    align-items: center;
    background: rgba(255, 253, 248, 0.96);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    min-height: 4.75rem;
    padding: 0.75rem clamp(1.25rem, 5vw, 5rem);
    position: sticky;
    top: 0;
    z-index: 10;
}

.wordmark {
    color: var(--text-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.wordmark span { color: var(--secondary); }

.site-header nav { align-items: center; display: flex; gap: clamp(0.8rem, 2.4vw, 2rem); }
.site-header nav a { color: var(--text-dark); font-size: 0.9rem; font-weight: 650; text-decoration: none; }
.site-header nav a:not(.nav-cta):hover { text-decoration: underline; text-decoration-color: var(--secondary); text-underline-offset: 0.35rem; }
.site-header .nav-cta { background: var(--primary); border-radius: 999px; color: white; padding: 0.55rem 1rem; }
.header-actions { align-items: center; display: flex; gap: 1rem; }
.language-toggle {
    background: #eee9dd;
    border: 1px solid var(--border);
    border-radius: 999px;
    display: flex;
    padding: 0.2rem;
}
.language-toggle button {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--text-light);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    min-height: 2.4rem;
    min-width: 2.75rem;
    padding: 0.3rem 0.65rem;
}
.language-toggle button[aria-pressed="true"] { background: var(--bg-white); color: var(--primary-dark); box-shadow: 0 3px 10px rgba(21, 43, 78, 0.12); }
.language-toggle button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.hero {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 5vw, 5rem);
}

.hero > * { margin-left: auto; margin-right: auto; max-width: 72rem; }
.hero > .section-subtitle { max-width: 68ch; }

.hero:first-of-type {
    align-content: center;
    background-image: linear-gradient(90deg, rgba(10, 26, 52, 0.88) 0%, rgba(10, 26, 52, 0.62) 48%, rgba(10, 26, 52, 0.26) 100%), url('images/speaking_cartoon_chinese.jpeg');
    background-position: center 42%;
    display: grid;
    min-height: calc(88vh - 4.75rem);
    text-align: left;
}

.hero:first-of-type > * { margin-left: clamp(0rem, 6vw, 7rem); margin-right: 0; max-width: 46rem; }
.hero h1 {
    color: #fffdf8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 7vw, 5.75rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 0.98;
    text-wrap: balance;
}

.hero .subtitle { color: #fff7e8; font-size: clamp(1.15rem, 2vw, 1.45rem); opacity: 1; }
.hero-badge { justify-content: flex-start; }
.badge { backdrop-filter: none; background: #fffdf8 !important; color: var(--text-dark) !important; font-weight: 650; }

.hero.hero-muted { background: var(--bg-white); color: var(--text-dark); }
.hero.hero-muted:nth-of-type(even) { background: var(--bg-light); }

.section-title {
    color: var(--text-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin-bottom: 1.1rem;
    text-wrap: balance;
}

.section-subtitle { color: var(--text-light); font-size: clamp(1rem, 1.7vw, 1.18rem); margin-bottom: 1.4rem; }

.cta-button {
    background: var(--accent);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(242, 184, 75, 0.23);
    color: var(--accent-dark);
    font-size: 1rem;
    font-weight: 750;
    min-height: 3.25rem;
    padding: 0.85rem 1.35rem;
    transition: transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms ease-out, background 180ms ease-out;
}

.cta-button:hover { background: #ffc95f; box-shadow: 0 12px 30px rgba(68, 43, 3, 0.2); transform: translateY(-2px); }
.cta-button:active { transform: translateY(0); }
.cta-button span { display: inline-block; margin-left: 0.35rem; transition: transform 180ms ease-out; }
.cta-button:hover span { transform: translateX(0.2rem); }
.cta-button.secondary { background: var(--primary); color: white; }

.section-image { aspect-ratio: 16 / 9; border-radius: 1rem; box-shadow: var(--shadow); object-fit: cover; }

.features, .meeting-structure { gap: 1rem; }
.feature, .meeting-item, .leader-card, .schedule-card {
    background: rgba(255,255,255,0.72);
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    box-shadow: 0 8px 25px rgba(21, 43, 78, 0.06);
}
.feature { border-left: 1px solid var(--border); text-align: left; }
.feature h3, .meeting-item h4 { color: var(--text-dark); line-height: 1.3; }
.feature p, .meeting-item p, .leader-bio, .step-content p, .schedule-time, .schedule-location { color: var(--text-light); }
.meeting-item h4 span { color: var(--text-light); font-size: 0.85em; font-weight: 500; }

.steps { margin: 2.5rem auto; }
.step { background: transparent; border-bottom: 1px solid var(--border); gap: 1.25rem; padding: 0 0 1.5rem; }
.step:last-child { border-bottom: 0; }
.step-number { background: var(--primary); box-shadow: 0 5px 15px rgba(21,63,143,.2); }

.topics { gap: 0.65rem; }
.topic { background: transparent; border: 1px solid var(--border); border-radius: 999px; font-weight: 650; }

.schedule-card { margin: 1rem auto; max-width: 44rem; padding: 1.75rem; text-align: left; }
.schedule-card.full, .schedule-card.available { border-left: 1px solid var(--border); }
.schedule-card.available { border-color: #9ec9ae; }
.schedule-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; }
.status-badge { border-radius: 999px; letter-spacing: 0.04em; }
.status-badge.available { background: #dcefe3; color: #135c32; }
.status-badge.full { background: #f6dfd9; color: #8a2d1e; }

iframe { border-radius: 1rem !important; box-shadow: var(--shadow) !important; }
.leader-card { margin: 1rem auto; max-width: 44rem; text-align: left; }
.leader-name { font-family: Georgia, "Times New Roman", serif; }
.past-officers-title {
    color: var(--text-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    margin: 3rem auto 1rem;
    max-width: 44rem;
    text-align: left;
}
.past-officers {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 44rem;
}
.leader-card.former { margin: 0; padding: 1.35rem 1.5rem; }
.leader-card.former .leader-name { font-size: 1.15rem; margin: 0; }

#join { background: var(--primary); }
#join .section-title, #join .section-subtitle { color: white; }
#join .next-steps { color: #e9efff; }

.footer { background: #0c1a32; color: #e9efff; }

@media (max-width: 700px) {
    .site-header { min-height: 4rem; }
    .site-header nav a:not(.nav-cta) { display: none; }
    .header-actions { gap: 0.55rem; }
    .site-header .nav-cta { align-items: center; display: flex; min-height: 2.75rem; padding: 0.7rem 1rem; }
    .language-toggle button { min-width: 2.5rem; padding-inline: 0.5rem; }
    .hero:first-of-type { min-height: 72vh; }
    .hero:first-of-type > * { margin-left: 0; }
    .hero { padding: 4.5rem 1.25rem; }
    .hero h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
    .cta-button { text-align: center; width: 100%; }
    .hero-badge { display: flex; }
    .past-officers { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

