:root {
    --primary-color: #E31E24;
    --text-color: #333333;
    --bg-color: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #222222;
    --border-color: #dddddd;
    --font-family: 'Noto Sans KR', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Header */
header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 40px;
    /* Adjust based on actual logo aspect ratio */
    display: block;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 10px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.header-contact {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-contact i {
    font-size: 1.2rem;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    width: 100%;
    aspect-ratio: 1920 / 658;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInSafe 1s ease-out;
}

.hero h1 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero p {
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    margin-bottom: 30px;
    opacity: 1;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #c41217;
}

/* Section Common */
section {
    padding: 80px 20px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
}

/* About Link Section (Home) */
.about-preview {
    background: var(--bg-color);
}

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

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Map Section */
.map-section {
    background: var(--light-gray);
}

.map-container {
    width: 100%;
    height: 450px;
    background: #e0e0e0;
    /* Placeholder */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

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

/* Footer */
footer {
    background: var(--light-gray);
    color: var(--text-color);
    padding: 60px 20px;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 35px;
    /* Removed filter to show original colored logo */
    margin-bottom: 20px;
}

.footer-info h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-info p {
    margin-bottom: 8px;
    color: #555;
}

.copyright {
    text-align: center;
    color: #777;
}

/* Page Header (Subpages) */
.page-header {
    background: #333;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* CEO Message Styles */
.ceo-message {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.ceo-message p {
    margin-bottom: 20px;
    text-align: justify;
}

.ceo-sign {
    text-align: right;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 40px;
}

/* History Styles */
.history-list {
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid var(--border-color);
    padding-left: 30px;
}

.history-item {
    position: relative;
    margin-bottom: 40px;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -36px;
    /* 30px padding + 2px border + 4px centering */
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.history-year {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.history-desc {
    font-size: 1rem;
}

/* Support List */
.support-list {
    max-width: 800px;
    margin: 0 auto;
}

.support-item {
    background: white;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.support-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.support-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.download-btn {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

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

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        /* var(--header-height) might not be accessible here if not defined in root properly or context lost, using 80px implies header height */
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        gap: 0;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        border-bottom: 1px solid #eee;
        width: 100%;
        display: block;
        padding: 15px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
        /* Reduced from 3rem */
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .container {
        padding: 0 15px;
        /* Prevent content touching edges */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-logo {
        margin: 0 auto;
    }
}

@keyframes fadeInSafe {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Existing Styles... */

/* Carousel Styles */
.about-image {
    width: 100%;
    height: 300px;
    /* Or auto, depending on design preference, but fixed height avoids layout shift */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}