@charset "UTF-8";
/* ===================================
   밍키넷 포털 스타일시트
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #BBDEFB;
    --text-color: #333;
    --text-muted: #666;
    --border-color: #ddd;
    --bg-light: #f8f9fa;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    color: var(--text-color);
    background: var(--bg-light);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===================================
   상단 네비게이션
   =================================== */
#top-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

#top-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

#top-nav .nav-links li {
    display: flex;
    align-items: center;
}

#top-nav .nav-links a {
    color: var(--text-muted);
}

#top-nav .nav-links a:hover {
    color: var(--primary-color);
}

#top-nav .date-display {
    color: var(--text-muted);
}

/* ===================================
   헤더
   =================================== */
#main-header {
    background: var(--white);
}

.logo-area a {
    display: block;
    text-decoration: none;
}

.logo-area a:hover {
    text-decoration: none;
}

.logo-img {
    max-height: 50px;
    width: auto;
}

.search-area {
    max-width: 400px;
}

.header-banner {
    flex-shrink: 0;
}

.header-banner-img {
    height: 60px;
    width: auto;
    display: block;
}

.search-form .input-group {
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    overflow: hidden;
}

.search-form .form-control {
    border: none;
    padding: 12px 15px;
}

.search-form .form-control:focus {
    box-shadow: none;
}

.search-form .btn {
    border-radius: 0;
    padding: 12px 20px;
}

/* ===================================
   메인 메뉴
   =================================== */
#main-menu {
    background: var(--primary-color);
}

.menu-home {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    color: var(--white);
    font-weight: 500;
    background: var(--primary-dark);
    text-decoration: none;
}

.menu-home:hover {
    color: var(--white);
    background: #1565C0;
    text-decoration: none;
}

.menu-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex: 1;
}

.menu-list li {
    flex: 1;
}

.menu-list a {
    display: block;
    color: var(--white);
    text-align: center;
    padding: 15px 10px;
    font-size: 15px;
    transition: background 0.2s;
    text-decoration: none;
}

.menu-list a:hover {
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
}

.menu-toggle {
    background: var(--primary-dark);
    border: none;
    color: var(--white);
    font-size: 14px;
    padding: 10px 15px;
    cursor: pointer;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-list a {
    display: block;
    color: var(--white);
    padding: 12px 0;
    text-decoration: none;
}

/* 모바일 검색 (메뉴 내) */
.mobile-search-form .form-control {
    border: none;
    padding: 10px 15px;
}

.mobile-search-form .btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    font-weight: 500;
}

/* 모바일 검색바 (메뉴 외부) */
.mobile-search-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.mobile-search-bar .form-control {
    border: 1px solid var(--border-color);
    padding: 10px 15px;
}

.mobile-search-bar .btn {
    padding: 10px 20px;
}

/* ===================================
   메인 컨텐츠
   =================================== */
#main-content {
    min-height: 60vh;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.section-title h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.section-title h2 a {
    color: var(--text-color);
}

.content-box {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.list-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item .title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-color);
}

.list-item .date {
    font-size: 12px;
    color: var(--white);
    background: var(--primary-color);
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 10px;
}

/* ===================================
   사이드바
   =================================== */
.sidebar-box {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list a {
    color: var(--text-color);
}

.notice-list .date {
    font-size: 11px;
    color: var(--white);
    background: #ff5722;
    padding: 2px 6px;
    border-radius: 3px;
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.quick-links li:last-child {
    border-bottom: none;
}

.quick-links a {
    color: var(--text-color);
}

/* ===================================
   푸터
   =================================== */
#main-footer {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 25px;
}

.footer-links li {
    padding: 0 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-info p {
    color: var(--text-muted);
}

.footer-disclaimer {
    background: var(--bg-light);
}

.footer-disclaimer p {
    line-height: 1.8;
    color: #888;
    font-size: 12px;
}

/* ===================================
   스크롤 버튼
   =================================== */
#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 999;
    font-size: 14px;
}

#scroll-top.show {
    opacity: 1;
    visibility: visible;
}

#scroll-top:hover {
    background: var(--primary-dark);
}

/* ===================================
   페이지 컨텐츠 스타일
   =================================== */
.page-header {
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.page-header .breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.page-header .breadcrumb a {
    color: var(--primary-color);
}

.article-content {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.article-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 35px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 25px 0 12px;
    color: var(--primary-dark);
}

.article-content p {
    margin-bottom: 18px;
    line-height: 1.9;
}

.article-content ul,
.article-content ol {
    margin-bottom: 18px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.article-content .info-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    padding: 18px 22px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.article-content .warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 18px 22px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.article-content .step-box {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.article-content .step-box p {
    margin-bottom: 12px;
}

.article-content .step-box p:last-child {
    margin-bottom: 0;
}

.article-content .step-num {
    display: inline-block;
    width: 26px;
    height: 26px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    font-weight: 700;
    font-size: 13px;
    margin-right: 10px;
}

/* ===================================
   입구 카드
   =================================== */
.entry-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.entry-card .entry-banner {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 3px 15px rgba(0,0,0,0.15);
}

.entry-card .entry-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.entry-card .entry-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.entry-card .entry-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 60px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.entry-card .entry-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.entry-card .entry-notice {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 15px;
}

/* 버튼 */
.btn-main {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-main:hover {
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
}

.btn-large {
    display: block;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
    margin: 25px 0;
}

.btn-large:hover {
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
}

.btn-large .btn-sub {
    display: block;
    font-size: 13px;
    font-weight: 400;
    margin-top: 5px;
    opacity: 0.9;
}

/* ===================================
   사이트 카드 (대체사이트 페이지)
   =================================== */
.site-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.site-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.2s;
}

.site-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.site-logo {
    flex-shrink: 0;
    width: 120px;
    height: 60px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.site-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-info {
    flex: 1;
    min-width: 0;
}

.site-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.site-info p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* ===================================
   반응형
   =================================== */
@media (max-width: 991px) {
    .sidebar {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    #main-header .d-flex {
        justify-content: center !important;
    }
    
    .logo-area {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-logo {
        font-size: 26px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-content h2 {
        font-size: 18px;
    }
    
    body {
        font-size: 15px;
    }
    
    /* 사이트 카드 모바일 */
    .site-grid {
        grid-template-columns: 1fr;
    }
    
    .site-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .site-logo {
        width: 150px;
        height: 75px;
    }
}
