@charset "UTF-8";
/* =============================================================================
 * content.css
 * 구리시주민편익시설 - 콘텐츠 테이블(TONG_CONTENT)에 등록되는 서브페이지 HTML 공통 스타일
 *
 * docs/1.html ~ docs/18.html 에서 반복 사용되던 스타일을 이 파일로 통합한다.
 * (개별 콘텐츠 HTML 내부 <style> 에는 해당 페이지 고유 스타일만 남긴다.)
 *
 * 단위 기준 : px (콘텐츠별로 px/rem 이 혼재되어 있던 것을 px 로 일원화)
 * BEM Prefix : 콘텐츠 공통 영역이므로 기존 클래스명을 유지한다.
 * ========================================================================== */

/* -----------------------------------------------------------------------------
 * 1. 공통 콘텐츠 컨테이너
 * -------------------------------------------------------------------------- */
.content-container,
.facility-container,
.terms-container,
.greeting-container,
.org-container,
.location-container,
.shuttle-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: #333333;
    box-sizing: border-box;
}

.content-container,
.content-container *,
.register-info-card,
.register-info-card * {
    box-sizing: border-box;
}

/* -----------------------------------------------------------------------------
 * 2. 로딩 애니메이션 (Fade-In Up)
 * -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-item {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0; /* 애니메이션 시작 전 숨김 */
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }
.delay-5 { animation-delay: 0.9s; }

/* -----------------------------------------------------------------------------
 * 3. 섹션 타이틀
 *    - 기본형 : 파란색 도넛 포인트(.section-title::before)
 *    - 번호 배지형(.title-num 사용) 페이지는 개별 HTML 에서 ::before 를 해제한다.
 * -------------------------------------------------------------------------- */
.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 35px 0 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content-container .content-section:first-child .section-title { margin-top: 0; }

.section-title::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 4px solid #1d4ed8;
    border-radius: 50%;
    background-color: transparent;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* 번호 배지(.title-num)가 자식 노드로 존재할 경우 ::before 가상 요소 제거 */
.section-title:has(.title-num)::before {
    content: none;
}

/* 번호 배지형 스타일을 쓸 때 부모에 .has-num 클래스를 부여하는 방식 */
.section-title.has-num::before {
    content: none;
}

/* 번호 배지형 타이틀 (예: "1 일반현황") */
.title-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #1d4ed8;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    border-radius: 6px;
    flex-shrink: 0;
}

/* 서브 타이틀 및 한 줄 배치 레이아웃 */
.sub-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    margin-bottom: 10px;
}

.sub-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sub-section-title::before {
    content: '•';
    color: #1d4ed8;
    font-weight: bold;
    font-size: 2rem;
}

.text-unit {
    font-size: 1.4rem;
    color: #64748b;
    white-space: nowrap;
}

/* -----------------------------------------------------------------------------
 * 4. 공통 데이터 테이블 (.facility-table)
 * -------------------------------------------------------------------------- */
.content-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 25px;
    padding: 1px; /* 1px 패딩을 부여하여 테이블 외곽 테두리가 잘리는 현상 방지 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

/* 2. 시설 안내 테이블 본체 */
table.content-table {
    width: 100%;
    min-width: 800px;
    /* tong.css 전역 리셋 table{border-collapse:collapse !important} 을 무력화한다.
       collapse 모델에서는 border-radius 가 무시되고, overflow:hidden 과 겹쳐
       외곽 보더가 클립 영역 밖으로 잘려 보이지 않는 문제가 발생한다. */
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    font-size: 1.6rem;
    background: #ffffff;
    box-sizing: border-box;
}

/* 3. 헤더 (th) 스타일
 * thead 내부 격자선(th 사이 세로/가로 경계)은 colspan/rowspan 2단 헤더에서도
 * 어긋나지 않도록 우측/하단 모두 1px solid #4a5db5 로 통일한다. */
.content-table th {
    box-sizing: border-box;
    background-color: #354798;
    color: #ffffff;
    padding: 16px 10px;
    font-weight: 600;
    border-right: 1px solid #4a5db5;
    border-bottom: 1px solid #4a5db5;
    white-space: nowrap;
}

