/* ==========================================================================
   글로벌주재원 국제학교 등록센터 - 공통 스타일
   2026-09-29: 마켓컬리(kurly.com) 참고, 네이비/블루/코럴 톤에서 퍼플 톤으로 전면 전환.
   이전 "공식 등록기관" 네이비 톤 시안은 git 이력에 남아있다 (참고/복원용).
   ========================================================================== */

:root {
  /* 기업형 네이비 팔레트 (2026-10-15 리뉴얼 A안 "Corporate Trust").
     역할을 나눠 쓴다: 네이비=제목·주요 버튼·헤더/푸터 면, 블루=링크·강조·상담 CTA 보조, 중성 회색=본문·경계.
     예전 보라 팔레트는 _backup/frontend_before-corporate_2026-10-15 에 있다. 변수 이름은 그대로 두어 전 페이지가 한 번에 바뀐다. */
  --color-navy: #0b2a4f;           /* 헤더·푸터·히어로 배경, 제목 텍스트 */
  --color-navy-soft: #16406f;
  --color-primary: #0b2a4f;        /* 주요 버튼·아이콘 (네이비) */
  --color-primary-dark: #071d38;
  --color-primary-light: #eaf0f8;
  --color-accent: #1f5fbf;         /* 블루 - 링크·상담신청 등 행동 유도 */
  --color-accent-dark: #174a96;
  --color-accent-light: #e6effb;
  --color-wine: #a12318;           /* 파트너/중요 강조, 위험(삭제) 액션 */
  --color-wine-light: #fbe9e7;
  --color-text: #0f1b2d;
  --color-text-sub: #53607a;       /* 흰 바탕 대비 6:1 */
  --color-border: #d9e0ea;
  --color-bg: #ffffff;
  --color-page: #f3f6fa;           /* 페이지 바닥 */
  --color-bg-soft: #e9eef5;        /* 흰 카드 위에 얹는 한 단계 진한 면 */
  --font-display: var(--font-family);
  --header-height: 68px;
  --gnb-height: 48px;
  --max-width: 1200px;
  --radius: 6px;                   /* 버튼·입력창 */
  --radius-lg: 8px;                /* 카드·패널·모달 */
  --font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
/* hidden 속성은 display 를 지정한 규칙에 밀린다(.tb-lock{display:flex} 때문에 잠금 화면이 항상 보였다 — 2026-09-23).
   JS가 element.hidden 으로 여닫는 것들이 확실히 숨도록 못박는다. */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}


/* 제목 공통 굵기/자간 (명조체는 제거하고 본문과 동일한 산세리프로 통일) */
h1, h2,
.section-head h2,
.section-title,
.page-title,
.modal-box h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

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

.header-row1 {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  gap: 12px;
}

/* 로고: 지구본+체크뱃지 심볼(inline SVG) + 2단 워드마크 잠금 조합.
   이름이 길어 한 줄로는 안 들어가, "글로벌주재원"(라벨)을 위에 작게, "국제학교 등록센터"(본명)를 아래 굵게 둔다. */
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  color: var(--color-navy);
  white-space: nowrap;
  text-decoration: none;
}
.logo .logo-mark {
  height: 32px;
  width: auto;
  flex: 0 0 auto;
  display: block;
}
.logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.logo .lg-a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--color-primary);
}
.logo .lg-b { font-size: 15px; font-weight: 800; color: var(--color-navy); }
.logo .logo-sub {
  color: var(--color-text-sub);
  font-size: 14px;
  font-weight: 500;
}

/* 통합 검색창 - PC에서만 헤더에 노출 */
.header-search {
  display: none;
  flex: 1;
  max-width: 420px;
  margin: 0 16px;
}
.header-search input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0 16px;
  font-size: 14px;
  background: var(--color-bg-soft);
}
.header-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: var(--color-text);
  position: relative;
}
.icon-btn:hover { background: var(--color-bg-soft); }
.icon-btn .badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  display: none;
}

/* 알림/마이페이지 아이콘은 모바일 헤더에서는 숨김 (햄버거 메뉴 안의 '내 정보'에서 접근) */
.desktop-only-icon { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-ghost { background: transparent; color: var(--color-primary); border: 1px solid var(--color-primary); }

/* 햄버거 메뉴 버튼 - 모바일 전용, 우측 상단에 눈에 띄게 */
.hamburger-btn {
  display: inline-flex;
}
.hamburger-btn svg { width: 24px; height: 24px; }

/* ---------- GNB (PC: 헤더 2열 / 모바일: 아이콘 그리드) ---------- */
.gnb-desktop {
  display: none;
  border-top: 1px solid var(--color-border);
}
.gnb-desktop ul {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--gnb-height);
}
.gnb-desktop a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 2px solid transparent;
}
.gnb-desktop a:hover,
.gnb-desktop a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* GNB 드롭다운 (예: 국제학교준비 > 학습 콘텐츠/레벨테스트/적성검사) */
.gnb-desktop li.has-dropdown { position: relative; }
.gnb-desktop .dd-caret { margin-left: 4px; transition: transform .18s ease; }
.gnb-desktop li.has-dropdown:hover .dd-caret,
.gnb-desktop li.has-dropdown:focus-within .dd-caret { transform: rotate(180deg); }
.gnb-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(4px);
  min-width: 168px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--color-border);
  padding: 6px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 50;
}
.gnb-desktop li.has-dropdown:hover .gnb-dropdown,
.gnb-desktop li.has-dropdown:focus-within .gnb-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.gnb-dropdown li { display: block; }
.gnb-dropdown a, .gnb-dropdown .dd-disabled {
  display: block; height: auto; padding: 9px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--color-text); border-bottom: none; white-space: nowrap;
}
.gnb-dropdown a:hover { background: var(--color-primary-light); color: var(--color-primary); }
.gnb-dropdown .dd-disabled { color: var(--color-text-sub); cursor: default; }

/* 모바일 전체메뉴의 하위 항목 (들여쓰기 + 작은 글씨) */
.mobile-submenu ul { padding: 0; margin: 0; }
.mobile-submenu a, .mobile-submenu .dd-disabled {
  padding: 9px 4px 9px 20px !important; font-size: 14px !important; font-weight: 500 !important;
  color: var(--color-text-sub) !important;
}
.mobile-submenu .dd-disabled { display: block; }

/* 모바일 메뉴: 원형 아이콘 6개 격자(포털 홈 느낌)를 걷어내고,
   가로로 흐르는 텍스트 알약으로 바꿨다. 탐색은 그대로 되면서 훨씬 가볍다. */
.gnb-mobile {
  position: relative;
  padding: 10px 0 6px;
  border-top: 1px solid var(--color-border);
}
.gnb-mobile ul {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
}
.gnb-mobile ul::-webkit-scrollbar { display: none; }
.gnb-mobile li { flex: 0 0 auto; }
.gnb-mobile li a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-sub);
  white-space: nowrap;
}
.gnb-mobile li a.active {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}
.gnb-mobile .gnb-icon { display: flex; align-items: center; }
.gnb-mobile .gnb-icon svg { width: 15px; height: 15px; }

/* children이 있는 모바일 GNB 항목: 바로 이동하는 <a> 대신 아래로 펼치는 <button> */
.gnb-mobile-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--color-border);
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--color-text-sub);
  white-space: nowrap; cursor: pointer;
}
.gnb-mobile-trigger.active { background: var(--color-accent-light); border-color: var(--color-accent); color: var(--color-accent-dark); }
.gnb-mobile-trigger .gnb-mobile-caret { transition: transform .15s ease; opacity: .7; }
.has-children.open .gnb-mobile-trigger { background: var(--color-primary-light); border-color: var(--color-primary); color: var(--color-primary); }
.has-children.open .gnb-mobile-caret { transform: rotate(180deg); }

.gnb-mobile-dropdown {
  display: none; position: absolute; top: 100%; left: 16px; right: 16px; z-index: 60;
  margin-top: 6px; background: #fff; border-radius: var(--radius-lg); padding: 6px;
  box-shadow: inset 0 0 0 1px var(--color-border);
}
.gnb-mobile-dropdown.open { display: block; }
.gnb-mobile-dropdown a {
  display: block; padding: 11px 14px; border-radius: var(--radius-lg);
  font-size: 14px; font-weight: 600; color: var(--color-text);
}
.gnb-mobile-dropdown a:active, .gnb-mobile-dropdown a:hover { background: var(--color-primary-light); color: var(--color-primary); }

/* ---------- 모바일 전체 메뉴 (햄버거 오버레이) ---------- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
  display: none;
}
.mobile-menu-overlay.open { display: block; }
.mobile-menu-panel {
  position: absolute;
  top: 0; right: 0;
  width: 82%;
  max-width: 340px;
  height: 100%;
  background: #fff;
  padding: 20px;
  overflow-y: auto;
}
.mobile-menu-panel .close-btn {
  border: none; background: transparent; font-size: 22px; color: var(--color-text-sub);
  float: right;
}
.mobile-menu-panel h3 {
  font-size: 14px; color: var(--color-text-sub); margin: 24px 0 10px; font-weight: 700;
}
.mobile-menu-panel ul li a {
  display: block; padding: 12px 4px; font-size: 15px; font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

/* ---------- 히어로 / 배너 ----------
   실제 캠퍼스 사진/영상 위에 블랙 그라데이션을 깔아 텍스트 대비를 확보한다.
   사이트 전반은 보라색 톤이지만, 히어로만은 실제 사진·영상의 색감이 살도록 보라색을
   섞지 않고 순수 블랙 필터만 쓴다. */
.hero {
  position: relative;
  color: #fff;
  padding: 30px 16px 26px;
  overflow: hidden;
  background: #000;
}
/* 히어로 배경 영상 - 실제 캠퍼스/교실 영상을 정적 사진(::before) 위에 덮어 보여준다.
   데이터 절약을 위해 main.js가 데스크톱·모션 허용 사용자에게만 data-src를 src로 옮겨
   재생을 시작한다(hero-video.js 로직 참고) - 그 전까지는 poster 이미지만 보인다. */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 50%;
  background: #000;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('/assets/img/campus/hero-forestcity-arch.jpg');
  background-size: cover;
  background-position: center 68%;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  /* 사이트 전체가 보라색이라 히어로 영상/사진까지 같은 톤이면 단조로워서, 여기만 순수
     블랙 필터로 바꿔 사진·영상의 실제 색감이 살도록 한다(2026-09-30). */
  background: linear-gradient(165deg, rgba(0,0,0,.88) 8%, rgba(0,0,0,.62) 55%, rgba(0,0,0,.32) 100%);
}
.hero .container { position: relative; z-index: 1; max-width: var(--max-width); }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 800; letter-spacing: .04em;
  color: #cfe0fa; background: rgba(255,255,255,.14); padding: 5px 12px; border-radius: 999px;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: 26px; font-weight: 800; line-height: 1.32; letter-spacing: -.01em;
  margin: 0 0 14px;
}
.hero h1 .accent { color: var(--color-accent); }
.hero p {
  margin: 0; font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,.86); max-width: 440px;
}
/* 모바일에서는 세로 길이를 줄이기 위해 버튼을 숨기고 카피만 보여준다 (PC부터 다시 노출) */
.hero .hero-actions { display: none; }
.hero .btn-lg { height: 46px; padding: 0 22px; font-size: 14px; }
.hero .btn-primary { background: var(--color-accent); }
.hero .btn-primary:hover { background: var(--color-accent-dark); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); }

/* 히어로에 바로 심는 무료상담 미니폼 (Santa Fe/InterNations 참고 - 리드캡처를 CTA 클릭 한 번이라도 줄인다) */
.hero-consult {
  position: relative; z-index: 1; margin-top: 20px;
  background: rgba(255,255,255,.97); border-radius: var(--radius-lg); padding: 16px;
  max-width: 480px;
}
.hero-consult .hc-title { font-size: 14px; font-weight: 800; color: var(--color-navy); margin: 0 0 10px; }
.hero-consult .hc-row { display: flex; flex-direction: column; gap: 8px; }
.hero-consult input, .hero-consult select {
  height: 42px; border: 1px solid var(--color-border); border-radius: 8px; padding: 0 12px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--color-text); width: 100%;
}
.hero-consult button {
  height: 44px; border: none; border-radius: 8px; background: var(--color-accent); color: #fff;
  font-weight: 800; font-size: 14px; width: 100%;
}
.hero-consult button:hover { background: var(--color-accent-dark); }
/* 상담 내용 입력칸 - 한 줄 입력칸들 아래에 전체 너비로 */
.hero-consult .hc-label { display: block; font-size: 13px; font-weight: 700; color: var(--color-navy); margin: 12px 0 6px; }
.hero-consult .hc-message {
  display: block; width: 100%; min-height: 96px; resize: vertical; box-sizing: border-box;
  border: 1px solid var(--color-border); border-radius: 8px; padding: 10px 12px;
  font-size: 14px; line-height: 1.5; font-family: inherit; background: #fff; color: var(--color-text);
}
.hero-consult .hc-submit { margin-top: 10px; }
.hero-consult .hc-note { font-size: 14px; color: var(--color-text-sub); margin: 8px 0 0; }
.hero-consult .hc-done { padding: 10px 0; font-size: 14px; font-weight: 700; color: var(--color-navy); }

