/* === CSS RESET & GLOBAL STYLES (v6.4) === */
:root {
    --deep-blue: #1E3A5E;
    --point-orange: #E67E22;
    --point-red: #E74C3C;
    --bright-red: #FF4742;
    --gold: #F1C40F;
    --purple: #8E44AD;
    --pastel-pink: #FADADD;
    --pastel-blue: #EBF5FB;
    --text-dark: #34495E;
    --text-light: #85929E;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F8F9F9;
    --footer-bg: #2C3E50;
    --border-color: #EAEDED;
    --radius: 16px;
    --radius-small: 12px;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    letter-spacing: -0.03em;
    overflow-x: hidden;
}
body.nav-open {
    overflow: hidden; /* Prevent background scroll when nav is open */
}


img, video, canvas, svg { max-width: 100%; height: auto; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section-light-bg { background-color: var(--bg-light-gray); }
.section-title, .section-title-v3 { text-align: center; font-size: 3rem; font-weight: 900; color: var(--deep-blue); margin-bottom: 70px; line-height: 1.45; }
h2.section-title, h2.section-title-v3 { font-size: 3rem; }
h3, h4, h5 { font-weight: 700; color: var(--deep-blue); text-align: center; }

/* === HEADER & NAVIGATION (v6.4) === */
.site-header {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.7rem; font-weight: 900; color: var(--deep-blue); text-decoration: none; }

/* Desktop Navigation */
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 32px; }
.main-nav a { text-decoration: none; color: var(--text-dark); font-weight: 700; font-size: 1rem; transition: color 0.3s; }
.main-nav a:hover { color: var(--point-orange); }
.nav-contact-btn { background-color: var(--point-orange); color: white !important; padding: 8px 22px; border-radius: var(--radius); transition: all 0.3s; box-shadow: var(--shadow-soft); }
.nav-contact-btn:hover { background-color: #D35400; transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* Mobile Navigation Toggle (Hamburger) */
.mobile-nav-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above the header but below the nav menu */
}
.hamburger-line { display: block; width: 25px; height: 3px; background-color: var(--deep-blue); margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease; }


/* === HERO === */
.hero-section { padding: 0; line-height: 0; }

/* === BENEFITS SECTION === */
#benefits .common-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-bottom: 80px; }
.benefit-card { background: var(--bg-white); padding: 35px 30px; text-align: center; border-radius: var(--radius-small); box-shadow: var(--shadow-soft); transition: all 0.3s; }
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.benefit-card .icon { font-size: 2.8rem; margin-bottom: 15px; }
.benefit-card h4 { font-size: 1.3rem; margin-bottom: 10px; }
.benefit-card .small-text { font-size: 0.9rem; color: var(--text-light); }
.benefits-comparison { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.benefit-tier { flex: 1 1 400px; max-width: 450px; padding: 40px; border-radius: var(--radius-small); box-shadow: var(--shadow-soft); border: 2px solid var(--border-color); }
.benefit-tier ul { list-style: none; }
.benefit-tier li { margin-bottom: 15px; font-size: 1.1rem; }
.benefit-tier.regular { background-color: #F8F9F9; }
.benefit-tier.premium { background-color: var(--bg-white); border-width: 2px; border-style: solid; border-image: linear-gradient(to right, var(--gold), var(--purple)) 1; }
.benefit-tier.premium h4 { color: var(--purple); }
.benefit-tier.premium .highlight { font-weight: 900; font-size: 1.3rem; color: var(--purple); }

/* === PRICING SECTION (GRID & PRICE STACK RESET) === */
#pricing.section { width: 100%; padding: 80px 20px; }

.section-title-v3 { margin-bottom: 20px; }
.section-subtitle-v3 { text-align: center; font-size: 1.1rem; color: var(--text-dark); max-width: 800px; margin: 0 auto 60px; }
.price-comparison-bar { display: flex; justify-content: center; align-items: stretch; background-color: #F2F3F4; border-radius: var(--radius); margin-bottom: 70px; padding: 20px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.04); flex-wrap: wrap; }
.bar-item { flex: 1; padding: 20px 30px; text-align: center; display: flex; flex-direction: column; justify-content: center; min-width: 300px; }
.bar-item .label { font-weight: 700; font-size: 1.2rem; color: var(--text-light); margin-bottom: 8px; }
.bar-item .price-range { font-size: 1rem; color: var(--text-light); }
.bar-item.yeoshin { background-color: var(--bg-white); border-radius: calc(var(--radius) - 5px); box-shadow: var(--shadow-soft); }
.bar-item.yeoshin .label { color: var(--deep-blue); font-size: 1.3rem; }
.bar-item.yeoshin .price-range { color: var(--point-orange); font-weight: 700; font-size: 1.1rem; }
.bar-item-vs { display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 900; color: var(--border-color); padding: 0 20px; }

.pricing-cards {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto !important;
}

.price-card {
    position: relative !important;
    width: 100%;
    box-sizing: border-box !important;
    background: var(--bg-white);
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-soft);
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}

.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.price-card h5 { font-size: 1.4rem; line-height: 1.4; margin-bottom: 15px; font-weight: 800; }

.score-badge { background-color: var(--pastel-blue); color: var(--deep-blue); padding: 8px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; display: inline-block; margin-bottom: 25px; line-height: 1.5; white-space: nowrap; }

.price-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 20px;
}

.original-price {
    font-size: 0.95rem;
    color: #999999;
    text-decoration: line-through;
}

.final-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--point-orange);
}

