/* ==========================================
   Design System & Global Variables
   ========================================== */
:root {
    /* Color Palette (Parknsoft Teal & Gold Theme + Clean White Base) */
    --color-primary: #294B54;          /* Deep Teal/Navy */
    --color-primary-dark: #1E383E;     /* Darker Teal for high contrast */
    --color-primary-light: #f0f5f6;    /* Very soft light teal tint */
    --color-accent: #f2ba1c;           /* Vibrant Gold */
    --color-accent-hover: #dca310;     /* Warm Gold Hover */
    --color-bg-main: #ffffff;          /* White Main Background */
    --color-bg-alt: #f7f9f9;           /* Secondary Light Background */
    --color-text-main: #2b3a3e;        /* Dark Slate for primary text */
    --color-text-muted: #627277;       /* Soft slate gray for descriptions */
    --color-border: #e1e7e8;           /* Clean thin borders */
    --color-shadow: rgba(41, 75, 84, 0.06);
    --color-shadow-hover: rgba(41, 75, 84, 0.12);

    /* Typography */
    --font-kr: 'Noto Sans KR', sans-serif;
    --font-en: var(--font-kr);

    /* Transitions & Borders */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
}

/* ==========================================
   Reset & Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-kr);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   Header & Navbar (Sticky Glassmorphism)
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    height: 80px;
}

.header.scrolled {
    height: 60px;
    box-shadow: 0 4px 20px rgba(41, 75, 84, 0.08);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Header with tabs modifications */
.header.header-with-tabs {
    padding-top: 20px;
    padding-bottom: 0;
}
.header.header-with-tabs.scrolled {
    padding-top: 12px;
    padding-bottom: 0;
}

/* Header Tabs Bar */
.header-tabs-bar {
    border-top: 1px solid var(--color-border);
    padding: 10px 0;
    margin-top: 20px;
    background-color: transparent;
    transition: var(--transition-smooth);
}

.header.scrolled .header-tabs-bar {
    margin-top: 12px;
    padding: 8px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-link span {
    color: var(--color-accent);
    margin-left: 2px;
}

.logo-badge {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(41, 75, 84, 0.15);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-item {
    position: relative;
}

/* ==========================================
   헤더 통합검색 (하위 페이지 전역 진입점)
   ========================================== */
.header-search {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background-color: #f7f9fa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.header-search:focus-within {
    background-color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(41, 75, 84, 0.08);
}

.header-search-icon {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.header-search:focus-within .header-search-icon {
    color: var(--color-primary);
}

.header-search-input {
    width: 110px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    transition: width 0.25s ease;
}

.header-search-input:focus {
    outline: none;
    width: 180px;
}

.header-search-input::placeholder {
    color: #9aa5aa;
}

@media (max-width: 1100px) {
    .header-search-input {
        width: 80px;
    }
    .header-search-input:focus {
        width: 130px;
    }
}

/* 모바일 드로어 안의 검색창은 가로 전체를 사용합니다. */
.drawer-search {
    margin-bottom: 20px;
}

.drawer-search .header-search {
    height: 44px;
    border-radius: 10px;
}

.drawer-search .header-search-input,
.drawer-search .header-search-input:focus {
    width: 100%;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-main);
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after,
.nav-item:hover .nav-link::after {
    width: 100%;
}

/* Arrow Icon */
.arrow {
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2.5px;
    transform: rotate(45deg);
    transition: var(--transition-smooth);
    margin-bottom: 2.5px;
}

.nav-item:hover .arrow {
    transform: rotate(-135deg);
    color: var(--color-accent);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background-color: var(--color-bg-main);
    box-shadow: 0 10px 30px rgba(41, 75, 84, 0.15);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    padding: 12px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1010;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: var(--color-bg-main);
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.dropdown li {
    position: relative;
}

.dropdown a {
    color: var(--color-text-main);
    display: block;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
}

.dropdown a:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    padding-left: 28px;
}

/* 2-Level Dropdown Submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.dropdown-submenu .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 2px;
    background-color: var(--color-bg-main);
    box-shadow: 0 10px 30px rgba(41, 75, 84, 0.15);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    padding: 12px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition-smooth);
    z-index: 1020;
}

.dropdown-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-submenu .submenu a {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.dropdown-submenu .submenu a:hover {
    padding-left: 24px;
}

/* Arrow Right Icon for Submenu */
.arrow-right {
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2.5px;
    transform: rotate(-45deg); /* Point Right */
    transition: var(--transition-smooth);
}

.dropdown-submenu:hover .arrow-right {
    transform: rotate(45deg); /* Point Down on Hover */
    color: var(--color-accent);
}

/* Quick Action button in navbar */
.btn-nav-action {
    font-family: var(--font-kr);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--color-primary);
    padding: 8px 18px;
    border-radius: 30px;
    color: var(--color-primary);
    transition: var(--transition-smooth);
}

.btn-nav-action:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-main);
    box-shadow: 0 4px 10px rgba(41, 75, 84, 0.15);
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1002;
}

.hamburger .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ==========================================
   Hero Section (Premium Light Theme)
   ========================================== */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, #f0f5f6 0%, var(--color-bg-main) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Decorative background shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 186, 28, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41, 75, 84, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 780px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid rgba(41, 75, 84, 0.15);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(41, 75, 84, 0.02);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--color-accent);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 0.08em;
    left: 0;
    width: 100%;
    height: 0.25em;
    background-color: rgba(242, 186, 28, 0.25);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-weight: 400;
    word-break: keep-all;
}

/* Search Bar Component */
.search-container {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: 0 auto 28px;
    z-index: 10;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--color-bg-main);
    border: 2px solid var(--color-border);
    border-radius: 50px;
    padding: 6px 6px 6px 24px;
    box-shadow: 0 10px 25px rgba(41, 75, 84, 0.08);
    transition: var(--transition-smooth);
}