.content-table th.th-red-bg {
    background-color: #f96969;
}

.content-table th.th-green-bg {
    background-color: #10b981;
}

/* 2단 병합 헤더(rowspan/colspan)일 때 첫 번째 tr 의 하단 경계선도 동일 색으로 통일.
 * 마크업에서 쓰이던 .border-bottom-blue / .border-top-blue 유틸리티 클래스의 실제 정의도 여기서 담당한다
 * (기존에는 CSS에 정의가 없어 무시되던 클래스였음). */
.content-table thead tr:first-child th,
.content-table thead th.border-bottom-blue {
    border-bottom: 1px solid #4a5db5;
}

.content-table thead th.border-top-blue {
    border-top: 1px solid #4a5db5;
}

/* 4. 데이터 셀 (td) 스타일 */
.content-table td {
    padding: 16px 12px;
    border-right: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    color: #334155;
    line-height: 1.5;
    vertical-align: middle;
    box-sizing: border-box;
}

/* 5. 외곽 테두리와 내부 테두리 이중 중복 방지 (우측 및 하단 경계선 정돈) */
.content-table tr th:last-child,
.content-table tr td:last-child {
    border-right: none;
}

.content-table tr:last-child td {
    border-bottom: none; /* 최하단 행의 border-bottom을 제거하여 외곽 border와 중복 방지 */
}

/* 이전 행의 rowspan 셀(예: 비고)이 우측 칸을 차지하는 경우, 그 아래 행의 마지막 td 는
 * 실제로는 표의 우측 끝이 아니므로 위 :last-child 규칙에서 지워진 우측 경계선을 되살린다.
 * 마크업에서 해당 셀에 border-right-force 클래스를 부여한다(기존엔 정의가 없어 무시되던 클래스). */
.content-table td.border-right-force {
    border-right: 1px solid #cbd5e1 !important;
}

/* 헤더(th)용: rowspan 비고 셀이 우측을 차지해 마지막 th 의 우측선이 사라진 경우 복원(헤더 격자색). */
.content-table th.border-right-force {
    border-right: 1px solid #4a5db5 !important;
}

/* 반대로 rowspan 셀이 마지막 행까지 걸쳐 내려오는 경우(예: 3번째 tr 에서 시작해
 * 마지막 4번째 tr 까지 차지하는 시설명/비고 병합 셀), tr:last-child 규칙에 안 걸려
 * 기본 border-bottom 이 남아 외곽 보더 위에 이중선이 생긴다. 해당 셀에 border-bottom-none
 * 클래스를 부여해 하단 경계선을 제거한다. */
.content-table td.border-bottom-none,
.content-table th.border-bottom-none {
    border-bottom: none !important;
}

/* 6. 셀 스타일 유틸리티 */
.content-table td.content-name-cell {
    background-color: #ebf8ff;
    font-weight: 700;
    color: #1e40af;
}

.content-table td.align-left {
    text-align: left;
}

.content-table td.td-red-tone {
    background-color: #fff5f5;
    color: #991b1b;
}

.content-table td.td-green-tone {
    background-color: #f0fdf4;
    color: #065f46;
}

.content-info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.content-table td .content-icon-circle {
    width: 65px;
    height: 65px;
    background-color: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-table td .content-icon-circle svg {
    width: 34px;
    height: 34px;
    stroke: #1d4ed8;
    fill: none;
    stroke-width: 1.8;
}

.content-table td .content-name-text {
    font-size: 1.7rem;
    color: #1e40af;
    white-space: nowrap;
}

.content-header-card {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px;
    padding: 35px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 40px;
}

/* 이미지 스타일 */
.content-table td .content-img {
    width: 100%;
    max-width: 260px;
    height: 140px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: #f8fafc;
    vertical-align: middle;
    object-fit: cover;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-card {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.gallery-title {
    padding: 12px 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.gallery-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #2563eb;
    border-radius: 50%;
}

.gallery-img-box {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f8fafc;
}

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border: none !important;
    border-radius: 0 0 8px 8px;
}

.gallery-img-box.all-radius img {
    border-radius: 8px;
}

.gallery-card:hover .gallery-img-box img,
.content-table td:hover .gallery-img-box img {
    transform: scale(1.05);
}

/* -----------------------------------------------------------------------------
 * 5. ARS 문의전화 안내
 * -------------------------------------------------------------------------- */
.ars-info-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.ars-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ars-num-badge {
    width: 50px;
    height: 50px;
    background-color: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbeafe;
    flex-shrink: 0;
}

.ars-text-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
}

/* -----------------------------------------------------------------------------
 * 5. 요약 정보 카드 (5종)
 * -------------------------------------------------------------------------- */
.summary-card-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.summary-grid {
    display: grid;
    position: relative;
}

.summary-grid.summary-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.summary-grid.summary-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.summary-grid.summary-grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
    position: relative;
}

