/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8b6f5c;
    --secondary-color: #5c4a3a;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f6f3;
    --white: #ffffff;
    --accent: #d4a574;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 헤더 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-desktop a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 16px;
}

.nav-desktop a:hover {
    color: var(--primary-color);
}

/* 모바일 메뉴 토글 버튼 */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* 모바일 메뉴 */
.nav-mobile {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: var(--white);
    transition: left 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.nav-mobile ul {
    list-style: none;
    padding: 20px;
}

.nav-mobile li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.nav-mobile a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 500;
    display: block;
}

/* 히어로 섹션 */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,100 Q300,50 600,100 T1200,100 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat center;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 섹션 공통 스타일 */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto 0;
}

/* 소개 섹션 */
.about {
    background: var(--bg-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 40px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 16px;
    color: var(--text-light);
}

/* 프로그램 섹션 */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.program-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.program-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.program-age {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
}

.program-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
}

/* 강사 섹션 */
.instructor {
    background: var(--bg-light);
}

.instructor-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.instructor-info h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.instructor-title {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 30px;
}

.instructor-detail h4 {
    font-size: 20px;
    color: var(--text-dark);
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
}

.instructor-detail ul {
    list-style: none;
}

.instructor-detail li {
    font-size: 16px;
    color: var(--text-light);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.instructor-detail li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 연락처 섹션 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item strong {
    display: block;
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.info-item p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.contact-map {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    min-height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    padding: 40px;
}

/* 푸터 */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-info p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-link {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 스크롤 스무스 */
html {
    scroll-behavior: smooth;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .instructor-content {
        padding: 30px 20px;
    }

    section {
        padding: 60px 0;
    }
}

@media (min-width: 769px) {
    .nav-mobile {
        display: none;
    }
}