.price-card.all-care-card .final-price { color: var(--bright-red); }
.price-card.premium-price .final-price {
    font-size: 2.5rem;
    color: #E53E3E;
    font-weight: 900;
}

.price-card.premium-price { border-width: 2px; border-style: solid; border-image: linear-gradient(to right, var(--gold), var(--purple)) 1; }

.premium-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -18px;
    white-space: nowrap;
    background: var(--point-red);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 900;
    box-shadow: 0 8px 15px rgba(231, 76, 60, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse { 0% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.05); } 100% { transform: translateX(-50%) scale(1); } }

/* === TIMETABLE SECTION === */
.timetable-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.timetable-col { background-color: var(--bg-white); padding: 35px; border-radius: var(--radius-small); box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); }
.timetable-col h4 { font-size: 1.5rem; margin-bottom: 30px; }
.timetable-col ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.timetable-col li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 10px; border-bottom: 1px solid var(--border-color); gap: 8px; white-space: nowrap; }
.timetable-col li:last-child { border-bottom: none; }

.timetable-col .time { font-size: 1.3rem; font-weight: 700; color: var(--deep-blue); }
.timetable-col .class-name { font-size: 1.1rem; font-weight: 500; }
.timetable-col .score-badge-small { background-color: var(--pastel-pink); color: var(--point-red); padding: 5px 15px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; display: inline-block; line-height: 1.5; }

