@charset "utf-8";

/* =======================================================
   0. 컬러 및 SVG 변수 설정
======================================================= */
: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;
}

/* =======================================================
   1. 기본 레이아웃 (반응형 기본 적용)
======================================================= */
.edu-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px; /* 모바일/태블릿 좌우 여백 */
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", sans-serif;
    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;
}

/* =======================================================
   2. 1차 메인 탭 네비게이션 (모바일 가로 스크롤 지원)
======================================================= */
.edu-wrap .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;
}
.edu-wrap .navi-common-tab::-webkit-scrollbar {
    display: none; /* 스크롤바 숨김 */
}
.edu-wrap .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; /* 모바일에서 글자 찌그러짐 방지 */
}
.edu-wrap .navi-common-tab a:hover {
    background: #e2e8f0 !important;
    color: #0f3ba2 !important;
}
.edu-wrap .navi-common-tab a.focus {
    background: #0f3ba2 !important;
    color: #ffffff !important;
    border-color: #0f3ba2 !important;
}

/* =======================================================
   3. 2차 서브 탭 네비게이션 (세그먼트 컨트롤)
======================================================= */
.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);
}

/* =======================================================
   4. index.php (경매란) 전용 스타일
======================================================= */
.meaning-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 26px 30px;
    display: flex;
    gap: 22px;
    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;
    font-size: 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: 15px;
    font-weight: 800;
    color: #0f3ba2;
    margin-bottom: 6px;
}
.tl-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px 20px;
    font-size: 15.5px;
    color: #334155;
    line-height: 1.7;
}

/* =======================================================
   5. step.php (경매절차도 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; /* SVG 텍스트가 찌그러지지 않도록 최소 규격 보장 */
    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; }

/* =======================================================
   6. step_02 ~ step_05 (상세 타임라인 카드) 스타일
======================================================= */
.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;
}

/* =======================================================
   7. [핵심] 태블릿 & 모바일 전용 반응형 미디어 쿼리
======================================================= */
/* 7-1. 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
    .edu-wrap {
        padding: 0 14px;
    }
    .grid-2col {
        gap: 16px;
    }
}

/* 7-2. 스마트폰 / 모바일 (768px 이하) */
@media (max-width: 768px) {
    /* 기본 폰트 최적화 */
    .edu-wrap {
        font-size: 15px;
        padding: 0 12px;
    }

    /* 1차 탭: 모바일 패딩 및 터치감 조정 */
    .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;
    }

    /* 2차 서브탭: 모바일 여백 축소 */
    .sub-nav-tabs {
        margin-bottom: 24px;
        padding: 4px;
        gap: 4px;
    }
    .sub-nav-tabs a {
        padding: 9px 12px;
        font-size: 13.5px;
    }

    /* 2열 그리드 -> 1열 세로 정렬 */
    .grid-2col {
        flex-direction: column;
        gap: 16px;
    }

    /* 의의 카드 세로 정렬 */
    .meaning-card {
        flex-direction: column;
        gap: 14px;
        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;
    }
}