/* Smarty & Nature Design System */
:root {
    --color-forest: #A8E6CF;
    /* Pastel Green */
    --color-forest-dark: #66BB6A;
    --color-sun: #FFF176;
    /* Pastel Yellow */
    --color-sun-dark: #FFD54F;
    --color-sky: #B3E5FC;
    /* Pastel Blue */
    --color-sky-dark: #4FC3F7;
    --color-pink: #F8BBD0;
    --color-text: #4e342e;
    --color-bg: #FDFBF7;
    /* Light Paper Texture color */

    --radius-round: 30px;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.05);
}

@font-face {
    font-family: 'NanumSquareRound';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_two@1.0/NanumSquareRound.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'NanumSquareRound', 'Pretendard', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Layout Utilities */
.hidden-intro {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    position: absolute;
    z-index: -1;
}

.hidden-content {
    opacity: 0;
}

.portal-layout {
    max-width: 100%;
    overflow-x: hidden;
}

/* Top Utility Bar */
.top-utility-bar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.utility-inner {
    width: 100%;
    /* max-width: 1200px; Removed for full width alignment */
    /* margin: 0 auto; */
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding: 0 20px;
    font-weight: bold;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.utility-inner a {
    color: var(--color-text);
    padding: 5px 10px;
    border-radius: 15px;
    transition: background 0.3s;
}

.utility-inner a:hover {
    background: var(--color-forest);
    color: white;
}

/* Header Image Area */
.main-header-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header Right Group */
.header-right-group {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 20;
    align-items: stretch;
}

/* Social Button (Opaque Style) */
.glass-social-btn {
    background: #FFD54F;
    /* Pastel Orange/Yellow - Darker Sun */
    border: 2px solid white;
    padding: 0 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4e342e;
    /* Dark Brown Text */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background 0.3s;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    width: 150px;
    /* Fixed width for consistency */
}

.glass-social-btn:hover {
    transform: translateY(-3px);
    background: #FFCA28;
    /* Slightly darker on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Opaque Link for Horace Mann */
.horace-mann-glass-btn {
    /* position: absolute; - Removed for group */
    /* top: 20px; - Removed for group */
    /* right: 20px; - Removed for group */
    background: #1A237E;
    /* Navy Blue */
    border: 2px solid #FFEB3B;
    /* Yellow Border for pop */
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    transition: transform 0.3s, background 0.3s;
    z-index: 10;
}

.horace-mann-glass-btn:hover {
    transform: translateY(2px);
    background: rgba(255, 255, 255, 0.3);
}

.horace-mann-glass-btn .eng {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.9;
}

.horace-mann-glass-btn .kor {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 2px;
}

/* Decorative Overlay */
.header-overlay-deco {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
}

.deco-text {
    width: 100%;
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.deco-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.deco-text p {
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    opacity: 1;
}

/* Central Navigation Menu */
.central-menu-container {
    max-width: 1200px;
    margin: -50px auto 50px;
    /* Overlap header */
    padding: 0 20px;
    position: relative;
    z-index: 20;
}

.central-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 15px;
}

.menu-card {
    background: white;
    border-radius: var(--radius-round);
    padding: 25px 10px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.menu-card:hover {
    transform: translateY(-10px);
}

/* Card Colors */
.color-forest {
    border-top: 5px solid var(--color-forest);
}

.menu-card.color-forest:hover {
    background: var(--color-forest);
    color: white;
}

.color-mint {
    border-top: 5px solid #80CBC4;
}

.menu-card.color-mint:hover {
    background: #80CBC4;
    color: white;
}

.color-sun {
    border-top: 5px solid var(--color-sun-dark);
}

.menu-card.color-sun:hover {
    background: var(--color-sun-dark);
    color: white;
}

.color-earth {
    border-top: 5px solid #D7CCC8;
}

.menu-card.color-earth:hover {
    background: #D7CCC8;
    color: white;
}

.color-sky {
    border-top: 5px solid var(--color-sky-dark);
}

.menu-card.color-sky:hover {
    background: var(--color-sky-dark);
    color: white;
}

.color-pink {
    border-top: 5px solid var(--color-pink);
}

.menu-card.color-pink:hover {
    background: var(--color-pink);
    color: white;
}

.color-orange {
    border-top: 5px solid #FFAB91;
}

.menu-card.color-orange:hover {
    background: #FFAB91;
    color: white;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 5px;
    transition: background 0.3s;
}

.menu-card:hover .icon-circle {
    background: rgba(255, 255, 255, 0.3);
}

/* Content Grid */
.content-grid-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    /* Gallery takes more space, news side, diet side */
    gap: 20px;
}

@media (max-width: 1024px) {
    .central-menu {
        grid-template-columns: repeat(4, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .central-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Board Widgets */
.content-board {
    background: white;
    border-radius: var(--radius-round);
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.board-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--color-text);
}

.more-btn {
    font-weight: bold;
    color: #888;
    font-size: 0.9rem;
}

/* Gallery Specific */
.gallery-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 150px 150px;
    gap: 15px;
}

.g-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g-item.main {
    grid-row: span 2;
}

.g-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    font-size: 0.9rem;
}

/* Intro Screen */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    background: black;
    display: flex;
    flex-direction: column;
    /* Stack message and buttons */
    justify-content: center;
    align-items: center;
}

.intro-bg-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.intro-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 1s ease;
}

.intro-bg.blurred {
    filter: blur(10px) brightness(0.7);
}

.intro-overlay {
    position: relative;
    z-index: 10;
}

.entrance-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    transition: opacity 1s;
}