.search-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(41, 75, 84, 0.15);
}

.search-icon {
    color: var(--color-text-muted);
    margin-right: 14px;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text-main);
    background: transparent;
}

.search-input::placeholder {
    color: #a0b0b3;
}

.btn-search {
    background-color: var(--color-primary);
    color: var(--color-bg-main);
    font-family: var(--font-kr);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 30px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-search:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(41, 75, 84, 0.25);
}

/* Quick tags */
.search-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-tags span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.tag-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    background-color: var(--color-primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(41, 75, 84, 0.08);
}

.tag-link:hover {
    border-color: var(--color-accent);
    color: var(--color-primary-dark);
    background-color: #fffdec;
}

/* ==========================================
   검색 자동완성 드롭다운
   ========================================== */
.nav-item.nav-search {
    position: relative;
}

.search-box,
.header-search {
    position: relative;
}

.search-suggest {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1200;
    max-height: min(360px, 60vh);
    overflow-y: auto;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(41, 75, 84, 0.14);
    text-align: left;
    box-sizing: border-box;
}

/* hero overflow:hidden 등에 잘리지 않도록 body에 fixed 로 붙는 포털 */
.search-suggest.search-suggest-portal {
    position: fixed;
    right: auto;
    top: 0;
    left: 0;
    width: auto;
    z-index: 3000;
}

.search-suggest.is-open {
    display: block;
}

.search-suggest-hint {
    padding: 6px 10px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: -0.2px;
}

.search-suggest-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--color-text-main);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.search-suggest-item:hover,
.search-suggest-item.is-active {
    background-color: var(--color-primary-light);
}

.search-suggest-badge {
    flex-shrink: 0;
    margin-top: 1px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.2px;
    background: #eef2f3;
    color: #5a6b70;
}

.search-suggest-badge.keyword {
    background: #e8f3f1;
    color: #2a6b63;
}

.search-suggest-badge.manual {
    background: #e7eef8;
    color: #2f5f9a;
}

.search-suggest-badge.faq {
    background: #f5efe6;
    color: #8a5a2b;
}

.search-suggest-badge.download {
    background: #edf0f2;
    color: #4d5c62;
}

.search-suggest-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.search-suggest-label {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.3px;
    color: var(--color-text-dark);
}

.search-suggest-label mark {
    background: #fff3b0;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

.search-suggest-sub {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   Section Layouts
   ========================================== */
.section {
    padding: 90px 0;
    position: relative;
}

.section.bg-alt {
    background-color: var(--color-bg-alt);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-badge {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.section-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background-color: var(--color-accent);
}

.section-title-main {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    word-break: keep-all;
}

/* ==========================================
   Interactive Grid Cards (Manuals & FAQs)
   ========================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

/* Manual Groups Layout */
.manual-groups-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 800px;
    margin: 0 auto;
}

.manual-group-block {
    text-align: center;
}

.manual-group-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    letter-spacing: -0.2px;
}

.manual-group-title::before,
.manual-group-title::after {
    content: "";
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    flex-grow: 1;
}

.manual-group-title span {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 8px 24px;
    border-radius: 30px;
    border: 1px solid rgba(41, 75, 84, 0.15);
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(41, 75, 84, 0.05);
    display: inline-block;
    transition: var(--transition-smooth);
}

.manual-group-title span:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(41, 75, 84, 0.08);
    background-color: var(--color-bg-main);
    border-color: var(--color-primary);
}

.cards-grid-existing,
.cards-grid-new {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 0 auto;
}

.cards-grid-others {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 650px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .cards-grid-existing,
    .cards-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cards-grid-existing,
    .cards-grid-new,
    .cards-grid-others {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.cards-grid-10items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.cards-grid-9items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.cards-grid-8items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .cards-grid-10items,
    .cards-grid-9items,
    .cards-grid-8items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cards-grid-10items,
    .cards-grid-9items,
    .cards-grid-8items {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Card Sub Links Styles */
.card-item-grouped {
    cursor: default !important;
}

.card-item-grouped:hover .card-icon-box {
    transform: none !important;
}

.card-item-grouped:hover .card-title {
    color: var(--color-text-dark) !important;
}

.card-sub-links {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.sub-link-item {
    font-size: 0.88rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 6px 12px;
    border-radius: 8px;
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    width: 85%;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.sub-link-item:hover {
    background-color: var(--color-primary);
    color: #ffffff !important;
    border-color: var(--color-primary);
}

.sub-link-item-small {
    font-size: 0.8rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 5px 10px;
    border-radius: 6px;
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    width: 88%;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.sub-link-item-small:hover {
    background-color: var(--color-primary);
    color: #ffffff !important;
    border-color: var(--color-primary);
}

.sub-link-row-nested {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 4px;
}

.sub-link-label-nested {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-right: 2px;
}

.sub-link-row-nested a {
    font-size: 0.75rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.sub-link-row-nested a:hover {
    background-color: var(--color-primary);
    color: #ffffff !important;
    border-color: var(--color-primary);
}

.sub-link-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-top: 6px;
    text-align: center;
}

.sub-link-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.sub-link-row a {
    font-size: 0.8rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.sub-link-row a:hover {
    background-color: var(--color-primary);
    color: #ffffff !important;
    border-color: var(--color-primary);
}

.card-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: visible;
    box-shadow: none;
}

.card-item:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* Card Icon Box */
.card-icon-box {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px var(--color-shadow);
    transition: var(--transition-smooth);
}

.card-icon-box svg {
    width: 32px;
    height: 32px;
    transition: var(--transition-smooth);
}

.card-item:hover .card-icon-box {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(41, 75, 84, 0.18);
}

.card-item:hover .card-icon-box svg {
    transform: scale(1.08);
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0;
    line-height: 1.4;
    word-break: keep-all;
    transition: var(--transition-smooth);
}

.card-item:hover .card-title {
    color: var(--color-primary);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
    flex-grow: 1;
    word-break: keep-all;
}

/* Card Link List */
.card-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.card-sublink {
    font-size: 0.88rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

.card-sublink:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    padding-left: 12px;
}

.card-sublink span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-sublink .sublink-arrow {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.card-sublink:hover .sublink-arrow {
    transform: translateX(4px);
    color: var(--color-primary);
}

/* ==========================================
   Popular FAQ Accordion
   ========================================== */
.faq-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 850px;
    margin: 0 auto 36px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-border);
}

.btn-more-faq {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    background-color: var(--color-bg-main);
    transition: var(--transition-smooth);
    margin-bottom: 4px;
    flex-shrink: 0;
}

.btn-more-faq:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-main);
    border-color: var(--color-primary);
    transform: rotate(90deg) scale(1.08);
    box-shadow: 0 4px 12px rgba(41, 75, 84, 0.15);
}

.faq-accordion-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px var(--color-shadow);
}

.faq-item:hover {
    border-color: rgba(41, 75, 84, 0.2);
    box-shadow: 0 8px 20px var(--color-shadow-hover);
}

.faq-header {
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-smooth);
}

.faq-header:hover {
    background-color: var(--color-primary-light);
}

.faq-question-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.faq-badge-q {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-accent);
}

