/* Global Reset & Variables */
:root {
    --primary-color: #1A237E;
    --primary-light: #534bae;
    --primary-dark: #000051;
    --secondary-color: #F5F5F5;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --accent: #FFC107;
    /* Gold accent for awards/certs */
    --font-main: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    height: 70px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    /* Adjust based on header height */
    width: auto;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* ... (omitting unchanged nav styles if any) ... */

.nav-list a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color);
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(26, 35, 126, 0.3);
}

.nav-list .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    margin-top: 0;
    /* Header is fixed, but we want hero to be behind it potentially or just start at top */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.85) 0%, rgba(0, 0, 81, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    padding-top: 80px;
    /* Offset for fixed header */
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: #4FC3F7;
    /* Light Blue highlight */
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

.btn-hero {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.btn-hero:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Section Common */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Curriculum Section */
.curriculum {
    background-color: var(--secondary-color);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.curriculum-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-top: 5px solid transparent;
}

.curriculum-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-color);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.card-tags li {
    background-color: #E8EAF6;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Gallery Section - Carousel */
.gallery {
    background-color: var(--white);
}

.gallery-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    border-left: 5px solid var(--accent);
    padding-left: 15px;
    margin-bottom: 20px;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    /* Optimal width for displaying 2 photos */
    aspect-ratio: 3 / 1;
    /* Ratio for two side-by-side items */
    margin: 0 auto;
}

.carousel-track-container {
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.carousel.portrait {
    max-width: 500px;
    /* Narrower for vertical */
    aspect-ratio: 210 / 297;
    /* A4 Ratio */
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -20px;
}

.carousel-btn.next {
    right: -20px;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 10px 20px;
    font-size: 1rem;
    text-align: center;
}

.placeholder-slide {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #E0E0E0;
    color: #757575;
}

.placeholder-slide i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: #BDBDBD;
}

.placeholder-slide p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* SNS Section */
.sns {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.sns-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.sns-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.sns-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sns-btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.sns-btn.blog {
    background-color: #2DB400;
    /* Naver Green */
    color: white;
}

.sns-btn.insta {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.sns-btn.youtube {
    background-color: #FF0000;
    /* YouTube Red */
    color: white;
}

.sns-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: #121212;
    color: #B0B0B0;
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-map-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.naver-map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding: 8px 16px;
    background-color: #03C75A;
    /* Naver Green */
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.naver-map-link:hover {
    background-color: #02b350;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(3, 199, 90, 0.3);
}

.footer-info {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .curriculum-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        flex: 1 1 100%;
        height: 250px;
    }

    .gallery-item {
        height: 250px;
    }

    .slide-caption {
        display: none;
        /* Hide image captions on mobile */
    }

    .carousel-slide {
        width: 100% !important;
        /* Force 1 slide to show on mobile */
    }
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    padding: 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
}

.mobile-menu-overlay.active {
    display: block;
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    margin-bottom: 30px;
    cursor: pointer;
    float: right;
}

.mobile-nav-list {
    clear: both;
    margin-top: 20px;
}

.mobile-nav-list li {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.mobile-nav-list a {
    font-size: 1.1rem;
    font-weight: 500;
}