.entrance-buttons.show {
    opacity: 1;
}

.btn-enter {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 20px 40px;
    border-radius: 40px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transition: transform 0.2s;
}

.btn-enter:hover {
    transform: scale(1.1);
}

.intro-message {
    text-align: center;
    color: white;
    margin-bottom: 50px;
    opacity: 0;
    transition: opacity 1s, transform 1s;
    transform: translateY(20px);
}

.intro-message.show {
    opacity: 1;
    transform: translateY(0);
}

.intro-message p {
    font-size: 1.4rem;
    margin: 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.intro-message h2 {
    font-size: 2rem;
    margin-top: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}


/* Footer Nature */
#nature-footer {
    margin-top: 100px;
    position: relative;
}

.footer-nature-bg {
    height: 150px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to top, #81C784 0%, #C8E6C9 50%, transparent 100%);
}

.hill {
    position: absolute;
    border-radius: 50% 50% 0 0;
    bottom: 0;
}

.hill-1 {
    width: 120%;
    height: 100px;
    left: -10%;
    background: #66BB6A;
}

.hill-2 {
    width: 100%;
    height: 80px;
    left: 20%;
    background: #81C784;
}

.trees span {
    position: absolute;
    bottom: 20px;
    font-size: 2rem;
    animation: sway 3s infinite ease-in-out alternate;
}

.trees span:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.trees span:nth-child(2) {
    left: 30%;
    animation-delay: 1s;
}

.trees span:nth-child(3) {
    left: 70%;
    animation-delay: 0.5s;
}

.trees span:nth-child(4) {
    left: 85%;
    animation-delay: 1.5s;
}

@keyframes sway {
    from {
        transform: rotate(-5deg);
    }

    to {
        transform: rotate(5deg);
    }
}

.footer-content {
    background: #81C784;
    color: var(--color-text);
    padding: 40px 20px;
    text-align: center;
}

.family-sites {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.site-badge {
    background: #66BB6A;
    /* Darker green for contrast */
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s, transform 0.2s;
}

.site-badge:hover {
    background: #43A047;
    transform: translateY(-2px);
}

.copyright-info {
    color: white;
    margin-top: 20px;
    font-size: 0.9rem;
}

.copyright-info p {
    color: white;
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 600px) {
    .central-menu {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid-layout {
        display: flex;
        flex-direction: column;
    }

    .entrance-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .btn-enter {
        width: 80%;
        max-width: 300px;
        font-size: 1.2rem;
        padding: 15px 20px;
    }
}

/* =========================================
   Horace Mann English Academy Specific Styles
   ========================================= */

:root {
    --color-navy: #1A237E;
    --color-yellow: #FFEB3B;
    --color-yellow-dark: #FBC02D;
}

.horace-body {
    background-color: #f5f5f5;
    font-family: 'NanumSquareRound', 'Pretendard', sans-serif;
}

/* Horace Nav */
.horace-nav {
    background: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 45px;
    /* Below utility bar */
    z-index: 100;
}

.h-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
    display: flex;
    align-items: center;
}

.h-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.h-logo-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .h-logo {
        font-size: 1.15rem;
    }

    .h-logo-img {
        height: 30px;
        width: 30px;
    }
}