.faq-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.faq-tab-btn {
    font-family: var(--font-kr);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 30px;
    border: 1.5px solid var(--color-border);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    transition: var(--transition-smooth);
}

.faq-tab-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.faq-tab-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-main);
    box-shadow: 0 4px 12px rgba(41, 75, 84, 0.15);
}

.faq-icon-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    opacity: 0.8;
}

.faq-badge-category {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--color-text-muted);
    border: 1px solid var(--color-text-muted);
    background-color: #ffffff;
    display: inline-block;
    width: 70px;
    box-sizing: border-box;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: middle;
}

.faq-badge-category.new {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.faq-badge-category.exist {
    border-color: var(--color-accent-hover);
    color: var(--color-accent-hover);
}

.faq-badge-category.others {
    border-color: #627277;
    color: #627277;
}

/* 카테고리 배지: 틸·골드 팔레트에 맞춰 채도와 명도를 통일한 5색 세트 */
.faq-badge-category.setup {
    border-color: #2f7a55;
    color: #2f7a55;
}

.faq-badge-category.device {
    border-color: #3f6382;
    color: #3f6382;
}

.faq-badge-category.operation {
    border-color: #a5720c;
    color: #a5720c;
}

.faq-badge-category.payment {
    border-color: #a8443a;
    color: #a8443a;
}

.faq-badge-category.maintenance {
    border-color: #5a6b70;
    color: #5a6b70;
}

/* FAQ 솔루션 구분 블록 (출입통제 / 유료주차장) */
.faq-solution-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 8px 0 22px;
}

.faq-solution {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(41, 75, 84, 0.04);
}

.faq-solution-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid transparent;
}

.faq-solution-title {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.faq-solution-body {
    padding: 16px 18px 18px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text-main);
}

.faq-solution-body > *:first-child {
    margin-top: 0;
}

.faq-solution-body > *:last-child {
    margin-bottom: 0;
}

.faq-solution-new {
    border-left: 3px solid #7a96a0;
}

.faq-solution-new .faq-solution-head {
    background: #f4f7f8;
    border-bottom-color: #e4eaec;
}

.faq-solution-new .faq-solution-title {
    color: #3d5a63;
    font-weight: 700;
}

.faq-solution-exist {
    border-left: 3px solid #c4b089;
}

.faq-solution-exist .faq-solution-head {
    background: #faf8f4;
    border-bottom-color: #eee8dc;
}

.faq-solution-exist .faq-solution-title {
    color: #6e6148;
    font-weight: 700;
}

/* 긴 이중 답변: 탭으로 하나만 표시 */
.faq-solution-group--tabs .faq-solution-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.faq-solution-tab {
    appearance: none;
    border: 1px solid var(--color-border);
    background: #f7f9fa;
    color: var(--color-text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    padding: 9px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.faq-solution-tab.is-active[data-solution="new"] {
    background: #eef2f4;
    border-color: #c5d0d4;
    color: #3d5a63;
}

.faq-solution-tab.is-active[data-solution="exist"] {
    background: #f7f4ee;
    border-color: #ddd4c2;
    color: #6e6148;
}

.faq-solution-group--tabs .faq-solution {
    display: none;
}

.faq-solution-group--tabs .faq-solution.is-active {
    display: block;
}

@media (max-width: 768px) {
    .faq-solution-head {
        padding: 10px 14px;
    }
    .faq-solution-body {
        padding: 14px;
        font-size: 0.95rem;
        line-height: 1.65;
    }
    .faq-solution-tab {
        flex: 1 1 auto;
        text-align: center;
    }
}

.faq-question {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    word-break: keep-all;
}

.faq-toggle-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.faq-item.active .faq-toggle-icon {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    transform: rotate(180deg);
}

.faq-toggle-icon::before {
    content: '\25BC'; /* Down Triangle Icon */
    font-size: 0.65rem;
}

.faq-toggle-icon.faq-nav-icon::before {
    content: '\25B6' !important; /* Right Triangle Icon */
    font-size: 0.65rem;
}

.faq-item.active .faq-toggle-icon::before {
    content: '\25B2'; /* Up Triangle Icon */
}

/* FAQ Answer Content (Collapsible) */
.faq-answer-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-answer-content {
    padding: 0 28px 28px 72px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px dashed var(--color-border);
    padding-top: 24px;
    background-color: #fafcfc;
}

.faq-answer-content p {
    margin-bottom: 12px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 10px;
}

.faq-answer-content li {
    margin-bottom: 6px;
}

/* ==========================================
   Help Desk Contact Banner
   ========================================== */
.contact-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-bg-main);
    border-radius: var(--border-radius-md);
    padding: 60px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(30, 56, 62, 0.25);
}

