/* kaids.or.kr — 기존 사이트 스타일: 서브탑 밴드 + 좌측 메뉴 박스 (라이트) */

/* 서브탑: 단색 밴드 + 가운데 큰 제목, 브레드크럼 바 없음 */
html .board-header-full,
html[data-theme="light"] .board-header-full {
    background: #6974dc;
    padding: 25px 0;
    justify-content: center;
}
html .board-header-full h2,
html .board-header-full .board-title-white,
html[data-theme="light"] .board-title-white {
    margin: 0;
    color: #fff !important;
    font-size: 35px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0;
}
.sub-breadcrumb-bar { display: none !important; }
/* 서브탑 밴드 하단 여백 (원본: 밴드와 본문 사이 약 80px) */
html .board-header-full { margin-bottom: 70px; }
@media (max-width: 768px) { html .board-header-full { margin-bottom: 28px; } }

/* 좌측 메뉴: 파란 타이틀 박스 + 연회색 목록 */
.xz-sidenav.sw-box {
    background: #ececec;
    border: 0;
    border-radius: 0;
    padding: 0 0 18px;
    overflow: hidden;
}
.xz-sidenav .sw-title {
    margin: 0 0 8px;
    padding: 24px 18px;
    background: #6974dc;
    border: 0;
    font-size: 1.6rem;
    font-weight: 400;
}
.xz-sidenav .sw-title,
.xz-sidenav .sw-title a { color: #fff !important; }
.xz-sidenav__list { padding: 0 0 0; }
.xz-sidenav__item {
    padding: 11px 18px;
    border-bottom: 1px solid #d8d8d8;
    color: #111;
    font-size: 1.0625rem;
    font-weight: 500;
}
.xz-sidenav__item:last-child { border-bottom: 0; }
.xz-sidenav__item:hover,
.xz-sidenav__item.is-active { color: #6974dc; background: transparent; }

/* 좌측 나머지 박스(전체게시물 등)도 연회색 */
.subpage-sidebar .sw-box:not(.xz-sidenav) {
    background: #f3f3f3;
    border: 0;
    border-radius: 0;
}
.subpage-sidebar .sw-box:not(.xz-sidenav) .sw-title {
    color: #3b82f6;
    font-size: 1.25rem;
    border-bottom: 0;
}

/* ═══ 메인 화면: 원본(kaids.or.kr) 스타일 ═══ */
/* 2단 배치: 게시판 섹션 2개가 한 줄, 히어로·하이라이트·배너는 전체 폭 */
.container-fluid-homepage:has(> .xz-home-section) {
    --pad: max(15px, calc((100vw - 1450px) / 2));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 36px;
    padding: 0 var(--pad) !important;
    max-width: 100%;
}
html .container-fluid-homepage > .xz-home-section:not(.xz-home-section--board) {
    grid-column: 1 / -1;
    position: static; left: auto; right: auto;
    width: calc(100% + 2 * var(--pad)); max-width: none;
    margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad));
    box-sizing: border-box;
}
.container-fluid-homepage > .xz-home-section--board { grid-column: auto; margin: 0; }
.xz-home-section--board > .xz-home-inner { max-width: none; padding-left: 0; padding-right: 0; }
@media (max-width: 980px) {
    .container-fluid-homepage:has(> .xz-home-section) { grid-template-columns: 1fr; column-gap: 0; }
    .container-fluid-homepage > .xz-home-section--board { grid-column: 1 / -1; }
}

/* 섹션 제목: 왼쪽 큰 제목 + 오른쪽 MORE + 아래 가는 선 */
.xz-home-section--board .xz-home-title {
    position: relative;
    display: flex; align-items: flex-end; justify-content: space-between;
    text-align: left;
    padding-bottom: 14px; margin-bottom: 16px;
    border-bottom: 1px solid #d8d8d8;
}
.xz-home-section--board .xz-home-title h2 {
    margin: 0; font-size: 1.9rem; font-weight: 700; letter-spacing: -1px; color: #111; text-align: left;
}
.xz-home-section--board .xz-home-title h2::after { display: none !important; }
.xz-home-section--board .xz-home-title a {
    position: static !important;
    font-size: 0; color: #888; text-decoration: none; line-height: 1;
}
.xz-home-section--board .xz-home-title a::after { content: 'MORE +'; font-size: .9rem; font-weight: 600; letter-spacing: .3px; }
.xz-home-section--board .xz-home-title a:hover { color: var(--primary); }