.summary-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #e2e8f0;
}

.summary-item .icon-box {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f7ff;
    border-radius: 50%;
}

.summary-item .icon-box svg {
    width: 28px;
    height: 28px;
    stroke: #1d4ed8;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.summary-item .item-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 8px;
    white-space: nowrap;
}

.summary-item .item-desc {
    font-size: 1.6rem;
    color: #334155;
    line-height: 1.5;
    font-weight: 600;
    word-break: keep-all;
}

.summary-item .item-subdesc {
    display: block;
    font-size: 1.5rem;
    color: #64748b;
    margin-top: 4px;
}

.summary-item-4 {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    position: relative;
}

.summary-item-4:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #e2e8f0;
}

.summary-item-4 .icon-box {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-item-4 .icon-box svg {
    width: 26px;
    height: 26px;
    stroke: #1d4ed8;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.summary-item-4 .item-content {
    display: flex;
    flex-direction: column;
}

.summary-item-4 .item-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 4px;
}

.summary-item-4 .item-desc {
    font-size: 1.5rem;
    color: #475569;
    line-height: 1.4;
    word-break: keep-all;
}

/* 모바일 반응형 대응 (768px 이하): 요약 정보 세로 리스트형 변환 */
@media (max-width: 768px) {
    /* 요약 카드 영역 컨테이너 조정 */
    .summary-card-wrapper {
        padding: 10px 20px;
    }

    .summary-grid,
    .summary-grid.summary-grid-5 {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        gap: 0;
    }

    .summary-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        padding: 0;
        width: 100%;
        position: relative;
    }

    /* PC 세로 구분선 해제 및 모바일 가로 구분선 적용 */
    .summary-item::after,
    .summary-item:not(:last-child)::after {
        display: none !important;
    }

    .summary-item:not(:last-child) {
        border-bottom: 1px solid #f1f5f9;
    }

    /* 서클 아이콘 */
    .summary-item .icon-box {
        width: 48px;
        height: 48px;
        min-width: 48px;
        margin-bottom: 0;
        margin-right: 16px;
        background-color: #f0f7ff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .summary-item .icon-box svg {
        width: 24px;
        height: 24px;
        stroke: #1d4ed8;
    }

    /* 항목 타이틀 */
    .summary-item .item-title {
        width: 100px;
        min-width: 100px;
        margin-bottom: 0;
        margin-right: 12px;
        font-weight: 700;
        color: #1e3a8a;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* 항목 설명 (파란색 불릿 점 • 포함) */
    .summary-item .item-desc {
        position: relative;
        padding-left: 14px;
        color: #475569;
        line-height: 1.5;
        word-break: keep-all;
        flex: 1;
    }

    .summary-item .item-desc::before {
        content: '•';
        position: absolute;
        left: 0;
        top: 0;
        color: #2563eb;
        font-weight: bold;
    }

    .summary-item .item-subdesc {
        display: inline-block;
        margin-top: 0;
        margin-left: 4px;
        color: #64748b;
    }
}

@media (max-width: 480px) {
    .summary-item .item-title {
        width: 85px;
        min-width: 85px;
        margin-right: 8px;
    }

    .notice-card {
        padding: 25px 20px;
    }
}

/* -----------------------------------------------------------------------------
 * 6. 이용문의 안내 카드 (.status-info-card)
 * -------------------------------------------------------------------------- */
