:root {
    /* Color Palette - Navy & White Theme */
    --primary-navy: #152B4D; /* Deep Navy Blue from logo */
    --primary-light: #2A4878;
    --accent-blue: #4A7ABF; /* Lighter blue for highlights */
    
    --bg-white: #ffffff;
    --bg-light: #f8f9fa; /* Very light grey for section contrast */
    --bg-dark: #0f1c33;
    
    --text-main: #333333;
    --text-navy: #152B4D;
    --text-light: #666666;
    --text-white: #ffffff;

    /* Typography */
    --font-kr: 'Noto Sans KR', sans-serif;
    --font-en: 'Montserrat', sans-serif;

    /* Spacing & Utilities */
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-kr);
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-navy);
    font-weight: 700;
}

.font-en {
    font-family: var(--font-en);
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.highlight {
    color: var(--accent-blue);
}

.highlight-navy {
    color: var(--primary-navy);
}

section {
    padding: 100px 0;
    position: relative;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-navy {
    background-color: var(--primary-navy);
    color: var(--text-white);
}

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

.center-text {
    text-align: center;
}

.card-shadow {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(21, 43, 77, 0.08);
    transition: var(--transition);
}

.card-shadow:hover {
    box-shadow: 0 15px 40px rgba(21, 43, 77, 0.12);
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-navy);
    color: var(--text-white);
    border: 2px solid var(--primary-navy);
}

.btn-primary:hover {
    background-color: var(--text-white);
    color: var(--primary-navy);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--primary-navy);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    height: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    max-height: 80px; /* Allow more height for the nav container to fit the logo */
    padding: 10px 0;
}

.logo-img {
    height: 100%;
    max-height: 60px; /* Adjusted for horizontal logo_1 */
    max-width: 250px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-navy);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: var(--text-navy);
    font-family: var(--font-en);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-blue);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    color: var(--primary-navy);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1577896851231-70ef18881754?q=80&w=2070&auto=format&fit=crop'); /* Placeholder education bg */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 43, 77, 0.85) 0%, rgba(42, 72, 120, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-motto {
    font-family: var(--font-en);
    color: var(--accent-blue);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero .main-title {
    font-size: clamp(40px, 6vw, 65px);
    color: var(--text-white);
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero .highlight {
    color: #ffd700; /* Goldish yellow accent for the hero specifically to pop against navy */
}

.hero-desc {
    font-size: clamp(18px, 3vw, 22px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Section Titles */
.section-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-navy);
}

.section-title.center-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.line-center {
    display: block;
    height: 4px;
    width: 60px;
    background-color: var(--accent-blue);
    margin-top: 15px;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 60px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 50px auto 0;
}

.about-text-box {
    padding: 50px;
    text-align: center;
    position: relative;
    border-top: 5px solid var(--primary-navy);
}

.quote-icon {
    font-size: 40px;
    color: rgba(74, 122, 191, 0.2);
    margin-bottom: 20px;
}

.greeting-highlight {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-navy);
    margin-bottom: 30px;
    line-height: 1.5;
}

.greeting-detail {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.greeting-detail strong {
    color: var(--primary-navy);
}

.signature {
    margin-top: 40px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-navy);
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Curriculum Section */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.curr-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.curr-img-box {
    height: 200px;
    background-color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
    position: relative;
}

.curr-elem {
    background: linear-gradient(135deg, #4ea8de, #023e8a);
}

.curr-mid {
    background: linear-gradient(135deg, #2A4878, #0f1c33);
}

.curr-info {
    padding: 30px;
    flex-grow: 1;
}

.curr-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge {
    font-size: 14px;
    padding: 5px 12px;
    background-color: var(--accent-blue);
    color: white;
    border-radius: 20px;
    font-weight: 500;
}

.badge-navy {
    background-color: var(--primary-navy);
}

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

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-main);
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-box {
    padding: 40px 30px;
    text-align: center;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: rgba(74, 122, 191, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    font-size: 35px;
    transition: var(--transition);
}

.feature-box:hover .icon-wrapper {
    background-color: var(--primary-navy);
    color: white;
    transform: scale(1.1);
}

.feature-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

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

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

.contact-section h2, .contact-section h3 {
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.logo-text-footer {
    font-family: var(--font-en);
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
}

.motto-footer {
    font-family: var(--font-en);
    color: #ffd700;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

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

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 18px;
}

.contact-list i {
    font-size: 24px;
    color: var(--accent-blue);
    margin-right: 20px;
    margin-top: 2px;
}

.contact-form-container {
    padding: 40px;
}

.contact-form-container h3 {
    color: var(--primary-navy);
    margin-bottom: 25px;
    font-size: 24px;
}

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

input, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-kr);
    font-size: 16px;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(21, 43, 77, 0.1);
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 25px 0;
    text-align: center;
}

.footer-text {
    font-family: var(--font-en);
    font-size: 14px;
}

/* Animations Trigger Classes */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Media Queries */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .contact-list li {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero .main-title {
        font-size: 36px;
    }
    
    .hero-cta {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .about-text-box {
        padding: 30px 20px;
    }
    
    .greeting-detail {
        font-size: 16px;
    }
}

/* Floating KakaoTalk Button */
.floating-kakao {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #FEE500;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-kakao:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.floating-kakao img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

/* Gallery Section */
.gallery-img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(21, 43, 77, 0.2);
    z-index: 10;
}