/* 회사 소개 (1991년 설립 등 신뢰 신호) - 홈 히어로 바로 아래, 상담폼보다 먼저 "우리가 누구인지"부터 밝힌다 */
.about-intro { padding-top: 8px; }
.ai-grid { display: flex; flex-direction: column; gap: 18px; }
.ai-text p { font-size: 14px; color: var(--color-text-sub); line-height: 1.7; margin: 0 0 10px; }
.ai-stats { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--color-border); }
.ai-stat { padding: 16px 18px; border-bottom: 1px solid var(--color-border); }
.ai-stat:last-child { border-bottom: none; }
.ai-stat-num { font-size: 20px; font-weight: 800; color: var(--color-primary); line-height: 1.3; }
.ai-stat-label { font-size: 14px; color: var(--color-text-sub); margin-top: 2px; }

/* 이용기업 신뢰열 - 실제 이용중인 기업/기관명을 담백하게 나열해 공신력을 보여준다.
   .trust-row 래퍼 없이도(홈 섹션 안, companies.php 등) 그대로 쓸 수 있도록 독립 클래스로 둔다. */
.trust-row { padding: 22px 0; border-bottom: 1px solid var(--color-border); }
.tr-label { text-align: center; font-size: 14px; color: var(--color-text-sub); font-weight: 700; margin: 0 0 14px; letter-spacing: .03em; }
.tr-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
}
.tr-item { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; color: var(--color-navy); opacity: .82; }
.tr-item img { height: 22px; width: auto; }

/* 프리미엄 정착 서비스 지역 그리드 - 실사진을 풀 톤으로 보여주고 하단 그라디언트로만 글자를 받친다 */
.region-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.region-card {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--color-navy);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: box-shadow .35s ease, transform .35s ease;
}
.region-card:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transform: translateY(-3px); }
.region-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.region-card:hover img { transform: scale(1.07); }
.region-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(20,0,28,.35) 0%, rgba(20,0,28,0) 24%);
}
.region-card::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(7,26,51,0) 42%, rgba(7,26,51,.62) 72%, rgba(5,18,36,.94) 100%);
}
.region-card .rc-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px; color: #fff; }
.region-card .rc-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; padding: 4px 10px 4px 8px; border-radius: 999px; margin-bottom: 10px;
  background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.region-card .rc-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent); flex: 0 0 auto; }
.region-card .rc-name { font-size: 17px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.01em; }
.region-card .rc-desc { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.82); margin: 0; }
.region-card .rc-tag.rc-tag-other::before { background: rgba(255,255,255,.55); }
.region-card.region-card-other { opacity: .92; }

/* ---------- 레벨테스트: CEFR/WIDA/SLATE 비교표 ----------
   6단계를 옅은 파랑에서 브랜드 네이비로 짙어지는 배지로 이어 붙여, 숫자 표가 아니라
   '성장 경로'처럼 읽히게 한다. */
