
:root {
    --color-primary: #1e3a8a;       /* 진한 네이비 */
    --color-primary-dark: #1e293b;
    --color-accent: #f59e0b;        /* 골드 */
    --color-accent-dark: #d97706;
    --color-blue: #3b82f6;
    --color-text: #1f2937;
    --color-text-sub: #6b7280;
    --color-bg: #ffffff;
    --color-bg-soft: #f9fafb;
    --color-border: #e5e7eb;
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
                 "Pretendard", "Noto Sans KR", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f7f8fa;
}
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Layout ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header { background: #fff; border-bottom: 1px solid #e1e4e8; padding: 16px 0; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-header .logo { font-size: 18px; font-weight: 700; color: #222; }
.site-header nav a { margin-left: 20px; color: #555; }

/* ===== Main ===== */
main.container { padding-top: 40px; padding-bottom: 60px; min-height: 60vh; }

/* ===== Footer ===== */
/* ===== Site footer (navy theme) ===== */
.site-footer {
    background: #0f172a;
    border-top: 3px solid #f59e0b;
    color: #cbd5e1;
    padding: 48px 0 24px;
    margin-top: 0;
    font-size: 14px;
    line-height: 1.6;
}
.site-footer .container { max-width: 1200px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #1e293b;
}
.footer-brand .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 12px;
}
.footer-brand .footer-logo img { height: 32px; width: auto; }
.footer-desc { color: #94a3b8; margin: 0; }
.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin: 0 0 16px;
    font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover { color: #f59e0b; }
.footer-info li { color: #94a3b8; }
.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom .copyright { margin: 0; color: #94a3b8; }
.footer-bottom .footer-meta { margin: 0; color: #64748b; font-size: 13px; }

/* CTA → footer 사이 회색 영역 제거 */
body { background: #fff; }

@media (max-width: 768px) {
    .site-footer { padding: 32px 0 20px; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding-bottom: 24px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ===== 헤더 네비게이션 ===== */
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}
.site-nav a {
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}
.site-nav a:hover { color: #111827; }
.site-nav .nav-user {
    color: #111827;
    font-weight: 600;
}
.site-nav .nav-cta {
    background: #3b82f6;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 6px;
}
.site-nav .nav-cta:hover {
    background: #2563eb;
}
.site-nav .nav-divider {
    width: 1px;
    height: 16px;
    background: #d1d5db;
}
@media (max-width: 768px) {
    .site-nav {
        gap: 10px;
        font-size: 13px;
    }
    .site-nav .nav-divider { display: none; }
}

/* ===== 모바일 햄버거 버튼 ===== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: space-between;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #374151;
    transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== 모바일 반응형 ===== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 0;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 100;
    }
    .site-nav.open {
        max-height: 80vh;
        overflow-y: auto;
    }
    .site-nav a {
        padding: 14px 20px;
        font-size: 15px;
        border-bottom: 1px solid #f3f4f6;
    }
    .site-nav a:last-child { border-bottom: none; }
    .site-nav .nav-divider {
        height: 8px;
        width: 100%;
        background: #f9fafb;
    }
    .site-nav .nav-cta {
        margin: 8px 16px;
        padding: 12px 14px;
        text-align: center;
        border-radius: 6px;
    }
}
/* ===== 드롭다운 메뉴 ===== */
.site-nav .nav-item {
    position: relative;
    display: inline-block;
}
.site-nav .nav-item .nav-parent {
    cursor: pointer;
}
.site-nav .nav-item .caret {
    font-size: 10px;
    color: #9ca3af;
    margin-left: 2px;
}
.site-nav .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-width: 160px;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.15s;
    z-index: 200;
}
.site-nav .nav-item:hover .nav-dropdown,
.site-nav .nav-item.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-nav .nav-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #374151;
    white-space: nowrap;
}
.site-nav .nav-dropdown a:hover {
    background: #f9fafb;
    color: #111827;
}

/* 모바일에서 드롭다운 → 아코디언 */
@media (max-width: 768px) {
    .site-nav .nav-item {
        display: block;
        width: 100%;
    }
    .site-nav .nav-item .nav-parent {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 20px;
        border-bottom: 1px solid #f3f4f6;
    }
    .site-nav .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f9fafb;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .site-nav .nav-item.open .nav-dropdown {
        max-height: 500px;
    }
    .site-nav .nav-dropdown a {
        padding: 12px 32px;
        font-size: 14px;
        border-bottom: 1px solid #f3f4f6;
    }
    .site-nav .nav-item .caret {
        transition: transform 0.2s;
    }
    .site-nav .nav-item.open .caret {
        transform: rotate(180deg);
    }
}

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.site-header .logo-img {
    height: 36px;
    width: auto;
}
.site-header .logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}
@media (max-width: 480px) {
    .site-header .logo-text { display: none; }
}
/* ===== 공통 버튼 ===== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    text-align: center;
}
.btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    text-decoration: none;
}
.btn-primary {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
}
.btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
    color: #fff;
}
.btn-danger {
    background: #fff;
    color: #dc2626;
    border-color: #fecaca;
}
.btn-danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}
.btn-block {
    display: block;
    width: 100%;
}
/* 정적 페이지 (약관/방침/사업자정보) */
.page-content { max-width: 800px; margin: 40px auto; padding: 0 20px; line-height: 1.7; color: #1f2937; }
.page-content h1 { font-size: 28px; margin-bottom: 8px; color: #111827; }
.page-content h2 { font-size: 18px; margin: 32px 0 12px; color: #111827; }
.page-content p { margin: 12px 0; }
.page-content ul, .page-content ol { margin: 12px 0; padding-left: 24px; }
.page-content li { margin: 6px 0; }
.page-meta { color: #6b7280; font-size: 14px; margin-bottom: 24px !important; }
.page-note { margin-top: 40px !important; padding: 12px 16px; background: #fef3c7; border-left: 3px solid #f59e0b; font-size: 14px; color: #78350f; }
.business-info { width: 100%; border-collapse: collapse; margin: 24px 0; }
.business-info th, .business-info td { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
.business-info th { width: 180px; background: #f9fafb; color: #374151; font-weight: 600; }

/* 푸터 메타 링크 */
.footer-meta a { color: inherit; text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }
.footer-sep { margin: 0 8px; opacity: 0.5; }

.admin-article-summary {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 4px;
    font-weight: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

