body {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f5f7fa;
    color: #222;
    line-height: 1.6;
    padding-top: 70px;
}

.inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.site-header {
    background-color: #001e3c;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 0.1rem 0.5rem rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.75rem;
    font-weight: bold;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-list li {
    position: relative;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
    display: block;
    padding: 0.25rem 0;
}

.nav-list a.active,
.nav-list a:hover {
    color: #66ccff;
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #001e3c;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 0.3rem 0.7rem rgba(0, 0, 0, 0.15);
    z-index: 999;
    min-width: 160px;
    list-style: none;
    margin: 0;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0.5rem 1.5rem;
    white-space: nowrap;
    list-style: none;
    margin: 0;
}

.dropdown-menu li a {
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
}

.dropdown-menu li a:hover {
    background-color: #003366;
}

.hero-sub {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.0)),
                url('https://images.pexels.com/photos/325229/pexels-photo-325229.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260')
                center/cover no-repeat;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero-sub .overlay {
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-sub h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-box {
    padding: 6vh 0;
}

.section-title {
    font-size: 1.8rem;
    color: #003366;
    text-align: center;
    margin-bottom: 2rem;
}

.center {
    text-align: center;
}

footer {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-sub h1 {
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
}


@media (max-width: 768px) {
    .mobile-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);  /* 4열 구성 */
        gap: 0.5rem;
        background-color: #f5f7fa;
        padding: 1rem;
        margin-top: 1rem;
    }

    .mobile-links a {
        background-color: #003366;
        color: #fff;
        text-align: center;
        text-decoration: none;
        padding: 0.6rem 0.3rem;
        border-radius: 0.5rem;
        font-size: 0.85rem;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-links a:hover {
        background-color: #005599;
    }
}
@media (min-width: 769px) {
    .mobile-links,
    .mobile-modal {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .nav-dropdown > .dropdown-menu {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .mobile-modal {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 99999;
        justify-content: center;
        align-items: center;
    }

    .mobile-modal.active {
        display: flex;
    }

    .modal-content {
        background-color: #fff;
        padding: 1rem;
        border-radius: 0.5rem;
        max-width: 90%;
        max-height: 80%;
        overflow-y: auto;
        position: relative; /* ✅ 기준 설정 */
    }

    .modal-close {
        position: absolute;
        top: 0.5rem;
        right: 0.75rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        font-weight: bold;
        cursor: pointer;
        z-index: 100;
    }
}