.level-ladder { display: flex; flex-direction: column; gap: 10px; }
.level-step {
  position: relative; display: flex; align-items: stretch; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: inset 0 0 0 1px var(--color-border);
}
.level-step .ls-badge {
  flex: 0 0 84px; display: flex; align-items: center; justify-content: center;
  color: #fff; padding: 14px 6px;
}
.level-step .ls-badge-cefr { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.level-step.ls-1 .ls-badge { background: linear-gradient(135deg,#dbe6f7,#b9cdee); }
.level-step.ls-2 .ls-badge { background: linear-gradient(135deg,#b9cdee,#8fb0e3); }
.level-step.ls-3 .ls-badge { background: linear-gradient(135deg,#8fb0e3,#6b94d6); }
.level-step.ls-4 .ls-badge { background: linear-gradient(135deg,#6b94d6,#3f6fbf); }
.level-step.ls-5 .ls-badge { background: linear-gradient(135deg,#3f6fbf,#1f4f9a); }
.level-step.ls-6 .ls-badge { background: linear-gradient(135deg,#1f4f9a,#071a33); }
.level-step .ls-body { flex: 1; padding: 14px 16px; min-width: 0; }
.level-step .ls-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 3px 0; }
.level-step .ls-row .ls-label { color: var(--color-text-sub); font-weight: 600; }
.level-step .ls-row .ls-value { color: var(--color-navy); font-weight: 700; text-align: right; }
.level-step .ls-desc { margin: 8px 0 0; font-size: 14px; color: var(--color-text-sub); line-height: 1.5; }
.ll-note { font-size: 14px; color: var(--color-text-sub); margin: 10px 0 0; }

/* 레벨테스트 응시 UI */
.ll-intro-list { margin: 14px 0 20px; padding: 0; list-style: none; max-width: 520px; }
.ll-intro-list li {
  position: relative; padding: 4px 0 4px 20px; font-size: 14px; color: rgba(255,255,255,.9); line-height: 1.6;
}
.ll-intro-list li::before { content: '✓'; position: absolute; left: 0; color: var(--color-accent); font-weight: 800; }
.lt-test-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.lt-progress { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.75); }
.lt-timer {
  font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,.12); padding: 4px 12px; border-radius: 999px; color: #fff;
}
.lt-timer.lt-timer-warn { background: var(--color-accent); }
.lt-passage {
  background: rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 12px 14px; margin-bottom: 12px;
  font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.92);
}
.lt-prompt { font-size: 16px; font-weight: 700; margin: 0 0 14px; color: #fff; line-height: 1.5; }
.lt-choices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.lt-choice {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg);
  padding: 11px 14px; font-size: 14px; color: #fff; cursor: pointer; width: 100%;
  font-family: inherit; transition: background .15s ease, border-color .15s ease;
}
.lt-choice:hover { background: rgba(255,255,255,.12); }
.lt-choice.selected { background: rgba(217,85,60,.22); border-color: var(--color-accent); }
.lt-choice .lt-choice-mark {
  flex: 0 0 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
}
.lt-choice.selected .lt-choice-mark { background: var(--color-accent); border-color: var(--color-accent); }
.lt-nav { display: flex; justify-content: space-between; gap: 10px; }
.lt-nav .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.lt-nav .btn-ghost:hover { background: rgba(255,255,255,.1); }
.lt-nav .btn-ghost:disabled { opacity: .4; cursor: not-allowed; }

/* 레벨테스트 결과 화면 - 카드형 배너 안에서도 숨 쉴 공간을 넉넉히 둔다 */
#lt-result { padding: 8px 0 4px; }
.lt-result-title { text-align: center; margin: 0 0 6px; }
.lt-result-pending { text-align: center; padding: 30px 10px 10px; }
.lt-result-pending-icon {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--color-accent); color: #fff; font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.lt-result-pending-msg { font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.7; margin: 0 0 26px; }
.lt-result-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 30px; }
.lt-result-score { background: rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 18px 10px; text-align: center; }
.lt-result-score .lrs-label { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.65); letter-spacing: .04em; }
.lt-result-score .lrs-value { font-size: 20px; font-weight: 800; color: #fff; margin-top: 8px; line-height: 1.3; }
.lt-result-sub { font-size: 14px; color: rgba(255,255,255,.7); text-align: center; margin: 0; }
.lt-result-cta { text-align: center; margin: 0 0 28px; }
.lt-result-note {
  font-size: 14px; color: rgba(255,255,255,.55); text-align: center; line-height: 1.6;
  max-width: 480px; margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
}

/* 레벨테스트: 라이팅(서술형) 응시 화면 */
.lt-writing-label { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.65); letter-spacing: .04em; margin-bottom: 8px; }
.lt-writing-prompt-en { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.5; margin: 0 0 6px; }
.lt-writing-prompt-ko { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.5; margin: 0 0 16px; }
.lt-writing-textarea {
  width: 100%; min-height: 220px; resize: vertical; border-radius: var(--radius-lg); padding: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: #fff;
  font-family: inherit; font-size: 14px; line-height: 1.6;
}
.lt-writing-textarea::placeholder { color: rgba(255,255,255,.4); }
.lt-writing-textarea:focus { outline: none; border-color: var(--color-accent); background: rgba(255,255,255,.1); }
.lt-writing-count { font-size: 14px; color: rgba(255,255,255,.6); text-align: right; margin: 8px 0 18px; }
.lt-writing-count.lt-writing-count-ok { color: #9ee6a0; }
.lt-writing-skip { font-size: 14px; color: rgba(255,255,255,.55); text-align: center; margin-top: 10px; }
.lt-writing-skip button { background: none; border: none; color: rgba(255,255,255,.75); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 0; }

/* 레벨테스트 결과: 라이팅 AI 평가 카드 */
.lt-result-writing { background: rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 18px 20px; margin: 0 0 28px; }
.lt-result-writing-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.lt-result-writing-head h3 { margin: 0; font-size: 14px; color: #fff; }
.lt-result-writing-level { font-size: 15px; font-weight: 800; color: var(--color-accent-light, #fff); background: rgba(255,255,255,.14); padding: 3px 12px; border-radius: 999px; }
.lt-result-writing-feedback { font-size: 14px; color: rgba(255,255,255,.88); line-height: 1.6; margin: 0; }
.lt-result-writing-note { font-size: 14px; color: rgba(255,255,255,.55); margin: 0; }

/* ---------- 적성검사: 안내 문구 + 리커트 척도 + 직업 결과 카드 ---------- */
.at-disclaimer {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--color-accent-light); border-radius: var(--radius-lg); padding: 16px 18px;
  box-shadow: inset 0 0 0 1px rgba(217,85,60,.18);
}
.at-disclaimer svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--color-accent-dark); margin-top: 1px; }
.at-disclaimer strong { display: block; font-size: 14px; color: var(--color-navy); margin-bottom: 4px; }
.at-disclaimer p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--color-text-sub); }

.at-form-hint { font-size: 14px; color: rgba(255,255,255,.75); text-align: center; margin: 0 0 20px; }
.at-question {
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.at-question:first-child { padding-top: 0; }
.at-q-prompt { font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 12px; line-height: 1.5; }
.at-scale { display: flex; justify-content: space-between; gap: 6px; max-width: 320px; margin: 0 auto; }
.at-scale-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.3); color: rgba(255,255,255,.8);
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.at-scale-btn:hover { background: rgba(255,255,255,.16); }
.at-scale-btn.selected {
  background: var(--color-accent); border-color: var(--color-accent); color: #fff; transform: scale(1.08);
}
.at-scale-caption {
  display: flex; justify-content: space-between; max-width: 320px; margin: 6px auto 0;
  font-size: 14px; color: rgba(255,255,255,.5);
}

.at-career-list { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 28px; }
.at-career-card { background: rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 16px 18px; }
.at-career-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.at-career-title { font-size: 16px; font-weight: 800; color: #fff; }
.at-career-match { font-size: 14px; font-weight: 700; color: var(--color-accent); background: rgba(217,85,60,.18); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.at-career-desc { font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.6; margin: 0 0 8px; }
.at-career-ai { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.6; margin: 0; }
.at-ai-badge {
  display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .02em;
  background: var(--color-primary-light); color: var(--color-primary); padding: 2px 8px; border-radius: 999px; margin-right: 8px;
}

@media (min-width: 1024px) {
  .level-step .ls-badge { flex-basis: 110px; }
  .level-step .ls-badge-cefr { font-size: 20px; }
  .level-step .ls-body { padding: 18px 24px; display: flex; align-items: center; gap: 28px; }
  .level-step .ls-row { flex-direction: column; align-items: flex-start; gap: 2px; padding: 0; min-width: 118px; }
  .level-step .ls-row .ls-value { text-align: left; }
  .level-step .ls-desc { margin: 0; flex: 1; }
  .lt-result-scores { max-width: 520px; margin: 22px auto 30px; }
}

/* 재사용 가능한 라벨 (밝은 배경 위) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 800; letter-spacing: .04em;
  color: var(--color-primary); background: var(--color-primary-light);
  padding: 5px 12px; border-radius: 999px; margin: 0 0 10px;
}

/* ---------- 스크롤 리빌 유틸리티 (프로그레시브 인핸스먼트: JS가 .reveal-ready를 붙여야만
   숨김 상태로 시작함 - JS 실패/구형 브라우저에서도 콘텐츠는 항상 기본으로 보임) ---------- */
.reveal-on-scroll { opacity: 1; transform: none; }
html.reveal-ready .reveal-on-scroll {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1) var(--reveal-delay, 0s),
              transform .6s cubic-bezier(.22,1,.36,1) var(--reveal-delay, 0s);
}
html.reveal-ready .reveal-on-scroll.in-view { opacity: 1; transform: none; }

/* ---------- 프로세스 인포그래픽 (등록대행이 진행되는 방식) : 실제 순서라 넘버링 사용,
   스크롤하며 순차적으로 나타나고 숫자 배지가 그레이디언트로 채워지는 다이내믹 연출 ---------- */
.process-section { padding: 8px 0 8px; }
.process-section .section-title { font-size: 20px; font-weight: 800; margin: 0 0 6px; line-height: 1.3; }
.process-section .section-lead { font-size: 14px; color: var(--color-text-sub); margin: 0 0 18px; line-height: 1.6; }
.process-grid { display: flex; flex-direction: column; gap: 2px; }
.process-grid > *:nth-child(1) { --reveal-delay: 0s; }
.process-grid > *:nth-child(2) { --reveal-delay: .12s; }
.process-grid > *:nth-child(3) { --reveal-delay: .24s; }
.process-grid > *:nth-child(4) { --reveal-delay: .36s; }
.process-grid > *:nth-child(5) { --reveal-delay: .48s; }

.process-item {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 20px 18px 18px;
}
.process-num {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums;
  background: var(--color-bg-soft); color: var(--color-primary);
  margin: 0 0 12px;
  transition: background .7s ease var(--reveal-delay, 0s), color .3s ease var(--reveal-delay, 0s),
              transform .5s cubic-bezier(.34,1.56,.64,1) var(--reveal-delay, 0s);
}
html.reveal-ready .process-item.in-view .process-num {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff; transform: scale(1.08);
}
.process-item h3 { display: flex; align-items: center; gap: 6px; font-size: 16px; margin: 0 0 6px; }
.process-item h3 svg { width: 16px; height: 16px; color: var(--color-primary); flex: 0 0 auto; }
.process-item p { font-size: 14px; color: var(--color-text-sub); margin: 0; line-height: 1.6; }

/* 카드 사이의 흐름을 나타내는 연결 화살표 (모바일: 아래쪽, PC: 오른쪽) */
.process-connector {
  display: flex; align-items: center; justify-content: center; align-self: center;
  flex: 0 0 auto; width: 30px; height: 30px;
  color: var(--color-border);
  transition: color .5s ease var(--reveal-delay, 0s), transform .5s cubic-bezier(.34,1.56,.64,1) var(--reveal-delay, 0s);
}
.process-connector svg { width: 18px; height: 18px; transform: rotate(90deg); }
html.reveal-ready .process-connector.in-view { color: var(--color-accent); transform: scale(1.15); }

/* ---------- 등록대행 혜택 카드 (해연유학과 함께하면 달라지는 것들) ----------
   아이콘+테두리 박스 대신, 사진 + 하단 텍스트로 구성한 상품 카드형 레이아웃 (2026-10-01 개편) -
   다른 메뉴의 아이콘 카드들과 디자인이 비슷해 보인다는 피드백에 따라 실제 사진으로 교체했다. */
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
.benefit-card {
  display: block; text-decoration: none; color: inherit;
}
.benefit-card .bc-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--color-bg-soft); margin-bottom: 10px;
  transition: box-shadow .2s ease, transform .2s ease;
}
a.benefit-card:hover .bc-photo { box-shadow: 0 10px 28px rgba(11,42,79,.18); transform: translateY(-2px); }
.benefit-card .bc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.benefit-card h3 { font-size: 14px; font-weight: 700; color: var(--color-navy); margin: 0 0 4px; line-height: 1.4; }
.benefit-card p { font-size: 14px; color: var(--color-text-sub); line-height: 1.5; margin: 0 0 6px; }
.benefit-card .bc-price { font-size: 14px; font-weight: 800; color: var(--color-primary); }

@media (min-width: 1024px) {
  .benefit-grid { grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
  .benefit-card h3 { font-size: 14px; }
  .benefit-card p { font-size: 13px; }
}

/* ---------- 캠퍼스 갤러리 (시그니처: 카탈로그가 아니라 방문 기록) ---------- */
.campus-section { padding: 8px 0 8px; }
.campus-section .section-title { font-size: 20px; font-weight: 800; margin: 0 0 6px; line-height: 1.3; }
.campus-section .section-lead { font-size: 14px; color: var(--color-text-sub); margin: 0 0 16px; line-height: 1.6; }
.campus-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.campus-tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--color-bg-soft);
}
.campus-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.campus-tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
  color: #fff;
}
.campus-tile .cap .school { font-size: 14px; font-weight: 800; letter-spacing: .01em; display: block; }
.campus-tile .cap .note { font-size: 14px; opacity: .82; margin-top: 2px; display: none; }

/* ---------- 커뮤니티 도입부 (라운지 영상 + 소개) ----------
   cafe.mp4를 음소거 상태로 넣어두고, 화면에 스크롤되어 들어올 때만 재생한다
   (community-video.js의 IntersectionObserver가 play/pause를 제어). */
.community-lead { margin-bottom: 16px; }
.community-lead .community-media {
  width: 100%; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; margin-bottom: 12px;
  background: var(--color-bg-soft);
}
.community-lead video { width: 100%; height: 100%; object-fit: cover; display: block; }
.community-lead p { font-size: 14px; color: var(--color-text-sub); line-height: 1.6; margin: 0; }

/* ---------- 신규 칼럼 (가로 스크롤 카드 → PC 그리드) ---------- */
.column-strip {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
  scroll-snap-type: x proximity;
}
.column-strip .empty-state { flex: 1 0 auto; width: 100%; }
.column-card {
  flex: 0 0 auto; width: 210px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; display: block;
}
.column-card .thumb {
  height: 120px; background: linear-gradient(160deg, var(--color-primary-light), #fff);
  display: flex; align-items: center; justify-content: center; color: var(--color-text-sub); font-size: 14px;
  overflow: hidden;
}
.column-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.column-card .body { padding: 12px; }
.column-card .title {
  font-size: 14px; font-weight: 700; margin: 0 0 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.column-card .meta { font-size: 14px; color: var(--color-text-sub); display: flex; gap: 8px; }

/* ---------- 하단 CTA 배너 ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #071a33 130%);
  color: #fff; border-radius: var(--radius-lg); padding: 30px 22px; text-align: center;
  margin: 4px 0 8px;
}
.cta-banner h2 { font-size: 21px; margin: 0 0 8px; }
.cta-banner p { margin: 0 0 18px; font-size: 14px; color: rgba(255,255,255,.85); }
.cta-banner .cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,.1); }
/* 홈 히어로의 무료상담 카드(.hero-consult)를 배너 안에도 그대로 재사용할 때: 가운데 정렬 + 카드 내부는 좌측 정렬로 되돌린다 */
.cta-banner .hero-consult { margin: 20px auto 0; text-align: left; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 28px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 17px; margin: 0; }
.section-head .more { font-size: 14px; color: var(--color-text-sub); font-weight: 600; }

/* 최신 커뮤니티 소식
   - 모바일: 왓츠앱 채팅창처럼 좌우 말풍선 (1줄 미리보기 + 작성자)
   - PC(1024px~): 이미지 썸네일이 있는 기존 박스 카드 그리드
   하나의 마크업(.feed-item)을 breakpoint별로 다르게 꾸미고,
   각 모드 전용 내용은 CSS로 표시/숨김만 전환한다. */
.card-scroll {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}
.feed-item {
  display: inline-flex;
  flex-direction: column;
  max-width: 78%;
  padding: 7px 12px;
  border-radius: var(--radius-lg);
  background: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.feed-item:nth-child(even) {
  align-self: flex-end;
  align-items: flex-end;
  background: var(--color-accent-light);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 4px;
}
.feed-item .bubble-text {
  font-size: 14px; font-weight: 600; color: var(--color-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.feed-item .bubble-author {
  font-size: 14px; color: var(--color-text-sub); margin-top: 2px;
}
.feed-item .feed-card-body { display: none; }
/* PC 테스티모니얼 카드 안에서 쓰는 작성자 헤더(아바타+닉네임+메타) — 프로필 사진이 없으면
   닉네임 첫 글자를 단색 배경 원형에 넣은 이니셜 아바타로 대체(main.js에서 생성) */
.feed-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.feed-avatar, .feed-avatar-placeholder { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.feed-avatar-placeholder { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; }
.feed-card-who { min-width: 0; }
.feed-card-name { display: block; font-size: 14px; font-weight: 800; color: var(--color-text); }
.feed-card-meta-line { display: block; font-size: 14px; color: var(--color-text-sub); margin-top: 1px; }
.feed-card-excerpt {
  font-size: 14px; color: var(--color-text-sub); line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.board-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 14px; font-weight: 700; color: var(--color-accent-dark);
  background: var(--color-accent-light); padding: 3px 9px; border-radius: 999px; margin-bottom: 6px;
}
.partner-inline-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 14px; font-weight: 700; color: var(--color-wine);
  background: var(--color-wine-light); padding: 3px 9px; border-radius: 999px;
  vertical-align: middle;
}
.featured-inline-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 14px; font-weight: 700; color: var(--color-accent-dark);
  background: var(--color-accent-light); padding: 3px 9px; border-radius: 999px;
  vertical-align: middle;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
/* 카테고리 박스: 기존에 아이콘에만 적용하던 소프트 그라데이션 타일 스타일을
   카드 전체로 확장해서, 아이콘과 텍스트가 하나의 박스 안에 담기도록 함 */
.category-card {
  background: linear-gradient(160deg, #ffffff 0%, var(--color-primary-light) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px 8px 12px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(17,24,39,.05), 0 6px 14px rgba(149,58,199,.12), inset 0 1px 0 rgba(255,255,255,.7);
}
.category-card .icon-tile {
  width: 30px; height: 30px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
  background: rgba(255,255,255,.75);
  color: var(--color-primary);
}
.category-card .icon-tile svg { width: 17px; height: 17px; }
.category-card .name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.category-card .desc { font-size: 14px; color: var(--color-text-sub); margin-top: 1px; line-height: 1.3; }

.empty-state {
  padding: 24px; text-align: center; color: var(--color-text-sub); font-size: 14px;
  background: #fff; border: 1px dashed var(--color-border); border-radius: var(--radius);
}

/* ---------- 로그인 모달 ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: none; align-items: center; justify-content: center; z-index: 300; padding: 20px;
}
.modal-overlay.open { display: flex; }

/* 사진 라이트박스 - 학교/대학/학원 사진을 새 탭이 아니라 화면 위에 크게 띄우고,
   배경 클릭·우측 상단 ×·Esc로 바로 닫을 수 있게 한다. */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 400; background: rgba(4,10,20,.92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: lightbox-fade-in .15s ease;
}
@keyframes lightbox-fade-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: min(92vw, 1100px); max-height: 88vh; width: auto; height: auto;
  object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close {
  position: fixed; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,.24); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.24); }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-counter {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.14); color: #fff; font-size: 14px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
}

@media (min-width: 640px) {
  .lightbox-prev { left: 24px; }
  .lightbox-next { right: 24px; }
}
.modal-box {
  background: #fff; border-radius: var(--radius-lg); padding: 28px 24px; width: 100%; max-width: 360px;
  text-align: center; position: relative;
}
.modal-box .close-btn {
  position: absolute; top: 12px; right: 14px; border: none; background: transparent; font-size: 20px; color: var(--color-text-sub);
}
.modal-box h3 { margin: 0 0 4px; font-size: 18px; }
.modal-box p { margin: 0 0 20px; font-size: 14px; color: var(--color-text-sub); }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 46px; border-radius: var(--radius-lg); border: none;
  font-size: 15px; font-weight: 700; margin-bottom: 10px;
}
.social-btn.google { background: #fff; border: 1px solid var(--color-border); color: #1f2430; }
.social-btn.kakao { background: #FEE500; color: #191919; }
.social-btn svg { width: 20px; height: 20px; }
.login-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--color-text-sub); font-size: 14px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
#email-login-form .form-group { margin-bottom: 10px; text-align: left; }
.user-chip {
  display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
  max-width: 64px;
}
.user-chip img { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#header-user-slot { display: flex; align-items: center; gap: 4px; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: #fff; border-top: 1px solid var(--color-border);
  padding: 24px 0 60px; margin-top: 24px;
}
.site-footer .container { font-size: 14px; color: var(--color-text-sub); }
.site-footer .foot-brand { font-weight: 800; color: var(--color-primary); margin-bottom: 6px; font-size: 14px; }
.site-footer .foot-tel { color: var(--color-accent-dark); font-weight: 700; }
.site-footer .foot-links { margin-top: 10px; }
.site-footer .foot-links a { color: var(--color-text-sub); text-decoration: none; }
.site-footer .foot-links a:hover { color: var(--color-navy); text-decoration: underline; }
.site-footer .foot-biz {
  font-size: 14px; line-height: 1.7; color: #9aa1ab;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border);
}

/* ---------- 게시판 공통 (커뮤니티/칼럼/이벤트) ---------- */
.board-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 0 12px;
  overflow-x: auto;
}
.board-tabs a {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text-sub);
  white-space: nowrap;
}
.board-tabs a.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.board-toolbar {
  display: flex; justify-content: flex-end; margin-bottom: 10px;
}

/* 커뮤니티 상단 분류(국제학교/대학교/기타)·국가 태그 필터 */
.topic-filter { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.tag-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tag-row::-webkit-scrollbar { display: none; }
.filter-tag {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-sub);
  white-space: nowrap;
}
.filter-tag:hover { color: var(--color-accent-dark); }
.filter-tag.active {
  background: var(--color-accent-light);
  border-color: transparent;
  color: var(--color-accent-dark);
  font-weight: 700;
}

.post-list { display: flex; flex-direction: column; gap: 10px; }
.post-row {
  display: block;
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: 0 1px 8px rgba(90,70,50,.05);
}
.post-row:hover { border-color: var(--color-accent); }
.post-row .title { font-size: 15.5px; font-weight: 700; margin: 0 0 6px; line-height: 1.5; }
.post-row .excerpt {
  font-size: 14px; color: var(--color-text-sub); margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-row .meta { display: flex; gap: 12px; font-size: 14px; color: var(--color-text-sub); }
.post-row .meta .author { font-weight: 600; color: var(--color-text); }

/* 아이콘 + 숫자/텍스트로 된 미니멀 메타 정보 (테두리·배경 없이 아이콘으로 밀도만 높임) */
.meta-chip { display: inline-flex; align-items: center; gap: 3px; }
.meta-chip svg { flex: 0 0 auto; opacity: .65; }
#like-icon { display: inline-flex; align-items: center; }

.pagination-more {
  display: block; width: 100%; margin-top: 16px; padding: 12px;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  background: #fff; text-align: center; font-weight: 700; font-size: 14px; color: var(--color-text-sub);
}

/* ---------- 글쓰기 폼 ---------- */
.write-form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%; border: 1px solid var(--color-border); border-radius: 8px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; background: #fff;
}
.form-group textarea { min-height: 200px; resize: vertical; }
.form-hint { font-size: 14px; color: var(--color-text-sub); margin-top: 4px; }

/* 소개글 리치 텍스트 편집기 (rich-editor.js가 textarea#f-description 뒤에 삽입) */
.rich-editor-wrap { margin-top: 0; }
.rich-editor-wrap .ql-toolbar.ql-snow {
  border-color: var(--color-border); border-radius: 8px 8px 0 0; background: var(--color-bg-soft);
}
/* 글이 길면 스크롤해서 내려가도 툴바가 안 보여 불편하다는 피드백 — 계속 화면에 붙어있게 한다.
   글쓰기 페이지(post_write.php)처럼 페이지 자체가 스크롤되는 곳에서는 사이트 헤더 높이만큼
   내려서 붙이고, 모달 안(.modal-box, overflow-y:auto로 모달 자체가 스크롤 컨테이너)에서는
   헤더가 안 보이니 모달 맨 위에 바로 붙인다. */
@media (min-width: 1024px) {
  .rich-editor-wrap .ql-toolbar.ql-snow {
    position: sticky;
    top: calc(var(--header-height) + var(--gnb-height) + 1px);
    z-index: 50;
  }
  .modal-box .rich-editor-wrap .ql-toolbar.ql-snow { top: 0; }
}
.rich-editor-wrap .ql-container.ql-snow {
  border-color: var(--color-border); border-radius: 0 0 8px 8px; font-family: inherit; font-size: 14px;
}
.rich-editor-wrap .ql-editor { min-height: 220px; line-height: 1.8; }
.rich-editor-wrap .ql-editor img { border-radius: 8px; margin: 4px 0; cursor: pointer; }
/* 이미지 클릭 시 뜨는 크기(800px/전체화면) 선택 팝업. rich-editor.js가 위치를 계산해 넣는다. */
.img-size-toggle {
  display: none; position: absolute; z-index: 20; gap: 2px;
  background: var(--color-text); border-radius: 8px; padding: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.img-size-toggle button {
  border: none; background: transparent; color: #fff; cursor: pointer;
  font-size: 14px; font-weight: 700; padding: 5px 10px; border-radius: 6px; white-space: nowrap;
}
.img-size-toggle button:hover { background: rgba(255, 255, 255, .18); }
.img-size-toggle button.active { background: var(--color-primary); }
/* 첨부 이미지 크기: 모바일은 항상 꽉 채우고(기존과 동일), PC에서만 기본 800px로 제한한다
   (원래 600px였는데 조금 작다는 피드백을 받아 800px로 키움 — 2026-08-27).
   에디터에서 이미지를 클릭해 "전체화면"으로 지정하면 .img-full이 붙어 PC에서도 꽉 채운다.
   읽기 전용 페이지(.rich-content, .post-detail)와 편집 화면(.ql-editor) 양쪽에 동일 적용해서
   편집 중 미리보기와 실제 게시글 화면이 다르지 않게 한다. */
@media (min-width: 1024px) {
  .rich-editor-wrap .ql-editor img:not(.img-full),
  .rich-content img:not(.img-full),
  .post-detail .content img:not(.img-full) {
    max-width: 800px;
  }
}
/* 이미지 정렬(좌/가운데/우) — Quill의 ql-align-*은 이미지를 담은 문단(<p>)에 text-align으로
   붙는데, text-align은 인라인 레벨 콘텐츠에만 효과가 있고 block 요소는 부모의 text-align을
   무시한다. 그래서 이미지를 inline-block으로 바꿔야 정렬이 실제로 먹힌다(전역 img 리셋은
   display:block이라 여기서 다시 덮어씀). */
.rich-editor-wrap .ql-editor img,
.rich-content img,
.post-detail .content img {
  display: inline-block;
}
.rich-editor-wrap .ql-editor.ql-blank::before { color: var(--color-text-sub); font-style: normal; }
/* 표: 셀 경계가 안 보이면 뭘 클릭해야 할지 알기 어려워서 편집 중에도 테두리를 보여준다.
   ql-rich-table은 rich-editor.js가 표를 하나의 덩어리로 다루려고 등록한 임베드 래퍼. */
.rich-editor-wrap .ql-rich-table { margin: 8px 0; }
.rich-editor-wrap .ql-rich-table table { width: 100%; border-collapse: collapse; }
.rich-editor-wrap .ql-rich-table td { border: 1px solid var(--color-border); padding: 6px 9px; min-width: 32px; }
.rich-editor-wrap .ql-rich-table td:focus-within { background: var(--color-primary-light); }
/* 행+/행-/열+/열- 버튼은 아이콘이 아니라 글자라 Quill 기본 24px 정사각 버튼 폭으론 좁다 */
.rich-editor-wrap .ql-toolbar button.ql-tableRowAdd,
.rich-editor-wrap .ql-toolbar button.ql-tableRowDel,
.rich-editor-wrap .ql-toolbar button.ql-tableColAdd,
.rich-editor-wrap .ql-toolbar button.ql-tableColDel {
  width: auto; padding: 0 6px; font-size: 14px; font-weight: 700;
}

/* 학교/대학/학원 상세페이지에 표시되는 리치 텍스트 소개글 */
/* max-width는 위쪽 "첨부 이미지 크기" 규칙(:not(.img-full) 미디어쿼리)이 담당 — 여기서
   또 max-width:100%를 주면 명시도가 같아서 파일 순서상 이 규칙이 이겨버려 PC 크기 제한이
   무력화된다. 실제로 이 문제를 겪고 나서 분리함. */
.db-detail-desc.rich-content img { height: auto; border-radius: var(--radius-lg); margin: 8px 0; }
.db-detail-desc.rich-content p { margin: 0 0 12px; }
.db-detail-desc.rich-content ul, .db-detail-desc.rich-content ol { margin: 0 0 12px; padding-left: 22px; }
.db-detail-desc.rich-content blockquote {
  margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid var(--color-primary);
  background: var(--color-bg-soft); color: var(--color-text-sub);
}
.db-detail-desc.rich-content a { color: var(--color-primary); text-decoration: underline; }
/* 표 - 스크랩된 학비표뿐 아니라 글쓰기 에디터에서 직접 만든 표도 여기로 렌더된다
   (post-detail 등 .rich-content가 붙는 곳이면 어디든 공통 적용). 좁은 화면에서 표만
   가로 스크롤되게 하고 본문은 넘치지 않게 한다. */
.rich-content table {
  display: block; overflow-x: auto; width: 100%; border-collapse: collapse;
  margin: 0 0 14px; font-size: 14px; white-space: nowrap;
}
.rich-content th, .rich-content td {
  border: 1px solid var(--color-border); padding: 7px 10px; text-align: left;
}
.rich-content th { background: var(--color-bg-soft); font-weight: 700; }
.db-detail-desc.rich-content h3 { font-size: 15px; margin: 18px 0 8px; }
/* 글자 크기 서식(ql-size-*) — 에디터의 quill.snow.css에만 있고 읽기 전용 페이지엔 로드되지
   않는 스타일이라, 여기서 Quill 기본값과 똑같은 배율로 맞춰준다(0.75/1.5/2.5em). 이게 없으면
   에디터에선 크게 보이던 글자가 실제 게시글 화면에서는 그냥 보통 크기로 나온다. */
.rich-content .ql-size-small { font-size: 0.75em; }
.rich-content .ql-size-large { font-size: 1.5em; }
.rich-content .ql-size-huge { font-size: 2.5em; }
/* 정렬 서식(ql-align-*) — 위와 같은 이유로 필요. 왼쪽 정렬은 기본값이라 클래스가 안 붙는다. */
.rich-content .ql-align-center { text-align: center; }
.rich-content .ql-align-right { text-align: right; }
.rich-content .ql-align-justify { text-align: justify; }
.img-preview-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.img-preview-list .thumb-wrap { position: relative; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; border: 1px solid var(--color-border); }
.img-preview-list img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-list .remove-btn {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; border: none; font-size: 14px; line-height: 1;
}
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* 다중선택 칩 (관심분야 등) */
.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-option { position: relative; }
.chip-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip-option span {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--color-border); font-size: 14px; font-weight: 600; color: var(--color-text-sub);
  cursor: pointer; user-select: none;
}
.chip-option input:checked + span {
  background: var(--color-primary); border-color: var(--color-primary); color: #fff;
}

/* ---------- 게시물 상세 ---------- */
.post-detail { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px; }
/* PC 화면에서 좌우 여백이 너무 좁아 보인다는 피드백 — 위아래는 그대로 두고 좌우만 넉넉하게 */
@media (min-width: 1024px) {
  .post-detail { padding-left: 50px; padding-right: 50px; }
}
.post-detail .board-tag { margin-bottom: 8px; }
.post-detail h1 { font-size: 20px; margin: 0 0 10px; }
.post-detail .detail-meta {
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--color-text-sub);
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--color-border);
}
.post-detail .detail-meta img { width: 26px; height: 26px; border-radius: 50%; }
/* 글이 어느 학교/대학/학원에서 시작됐는지 알려주는 되돌아가기 링크 (post-detail.js가 채움).
   학교 상세의 "이 학교에 대한 이야기"에서 쓴 글에만 나타난다. */
.post-detail .post-target { margin: 0 0 12px; }
.post-detail .post-target a {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 8px 14px; border-radius: 999px;
  background: var(--color-primary-light); color: var(--color-primary);
  font-size: 14px; line-height: 1.4;
}
.post-detail .post-target a:hover { background: #d5e2f5; }
.post-detail .post-target svg { flex: 0 0 auto; opacity: .8; }
.post-detail .post-target .label {
  flex: 0 0 auto; font-size: 14px; font-weight: 800;
  background: #fff; padding: 1px 7px; border-radius: 999px;
}
.post-detail .post-target strong {
  font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-detail .post-target .go { flex: 0 0 auto; opacity: .75; }
.post-detail .content { font-size: 15px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.post-detail .content img { border-radius: 8px; margin: 10px 0; }
/* 칼럼·이벤트 글은 리치 에디터로 작성된 HTML이라 태그 자체가 줄바꿈을 표현한다 —
   커뮤니티(평문+pre-wrap)와 달리 pre-wrap을 끄지 않으면 문단 사이가 이중으로 벌어져 보인다. */
.post-detail .content.rich-content { white-space: normal; }
/* 대표이미지(글쓰기 폼의 "사진 첨부")는 본문 리치 에디터 이미지와 달리 <article> 바로 아래
   형제로 붙는다(.content 안이 아님) — 그래서 .content img가 아니라 자식 선택자로 따로 잡는다. */
.post-detail > img { border-radius: 8px; margin: 10px 0; }
.post-detail .yt-embed { position: relative; padding-top: 56.25%; margin: 14px 0; border-radius: 8px; overflow: hidden; }
.post-detail .yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
/* 대표이미지·유튜브가 PC에서 카드 폭 그대로(전체화면처럼) 나와 불편하다는 피드백 — 800px로 제한.
   모바일은 그대로 전체 너비 유지. */
@media (min-width: 1024px) {
  .post-detail > img { max-width: 800px; margin-left: auto; margin-right: auto; }
  .post-detail .yt-embed { max-width: 800px; margin-left: auto; margin-right: auto; }
}

.detail-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.detail-actions button, .detail-actions a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--color-border);
  background: #fff; font-size: 14px; font-weight: 700; color: var(--color-text-sub);
}
.detail-actions button.liked { color: var(--color-accent-dark); border-color: var(--color-accent); background: var(--color-accent-light); }
.detail-actions .btn-danger { background: var(--color-wine-light); color: var(--color-wine); border-color: var(--color-wine); }

.comments-section { margin-top: 20px; }
.comments-section h3 { font-size: 15px; margin-bottom: 10px; }
.comment-form { display: flex; gap: 8px; margin-bottom: 16px; }
.comment-form input { flex: 1; border: 1px solid var(--color-border); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.comment-item { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.comment-item .c-meta { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.comment-item .c-author { font-weight: 700; font-size: 14px; }
.comment-item .c-date { font-size: 14px; color: var(--color-text-sub); }
.comment-item .c-content { font-size: 14px; }
.comment-item .c-hidden-tag {
  font-size: 14px; font-weight: 700; color: var(--color-wine); background: var(--color-wine-light);
  padding: 1px 8px; border-radius: 999px;
}
.comment-item .c-actions { display: flex; gap: 12px; margin-top: 6px; }
.comment-item .c-actions button {
  font-size: 14px; color: var(--color-text-sub); background: none; border: none; padding: 0;
  text-decoration: underline; cursor: pointer;
}
.comment-item .c-actions button.c-delete-btn { color: var(--color-wine); }
/* input을 버튼과 한 줄에 나눠 쓰지 않고 자기 줄을 온전히 차지하게 해서(위 댓글 입력창과
   같은 너비), flex 자식의 내용 기반 최소너비 때문에 좁아지는 문제를 원천적으로 피한다. */
.comment-item .c-edit-form { margin-top: 4px; }
.comment-item .c-edit-form input {
  display: block; width: 100%; box-sizing: border-box;
  border: 1px solid var(--color-border); border-radius: 8px; padding: 10px 12px; font-size: 14px;
  margin-bottom: 6px;
}
.comment-item .c-edit-form .c-edit-btns { display: flex; gap: 6px; }
.comment-item .c-edit-form button {
  height: 32px; font-size: 14px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--color-border); background: #fff; cursor: pointer;
}

/* ---------- 정보 DB (국제학교/대학/학원) 목록 ---------- */
.filter-bar {
  display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap;
}
.filter-bar input[type="text"] {
  flex: 1; min-width: 160px; height: 40px; border: 1px solid var(--color-border);
  border-radius: 8px; padding: 0 12px; font-size: 14px;
}
.filter-bar select {
  height: 40px; border: 1px solid var(--color-border); border-radius: 8px; padding: 0 10px;
  font-size: 14px; background: #fff;
}

.db-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.db-card {
  display: block; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; position: relative;
}
.db-card .thumb {
  height: 150px; background: var(--color-bg-soft); display: flex; align-items: center; justify-content: center;
  color: var(--color-text-sub); font-size: 14px; overflow: hidden;
}
/* 로고 썸네일은 패딩 안쪽 여백까지 감안해서 박스 자체를 30% 키운다(패딩을 줄이면
   흰 여백이 거의 없어져 갑갑해 보여서, 박스를 키우는 쪽을 택함) — 2026-08-25 */
.db-card .thumb:has(.thumb-logo) { height: 184px; }
.db-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.db-card .body { padding: 14px; }
.db-card .badges { position: absolute; top: 10px; left: 10px; z-index: 1; display: flex; gap: 4px; }
.db-card .partner-badge, .db-card .featured-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 14px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
}
.db-card .partner-badge { background: var(--color-wine); color: #fff; }
.db-card .featured-badge { background: var(--color-accent); color: #fff; }
.db-card .name { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.db-card .sub { display: flex; align-items: center; gap: 3px; font-size: 14px; color: var(--color-text-sub); margin: 0 0 8px; }
.db-card .sub svg { flex: 0 0 auto; opacity: .6; }
.db-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.db-card .tag { font-size: 14px; background: var(--color-primary-light); color: var(--color-primary); padding: 2px 8px; border-radius: 999px; }
.db-card .scrap-btn {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; font-size: 16px; z-index: 1;
}
.db-card .scrap-btn.scrapped { color: var(--color-accent-dark); }
/* 국가 표시를 썸네일 이미지 위에 흰 글씨로 겹쳐 보여줄 때 쓰는 배지(기본은 숨김 —
   메인페이지 "추천 국제학교" 모바일 카드에서만 켜짐, schools.php 목록 등 다른 곳은 영향 없음) */
.db-card .country-badge {
  position: absolute; left: 8px; bottom: 6px; z-index: 1;
  font-size: 14px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.75);
  display: none;
}

/* 메인페이지 "추천 국제학교"는 모바일에서 카드가 너무 크게 보여서 별도로 축소
   (schools.php/universities.php 목록 페이지의 .db-grid/.db-card는 그대로 유지) */
@media (max-width: 1023px) {
  #recommended-schools { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  #recommended-schools .db-card .thumb { height: 100px; position: relative; }
  #recommended-schools .db-card .body { padding: 8px 10px 10px; }
  #recommended-schools .db-card .sub { display: none; }
  #recommended-schools .db-card .name {
    font-size: 14px; margin: 0; line-height: 1.35;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  #recommended-schools .db-card .badges { top: 6px; left: 6px; gap: 3px; }
  #recommended-schools .db-card .partner-badge, #recommended-schools .db-card .featured-badge { font-size: 14px; padding: 2px 7px; }
  #recommended-schools .db-card .country-badge { display: block; }
}

/* 관리자로 로그인했을 때만 목록에서 바로 노출되는 수정 버튼 (JS가 body에 is-admin 클래스를 붙임) */
.db-card .edit-school-btn, .db-card .edit-university-btn {
  display: none;
  position: absolute; bottom: 10px; right: 10px; z-index: 1;
  height: 28px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: rgba(255,255,255,.95); border: 1px solid var(--color-border); color: var(--color-text);
}
body.is-admin .db-card .edit-school-btn, body.is-admin .db-card .edit-university-btn { display: inline-flex; align-items: center; }

/* ---------- 정보 DB 상세 ---------- */
/* 상세 페이지 안의 하위 섹션 제목 (기본정보 이후: 커뮤니티글/사진) */
.detail-section-head { margin-top: 28px; }
.detail-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.detail-photo-grid a { display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--color-bg-soft); }
.detail-photo-grid img { width: 100%; height: 100%; object-fit: cover; }

/* 학교/대학 로고: 모바일에선 제목 아래 작게, PC(1024px~)에선 기본정보표 왼쪽에 —
   .has-logo가 없으면(로고 미등록) 그리드를 켜지 않아 기존 레이아웃 그대로 유지된다. */
.db-detail-top.has-logo { display: grid; grid-template-areas: "head" "logo" "info"; }
.db-detail-top .db-detail-head { grid-area: head; }
.db-detail-logo { grid-area: logo; margin: 2px 0 6px; }
/* 안전장치: .has-logo 그리드가 무슨 이유로든(캐시된 구버전 CSS 등) 안 걸려도
   로고 원본 해상도(1000px대)가 그대로 커지지 않도록 크기를 직접 못박아 둔다. */
.logo-badge { display: block; max-width: 88px; max-height: 88px; width: auto; height: auto; object-fit: contain; }
.db-detail-logo .logo-badge {
  width: 40px; height: 40px; border-radius: var(--radius-lg); object-fit: contain;
  background: #fff; border: 1px solid var(--color-border); padding: 4px;
}
.db-detail-top .info-table { grid-area: info; }

.db-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.db-detail-head .head-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.db-detail-head h1 { font-size: 20px; margin: 0 0 4px; }
/* 목록 카드 썸네일: 로고가 있으면 사진 대신 로고 자체를 썸네일로 쓴다(사진 위에 배지로
   겹쳐 그리던 예전 방식은 이름/정보 텍스트를 가리는 문제가 있어 제거함 — 2026-08-25). */
/* 로고가 박스 안에서 작아 보인다는 피드백(2026-08-27) — 여백을 줄여 세로 기준으로 더 꽉 차게 */
.db-card .thumb img.thumb-logo { object-fit: contain; background: #fff; padding: 6px; }
.db-detail-head .sub { display: flex; align-items: center; gap: 4px; color: var(--color-text-sub); font-size: 14px; }
.db-detail-head .sub svg { flex: 0 0 auto; opacity: .6; }
.db-detail-head #scrap-btn { font-size: 18px; flex: 0 0 auto; }
.db-detail-head #scrap-btn.scrapped { color: var(--color-accent-dark); }

.info-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.info-table th, .info-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.info-table th { width: 100px; color: var(--color-text-sub); font-weight: 600; }

/* ---------- 회사소개: CEO 인사말 (30년 역사·신뢰 강조) ---------- */
.founder-quote {
  background: linear-gradient(135deg, var(--color-primary) 0%, #071a33 130%);
  color: #fff; border-radius: var(--radius-lg); padding: 26px 22px; margin-top: 8px;
}
.founder-quote blockquote { margin: 0 0 18px; font-size: 15px; line-height: 1.75; font-style: normal; }
.founder-quote blockquote p { margin: 0 0 10px; }
.founder-quote blockquote p:last-child { margin-bottom: 0; }
.founder-signature { font-size: 14px; color: rgba(255,255,255,.75); }
.founder-signature strong { display: block; color: #fff; font-size: 14px; margin-bottom: 1px; }
.founder-milestones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }
.founder-milestone { flex: 1 1 150px; background: rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 12px 14px; }
.founder-milestone .fm-year { display: block; font-size: 16px; font-weight: 800; margin-bottom: 3px; }
.founder-milestone .fm-desc { font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.4; }

/* ---------- 회사소개: 연혁 타임라인 ---------- */
.history-timeline { position: relative; padding-left: 22px; margin-top: 10px; max-width: 640px; }
.history-timeline::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--color-border); }
.history-item { position: relative; padding-bottom: 22px; }
.history-item:last-child { padding-bottom: 0; }
.history-item::before {
  content: ''; position: absolute; left: -22px; top: 4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light);
}
.history-item .h-year { font-size: 15px; font-weight: 800; color: var(--color-primary); margin-bottom: 4px; }
.history-item .h-desc { font-size: 14px; color: var(--color-text-sub); line-height: 1.6; }

/* ---------- 회사소개: 글로벌 파트너 네트워크 ---------- */
.partner-groups { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 10px; }
.partner-group { background: var(--color-bg-soft); border-radius: var(--radius-lg); padding: 16px 18px; }
.partner-group h3 { font-size: 14px; font-weight: 800; color: var(--color-primary); margin: 0 0 6px; }
.partner-group p { font-size: 14px; color: var(--color-text-sub); line-height: 1.7; margin: 0; }

/* 주소 + 구글 지도 embed (학교/대학 상세) */
.map-embed { position: relative; height: 220px; margin: 4px 0 16px; border-radius: var(--radius); overflow: hidden; background: var(--color-bg-soft); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.map-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--color-primary); font-weight: 700; margin: -10px 0 16px; }

/* ---------- 회사소개: 오시는 길 ---------- */
.directions-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 10px; }
.di-block { margin-bottom: 22px; }
.di-block:last-child { margin-bottom: 0; }
.di-block h3 { font-size: 14px; font-weight: 800; color: var(--color-text); margin: 0 0 6px; }
.di-block p { font-size: 14px; color: var(--color-text-sub); line-height: 1.7; margin: 0; }
.di-lines { display: flex; gap: 8px; margin-top: 10px; }
.line-badge { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff; }
.line-badge.line-2 { background: #00a84d; }
.line-badge.line-sinbundang { background: #d4003b; }
.directions-map .map-embed { height: 260px; margin: 0; }

.db-detail-desc { font-size: 15px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; margin-bottom: 16px; }

.db-detail-actions { display: flex; gap: 8px; margin-top: 20px; }
.db-detail-actions button { flex: 1; }

/* 수속 신청 모달 */
.apply-modal .modal-box { max-width: 420px; text-align: left; max-height: 85vh; overflow-y: auto; }
.apply-modal h3 { text-align: center; margin-bottom: 4px; }
.apply-modal p.sub { text-align: center; margin-bottom: 18px; }

/* ---------- 마이페이지 ---------- */
.profile-card-inner { display: flex; align-items: center; gap: 14px; width: 100%; }
.profile-card-inner img { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto; background: var(--color-bg-soft); }
.profile-card-inner .avatar-placeholder {
  width: 56px; height: 56px; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; flex: 0 0 auto;
}
.profile-card-inner .info { flex: 1; min-width: 0; }
.profile-card-inner .nickname { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.profile-card-inner .edit-nickname-btn { font-size: 14px; font-weight: 600; color: var(--color-text-sub); background: none; border: none; text-decoration: underline; }

.application-item {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.application-item .target { font-weight: 700; font-size: 14px; }
.application-item .meta { font-size: 14px; color: var(--color-text-sub); margin-top: 4px; }

/* ---------- 관리자(Admin) ---------- */
.admin-layout { display: flex; flex-direction: column; }
.admin-sidebar {
  width: 100%; background: #fff; border-bottom: 1px solid var(--color-border);
  display: flex; overflow-x: auto; padding: 0 8px;
}
.admin-sidebar a {
  flex: 0 0 auto; padding: 14px 14px; font-size: 13px; font-weight: 700; color: var(--color-text-sub);
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.admin-sidebar a.active, .admin-sidebar a:hover { color: var(--color-primary); border-bottom-color: var(--color-primary); }
/* 좌측 메뉴 "new" 표시 - 해당 섹션에 48시간 이내 새 데이터가 있을 때만 JS가 hidden을 해제한다 */
.admin-nav-badge {
  display: inline-block; margin-left: 5px; padding: 1px 6px; border-radius: 999px;
  background: #ff3b30; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; vertical-align: 2px; line-height: 1.5;
}
.admin-main { flex: 1; padding: 20px 16px 60px; min-width: 0; }
.admin-main h1 { font-size: 19px; margin: 0 0 16px; }

.admin-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.admin-stat-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px; }
.admin-stat-card .num { font-size: 24px; font-weight: 800; color: var(--color-primary); }
.admin-stat-card .label { font-size: 12px; color: var(--color-text-sub); margin-top: 2px; }

.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }
.admin-toolbar input[type="text"] {
  height: 36px; border: 1px solid var(--color-border); border-radius: 8px; padding: 0 10px; font-size: 13px;
}

.admin-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--color-border); text-align: left; white-space: nowrap; }
.admin-table th { background: var(--color-bg-soft); font-weight: 700; color: var(--color-text-sub); }
.admin-table tr:last-child td { border-bottom: none; }
/* 관리자: 레벨테스트 결과보기 모달 - 회원 결과 화면(.lt-result-*)과 동일한 카드 디자인을 재사용한다 */
.lt-result-modal .modal-box {
  background: linear-gradient(135deg, var(--color-primary) 0%, #071a33 130%);
  max-width: 560px; text-align: left; max-height: 85vh; overflow-y: auto; border-radius: var(--radius-lg);
}
.lt-result-modal .modal-box .close-btn { color: rgba(255,255,255,.7); }
.lt-result-modal .lt-result-title { color: #fff; font-size: 19px; }
.lt-admin-essay { background: rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 16px 18px; margin: 0 0 20px; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.9); }
.lt-admin-essay strong { display: block; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.6); letter-spacing: .04em; margin-bottom: 8px; }
.lt-admin-essay p { margin: 0; white-space: pre-wrap; }

.badge-role, .badge-status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--color-primary-light); color: var(--color-primary); }
.badge-status.pending, .badge-status.requested { background: var(--color-accent-light); color: var(--color-accent-dark); }
.badge-status.completed, .badge-status.resolved { background: #e6f6ea; color: #1e8e3e; }
.badge-status.cancelled { background: var(--color-wine-light); color: var(--color-wine); }

.btn-sm { height: 30px; padding: 0 12px; font-size: 14px; }
.btn-danger { background: var(--color-wine-light); color: var(--color-wine); border: 1px solid var(--color-wine); }

select.role-select, select.status-select { border: 1px solid var(--color-border); border-radius: 6px; padding: 5px 6px; font-size: 12px; }

/* 관리자: 회원 상세정보 모달 */
.member-name-link { color: var(--color-primary); font-weight: 700; text-decoration: none; }
.member-name-link:hover { text-decoration: underline; }
.detail-list { margin-top: 16px; }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--color-border); font-size: 13px; }
.detail-row:last-child { border-bottom: none; }
.detail-label { flex: 0 0 100px; color: var(--color-text-sub); font-weight: 600; }
.detail-value { flex: 1; text-align: right; color: var(--color-text); word-break: break-all; }
.detail-missing { color: var(--color-wine); }