.contact-banner::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

.contact-text {
    z-index: 2;
    max-width: 600px;
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.contact-title span {
    color: var(--color-accent);
}

.contact-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    word-break: keep-all;
}

.contact-actions {
    display: flex;
    gap: 16px;
    z-index: 2;
}

.btn-contact {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    font-family: var(--font-kr);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 30px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(242, 186, 28, 0.3);
}

.btn-contact:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 186, 28, 0.45);
}

/* ==========================================
   Footer Component (Dark Slate Premium)
   ========================================== */
.footer {
    background-color: #172224;
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 35px;
    border-top: 5px solid var(--color-accent);
    font-size: 0.9rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-info-column {
    max-width: 450px;
}

.footer-logo-title {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--color-bg-main);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.footer-logo-title span {
    color: var(--color-accent);
}

.footer-logo-desc {
    line-height: 1.6;
    margin-bottom: 20px;
    word-break: keep-all;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav-column {
    display: flex;
    gap: 60px;
}

.footer-links-title {
    color: var(--color-bg-main);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-list a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-smooth);
}

.footer-links-list a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

/* Corporate Address & Contact info (parknsoft.com exact style) */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-address-info-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    margin-right: 40px;
}

.footer-address-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.footer-address-list dl {
    display: flex;
    align-items: flex-start;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: -0.2px;
}

.footer-address-list dt {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 6px;
    font-size: 0.8rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.footer-address-list dd {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    font-weight: 300;
    word-break: keep-all;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.footer-links a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    padding-top: 6px;
}

/* ==========================================
   Mobile Navigation Drawer & Overlay
   ========================================== */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--color-bg-main);
    z-index: 1020;
    box-shadow: -10px 0 30px rgba(41, 75, 84, 0.15);
    padding: 80px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
    border-radius: 20px 0 0 20px;
}

.mobile-nav-drawer.active {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(30, 56, 62, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1015;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Nav items */
.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.mobile-nav-link.active .arrow {
    transform: rotate(-135deg);
    color: var(--color-accent);
}

/* Mobile Submenu */
.mobile-subpage {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 12px;
    margin-top: 6px;
    background-color: var(--color-bg-alt);
    border-radius: 8px;
}

.mobile-subpage.active {
    max-height: 300px;
    padding: 10px 12px;
}

.mobile-subpage a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    padding: 6px 0;
}

.mobile-subpage a:hover {
    color: var(--color-primary);
}

/* ==========================================
   Responsive Design (Media Queries)
   ========================================== */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        text-align: center;
        padding: 48px 32px;
    }
    
    .contact-text {
        max-width: 100%;
    }
    
    .contact-actions {
        justify-content: center;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-nav-column {
        display: flex;
        justify-content: flex-start;
        gap: 48px;
        width: auto;
    }
}

