@charset "utf-8";

html {
    scroll-behavior: smooth;
}

:root {
    --solid-color: #9cc4ff;
    --solid-width: 1px;

    --dot-color: #555;
    --dot-width: 0.8px;
    --dot-length: 2;
    --dot-gap: 3;

    --normal-bg: #f8f8f8;
    --normal-border: #d5d5d5;
    --green-bg: #f0f5d7;
    --green-border: #c7d49a;
    --blue-bg: #dff2f2;
    --blue-border: #9dd8d9;
    --dark-blue-bg: #dce8f7;
    --dark-blue-border: #b6cce9;
}

/* 공통 레이아웃 (경매교육 / 성공전략 / 용어사전) */
.edu-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    font-size: 16px;
    color: #1e293b;
    line-height: 1.75;
    text-align: left;
    box-sizing: border-box;
}
.edu-wrap * {
    box-sizing: border-box;
}

.edu-section {
    margin-bottom: 45px;
}
.edu-sec-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    border-left: 4px solid #0f3ba2;
    padding-left: 12px;
}
.highlight-text {
    color: #0f3ba2;
    font-weight: 800;
}

/* 공통 상단 대메뉴 탭 */
.navi-common-tab {
    display: flex !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 20px 0 25px 0 !important;
    padding: 0 0 2px 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #0f3ba2 !important;
    height: auto !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.navi-common-tab::-webkit-scrollbar {
    display: none;
}
.navi-common-tab a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    padding: 10px 22px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border: 1px solid #cbd5e1 !important;
    border-bottom: none !important;
    border-radius: 6px 6px 0 0 !important;
    margin-bottom: -2px !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0;
}
.navi-common-tab a:hover {
    background: #e2e8f0 !important;
    color: #0f3ba2 !important;
}
.navi-common-tab a.focus {
    background: #0f3ba2 !important;
    color: #ffffff !important;
    border-color: #0f3ba2 !important;
}

/* 공통 서브 탭 (sub-nav-tabs) */
.sub-nav-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 35px 0;
    padding: 6px;
    background: #f1f5f9;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.sub-nav-tabs::-webkit-scrollbar {
    display: none;
}
.sub-nav-tabs a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}
.sub-nav-tabs a:hover {
    color: #0f3ba2;
    background: rgba(255, 255, 255, 0.6);
}
.sub-nav-tabs a.active {
    background: #ffffff;
    color: #0f3ba2;
    font-weight: 800;
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
}

/* 경매지식 / 교육 안내 컴포넌트 */
.meaning-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 26px 30px;
    display: flex;
    gap: 13px;
    align-items: flex-start;
}
.meaning-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.meaning-icon-wrap svg {
    width: 24px;
    height: 24px;
    fill: #0f3ba2;
}
.meaning-content p {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #334155;
}
.grid-2col {
    display: flex;
    gap: 24px;
}
.card-item, .target-box, .classify-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 24px 26px;
}
.card-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title svg {
    width: 20px;
    height: 20px;
    fill: #0f3ba2;
}
.card-body-text {
    font-size: 15.5px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 18px;
}
.tag-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.tag-badge {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #334155;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.chip {
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    padding: 5px 14px;
    border-radius: 4px;
    font-weight: 600;
}
.badge-type {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.badge-gangje {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}
.badge-imui {
    background: #eff6ff;
    color: #0f3ba2;
    border: 1px solid #bfdbfe;
}
.point-box {
    margin-top: 14px;
    background: #f8fafc;
    border-left: 3px solid #64748b;
    padding: 10px 14px;
    color: #334155;
}
.timeline-wrap {
    position: relative;
    padding-left: 28px;
    border-left: 2px solid #cbd5e1;
    margin-left: 12px;
}
.tl-node {
    position: relative;
    margin-bottom: 24px;
}
.tl-node:last-child {
    margin-bottom: 0;
}
.tl-dot {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0f3ba2;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #cbd5e1;
}
.tl-date {
    font-size: 18px;
    font-weight: 800;
    color: #0f3ba2;
    margin-bottom: 6px;
}
.tl-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px 20px;
    color: #334155;
    line-height: 1.7;
}

