﻿/* =========================================================
   /css/news_list_readable.css
   뉴스 목록 페이지 가독성 개선 전용
   대상: /news/list.asp
   main class="news-page news-list-page" 필요
   ========================================================= */

.news-list-page {
    background: #ffffff;
}

.news-list-page .site-container {
    max-width: 1220px;
}

.news-list-page .news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 42px;
    align-items: start;
}

/* 페이지 헤더 */
.news-list-page .news-page-head {
    margin-bottom: 18px;
    padding: 0 0 20px;
    border-bottom: 2px solid #202632;
}

.news-list-page .news-page-kicker {
    margin-bottom: 7px;
    color: #1f5fae;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.news-list-page .news-page-title {
    margin: 0;
    color: #101827;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 750 !important;
    letter-spacing: -0.075em;
}

.news-list-page .news-page-desc {
    margin: 10px 0 0;
    color: #667085;
    font-size: 15.5px;
    line-height: 1.72;
    font-weight: 400;
    letter-spacing: -0.025em;
}

/* 서브카테고리 */
.news-list-page .news-category-tabs {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0 0 24px;
    padding: 0;
    overflow-x: auto;
    border-bottom: 1px solid #e4e8ef;
    scrollbar-width: none;
}

.news-list-page .news-category-tabs::-webkit-scrollbar {
    display: none;
}

.news-list-page .news-category-tabs a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: #ffffff;
    color: #4b5563;
    font-size: 14.5px;
    line-height: 1;
    font-weight: 550 !important;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.news-list-page .news-category-tabs a:hover {
    color: #1f5fae;
    background: #f8fbff;
}

.news-list-page .news-category-tabs a.active {
    color: #1f5fae;
    border-bottom-color: #1f5fae;
    background: #ffffff;
    font-weight: 700 !important;
}

/* 목록 정보 */
.news-list-page .news-toolbar {
    min-height: 44px;
    margin-bottom: 0;
    padding: 0 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #667085;
    font-size: 14px;
    border-bottom: 1px solid #e4e8ef;
}

.news-list-page .news-count strong,
.news-list-page .news-toolbar strong {
    color: #1f5fae;
    font-weight: 700;
}

/* 기사 목록 */
.news-list-page .news-list-wrap {
    border-top: 0;
}

.news-list-page .news-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
    padding: 25px 0;
    border-bottom: 1px solid #edf1f5;
    background: #ffffff;
    transition: background 0.16s ease;
}

.news-list-page .news-row:hover {
    background: #fbfdff;
}

.news-list-page .news-row-thumb {
    width: 210px;
    aspect-ratio: 16 / 10.5;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f4f8;
    border: 1px solid #e4e8ef;
}

.news-list-page .news-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.news-list-page .news-row:hover .news-row-thumb img {
    transform: scale(1.035);
}

.news-list-page .no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
}

.news-list-page .news-row-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list-page .news-row-category {
    width: fit-content;
    min-height: 25px;
    margin-bottom: 9px;
    padding: 0 9px 0 10px;
    display: inline-flex;
    align-items: center;
    border-left: 3px solid #1f5fae;
    background: #f4f8ff !important;
    color: #1f5fae !important;
    font-size: 12.5px;
    line-height: 1;
    font-weight: 650 !important;
    letter-spacing: -0.02em;
}

.news-list-page .news-row-title {
    margin: 0;
    color: #111827;
    font-size: 23px;
    line-height: 1.42;
    font-weight: 700 !important;
    letter-spacing: -0.06em;
    word-break: keep-all;
}

.news-list-page .news-row-title a {
    color: inherit;
}

.news-list-page .news-row-title a:hover {
    color: #1f5fae;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.news-list-page .news-row-summary {
    margin: 11px 0 0;
    color: #5f6b7a;
    font-size: 15.5px;
    line-height: 1.72;
    font-weight: 400;
    letter-spacing: -0.025em;
    word-break: keep-all;
}

.news-list-page .news-row-meta {
    margin-top: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: #8b95a1;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
}

.news-list-page .news-row-meta span {
    position: relative;
}

