
.center-panel { align-items: stretch; }

.news-bar {
    display: flex;
    align-items: center;
    gap: 0;                /* 칸 사이 빈 공간 없이 모두 붙여요 */
    width: 100%;
    margin-top: auto;      /* 남는 공간을 위로 밀어서 줄을 맨 아래에 붙여요 */
    padding-top: 10px;
}

/* "NEWS" 칸: 다른 칸과 같은 크기 */
.news-bar-label {
    flex: 1 1 0;           /* 다른 칸과 같은 가로 폭 */
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;          /* 다른 칸과 같은 높이 */
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;   /* 현대적인 산세리프 */
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fff;
    background: #073BA6;           
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 분야 칸: 조금 작게 */
.news-chip {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px;
    padding: 0 3px;
    border-radius: 0;                /* 각진 직사각형 */
    color: #24364b;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.news-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.news-ico { flex: none; font-size: 0.95rem; line-height: 1; }

.news-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 700;
}

/* 칸마다 다른 색 (밝은 바탕은 남색 글씨, 진한 바탕은 흰 글씨) */
.news-chip.n-society { background: #eb8a3d; }                    /* 주황 */
.news-chip.n-life    { background: #9cc65a; }                    /* 연두 */
.news-chip.n-world   { background: #8c2f63; color: #fff; }       /* 자주 */
.news-chip.n-issue   { background: #f3bd3a; }                    /* 황금 노랑 */
.news-chip.n-politic { background: #2a7f78; color: #fff; }       /* 단청 청록 */

/* 폰: NEWS 칸(윗줄 전체) → 칩 2개 → 칩 3개 */
@media screen and (max-width: 768px), screen and (hover: none) and (pointer: coarse) and (max-width: 1000px) {
    .news-bar { flex-wrap: wrap; margin-top: 14px; padding-top: 0; }
    .news-bar-label { flex: 0 0 100%; height: 38px; }         /* NEWS: 맨 윗줄 전체 */
    .news-chip { flex: 1 1 28%; height: 38px; }               /* 아래 세 칸: 한 줄에 3개 */
    .news-chip:nth-of-type(-n+2) { flex: 1 1 45%; }           /* 사회·생활문화: 두 번째 줄에 2개 */
}
