
:root {
    --ivory: #FFFEF8;
    --pale-yellow: #FDF5E6;
    --text-dark: #544C4A;
    --text-light: #8A7F7D;
    --accent-color: #F7C85A;
    --accent-dark: #E6A736;
    --white: #FFFFFF;
    --border-color: #EDEAE4;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Gowun Dodum', sans-serif;
    background-color: var(--ivory);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
}

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

h1, h2, h3, h4 {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.content-section {
    padding: 80px 0;
    position: relative;
}

.content-section:nth-of-type(even) {
    background-color: var(--pale-yellow);
}

/* Header */
#header {
    background: var(--white);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
}

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

.logo {
    height: 50px;
}

#header nav a {
    color: var(--text-light);
    margin-left: 20px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
}

#header nav a:hover {
    color: var(--accent-dark);
}

/* Hero Section */
#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 50vh;
    min-height: 300px;
    max-height: 400px;
    padding-top: 80px;
    background-image: linear-gradient(rgba(255, 253, 245, 0.7), rgba(255, 253, 245, 0.7)), url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-dark);
}

.hero-title {
    font-family: 'Gowun Dodum', cursive;
    font-size: 4.5rem;
    font-weight: normal;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.3rem;
    letter-spacing: 2px;
}


/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}
.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.about-text p {
    margin-bottom: 15px;
}

.about-images {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.about-img {
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-images img:first-child {
    grid-row: span 2;
    height: calc(100% - 7.5px);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.cta-button {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background-color: var(--accent-dark);
    color: var(--white);
}

/* Classes Section */
.class-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.class-flyers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}
.class-flyers img {
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}
.class-flyers img:hover {
    transform: translateY(-5px);
}
.class-details {
    display: grid;
    grid-template-columns: minmax(auto, 600px);
    gap: 30px;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 60px;
}
.class-info-card {
    background-color: var(--white);
    padding: 25px 35px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.class-info-card h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}
.class-info-card ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}
.class-info-card ul li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}
.class-info-card ul li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Info Section */
#info {
    background-color: var(--pale-yellow);
}

.location-wrapper {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 30px;
    align-items: stretch;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 500px;
}

.mobile-map-link {
    display: none;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.mobile-map-link:hover {
    background-color: var(--accent-dark);
    color: var(--white);
}

.details-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.details-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.details-card > p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.detail-block {
    margin-bottom: 20px;
}

.detail-block h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.detail-block p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.entrance-photo {
    width: 100%;
    border-radius: 10px;
    margin-top: auto;
    padding-top: 20px;
}

.details-card .cta-button {
    margin-top: 20px;
    width: 100%;
}

/* Footer */
#contact {
    background-color: var(--text-dark);
    color: var(--pale-yellow);
    text-align: center;
    padding: 60px 0;
}
#contact .section-title {
    color: var(--white);
}
#contact .phone-number {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}
#contact .phone-number a {
    color: var(--accent-color);
}
#contact .phone-number a:hover {
    text-decoration: underline;
}

.social-links {
    margin: 30px 0;
}
.social-links a {
    color: var(--pale-yellow);
    margin: 0 15px;
    font-size: 1.2rem;
    font-family: 'Noto Sans KR', sans-serif;
}
.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .location-wrapper {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        display: none;
    }
    
    .mobile-map-link {
        display: block;
    }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    .section-title { font-size: 1.8rem; margin-bottom: 30px; }
    .content-section { padding: 60px 0; }
    #header .container { flex-direction: column; gap: 10px; }
    #header nav { margin-top: 0; }
    #header nav a { margin: 0 8px; font-size: 0.9rem; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .about-content { flex-direction: column; }
    .class-flyers, .class-details, .info-grid { grid-template-columns: 1fr; }
    #hero {
        height: 40vh;
        min-height: 250px;
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 8px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .class-info-card {
        padding: 20px;
    }
    
    .class-info-card h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .class-info-card ul li {
        margin-bottom: 10px;
    }
    .class-details {
        margin-bottom: 40px;
    }
    
    .class-flyers {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    #header { padding: 10px 0; }
    .logo { height: 40px; }
    #header nav a { font-size: 0.8rem; margin: 0 4px;}
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .about-images { grid-template-columns: 1fr; }
    .about-images img:first-child { grid-row: auto; height: auto; }
    #hero {
        height: 35vh;
        min-height: 200px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 5px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}