.h-menu a {
    margin-left: 25px;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.h-menu a:hover {
    color: var(--color-navy);
}

.h-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-navy);
    cursor: pointer;
    padding: 4px 10px;
    line-height: 1;
}

@media (max-width: 768px) {
    .horace-nav {
        padding: 12px 20px;
        flex-wrap: wrap;
    }

    .h-hamburger {
        display: block;
    }

    .h-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 12px;
        margin-top: 10px;
        border-top: 1px solid #eee;
        gap: 4px;
    }

    .h-menu.open {
        display: flex;
    }

    .h-menu a {
        margin-left: 0;
        padding: 10px 12px;
        border-radius: 8px;
        display: block;
    }

    .h-menu a:hover {
        background: #f0f4ff;
    }
}

/* Horace Hero */
/* Horace Hero Slider */
.horace-hero {
    position: relative;
    height: 600px;
    color: white;
    text-align: center;
    overflow: hidden;
    background: #000;
}

.h-hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.h-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.75s ease-in-out;
    background-size: cover;
    background-position: center;
}

.h-slide.active {
    opacity: 1;
}

/* Slide Zoom Animation */
.h-slide.active {
    animation: slowZoom 7s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.h-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 126, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.h-hero-content {
    max-width: 800px;
    padding: 20px;
}

.h-slogan-sub {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 300;
    color: var(--color-yellow);
}

.h-hero-title {
    font-size: 3.5rem;
    margin: 0 0 20px;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.h-slogan-main {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.h-hero-msg {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Sections */
.h-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.h-section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-navy);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.h-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-yellow-dark);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Activity Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.smart-card {
    background: white;
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.smart-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 35, 126, 0.1);
    border-color: var(--color-navy);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.smart-card h3 {
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.smart-card p {
    color: #666;
    line-height: 1.6;
}

/* Timeline */
.timeline-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 50px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #eee;
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.t-circle {
    width: 60px;
    height: 60px;
    background: var(--color-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(2) .t-circle {
    background: var(--color-yellow-dark);
}

.t-content h4 {
    color: var(--color-navy);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

/* Connect Link */
.connect-kinder {
    text-align: center;
    margin: 100px 0;
    background: #E8F5E9;
    /* Light green tint */
    padding: 60px 20px;
}

.btn-kinder-link {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 40px;
    background: #4CAF50;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.2s, background 0.2s;
}

.btn-kinder-link:hover {
    transform: scale(1.05);
    background: #388E3C;
}

@media (max-width: 768px) {
    .h-menu {
        display: none;
    }

    /* Simplified for now */
    .timeline-container {
        flex-direction: column;
        gap: 40px;
    }

    .timeline-container::before {
        width: 4px;
        height: 100%;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }
}

/* =========================================
   Global Mobile Optimization (User Request)
   ========================================= */

@media (max-width: 768px) {

    /* 1. Reset Fixed Widths to Flexible % */
    .utility-inner,
    .central-menu-container,
    .content-grid-section,
    .h-section,
    .page-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    /* 2. Text Sizing (Reduced for harmony) */
    html {
        font-size: 15px;
        /* Slightly smaller base than desktop default */
    }

    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
    }

    p,
    .diet-menu,
    .post-content {
        font-size: 1rem !important;
        line-height: 1.6;
        word-break: keep-all;
        padding: 0 5px;
        /* Ensure text doesn't touch edges */
    }

    /* 3. Header & Navigation */
    /* 3. Header & Navigation (Fixed Flow) */
    .main-header-image {
        height: auto !important;
        min-height: auto !important;
        display: flex;
        flex-direction: column;
        padding-bottom: 0;
        overflow: visible;
    }

    .main-header-image img {
        position: relative;
        width: 100%;
        height: 250px;
        object-fit: cover;
        order: 2;
        transform: none !important;
    }

    .header-right-group {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        padding: 20px 20px 10px;
        background: white;
        display: flex;
        flex-direction: column;
        gap: 10px;
        order: 1;
        z-index: 10;
        margin: 0;
    }

    /* Buttons: Vertical & Solid Color for Contrast */
    .glass-social-btn,
    .horace-mann-glass-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 15px;
        justify-content: center;
        text-align: center;
        font-size: 1rem;
        background: var(--color-forest);
        /* Solid Green */
        color: white;
        border: none;
        backdrop-filter: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        margin: 0;

        /* Active/Hover State */
        .side-menu-item:hover,
        .side-menu-item.active {
            background: var(--color-forest-dark);
            color: white;
            border-color: var(--color-forest-dark);
            transform: translateX(5px);
            box-shadow: 0 4px 10px rgba(102, 187, 106, 0.2);
        }

        .side-menu-item.active::after {
            content: '👉';
            position: absolute;
            right: 15px;
        }
    }

    .glass-social-btn:hover,
    .horace-mann-glass-btn:hover {
        background: var(--color-forest-dark);
        transform: translateY(-2px);
    }

    .horace-mann-glass-btn .eng {
        display: block;
        font-size: 0.85rem;
        opacity: 0.9;
        margin-bottom: 2px;
    }

    /* Show decorative title below image */
    .header-overlay-deco {
        display: block;
        position: relative;
        background: var(--color-sky-dark);
        width: 100%;
        height: auto;
        padding: 40px 20px;
        order: 3;
        bottom: auto;
        left: auto;
    }

    .deco-text h2 {
        text-shadow: none;
    }

    .deco-text p {
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(5px);
    }

    /* 4. Menu Vertical Stack */
    .central-menu {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .menu-card {
        flex-direction: row;
        align-items: center;
        padding: 20px;
        min-height: 70px;
        text-align: left;
    }

    .icon-circle {
        margin-bottom: 0;
        margin-right: 20px;
        min-width: 50px;
        height: 50px;
    }

    .menu-text {
        font-size: 1.2rem;
        font-weight: bold;
    }

    /* 5. Intro Screen Buttons */
    .entrance-buttons {
        flex-direction: column;
        width: 80%;
    }

    @media screen and (max-width: 600px) {
        .entrance-buttons {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            width: 100% !important;
            margin: 0 auto !important;
            /* 가로 중앙 정렬 보장 */
            left: 0 !important;
            right: 0 !important;
        }

        .btn-enter {
            width: 80% !important;
            max-width: 300px !important;
            margin: 10px 0 !important;
            /* 버튼 사이 간격 */
        }
    }

    /* 6. Content Grids & Widgets */
    .content-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid-layout {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .g-item {
        width: 100%;
        height: 250px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Common Mobile Styling for Page Titles and Buttons */
    @media screen and (max-width: 600px) {
        .page-title {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
            font-size: 1.5rem;
            /* Adjust title size */
        }

        .admin-controls {
            align-self: flex-end;
            /* Move button to right under title or change as needed */
            width: 100%;
            text-align: right;
        }

        .btn-write {
            display: inline-block;
            padding: 8px 16px;
            font-size: 0.9rem;
        }
    }

    /* Fix image preview containment */
    .post-item img,
    .diet-card img,
    .gallery-item img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
        /* Ensure full image is visible */
        background-color: #f0f0f0;
        /* See bounds */
    }

    .diet-list {
        grid-template-columns: 1fr;
    }

    /* 7. Utility Bar */
    .utility-inner {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .utility-inner a {
        padding: 8px 12px;
        background: #f0f0f0;
        /* Slight bg for touch target visibility */
        border-radius: 20px;
    }
}

/* 맨 아래에 이 코드를 덮어씌우거나 추가하세요 */
@media screen and (max-width: 768px) {

    /* 1. 이미지 위에 떠 있던 버튼 그룹을 아래로 내림 */
    .header-right-group {
        position: relative !important;
        /* absolute 해제 */
        top: 0 !important;
        right: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        /* 세로 정렬 */
        width: 100% !important;
        padding: 20px !important;
        background: white !important;
        /* 이미지와 겹치지 않게 흰 배경 추가 */
        box-sizing: border-box !important;
    }

    /* 2. 각 버튼이 화면 꽉 차게 조절 */
    .glass-social-btn,
    .horace-mann-glass-btn {
        width: 100% !important;
        margin: 5px 0 !important;
        background: var(--color-forest) !important;
        /* 가독성을 위해 불투명하게 */
        color: white !important;
        backdrop-filter: none !important;
        border: none !important;
    }

    /* 3. 이미지 내 텍스트가 버튼과 겹치지 않게 간격 조정 */
    .header-overlay-deco {
        position: relative !important;
        /* 이미지 하단 고정 해제 */
        background: var(--color-sky-dark) !important;
        padding: 40px 20px !important;
    }
}

/* 모바일 문단 및 텍스트 가독성 최적화 */
@media screen and (max-width: 768px) {

    /* 1. 단어 단위로 줄바꿈하여 문단 모양을 예쁘게 함 */
    p,
    h2,
    h3,
    .deco-text p,
    .intro-message p,
    .smart-card p {
        word-break: keep-all !important;
        /* 단어가 중간에 잘리지 않음 */
        overflow-wrap: break-word;
        /* 너무 긴 단어만 예외적으로 줄바꿈 */
        line-height: 1.7 !important;
        /* 줄 간격을 넓혀 가독성 확보 */
        letter-spacing: -0.02em;
        /* 자간을 살짝 좁혀 정갈하게 보임 */
        text-align: center;
        /* 모바일은 중앙 정렬이 깔끔함 */
    }

    /* 2. 텍스트가 화면 끝에 붙지 않도록 여백 조정 */
    .deco-text,
    .intro-message,
    .content-board,
    .smart-card {
        padding-left: 25px !important;
        padding-right: 25px !important;
        box-sizing: border-box;
    }

    /* 3. 제목(h2) 아래 문단과의 간격 확보 */
    h2 {
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
    }
}

/* =========================================
   Admission Page Styles
   ========================================= */
.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-family: 'NanumSquareRound', sans-serif;
    font-size: 2rem;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 800;
}

/* Consultation Box */
.consultation-box {
    background-color: #FFF8E1;
    border: 2px solid #FFD54F;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 10px 25px rgba(255, 213, 79, 0.15);
    animation: floatUp 0.5s ease-out;
}

.consult-badge {
    display: inline-block;
    background: #FF6F00;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.consult-text {
    font-size: 1.3rem;
    color: #5D4037;
    margin-bottom: 20px;
    font-weight: bold;
}

.phone-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.phone-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 800;
    color: #E65100;
    font-family: 'Pretendard', sans-serif;
}

.phone-icon {
    font-size: 2rem;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Phone Link Styles */
.phone-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
}

.phone-link:hover {
    color: #E65100;
    border-bottom: 2px solid #E65100;
}

/* Admission Process Timeline */
.process-section {
    margin-bottom: 80px;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 40px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 4px;
    background: #E0E0E0;
    z-index: 0;
    border-radius: 2px;
}

.process-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    text-align: center;
}

.step-circle {
    width: 80px;
    height: 80px;
    background: white;
    border: 4px solid var(--color-mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.process-step:nth-child(1) .step-circle {
    border-color: #FF7043;
    color: #FF7043;
}

.process-step:nth-child(2) .step-circle {
    border-color: #AB47BC;
    color: #AB47BC;
}

.process-step:nth-child(3) .step-circle {
    border-color: #29B6F6;
    color: #29B6F6;
}

.process-step:nth-child(4) .step-circle {
    border-color: #66BB6A;
    color: #66BB6A;
}

.step-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.step-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.step-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    padding: 0 10px;
    word-break: keep-all;
}

/* Recruitment Guidelines Table */
.guidelines-section {
    margin-bottom: 60px;
}

.guide-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
}

.guide-table th {
    background-color: var(--color-forest);
    color: white;
    padding: 20px;
    font-size: 1.1rem;
    width: 30%;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.guide-table td {
    background-color: white;
    padding: 20px;
    color: #444;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    line-height: 1.6;
}

.guide-table tr:last-child th,
.guide-table tr:last-child td {
    border-bottom: none;
}

/* Mobile Fixed Button */
.mobile-call-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: #FF6F00;
    color: white;
    padding: 18px;
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(255, 111, 0, 0.4);
    z-index: 9999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.02);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

/* Responsive for Admission */
@media (max-width: 768px) {
    .process-timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        margin-left: 20px;
    }

    .process-timeline::before {
        left: 39px;
        top: 0;
        bottom: 0;
        width: 4px;
        height: auto;
        right: auto;
    }

    .process-step {
        width: 100%;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 20px;
    }

    .step-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .phone-item {
        font-size: 1.5rem;
    }

    .guide-table th,
    .guide-table td {
        display: block;
        width: 100%;
        text-align: left;
    }

    .guide-table th {
        border-radius: 10px 10px 0 0;
        margin-top: 15px;
    }

    .mobile-call-btn {
        display: block;
    }

    #nature-footer {
        padding-bottom: 80px;
        /* Space for button */
    }
}

/* =========================================
   Curriculum Page Styles
   ========================================= */

/* Intro Section */
.curriculum-intro {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeIn 1s ease-out;
}

.intro-badge {
    display: inline-block;
    background: #E0F2F1;
    color: #00695C;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.intro-title {
    font-family: 'NanumSquareRound', sans-serif;
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.3;
}

.intro-desc {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* Generic Section */
.curi-section {
    margin-bottom: 100px;
}

.curi-section-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.curi-section-title .icon {
    margin-right: 10px;
}

.curi-section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: var(--color-mint);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Common Curriculum Box */
.common-curi-box {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    text-align: center;
    border: 1px solid #eee;
}

.cc-header {
    background: var(--color-forest);
    padding: 30px 20px;
    color: white;
}

.cc-header h4 {
    font-size: 1.5rem;
    margin: 0 0 10px;
}

.cc-header p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.cc-content {
    padding: 40px 20px;
}

.cc-content p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

/* Age Cards Grid */
.age-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.age-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    border-top: 5px solid #ddd;
    transition: transform 0.3s;
}

.age-card:hover {
    transform: translateY(-10px);
}

.age-card.card-3 {
    border-color: #FFAB91;
}

/* 3세 Orange */
.age-card.card-4 {
    border-color: #81C784;
}

/* 4세 Green */
.age-card.card-5 {
    border-color: #64B5F6;
}

/* 5세 Blue */

.age-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
}

.card-3 .age-badge {
    background: #FFAB91;
}

.card-4 .age-badge {
    background: #81C784;
}

.card-5 .age-badge {
    background: #64B5F6;
}

.age-card h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    height: 3.2em;
    /* align titles */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card-list {
    text-align: left;
    display: inline-block;
    color: #666;
}

.card-list li {
    margin-bottom: 8px;
    list-style-type: none;
    position: relative;
    padding-left: 20px;
}

.card-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ccc;
}

/* Special Education Table */
.special-table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.special-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
    /* Prevent squishing on mobile */
}

.special-table th {
    background: #FFECB3;
    /* Pastel Yellow */
    color: #5D4037;
    padding: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #FFE082;
}

.special-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cat-cell {
    width: 15%;
    text-align: center;
    background: #FFFDE7;
}

.prog-cell {
    width: 50%;
}

.effect-cell {
    width: 35%;
    text-align: center;
    color: #555;
    font-weight: bold;
    line-height: 1.5;
    background: #FAFAFA;
}

.age-tag {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: bold;
    color: white;
}

.age-tag.age-3 {
    background: #FFAB91;
}

.age-tag.age-4 {
    background: #81C784;
}

.age-tag.age-5 {
    background: #64B5F6;
}

.prog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prog-list li {
    background: #F5F5F5;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #444;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .intro-title {
        font-size: 1.8rem;
    }

    .age-cards-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
    }

    .age-card h4 {
        height: auto;
    }

    .special-table th,
    .special-table td {
        font-size: 0.9rem;
        padding: 10px;
    }

    .prog-list li {
        font-size: 0.85rem;
    }
}


/* Global Image Protection: Disable Save, Drag, Context Menu, Selection across Kindergarten & Horace Mann */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}