.timetable-col .divider { margin: 20px 0; border: 0; height: 1px; background-color: #DEE2E6; }
.timetable-col.premium-col { background: linear-gradient(135deg, #fdf4f4, #f4f6ff); border: 2px solid; border-image: linear-gradient(to right, var(--gold), var(--purple)) 1; }
.timetable-banner { background: var(--deep-blue); color: white; text-align: center; padding: 22px; font-size: 1.5rem; font-weight: 700; border-radius: var(--radius-small); margin-top: 60px; box-shadow: var(--shadow-soft); }

/* === INSTRUCTOR SECTION === */
.instructor-container { display: flex; align-items: center; gap: 70px; flex-wrap: wrap; justify-content: center; }
.instructor-image-box { flex-shrink: 0; }
.instructor-image { width: 100%; max-width: 350px; border-radius: var(--radius-small); box-shadow: var(--shadow-soft); }
.instructor-info-box { flex: 1; text-align: left; min-width: 300px; }
.instructor-badge { display: inline-block; background-color: var(--pastel-pink); color: var(--point-red); padding: 6px 16px; border-radius: 50px; font-weight: 700; font-size: 0.95rem; margin-bottom: 20px; }
.instructor-name { font-size: 3rem; font-weight: 900; color: var(--deep-blue); line-height: 1.2; margin: 0; text-align: left; }
.instructor-title { font-size: 1.3rem; font-weight: 700; color: var(--text-light); margin-bottom: 30px; text-align: left; }
.instructor-history { list-style: none; margin-bottom: 30px; padding-left: 0; }
.instructor-history li { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 12px; }
.instructor-history li strong { color: var(--deep-blue); }
.instructor-quote { font-size: 1.15rem; font-style: italic; color: var(--point-orange); text-align: left; }

/* === REVIEWS SECTION === */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.reviews-container { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent); mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent); }
.reviews-track { display: flex; gap: 30px; width: max-content; animation: marquee 30s linear infinite; }
.reviews-track:hover { animation-play-state: paused; }
.review-card { width: 380px; flex-shrink: 0; background: var(--bg-white); border-radius: var(--radius-small); box-shadow: var(--shadow-soft); padding: 30px; }
.review-stars { color: var(--gold); font-size: 1.5rem; margin-bottom: 15px; }
.review-card p { line-height: 1.7; }
.review-card strong { color: var(--point-red); font-weight: 900; }

/* === LOCATION SECTION === */
.location-container { display: flex; align-items: center; gap: 70px; flex-wrap: wrap; justify-content: center; }
.location-map-image { flex: 1 1 400px; object-fit: cover; border-radius: var(--radius-small); box-shadow: var(--shadow-soft); max-width: 50%; }
.location-text { flex: 1 1 400px; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.location-text .section-title { text-align: left; }
.location-text p { margin-bottom: 25px; font-size: 1.15rem; line-height: 1.9; }
.location-text strong { font-weight: 700; color: var(--deep-blue); }


/* === FOOTER === */
.site-footer { background-color: var(--deep-blue); color: white; padding: 45px 24px; text-align: center; }
.footer-row { margin-bottom: 12px; }
.footer-row:last-child { margin-bottom: 0; }
.footer-row-content { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 15px; }
.footer-brand { font-size: 1.1rem; font-weight: bold; color: white; }
.footer-row:nth-child(2) .footer-row-content, .footer-row:nth-child(2) span { color: #e0e0e0; font-size: 0.9rem; }
.footer-copyright { font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); }
.separator { color: rgba(255, 255, 255, 0.4); }


/* === RESPONSIVE STYLES (v6.4 - MOBILE NAV FIX) === */
@media (max-width: 992px) {
    .section { padding: 90px 0; }
    .section-title, .section-title-v3 { font-size: 2.6rem; margin-bottom: 60px; }
    h2.section-title, h2.section-title-v3 { font-size: 2.6rem; }
    #benefits .common-benefits, .timetable-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-cards { grid-template-columns: repeat(2, 1fr) !important; }
    .instructor-container .instructor-info-box, .instructor-container .instructor-name, .instructor-container .instructor-title, .instructor-container .instructor-quote, .location-container .location-text, .location-container .section-title { text-align: center; }

    /* --- Mobile Navigation Active --- */
    .mobile-nav-toggle {
        display: block; /* Show hamburger */
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 320px; /* Control max width */
        height: 100vh;
        background-color: var(--bg-white);
        transform: translateX(100%); /* Hidden by default */
        transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
        box-shadow: -8px 0 25px rgba(0,0,0,0.1);
        z-index: 1002; /* Above everything */
        padding-top: 80px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .main-nav.active {
        transform: translateX(0); /* Show menu */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 16px 30px;
        font-size: 1.25rem;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        font-weight: 500;
    }

    .nav-contact-btn {
        margin: 25px 30px;
        text-align: center;
        padding: 14px 22px;
        width: calc(100% - 60px);
    }
    
    .mobile-nav-toggle.active {
        z-index: 1003; /* Ensure toggle is above overlay */
    }

    .mobile-nav-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-nav-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .section-title, .section-title-v3 { font-size: 2.2rem; margin-bottom: 50px; }
    h2.section-title, h2.section-title-v3 { font-size: 2.2rem; }
    .section-subtitle-v3 { margin-bottom: 40px; }
    .site-header { padding: 15px 20px; }
    #benefits .common-benefits, .timetable-grid, .pricing-cards { grid-template-columns: 1fr !important; }
    .instructor-name { font-size: 2.2rem; }
    .reviews-track { animation-duration: 20s; }
}

@media (max-width: 576px) {
    .section { padding: 50px 0; }
    .container { padding: 0 20px; }
    .section-title, .section-title-v3 { font-size: 1.9rem; margin-bottom: 40px; }
    h2.section-title, h2.section-title-v3 { font-size: 1.9rem; }
    .logo { font-size: 1.5rem; }
    .benefit-card { padding: 25px 20px; }
    .benefit-tier { padding: 30px 25px; }
    .price-card { padding: 30px 25px; }
    .price-card h5 { font-size: 1.3rem; }
    .final-price { font-size: 1.8rem; }
    .price-card.premium-price .final-price { font-size: 2.2rem; }
    .premium-badge { font-size: 1rem; padding: 10px 22px; }
    .timetable-col { padding: 30px 20px; }
    .timetable-banner { font-size: 1.2rem; padding: 20px; }
    .instructor-image { max-width: 250px; }
    .footer-row-content { gap: 5px 10px; text-align: center; }
    .footer-row:nth-child(2) .footer-row-content, .footer-row:nth-child(2) span { font-size: 0.85rem; }
    .separator { display: none; }
}
