/* Google Fonts: Inter (San Serif) & Gowun Batang (Korean Serif) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Gowun+Batang:wght@400;700&display=swap');

:root {
    /* Color Palette - Premium Pastel */
    --primary: #FFB7B2;
    /* Soft Coral */
    --secondary: #B2E2F2;
    /* Soft Sky Blue */
    --accent: #E2F0CB;
    /* Soft Mint */
    --background: #FFFAF0;
    /* Floral White */
    --text-dark: #2D3436;
    --text-light: #636E72;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

    /* Spacing */
    --section-padding: 100px 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1,
h2,
h3 {
    font-family: 'Gowun Batang', serif;
    font-weight: 700;
}

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

section {
    padding: var(--section-padding);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Gowun Batang', serif;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #EBF8FF 0%, #FFFFFF 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    text-align: left;
    margin-left: 330px;
}

.hero-video-wrapper {
    position: absolute;
    right: 55%;
    top: 50%;
    transform: translateY(-120%);
    width: 600px;
    z-index: 1;

    box-shadow: var(--shadow);
    overflow: hidden;
    opacity: 0.95;
    transition: all 0.5s ease;

}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero:hover .hero-video-wrapper {
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInLeft 0.8s ease forwards;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInLeft 1s ease forwards;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    animation: fadeInLeft 1.2s ease forwards;
}

.hero-btns {
    animation: fadeInLeft 1.4s ease forwards;
}

/* --- Floating Icons in Hero --- */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 클릭 방해 금지 */
    z-index: 3;
}

.f-icon {
    position: absolute;
    opacity: 0.8;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

/* 개별 튤립 위치 및 크기 상세 설정 */
.icon-1 { width: 85px; top: 12%; left: 8%; animation: floating 6.5s ease-in-out infinite; opacity: 0.9; }
.icon-2 { width: 65px; top: 22%; left: 82%; animation: floating 8.5s ease-in-out infinite 1.2s; opacity: 0.7; }
.icon-3 { width: 75px; bottom: 18%; left: 12%; animation: floating 7.5s ease-in-out infinite 0.7s; opacity: 0.8; }
.icon-4 { width: 55px; bottom: 12%; left: 78%; animation: floating 9.5s ease-in-out infinite 2.2s; opacity: 0.6; }
.icon-5 { width: 70px; top: 45%; left: 5%; animation: floating 10s ease-in-out infinite 3s; opacity: 0.75; }
.icon-6 { width: 60px; top: 55%; left: 85%; animation: floating 11s ease-in-out infinite 1.5s; opacity: 0.8; }
.icon-7 { width: 50px; top: 8%; left: 45%; animation: floating 12s ease-in-out infinite 4s; opacity: 0.65; }

@keyframes floating {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(40px, -25px) rotate(8deg);
    }
    66% {
        transform: translate(-40px, 15px) rotate(-8deg);
    }
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .f-icon {
        width: 40px !important;
        opacity: 0.6;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(255, 183, 178, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 183, 178, 0.6);
}

.btn-kakao {
    background: #FEE500;
    color: #3C1E1E;
}

/* --- Curriculum Section --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

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

.curriculum-card {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.curriculum-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.curriculum-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.curriculum-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Memory Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- Information Section --- */
.info-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.info-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.info-list {
    list-style: none;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 20px;
    color: var(--primary);
}

.info-text h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-text p {
    color: var(--text-light);
}

.map-container {
    width: 100%;
    height: 400px;
    background: #eee;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* --- Footer --- */
footer {
    background: #f8f9fa;
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-logo {
    font-family: 'Gowun Batang', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    color: var(--text-dark);
}

.footer-info {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.copyright {
    font-size: 0.8rem;
    color: #b2bec3;
}

/* --- Animations --- */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-video-wrapper {
        width: 50%;
        right: -2%;
        height: 60vh;
    }

    .info-layout {
        grid-template-columns: 1fr;
    }
}

/* --- Contact Form --- */
.contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--accent);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #EEE;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #FAFAFA;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 183, 178, 0.15);
}

.form-footer {
    margin-top: 30px;
}

/* --- Notices Board --- */
.notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.notice-card {
    background: #FFF;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #F0F0F0;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.notice-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.notice-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.notice-badge.type-공지 { background: var(--primary); color: #FFF; }
.notice-badge.type-수업 { background: var(--secondary); color: var(--text-dark); }

.notice-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.notice-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.notice-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: var(--text-light);
    font-style: italic;
}

@media (max-width: 992px) {
    .hero {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-video-wrapper {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 60px 20px;
    }
}