/* Base Design System */
:root {
    --primary-color: #3A5BA0;
    --primary-light: #4E6EAF;
    --secondary-color: #1DB9C3;
    --accent-color: #F05454;
    --bg-color: #FFFFFF;
    --bg-soft: #F7F9FC;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Typography Utility */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    border: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 91, 160, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: #f1f1f1;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: var(--transition);
}

#main-header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 70px;
    /* 로고 크기 확대 */
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    /* 선명도 강조 */
}

.logo-text {
    font-size: 1.6rem;
    /* 텍스트 크기도 소폭 확대 */
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.desktop-nav {
    margin-left: auto;
    margin-right: 40px;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list li a {
    font-weight: 500;
    color: var(--text-main);
}

.nav-list li a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
#hero {
    padding: 180px 0 100px;
    background: radial-gradient(circle at top right, #eef2ff 0%, #ffffff 50%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-title {
    font-size: 3.8rem;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: #1e293b;
}

.hero-title span {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(58, 91, 160, 0.1);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.hero-image img {
    width: 100%;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.1));
    border-radius: 30px;
}

/* Floating Donate Widget */
.floating-donate {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 999;
}

.donate-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(240, 84, 84, 0.4);
    animation: bounce 2s infinite;
}

.donate-btn i {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.donate-btn span {
    font-size: 0.85rem;
    font-weight: 700;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* News Section */
#news-highlights {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.news-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background: var(--bg-soft);
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.news-item:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(58, 91, 160, 0.1);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.news-item h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    height: 3.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.news-date {
    font-size: 0.85rem;
    color: #999;
}

.view-all {
    color: var(--text-muted);
    font-weight: 600;
}

.view-all:hover {
    color: var(--primary-color);
}

/* Services Section */
#services {
    padding: 100px 0;
    background-color: var(--bg-soft);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition);
}

.service-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 1.6rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Info Split Section */
#info-split {
    padding: 0;
}

.info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.info-text-side {
    background-color: #1e293b;
    color: var(--white);
    padding: 100px clamp(24px, 10vw, 150px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.info-text-side h2 {
    font-size: 3rem;
}

.info-text-side p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 500;
}

.feature-list li i {
    color: var(--secondary-color);
}

.info-image-side {
    background: url('모두.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.info-image-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(58, 91, 160, 0.2);
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 100px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

.footer-logo {
    height: 60px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links h4,
.footer-newsletter h4 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.newsletter-form {
    margin-top: 24px;
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px 0 0 12px;
    border: none;
    background: #1e293b;
    color: var(--white);
}

.newsletter-form button {
    padding: 14px 24px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 0 12px 12px 0;
    border: none;
    cursor: pointer;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.naver-blog {
    font-weight: 700;
    font-size: 1.4rem;
}

.naver-blog span {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Footer Map */
.footer-map {
    width: 100%;
}

.footer-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 16px;
}


.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 30px 0;
    font-size: 0.9rem;
}

.bottom-legal {
    display: flex;
    gap: 24px;
}

/* Mobile Menu */
.mobile-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-overlay.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--primary-color);
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin: 30px 0;
}

.mobile-nav-list a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s, transform 1s;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade {
    opacity: 0;
    transition: opacity 2s;
}

.animate-fade.visible {
    opacity: 1;
}

/* Responsive Queries */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-slider {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .info-container {
        grid-template-columns: 1fr;
    }

    .info-image-side {
        height: 300px;
    }

    .news-slider {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .floating-donate {
        right: 20px;
        bottom: 20px;
    }

    .donate-btn {
        width: 80px;
        height: 80px;
    }
}