/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7407ff;
    --primary-dark: #4a11ab;
    --secondary-color: #e50038;
    --text-dark: #212121;
    --text-light: #ffffff;
    --background-dark: #000000;
    --background-light: #f5f5f5;
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-light);
    background-color: var(--background-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Fixed */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#header.scrolled {
    background-color: rgba(0, 0, 0, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
    height: 80px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    margin-left: auto;
    margin-right: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: var(--transition);
    overflow: hidden;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.lang-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(116, 7, 255, 0.5);
}

.lang-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* Hero Section with Video */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
}

/* 모바일에서 히어로 높이 제한 */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
        min-height: 400px;
        max-height: 600px;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* CTA Button */
.cta-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: var(--text-light);
    color: var(--background-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(116, 7, 255, 0.3);
}

/* Stats Section */
.stats {
    background-color: var(--background-dark);
    padding: 2.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    color: var(--text-light);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.stat-item p {
    font-size: 0.95rem;
    font-weight: 400;
    color: #ccc;
}

/* 모바일에서도 4개 유지 */
@media (max-width: 768px) {
    .stats {
        padding: 2rem 0;
    }

    .stats-grid {
        gap: 1rem;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .stat-item p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stats {
        padding: 1.5rem 0;
    }

    .stats-grid {
        gap: 0.5rem;
    }

    .stat-item h3 {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }

    .stat-item p {
        font-size: 0.7rem;
    }
}

/* Section Common Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #999;
    font-weight: 300;
}

/* About Intro Section */
.about-intro {
    background-color: #0a0a0a;
    padding: 5rem 0;
}

.about-intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-intro-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #ccc;
}

/* What You'll Learn Section */
.about {
    background-color: var(--background-dark);
}

.learn-desc {
    max-width: 800px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
    color: #aaa;
}

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

.learn-item {
    background: #1a1a1a;
    padding: 0;
    overflow: hidden;
}

.learn-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1);
}

.learn-item h3 {
    padding: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

.learn-note {
    padding: 0 1.5rem 1.5rem;
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

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

.about-item {
    background: #1a1a1a;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.about-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(116, 7, 255, 0.4);
}

.about-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.about-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.about-item p {
    color: #aaa;
    line-height: 1.8;
}

/* Curriculum Timeline */
.curriculum {
    background: #0a0a0a;
}

.day-program {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.day-program li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: #aaa;
}

.day-program li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

.curriculum-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.curriculum-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    padding-left: 90px;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(116, 7, 255, 0.3);
}

.timeline-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.timeline-content p {
    color: #aaa;
    line-height: 1.8;
}

/* Trainers Section */
.trainers {
    background-color: var(--background-dark);
}

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

.trainers-two {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
}

.trainer-card {
    flex: 0 0 auto;
    max-width: 580px;
    transition: var(--transition);
}

.trainer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(116, 7, 255, 0.4);
}

.trainer-profile-img {
    width: 100%;
    height: auto;
    max-width: 580px;
    display: block;
    border-radius: 10px;
}

.trainer-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.trainer-info {
    padding: 2rem;
}

.trainer-card h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.trainer-card p {
    color: #aaa;
    line-height: 1.8;
}

/* 모바일에서 세로 배치 */
@media (max-width: 768px) {
    .trainers-two {
        flex-direction: column;
        gap: 2rem;
    }

    .trainer-card {
        max-width: 100%;
    }

    .trainer-profile-img {
        max-width: 100%;
    }
}

/* Reviews Section */
.reviews {
    background: #0a0a0a;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.review-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(116, 7, 255, 0.4);
}

.review-image {
    width: 100%;
    height: 0;
    padding-bottom: 75.41%; /* 305:230 비율 (230/305 = 0.7541) */
    background-color: #1a1a1a;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    position: relative;
}

.review-stars {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #ccc;
    padding: 1.5rem;
}

.review-author {
    font-weight: 700;
    color: var(--primary-color);
    padding: 0 1.5rem 1.5rem;
}

/* FAQ Section */
.faq {
    background-color: var(--background-dark);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #1a1a1a;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #252525;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.faq-toggle {
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer p {
    padding: 1rem 2rem 1.5rem;
    color: #aaa;
    line-height: 1.8;
}

/* Join Section */
.join {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
}

.join .section-header h2 {
    color: var(--text-light);
}

.join-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-item {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--text-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    margin: 0 auto 1.5rem;
}

.step-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.join-cta {
    text-align: center;
}

.join .cta-button {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.join .cta-button:hover {
    background-color: var(--background-dark);
    color: var(--text-light);
}

/* Partners Section */
.partners {
    background-color: var(--background-dark);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.partner-logo {
    height: 100px;
    background-color: #1a1a1a;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.partner-logo:hover {
    background-color: #252525;
    box-shadow: 0 5px 20px rgba(116, 7, 255, 0.3);
    transform: translateY(-5px);
}

/* Partner Countries Section */
.partner-countries {
    background-color: #0a0a0a;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 모바일에서 최소 2열 */
@media (max-width: 768px) {
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .country-item {
        padding: 1rem;
    }
}

.country-item {
    background: #1a1a1a;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.country-item:hover {
    background: #252525;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(116, 7, 255, 0.3);
}

.country-flag {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.country-name {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: var(--background-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.contact-item p {
    font-size: 1.1rem;
    color: #aaa;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid #333;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #1a1a1a;
    color: var(--text-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #252525;
}

/* Footer */
.footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 50% 25% 25%;
    gap: 3rem;
}

.footer-left {
    /* 50% */
}

.footer-left h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.footer-tagline {
    font-size: 1rem;
    color: #999;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-company-info {
    margin-top: 1.5rem;
}

.footer-company-info p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #b7b7b7;
    line-height: 1.6;
}

.footer-partner-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-partner-info .partner-label {
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-partner-info p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #b7b7b7;
    line-height: 1.6;
}

.footer-right {
    grid-column: 2 / 4;
}

.footer-links-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.footer-section a {
    display: block;
    color: #999;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    flex-direction: column;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-right {
        grid-column: 1;
    }

    .footer-links-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-links-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--background-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: var(--transition);
        margin-left: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .header-right {
        gap: 1rem;
    }

    .lang-switcher {
        margin-right: 1rem;
    }

    .lang-btn {
        width: 28px;
        height: 28px;
    }

    section {
        padding: 3rem 0;
    }

    .timeline-item {
        padding-left: 70px;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .curriculum-timeline::before {
        left: 25px;
    }
}

@media (max-width: 480px) {
    .about-grid,
    .trainers-grid,
    .reviews-grid,
    .countries-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 45vh;
        min-height: 350px;
        max-height: 500px;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    .country-flag {
        width: 40px;
        height: 40px;
    }

    .country-name {
        font-size: 1rem;
    }
}

/* Logo Image */
.logo-img {
    height: 56px; /* 헤더 높이 80px - 상하 4px씩 */
    width: auto;
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px; /* 모바일 헤더 70px - 상하 4px씩 */
    }
}
