﻿@charset "utf-8";

@font-face {font-family:'MofLight'; src:url(../font/Mof_L.ttf) format('truetype'); }
@font-face {font-family:'MofLightOtf'; src:url(../font/Mof_L.otf) format('truetype'); }
@font-face {font-family:'MofMedium'; src:url(../font/Mof_M.ttf) format('truetype'); }
@font-face {font-family:'MofMediumOtf'; src:url(../font/Mof_M.otf) format('truetype'); }
@font-face {font-family:'MofBold'; src:url(../font/Mof_B.ttf) format('truetype'); }
@font-face {font-family:'MofBoldOtf'; src:url(../font/Mof_B.otf) format('truetype'); }

html, body, div, span, h1, h2, h3, h4, h5, input, form, select, option, label{font-family:'Inter', 'Noto Sans KR', 'MofMedium', sans-serif !important; font-weight:normal;}

:root {
    /* Color Palette */
    --primary-color: #005f99; /* Deep Ocean Blue */
    --secondary-color: #008ac5; /* Lighter Blue */
    --accent-color: #00c4cc; /* Teal */
    --text-main: #1a1a1a;
    --text-sub: #555555;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e1e4e8;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 70px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    color: --text-main;
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    /*min-width: 700px;*/
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 50px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Header */
.header {
    height: var(--header-height);
    /*background-color: var(--white);*/
    /*box-shadow: var(--shadow-sm);*/
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    /*background-color: #2a5c95;*/
    background-color: #072445;
    color: #efefef;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 10px 10px -10px;
    border-bottom: 1px solid #2c4961;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header .mof{
    background: url(../images/main/main_logo4.png) no-repeat 0px;
    height: 70px;
    width: 450px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-sub);
    font-weight: 500;
}

.nav-desktop {
    display: none;
}

.nav-desktop a {
    margin-left: 30px;
    font-weight: 500;
    /*color: var(--text-main);*/
    color: #ffffff;
    font-size: 1rem;
}

.nav-desktop a:hover {
    color: #9cc1ff;
    text-shadow: #0f244f 0 0 4px;
    /*color: var(--primary-color);*/
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 15px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Features Section */
.section {
    padding: 60px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 200px;
    background-color: #eee;
    width: 100%;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.8) 0px 16px 16px -16px;
}

.placeholder-blue {
    /*background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);*/
    background-image: url("../images/main/mid01.png");
}

.placeholder-teal {
    /*background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);*/
    background-image: url("../images/main/mid02.png");
}

.placeholder-navy {
    /*background: linear-gradient(to top, #30cfd0 0%, #330867 100%);*/
    background-image: url("../images/main/mid03.png");
}

.card.feature-card{
    padding: 0;
}

.card-body {
    padding: 25px;
    /*padding: 20px 5px 0;*/
}

.card-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-color);
}

.card-body p {
    font-size: 0.95rem;
    color: var(--text-sub);
}

/* Info Grid Section */
.info-grid {
    background-color: var(--white);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-color);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}


/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    background-image: url('https://images.unsplash.com/photo-1505118380757-91f5f5632de0?ixlib=rb-4.0.3&auto=format&fit=crop&w=2071&q=80'); /* Ocean placeholder */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 30, 60, 0.7), rgba(0, 95, 153, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 768px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Notice Banner */
.notice-banner {
    background-color: #fff3cd;
    color: #856404;
    padding: 12px 0;
    font-size: 0.9rem;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-badge {
    background-color: #ffc107;
    color: #212529;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
}
.notice-badge{}

/* Services Section */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.section-desc {
    color: var(--text-sub);
    font-size: 1.1rem;
}

.grid-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.card-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
    background-color: rgba(0, 95, 153, 0.1);
    padding: 12px;
    border-radius: 50%;
    display: inline-flex;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.card-desc {
    color: var(--text-sub);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.card-link:hover {
    text-decoration: underline;
}

/* News Section */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 5px;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
}

.news-title:hover {
    /*color: var(--primary-color);*/
}

.view-all {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 50px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-address p {
    margin-bottom: 5px;
}

.footer-logo {
    /*font-weight: 700;*/
    /*font-size: 1.2rem;*/
    /*color: var(--white);*/
    /*opacity: 0.8;*/
    background: url(../images/main/bgMainBottom.png) no-repeat 0 8px;
    width: 80px;
    height: 80px;
}


/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background-color: var(--white);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    z-index: 2001;
}

.modal.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-sub);
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: var(--bg-light);
    color: var(--text-main);
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-news-list {
    display: flex;
    flex-direction: column;
}

.modal-news-item {
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modal-news-item:last-child {
    border-bottom: none;
}

.modal-news-item:hover {
    background-color: var(--bg-light);
}

.modal-news-date {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.modal-news-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
}

.modal-news-title:hover {
    color: var(--primary-color);
}

/* Scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-desktop {
        display: block;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero {
        height: 350px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-item {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .news-date {
        margin-bottom: 0;
        min-width: 100px;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 1024px) {
    .features.section {
        display: none;
    }
    .nav-desktop {
        display: none;
    }
}
@media (max-width: 768px) {
    .header .mof{
        background: url(../images/main/main_logo5.png) no-repeat 5PX 15px;
        height: 70px;
        width: 460px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
}

@media (min-width: 1024px) {
    .grid-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}