.admin-form-modal .modal-box { max-width: 480px; text-align: left; max-height: 85vh; overflow-y: auto; }
/* 학교/대학/학원 등록 폼처럼 소개글 에디터가 들어가는 모달은 480px가 너무 좁다는 피드백 —
   칼럼 글쓰기 페이지처럼 화면을 거의 꽉 채우게 키운다. 회원 추가 등 짧은 폼은
   form-modal-full 클래스를 안 붙여서 기존 크기 그대로 유지된다. */
.admin-form-modal.form-modal-full .modal-box {
  max-width: 1100px; width: 100%; height: calc(100vh - 40px); max-height: none;
}

/* ==========================================================================
   PC 브레이크포인트 (기획안 3.2 PC UI)
   ========================================================================== */
@media (min-width: 1024px) {
  .header-search { display: flex; }
  .gnb-desktop { display: block; }
  .gnb-mobile { display: none; }
  .hamburger-btn { display: none; }
  .desktop-only-icon { display: inline-flex; }
  .user-chip { max-width: none; }

  .hero { padding: 80px 16px 72px; }
  .hero::before { background-position: center 58%; }
  .hero .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
  .hero-text { flex: 1; max-width: 620px; }
  .hero-text.hero-solo { max-width: 720px; }
  .hero h1 { font-size: 48px; line-height: 1.22; margin-bottom: 18px; max-width: 640px; }
  .hero p { font-size: 16px; max-width: 480px; margin-bottom: 26px; }
  .hero-text.hero-solo p { max-width: 560px; }

  .ai-grid { flex-direction: row; align-items: flex-start; gap: 48px; }
  .ai-text { flex: 1; }
  .ai-text .section-title { font-size: 28px; }
  .ai-text p { font-size: 15px; max-width: 520px; }
  .ai-stats { flex: 0 0 420px; margin-top: 2px; }
  .ai-stat { padding: 12px 24px; }
  .ai-stat-num { font-size: 19px; white-space: nowrap; }
  .ai-stat-label { white-space: nowrap; }
  .ai-stat:last-child { border-right: none; }
  .hero .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
  .hero .btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
  .hero-consult { flex: 0 0 380px; margin-top: 0; padding: 22px; }
  .hero-consult .hc-row { flex-direction: column; }

  .process-section { padding: 20px 0 16px; }
  .process-section .section-title { font-size: 32px; }
  .process-section .section-lead { font-size: 15px; max-width: 560px; }
  .process-grid { flex-direction: row; gap: 4px; }
  .process-item { flex: 1; padding: 26px 22px 24px; }
  .process-num { width: 52px; height: 52px; font-size: 19px; }
  .process-item h3 { font-size: 17px; }
  .process-item h3 svg { width: 18px; height: 18px; }
  .process-connector { width: 40px; height: 40px; }
  .process-connector svg { width: 22px; height: 22px; transform: rotate(0deg); }

  .campus-section { padding: 20px 0 16px; }
  .campus-section .section-title { font-size: 32px; }
  .campus-section .section-lead { font-size: 15px; max-width: 560px; }
  .campus-gallery { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .campus-tile .cap .note { display: block; }
  .campus-tile .cap .school { font-size: 12px; }

  .region-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .region-card { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
  .region-card .rc-body { padding: 22px; }
  .region-card .rc-tag { font-size: 11px; }
  .region-card .rc-name { font-size: 21px; }
  .region-card .rc-desc { font-size: 13px; }

  /* 영상+소개문구는 왼쪽 고정폭 컬럼, 최신 글 카드는 오른쪽 컬럼을 채운다(영상 우측의 빈 공간 방지) */
  .community-layout { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
  .community-lead { display: flex; flex-direction: column; gap: 12px; margin-bottom: 0; }
  .community-lead .community-media { width: 100%; aspect-ratio: 3 / 2; margin-bottom: 0; }
  .community-lead p { font-size: 14px; }

  .cta-banner { padding: 44px 40px; }
  .cta-banner h2 { font-size: 28px; }
  .cta-banner p { font-size: 14px; }

  .category-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; }
  .category-card { padding: 20px 10px 16px; }
  .category-card .icon-tile { width: 42px; height: 42px; border-radius: var(--radius-lg); margin-bottom: 10px; }
  .category-card .icon-tile svg { width: 22px; height: 22px; }
  .category-card .name { font-size: 14px; }
  .category-card .desc { font-size: 12px; margin-top: 2px; }

  .founder-quote { padding: 36px 40px; }
  .founder-quote blockquote { font-size: 16px; max-width: 780px; }
  .founder-milestones { flex-wrap: nowrap; }
  .partner-groups { grid-template-columns: repeat(2, 1fr); }
  .directions-grid { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .directions-map .map-embed { height: 100%; min-height: 340px; }
  /* PC: 말풍선 대신 테스티모니얼 스타일의 매스너리 카드 그리드로 표시 (최신 글이 DOM상 먼저 오므로
     column 레이아웃의 자연스러운 순서 그대로 최신순이 됨) */
  .card-scroll { display: block; column-count: 2; column-gap: 14px; }
  .feed-item {
    display: block; break-inside: avoid; max-width: none; align-self: auto;
    margin: 0 0 14px; padding: 16px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--color-border);
  }
  .feed-item .bubble-text, .feed-item .bubble-author { display: none; }
  .feed-item .feed-card-body { display: block; }
  .feed-item .feed-card-title {
    font-size: 14px; font-weight: 700; margin: 0 0 6px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .db-grid { grid-template-columns: repeat(3, 1fr); }

  /* 학교/대학 상세: 로고를 기본정보표(유형/학비/주소) 왼쪽으로 이동 */
  .db-detail-top.has-logo {
    grid-template-columns: 88px 1fr;
    grid-template-areas: "head head" "logo info";
    column-gap: 20px;
    align-items: start;
  }
  .db-detail-logo { margin: 0; }
  .db-detail-logo .logo-badge { width: 72px; height: 72px; border-radius: var(--radius-lg); }

  .column-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; overflow: visible; }
  .column-card { width: auto; }
  .column-card .thumb { height: 140px; }
  .column-card .title { font-size: 14px; }

  .admin-layout { flex-direction: row; align-items: flex-start; }
  .admin-sidebar {
    width: 200px; flex-direction: column; border-bottom: none; border-right: 1px solid var(--color-border);
    padding: 16px 0; position: sticky; top: calc(var(--header-height) + var(--gnb-height) + 1px);
  }
  .admin-sidebar a { border-bottom: none; border-left: 3px solid transparent; padding: 10px 20px; }
  .admin-sidebar a.active, .admin-sidebar a:hover { border-left-color: var(--color-primary); background: var(--color-primary-light); }
  .admin-main { padding: 24px 28px 60px; }
  .admin-stat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 글 분류 태그 — 커뮤니티 목록·메인 말풍선에서 작성자 이름 앞에 붙는다.
   메타 줄의 다른 정보(작성자/시간/조회수)보다 눈에 띄되, 제목을 이기지 않도록 작고 조용하게. */
.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-bg-soft);
  color: var(--color-text-sub);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
/* 첫 태그(=분류)는 국가보다 한 톤 진하게 해서 위계를 준다 */
.post-tag:first-child {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
}
.post-row .meta,
.rd-meta { flex-wrap: wrap; row-gap: 6px; }
.post-row .meta { align-items: center; gap: 8px; }
.post-row .meta .post-tag + .post-tag { margin-left: -4px; }
.rd-meta .post-tag + .post-tag { margin-left: -4px; }

/* 목록 페이지네이션 — '더보기'만으로는 검색엔진이 2페이지 이후를 발견하지 못하므로
   실제 링크를 함께 둔다. 사람에게도 특정 페이지로 바로 가는 수단이 된다. */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 18px 0 4px; }
.pager-link {
  min-width: 36px; height: 36px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border); border-radius: 999px;
  background: #fff; font-size: 14px; font-weight: 600; color: var(--color-text-sub);
}
.pager-link:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.pager-link.active {
  background: var(--color-accent); border-color: var(--color-accent);
  color: #fff; font-weight: 700;
}