/* 경매절차도 SVG */
.diagram-view-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.diagram-legend-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}
.legend-chip {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}
.chip-normal { background: var(--normal-bg); stroke: var(--normal-border); border: 1px solid #d5d5d5; }
.chip-green  { background: var(--green-bg); stroke: var(--green-border); border: 1px solid #c7d49a; }
.chip-blue   { background: var(--blue-bg); stroke: var(--blue-border); border: 1px solid #9dd8d9; }
.chip-dark   { background: var(--dark-blue-bg); stroke: var(--dark-blue-border); border: 1px solid #b6cce9; }

.auction-wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
}
.auction-svg {
    display: block;
    width: 100%;
    min-width: 626px;
    height: auto;
}
.auction-svg text {
    font-size: 11px;
    fill: #444;
    text-anchor: middle;
    dominant-baseline: middle;
}
.auction-svg .box { fill: var(--normal-bg); stroke: var(--normal-border); stroke-width: .8; }
.auction-svg .green { fill: var(--green-bg); stroke: var(--green-border); stroke-width: .8; }
.auction-svg .blue { fill: var(--blue-bg); stroke: var(--blue-border); stroke-width: .8; }
.auction-svg .blue-dark { fill: var(--dark-blue-bg); stroke: var(--dark-blue-border); stroke-width: .8; }
.auction-svg .line { fill: none; stroke: var(--solid-color); stroke-width: var(--solid-width); stroke-linecap: round; stroke-linejoin: round; }
.auction-svg .dotline { fill: none; stroke: var(--dot-color); stroke-width: var(--dot-width); stroke-dasharray: var(--dot-length) var(--dot-gap); stroke-linecap: round; stroke-linejoin: round; }
.auction-svg .arrow-line { fill: none; stroke: var(--solid-color); stroke-width: var(--solid-width); marker-end: url(#arrowBlue); }
.auction-svg .arrow-dotline { fill: none; stroke: var(--dot-color); stroke-width: var(--dot-width); stroke-dasharray: var(--dot-length) var(--dot-gap); marker-end: url(#arrowGray); }
.auction-svg .note { font-size: 12px; text-anchor: start; }
.auction-svg .small { font-size: 10px; }
.auction-svg .footnote { font-size: 11px; fill: #888; text-anchor: start; }
.auction-svg .bullet { fill: #ff914d; }

.timeline-process-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}
.process-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.process-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(15, 59, 162, 0.06);
}
.process-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.process-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.process-step-badge {
    background: #eff6ff;
    color: #0f3ba2;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.process-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.process-body-text {
    font-size: 15.5px;
    color: #334155;
    line-height: 1.75;
    margin: 0;
}
.process-body-text p {
    margin: 10px 0 0 0;
}
.process-note-box {
    margin-top: 14px;
    background: #f8fafc;
    border-left: 3px solid #0f3ba2;
    padding: 14px 18px;
    font-size: 14.5px;
    color: #334155;
    border-radius: 0 6px 6px 0;
    line-height: 1.65;
    overflow-x: auto;
}
.doc-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.btn-doc-down {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}
.btn-doc-down:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #0f3ba2;
}
.btn-doc-down svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

/* 퀵 앵커 바 */
.quick-anchor-bar {
    display: flex;
    gap: 8px;
    margin: 0 0 35px 0;
    padding: 8px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.quick-anchor-bar::-webkit-scrollbar {
    display: none;
}
.quick-anchor-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.quick-anchor-bar a:hover {
    color: #0f3ba2;
    border-color: #0f3ba2;
    background: #eff6ff;
}

/* 성공전략 */
.strategy-card-wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 50px;
}
.strategy-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    scroll-margin-top: 20px;
}
.strategy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.strategy-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.strategy-badge {
    background: #eff6ff;
    color: #0f3ba2;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
    flex-shrink: 0;
}
.strategy-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.btn-top-anchor {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s ease;
}
.btn-top-anchor:hover {
    color: #0f3ba2;
    background: #f1f5f9;
}
.strategy-body-text {
    font-size: 15.5px;
    color: #334155;
    line-height: 1.8;
}
.strategy-body-text p {
    margin: 14px 0 0 0;
    line-height: 1.8;
}
.strategy-sub-head {
    font-weight: 800;
    color: #0f3ba2;
    margin-top: 18px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
}

/* 경매용어사전 */
.dict-header-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 25px;
}
.dict-guide-text {
    font-size: 15px;
    color: #475569;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dict-guide-text strong {
    color: #0f3ba2;
}
.dict-control-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.dict-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dict-input-text {
    width: 280px;
    height: 42px;
    padding: 0 14px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s ease;
}
.dict-input-text:focus {
    border-color: #0f3ba2;
    box-shadow: 0 0 0 3px rgba(15, 59, 162, 0.1);
}
.btn-dict-search {
    height: 42px;
    padding: 0 20px;
    background: #0f3ba2;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease;
}
.btn-dict-search:hover {
    background: #0b2d7d;
}
.btn-dict-search svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.dict-chosung-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}
.btn-chosung {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    transition: all 0.15s ease;
}
.btn-chosung:hover {
    background: #eff6ff;
    border-color: #0f3ba2;
    color: #0f3ba2;
    transform: translateY(-1px);
}
.dict-viewer-wrap {
    display: flex;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    min-height: 520px;
    margin-bottom: 50px;
}
.dict-list-col {
    width: 280px;
    flex-shrink: 0;
    border-right: 1px solid #e2e8f0;
    padding-right: 16px;
}
.dict-list-col iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}
.dict-content-col {
    flex: 1;
    padding-left: 10px;
}
.dict-content-col iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}


/* 경매서식자료실 (doc-container) */
.doc-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    text-align: left;
}

