@charset "UTF-8";

/* ==============================================================
   서울노동포털 - 메인 페이지 전용 스타일시트
   ============================================================== */


/* ────────────────────────────────────────
   [메인 전용] 1200 경계 여백 점프 제거
   컨테이너 좌우 패딩이 32px(≤1199)→40px(≥1200)로 바뀌며 콘텐츠 폭이
   16px 튀는 것을 없앤다. 태블릿 구간(768~1199)도 40px로 맞춰 ≥1200 과
   연속되게 하고, 헤더·유틸바도 함께 맞춰 끝선 정렬을 유지한다.
   (.page-main 스코프 → 다른 페이지에는 영향 없음)
   ──────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1199px) {
    .page-main .container,
    .page-main .header__inner,
    .page-main .util-bar__inner {
        padding-left: var(--container-pad-lg);
        padding-right: var(--container-pad-lg);
    }
}


/* ────────────────────────────────────────
   메인 비주얼 섹션
   ──────────────────────────────────────── */
.section-visual {
    padding: 0;
    background: #fff;
}

/* 비주얼 3단 그리드 */
.visual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* ── 히어로 래퍼 ── */
.hero-wrap {
    position: relative;
}

/* ── 히어로 슬라이더 (컨테이너 — 소개/배너 슬라이드 공용) ── */
.hero-slider {
    position: relative;
    background: linear-gradient(to bottom right, var(--slider-bg-start) 0%, var(--slider-bg-end) 100%);
    border-radius: var(--radius-xl);
    /* 모바일에서도 좌하단 ㄱ자 노치가 본문을 침범하지 않도록 최소 높이 확보
       (리모컨 박스가 본문 아래에 안착 — 모바일은 아래 max-width:767 에서 재조정) */
    min-height: 240px;
    overflow: hidden;
}

.hero-slider__track {
    display: grid;
    width: 100%;
    height: 100%;
}