/* ==========================================================================
   영어 쇼츠 (/shorts.php, /short/{slug})
   유튜브 쇼츠는 9:16 세로 영상이라 기존 .yt-embed(16:9)를 쓸 수 없다.
   썸네일·플레이어 모두 세로 비율을 기준으로 잡는다.
   ========================================================================== */
.sh-hero { padding: 26px 0 10px; }
.sh-hero h1 {
  font-family: var(--font-display);
  font-size: 26px; line-height: 1.3; margin: 0 0 8px;
}
.sh-hero p { margin: 0; color: var(--color-text-sub); font-size: 14px; line-height: 1.6; }

.sh-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 14px; scrollbar-width: none; }
.sh-tabs::-webkit-scrollbar { display: none; }
.sh-tabs a {
  flex: 0 0 auto;
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--color-border);
  font-size: 14px; font-weight: 700; color: var(--color-text-sub); white-space: nowrap;
}
.sh-tabs a em { font-style: normal; font-size: 14px; font-weight: 600; opacity: .7; }
.sh-tabs a.active {
  background: var(--color-primary); border-color: var(--color-primary); color: #fff;
}
/* 과목 탭 — 학년 탭 아래 한 단계 작은 줄 */
.sh-tabs--sub { padding: 0 0 14px; margin-top: -6px; }
.sh-tabs--sub a { padding: 6px 12px; font-size: 14px; }
.sh-tabs--sub a.active { background: var(--color-accent); border-color: var(--color-accent); }

