/* theme.css: source css/common.css + excerpts of css/components.css (header, menu, hero, board area, footer, TOP) */
/* ============================================================
   common.css
   - CSS 초기화 / 색상 변수 / 글꼴 / 기본 본문 / 콘텐츠 최대 너비
   - 공통 간격 / 접근성 보조 클래스 / 반응형 기본 규칙
   - 이 파일은 사이트 전체에서 공유하는 "토큰"과 기본값만 담습니다.
     컴포넌트(헤더, 카드, 버튼 등) 스타일은 components.css,
     페이지 전용 예외는 pages.css에 작성합니다.
   ============================================================ */

/* ---------- 색상·타이포·레이아웃 변수 ---------- */
:root {
  /* 브랜드 색상 (기존 로고의 청색 계열 기준으로 추출) */
  --color-navy: #14173f;          /* 로고 엠블럼 남색 */
  --color-primary: #3c5fa0;       /* 본문 제목·링크 기본 블루 */
  --color-primary-dark: #294878;  /* 호버/강조용 진한 블루 */
  --color-primary-light: #eef2f9; /* 옅은 블루 배경 */
  --color-accent-red: #c1272d;    /* 전화번호 등 기존 사이트의 레드 포인트 */
  --color-accent-orange: #f5a623; /* 절차 다이어그램 강조색(원본 참조) - 마지막 단계 */
  --color-accent-sky: #29abe2;    /* 절차 다이어그램 강조색(원본 참조) - 첫 단계 */

  --color-text: #2b2f36;
  --color-text-muted: #666b73;
  --color-border: #e1e4ea;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f7fa;
  --color-footer-bg: #303030;
  --color-footer-text: #d5d5d5;
  --color-footer-border: #4a4a4a;

  --font-sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Segoe UI", Roboto, sans-serif;

  --content-max-width: 1200px;
  --content-narrow-width: 860px;
  --header-height: 88px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius-sm: 4px;
  --radius-md: 8px;

  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;
}

/* ---------- 초기화 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, dd,
figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* 단어(특히 영문 단어·숫자)가 중간에 잘려 다음 줄로 넘어가지
     않도록 합니다. 한글은 어절(띄어쓰기) 단위로만 줄바꿈되고,
     영문 단어는 통째로 유지됩니다. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- 레이아웃 유틸리티 ---------- */