/* 슬라이드 공용 뼈대 (그리드 셀 중첩 + 페이드 전환) */
.hero-slide {
    grid-area: 1 / 1;
    min-width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* 배너 슬라이드(2번째부터, CMS 이미지 풀커버)의 링크/이미지 채우기 */
.hero-slide > a {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide > a > picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide__bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── 소개 슬라이드 전용 (1번째 슬라이드: 텍스트 + 캐릭터 일러스트) ── */
.hero-slide--intro {
    display: flex;
    padding: 72px 28px 48px;
    position: relative;
    align-items: flex-start;
}

.hero-slide--ivory {
    background: #EDE6D3;
}

.hero-slide__text { flex: 1; z-index: 1; }

.hero-slide__title {
    font-size: 22px;
    font-weight: 500;
    color: #1A2D50;
    line-height: 1.4;
    margin-bottom: 14px;
}

.hero-slide__desc {
    font-size: 14px;
    color: #3A5070;
    line-height: 1.7;
}

.hero-slide__mascot {
    position: absolute;
    bottom: 0;
    right: 28px;
    width: 140px;
    display: block;
}

.hero-slide__mascot.hero-slide__mascot--test {
    width: 330px;
    bottom: -10px;
    right: 30px;
}
/* 슬라이더 컨트롤 — (2026-10-28) 배너 밖 좌하단 노치 박스 → 배너 안쪽 좌하단의 작은 알약형으로
   (구 서울노동포털 메인 배너의 '< 1/3 > ||' 컨트롤 참고). 그림자 없음 */
.slider-ctrl {
    position: absolute;
    bottom: 20px;
    left: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 3px 4px 3px 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.slider-ctrl__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #555;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 15px;
    outline: none;
}
.slider-ctrl__btn:focus { outline: none; }
.slider-ctrl__btn:focus-visible {
    outline: 2px solid #2b55c0;
    outline-offset: 2px;
}

.slider-ctrl__btn img { width: 8px; height: 14px; }   /* 화살표 원본 12×22 비율 유지 */

.slider-ctrl__count {
    font-size: 14px;
    color: #444;
    min-width: 36px;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 재생/정지 버튼: 원 배경은 SVG 아이콘에 포함되어 있으므로 CSS 배경 제거 */
.slider-ctrl__btn--pause {
    width: 30px;
    height: 30px;
    background: transparent;
    margin-left: 2px;
}

.slider-ctrl__btn--pause:hover {
    background: transparent;
}

.slider-ctrl__btn--pause img {
    width: 30px;
    height: 30px;
}

/* ── 퀵메뉴 ── */
.quick-menu__list {
    display: grid;
    /* 모바일: 1열(전체폭 카드) → 긴 라벨도 한 줄로 표시. 태블릿 이상은 아래 미디어쿼리에서 조정 */
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    gap: 8px;
    height: 100%;
}

.quick-menu__item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 60px;
}

.quick-menu__link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 6px 36px;
    height: 100%;
    gap: 12px;
    text-align: left;
}

.quick-menu__text {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    white-space: nowrap;   /* 버튼 라벨 줄바꿈 방지 */
}

.quick-menu__text--dark { color: var(--color-text); }

.quick-menu__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-menu__item--blue {
    background: var(--color-primary);
    transition: background .2s;
}
.quick-menu__item--blue:hover { background: var(--color-primary-hover); }

.quick-menu__item--sky {
    background: #DEF0FF;
    border: 1px solid #B5B5B5;   /* 연한 진회색 테두리 */
    transition: background .2s;
}
.quick-menu__item--sky:hover { background: #C9E6FF; }

.quick-menu__item--dark {
    background: var(--color-primary-dark);
    transition: background .2s;
}
.quick-menu__item--dark:hover { background: #152E58; }

.quick-menu__item--white {
    background: #fff;
    border: 1px solid var(--color-primary);
    transition: background .2s;
}
.quick-menu__item--white:hover { background: var(--color-bg-light); }

/* 바로가기 메뉴(.shortcut-menu*)는 모든 페이지 공통 요소로
   css/common.css 로 이동했습니다 (js/common.js가 main 최하단에 주입). */


/* ──── 반응형: 태블릿~데스크톱(≥768) 단일 유동 레이아웃 ────
   컨테이너가 1140px로 고정되는 뷰포트에서 브레이크포인트 점프가 생기지
   않도록, 768px 이상은 하나의 규칙으로 통일하고 폭에 따라 값이 연속적으로
   변하도록(fluid) 구성한다. → 1199/1200 경계에서 슬라이더·퀵메뉴 구조가
   갑자기 바뀌지 않는다.
   · 슬라이더(ㄱ자 노치) + 퀵메뉴 2단, 노치 clip-path 는 js/main.js 가 재계산
   · 바로가기 메뉴는 768~1449 숨김, ≥1450 우측 세로 배치에서만 노출
   ─────────────────────────────────────────── */
@media (min-width: 768px) {
    .section-visual { padding: 0; position: relative; }

    .visual-grid {
        grid-template-columns: 1fr 310px;   /* 퀵메뉴 폭 고정 → 경계 점프 제거 */
        grid-template-rows: auto;   /* (2026-10-28) 빈 2행이 간격 8px 을 더하던 것 제거 */
        align-items: stretch;   /* 슬라이더가 퀵메뉴 높이에 맞춰 늘어나도록 */
        gap: 8px;
    }

    .hero-wrap {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        margin-right: 24px;
    }

    /* (2026-10-28) 배너 높이 = 퀵메뉴 4개 높이(70×4 + 간격 8×3 = 304px).
       배너 이미지 크기가 행 높이를 밀어 올리지 않도록 슬라이더는 래퍼를 꽉 채우는 절대 배치 */
    .hero-wrap { min-height: 200px; }
    .hero-slider {
        position: absolute;
        inset: 0;
        min-height: 0;
        height: auto;
    }
    .hero-slider__track,
    .hero-slide { height: 100%; }

    /* 폭에 따라 연속적으로 스케일 — 특정 폭에서 갑자기 커지거나 줄지 않음 */
    .hero-slide--intro { padding: 72px clamp(28px, 3.4vw, 44px) 44px; }
    .hero-slide__title { font-size: clamp(22px, 2.2vw, 26px); }
    .hero-slide__desc  { font-size: clamp(14px, 1.2vw, 15px); }
    .hero-slide__mascot { width: min(52%, 380px); right: 0; }

    .quick-menu {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        align-self: stretch;
        margin-left: -16px;
    }

    /* (2026-10-28) 쉼터 대관신청 제거 → 4개. 버튼 높이는 기존(5개일 때 약 70px) 그대로 고정하고
       배너가 이 높이(304px)에 맞춰 줄어든다 */
    .quick-menu__list {
        grid-template-columns: 1fr;  /* 세로 1열 */
        grid-template-rows: repeat(4, 70px);
        height: auto;
        gap: 8px;
    }

    .quick-menu__item { min-height: 0; }

    .quick-menu__icon img { width: 44px; height: 44px; }
}

/* 바로가기 메뉴의 768~1449 숨김 / ≥1450 우측 세로 배치 / ≤767 하단 카드
   반응형 규칙은 공통(css/common.css)으로 이동했습니다. */


/* (2026-10-28) ≥1200 정적 노치 clip-path 폴백 삭제 — 노치 없이 배너가 사각형 전체를 차지.
   ≥1200 배너 표시 크기 718×304 (권장 이미지 1436×608, 2배) */

/* 바로가기 메뉴의 ≥1450 우측 세로 배치 + 스크롤 추적(is-fixed/is-docked)
   규칙은 공통(css/common.css)으로 이동했습니다. */


/* ──── 모바일(≤767): 히어로 글자·이미지·리모컨을 화면 폭에 맞게 축소 ────
   좁은 화면(300px까지)에서 슬라이더 안 글자/이미지가 가려지거나 깨지지 않도록,
   폰트·이미지를 유동 축소하고 리모컨 박스도 작게 줄인다.
   노치 clip-path 는 js/main.js 가 이 박스 크기에 맞춰 자동 재계산한다.
   ─────────────────────────────────────────── */
@media (max-width: 767px) {
    .hero-slider { min-height: 240px; }

    /* 슬라이드를 슬라이더 높이만큼 채워 이미지(bottom:0)가 하단에 붙도록.
       (모바일은 그리드 stretch 연결이 없어 슬라이드가 내용 높이만큼만 차지 →
        이미지가 중앙에 뜨고 아래 여백이 생기던 문제 해결) */
    .hero-slide--intro { padding: 40px 20px 52px; min-height: 240px; }

    .hero-slide__title {
        font-size: clamp(16px, 4.4vw, 22px);
        margin-bottom: 8px;
    }
    .hero-slide__desc { font-size: clamp(12px, 3.3vw, 14px); }

    /* 이미지: 화면이 좁을수록 함께 축소되되 너무 작지 않게 키움
       (글자와 겹치지 않는 선에서 최대) */
    .hero-slide__mascot { width: min(52%, 200px); right: 8px; }

    /* 리모컨(슬라이더 컨트롤): 배너 안쪽 좌하단 알약형, 모바일은 작게 */
    .slider-ctrl { left: 12px; bottom: 12px; padding: 2px 3px 2px 6px; gap: 1px; }
    .slider-ctrl__btn { width: 24px; height: 24px; font-size: 12px; }
    .slider-ctrl__btn img { width: 7px; height: 12px; }
    .slider-ctrl__count { font-size: 12px; min-width: 28px; }
    .slider-ctrl__btn--pause { width: 24px; height: 24px; margin-left: 2px; }
    .slider-ctrl__btn--pause img { width: 24px; height: 24px; }

    /* 퀵메뉴: 박스가 줄어드는 만큼 글자·아이콘·여백도 뷰포트 폭에 맞춰 함께
       유동 축소 → 좁은 화면(300px까지)에서 겹침·답답함 없이 균형 유지 */
    .quick-menu__link {
        /* 벌어진 배치(space-between)는 유지하고 양측 여백만 살짝 늘려
           글자·아이콘을 안쪽으로 이동 */
        padding: 12px clamp(8px, 2.2vw, 16px);
        padding-left: clamp(28px, 7.5vw, 50px);
        padding-right: clamp(22px, 6vw, 40px);
        gap: clamp(4px, 1.6vw, 10px);
    }
    .quick-menu__icon img {
        /* 선 아이콘(2026-10-28) — 폭에 따라 축소 */
        width: clamp(34px, 7vw, 44px);
        height: clamp(34px, 7vw, 44px);
    }
    .quick-menu__text {
        /* PC·태블릿(17px)과 동일한 크기까지 커지도록 상한을 맞춤 */
        font-size: clamp(10px, 5vw, 17px);
        line-height: 1.35;
        word-break: keep-all;
    }

    /* 바로가기 메뉴(하단 카드) 모바일 스타일은 공통(css/common.css)으로 이동했습니다. */
}


/* ────────────────────────────────────────
   상담안내 + 무료법률지원 현황 묶음 (2026-10-28)
   배너와의 간격 = 아래 콘텐츠 섹션과의 간격 (위·아래 같은 여백)
   ──────────────────────────────────────── */
.main-summary {
    padding: 36px 0;
    background: #fff;
}

/* ────────────────────────────────────────
   연락처 바
   ──────────────────────────────────────── */
.contact-bar {
    padding: 0;
    background: #fff;
}

.contact-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    /* 앞 전화 아이콘 제거(2026-10-28) → 좌우 보정 여백 없음 */
}

.contact-bar__phone-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.contact-bar__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.contact-bar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    position: relative;
}

.contact-bar__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 22px;
    background: rgba(61, 128, 224, 0.6);
}