.doc-main-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 15px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 검색 박스 */
.doc-search-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    position: relative;
}
.doc-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 650px;
    position: relative;
}
.doc-select-cate {
    height: 42px;
    padding: 0 12px;
    font-size: 14.5px;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    outline: none;
    cursor: pointer;
}
.doc-search-input-wrap {
    flex: 1;
    position: relative;
}
.doc-search-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    font-size: 14.5px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}
.doc-search-input:focus {
    border-color: #0f3ba2;
    box-shadow: 0 0 0 3px rgba(15, 59, 162, 0.1);
}
.btn-search-submit {
    height: 42px;
    padding: 0 22px;
    background: #0f3ba2;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s ease;
    white-space: nowrap;
}
.btn-search-submit:hover {
    background: #0b2d7d;
}

#fAutoComplete {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
}
#fAutoComplete p {
    margin: 0;
    padding: 10px 14px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}
#fAutoComplete p:last-child {
    border-bottom: none;
}
#fAutoComplete p:hover, #fAutoComplete p.autoSelected {
    background: #eff6ff;
    color: #0f3ba2;
    font-weight: 600;
}

/* 서식 카테고리 칩 */
.doc-cate-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 25px;
    padding-bottom: 4px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.doc-cate-nav::-webkit-scrollbar {
    height: 4px;
}
.doc-cate-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.doc-cate-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.doc-cate-chip:hover {
    border-color: #0f3ba2;
    color: #0f3ba2;
    background: #eff6ff;
}
.doc-cate-chip.active {
    background: #0f3ba2;
    color: #ffffff;
    border-color: #0f3ba2;
    font-weight: 700;
}

.sub-filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 6px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.filter-btn:hover {
    background: #f1f5f9;
    color: #0f3ba2;
}
.filter-btn.active {
    background: #eff6ff;
    color: #0f3ba2;
    border-color: #0f3ba2;
    font-weight: 700;
}

/* 서식 메타바 (총 개수 & 등록 버튼) */
.doc-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14.5px;
    color: #475569;
}
.doc-meta-total strong {
    color: #0f3ba2;
}
.btn-write {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #0f3ba2;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.btn-write:hover {
    background: #0b2d7d;
}

/* 서식 리스트 테이블 (PC 기본) */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #0f3ba2;
    background: #ffffff;
    margin-bottom: 40px;
}
.doc-table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 10px;
    border-bottom: 1px solid #cbd5e1;
    text-align: center;
}
.doc-table td {
    padding: 13px 10px;
    font-size: 14.5px;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}
.doc-table tr:hover td {
    background: #f8fafc;
}
.doc-cate-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
.doc-title-link {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}
.doc-title-link:hover {
    color: #0f3ba2;
    text-decoration: underline;
}

.btn-download-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    margin-right: 4px;
    font-size: 11.5px;
    font-weight: 800;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.btn-download-chip:hover {
    opacity: 0.85;
}
.chip-hwp  { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.chip-doc  { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.chip-pdf  { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.chip-zip  { background: #faf5ff; color: #9333ea; border: 1px solid #e9d5ff; }

/* 서식 뷰어(상세보기) */
.doc-view-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    overflow: hidden;
    margin-bottom: 25px;
}
.doc-view-header {
    padding: 26px 30px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.doc-view-cate {
    display: inline-block;
    padding: 4px 10px;
    background: #eff6ff;
    color: #0f3ba2;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
    margin-bottom: 10px;
}
.doc-view-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 8px 0;
}
.doc-view-explain {
    font-size: 14.5px;
    color: #64748b;
    margin: 0;
}
.doc-view-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 30px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 12px;
}
.doc-meta-info-group {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13.5px;
    color: #64748b;
}
.doc-meta-info-group span strong {
    color: #334155;
}
.doc-download-area {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.btn-source-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: #0f3ba2;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-decoration: none;
}
.btn-source-link:hover {
    background: #e2e8f0;
}
.doc-view-body {
    padding: 35px 30px;
}
.doc-sample-wrap {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
}
.doc-sample-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.doc-content-text {
    font-size: 15.5px;
    line-height: 1.8;
    color: #334155;
    word-break: keep-all;
}
.doc-view-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}
.btn-back-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: #0f3ba2;
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease;
}
.btn-back-list:hover {
    background: #0b2d7d;
}
.admin-btn-group {
    display: flex;
    gap: 6px;
}
.btn-sub-action {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}
.btn-sub-action:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.btn-delete:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}