.container {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--narrow {
  max-width: var(--content-narrow-width);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- 접근성 보조 클래스 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: 0;
  z-index: 1000;
  background: var(--color-navy);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(var(--space-3));
}

:focus-visible {
  outline: 3px solid var(--color-accent-orange);
  outline-offset: 2px;
}

/* 움직임 감소 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 반응형 기본 규칙 ---------- */
@media (max-width: 1024px) {
  :root {
    --content-max-width: 100%;
  }
  .container {
    padding-inline: var(--space-4);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15.5px;
  }
}

/* 모바일 헤더 실측 높이에 맞춰 스킴 탭 등 sticky 요소의 상단
   고정 위치(--header-height)를 재조정합니다. 데스크톱 헤더
   높이(88px)를 그대로 쓰면 모바일에서 헤더와 스킴 탭 사이에
   빈 틈이 생기거나 서로 겹칩니다.
   실측 결과(960px 이하 전 구간에서 Playwright로 측정) 모바일
   헤더의 실제 렌더링 높이는 85px이므로 이 값을 사용합니다
   (.site-header__inner의 min-height 64px는 안쪽 콘텐츠의
   최소값일 뿐이며, 위아래 padding과 헤더 하단 테두리(1px)가
   더해져 실제 높이는 더 큽니다). */
@media (max-width: 960px) {
  :root {
    --header-height: 85px;
  }
}

/* ============================================================
   components.css
   - 헤더 / 주 메뉴와 드롭다운 / 모바일 메뉴 / 버튼 / 카드
   - 게시판 삽입 영역(board-slot) / 푸터
   - common.css의 변수만 사용하고, 규칙 중복 정의는 피합니다.
   ============================================================ */

/* ============== 헤더 ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.site-header__logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.site-header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.site-header__url {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.site-header__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
}

.site-header__contact {
  margin-left: auto;
  flex-shrink: 0;
}

.site-header__phone {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-accent-red);
  white-space: nowrap;
}

.site-header__phone:hover,
.site-header__phone:focus-visible {
  text-decoration: underline;
}

/* ============== 주 메뉴(PC) ============== */
.site-nav {
  flex: 1 1 auto;
}

.site-nav__list {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: block;
  padding: var(--space-3) var(--space-1);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 3px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__item:hover > .site-nav__link,
.site-nav__item:focus-within > .site-nav__link {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.site-nav__link.is-current {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.site-nav__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(20, 23, 63, 0.12);
  padding: var(--space-2) 0;
  opacity: 0;
  visibility: hidden;
  transform-origin: top center;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  z-index: 50;
}

.site-nav__item:hover > .site-nav__submenu,
.site-nav__item:focus-within > .site-nav__submenu {
  opacity: 1;
  visibility: visible;
}

.site-nav__submenu a {
  display: block;
  padding: var(--space-2) var(--space-5);
  font-size: 0.92rem;
  color: var(--color-text);
  white-space: nowrap;
}

.site-nav__submenu a:hover,
.site-nav__submenu a:focus-visible {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.site-nav__submenu a.is-current {
  color: var(--color-primary);
  font-weight: 700;
}

/* ============== 모바일 메뉴 토글 버튼 ============== */
.site-header__menu-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--color-navy);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger {
  top: 50%;
  transform: translateY(-1px);
}

.hamburger::before {
  content: "";
  top: -8px;
}

.hamburger::after {
  content: "";
  top: 8px;
}

.site-header__menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.site-header__menu-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header__menu-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============== 반응형: 태블릿/모바일 헤더 ============== */
@media (max-width: 960px) {
  .site-header__inner {
    /* nowrap이면 .site-nav(flex-basis: 100%)가 줄바꿈되지 못하고
       로고·메뉴 버튼과 같은 줄에서 보이지 않는 채로 가로 폭을
       차지해, 메뉴 버튼이 오른쪽 끝까지 밀리지 못하고 메뉴를 열면
       레이아웃이 깨지는 원인이었습니다. wrap으로 바꿔 메뉴(.site-nav)가
       아래 줄로 완전히 내려가도록 합니다. */
    flex-wrap: wrap;
    min-height: 64px;
    padding-block: var(--space-2);
  }

  .site-header__logo {
    width: 40px;
    height: 40px;
  }

  .site-header__menu-toggle {
    display: block;
    margin-left: auto;
  }

  /* 전화번호가 줄바꿈되며 헤더가 두 줄로 두꺼워지는 것을 막기 위해
     모바일·태블릿 헤더에서는 숨깁니다. 전화번호는 메인 비주얼과
     푸터에 이미 표시되어 있어 정보 손실이 없습니다. */
  .site-header__contact {
    display: none;
  }

  .site-nav {
    order: 10;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
  }

  .site-nav.is-open {
    max-height: 1400px;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding-block: var(--space-3);
    border-top: 1px solid var(--color-border);
  }

  .site-nav__link {
    padding: var(--space-3) var(--space-2);
    border-bottom: none;
  }

  .site-nav__link:hover,
  .site-nav__link:focus-visible,
  .site-nav__item:hover > .site-nav__link,
  .site-nav__item:focus-within > .site-nav__link,
  .site-nav__link.is-current {
    border-bottom: none;
    background: var(--color-primary-light);
  }

  .site-nav__submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 var(--space-2);
    background: transparent;
  }

  .site-nav__submenu a {
    padding: var(--space-2) var(--space-2) var(--space-2) var(--space-6);
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .site-header__url {
    display: none;
  }
  .site-header__name {
    font-size: 1rem;
  }
  .site-header__phone {
    font-size: 0.92rem;
  }
}

/* ============== 히어로(대분류 상단 배너) ============== */
.page-hero {
  position: relative;
  color: #fff;
  padding-block: 130px;
  background-color: var(--color-navy);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 20, 50, 0.82) 0%, rgba(15, 20, 50, 0.45) 60%, rgba(15, 20, 50, 0.2) 100%);
}

.page-hero__inner {
  position: relative;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
  animation: heroFadeUp 0.6s ease-out both;
}

.page-hero__title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.page-hero__tagline {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.6;
  opacity: 0.95;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding-block: 84px;
  }
  .page-hero__title {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__inner {
    animation: none;
  }
}

/* ============== 히어로 - 배경 사진(전체 너비 cover) ==============
   히어로는 항상 화면 전체 너비이고, 배경 사진은 background-size: cover,
   background-position: center center 로 좌우 끝까지 채웁니다. 사진 비율에
   맞춰 폭을 줄이거나 좌우 여백을 만들지 않으며(화면 비율에 따라 사진의
   위아래 일부는 잘릴 수 있음), 높이는 아래 값으로 고정합니다.
   - .page-hero__bg: 히어로 전체를 채우는 사진 레이어(은은한 확대 모션)
   - .page-hero__overlay: 어두운 그라디언트, 사진 위에 그려집니다.
   - .page-hero__inner: 제목 텍스트, 배너 안에서 수직 중앙 정렬 */
.page-hero--motion.page-hero {
  width: 100%;
  background-image: none;
  padding-block: 0;
  display: block;
  /* PC 기준 높이. 태블릿·모바일은 아래 미디어쿼리 참고. */
  height: 450px;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
  animation: heroKenBurns 20s ease-in-out infinite alternate;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 20, 50, 0.82) 0%, rgba(15, 20, 50, 0.45) 60%, rgba(15, 20, 50, 0.2) 100%);
}