.contact-bar__label {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-primary);
}

.contact-bar__label--blue   { color: var(--color-primary); }

.contact-bar__number {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

@media (max-width: 767px) {
    .contact-bar__phone-icon { display: none; }

    .contact-bar__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .contact-bar__item {
        border-right: none;
        padding: 0 0;
    }

    /* 세로 배치에서는 항목 사이 파란 세로 구분선 제거 */
    .contact-bar__item:not(:last-child)::after {
        display: none;
    }

    /* 모바일 세로 배치: 글자 크기를 조금 줄여 균형 있게 */
    .contact-bar__label  { font-size: 14px; }
    .contact-bar__number { font-size: 16px; }

    .main-summary { padding: 28px 0; }
}

@media (min-width: 768px) {
    /* 상담안내: 폭이 줄어도 줄바꿈(구조 변경) 대신 폰트·여백이 연속적으로
       축소되어 한 줄을 유지한다. (≤767 에서만 세로 목록으로 전환) */
    .contact-bar__inner { flex-wrap: nowrap; }
    .contact-bar__list  { flex-wrap: nowrap; }

    .contact-bar__item {
        white-space: nowrap;
        padding: 0 clamp(10px, 1.8vw, 24px);
        gap: clamp(6px, 1vw, 12px);
    }

    .contact-bar__label  { font-size: clamp(14px, 1.55vw, 20px); }
    .contact-bar__number { font-size: clamp(15px, 1.75vw, 23px); }
}


/* ────────────────────────────────────────
   통계 섹션
   ──────────────────────────────────────── */
.section-stats {
    padding: 16px 0 0;   /* 상담안내와의 간격 — 위·아래 바깥 여백은 .main-summary */
    background: #fff;
}

.stats-card {
    border: 2.5px solid var(--color-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    overflow: hidden;
    /* 그림자 제거(2026-10-28) */
}

.stats-card__head {
    padding: 20px 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    position: relative;
    min-width: 160px;
}

.stats-card__head::after {
    content: '';
    position: absolute;
    right: 0;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: var(--color-border-light);
}

.stats-card__badge {
    display: block;
    width: auto;
    height: 32px;   /* 민선 9기 슬로건 가로형(2026-10-28) */
    margin-bottom: 6px;
}

.stats-card__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text);
    text-align: center;
}