/* 부동산세법 (tax_law.php / tax_law_02.php 공통) */
.tax-container {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: left;
}
.tax-main-title {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #191f28;
    margin-bottom: 16px;
}
.tax-main-title img {
    margin-right: 8px;
}
.top-sub-menu {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #d5d7da;
}
.top-sub-menu a {
    display: inline-block;
    padding: 12px 22px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: #888;
    border-bottom: 3px solid transparent;
}
.top-sub-menu a.active {
    color: #1b64da;
    border-bottom: 3px solid #1b64da;
}

.tax-cate-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
}
.tax-cate-tabs li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.tax-cate-tabs li a,
.tax-cate-tabs > a {
    display: block !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    border-radius: 18px !important;
    background-color: #e9ecef !important;
    color: #495057 !important;
    transition: all 0.15s ease;
}
.tax-cate-tabs li a:hover,
.tax-cate-tabs > a:hover {
    background-color: #dee2e6 !important;
    color: #212529 !important;
}

.tax-cate-tabs li.active a,
.tax-cate-tabs li a.active,
.tax-cate-tabs > a.active {
    background-color: #1b64da !important;
    color: #ffffff !important;
}

.tax-card {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.tax-rule-item {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f3f5;
}
.tax-rule-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.tax-rule-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.tax-rule-num {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    background: #e8f0fe;
    color: #1b64da;
    font-weight: bold;
    font-size: 12px;
    border-radius: 50%;
    text-align: center;
    margin-right: 8px;
}
.tax-rule-title {
    font-size: 18px;
    font-weight: bold;
    color: #222;
}
.tax-rule-desc {
    font-size: 16px;
    line-height: 1.65;
    color: #495057;
    margin-left: 28px;
    word-break: keep-all;
}
.tax-rule-desc b {
    color: #111;
}
.tax-rule-desc .accent {
    color: #d93025;
    font-weight: bold;
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0 0 28px;
}
.tag-item {
    background: #f1f3f5;
    color: #495057;
    font-size: 12px;
    padding: 4px 9px;
    border-radius: 4px;
}
.alert-box {
    background: #f8f9fa;
    border-left: 4px solid #1b64da;
    border-radius: 0 4px 4px 0;
    padding: 12px 16px;
    margin: 10px 0 0 28px;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}
.warn-badge {
    display: inline-block;
    background: #e03131;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 4px;
}
.table-wrapper {
    margin: 12px 0 0 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}
.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: center;
}
.modern-table th {
    background: #f1f3f5;
    color: #495057;
    font-weight: bold;
    padding: 11px 8px;
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}
.modern-table td {
    padding: 10px 8px;
    color: #333;
    border-bottom: 1px solid #f1f3f5;
    border-right: 1px solid #f1f3f5;
    vertical-align: middle;
}
.modern-table th:last-child, .modern-table td:last-child {
    border-right: none;
}
.modern-table tr:last-child td {
    border-bottom: none;
}
.modern-table .td-bg {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}
.modern-table .rate-point {
    color: #d93025;
    font-weight: bold;
    background-color: #fef7f7;
}


