@charset "utf-8";

/* =============================================================================
   Fonts
============================================================================= */
@font-face {
    font-family: "SUIT-Regular";
    src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "KCCHyerim-Regular";
    src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/2411-3@1.0/KCCHyerim-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

/* =============================================================================
   Base / Tokens
============================================================================= */
:root {
    --main-navi: #204B62;
    --main-text: #333;
    --main-white: #fff;

    --ink: #273D4E;
    --brand: #003366;
    --tab: #144056;
    --line: #e5e7eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "SUIT-Regular"; }
ul, ol { list-style: none; }
a { text-decoration: none; color: var(--main-text); }
img { vertical-align: bottom; }
html, body { overflow-x: hidden; scroll-behavior: smooth; }
body { max-width: 100%; overflow-x: hidden; }
body.menu-open { overflow: hidden; touch-action: none; }

/* =============================================================================
   Hero
============================================================================= */
.txt {
    background: url(/img/banner_16.png) center top / cover no-repeat;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.txt h1 {
    font-size: 60px;
    margin-top: 50px;
    font-weight: 800;
    color: #fff;
}

/* =============================================================================
   Layout
============================================================================= */
.column-section {
    max-width: 1500px;
    margin: 60px auto;
    padding: 0 20px;
}

/* =============================================================================
   Search
============================================================================= */
.search-bar { text-align: right; margin-bottom: 20px; }

.search-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.search-form input[type="text"] {
    padding: 10px 14px;
    width: 260px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.search-form button {
    padding: 10px 16px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.search-form button:hover { background: #005599; }

/* =============================================================================
   Category Tabs
============================================================================= */
.category-tabs {
    display: flex;
    gap: 12px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.category-tabs a {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid var(--tab);
    border-radius: 20px;
    color: var(--tab);
    background: #fff;
    font-weight: 800;
    font-size: 18px;
    transition: background .2s ease, color .2s ease, transform .08s ease;
}

.category-tabs a:hover {
    background: var(--tab);
    color: #fff;
    transform: translateY(-1px);
}

.category-tabs a.active {
    background: var(--tab);
    color: #fff;
}

/* =============================================================================
   Table
============================================================================= */
.column-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.column-table thead { border-bottom: 2px solid var(--brand); }

.column-table th,
.column-table td {
    padding: 14px 10px;
    text-align: left;
    color: var(--ink);
}

.column-table th {
    font-size: 21px;
    font-weight: 800;
}

.column-table td {
    font-size: 18px;
    border-bottom: 5px dotted #eee;
    vertical-align: top;
}

/* 제목 링크 터치 영역 확보 */
.column-table td a {
    color: var(--brand);
    font-weight: 600;
    display: inline-block;
    padding: 2px 0;
}

.column-no {
    color: #999;
    font-size: 13px;
    margin-right: 8px;
    display: inline-block;
}

/* =============================================================================
   Pagination
============================================================================= */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f0f0f0;
    color: #333;
    font-size: 14px;
    transition: background .2s ease, transform .08s ease;
}

.pagination a:hover {
    background: #ddd;
    transform: translateY(-1px);
}

.pagination a.active {
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

/* =============================================================================
   Responsive
============================================================================= */
@media (max-width: 1024px) {
    .txt h1 { font-size: 52px; }
    .column-table th { font-size: 18px; }
    .column-table td { font-size: 16px; }
}

@media (max-width: 767px) {
    .txt { height: 320px; }
    .txt h1 { font-size: 46px; }

    .search-bar { text-align: left; }
    .search-form { width: 100%; }
    .search-form input[type="text"] { width: 100%; }

    .category-tabs a { font-size: 16px; padding: 9px 14px; }

    .column-table th { font-size: 14px; }
    .column-table td { font-size: 13px; }
    .column-no { font-size: 12px; }
}

@media (max-width: 480px) and (orientation: portrait) {
    .txt { height: 250px; }
    .txt h1 { font-size: 45px; }

    .column-section { margin: 40px auto; }

    /* 모바일에서 긴 제목 줄바꿈 */
    .column-table td a {
        white-space: normal;
        word-break: keep-all;
        line-height: 1.35;
    }
}