@media (max-width: 768px) {
    .header {
        height: 65px;
        padding: 0;
    }
    .header.scrolled {
        height: 55px;
    }
    .container {
        padding: 0 16px;
    }
    .logo-link {
        font-size: 1.15rem;
    }
    .logo-badge {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
    .portal-main-tabs-wrapper {
        margin-top: 65px;
    }

    .nav-menu {
        display: none; /* Hide desktop nav */
    }

    .hamburger {
        display: flex; /* Show mobile hamburger */
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: clamp(100px, 15vw, 130px) 0 clamp(40px, 8vw, 60px);
    }

    .hero-title {
        font-size: clamp(1.6rem, 5vw, 1.9rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 24px;
        line-height: 1.65;
    }

    .search-container {
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
    }

    .search-box {
        padding: 6px 6px 6px 14px;
        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .search-icon {
        margin-right: 8px;
    }

    .search-input {
        flex: 1;
        min-width: 0;
        font-size: clamp(0.85rem, 3vw, 0.95rem);
    }

    .btn-search {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 10px 16px;
        font-size: clamp(0.8rem, 2.5vw, 0.88rem);
        gap: 4px;
    }

    .btn-search svg {
        width: 14px;
        height: 14px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(12px, 3vw, 16px);
    }

    .card-item {
        padding: 0;
    }

    .section {
        padding: clamp(40px, 8vw, 60px) 0;
    }

    .section-title-main {
        font-size: clamp(1.5rem, 5vw, 1.8rem);
        margin-bottom: 12px;
    }

    .section-description {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
        line-height: 1.5;
    }

    /* FAQ Section Header Center Alignment on Mobile */
    .faq-section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        margin-bottom: 28px;
    }

    .faq-section-header .section-description {
        text-align: center !important;
    }

    .faq-section-header .btn-more-faq {
        margin: 8px auto 0;
    }

    /* FAQ Accordion Mobile UI Improvement */
    .faq-header {
        padding: clamp(14px, 3.5vw, 18px) clamp(16px, 4vw, 20px);
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .faq-question-box {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .faq-badge-q,
    .faq-badge-category {
        display: none !important;
    }

    .faq-icon-category {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .faq-question {
        flex: 1;
        min-width: 0;
        margin: 0;
        font-size: clamp(0.88rem, 3vw, 0.95rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--color-primary-dark);
    }

    .faq-toggle-icon {
        flex-shrink: 0;
        margin-left: 12px;
    }

    .faq-answer-content {
        padding: 0 24px 24px 50px;
        font-size: 0.9rem;
    }

    .footer-nav-column {
        display: flex;
        justify-content: flex-start;
        gap: 40px;
        width: auto;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-address-info-box {
        margin-right: 0;
        gap: 10px;
    }

    .footer-address-list {
        flex-direction: column;
        gap: 8px;
    }

    .footer-bottom {
        text-align: center;
    }

    /* FAQ 게시판 목록 모바일 카드형 레이아웃 */
    .faq-header-block {
        margin-bottom: 24px !important;
    }
    
    .faq-header-block p.doc-p {
        font-size: clamp(0.88rem, 3.5vw, 0.94rem) !important; /* 14px ~ 15px */
        line-height: 1.5;
        margin-top: 6px;
        margin-bottom: 0;
    }

    #board-header-title {
        font-size: clamp(1.15rem, 4.5vw, 1.25rem) !important; /* 18px ~ 20px */
        line-height: 1.35;
        word-break: keep-all;
    }

    #board-list-title {
        font-size: clamp(1.05rem, 4vw, 1.15rem) !important;
        word-break: keep-all;
    }

    .board-table, 
    .board-table thead, 
    .board-table tbody, 
    .board-table tr, 
    .board-table th, 
    .board-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .board-table thead {
        display: none !important;
    }

    .board-table tr {
        background-color: var(--color-bg-card);
        border: 1px solid var(--color-border);
        border-radius: var(--border-radius-md);
        padding: 14px 16px;
        margin-bottom: 12px;
        box-shadow: 0 4px 10px var(--color-shadow);
        transition: var(--transition-smooth);
        position: relative;
    }

    .board-table td.col-num,
    .board-table td.col-cat,
    .board-table td.col-date {
        display: none !important;
    }

    /* 검색 결과는 여러 분류가 섞이므로, 모바일 카드에서도 분류를 보여줍니다. */
    .board-table tr.is-search-result td.col-cat {
        display: block !important;
        text-align: left;
        padding: 0 0 8px;
        border-bottom: none;
    }

    .board-table td.col-title {
        padding: 0;
        border-bottom: none;
        font-size: clamp(0.88rem, 3.5vw, 0.94rem); /* 14px ~ 15px */
        font-weight: 600;
        color: var(--color-primary-dark);
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

    .board-table td.col-title .board-badge-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
        margin-right: 8px; /* Q 아이콘과 1줄 제목 Flex 간격 조정 대체 */
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: rgba(242, 186, 28, 0.15);
        color: var(--color-accent-hover);
        font-weight: 800;
        font-size: 0.75rem;
    }

    /* 모바일 게시판 검색 & 페이징 여백 */
    .pagination {
        margin-bottom: 24px;
        gap: 4px;
    }

    .page-link {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .board-search-footer {
        display: flex;
        flex-direction: row;
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
        margin-top: 20px;
        padding: 0 4px;
    }

    .board-search-select {
        flex: 0 0 auto;
        padding: 8px 10px;
        font-size: 0.85rem;
        max-width: 90px;
    }

    .board-search-input {
        flex: 1;
        min-width: 0;
        width: auto;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .btn-board-search {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* 모바일 2차 서브 카테고리 드롭다운 노출 및 기존 메뉴 숨김 */
    .portal-sub-nav-wrapper {
        display: none !important;
    }

    .mobile-sub-cat-select-wrapper {
        display: block !important;
    }

    /* manual-select.html 카드 리스트 모바일 최적화 */
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
        gap: 20px 12px !important;
    }

    .card-item .card-icon-box {
        width: 64px !important;
        height: 64px !important;
        border-radius: 14px !important;
        margin-bottom: 10px !important;
    }

    .card-item .card-icon-box svg {
        width: 24px !important;
        height: 24px !important;
    }

    .card-item .card-title {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem) !important; /* 14px ~ 15px */
        font-weight: 600 !important;
        line-height: 1.35 !important;
        padding: 0 4px;
    }

    /* 올인원 목차 모바일 칩(Chip) UI 및 가로 스크롤 최적화 */
    .manual-sidebar {
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-bottom: none !important;
        padding-bottom: 12px !important;
        margin-bottom: 16px !important;
    }

    .sidebar-title {
        display: none !important; /* 모바일에서 올인원 목차 대제목 숨김 */
    }

    .sidebar-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 4px 20px 8px 20px !important; /* 오른쪽 끝 칩 잘림 힌트 효과 */
        gap: 8px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .sidebar-item {
        display: inline-flex !important;
        flex-shrink: 0 !important;
    }

    .sidebar-item-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 16px !important;
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        color: var(--color-text-main) !important;
        background-color: var(--color-bg-card) !important;
        border: 1.5px solid var(--color-border) !important;
        border-radius: 30px !important; /* Pill style */
        white-space: nowrap !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    }

    .sidebar-item-btn:hover {
        background-color: var(--color-primary-light) !important;
        color: var(--color-primary) !important;
        border-color: rgba(41, 75, 84, 0.2) !important;
    }

    .sidebar-item-btn.active,
    .sidebar-item.active > .sidebar-item-btn {
        background-color: var(--color-primary) !important;
        color: #ffffff !important;
        border-color: var(--color-primary) !important;
        box-shadow: 0 4px 10px rgba(41, 75, 84, 0.15) !important;
    }
}

/* ==========================================
   Bulletin Board Style Table (게시판 형식)
   ========================================== */
.board-container {
    max-width: 1000px;
    margin: 40px auto 80px;
}

.board-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--color-primary-dark);
    padding-bottom: 16px;
}

.board-title-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary-dark);
}

.board-stats {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.board-stats span {
    color: var(--color-accent);
    font-weight: 700;
}

/* 게시판 검색 중 안내줄 (전체 분류 검색 표시 + 해제) */
.board-search-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: -8px 0 20px;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background-color: var(--color-primary-light);
}