/* 통합 반응형 미디어 쿼리 (Tablet / Mobile) */
@media (max-width: 1024px) {
    .edu-wrap {
        padding: 0 14px;
    }
    .grid-2col {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .edu-wrap {
        font-size: 15px;
        padding: 0 12px;
    }
    .edu-wrap .navi-common-tab {
        margin: 15px 0 20px 0 !important;
    }
    .edu-wrap .navi-common-tab a {
        padding: 8px 16px !important;
        font-size: 14px !important;
    }
    .doc-container .navi-common-tab {
        display: none !important;
    }
    .sub-nav-tabs {
        margin-bottom: 24px;
        padding: 4px;
        gap: 4px;
    }
    .sub-nav-tabs a {
        padding: 9px 12px;
        font-size: 13.5px;
    }
    .grid-2col {
        flex-direction: column;
        gap: 16px;
    }
    .meaning-card {
        flex-direction: column;
        gap: 13px;
        padding: 20px;
    }
    .process-card {
        padding: 18px 16px;
    }
    .process-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .process-title {
        font-size: 16.5px;
    }
    .doc-btn-group {
        width: 100%;
    }
    .btn-doc-down {
        flex: 1;
        justify-content: center;
        font-size: 12.5px;
        padding: 7px 10px;
    }
    .diagram-legend-bar {
        justify-content: flex-start;
        gap: 8px 14px;
    }
    .legend-item {
        font-size: 12px;
    }
    .process-body-text {
        font-size: 14.5px;
        line-height: 1.7;
    }
    .process-note-box {
        padding: 12px 14px;
        font-size: 13.5px;
    }
    .strategy-card {
        padding: 20px 18px;
    }
    .strategy-title {
        font-size: 17.5px;
    }
    .strategy-body-text {
        font-size: 14.5px;
        line-height: 1.7;
    }
    .dict-header-box {
        padding: 16px;
    }
    .dict-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .dict-input-text, .btn-dict-search {
        width: 100%;
    }
    .dict-chosung-bar {
        justify-content: center;
        gap: 5px;
    }
    .btn-chosung {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .dict-viewer-wrap {
        flex-direction: column;
        padding: 14px;
    }
    .dict-list-col {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-right: 0;
        padding-bottom: 16px;
    }
    .dict-list-col iframe {
        height: 250px;
    }
    .dict-content-col {
        padding-left: 0;
        padding-top: 14px;
    }
    .dict-content-col iframe {
        height: 350px;
    }

    .doc-search-form {
        flex-direction: column;
        gap: 8px;
    }
    .doc-select-cate, .doc-search-input, .btn-search-submit, .doc-search-input-wrap {
        width: 100%;
    }

    .doc-meta-bar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 15px !important;
        gap: 10px !important;
    }
    .doc-meta-total {
        font-size: 13.5px !important;
        line-height: 1.4 !important;
        word-break: keep-all !important;
    }
    .btn-write {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
    }

    .doc-table {
        display: block !important;
        width: 100% !important;
        border: none !important;
        border-top: 2px solid #0f3ba2 !important;
        margin-bottom: 40px !important;
        box-sizing: border-box !important;
    }

	.doc-table th:nth-child(3) {
        width:100%;
    }
	.doc-table th:nth-child(1),
	.doc-table th:nth-child(2),
	.doc-table th:nth-child(4),
	.doc-table th:nth-child(5) {
        display: none !important;
    }
    .doc-table tbody {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .doc-table tbody tr {
        display: block !important;
        width: 100% !important;
        padding: 16px 8px !important;
        border-bottom: 1px solid #e2e8f0 !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }

    .doc-table tbody tr > td:first-child,
    .doc-table .col-hit {
        display: none !important;
    }

    .doc-table tbody tr > td:nth-child(2) {
        display: block !important;
        width: 100% !important;
        padding: 0 0 6px 0 !important;
        border: none !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }
    .doc-cate-badge {
        font-size: 11.5px !important;
        padding: 3px 8px !important;
    }

    .doc-table tbody tr > td:nth-child(3) {
        display: block !important;
        width: 100% !important;
        padding: 0 0 10px 0 !important;
        border: none !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }
    .doc-title-link {
        display: block !important;
        width: 100% !important;
        font-size: 15.5px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        line-height: 1.5 !important;
        text-decoration: none !important;
        word-break: break-all !important;
    }

    .doc-table tbody tr > td:nth-child(4) {
        display: flex !important;
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 0 !important;
        border: none !important;
        text-align: left !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
    }
    .btn-download-chip {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 14px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        border-radius: 4px !important;
    }

    .doc-view-header {
        padding: 20px 18px;
    }
    .doc-view-title {
        font-size: 18.5px;
    }
    .doc-view-meta-bar {
        padding: 14px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .doc-download-area {
        width: 100%;
    }
    .doc-view-body {
        padding: 24px 18px;
    }
    .doc-content-text {
        font-size: 14.5px;
    }

    .tax-card {
        padding: 18px 14px;
    }
    .tax-rule-desc, .table-wrapper, .alert-box, .tag-cloud {
        margin-left: 0;
    }
    .modern-table th, .modern-table td {
        padding: 8px 4px;
        font-size: 12px;
    }
}