.sh-section { margin: 8px 0 28px; }
.sh-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sh-head h2 { font-family: var(--font-display); font-size: 18px; margin: 0 0 4px; }
.sh-more { font-size: 14px; font-weight: 600; color: var(--color-primary); white-space: nowrap; }
.sh-lead { margin: 0 0 10px; font-size: 14px; color: var(--color-text-sub); }

/* 코스별 미리보기는 가로 스크롤, 코스 안으로 들어가면 격자 */
.sh-rail {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.sh-rail::-webkit-scrollbar { display: none; }
.sh-rail .sh-card { flex: 0 0 132px; scroll-snap-align: start; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px 10px; }

.sh-card { display: block; color: inherit; }
.sh-thumb {
  position: relative; display: block;
  aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--color-bg-soft);
}
.sh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .45); color: #fff;
  opacity: .9; transition: opacity .15s, transform .15s;
}
.sh-card:hover .sh-play { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
.sh-dur {
  position: absolute; right: 6px; bottom: 6px;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(0, 0, 0, .65); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
}
.sh-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 7px; font-size: 14px; font-weight: 600; line-height: 1.4;
}
.sh-sub { display: block; margin-top: 2px; font-size: 14px; color: var(--color-text-sub); }
.sh-card.current .sh-thumb { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.sh-empty { margin: 20px 0 40px; }
.sh-note { margin: 8px 0 32px; }
.sh-note p { margin: 0; font-size: 14px; color: var(--color-text-sub); }

/* ---------- 영상 한 편 보기 ---------- */
.sh-crumb { display: flex; gap: 6px; align-items: center; padding: 18px 0 10px; font-size: 14px; }
.sh-crumb a { color: var(--color-text-sub); font-weight: 600; }
.sh-crumb span { color: var(--color-border); }

.sh-player {
  position: relative; aspect-ratio: 9 / 16;
  width: 100%; max-width: 380px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden; background: #000;
}
.sh-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.sh-watch-body { max-width: 620px; margin: 18px auto 0; }
.sh-watch-body h1 { font-family: var(--font-display); font-size: 21px; line-height: 1.35; margin: 0 0 6px; }
.sh-watch-meta { margin: 0 0 12px; font-size: 14px; color: var(--color-text-sub); }
.sh-watch-desc { font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.sh-watch-actions { margin-top: 14px; }
/* .tag 는 .db-card 안에서만 스타일이 잡혀 있어 여기서 따로 준다 */
.sh-watch-body .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 0; }
.sh-watch-body .tag {
  font-size: 14px; background: var(--color-primary-light); color: var(--color-primary);
  padding: 3px 9px; border-radius: 999px;
}

.sh-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 620px; margin: 24px auto; }
.sh-nav-item {
  display: block; padding: 12px 14px; border: 1px solid var(--color-border);
  border-radius: var(--radius); background: #fff; color: inherit;
}
.sh-nav-item.next { text-align: right; }
.sh-nav-item .dir { display: block; font-size: 14px; font-weight: 700; color: var(--color-primary); margin-bottom: 3px; }
.sh-nav-item .t {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: 600; line-height: 1.4;
}