.stats-card__date {
    font-size: 12px;
    color: var(--color-text-light);
    text-align: center;
}

.stats-card__body {
    display: flex;
    flex: 1;
    align-items: stretch;
    flex-wrap: wrap;
}

.stats-item {
    flex: 1;
    min-width: 140px;
    padding: 24px 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
}

.stats-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.stats-item__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
}

.stats-item__label {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: 0.03em;
}

.stats-item__count {
    font-size: 20px;
    font-weight: 300;
    color: var(--color-primary);
    width: 100%;
    text-align: right;
    line-height: 1.2;
}

.stats-item__count strong {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
}

.stats-card__divider {
    width: 1px;
    background: var(--color-border-light);
    align-self: stretch;
    margin: 12px 0;
}

@media (max-width: 767px) {
    .stats-card { flex-direction: column; }
    .stats-card__head::after { top: auto; right: 12px; left: 12px; bottom: 0; width: auto; height: 1px; }
    .stats-card__body { flex-direction: column; }
    .stats-card__divider { width: auto; height: 1px; margin: 0 16px; }
    .stats-item { justify-content: flex-start; }

    /* 모바일: 통계 섹션 글자 축소 */
    .stats-card__title { font-size: 15px; }
    .stats-card__date  { font-size: 11px; }
    .stats-item__label { font-size: 14px; }
    .stats-item__count { font-size: 16px; }
    .stats-item__count strong { font-size: 16px; }
}