/* 목록형: [날짜] 제목 (날짜는 파란색, 선 없는 간결한 목록) */
.xz-home-section--list .list-skin-table { border-top: 0 !important; margin-bottom: 0 !important; }
.xz-home-section--list .list-skin-table tr { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; }
.xz-home-section--list .list-skin-table td { border: 0 !important; padding: 9px 0 !important; text-align: left !important; }
.xz-home-section--list .list-skin-table td.xz-l-date { flex: 0 0 auto; padding-right: 8px !important; color: #3367d6 !important; font-size: 1rem !important; }
.xz-home-section--list .list-skin-table td.xz-l-date::before { content: '['; }
.xz-home-section--list .list-skin-table td.xz-l-date::after  { content: ']'; }
.xz-home-section--list .list-skin-table td.xz-l-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xz-home-section--list .list-skin-table td.xz-l-title a { font-size: 1.1rem; font-weight: 500 !important; }

/* 웹진형: 왼쪽 썸네일 + 오른쪽 제목/요약 (카테고리 뱃지·날짜는 숨김) */
.xz-home-section--webzine .xz-home-title { margin-bottom: 26px; }  /* 목록형과 같은 왼쪽 제목 + 아래 선, 선 아래 여백 */
.xz-home-section--webzine .webzine-wrapper { display: flex; flex-direction: column; gap: 22px; }
.xz-home-section--webzine .webzine-item { display: grid !important; grid-template-columns: 200px 1fr; column-gap: 20px; align-items: start; padding: 0 !important; border: 0 !important; }
.xz-home-section--webzine .webzine-thumb { grid-row: 1 / span 2; width: 200px !important; border-radius: 10px; }
.xz-home-section--webzine .webzine-badge, .xz-home-section--webzine .webzine-date { display: none !important; }
.xz-home-section--webzine .webzine-title { margin: 0 0 6px; font-size: 1.15rem !important; font-weight: 700; line-height: 1.4; }
.xz-home-section--webzine .webzine-excerpt { margin: 0; font-size: .95rem; color: #555; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.xz-home-section--webzine .webzine-item.no-thumb { grid-template-columns: 1fr; }
@media (max-width: 560px) { .xz-home-section--webzine .webzine-item { grid-template-columns: 120px 1fr; } .xz-home-section--webzine .webzine-thumb { width: 120px !important; } }

/* 하이라이트(메인노출) 밴드: 연회색 바탕 */
.xz-home-section--exposure.xz-home-band { background: #efefef; padding: 40px 0; }

/* 하단 배너(제휴·유관기관 로고): 위에 가는 선, 여백 */
.xz-home-section--banner { margin-top: 30px; }
.xz-home-section--banner > .xz-home-inner { border-top: 1px solid #ddd; padding-top: 34px; padding-bottom: 40px; }

.container-fluid-homepage > .xz-home-section--exposure > .xz-home-inner,
.container-fluid-homepage > .xz-home-section--banner > .xz-home-inner { max-width: 1450px; margin: 0 auto; padding-left: 15px; padding-right: 15px; box-sizing: border-box; }
.container-fluid-homepage > .xz-home-section--exposure { padding-left: var(--pad); padding-right: var(--pad); }

/* 하단 배너: 카드 없이 로고만 한 줄로 */
.xz-home-section--banner .banner-grid { align-items: center; gap: 24px; }
.xz-home-section--banner .banner-card { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; display: flex; align-items: center; justify-content: center; min-height: 0; }
.xz-home-section--banner .banner-card:hover { transform: none; }
.xz-home-section--banner .banner-card-body { display: none !important; }
.xz-home-section--banner .banner-card-img { width: 100%; height: 64px !important; aspect-ratio: auto !important; display: flex; align-items: center; justify-content: center; }
.xz-home-section--banner .banner-card-img img { width: 100% !important; height: 100% !important; object-fit: contain !important; }
.xz-home-section--banner .banner-card:hover img { opacity: .75; }

/* 메인 섹션 사이 여백 (원본 간격) */
html .container-fluid-homepage > .xz-home-section--hero { margin-bottom: 60px; }
html .container-fluid-homepage > .xz-home-section--board { padding-bottom: 56px; }
html .container-fluid-homepage > .xz-home-section--webzine { padding-bottom: 50px; }
html .container-fluid-homepage > .xz-home-section--banner { margin-top: 10px; margin-bottom: 70px; }
@media (max-width: 980px) {
    html .container-fluid-homepage > .xz-home-section--hero { margin-bottom: 32px; }
    html .container-fluid-homepage > .xz-home-section--board { padding-bottom: 32px; }
    html .container-fluid-homepage > .xz-home-section--banner { margin-bottom: 40px; }
}

/* 하단 배너는 푸터 바로 위에 붙인다 (아래 여백 없음) */
html .container-fluid-homepage > .xz-home-section--banner { margin-bottom: 0; }
.xz-home-section--banner > .xz-home-inner { padding-bottom: 28px; }
body:has(.xz-home-section--banner) .xzf-wrap { margin-top: 0 !important; }
@media (max-width: 980px) { html .container-fluid-homepage > .xz-home-section--banner { margin-bottom: 0; } }

/* ═══ 좌측 사이드바: 서브메뉴 · 전체게시물 · 후원코너 ═══ */
.kaids-sidebar .sw-box { background: #f3f3f3; border: 0; border-radius: 0; padding: 18px 20px; }
.kaids-sidebar .sw-title { margin: 0 0 12px; padding: 0; border: 0; color: #3b82f6; font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.kaids-sidebar .sw-title i { font-size: 1.4rem; }
.kaids-sw-list { list-style: none; margin: 0; padding: 0; }
.kaids-sw-list li { border-bottom: 1px solid #dcdcdc; }
.kaids-sw-list li:last-child { border-bottom: 0; }
.kaids-sw-list a { display: block; padding: 9px 4px; color: #111; text-decoration: none; font-size: .95rem; line-height: 1.4; }
.kaids-sw-list a:hover { color: var(--primary); }
.kaids-sw-donate p { margin: 0 0 14px; color: #222; font-size: 1rem; line-height: 1.7; }
.kaids-sw-btn { display: inline-block; padding: 7px 14px; background: #6974dc; color: #fff !important; border-radius: 6px; text-decoration: none; font-size: .95rem; }
.kaids-sw-btn:hover { filter: brightness(.92); }

/* footer 하단 언어선택 숨김 */
nav.mp-lang { display: none !important; }