.page-hero--motion .page-hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  animation: heroFadeUp 0.6s ease-out both;
}

.page-hero--motion.page-hero::before {
  content: none;
}

@keyframes heroKenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__bg {
    animation: none;
  }
}

/* 히어로 높이: PC 450px / 태블릿 300px / 모바일 220px.
   통일합니다. 높이는 부모(.page-hero--motion.page-hero)에 지정하고,
   .page-hero__bg는 inset:0으로 그 높이를 그대로 채웁니다. 태블릿 기준은
   사이트 헤더가 이미 쓰는 960px 분기점, 모바일 기준은 히어로가 기존에
   쓰던 640px 분기점을 그대로 재사용했습니다. */
@media (max-width: 960px) {
  .page-hero--motion.page-hero {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .page-hero--motion.page-hero {
    height: 220px;
  }
}

/* ============== 브레드크럼 ============== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

@keyframes contentFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sub-content {
    animation: none;
  }
}

.sub-content__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--scheme-border, var(--color-border));
}
/* ============================================================
   게시판형 하위 페이지 공통(board-page-section, board-list)
   - 03/01.html(ISO 교육 안내), 04/01.html(인증기업 현황),
     05/01.html(공지사항) 등 카페24 게시판 연동 전 레이아웃 확인용
     정적 UI에서 공용으로 사용하는 컨테이너·상단메타(board-meta)·
     페이지네이션(board-pagination)·검색(board-search) 컴포넌트입니다.
     페이지 전용 클래스가 아니므로 새 게시판형 하위 페이지를 추가할
     때도 그대로 재사용합니다.
   - 리스트형(.board-list, 번호/제목/작성자/작성일/조회 표)과
     갤러리형(.cert-gallery, 04/01.html 전용 카드 그리드)이 이
     공용 컴포넌트를 함께 사용합니다.
   - 실제 게시물 데이터는 없으며(스켈레톤 표시), 추후 카페24
     빌더 이식 시 이 영역을 해당 게시판 모듈로 교체합니다.
   ============================================================ */
.board-page-section {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding: var(--space-8) var(--space-5);
  animation: contentFadeUp 0.5s ease-out 0.08s both;
}

@media (prefers-reduced-motion: reduce) {
  .board-page-section {
    animation: none;
  }
}

.board-page-section .sub-content__title {
  margin-bottom: var(--space-5);
}

@media (max-width: 640px) {
  .board-page-section {
    padding-inline: var(--space-4);
  }
}
/* ============== 푸터 ============== */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding-block: var(--space-6);
}

.site-footer__inner {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-footer-border);
}

.site-footer__nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-footer-text);
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.site-footer__info {
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.9;
  color: #b9b9b9;
}

.site-footer__info a {
  color: #b9b9b9;
}

.site-footer__info a:hover,
.site-footer__info a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* ============================================================
   TOP 바로가기 버튼(공통 컴포넌트, 전 페이지 동일 사용)
   - 기본 hidden 속성으로 숨겨져 있다가 js/common.js가 일정
     스크롤 이후 hidden을 해제합니다. JS가 없으면 계속 숨김
     상태이지만 페이지 이용 자체에는 영향이 없습니다.
   ============================================================ */
.top-button {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(20, 23, 63, 0.28);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.top-button:hover {
  background: var(--color-primary);
}

.top-button:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
}

.top-button[hidden] {
  display: none;
}

.top-button__arrow {
  font-size: 1.05rem;
  line-height: 1;
}

.top-button__label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .top-button {
    right: var(--space-4);
    bottom: var(--space-4);
    width: 46px;
    height: 46px;
  }
}

/* ============== 워드프레스 관리자 바 대응 ==============
   로그인 상태(body.admin-bar)에서만 sticky 헤더를 관리자 바 아래로 내립니다.
   일반 방문자 화면은 기존 top: 0 그대로입니다. */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  body.admin-bar .site-header {
    top: 0;
  }
}