@media (min-width: 768px) {
    .stats-card__head { min-width: 180px; }
    .stats-item { padding: 28px 24px 20px; }
    .stats-item__count { font-size: 22px; }
    .stats-item__count strong { font-size: 22px; }
}

@media (min-width: 1200px) {
    .stats-card__head { min-width: 200px; }
    .stats-item__count { font-size: 24px; }
    .stats-item__count strong { font-size: 24px; }
}


/* ────────────────────────────────────────
   콘텐츠 섹션 (2026-10-28 개편 — 서울노동권익센터 누리집 메인 하단 배치 참고)
   PC(≥1200): 서울노동포털 소식 50% | 센터알림 25% | 자주찾는 메뉴 25%
   태블릿(768~1199): 소식 전체 폭, 아래에 센터알림·자주찾는 메뉴 2칸
   모바일(≤767): 세로 1열. 카드 그림자 없음(평면 + 구분선)
   ──────────────────────────────────────── */
.section-content {
    padding: 0 0 56px;
    background: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
}

/* ── 공통 섹션 헤더 ── */
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
}

/* 세 칸 제목 줄 높이를 맞춘다 */
.portal-news__head,
.notice-banner__head,
.popular-menu__head {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 36px;
    margin-bottom: 12px;
}

/* ── 서울노동포털 소식 ── */
.portal-news {
    display: flex;
    flex-direction: column;
    min-width: 0;   /* 그리드 칸이 내용보다 작아질 수 있도록 */
}

/* 탭: 글자 + 세로 구분선(서울노동권익센터 공지사항 분류 탭과 같은 형식) */
.tab-menu {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}

.tab-btn {
    position: relative;
    display: flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    color: #8a8a8a;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color .2s;
    white-space: nowrap;
}
.tab-btn + .tab-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 12px;
    margin-top: -6px;
    background: #d5d5d5;
}
.tab-btn:hover { color: var(--color-primary); }
.tab-btn.is-active {
    color: var(--color-text);
    font-weight: 700;
}

/* 더보기(선택한 탭의 게시판으로) */
.btn-more {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    height: 30px;
    padding: 0 12px;
    font-size: 13px;
    color: var(--color-text-sub);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}
.btn-more::after {
    content: '';
    width: 6px;
    height: 6px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}
.btn-more:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* 탭 패널: 목록 줄이 센터알림 이미지 높이에 맞춰 고르게 늘어난다 */
.tab-panel { display: none; }
.tab-panel.is-active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    border-top: 2px solid var(--color-text);
}

.news-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0;
}

.news-list__item {
    flex: 1 1 0;
    min-height: 48px;
    display: flex;
    border-bottom: 1px solid #e5e5e5;
}

.news-list__item--empty {
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--color-text-light);
}

.news-list__link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 4px;
}

.news-list__cate {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}
.news-list__cate::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 8px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
}

.news-list__title {
    flex: 1;
    min-width: 0;   /* nowrap 제목이 목록/그리드를 넘겨 늘리지 않도록 */
    font-size: 16px;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-list__link:hover .news-list__title,
.news-list__link:focus-visible .news-list__title {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-list__date {
    flex-shrink: 0;
    font-size: 14px;
    color: #999;
    white-space: nowrap;
}

/* 홍보영상 탭: 썸네일 3개 (썸네일 자체는 css/common.css의 .video_thumb 공용 컴포넌트) */
.pr-video-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 20px 0 0;
}

.pr-video-list__item { min-width: 0; }
.pr-video-list__item.news-list__item--empty { grid-column: 1 / -1; border: 0; padding: 40px 0; }

.pr-video-list__link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}
.pr-video-list__link:hover .pr-video-list__title { color: var(--color-primary); }

.pr-video-list .video_thumb { width: 100%; }
.pr-video-list .video_thumb::before { width: 40px; height: 40px; }
.pr-video-list .video_thumb::after  { border-width: 9px 0 9px 15px; }

