/* ==========================================================================
   파일경로: css/common.css
   목적: 토픽스포트라이트 뉴스 플랫폼 전사 통합 스타일시트 (3단 레이아웃 완전 대응)
   ========================================================================== */

:root {
    --primary-color: #0f766e; /* 신뢰감 있는 최고급 딥 틸(Teal) 색상 */
    --secondary-color: #f1f5f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --container-width: 1100px;
    --font-main: 'Noto Sans KR', 'Inter', sans-serif;
}

/* 기본 리셋 및 전역 스타일 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
    color: var(--primary-color);
}

ul, ol, li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* 공통 컨테이너 */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    */
    border-top: 1px solid #f1f5f9;
}

/* 상단 띠 광고 바 */
.top-advert-bar {
    background-color: #0f172a;
    color: #fbbf24;
    font-size: 11px;
    text-align: center;
    padding: 6px 0;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* 공통 헤더 (Header.html 전용) */
.site-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.site-logo a {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -1px;
}

.site-logo a img { height: 36px;}

.site-logo a .highlight {
    color: var(--primary-color);
}

.site-logo svg {
    width: 36px;
    height: 36px;
    fill: var(--primary-color);
}
.header-search {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    overflow: hidden;
    width: 240px;
    background-color: #f1f5f9;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-search:focus-within {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 280px;
}

.header-search input {
    border: none;
    background: transparent;
    padding: 10px 18px;
    outline: none;

    /* [수정] width: 100% 대신 flex: 1을 사용하여 버튼이 차지하고 남은 공간만 채우게 합니다. */
    flex: 1;
    min-width: 0; /* 인풋창이 작아질 때 버그를 방지하는 안정장치 */

    font-size: 14px;
    color: #1e293b;
}

.header-search input::placeholder {
    color: #94a3b8;
}

.header-search button {
    height: -webkit-fill-available;
    padding: 0 22px;
    color: #ffffff;
    background-color: #2563eb;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;

    /* [추가] 두 가지 속성을 넣어 버튼과 글자가 찌그러지는 것을 원천 차단합니다. */
    flex-shrink: 0;    /* 어떤 상황에서도 버튼 너비가 줄어들지 마라 */
    white-space: nowrap; /* 글자가 절대 아래로 줄바꿈되지 마라 */

    transition: background-color 0.2s, transform 0.1s;
}

.header-search button:hover {
    background-color: #1d4ed8;
}

.header-search button:active {
    transform: scale(0.96);
}

/* GNB 네비게이션 */
.site-nav {
    /* background-color: #1e293b; */
    border-top: 1px solid #e8ebef; */
border-top: 1px solid #f1f5f9;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    background-color: #ffffff; /* 배경 화이트 변경 */
    list-style: none;
    margin: 0;
    padding: 0;
    /* 하단에 은은한 구분선을 추가해 경계 명확화 */
}

.nav-list li a {
    display: block;
    padding: 14px 20px;
    color: #334155; /* 화이트 배경에 맞추어 시인성 높은 슬레이트 차콜 컬러로 변경 */
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.3px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

/* 마우스 호버 및 활성화(Active) 상태 */
.nav-list li a:hover,
.nav-list li a.active {
    background-color: #2563eb; /* 포인트 컬러: 선명하고 신뢰감을 주는 트루 블루 */
    color: #ffffff;            /* 글자색 반전 */
}

/* ==========================================================================
   메인페이지 상단 3단 입체 섹션 (main.html 전용)
   ========================================================================== */
.main-top-section {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
    margin-bottom: 25px;
}

/* 1단: TOPIC 회색 미니카드 카드 */
.TOPIC-container {
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.TOPIC-header {
    font-size: 20px;
    font-weight: 900;
    color: #000000;
    border-bottom: 2px solid #000000;
    padding-bottom: 6px;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.TOPIC-slider-outer {
    position: relative;
    overflow: hidden;
    flex: 1;
}

.TOPIC-slider-wrapper {
    display: flex;
    width: 300%; /* 총 3개 슬라이드 기준 */
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.TOPIC-slide {
    width: 33.3333%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.TOPIC-image-wrap {
    width: 100%;
    height: 155px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.TOPIC-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.TOPIC-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.45;
    margin-bottom: 8px;
    word-break: keep-all;
}

.TOPIC-desc {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.TOPIC-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    border-top: 1px solid #cbd5e1;
    padding-top: 12px;
}

.TOPIC-arrow {
    width: 28px;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background-color: var(--bg-white);
    color: var(--text-muted);
    transition: all 0.2s;
}

.TOPIC-arrow:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.TOPIC-dots {
    display: flex;
    gap: 6px;
}

.TOPIC-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
}

.TOPIC-dot.active {
    background-color: #f97316; /* 주황색 포인트 도트 */
    transform: scale(1.2);
}

/* 2단: 중앙 대형 속보 뉴스 */
.center-news-container {
    display: flex;
    flex-direction: column;
}

.center-main-image-wrap {
    width: 100%;
    height: 360px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.center-main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.center-news-container:hover .center-main-image-wrap img {
    transform: scale(1.02);
}

.center-main-title {
    font-size: 26px;
    font-weight: 900;
    margin-top: 16px;
    letter-spacing: -0.8px;
    color: #000000;
    line-height: 1.35;
    word-break: keep-all;
}

/* 3단: 우측 4단 미니 속보 특종 리스트 */
.right-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.right-news-item {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

.right-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.right-news-item .thumb {
    width: 90px;
    height: 68px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.right-news-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.right-news-item .headline {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.badge-red {
    color: #ef4444;
    font-weight: 900;
    margin-right: 4px;
}

.badge-blue {
    color: #2563eb;
    font-weight: 900;
    margin-right: 4px;
}

/* ==========================================================================
   신규: 하단 포럼 및 미션 연동형 가로 배너 띠
   ========================================================================== */
.bottom-forum-row {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 20px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    margin-bottom: 35px;
    background-color: #ffffff;
}

.forum-mission {
    display: flex;
    align-items: center;
    gap: 20px;
}

.forum-mission-logo {
    font-weight: 900;
    font-size: 14px;
    border-right: 1.5px solid #cbd5e1;
    padding: 10px;
    line-height: 1.1;
    color: #1e293b;
}

.forum-mission-logo span {
    display: block;
    font-family: var(--font-main);
    font-size: 10px;
    font-style: normal;
    color: var(--text-muted);
    font-weight: bold;
    margin-top: 2px;
}

.forum-mission img {
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.forum-mission-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #000000;
}

.forum-middle-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    font-size: 12.5px;
    color: #334155;
}

.forum-middle-links a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.forum-right-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #0d9488 100%);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.forum-right-banner:hover {
    opacity: 0.95;
    color: #ffffff;
}

.forum-right-banner .title {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2px;
    margin-bottom: 2px;
}

.forum-right-banner .subtitle {
    font-size: 9px;
    color: #e2e8f0;
    letter-spacing: -0.2px;
}

/* ==========================================================================
   2. 3열 2단 정밀 격자형 카테고리별 뉴스 그리드
   ========================================================================== */
.category-section {
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cat-block {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #111827;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.cat-header h3 {
    font-size: 17px;
    font-weight: 900;
    color: #111827;
}

.cat-header .arrow {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: bold;
}

.cat-featured {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.cat-featured .thumb {
    width: 120px;
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.cat-featured .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-featured .tit {
    line-height: 1.45;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
}

.cat-list {display: flex;flex-direction: column;}

.cat-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #334155;
}



.cat-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cat-list li a {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-list li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ==========================================================================
   동영상 보도자료 및 지난 핫이슈 (main.html 연동)
   ========================================================================== */
.youtube-section {
    background-color: #0f172a;
    color: #ffffff;
    padding: 45px 0;
    margin: 40px 0;
}

.youtube-section .section-title {
    color: #ffffff;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 900;
}

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

.video-item {
    display: block;
}

.video-item:hover h4 {
    color: #38bdf8;
    text-decoration: underline;
}

.video-item .thumb {
    position: relative;
    padding-bottom: 56.25%;
    background-color: #000000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.video-item .thumb img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-item .thumb::after {
    content: '▶';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    background: rgba(15, 118, 110, 0.95);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    padding-left: 3px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.video-item h4 {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    color: #cbd5e1;
}

.issue-card-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.issue-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.issue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

.issue-card img {
    width: 100%;
    height: 165px;
    object-fit: cover;
}

.issue-card .info {
    padding: 15px;
}

.issue-card .info h4 {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.45;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.issue-card .info .date {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   Layout Structure (view.html, list.html 공통 사이드바 구조)
   ========================================================================== */
.content-wrapper {
    display: flex;
    gap: 30px;
    padding: 30px 0;
}

.main-content {
    flex: 1;
    min-width: 0;
    background-color: var(--bg-white);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.aside.view-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}



/* ==========================================================================
   list.html (카테고리별 종합 목록 페이지)
   ========================================================================== */
.list-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.list-header h2 {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-list-item {
    display: flex;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.article-list-item .thumb {
    width: 220px;
    height: 145px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.article-list-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-list-item:hover .thumb img {
    transform: scale(1.04);
}

.article-list-item .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-list-item .info h3 {
    font-size: 19px;
    margin-bottom: 12px;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.35;
}

.article-list-item .info p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-list-item .info .meta {
    font-size: 12px;
    color: #94a3b8;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-white);
    font-weight: 500;
    transition: all 0.2s;
}

.pagination button:hover {
    background-color: #f1f5f9;
}

.pagination button.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* ==========================================================================
   view.html (기사 읽기 및 본문 상세 페이지)
   ========================================================================== */
.article-view-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.article-view-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    word-break: keep-all;
    color: #0f172a;
}

.article-view-meta {
    display: flex;
    gap: 15px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.article-view-body {
    font-size: 17px;
    line-height: 1.85;
    color: #334155;
    word-break: break-all;
}

.article-view-body img {
    margin: 25px auto;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.article-view-body p {
    margin-bottom: 1.2em;
}

.article-tools {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 40px auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tool-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #f8fafc;
    font-size: 13.5px;
    color: var(--text-main);
    transition: all 0.2s;
}

.tool-btn:hover {
    background-color: var(--secondary-color);
    border-color: #cbd5e1;
}


/* ==========================================================================
   about.html (매체 종합 안내 전용 탭 레이아웃)
   ========================================================================== */
.about-hero-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.about-tabs {
    display: flex;
    flex-wrap: wrap;
    column-gap: 5px;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.about-tab-btn {
    padding: 8px 22px;
    font-size: 14.5px;
    font-weight: 600;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.about-tab-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.about-tab-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.about-tab-content {
    display: none;
    padding: 30px;
    background: var(--bg-white);
    border-radius: 8px;
    line-height: 1.6;
    border: 1px solid var(--border-color);
}

.about-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.about-tab-content h3 {
    font-size: 21px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.about-tab-content p {
}

.about-tab-content .contact-box {
    background: var(--bg-body);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.about-tab-content .contact-box strong {
    display: inline-block;
    width: 130px;
    color: var(--primary-color);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.info-table th, .info-table td {
    padding: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
    font-size: 14px;
}

.info-table th {
    background-color: #f8fafc;
    font-weight: bold;
    width: 25%;
    color: var(--text-main);
}

.info-table td {
    color: #334155;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   공통 푸터 (bottom.html 전용)
   ========================================================================== */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 50px 0;
    margin-top: 60px;
    font-size: 13px;
    border-top: 4px solid var(--primary-color);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #1e293b;
}

.footer-links a {
    color: #f1f5f9;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-info {
    display: flex;
    gap: 15px 30px;
    line-height: 1.8;
    flex-direction: row;
    flex-wrap: wrap;
}

.footer-info strong {
    color: #e2e8f0;
    font-weight: 600;
}

.footer-copyright {
    margin-top: 40px;
    text-align: left;
    color: #475569;
    font-size: 12px;
}

/* ==========================================================================
   반응형 모바일 미디어 쿼리
   ========================================================================== */
@media (max-width: 1024px) {
    .main-top-section {
        grid-template-columns: 1fr;
    }
    .bottom-forum-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .forum-middle-links {
        grid-template-columns: 1fr;
    }
    .content-wrapper {
        flex-direction: column;
    }
    .aside.view-sidebar {
        width: 100%;
    }
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .issue-card-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }

    .site-logo a img { height: 24px;}

    .nav-list {
        flex-wrap: nowrap;          /* [요청 반영] 줄바꿈 금지 */
        gap: 20px;                  /* [요청 반영] 메뉴 아이템 간격 */
        overflow-x: auto;           /* [요청 반영] 가로 스크롤 활성화 */
        justify-content: flex-start;/* [요청 반영] 왼쪽 정렬 시작 */

        /* 스크롤바 숨기기 */
        scrollbar-width: none;       /* [요청 반영] Firefox 스크롤바 숨김 */
        -ms-overflow-style: none;    /* IE/Edge 스크롤바 숨김 */

        padding: 0 16px;            /* 모바일 화면 양 끝에 최소한의 여백 확보 */
        -webkit-overflow-scrolling: touch; /* iOS 환경에서 부드러운 스크롤(가속도) 지원 */
    }

    /* 크롬, 사파리, 오페라 브라우저 스크롤바 완전 숨김 */
    .nav-list::-webkit-scrollbar {
        display: none;
    }

    /* 모바일 환경 안정장치 */
    .nav-list li {
        flex-shrink: 0;             /* 가로 스크롤 시 메뉴 박스가 찌그러지지 않도록 고정 */
    }

    .nav-list li a {
        white-space: nowrap;        /* 메뉴 글자가 아래로 줄바꿈되는 현상 원천 차단 */
        padding: 14px 0;            /* 가로 간격은 gap이 채워주므로, 좌우 패딩을 줄여 비례 조절 */
    }
    .article-list-item {
        flex-direction: column;
    }
    .article-list-item .thumb {
        width: 100%;
        height: 200px;
    }
    .category-grid, .video-grid, .issue-card-list {
        grid-template-columns: 1fr;
    }

    .about-tab-content {
        font-size: 14px;
        padding: 20px;
    }

    .about-tabs {
        gap: 2px;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
        flex-direction: row;
    }
    .about-tab-btn {
        width: calc(16.3333% - 1px);
        height: 60px;
        font-size: 13px;
        padding: 5px 0;
        margin-right: 0;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .article-view-title { font-size: 22px; }
    .article-view-body { letter-spacing: -0.09rem; }
}


/* 기본 광고 배너 */
.ad-banner { width: 100%; background-color: #161B2E; /*border: 1px solid #1e293b;*/  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; cursor: pointer; margin: 2rem 0;  }
@media (min-width: 768px) { .ad-banner {  } }
.ad-bg { position: absolute; inset: 0; background: linear-gradient(to right, rgba(30,58,138,0.1), transparent, rgba(30,58,138,0.1)); opacity: 0.5; }
.ad-content { position: relative; z-index: 10; text-align: center; }
.ad-label { font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: 0.1em; font-weight: bold; display: block; margin-bottom: 0.25rem; }
.ad-text { color: #94a3b8; font-weight: 500; }
@media (min-width: 768px) { .ad-text { font-size: 1.125rem; } }
.ad-badge {position: absolute;top: 3px;right: 3px;font-weight: bold;margin: auto;display: flex;align-items: center;font-size: 10px;background: rgba(0, 0, 0, 0.1);color: #cecdcd;padding: 2px 6px;border-radius: 3px;}

/* 우측 광고배너 */
.banner_ad{position:absolute;top:2px; right:2px; width: auto !important; height: 16px; z-index:1;cursor:pointer}

[class*=ad_text] h4 em { color:var(--primary-color)!important; font-style: normal; }
.ad_text_D li a:before { border-color:var(--primary-color)!important; }