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

:root {
    /* Primary Background - Deep Navy */
    --deep-navy: #051628;

    /* Primary Accent - Sunrise Gold */
    --sunrise-gold: #F7D568;

    /* Secondary Accent - AI Teal */
    --ai-teal: #00CFCF;

    /* Neutral / Text Colors */
    --text-on-navy: #F9FAFB;
    --text-secondary: #9CA3AF;
    --text-on-light: #111827;

    /* Legacy color mappings */
    --primary-color: #00CFCF;
    --secondary-color: #F7D568;
    --accent-color: #00CFCF;
    --dark-bg: #051628;
    --light-bg: #f8fafc;
    --text-dark: #111827;
    --text-light: #9CA3AF;
    --white: #ffffff;

    /* Gradients */
    --gradient-1: linear-gradient(135deg, #00CFCF 0%, #00A8A8 100%);
    --gradient-2: linear-gradient(135deg, #F7D568 0%, #F5C842 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--ai-teal);
    color: var(--deep-navy);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--deep-navy);
    border-color: var(--ai-teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--ai-teal);
    border: 2px solid var(--ai-teal);
}

.btn-secondary:hover {
    background: rgba(0, 207, 207, 0.12);
    color: var(--ai-teal);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ai-teal);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:not(.nav-cta):hover {
    color: var(--primary-color);
}

.nav-menu a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-menu a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--ai-teal);
    color: var(--deep-navy) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
}

.nav-cta:hover {
    background: var(--white);
    border: 1px solid var(--ai-teal);
    color: var(--deep-navy) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--deep-navy);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 207, 207, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(247, 213, 104, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.hero-logo-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(247, 213, 104, 0.3));
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--text-on-navy);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .highlight {
    color: var(--ai-teal);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-on-navy);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-subtitle-en {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

/* Section Base Styles */
section {
    padding: 6rem 0;
}

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

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--sunrise-gold);
    border-radius: 2px;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 0.5rem;
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-text .lead {
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: 2rem;
}

.about-motto {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ai-teal);
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 207, 207, 0.05), rgba(0, 207, 207, 0.08));
    border-left: 4px solid var(--ai-teal);
    border-radius: 0.5rem;
}

.intro-box {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 207, 207, 0.1);
}

.intro-text {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.intro-text-en {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

/* Services Section */
.services {
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    /* 카드 폭을 조금 줄여서 데스크톱에서 4개가 한 줄에 들어가도록 조정 */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-title {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.service-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding-left: 0;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Programs Section */
.programs {
    background: var(--white);
}

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

.program-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.program-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-signature {
    background: linear-gradient(135deg, rgba(0, 207, 207, 0.05), rgba(247, 213, 104, 0.08));
    border-color: var(--ai-teal);
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.program-title {
    color: var(--text-dark);
    font-size: 1.35rem;
}

.program-badge {
    background: var(--gradient-2);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.program-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* 강조 문장이 더 잘 보이도록 */
.program-desc strong {
    color: var(--text-dark);
    font-weight: 600;
}

.program-features {
    list-style: none;
    padding-left: 0;
}

.program-features li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.program-features li:last-child {
    border-bottom: none;
}

.program-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Instructors Section */
.instructors {
    background: var(--light-bg);
}

.instructors-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.instructors-text .lead {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.instructors-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.instructors-features li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.8;
}

.instructors-features li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.instructors-note {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

.association-box {
    background: var(--white);
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--ai-teal);
}

.association-box p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin: 0;
}

.association-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1.5rem; /* 아래 여백만 적용 */
}

/* Why Us Section */
.why-us {
    background: var(--white);
}

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

.why-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.why-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.why-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.why-desc {
    color: var(--text-light);
    line-height: 1.8;
}

/* 왜 카드 안의 핵심 문장 강조 */
.why-desc strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

/* Partners Section */
.partners {
    background: var(--light-bg);
}

.partners-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

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

.partner-logo-placeholder {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.partners-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
}

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

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.9;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 1.25rem;
}

.contact-info {
    margin-top: 3rem;
    text-align: center;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-info .email-link {
    color: var(--ai-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info .email-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--ai-teal);
    background: rgba(0, 207, 207, 0.1);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 207, 207, 0.3);
}

.youtube-icon:hover {
    background: #FF0000;
    color: white;
}

.instagram-icon:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}

/* Footer */
.footer {
    background: var(--deep-navy);
    color: var(--text-on-navy);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand .footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 0.5rem;
}

.footer-brand h3 {
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 4rem 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 1rem;
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 6rem 0 3rem;
        min-height: 90vh;
    }

    .hero-logo-img {
        width: 150px;
        height: 150px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .services-grid,
    .programs-grid,
    .why-grid,
    .partners-logos {
        grid-template-columns: 1fr;
    }

    .instructors-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-brand .footer-logo {
        max-width: 180px;
        margin-left: auto;
        margin-right: auto;
    }

    .why-number {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-logo-img {
        width: 120px;
        height: 120px;
    }

    .service-card,
    .program-card,
    .why-card {
        padding: 1.5rem;
    }

    .association-box {
        padding: 1.5rem;
    }
}

/* Smooth Scroll Offset for Fixed Nav */
section {
    scroll-margin-top: 80px;
}