.pr-video-list__title {
    width: 100%;
    font-size: 15px;
    line-height: 1.3;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pr-video-list__date {
    font-size: 13px;
    line-height: 1;
    color: #999;
}

/* ── 센터알림(구 미디어자료, 알림판 배너) ── */
.notice-banner {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.notice-banner__head { justify-content: space-between; }

.notice-banner__slider {
    border-radius: var(--radius-xl);   /* 슬라이드가 밀릴 때 안쪽(맞닿는) 모서리는 일자로, 바깥 프레임만 둥글게 */
    overflow: hidden;
}

.notice-banner__item {
    flex-direction: column;
    aspect-ratio: 1 / 1;   /* 이미지 노출 영역을 폭 기준 정사각형으로 고정 */
    min-height: 0;
    overflow: hidden;
}

/* slick.css가 초기화 전(.slick-slide{display:none})/후(.slick-initialized .slick-slide{display:block})
   노출을 관리하므로, 초기화 후에만 flex로 덮어써서 내부 정렬을 유지 */
.notice-banner__slider.slick-initialized .notice-banner__item {
    display: flex;
}

.notice-banner__item a {
    display: block;
    width: 100%;
    height: 100%;
}

.notice-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.notice-banner__placeholder-txt {
    margin: auto;
    font-size: 16px;
    color: var(--color-text-light);
    text-align: center;
}

/* 슬라이더 컨트롤: 1 / 3  <  ||  > */
.mini-ctrl {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.mini-ctrl__count {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-sub);
    min-width: 34px;
    margin-right: 4px;
    text-align: center;
}

.mini-ctrl__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}
.mini-ctrl__btn img { width: 8px; height: 14px; }   /* 화살표 원본 12×22 비율 */

.mini-ctrl__btn--pause img { width: 20px; height: 20px; }

/* ── 자주찾는 메뉴 (디자인 제안 — 순위 번호 + 메뉴명, 일간/주간/월간) ── */
.popular-menu {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.popular-menu__head { justify-content: space-between; gap: 8px; }

.popular-menu__tabs {
    display: flex;
    flex-shrink: 0;
    padding: 2px;
    background: #f1f3f6;
    border-radius: 999px;
}

.popular-menu__tab {
    padding: 3px 8px;
    font-size: 13px;
    line-height: 1.2;
    color: #777;
    background: none;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}
.popular-menu__tab:hover { color: var(--color-primary); }
.popular-menu__tab.is-active {
    background: #fff;
    color: var(--color-text);
    font-weight: 700;
    outline: 1px solid #dfe3ea;
}

.popular-menu__panel { display: none; }
.popular-menu__panel.is-active {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: 0;
    border-top: 2px solid var(--color-text);
}

.popular-menu__list {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    padding: 0;
    counter-reset: none;
}

/* 행 높이 고정(36px × 7줄) — 기간 탭마다 항목 수가 달라도 목록 높이가 같다(빈 줄은 --blank) */
.popular-menu__item {
    flex: 0 0 36px;
    height: 36px;
    display: flex;
    border-bottom: 1px solid #eee;
}

.popular-menu__link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 4px;
}

.popular-menu__rank {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    background: #f1f3f6;
    border-radius: 6px;
}
.popular-menu__item.is-top .popular-menu__rank {
    color: #fff;
    background: var(--color-primary);
}

.popular-menu__item--empty {
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--color-text-light);
}

/* 집계 기준 시각 — (2026-10-29) 기간 탭 삭제로 제목 줄 오른쪽으로 */
.popular-menu__base {
    margin: 0;
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* (2026-10-29) 1~3위는 순위 숫자와 함께 메뉴명도 굵게 */
.popular-menu__item.is-top .popular-menu__name { font-weight: 700; }

.popular-menu__name {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.popular-menu__link:hover .popular-menu__name,
.popular-menu__link:focus-visible .popular-menu__name {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 태블릿(768~1199): 소식 전체 폭 + 아래 2칸 */
@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 28px;
    }
    .portal-news { grid-column: 1 / -1; }
}

/* PC(≥1200, 컨테이너 1060px 고정): 50% | 25% | 25% — 1200 미만은 25% 칸(약 216px)이 좁아 태블릿 배치 유지
   (2026-10-29) 세 칸 아래 끝 맞춤: 줄 높이 = 센터알림(제목 줄 + 정사각 이미지). 소식 5줄·자주찾는 메뉴 7줄은
   고정 높이 대신 남는 높이를 나눠 채워, 마지막 줄 밑선이 센터알림 이미지 아래 끝과 같은 선에 온다 */
@media (min-width: 1200px) {
    .popular-menu__panel.is-active { flex: 1 1 auto; }
    .popular-menu__list { flex: 1 1 auto; }
    .popular-menu__item { flex: 1 1 0; height: auto; min-height: 28px; }
    .content-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
        gap: 32px;
    }
    .portal-news { grid-column: auto; }
}