.news-list-page .news-row-meta span + span::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 1px;
    height: 10px;
    background: #d7dde6;
    transform: translateY(-50%);
}

.news-list-page .news-empty {
    margin-top: 18px;
    padding: 58px 20px;
    border: 1px solid #e4e8ef;
    border-radius: 16px;
    background: #f8fafc;
    color: #8b95a1;
    font-size: 15px;
    text-align: center;
    font-weight: 400 !important;
}

/* 페이징 */
.news-list-page .news-paging {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.news-list-page .news-paging a,
.news-list-page .news-paging strong {
    min-width: 39px;
    height: 39px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4dae3;
    border-radius: 999px;
    background: #ffffff;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500 !important;
}

.news-list-page .news-paging a:hover {
    border-color: #1f5fae;
    color: #1f5fae;
    background: #f4f8ff;
}

.news-list-page .news-paging strong {
    border-color: #1f5fae;
    background: #1f5fae;
    color: #ffffff;
    font-weight: 700 !important;
}

/* 우측 영역 */
.news-list-page .news-aside {
    position: sticky;
    top: 18px;
}

.news-list-page .news-side-box {
    margin-bottom: 26px;
    padding: 0;
    border: 1px solid #e4e8ef;
    border-top: 2px solid #202632;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.news-list-page .news-side-head {
    padding: 16px 18px;
    border-bottom: 1px solid #e4e8ef;
    background: #fbfcfe !important;
    color: #111827 !important;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700 !important;
    letter-spacing: -0.055em;
}

.news-list-page .news-side-list {
    margin: 0;
    padding: 4px 18px 8px;
    list-style: none;
}

.news-list-page .news-side-list li {
    padding: 13px 0;
    border-bottom: 1px solid #edf1f5;
}

.news-list-page .news-side-list li:last-child {
    border-bottom: 0;
}

.news-list-page .news-side-list a {
    color: #273142;
    font-size: 14.5px;
    line-height: 1.55;
    font-weight: 500 !important;
    letter-spacing: -0.035em;
}

.news-list-page .news-side-list a:hover {
    color: #1f5fae;
}

.news-list-page .news-rank-item {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.news-list-page .news-rank-num {
    color: #1f5fae;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 800 !important;
}

/* 반응형 */
@media (max-width: 1080px) {
    .news-list-page .news-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .news-list-page .news-aside {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
}

@media (max-width: 720px) {
    .news-list-page .news-page-head {
        margin-bottom: 14px;
        padding-bottom: 16px;
    }

    .news-list-page .news-page-title {
        font-size: 28px;
        line-height: 1.32;
    }

    .news-list-page .news-page-desc {
        font-size: 14.5px;
    }

    .news-list-page .news-category-tabs {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .news-list-page .news-toolbar {
        min-height: auto;
        padding: 12px 0;
        display: block;
        line-height: 1.8;
    }

    .news-list-page .news-row {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 14px;
        padding: 18px 0;
    }

    .news-list-page .news-row-thumb {
        width: 118px;
        aspect-ratio: 1 / 0.82;
        border-radius: 10px;
    }

    .news-list-page .news-row-category {
        min-height: 22px;
        margin-bottom: 7px;
        font-size: 12px;
    }

    .news-list-page .news-row-title {
        font-size: 17px;
        line-height: 1.48;
        font-weight: 650 !important;
    }

    .news-list-page .news-row-summary {
        display: none;
    }

    .news-list-page .news-row-meta {
        margin-top: 9px;
        gap: 4px 10px;
        font-size: 12px;
    }

    .news-list-page .news-row-meta span + span::before {
        left: -6px;
    }

    .news-list-page .news-aside {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .news-list-page .news-page-title {
        font-size: 26px;
    }

    .news-list-page .news-row {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 12px;
    }

    .news-list-page .news-row-thumb {
        width: 104px;
    }

    .news-list-page .news-row-title {
        font-size: 16px;
    }

    .news-list-page .news-row-meta span:nth-child(n+3) {
        display: none;
    }

    .news-list-page .news-category-tabs a {
        min-height: 40px;
        padding: 0 13px;
        font-size: 13.5px;
    }
}