.status-info-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}

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

.status-list li {
    position: relative;
    padding-left: 18px;
    font-size: 1.7rem;
    color: #334155;
    line-height: 1.75;
}

.status-list li::before {
    content: '•';
    color: #1d4ed8;
    font-weight: bold;
    font-size: 2rem;
}

.status-list li:last-child {
    margin-bottom: 0;
}

.status-list li .tel {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1d4ed8;
}

/* 5대 핵심 가치 아이콘 그리드 */
.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 70px;
}

.value-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 35px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 24px rgba(0, 86, 179, 0.08);
    border-color: #0056b3;
}

.value-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 5개 아이콘 44x44px 크기 및 fill: #0056b3 설정 */
.value-card .icon-wrapper img {
    width: 44px;
    height: 44px;
    display: block;
    fill: #0056b3;
}

.value-card .card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.value-card .card-desc {
    font-size: 1.6rem;
    color: #64748b;
    line-height: 1.5;
    word-break: keep-all;
}

.badge-add {
    display: inline-block;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

.notice-info-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.notice-item .icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #f0f7ff;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notice-item .icon-circle svg {
    width: 22px;
    height: 22px;
    stroke: #1d4ed8;
    fill: none;
    stroke-width: 2;
}

.notice-text-box .title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 6px;
}

.notice-text-box .desc {
    font-size: 1.6rem;
    color: #475569;
    line-height: 1.55;
    word-break: keep-all;
}

.notice-text-box .highlight {
    color: #dc2626;
    font-weight: 700;
}

.register-info-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.register-grid-2,
.register-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
    margin-bottom: 2rem;
}

.register-card-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.register-grid-4 .register-card-box {
    flex-direction: column;
    justify-content: flex-start;
    align-items: normal;
}

.register-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 0.4rem;
}

.register-card-header h4 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
    color: #1e293b;
}

.register-card-badge {
    padding: 0.3rem 0.8rem;
    background-color: #1d4ed8;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 0.4rem;
}

.register-card-item.accent-card {
    background-color: #eff6ff;
    border-color: #bfdbfe;
}

.register-label-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.register-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 4px;
    color: #ffffff;
    white-space: nowrap;
}

.register-card-body {
    font-size: 1.5rem;
    color: #334155;
    line-height: 1.65;
}

.register-card-body ul {
    margin: 0;
    padding-left: 1.6rem;
}

.register-card-body li {
    margin-bottom: 0.6rem;
}

.register-card-body li:last-child {
    margin-bottom: 0;
}

.register-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1e293b;
}

.register-date {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1d4ed8;
}

.register-warning-box { margin-bottom: 24px; }

.sequence-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.sequence-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.sequence-num-badge {
    padding: 6px 12px;
    background-color: #eff6ff;
    color: #1d4ed8;
    font-size: 1.6rem;
    font-weight: 800;
    border-radius: 6px;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.sequence-content {
    display: flex;
    flex-direction: column;
}

.sequence-target-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
}

/* ==========================================
   5. 반응형 미디어 쿼리 (Responsive)
========================================== */
@media (max-width: 900px) {
    .register-grid-2,
    .register-grid-4 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sequence-track {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .register-info-card {
        padding: 16px;
    }

    /* 모바일에서 등록 안내 상자 내부 세로 배치로 전환 */
    .register-card-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 16px;
    }

    .register-label-box {
        width: 100%;
        justify-content: flex-start;
    }

    .register-date {
        width: 100%;
        text-align: left;
    }

    .register-warning-box {
        padding: 14px;
    }

    .sequence-step-card {
        padding: 12px 14px;
    }
}

/* -----------------------------------------------------------------------------
 * 7. 첨부 이미지 시안 반응형 갤러리 레이아웃
 * -------------------------------------------------------------------------- */
.gallery-section {
    margin-bottom: 60px;
}

.gallery-layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 25px;
}

.gallery-top-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
}

.gallery-main-box {
    width: 100%;
    height: 388px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.gallery-main-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-sub-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 186px);
    gap: 16px;
}