.board-search-notice-text {
    font-size: 0.88rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

.board-search-notice-text strong {
    font-weight: 700;
    color: var(--color-primary);
}

.board-search-reset {
    flex: 0 0 auto;
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.board-search-reset:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.board-table mark {
    background-color: #ffe066;
    color: inherit;
    font-weight: 600;
    padding: 0 2px;
    border-radius: 2px;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.board-table th {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-weight: 700;
    padding: 16px 12px;
    border-bottom: 1.5px solid rgba(41, 75, 84, 0.2);
    font-size: 0.95rem;
}

.board-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.92rem;
    color: var(--color-text-main);
}

.board-table tr:hover:not(.board-answer-row) {
    background-color: #fafbfc;
}

.col-num { width: 80px; text-align: center; }
.col-cat { width: 100px; text-align: center; }
.col-title { text-align: left; cursor: pointer; font-weight: 500; }
.col-date { width: 120px; text-align: center; color: var(--color-text-muted); }
.col-views { width: 90px; text-align: center; color: var(--color-text-muted); }

.col-title:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Expanded board row for answer */
.board-answer-row {
    background-color: #f7f9f9;
    display: none; /* Controlled by JS toggle */
}

.board-answer-row.active {
    display: table-row;
}

.board-answer-box {
    padding: 24px 30px;
    text-align: left;
    border-left: 4px solid var(--color-accent);
    line-height: 1.7;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.board-answer-box p {
    margin-bottom: 12px;
}

.board-answer-box ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 10px;
}

.board-answer-box li {
    margin-bottom: 6px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 50px;
}

.page-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    transition: var(--transition-smooth);
}

.page-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.page-link.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(41, 75, 84, 0.15);
}

/* Board search filter footer */
.board-search-footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.board-search-select {
    padding: 10px 16px;
    border-radius: 4px;
    border: 1.5px solid var(--color-border);
    background-color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

.board-search-input {
    width: 250px;
    padding: 10px 16px;
    border-radius: 4px;
    border: 1.5px solid var(--color-border);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

.board-search-input:focus,
.board-search-select:focus {
    border-color: var(--color-primary);
}

.btn-board-search {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.btn-board-search:hover {
    background-color: var(--color-primary-dark);
}

/* ==========================================
   Subcategory 6x3 Grid Layout (faq.html)
   ========================================== */
.subcat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.subcat-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}
.subcat-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.subcat-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 992px) {
    .subcat-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .subcat-grid.cols-4,
    .subcat-grid.cols-3,
    .subcat-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.subcat-card {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px var(--color-shadow);
    text-align: left;
}

.subcat-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px var(--color-shadow-hover);
}

.subcat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.subcat-card:hover .subcat-icon {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
}

.subcat-info {
    flex-grow: 1;
}

.subcat-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}

.subcat-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    word-break: keep-all;
}

@media (max-width: 576px) {
    .subcat-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Manual Subpage Layout (manual-paa.html)
   ========================================== */
.manual-container {
    display: flex;
    gap: 40px;
    padding: 225px 0 80px;
}

.manual-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 185px;
    max-height: calc(100vh - 210px);
    overflow-y: auto;
    border-right: 1px solid var(--color-border);
    padding-right: 20px;
    transition: top var(--transition-smooth);
}

.header.scrolled ~ main .manual-container .manual-sidebar {
    top: 155px;
}

.manual-content {
    flex-grow: 1;
    min-width: 0;
}

/* Sidebar Menu */
.sidebar-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
}

.sidebar-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.sidebar-item-btn:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.sidebar-item-btn.active,
.sidebar-item.active > .sidebar-item-btn {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* Sidebar Sub-Menu (Nested Subheadings) */
.sidebar-sub-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding-left: 20px;
    margin-top: 4px;
    margin-bottom: 8px;
    list-style: none;
    border-left: 1px solid var(--color-border);
    margin-left: 14px;
}

.sidebar-item.active .sidebar-sub-menu {
    display: flex;
}

.sidebar-sub-btn {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 6px 12px;
    width: 100%;
    text-align: left;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: block;
}

.sidebar-sub-btn:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.sidebar-sub-btn.active {
    color: var(--color-primary);
    font-weight: 700;
    background-color: var(--color-primary-light);
    border-left: 3px solid var(--color-accent);
    padding-left: 9px;
}

/* Helper Class for User Images inside Document Content */
.manual-img-wrapper {
    display: block;
    width: 100%;
    max-width: 750px;
    margin: 20px 0;
}

.manual-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px var(--color-shadow);
    transition: var(--transition-smooth);
}

.manual-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--color-shadow-hover);
}

.manual-img-caption {
    text-align: left;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: -16px;
    margin-bottom: 24px;
    padding-left: 4px;
    font-weight: 500;
}

/* Manual 2-Level Group Switcher Tabs */
.manual-group-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    gap: 12px;
}

.manual-group-tabs .group-tab-item {
    padding: 6px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    background-color: #f1f3f5;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.manual-group-tabs .group-tab-item:hover {
    color: var(--color-primary);
    background-color: #e9ecef;
}

.manual-group-tabs .group-tab-item.active {
    color: #ffffff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(18, 115, 105, 0.2);
}

/* Manual Category Switcher Tabs (Segmented Control style) */
.manual-category-tabs {
    display: flex;
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background-color: #f8fafb;
    overflow: hidden;
}

.manual-category-tabs .tab-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 700;
    font-size: 0.92rem;
    position: relative;
    transition: var(--transition-smooth);
    border-right: 1px solid var(--color-border);
    background-color: #f8fafb;
    display: block;
}

.manual-category-tabs .tab-item:last-child {
    border-right: none;
}

.manual-category-tabs .tab-item:hover {
    color: var(--color-primary);
    background-color: #f1f3f5;
}

