* {
    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);
}