/* .sh-body: 제목·회차 묶음. 모바일에선 썸네일 아래, PC에선 썸네일 오른쪽. */
.sh-body { display: block; min-width: 0; }

/* PC: 세로 썸네일을 크게 늘어놓으면 화면을 너무 차지한다는 피드백(2026-09-22).
   학교 DB 목록(.db-grid 3열 흰 카드)과 같은 웹진형 목록으로 — 작은 세로 썸네일 + 오른쪽 글. */
@media (min-width: 1024px) {
  .sh-hero { padding: 34px 0 12px; }
  .sh-hero h1 { font-size: 32px; }
  .sh-head h2 { font-size: 20px; }

  .sh-rail, .sh-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    overflow: visible; padding-bottom: 0; scroll-snap-type: none;
  }
  .sh-rail .sh-card { flex: none; }
  /* 전체 보기의 코스 미리보기는 2줄(6편)까지만. 나머지는 '전체 N편' 으로 */
  .sh-rail--preview .sh-card:nth-child(n+7) { display: none; }

  .sh-card {
    display: grid; grid-template-columns: 78px 1fr; column-gap: 14px; align-items: center;
    padding: 12px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
    transition: border-color .15s, box-shadow .15s;
  }
  .sh-card:hover { border-color: var(--color-primary); box-shadow: 0 4px 14px rgba(42, 37, 33, .07); }
  .sh-thumb { width: 78px; border-radius: 8px; }
  .sh-play { width: 30px; height: 30px; }
  .sh-play svg { width: 16px; height: 16px; }
  .sh-dur { right: 4px; bottom: 4px; padding: 1px 5px; font-size: 10px; }
  .sh-name { margin-top: 0; font-size: 14px; -webkit-line-clamp: 3; }
  .sh-sub { margin-top: 5px; font-size: 12px; }
  .sh-card.current { border-color: var(--color-accent); background: var(--color-accent-light); }
  .sh-card.current .sh-thumb { outline: none; }

  /* 영상 보기: 플레이어 왼쪽, 제목·설명·이전/다음 오른쪽 */
  .sh-watch {
    display: grid; grid-template-columns: 360px minmax(0, 1fr); column-gap: 36px; align-items: start;
    max-width: 960px; margin: 0 auto;
  }
  .sh-player { max-width: 360px; margin: 0; }
  .sh-watch-body { margin: 6px 0 0; max-width: none; }
  .sh-watch-body h1 { font-size: 24px; }
  .sh-nav { max-width: none; margin: 22px 0 0; }
}

/* ==========================================================================
   모바일 교재 (/textbooks.php, /textbook/{slug})
   세로 이미지 한 장이 한 페이지. 뷰어는 화면을 통째로 덮는다.
   ========================================================================== */
/* 영상 · 교재 전환 탭 — 학년 탭보다 위, 더 또렷하게 */
.sh-tabs--mode { padding: 4px 0 10px; }
.sh-tabs--mode a { font-size: 14px; padding: 8px 18px; }

/* ---------- 서가 ---------- */
.tb-shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; margin-bottom: 32px; }
.tb-book { display: block; color: inherit; }
.tb-book-cover {
  display: block; aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--color-bg-soft); box-shadow: 0 2px 10px rgba(42, 37, 33, .12);
}
.tb-book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-book-body { display: block; margin-top: 9px; }
.tb-book-title { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; }
.tb-book-sub { display: block; margin-top: 2px; font-size: 14px; color: var(--color-primary); font-weight: 600; }
.tb-book-meta { display: block; margin-top: 3px; font-size: 14px; color: var(--color-text-sub); }

/* ---------- 표지 · 목차 ---------- */
.tb-intro { display: block; margin: 8px 0 24px; }
.tb-cover { max-width: 260px; margin: 0 auto 18px; }
.tb-cover img {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block;
  border-radius: var(--radius-lg); background: var(--color-bg-soft); box-shadow: 0 4px 18px rgba(42, 37, 33, .16);
}
.tb-intro-body h1 { font-family: var(--font-display); font-size: 23px; line-height: 1.3; margin: 0 0 4px; }
.tb-subtitle { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--color-primary); }
.tb-meta { margin: 0 0 12px; font-size: 14px; color: var(--color-text-sub); }
.tb-desc { font-size: 14px; line-height: 1.7; margin: 0 0 14px; }

.tb-progress { margin: 0 0 14px; }
.tb-bar { height: 6px; border-radius: 999px; background: var(--color-bg-soft); overflow: hidden; }
.tb-bar span { display: block; height: 100%; background: var(--color-primary); border-radius: 999px; }
.tb-progress p { margin: 6px 0 0; font-size: 14px; color: var(--color-text-sub); }

.tb-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

.tb-toc { list-style: none; margin: 0; padding: 0; }
.tb-toc li { border-bottom: 1px solid var(--color-border); }
.tb-toc-item {
  display: flex; align-items: baseline; gap: 10px; width: 100%;
  padding: 13px 4px; background: none; border: 0; text-align: left; color: inherit; cursor: pointer;
}
.tb-toc-item .no { flex: 0 0 auto; font-size: 14px; font-weight: 800; color: var(--color-primary); min-width: 20px; }
.tb-toc-item .t { flex: 1 1 auto; font-size: 14px; font-weight: 600; }
.tb-toc-item .pg { flex: 0 0 auto; font-size: 14px; color: var(--color-text-sub); }
.tb-toc-item:hover { background: var(--color-bg-soft); }