/* 모바일(≤767): 글자 축소 */
@media (max-width: 767px) {
    .section-content { padding-bottom: 40px; }
    .section-title { font-size: 18px; }
    .portal-news__head { flex-wrap: wrap; gap: 8px 12px; }
    .tab-btn { font-size: 14px; padding: 4px 10px; }
    .tab-btn:first-child { padding-left: 0; }
    .news-list__item { min-height: 44px; }
    .news-list__title { font-size: 14px; }
    .news-list__cate { font-size: 13px; }
    .news-list__date  { font-size: 12px; }
    .pr-video-list { gap: 10px; }
    .pr-video-list .video_thumb::before { width: 28px; height: 28px; }
    .pr-video-list .video_thumb::after  { border-width: 6px 0 6px 11px; }
    .pr-video-list__title { font-size: 12px; }
    .pr-video-list__date  { font-size: 11px; }
    .popular-menu__name { font-size: 14px; }
}

/* 초소형 화면(≤360px): 소식 탭·제목 줄 축소 (300px까지 안 깨지게) */
@media (max-width: 360px) {
    .tab-btn { padding: 4px 8px; font-size: 13px; }
    .btn-more { padding: 0 8px; }
    .popular-menu__tab { padding: 4px 8px; }
}


/* ────────────────────────────────────────
   (2026-10-29 고객 요청) 모바일 메인 정리 — ≤767
   ① 메인 배너가 너무 길어(768×1137) 아래 메뉴가 잘 안 보임 → 4:3(제작 768×576)으로. 이미지는 영역을 꽉 채우고 넘치는 부분만 잘림
   ② 상담전화 안내: 세로 3줄(가운데 정렬, 좌우 여백 큼) → 한 상자 안 3칸
   ③ 무료법률지원 현황: 항목마다 제목 줄 + 건수 줄 → 항목당 한 줄(이름 왼쪽, 건수 오른쪽)
   ──────────────────────────────────────── */
@media (max-width: 767px) {
    /* ① 배너 4:3 */
    .hero-slider { aspect-ratio: 4 / 3; min-height: 0; height: auto; }
    .hero-slider__track,
    .hero-slide,
    .hero-slide > a,
    .hero-slide > a > picture { height: 100%; }
    .hero-slide--intro { min-height: 0; }
    .hero-slide__bg { height: 100%; object-fit: cover; }

    /* ② 상담전화 안내 — 3칸 */
    .contact-bar__inner { display: block; }
    .contact-bar__list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 0;
        border: 1px solid #DCE6F5;
        border-radius: var(--radius-lg);
        background: #F7FAFF;
    }
    .contact-bar__item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 10px 4px;
        text-align: center;
    }
    .contact-bar__item + .contact-bar__item { border-left: 1px solid #DCE6F5; }
    .contact-bar__label { font-size: 12px; }
    .contact-bar__number { font-size: clamp(11px, 3.4vw, 14px); letter-spacing: 0; word-break: keep-all; }
    .main-summary { padding: 20px 0 24px; }
    .section-stats { padding-top: 12px; }

    /* ③ 현황 — 항목당 한 줄 */
    .stats-card__head { padding: 14px 16px 12px; min-width: 0; }
    .stats-card__badge { height: 26px; margin-bottom: 4px; }
    .stats-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-width: 0;
        padding: 12px 16px;
    }
    .stats-item__header { width: auto; min-width: 0; }
    .stats-item__icon img { width: 22px; height: 22px; }
    .stats-item__label { font-size: 13.5px; letter-spacing: 0; }
    .stats-item__count { width: auto; flex-shrink: 0; white-space: nowrap; }
}