/* ============================================================
   [2026-10-03] 공지사항·자료실 페이지의 'E. 고객지원' 왼쪽 서브메뉴
   - page.php가 슬러그(공지사항·자료실)일 때만 .aic-e-layout을 출력합니다.
   - [2026-10-03 추가] 같은 모양의 'C. ISO 교육' 메뉴(.aic-c-*, 교육안내 페이지)를
     선택자 묶음으로 함께 적용합니다. E 규칙의 선언 값은 바꾸지 않았습니다.
   - 모양은 정적 페이지(/05/02.html)의 .sub-sidebar와 같은 값을 사용하며,
     클래스명을 aic-e-* 로 분리해 KBoard 및 다른 페이지 CSS와 겹치지 않습니다.
   - 860px 이하에서는 메뉴가 게시판 위로 올라가며 줄바꿈되는 탭 형태입니다.
   ============================================================ */
.aic-e-layout,
.aic-c-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}

.aic-e-main,
.aic-c-main {
  min-width: 0;
}

.aic-e-sidebar,
.aic-c-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-5));
}

body.admin-bar .aic-e-sidebar,
body.admin-bar .aic-c-sidebar {
  top: calc(var(--header-height) + var(--space-5) + 32px);
}

.aic-e-sidebar__title,
.aic-c-sidebar__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-navy);
}

.aic-e-sidebar__list li + li,
.aic-c-sidebar__list li + li {
  margin-top: var(--space-1);
}

.aic-e-sidebar__list a,
.aic-c-sidebar__list a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.aic-e-sidebar__list a:hover,
.aic-c-sidebar__list a:hover,
.aic-e-sidebar__list a:focus-visible,
.aic-c-sidebar__list a:focus-visible {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.aic-e-sidebar__list a.is-current,
.aic-c-sidebar__list a.is-current {
  color: var(--color-primary);
  font-weight: 800;
  background: var(--color-primary-light);
  border-left-color: var(--color-primary);
}

@media (max-width: 860px) {
  .aic-e-layout,
  .aic-c-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  .aic-e-sidebar,
  .aic-c-sidebar {
    position: static;
  }

  body.admin-bar .aic-e-sidebar,
  body.admin-bar .aic-c-sidebar {
    top: auto;
  }

  .aic-e-sidebar__title,
  .aic-c-sidebar__title {
    margin-bottom: var(--space-2);
  }

  .aic-e-sidebar__list,
  .aic-c-sidebar__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-2);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border);
  }

  .aic-e-sidebar__list li + li,
  .aic-c-sidebar__list li + li {
    margin-top: 0;
  }

  .aic-e-sidebar__list a,
  .aic-c-sidebar__list a {
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: var(--space-2) var(--space-3);
  }

  .aic-e-sidebar__list a.is-current,
  .aic-c-sidebar__list a.is-current {
    border-left-color: transparent;
    border-bottom-color: var(--color-primary);
  }
}

/* KBoard 교육안내 상세 본문 가독성 스타일 (캐시 버스팅 연동) */
#kboard-default-document .content-view h3 {
  margin: 28px 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-navy);
}

#kboard-default-document .content-view p {
  margin: 0 0 16px;
}

#kboard-default-document .content-view ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 18px;
}

#kboard-default-document .content-view ol {
  list-style: decimal;
  padding-left: 22px;
  margin: 0 0 18px;
}

#kboard-default-document .content-view li + li {
  margin-top: 8px;
}

/*
 * 교육안내 본문 블록 순서(고정) — www/data/education-post-template.html
 * 1) .edu-aeo-summary  2) .edu-closed-notice(마감만)
 * 3) 포스터 img        4) 리드  5) .edu-summary-box
 * 6) 진행절차 3~4줄+C.3/E.5  7) .edu-links-box
 */
#kboard-default-document .content-view .edu-summary-box {
  margin: 18px 0 24px;
  padding: 20px 22px;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

#kboard-default-document .content-view .edu-summary-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#kboard-default-document .content-view .edu-summary-list > li {
  margin-top: 0;
  padding: 12px 0;
  border-bottom: 1px dashed #e2e8f0;
}

#kboard-default-document .content-view .edu-summary-list > li:first-child {
  padding-top: 0;
}

#kboard-default-document .content-view .edu-summary-list > li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

#kboard-default-document .content-view .edu-sub {
  margin-top: 5px;
  padding-left: 18px;
  line-height: 1.75;
}

#kboard-default-document .content-view .edu-links-box {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--color-primary-light);
  border-radius: 8px;
  line-height: 1.9;
}

#kboard-default-document .content-view .edu-aeo-summary {
  margin: 0 0 18px;
  padding: 14px 18px;
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  border-radius: 6px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--color-text);
}

#kboard-default-document .content-view .edu-closed-notice {
  padding: 12px 16px;
  margin-bottom: 18px;
  background: #fff5f5;
  border-left: 4px solid var(--color-accent-red);
  border-radius: 4px;
  font-size: 15px;
}