/* ---------- 전체화면 뷰어 ---------- */
body.tb-open { overflow: hidden; }
.tb-reader { position: fixed; inset: 0; z-index: 300; background: #111; }
.tb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tb-page { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* 좌우 40%가 이전/다음, 가운데 20%는 막대 켜고 끄기 */
.tb-tap { position: absolute; top: 0; bottom: 0; width: 40%; cursor: pointer; }
.tb-tap-prev { left: 0; }
.tb-tap-next { right: 0; }

.tb-topbar, .tb-bottombar {
  position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; color: #fff; background: rgba(0, 0, 0, .55);
  transition: opacity .18s, transform .18s;
}
.tb-topbar { top: 0; padding-top: max(10px, env(safe-area-inset-top)); }
.tb-bottombar { bottom: 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.tb-topbar.hide { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.tb-bottombar.hide { opacity: 0; transform: translateY(100%); pointer-events: none; }
.tb-close { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; padding: 0 4px; cursor: pointer; }
.tb-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-chapter { margin-left: auto; font-size: 14px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.tb-bottombar input[type="range"] { flex: 1 1 auto; accent-color: var(--color-primary); }
.tb-count { flex: 0 0 auto; font-size: 14px; font-variant-numeric: tabular-nums; }

.tb-spinner {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff;
  animation: tb-spin .8s linear infinite;
}
@keyframes tb-spin { to { transform: rotate(360deg); } }

.tb-lock {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 24px;
  background: rgba(17, 17, 17, .96); color: #fff; text-align: center; z-index: 2;
}
.tb-lock p { margin: 0; font-size: 15px; }
.tb-lock .sub { font-size: 14px; opacity: .75; margin-bottom: 8px; }

.tb-hint {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: space-between; padding: 0 22px;
  color: #fff; font-size: 14px; pointer-events: none;
}
.tb-hint span { background: rgba(0, 0, 0, .55); padding: 7px 12px; border-radius: 999px; }

@media (min-width: 1024px) {
  .tb-shelf { grid-template-columns: repeat(5, 1fr); gap: 20px 16px; }
  /* 표지 왼쪽, 소개·목차 오른쪽 */
  .tb-intro { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 32px; align-items: start; max-width: 860px; }
  .tb-cover { max-width: 240px; margin: 0; }
  .tb-intro-body h1 { font-size: 27px; }
  .tb-toc { max-width: 860px; }
  /* 세로 이미지라 PC에선 가운데 한 장만 크게 */
  .tb-page { max-width: min(48vh, 520px); }
  .tb-tap { width: 34%; }
}
/* 아직 이미지를 안 올린 교재 — 깨진 그림 대신 빈 표지 */
.tb-cover.is-empty, .tb-book-cover.is-empty {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 9 / 16; border: 1px dashed var(--color-border);
  background: var(--color-bg-soft); color: var(--color-text-sub); font-size: 14px;
}
.tb-cover.is-empty::after, .tb-book-cover.is-empty::after { content: '표지 준비 중'; }

/* 비공개 교재를 관리자가 열었을 때 */
.tb-draft {
  margin: 4px 0 14px; padding: 9px 13px; border-radius: 8px;
  background: var(--color-accent-light); color: var(--color-accent-dark);
  font-size: 14px; font-weight: 600;
}
/* 목록에서 바로 누르는 공개/비공개 토글 */
.tb-pub-btn { background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- 화상영어 안내 페이지 (video-english.php) ---------- */
/* 그룹(무료) vs 1:1(유료) 비교 카드 */
.vc-compare { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 10px; }
.vc-compare-card {
  background: #fff; border-radius: var(--radius-lg); padding: 20px;
  box-shadow: inset 0 0 0 1px var(--color-border);
}
.vc-compare-card .vc-badge {
  display: inline-block; font-size: 14px; font-weight: 800; padding: 4px 12px;
  border-radius: 999px; margin-bottom: 10px;
}
.vc-compare-card .vc-badge.is-free { color: #00703a; background: #d9f5e6; }
.vc-compare-card .vc-badge.is-paid { color: var(--color-accent-dark); background: var(--color-accent-light); }
.vc-compare-card h3 { font-size: 17px; font-weight: 800; color: var(--color-navy); margin: 0 0 10px; }
.vc-check-list { margin: 0; padding: 0; }
.vc-check-list li {
  position: relative; padding: 4px 0 4px 22px; font-size: 14px; color: var(--color-text-sub); line-height: 1.6;
}
.vc-check-list li::before { content: '✓'; position: absolute; left: 0; font-weight: 800; }
.vc-compare-card.is-free .vc-check-list li::before { color: #00703a; }
.vc-compare-card.is-paid .vc-check-list li::before { color: var(--color-accent); }
@media (min-width: 1024px) {
  .vc-compare { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .vc-compare-card { padding: 28px; }
}

/* 1:1 수업료 안내 표 */
.price-table-wrap { overflow-x: auto; margin-top: 10px; border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--color-border); }
.price-table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 14px; }
.price-table th, .price-table td { padding: 12px 14px; text-align: center; white-space: nowrap; }
.price-table thead th { background: var(--color-primary); color: #fff; font-weight: 700; }
.price-table thead th:first-child { text-align: left; }
.price-table tbody th { text-align: left; font-weight: 700; color: var(--color-navy); background: var(--color-bg-soft); }
.price-table tbody tr:nth-child(even) td { background: #faf8fc; }
.price-table tbody td { color: var(--color-text-sub); font-weight: 600; }
.price-note { font-size: 14px; color: var(--color-text-sub); margin: 10px 0 0; }

/* 화면에는 안 보이지만 스크린리더·검색엔진에는 읽히는 제목용 (디자인된 타이틀 이미지를 쓸 때 h1 대체) */
.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;
}

/* 타이틀 이미지(디자인된 그래픽)를 히어로 대신 그대로 보여주는 섹션 */
.veng-title { background: #faf9f7; padding: 0 0 20px; text-align: center; }
.veng-title-img { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto; }
.veng-title-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* "왜 화상영어인가요" 섹션에 넣는 설명 그래픽 */
.veng-why-img {
  display: block; width: 100%; max-width: 640px; margin: 18px auto 0;
  border-radius: var(--radius-lg); box-shadow: 0 4px 16px rgba(11,42,79,.08);
}

/* 수강문의 배너(전화 연결) */
.veng-banner-img {
  display: block; width: 100%; max-width: 760px; margin: 0 auto;
  border-radius: var(--radius-lg); box-shadow: 0 4px 16px rgba(11,42,79,.1);
}

/* ---------- 회사소개(about.php) 사진 ---------- */
/* 박람회 부스 배너 - "이런 회사입니다" 바로 위 */
.about-banner-img {
  display: block; width: 100%; border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(11,42,79,.1);
}

/* 해외 설명회 사진 - 모바일은 가로로 스와이프하며 여러 장이 한번에 보이고, PC는 4장을 한 줄에 */
.seminar-gallery {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.seminar-gallery .st-tile {
  flex: 0 0 68%; scroll-snap-align: start; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--color-bg-soft);
}
.seminar-gallery .st-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seminar-caption { margin: 10px 0 0; font-size: 14px; color: var(--color-text-sub); text-align: center; }
@media (min-width: 1024px) {
  .seminar-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; overflow: visible; }
  .seminar-gallery .st-tile { flex: unset; }
}
.tb-pub-btn:disabled { opacity: .5; cursor: default; }

/* ---------- 자주 묻는 질문(FAQ) - 홈페이지 ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff; border-radius: var(--radius-lg); padding: 4px 16px;
  box-shadow: inset 0 0 0 1px var(--color-border);
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; font-size: 14px; font-weight: 700; color: var(--color-navy);
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex: 0 0 auto; font-size: 20px; font-weight: 400; color: var(--color-primary);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 16px; font-size: 14px; color: var(--color-text-sub); line-height: 1.7; }

/* ==========================================================================
   단어학습 (/vocab.php) — 5단어 카드 5장 + 5문항 퀴즈. 모바일에서 읽기 쉽도록 글자를 크게 쓴다.
   ========================================================================== */
.vl-page [hidden], .vl-player[hidden] { display: none !important; }
.vl-page { max-width: 760px; overflow-anchor: none; }

/* Unit 목록 */
.vl-level { background: #fff; border-radius: var(--radius-lg); padding: 18px; margin: 4px 0 18px;
  box-shadow: inset 0 0 0 1px var(--color-border); }
.vl-level-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.vl-level-head h2 { font-size: 22px; margin: 0 8px 0 0; color: var(--color-navy); }
.vl-chip { font-size: 14px; font-weight: 700; color: var(--color-primary); background: var(--color-primary-light); padding: 4px 12px; border-radius: 999px; }
.vl-how { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: vl; }
.vl-how li { counter-increment: vl; position: relative; padding-left: 34px; font-size: 16px; line-height: 1.5; color: var(--color-text); }
.vl-how li::before { content: counter(vl); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.vl-units { display: grid; gap: 14px; margin-bottom: 24px; }
.vl-unit { background: #fff; border-radius: var(--radius-lg); padding: 16px 18px;
  box-shadow: inset 0 0 0 1px var(--color-border); }
.vl-unit-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.vl-unit-no { font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--color-accent-dark); }
.vl-unit-state { font-size: 14px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.vl-unit-state.is-done { color: #0a6b3b; background: #dff5e8; }
.vl-unit-state.is-try { color: var(--color-accent-dark); background: var(--color-accent-light); }
.vl-unit h3 { font-size: 22px; margin: 0 0 4px; color: var(--color-navy); }
.vl-unit-meta { margin: 0 0 8px; font-size: 16px; color: var(--color-text-sub); }
.vl-unit-words { margin: 0 0 14px; font-size: 16px; line-height: 1.55; color: var(--color-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vl-unit { display: flex; flex-direction: column; }
.vl-start { height: 48px; font-size: 17px; width: 100%; margin-top: auto; }
.vl-chip.is-count { color: #fff; background: var(--color-primary); }
/* 회원 전용 Unit 표시 / 로그인 안내 */
.vl-lock, .vl-free { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 14px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.vl-lock { color: var(--color-wine); background: var(--color-wine-light); }
.vl-free { color: #0a6b3b; background: #dff5e8; }
.vl-unit-top .vl-unit-state { margin-left: 8px; }
.vl-unit.is-locked .vl-unit-words { color: var(--color-text-sub); }
.vl-gate { text-align: center; background: #fff; border-radius: var(--radius-lg); padding: 28px 20px;
  box-shadow: inset 0 0 0 1px var(--color-border); }
.vl-gate-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; }
.vl-gate h2 { margin: 0 0 8px; font-size: 24px; color: var(--color-navy); }
.vl-gate p { margin: 0 0 18px; font-size: 17px; line-height: 1.6; color: var(--color-text-sub); }
.vl-loading { padding: 60px 0; text-align: center; font-size: 18px; color: var(--color-text-sub); }
.vl-levels { margin-top: 0; padding-bottom: 6px; }
.vl-levels a { font-size: 16px; padding: 8px 16px; }
.vl-levelhint { margin: 0 0 14px; font-size: 15px; color: var(--color-text-sub); }
.vl-levelhint a { color: var(--color-primary); font-weight: 700; text-decoration: underline; }

/* 학습 화면 공통 */
.vl-player { padding-bottom: 28px; }
.vl-bar { display: flex; align-items: center; gap: 12px; padding: 4px 0 10px; }
.vl-back { background: none; border: 0; padding: 8px 4px; font-size: 16px; font-weight: 700; color: var(--color-primary); cursor: pointer; flex: 0 0 auto; }
.vl-bar-title { font-size: 17px; font-weight: 800; color: var(--color-navy); min-width: 0; }
.vl-bar-title span { color: var(--color-accent-dark); margin-right: 4px; }
.vl-step { font-size: 20px; font-weight: 800; color: var(--color-navy); margin: 4px 0 10px; }
.vl-step em { font-style: normal; font-size: 16px; font-weight: 700; color: var(--color-accent-dark); }
.vl-progress { height: 8px; border-radius: 999px; background: var(--color-bg-soft); overflow: hidden; margin-bottom: 18px; }
.vl-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); transition: width .25s ease; }

/* 단어카드 */
.vl-card { background: #fff; border-radius: var(--radius-lg); padding: 6px 20px;
  box-shadow: inset 0 0 0 1px var(--color-border); }
.vl-word { padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.vl-word:last-child { border-bottom: 0; }
.vl-w-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vl-w-en { font-size: 32px; font-weight: 800; line-height: 1.2; color: var(--color-navy); letter-spacing: -.01em; }
.vl-w-pos { font-size: 16px; font-weight: 700; color: var(--color-accent-dark); background: var(--color-accent-light); padding: 2px 10px; border-radius: 999px; }
.vl-w-ko { margin-top: 6px; font-size: 24px; font-weight: 700; color: var(--color-primary); }
.vl-w-ex { margin: 8px 0 0; font-size: 19px; line-height: 1.6; color: var(--color-text-sub); }
.vl-w-ex mark, .vl-fb-ex mark, .vl-wrong-item mark { background: #e3edfb; color: var(--color-navy); font-weight: 800; padding: 0 3px; border-radius: 4px; }

.vl-nav { display: flex; gap: 10px; margin-top: 18px; }
.vl-nav-col { flex-direction: column; }
.vl-btn { height: 56px; font-size: 18px; flex: 1; }
.vl-nav:not(.vl-nav-col) .vl-btn:first-child:not(:only-child) { flex: 0 0 34%; }
.vl-btn-wide { flex: none; width: 100%; }
.vl-btn:disabled { opacity: .4; cursor: not-allowed; }

/* 퀴즈 */
.vl-quiz { background: #fff; border-radius: var(--radius-lg); padding: 20px;
  box-shadow: inset 0 0 0 1px var(--color-border); }
.vl-qtype { display: inline-block; font-size: 15px; font-weight: 800; color: var(--color-accent-dark); background: var(--color-accent-light); padding: 4px 12px; border-radius: 999px; }
.vl-q { margin: 14px 0 18px; font-size: 24px; font-weight: 700; line-height: 1.5; color: var(--color-navy); word-break: keep-all; }
.vl-blank { display: inline-block; min-width: 90px; border-bottom: 3px solid var(--color-primary); margin: 0 4px; }
.vl-opts { display: grid; gap: 10px; }
.vl-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 12px 16px; text-align: left;
  font-size: 21px; font-weight: 700; color: var(--color-text); background: #fff; cursor: pointer;
  border: 2px solid var(--color-border); border-radius: var(--radius-lg); transition: border-color .15s ease, background .15s ease; }
.vl-opt:hover:not(:disabled) { border-color: var(--color-accent); background: var(--color-primary-light); }
.vl-opt-no { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--color-bg-soft); color: var(--color-primary);
  font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.vl-opt-text { min-width: 0; line-height: 1.35; }
.vl-opt:disabled { cursor: default; }
.vl-opt.is-correct { border-color: #1a9d5c; background: #e4f7ec; }
.vl-opt.is-correct .vl-opt-no { background: #1a9d5c; color: #fff; }
.vl-opt.is-wrong { border-color: var(--color-wine); background: var(--color-wine-light); }
.vl-opt.is-wrong .vl-opt-no { background: var(--color-wine); color: #fff; }
.vl-opt.is-dim { opacity: .55; }

.vl-feedback { margin-top: 16px; padding: 16px; border-radius: var(--radius-lg); }
.vl-feedback.is-ok { background: #e4f7ec; }
.vl-feedback.is-no { background: var(--color-wine-light); }
.vl-fb-title { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--color-navy); }
.vl-fb-word { margin: 0; font-size: 20px; color: var(--color-text); }
.vl-fb-ex { margin: 4px 0 14px; font-size: 18px; line-height: 1.6; color: var(--color-text-sub); }

/* 결과 */
.vl-result { text-align: center; background: #fff; border-radius: var(--radius-lg); padding: 26px 20px;
  box-shadow: inset 0 0 0 1px var(--color-border); }
.vl-score { font-size: 24px; color: var(--color-text-sub); font-weight: 700; }
.vl-score span { font-size: 64px; font-weight: 800; line-height: 1; }
.vl-result.is-pass .vl-score span { color: #1a9d5c; }
.vl-result.is-fail .vl-score span { color: var(--color-wine); }
.vl-result h2 { margin: 10px 0 6px; font-size: 26px; color: var(--color-navy); }
.vl-result p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--color-text-sub); }
.vl-wrong { margin-top: 18px; background: #fff; border-radius: var(--radius-lg); padding: 16px 20px;
  box-shadow: inset 0 0 0 1px var(--color-border); }
.vl-wrong h3 { margin: 0 0 8px; font-size: 18px; color: var(--color-navy); }
.vl-wrong-item { padding: 12px 0; border-top: 1px solid var(--color-border); }
.vl-wrong-item:first-of-type { border-top: 0; }
.vl-wrong-item b { font-size: 24px; color: var(--color-navy); margin-right: 10px; }
.vl-wrong-item span { font-size: 20px; font-weight: 700; color: var(--color-primary); }
.vl-wrong-item p { margin: 4px 0 0; font-size: 17px; line-height: 1.55; color: var(--color-text-sub); }
.vl-noscript, .vl-error { padding: 18px; text-align: center; color: var(--color-text-sub); font-size: 16px; }

@media (min-width: 1024px) {
  .vl-units { grid-template-columns: repeat(2, 1fr); }
  .vl-w-en { font-size: 36px; }
  .vl-q { font-size: 28px; }
  .vl-opt { font-size: 22px; }
}