.manual-category-tabs .tab-item.active {
    color: var(--color-primary);
    background-color: #ffffff;
    font-weight: 800;
}

.manual-category-tabs .tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-accent);
}


/* Document content styles */
.doc-section {
    display: none;
}

.doc-section.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.doc-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 12px;
    scroll-margin-top: 150px;
}

.doc-subtitle {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 32px 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--color-accent);
    scroll-margin-top: 150px;
}

.doc-subsubtitle,
.doc-sub-subtitle {
    font-size: 1.15rem !important;
    font-weight: 700;
    color: var(--color-text-main);
    margin-top: 40px !important;
    margin-bottom: 12px !important;
}

/* 타 매뉴얼 본문 내부의 소제목형 strong 태그 크기 일괄 상향 */
.manual-content strong[style*="display: block"],
.manual-content .doc-desc-item strong {
    font-size: 1.15rem !important;
}

.doc-p {
    font-size: 0.98rem;
    color: var(--color-text-main);
    line-height: 1.7;
    margin-bottom: 16px;
    word-break: keep-all;
}

.doc-list {
    margin-left: 20px;
    margin-bottom: 20px;
}

.doc-list-item {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--color-text-main);
    position: relative;
    padding-left: 15px;
}

.doc-list-item::before {
    content: '•';
    color: var(--color-accent);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 15px;
}

.highlight-box {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius-sm);
    padding: 18px 24px;
    margin-bottom: 24px;
}

.step-num {
    display: inline-block;
    color: var(--color-accent);
    font-weight: bold;
    margin-right: 4px;
}

/* Styles for Tables inside Manual */
.manual-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.manual-table th {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-weight: 700;
    border: 1px solid var(--color-border);
    padding: 12px;
    text-align: center;
}

.manual-table td {
    border: 1px solid var(--color-border);
    padding: 12px;
    text-align: left;
    color: var(--color-text-main);
}

.manual-table tr:nth-child(even) {
    background-color: var(--color-bg-alt);
}

/* Responsive sidebar */
@media (max-width: 992px) {
    .manual-container {
        flex-direction: column;
        padding-top: 210px;
    }
    
    .manual-sidebar {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding-right: 0;
        padding-bottom: 20px;
        position: static;
    }
    
    .sidebar-menu {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    
    .sidebar-menu::-webkit-scrollbar {
        display: none !important;
    }
    
    .sidebar-item {
        display: inline-block;
        flex-shrink: 0;
    }
    
    .sidebar-item-btn {
        display: inline-flex;
        white-space: nowrap;
        width: auto;
    }
    
    .sidebar-sub-menu {
        display: none !important;
    }
}

/* ==========================================
   Breadcrumbs (Path Indicator)
   ========================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-weight: 500;
}

.breadcrumbs a {
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

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

.breadcrumbs .separator {
    color: var(--color-border);
    font-size: 0.75rem;
}

.breadcrumbs .current {
    color: var(--color-text-main);
    font-weight: 600;
}

/* ==========================================
   Download Page Styles
   ========================================== */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 960px;
    margin: 40px auto 0;
}

.download-card {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 32px;
    box-shadow: 0 4px 15px var(--color-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.download-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 30px var(--color-shadow-hover);
}

.download-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.download-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-card:hover .download-card-icon {
    background-color: var(--color-primary);
    color: #ffffff;
}

.download-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.download-desc {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 20px 0 24px;
    min-height: 48px;
    word-break: keep-all;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.btn-download-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    width: 100%;
}

.btn-download-file span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-word {
    background-color: #f0f5fc;
    border: 1px solid #d2e3f7;
    color: #1d63b8;
}

.btn-word:hover {
    background-color: #1d63b8;
    color: #ffffff;
    border-color: #1d63b8;
    box-shadow: 0 4px 12px rgba(29, 99, 184, 0.2);
}

.btn-pdf {
    background-color: #fdf2f2;
    border: 1px solid #fad2d2;
    color: #d93838;
}

.btn-pdf:hover {
    background-color: #d93838;
    color: #ffffff;
    border-color: #d93838;
    box-shadow: 0 4px 12px rgba(217, 56, 56, 0.2);
}

.btn-online {
    background-color: var(--color-primary-light);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
}

.btn-online:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(41, 75, 84, 0.2);
}

.download-meta {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-download-file:hover .download-meta {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .download-card {
        padding: 24px;
    }
}

/* ==========================================
   Subpage 2-Column Layout (Single Header)
   ========================================== */
.manual-container.single-header {
    padding-top: 130px;
}

.single-header .manual-sidebar {
    top: 95px;
    max-height: calc(100vh - 120px);
}

.single-header .breadcrumbs {
    margin-bottom: 24px;
}

@media (max-width: 992px) {
    .manual-container.single-header {
        padding-top: 115px;
    }
}

/* No Sidebar Header Styles (Centered & Compact) */
.no-sidebar-header {
    text-align: center;
    margin-bottom: 24px;
}

.no-sidebar-header .doc-title {
    display: inline-block;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: 6px;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    scroll-margin-top: 150px;
}

.no-sidebar-header .doc-p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0 auto;
    max-width: 600px;
}

/* Side-by-Side Split Column Layout */
.manual-split-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin: 24px 0 32px;
}

.manual-split-left {
    flex: 1.2;
    min-width: 0;
}

.manual-split-right {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .manual-split-layout {
        flex-direction: column;
        gap: 20px;
    }
    .manual-split-left,
    .manual-split-right {
        flex: none;
        width: 100%;
    }
}

/* Hyperlinks in manual body content */
.manual-content .doc-section a {
    color: #1a73e8;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
}

.manual-content .doc-section a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Force code tags inside manuals to use unified Noto Sans KR font */
.manual-content code {
    font-family: var(--font-kr);
    font-size: 0.95em;
}

