:root {
    --color-mocha: #8B6F47;
    --color-caramel: #D4A574;
    --color-cream: #F5E6D3;
    --color-white: #FFFFFF;
    --color-text-dark: #333333;
    --color-text-light: #666666;
    --color-bg-light: #FAFAFA;
    --font-main: 'Nanum Gothic', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-white);
    padding-bottom: 80px; /* Space for sticky footer */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   Components
   ========================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-cta {
    background-color: var(--color-mocha);
    color: var(--color-white);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(139, 111, 71, 0.3);
}

.btn-cta:hover {
    background-color: var(--color-caramel);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2rem;
    color: var(--color-mocha);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

/* =========================================
   Top Risk Bar
   ========================================= */
.risk-bar {
    background-color: #333;
    color: #ccc;
    font-size: 0.8rem;
    padding: 10px 0;
    text-align: center;
    position: relative;
    z-index: 1000;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--color-cream) 0%, #fff 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--color-mocha);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--color-text-light);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.disclaimer-badge {
    display: inline-block;
    background-color: rgba(139, 111, 71, 0.1);
    color: var(--color-mocha);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    margin-top: 10px;
}

/* =========================================
   Ticker
   ========================================= */
.ticker-wrap {
    width: 100%;
    background-color: var(--color-mocha);
    color: var(--color-white);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 40px; /* Spacing after hero or within hero */
    border-radius: 10px;
}

.ticker {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.9rem;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* =========================================
   Why Join (Zigzag)
   ========================================= */
.features {
    padding: 80px 0;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--color-mocha);
}

.feature-text p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.feature-img {
    flex: 1;
}

.feature-img img {
    width: 100%;
    border-radius: 15px;
}

/* =========================================
   Testimonials
   ========================================= */
.testimonials {
    background-color: var(--color-bg-light);
    padding: 80px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--color-caramel);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #eee;
    margin-right: 15px;
    object-fit: cover;
}

.stars {
    color: #FFD700;
    margin-bottom: 10px;
}

/* =========================================
   Schedule
   ========================================= */
.schedule {
    padding: 80px 0;
}

.schedule-card {
    background: var(--color-cream);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 111, 71, 0.2);
}

.schedule-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.schedule-time {
    font-weight: 800;
    color: var(--color-mocha);
    min-width: 100px;
}

/* =========================================
   FAQ
   ========================================= */
.faq {
    background-color: var(--color-bg-light);
    padding: 80px 0;
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--color-text-light);
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
    max-height: 200px; /* Adjust based on content */
}

/* =========================================
   Footer & Sticky CTA
   ========================================= */
footer {
    background-color: #222;
    color: #888;
    padding: 40px 0 100px 0; /* Extra padding for sticky bar */
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links span {
    margin: 0 10px;
    cursor: pointer;
    text-decoration: underline;
}

.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    z-index: 999;
}

.sticky-cta .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .feature-row, .feature-row.reverse {
        flex-direction: column;
    }
    
    .feature-img {
        order: -1; /* Image on top for mobile */
    }

    .btn-cta {
        width: 100%;
        max-width: 300px;
        font-size: 1rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