.gallery-sub-box {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.gallery-sub-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-main-box:hover img,
.gallery-sub-box:hover img {
    transform: scale(1.04);
}

/* -----------------------------------------------------------------------------
 * 7. 하단 요약 정보 바
 * -------------------------------------------------------------------------- */
.info-bar-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.info-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.info-bar-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    position: relative;
}

.info-bar-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #e2e8f0;
}

.info-bar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
}

.info-bar-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #f0f7ff;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-bar-icon svg {
    width: 22px;
    height: 22px;
    stroke: #1d4ed8;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.info-bar-header .title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1e3a8a;
}

.info-bar-item .desc-box {
    width: 100%;
}

.info-bar-item .desc-box .desc {
    font-size: 1.5rem;
    color: #475569;
    line-height: 1.55;
    word-break: keep-all;
}

/* -----------------------------------------------------------------------------
 * 7. 공통 배지 색상
 * -------------------------------------------------------------------------- */
.badge-navy  { background-color: #1e3a8a; }
.badge-blue  { background-color: #2563eb; }
.badge-green { background-color: #059669; }

/* -----------------------------------------------------------------------------
 * 8. 강조 텍스트 / 공통 안내 문구
 * -------------------------------------------------------------------------- */
.text-highlight {
    color: #dc2626;
    font-weight: 700;
}

.warning-text {
    font-size: 1.5rem;
    color: #991b1b;
    line-height: 1.6;
    word-break: keep-all;
}

.sub-notice-box {
    font-size: 1.5rem;
    color: #64748b;
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 30px;
}

/* -----------------------------------------------------------------------------
 * 9. 경고 / 유의사항 박스 (페이지별 클래스명 통합)
 * -------------------------------------------------------------------------- */
.warning-box,
.rules-warning-box,
.schedule-time-box,
.email-warning-box,
.policy-warning-box,
.register-warning-box {
    background-color: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.warning-box svg,
.rules-warning-box svg,
.schedule-time-box svg,
.email-warning-box svg,
.policy-warning-box svg,
.register-warning-box svg {
    width: 22px;
    height: 22px;
    stroke: #dc2626;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
    margin-top: 2px;
}

/* -----------------------------------------------------------------------------
 * 10. 약관 / 방침 공통 (검색바 + 스티키 목차 + 아코디언)
 *     사용 페이지 : 운영및이용규정 / 개인정보처리방침 / 홈페이지 이용약관
 * -------------------------------------------------------------------------- */
.terms-action-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-box-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 450px;
}

.search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1.52rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #1d4ed8;
}

.btn-search {
    background-color: #1d4ed8;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.btn-search:hover {
    background-color: #1e3a8a;
}

.btn-expand-all {
    background-color: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-expand-all:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.terms-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.terms-toc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.toc-title {
    font-size: 1.68rem;
    font-weight: 700;
    color: #1e293b;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid #1d4ed8;
}

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

.toc-item {
    margin-bottom: 6px;
}

.toc-link {
    display: block;
    padding: 8px 12px;
    color: #475569;
    text-decoration: none;
    font-size: 1.44rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
}

.toc-link:hover,
.toc-link.active {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.terms-content-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.terms-chapter-group {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.chapter-header {
    background: #2b4c7e;
    color: #ffffff;
    padding: 16px 20px;
    font-size: 1.84rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-item {
    border-bottom: 1px solid #e2e8f0;
}

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

.article-header {
    padding: 16px 20px;
    background-color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.article-header:hover {
    background-color: #f8fafc;
}

.article-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-badge {
    background-color: #eff6ff;
    color: #1d4ed8;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 1.28rem;
    font-weight: 700;
}

.article-toggle-icon {
    font-size: 1.36rem;
    color: #64748b;
    transition: transform 0.3s;
}

.article-item.open .article-toggle-icon {
    transform: rotate(180deg);
}

.article-body {
    padding: 0 20px 20px 20px;
    display: none;
    background-color: #ffffff;
    color: #334155;
    font-size: 1.49rem;
    line-height: 1.7;
}

.article-item.open .article-body {
    display: block;
}

.article-body p {
    margin: 6px 0;
}

.sub-list {
    margin: 6px 0 6px 18px;
    padding: 0;
    list-style-type: disc;
}

.sub-list-none {
    margin: 6px 0 6px 18px;
    padding: 0;
    list-style-type: none;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.41rem;
}

.table-custom th {
    background-color: #f1f5f9;
    color: #1e293b;
    padding: 10px;
    border: 1px solid #cbd5e1;
    font-weight: 700;
    text-align: center;
}

.table-custom td {
    padding: 10px;
    border: 1px solid #cbd5e1;
    text-align: left;
}

/* -----------------------------------------------------------------------------
 * 7. 카드 기반 안내 박스
 * -------------------------------------------------------------------------- */
.card-grid-container {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 35px;
}

.card-grid-top {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.card-grid-top.card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card-grid-top.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid-top.card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card-grid-item {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-grid-item.highlight-card {
    background-color: #eff6ff;
    border-color: #bfdbfe;
}

.card-grid-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 4px 10px;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 4px;
    color: #ffffff;
}

.card-grid-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1e293b;
}

.card-grid-desc {
    font-size: 1.6rem;
    color: #475569;
    line-height: 1.55;
    word-break: keep-all;
}

.card-grid-notice {
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notice-sub-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 1.6rem;
    color: #334155;
    line-height: 1.6;
}

.notice-sub-item .icon-dot {
    color: #2563eb;
    font-weight: bold;
}

/* 반응형 모바일 대응 */
@media (max-width: 900px) {
    .status-grid-top,
    .register-period-grid,
    .sequence-track,
    .card-grid-top {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    /* 카드 컨테이너 모바일 여백 및 레이아웃 최적화 */
    .card-grid-container {
        padding: 16px;
        margin-bottom: 25px;
    }

    .card-grid-item {
        padding: 18px 16px;
    }

    .card-grid-notice {
        padding: 14px 16px;
    }

    .notice-sub-item {
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .info-item-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .info-icon-badge {
        width: 100%;
        box-sizing: border-box;
    }
}

/* -----------------------------------------------------------------------------
 * 11. 행 단위 안내 콜아웃 박스
 * -------------------------------------------------------------------------- */
.info-callout-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* 수정: 세로 중앙 정렬 적용 */
.info-item-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.info-item-box:not(:last-child) {
    border-bottom: 1px dashed #e2e8f0;
}

.info-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 140px;
    padding: 8px 12px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    flex-shrink: 0;
    text-align: center;
}

.info-icon-badge svg {
    width: 18px;
    height: 18px;
    stroke: #1d4ed8;
    fill: none;
    stroke-width: 2;
}

.info-text-content {
    font-size: 1.6rem;
    color: #334155;
    line-height: 1.65;
    word-break: keep-all;
}

.info-text-sub {
    font-size: 1.6rem;
    color: #64748b;
    margin-top: 4px;
    padding-left: 0;
    border-left: none;
}

/* -----------------------------------------------------------------------------
 * 11. 공통 반응형 브레이크포인트
 * -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .terms-grid {
        grid-template-columns: 1fr;
    }

    .terms-toc-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .facility-table th,
    .facility-table td {
        padding: 10px 6px;
        font-size: 1.4rem;
    }

    .title-num {
        width: 24px;
        height: 24px;
        font-size: 1.4rem;
    }

    .ars-info-wrapper {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------------------------------------------
 * 12. 카드 기반 안내 박스 - 추첨 신청 안내형 (.card-grid-container--lottery)
 *     기존 card-grid 구조(container > top > item / notice > notice-sub-item)를 그대로 쓰고
 *     수정자 클래스가 붙은 경우에만 적용한다. (다른 콘텐츠의 card-grid 에는 영향 없음)
 *     - 좌측 : 추첨 신청 대상(.card-grid-item--target)
 *     - 우측 : 구장별 추첨일 강조 카드(.card-grid-item--soccer / --futsal)
 *     - 하단 : 일반시민 신청 안내(.card-grid-notice)
 * -------------------------------------------------------------------------- */
.card-grid-container--lottery {
    background: #ffffff;
    border-color: #cfe0f7;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-grid-container--lottery .card-grid-top.card-grid-3 {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 0;
    align-items: stretch;
}

.card-grid-container--lottery .card-grid-item {
    border-radius: 12px;
    padding: 20px 18px;
}

/* 추첨 신청 대상 (공통) */
.card-grid-container--lottery .card-grid-item--target {
    background-color: #eaf2fd;
    border-color: #eaf2fd;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    padding: 24px 28px;
}

.card-grid-container--lottery .card-grid-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
}

.card-grid-container--lottery .card-grid-icon svg {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-grid-container--lottery .card-grid-item--target .card-grid-icon {
    width: 84px;
    height: 84px;
    background: #dbe8fb;
}

.card-grid-container--lottery .card-grid-item--target .card-grid-icon svg {
    width: 46px;
    height: 46px;
    fill: #1d5cf0;
}

.card-grid-container--lottery .card-grid-item--target .card-grid-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.card-grid-container--lottery .card-grid-item--target .card-grid-desc {
    font-size: 1.5rem;
}

/* 구장별 추첨일 카드 */
.card-grid-container--lottery .card-grid-item--soccer,
.card-grid-container--lottery .card-grid-item--futsal {
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.card-grid-container--lottery .card-grid-item--soccer {
    background-color: #f1f8f3;
    border-color: #d5e9da;
}

.card-grid-container--lottery .card-grid-item--futsal {
    background-color: #eef4ff;
    border-color: #cfe0fb;
}

.card-grid-container--lottery .card-grid-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.card-grid-container--lottery .card-grid-head .card-grid-icon {
    width: 56px;
    height: 56px;
}

.card-grid-container--lottery .card-grid-head .card-grid-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.8;
}

.card-grid-container--lottery .card-grid-head .card-grid-title {
    font-size: 2.2rem;
    font-weight: 800;
}

.card-grid-container--lottery .card-grid-item--soccer .card-grid-icon { background: #0f6b3a; }
.card-grid-container--lottery .card-grid-item--futsal .card-grid-icon { background: #1d5cf0; }

/* 추첨일 강조 필(pill) */
.card-grid-container--lottery .card-grid-item--soccer .card-grid-badge,
.card-grid-container--lottery .card-grid-item--futsal .card-grid-badge {
    width: 100%;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 1.5rem;
    text-align: center;
    word-break: keep-all;
}

.card-grid-container--lottery .card-grid-item--soccer .card-grid-badge { background-color: #0f6b3a; }
.card-grid-container--lottery .card-grid-item--futsal .card-grid-badge { background-color: #1d5cf0; }

/* 일반시민 신청 안내 */
.card-grid-container--lottery .card-grid-notice {
    background-color: #f4f6fb;
    border: 1px solid #dbe4f3;
    border-radius: 12px;
    padding: 14px 24px;
}

.card-grid-container--lottery .notice-sub-item {
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
}

.card-grid-container--lottery .notice-sub-item .notice-sub-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 1.9rem;
    font-weight: 800;
    color: #1e293b;
}

/* 라벨 우측 구분자(:) */
.card-grid-container--lottery .notice-sub-item .notice-sub-label span::after {
    content: ':';
    margin-left: 8px;
    color: #1d5cf0;
}

.card-grid-container--lottery .notice-sub-item .notice-sub-label svg {
    width: 24px;
    height: 24px;
    fill: #1d5cf0;
}

.card-grid-container--lottery .notice-sub-item .notice-sub-text strong {
    color: #1d5cf0;
    font-weight: 800;
}

@media (max-width: 1024px) {
    .card-grid-container--lottery .card-grid-item--target {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .card-grid-container--lottery {
        padding: 12px;
    }

    .card-grid-container--lottery .card-grid-item--target {
        padding: 18px 16px;
        gap: 14px;
    }

    .card-grid-container--lottery .card-grid-item--target .card-grid-icon {
        width: 64px;
        height: 64px;
    }

    .card-grid-container--lottery .card-grid-item--target .card-grid-icon svg {
        width: 34px;
        height: 34px;
    }

    .card-grid-container--lottery .notice-sub-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .card-grid-container--lottery .notice-sub-item .notice-sub-label span::after {
        content: none;
    }
}