/* Prevent duplicate bullet points for lists starting with numbers/symbols when no-bullet class is on ul */
.no-bullet,
ul.no-bullet,
ol.no-bullet {
    list-style: none !important;
    list-style-type: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.no-bullet .doc-list-item,
ul.no-bullet li,
ol.no-bullet li {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.no-bullet .doc-list-item::before,
ul.no-bullet li::before,
ol.no-bullet li::before {
    content: none !important;
}

/* ==========================================================================
   2-Tier Sub-navigation Bar Styles (Minimal Line Two-tone)
   ========================================================================== */
.nav-menu .nav-link {
    position: relative;
    padding-bottom: 6px;
}
.nav-menu .nav-link.active {
    color: #1a2f4c !important;
    font-weight: 700 !important;
}
.nav-menu .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1a2f4c;
}
.nav-menu .arrow {
    display: none !important;
}
.portal-main-tabs-wrapper {
    position: fixed;
    top: 80px;
    left: 0;
    background-color: #ffffff;
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    z-index: 998;
    transition: top var(--transition-smooth);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.portal-main-tabs-wrapper::-webkit-scrollbar,
.portal-sub-nav-wrapper::-webkit-scrollbar {
    display: none !important;
}
.portal-main-tabs-wrapper,
.portal-sub-nav-wrapper {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}
.portal-main-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: flex-start;
    height: 100%;
}
.portal-main-tabs {
    display: flex;
    height: 100%;
    gap: 8px;
    flex-wrap: nowrap;
    width: max-content;
}
.portal-tab-btn {
    padding: 0 24px;
    color: #718096;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    height: 54px;
    position: relative;
    flex-shrink: 0;
}
.portal-tab-btn:hover {
    color: #274952;
}
.portal-tab-btn.active {
    color: #274952;
    font-weight: 800;
}
.portal-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #274952;
    border-radius: 3px 3px 0 0;
}
.portal-sub-nav-wrapper {
    position: fixed;
    top: 134px;
    left: 0;
    background-color: #f8fafc;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    z-index: 997;
    transition: top var(--transition-smooth);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.portal-sub-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 24px;
    height: 100%;
}
.portal-sub-nav {
    display: flex;
    justify-content: flex-start;
    gap: 4px;
    height: 100%;
    flex-wrap: nowrap;
    width: max-content;
}
.portal-sub-nav-item {
    font-size: 0.9rem;
    font-weight: 600;
    color: #718096;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    transition: all 0.15s ease;
    position: relative;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    flex-shrink: 0;
}
.portal-sub-nav-item:hover {
    color: #274952;
}
.portal-sub-nav-item.active {
    color: #274952;
    font-weight: 700;
    background-color: #ffffff;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}
.portal-sub-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #e5a93b;
}

/* 스크롤 발생 시 1단/2단 탭 바 위치 동적 조정 */
.header.scrolled ~ .portal-main-tabs-wrapper {
    top: 60px;
}
.header.scrolled ~ .portal-sub-nav-wrapper {
    top: 114px;
}
.header.scrolled ~ main .manual-container .manual-sidebar {
    top: 165px;
}

/* 2단 탭 바가 삽입되었을 때 단일 헤더 컨테이너의 강제 패딩 조절 */
.manual-container.single-header {
    padding-top: 225px !important;
}
@media (max-width: 992px) {
    .portal-main-tabs-wrapper {
        position: relative;
        top: 0;
        margin-top: 80px;
    }
    .portal-sub-nav-wrapper {
        position: relative;
        top: 0;
    }
    .manual-container, .manual-container.single-header {
        padding-top: 20px !important;
    }
}

@media (max-width: 480px) {
    .logo-badge {
        display: none !important;
    }
}

/* ==========================================
   페이지 전환 및 동적 카드 로드 시 흰 화면 깜빡임 방지
   ========================================== */

/* 1. 카드가 들어올 영역의 최소 높이를 미리 확보하여 텅 비어 보이는 현상 방지 */
#dynamic-cards-grid {
    min-height: 320px; /* 카드 1~2줄 높이를 미리 확보 */
    transition: opacity 0.2s ease;
}

/* 2. 본문 컨테이너 기본 최소 높이 설정 */
.manual-container {
    min-height: 700px;
}

/* 3. 로딩 애니메이션 시차 축소 (0.4s -> 0.15s로 빠르게) */
.doc-section.active {
    animation: fadeIn 0.15s ease-in-out !important;
}

/* ==========================================================================
   4. 알림/팁/경고 상자 디자인 (Callout Boxes)
   ========================================================================== */
.manual-notice-box, .manual-warning-box, .manual-tip-box {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.manual-notice-box {
    background-color: #f3f7fa;
    border-left: 4px solid #1d63b8;
    color: #2c3e50;
}

.manual-warning-box {
    background-color: #fff9eb;
    border-left: 4px solid #d97706;
    color: #451a03;
}

.manual-tip-box {
    background-color: #f0fdf4;
    border-left: 4px solid #16a34a;
    color: #14532d;
}

.notice-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.manual-notice-box .notice-title {
    color: #1d63b8;
}

.manual-warning-box .notice-title {
    color: #b45309;
}

.manual-tip-box .notice-title {
    color: #15803d;
}

/* ==========================================================================
   Mobile Sub Category Select Box (드롭다운 전환)
   ========================================================================== */
.mobile-sub-cat-select-wrapper {
    display: none;
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-sub-cat-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1.5px solid #e2e8f0;
    font-size: 0.9rem; /* 14px~15px */
    font-weight: 600;
    color: #274952;
    background-color: #ffffff;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23274952' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 40px;
    transition: all 0.2s ease;
}

.mobile-sub-cat-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(41, 75, 84, 0.1);
}



