/* =========================================================================
   Andrew Kim Korean School — styles (EDUTECH-inspired education theme)
   ========================================================================= */
:root {
  --blue: #1857b8;
  --blue-dark: #103f87;
  --blue-700: #1e64d0;
  --accent: #ff7a45;          /* warm coral accent */
  --accent-dark: #ef5f27;
  --teal: #18b8a6;
  --ink: #1b2430;
  --body: #4a5568;
  --muted: #7b8794;
  --line: #e6eaf0;
  --bg-soft: #f5f8fc;
  --bg-soft2: #eef3fb;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(20, 40, 80, .08);
  --shadow-lg: 0 18px 50px rgba(20, 40, 80, .14);
  --maxw: 1180px;
  --head-font: 'Poppins', 'Noto Sans KR', sans-serif;
  --body-font: 'Noto Sans KR', 'Poppins', sans-serif;
}
:lang(ko) { --head-font: 'Noto Sans KR', 'Poppins', sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--body);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--head-font); color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; transition: .2s; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 880px; }
.center { text-align: center; }
.note { color: var(--muted); font-size: .9rem; margin-top: 1.2rem; }
code { background: var(--bg-soft2); padding: 1px 6px; border-radius: 5px; font-size: .85em; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font-family: var(--head-font); font-weight: 600; font-size: .95rem;
  padding: .8em 1.6em; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: .22s; line-height: 1; text-align: center;
}
.btn-sm { padding: .55em 1.15em; font-size: .85rem; }
.btn-lg { padding: 1em 2em; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(239,95,39,.3); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-outline-light:hover { background: #fff; color: var(--blue); }
.btn-light { background: #fff; color: var(--blue); border-color: #fff; }
.btn-light:hover { background: var(--bg-soft); transform: translateY(-2px); }

/* ---- sections ---- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head.left { text-align: left; margin: 0 0 28px; }
.kicker { display: inline-block; color: var(--accent); font-family: var(--head-font); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: .6rem; }
.kicker.light { color: #ffd9c7; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.class-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 40px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.class-group-head:first-of-type { margin-top: 0; }
.class-group-head h3 { font-size: 1.35rem; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 14px rgba(20,40,80,.06); }
.topbar { background: var(--blue-dark); color: #dce6f7; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: flex-end; align-items: center; min-height: 40px; gap: 12px; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info a { color: #dce6f7; }
.topbar-info a:hover { color: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-actions .tb-link { color: #dce6f7; font-weight: 500; }
.topbar-actions .tb-link:hover { color: #fff; }
.topbar-actions .tb-sep { color: rgba(255,255,255,.3); }
.tb-logout { margin: 0; }
.tb-logout button { background: none; border: 0; color: #dce6f7; font: inherit; font-weight: 500; cursor: pointer; padding: 0; }
.tb-logout button:hover { color: #fff; }
.topbar-actions .lang-toggle { color: #fff; font-weight: 600; border: 1px solid rgba(255,255,255,.35); padding: 3px 12px; border-radius: 30px; }
.topbar-actions .lang-toggle:hover { background: rgba(255,255,255,.15); }

.navbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--head-font); font-size: 1.05rem; color: var(--ink); font-weight: 700; white-space: nowrap; }
.brand-text small { color: var(--muted); font-size: .7rem; max-width: 240px; }

.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.main-nav > ul > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 9px 9px; font-family: var(--head-font); font-weight: 600; font-size: .875rem; color: var(--ink); border-radius: 8px; white-space: nowrap; }
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: var(--blue); }
.main-nav > ul > li.active > a { background: var(--bg-soft2); }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .6; }

.has-sub { position: relative; }
.submenu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 230px; border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; border: 1px solid var(--line);
}
.has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a { display: block; padding: 10px 14px; border-radius: 8px; font-size: .9rem; color: var(--body); }
.submenu li a:hover { background: var(--bg-soft); color: var(--blue); }
.nav-cta { margin-left: 8px; }
.nav-lang { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }

/* =========================================================================
   Hero slider
   ========================================================================= */
.hero { position: relative; height: clamp(460px, 72vh, 660px); overflow: hidden; background: var(--blue-dark); }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .8s ease; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); transition: transform 6s ease; }
.hero-slide.active .hero-bg { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(16,33,67,.82), rgba(16,33,67,.45) 60%, rgba(16,33,67,.25)); }
.hero-content { position: relative; color: #fff; max-width: 860px; margin: 0 auto; text-align: center; }
.hero-content h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.3rem); margin-bottom: .4em; white-space: nowrap; }
.hero-content p { font-size: clamp(1rem, 1.6vw, 1.25rem); color: #e7eefc; margin-bottom: 1.8rem; }
@media (max-width: 640px) { .hero-content h2 { white-space: normal; } }
.hero-title-link { display: block; text-decoration: none; color: inherit; }
.hero-title-link:hover { opacity: .92; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; transition: .2s; }
.hero-dots button.active { background: var(--accent); border-color: var(--accent); width: 30px; border-radius: 8px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.8rem; cursor: pointer; transition: .2s; backdrop-filter: blur(3px); }
.hero-arrow:hover { background: var(--accent); }
.hero-arrow.prev { left: 22px; } .hero-arrow.next { right: 22px; }

/* =========================================================================
   Feature cards
   ========================================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 30px; box-shadow: var(--shadow); transition: .25s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-icon { font-size: 2.6rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.25rem; }
.features.section { margin-top: -70px; position: relative; z-index: 5; padding-bottom: 0; }
.features .feature-card { background: #fff; }

/* ---- welcome ---- */
.welcome-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 48px; align-items: center; }
.welcome-media { position: relative; }
.welcome-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.welcome-badge { position: absolute; right: -14px; bottom: -22px; background: var(--accent); color: #fff; border-radius: var(--radius); padding: 18px 26px; text-align: center; box-shadow: var(--shadow-lg); }
.welcome-badge strong { display: block; font-family: var(--head-font); font-size: 2rem; }
.welcome-badge span { font-size: .82rem; }
.welcome-text h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); white-space: nowrap; }

/* ---- stats ---- */
.stats { background: linear-gradient(120deg, var(--blue), var(--blue-700)); color: #fff; padding: 64px 0; text-align: center; }
.stats .kicker.light { display: block; margin-bottom: 26px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat strong { display: block; font-family: var(--head-font); font-size: clamp(2rem, 4vw, 3rem); color: #fff; line-height: 1; }
.stat span { color: #d6e2f8; font-size: .95rem; }

/* ---- course / class cards ---- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s; display: block; color: inherit; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-thumb { height: 150px; background-size: cover; background-position: center; position: relative; }
.course-age { position: absolute; left: 12px; bottom: 12px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 600; padding: 4px 11px; border-radius: 30px; }
.course-thumb.emoji-thumb { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eaf1fb, #d7e6f8); }
.course-thumb.emoji-thumb .ico { font-size: 4.2rem; line-height: 1; }
.course-card-btn { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 0; }
.tmodal-photo.emoji-thumb { background: linear-gradient(135deg, #eaf1fb, #d7e6f8); }
.course-body { padding: 20px 22px; }
.course-body h3 { font-size: 1.02rem; line-height: 1.35; margin-bottom: .4em; color: var(--ink); overflow-wrap: break-word; word-break: keep-all; }
.course-body p { font-size: .9rem; color: var(--body); margin-bottom: .8rem; }
.course-link { color: var(--accent); font-weight: 600; font-size: .85rem; }
.course-card.static { cursor: default; }
.class-meta { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 5px; }
.class-meta li { font-size: .85rem; color: var(--body); }

/* ---- two-col (notices + gallery) ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.notice-list { list-style: none; margin: 0 0 20px; padding: 0; }
.notice-list li { border-bottom: 1px solid var(--line); }
.notice-list a { display: flex; gap: 16px; padding: 14px 0; color: var(--ink); align-items: baseline; }
.notice-list a:hover .notice-title { color: var(--blue); }
.notice-date { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.notice-title { font-weight: 500; }
.pin { font-style: normal; margin-right: 5px; }
.gallery-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-mini-item { display: block; aspect-ratio: 1/1; border-radius: 10px; background-size: cover; background-position: center; transition: .25s; }
.gallery-mini-item:hover { transform: scale(1.04); filter: brightness(1.05); }

/* ---- CTA banner ---- */
.cta-banner { background: linear-gradient(120deg, var(--accent), #ff9d6e); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: .2em; }
.cta-inner p { color: #fff; opacity: .95; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* =========================================================================
   Page hero (inner pages)
   ========================================================================= */
.page-hero { position: relative; background: var(--blue-dark) url('/img/hero/hero-2.svg') center/cover; color: #fff; padding: 70px 0; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(16,33,67,.85), rgba(16,33,67,.55)); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.7rem); margin-bottom: .3em; }
.page-hero p { color: #dce6f7; max-width: 720px; margin: 0; }
.breadcrumb { margin-top: 14px; font-size: .85rem; color: #cdd9ef; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: #fff; }
.breadcrumb .sep { opacity: .5; }

/* ---- prose / greeting / mission ---- */
.prose-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.prose-grid.intro-grid { grid-template-columns: 1.1fr 1fr; }
.prose-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.prose h2 { font-size: 1.9rem; }
.greeting-card { position: relative; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 44px 46px; box-shadow: var(--shadow); max-width: 900px; margin: 0 auto; }
.greeting-mark { position: absolute; top: 10px; right: 30px; font-size: 6rem; color: var(--bg-soft2); font-family: Georgia, serif; line-height: 1; }
.greeting-sign { margin-top: 18px; font-weight: 700; color: var(--ink); font-family: var(--head-font); }
.mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; }
.mission-item { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 22px 24px; }
.mission-num { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--head-font); font-weight: 700; }
.mission-item p { margin: 0; }

/* ---- timeline ---- */
.timeline { position: relative; margin: 0; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 30px 26px; }
.timeline-item::before { content: ''; position: absolute; left: -8px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.timeline-year { font-family: var(--head-font); font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.timeline-body p { margin: 0; }

/* ---- team ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-grid.team-grid-4 { grid-template-columns: repeat(4, 1fr); }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-photo { height: 230px; background-size: cover; background-position: center; background-color: #eef2f7; }
.team-photo-empty { display: flex; align-items: center; justify-content: center; font-size: 3.4rem; color: #b9c6db; }
.team-body h3 { font-size: 1.15rem; }
.team-body { padding: 22px; text-align: center; }
.team-role { color: var(--accent); font-weight: 600; font-size: .85rem; }
.team-body p { font-size: .9rem; margin-top: .6rem; }

/* ----- teacher cards (about/teachers) ----- */
.tcard-grid { display: grid; gap: 24px; }
.tcard-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 880px; margin: 0 auto 28px; }
.tcard-grid-4 { grid-template-columns: repeat(4, 1fr); }
.tcard { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; cursor: pointer; transition: .25s; font: inherit; color: inherit; text-align: center; }
.tcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tcard-photo { position: relative; height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.tcard-emoji { position: relative; z-index: 1; font-size: 3.2rem; }
.tcard--lead .tcard-photo, .tmodal-photo.tcard--lead { background: linear-gradient(135deg, var(--blue-700), var(--blue-dark)); }
.tcard--teacher .tcard-photo, .tmodal-photo.tcard--teacher { background: linear-gradient(135deg, #ff9a52, var(--accent-dark)); }
.tcard-photo::before, .tcard-photo::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .10); }
.tcard-photo::before { width: 150px; height: 150px; right: -38px; top: -42px; }
.tcard-photo::after { width: 110px; height: 110px; left: -34px; bottom: -46px; }
.tcard-photo img ~ ::before { display: none; }
.tcard-body { padding: 18px 16px 20px; }
.tcard-body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.tcard-role { color: var(--accent); font-weight: 600; font-size: .85rem; }
.tcard-desc { font-size: .85rem; color: var(--muted); margin-top: 8px; line-height: 1.6; }

/* teacher detail modal */
.tmodal { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(16, 26, 44, .68); }
.tmodal.open { display: flex; }
.tmodal-box { position: relative; width: 100%; max-width: 720px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.tmodal-close { position: absolute; top: 10px; right: 14px; z-index: 2; background: rgba(255, 255, 255, .85); border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.tmodal-grid { display: grid; grid-template-columns: 42% 1fr; }
.tmodal-photo { position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tmodal-photo img { width: 100%; height: 100%; object-fit: cover; }
.tmodal-photo .tcard-emoji { font-size: 4.6rem; }
.tmodal-info { padding: 34px 30px; }
.tmodal-info h3 { font-size: 1.6rem; margin-bottom: 6px; }
.tmodal-role { color: var(--accent); font-weight: 600; font-size: 1rem; margin-bottom: 16px; }
.tmodal-bio { font-size: .95rem; line-height: 1.85; color: var(--ink); white-space: pre-line; }

/* ---- check list ---- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--teal); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }

/* ---- forms ---- */
.form { margin-top: 18px; }
.card-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-section { font-size: 1.1rem; color: var(--blue); border-bottom: 2px solid var(--bg-soft2); padding-bottom: 8px; margin: 26px 0 18px; }
.form-section:first-of-type { margin-top: 0; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .9rem; margin-bottom: 7px; }
.field label em, .checkbox em { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff; transition: .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,87,184,.12); }
.field .pw-wrap { position: relative; }
.field .pw-wrap input { padding-right: 46px; }
.field .pw-toggle { position: absolute; right: 0; top: 0; height: 100%; width: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; margin: 8px 0 22px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }

/* ---- volunteer form ---- */
.vform-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 32px; margin-top: 22px; }
.vform-card h2 { font-size: 1.5rem; margin-bottom: .5rem; color: var(--accent); }
.vform-actions { margin-top: 18px; display: flex; gap: 22px; flex-wrap: wrap; }
.linklike { background: none; border: 0; color: var(--blue); font: inherit; font-size: .9rem; cursor: pointer; padding: 0; }
.linklike:hover { text-decoration: underline; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.check-grid .checkbox { margin: 6px 0; }
@media (max-width: 640px) { .check-grid { grid-template-columns: repeat(2, 1fr); } .vform-card { padding: 24px 20px; } }

/* ---- registration siblings ---- */
.sibling-item { position: relative; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 18px 18px 2px; margin-bottom: 14px; background: var(--bg-soft); }
.sibling-remove { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0; }
.sibling-remove:hover { color: var(--accent); }
#addSibling { margin-bottom: 6px; }

/* ---- alerts ---- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .92rem; }
.alert-info { background: var(--bg-soft2); color: var(--blue-dark); border: 1px solid #d4e1f5; }
.alert-success { background: #e8f8f0; color: #1f7a4d; border: 1px solid #bcecd2; }
.alert-error { background: #fdecec; color: #c0392b; border: 1px solid #f6c7c2; }
.alert.big { font-size: 1.05rem; padding: 22px; text-align: center; }
.alert-info .btn { margin-left: 8px; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.info-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-ic { font-size: 1.3rem; }
.contact-map, .footer-map { width: 100%; border: 0; border-radius: var(--radius-sm); min-height: 220px; }
.contact-map { min-height: 260px; }

/* ---- notices board ---- */
.notice-board { list-style: none; padding: 0; margin: 0; }
.notice-row { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 24px; margin-bottom: 16px; background: #fff; transition: .2s; }
.notice-row:hover { box-shadow: var(--shadow); }
.notice-row.pinned { border-color: #ffd6c4; background: #fff8f4; }
.notice-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.notice-row-head h3 { font-size: 1.15rem; margin: 0; }
.notice-row p { margin: 10px 0 0; color: var(--body); }

/* ---- gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; transition: .25s; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.gallery-img { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.gallery-item figcaption { padding: 14px 16px; font-size: .9rem; color: var(--ink); font-weight: 500; }
.gallery-item { cursor: pointer; }
.gallery-item .gallery-img { position: relative; }
.play-btn { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; display: grid; place-items: center; background: rgba(255,0,0,.85); color: #fff; border-radius: 50%; font-size: 1.4rem; transition: .2s; }
.gallery-item.video:hover .play-btn { transform: scale(1.1); background: #ff0000; }
.gallery-mini-item { position: relative; }
.mini-play { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; display: grid; place-items: center; background: rgba(255,0,0,.85); color: #fff; border-radius: 50%; font-size: .7rem; }

/* photo albums (gallery folders) */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.album-card { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: .25s; text-decoration: none; color: inherit; }
.album-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.album-cover { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: #dfe7f2; position: relative; }
.album-count { position: absolute; right: 10px; bottom: 10px; background: rgba(10,16,28,.72); color: #fff; font-size: .8rem; font-weight: 600; padding: 4px 11px; border-radius: 20px; }
.album-meta { padding: 14px 17px; }
.album-meta h3 { font-size: 1.08rem; margin: 0; }
.album-date { color: var(--muted); font-size: .82rem; }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--accent); font-weight: 600; }
.photo-grid .gallery-item .gallery-img { aspect-ratio: 1/1; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,16,28,.92); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lb-content { max-width: 1000px; width: 100%; display: flex; justify-content: center; }
.lb-img { max-width: 100%; max-height: 86vh; border-radius: 8px; }
.lb-video { width: 100%; max-width: 960px; aspect-ratio: 16/9; }
.lb-video iframe { width: 100%; height: 100%; border-radius: 8px; }
.lb-frame { width: 94vw; max-width: 1300px; height: 88vh; }
.lb-frame iframe { width: 100%; height: 100%; border-radius: 8px; background: #fff; }
.lightbox .lb-content { max-width: none; }

/* newsletter actions / flipbook cover */
.news-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.news-cover.clickable { cursor: pointer; }
.news-open { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; display: grid; place-items: center; background: rgba(24,87,184,.85); color: #fff; border-radius: 50%; font-size: 1.5rem; opacity: 0; transition: .2s; }
.news-cover.clickable:hover .news-open { opacity: 1; }
.lb-close { position: absolute; top: 20px; right: 26px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.8rem; cursor: pointer; line-height: 1; }
.lb-close:hover { background: rgba(255,255,255,.3); }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; z-index: 1001; }
.lb-nav:hover { background: rgba(255,255,255,.32); }
.lb-nav.prev { left: 22px; }
.lb-nav.next { right: 22px; }
.lb-counter { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; background: rgba(0,0,0,.4); padding: 5px 15px; border-radius: 20px; }

/* ---- newsletter ---- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-cover { aspect-ratio: 3/4; background-size: cover; background-position: center; position: relative; overflow: hidden; background-color: #eef2f7; }
.news-pageframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; pointer-events: none; background: #fff; }
.news-year { position: absolute; top: 12px; left: 12px; background: var(--blue); color: #fff; padding: 4px 12px; border-radius: 30px; font-size: .8rem; font-weight: 600; }
.news-body { padding: 20px 22px; }

/* ---- empty / calendar ---- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-ic { font-size: 3.4rem; margin-bottom: 12px; }
.calendar-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.calendar-sub { text-align: center; margin-top: 20px; }

.doc-info { background: var(--bg-soft); border-radius: var(--radius); padding: 26px 30px; margin-bottom: 26px; }
.doc-info h3 { font-size: 1.1rem; }

/* ---- member auth ---- */
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); max-width: 620px; margin: 0 auto; }
.auth-card.auth-narrow { max-width: 440px; }
.auth-card.onboard-card { border-top: 5px solid var(--accent); }
.auth-card h2 { font-size: 1.3rem; margin-bottom: 18px; }
.auth-alt { text-align: center; margin: 20px 0 0; color: var(--muted); font-size: .92rem; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 50px; font-family: var(--head-font); font-weight: 600; color: var(--ink); background: #fff; transition: .2s; }
.btn-google:hover { background: var(--bg-soft); color: var(--ink); box-shadow: var(--shadow); }
.btn-google .g { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg); color: #fff; font-weight: 800; font-size: .9rem; }
.or-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: .85rem; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.child-input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem; }
.child-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,87,184,.12); }
.my-children { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.my-children li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.mc-name { font-weight: 700; color: var(--ink); min-width: 100px; }
.mc-class { background: var(--blue); color: #fff; font-size: .82rem; padding: 3px 12px; border-radius: 30px; }
.mc-class.none { background: #e2e8f0; color: var(--muted); }
.mc-del { margin: 0 0 0 auto; }
.mc-del button { background: none; border: 0; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.mc-del button:hover { color: #c0392b; }
.inline-add { display: flex; gap: 10px; }
.inline-add input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; }
.inline-add input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,87,184,.12); }
.profile-dl { margin: 0 0 18px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.profile-dl-row { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.profile-dl-row:last-child { border-bottom: 0; }
.profile-dl dt { flex: 0 0 90px; padding: 11px 14px; background: var(--bg-soft); font-size: .85rem; font-weight: 600; color: var(--ink); }
.profile-dl dd { flex: 1; padding: 11px 16px; margin: 0; color: var(--ink); font-size: .95rem; }

.error-page { padding: 110px 0; }
.error-code { font-size: 6rem; color: var(--blue); font-family: var(--head-font); margin: 0; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: #11203b; color: #b9c6db; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.7fr; gap: 48px; padding: 64px 22px 44px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand strong { color: #fff; font-family: var(--head-font); font-size: 1.02rem; white-space: nowrap; }
.footer-logo { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; box-sizing: border-box; flex-shrink: 0; }
.footer-about p { font-size: .9rem; line-height: 1.8; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col ul a { color: #b9c6db; font-size: .92rem; }
.footer-col ul a:hover { color: var(--accent); }
.footer-contact li { font-size: .88rem; margin-bottom: 8px; display: flex; gap: 7px; }
.footer-contact span { flex: 0 0 auto; min-width: 58px; color: #7e90ad; white-space: nowrap; }
.footer-contact a { color: #b9c6db; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .85rem; color: #8294b1; }

/* ---- to-top ---- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font-size: 1.3rem; cursor: pointer; opacity: 0; visibility: hidden; transition: .25s; z-index: 90; box-shadow: var(--shadow-lg); }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--accent); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .feature-grid, .cards-grid, .team-grid, .team-grid.team-grid-4, .gallery-grid, .album-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .tcard-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .welcome-grid, .prose-grid, .prose-grid.intro-grid, .contact-grid, .two-col { grid-template-columns: 1fr; gap: 36px; }
  .welcome-text h2 { white-space: normal; }
  .prose-media { order: -1; }
  .features.section { margin-top: 0; padding-top: 84px; }
  .brand-text small { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 40px; }
}
@media (max-width: 1100px) {
  .topbar-info span:nth-child(2) { display: none; }
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; top: 0; right: -100%; width: 84%; max-width: 340px; height: 100vh; background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.15); padding: 80px 18px 30px; overflow-y: auto; transition: right .3s; z-index: 200; }
  .main-nav.open { right: 0; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav > ul > li > a { padding: 14px 12px; border-radius: 8px; justify-content: space-between; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; max-height: 0; overflow: hidden; transition: max-height .25s; }
  .has-sub.open .submenu { max-height: 400px; }
  .has-sub:hover .submenu { opacity: 1; }
  .nav-cta { margin: 12px 0 0; } .nav-cta a { width: 100%; }
  .nav-lang { display: block; margin-top: 8px; }
  .nav-lang .lang-toggle { display: block; text-align: center; border: 1px solid var(--line); padding: 12px; border-radius: 8px; }
  body.nav-open { overflow: hidden; }
  /* lift the header (which contains the slide-in menu) above the backdrop so the menu stays clickable */
  body.nav-open .site-header { z-index: 200; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 150; opacity: 0; visibility: hidden; transition: .3s; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .feature-grid, .cards-grid, .team-grid, .team-grid.team-grid-4, .gallery-grid, .album-grid, .news-grid { grid-template-columns: 1fr; }
  .tcard-grid-3, .tcard-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tmodal-grid { grid-template-columns: 1fr; }
  .tmodal-photo { min-height: 220px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .topbar-info { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-arrow { display: none; }
}

/* =========================================================================
   교사 게시판 (Board) — 테이블형
   ========================================================================= */
/* --- list --- */
.bbs-wrap { border-top: 2px solid #374151; border-bottom: 2px solid #374151; margin-bottom: 16px; }
.bbs-header { display: flex; align-items: center; background: #f3f4f6; padding: 9px 0; border-bottom: 1px solid #d1d5db; font-size: .82rem; font-weight: 700; color: #374151; }
.bbs-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #e5e7eb; text-decoration: none; color: inherit; transition: background .12s; }
.bbs-row:hover { background: #f9fafb; }
.bbs-row-notice { background: #fffbeb; }
.bbs-row-notice:hover { background: #fef3c7; }
.bbs-col-no { flex: 0 0 70px; text-align: center; font-size: .82rem; color: #6b7280; }
.bbs-col-title { flex: 1; display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: .92rem; }
.bbs-col-author { flex: 0 0 90px; text-align: center; font-size: .8rem; color: #6b7280; }
.bbs-col-date { flex: 0 0 90px; text-align: center; font-size: .8rem; color: #6b7280; }
.bbs-col-views { flex: 0 0 60px; text-align: center; font-size: .8rem; color: #6b7280; }
.bbs-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bbs-attach { font-size: .78rem; color: #7c3aed; flex-shrink: 0; }
.bbs-badge-notice { background: #fef3c7; color: #b45309; border: 1px solid #fcd34d; border-radius: 4px; padding: 1px 6px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.bbs-empty { padding: 50px 0; text-align: center; color: #9ca3af; font-size: .9rem; }
/* --- pagination --- */
.bbs-pager { display: flex; justify-content: center; gap: 4px; margin: 18px 0 0; }
.bbs-page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px; border: 1px solid #d1d5db; border-radius: 6px; font-size: .85rem; text-decoration: none; color: #374151; transition: background .12s; }
.bbs-page-btn:hover { background: #f3f4f6; }
.bbs-page-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 700; }
/* --- post detail --- */
.bbs-post-head { border-top: 2px solid #374151; border-bottom: 1px solid #d1d5db; padding: 18px 0 14px; margin-bottom: 0; }
.bbs-post-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 10px; }
.bbs-post-meta { display: flex; gap: 18px; font-size: .82rem; color: #6b7280; flex-wrap: wrap; }
.bbs-post-body { min-height: 180px; line-height: 1.9; padding: 22px 4px; border-bottom: 1px solid #e5e7eb; margin-bottom: 0; font-size: .95rem; }
.bbs-files { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; margin: 18px 0; }
.bbs-files-head { background: #f9fafb; padding: 9px 16px; font-size: .82rem; font-weight: 700; color: #374151; border-bottom: 1px solid #e5e7eb; }
.bbs-file-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 16px; border-bottom: 1px solid #f3f4f6; text-decoration: none; color: inherit; font-size: .88rem; transition: background .12s; }
.bbs-file-row:last-child { border-bottom: 0; }
.bbs-file-row:hover { background: #f9fafb; }
.bbs-file-size { color: #9ca3af; font-size: .78rem; }
.bbs-post-actions { display: flex; gap: 10px; margin-top: 20px; }
/* --- write form --- */
.bbs-form-wrap { border-top: 2px solid #374151; }
.bbs-form-row { display: flex; border-bottom: 1px solid #e5e7eb; }
.bbs-form-label { flex: 0 0 100px; background: #f9fafb; padding: 12px 14px; font-size: .85rem; font-weight: 600; color: #374151; display: flex; align-items: flex-start; border-right: 1px solid #e5e7eb; }
.bbs-form-label em { color: var(--red); margin-left: 2px; }
.bbs-form-row > div { flex: 1; padding: 10px 14px; }
.bbs-form-input { width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; border-radius: 6px; padding: 8px 12px; font-size: .95rem; font-family: inherit; }
.bbs-form-input:focus { outline: none; border-color: var(--blue); }
.bbs-form-textarea { width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; border-radius: 6px; padding: 10px 12px; font-size: .95rem; font-family: inherit; resize: vertical; }
.bbs-form-textarea:focus { outline: none; border-color: var(--blue); }
.bbs-form-btns { padding: 16px 0; display: flex; gap: 10px; }
@media (max-width: 600px) {
  .bbs-col-author, .bbs-col-views { display: none; }
  .bbs-col-date { flex: 0 0 76px; }
  .bbs-col-no { flex: 0 0 50px; }
  .bbs-form-label { flex: 0 0 70px; }
}

/* ── 공지사항 게시판 (목록·상세) ─────────────────────────────────────────── */
/* 사이트 토큰(--blue/--accent/--ink/--line 등) 기반 — 전역 스타일과 통일 */
.board-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.board-table thead th {
  text-align: left; padding: .7rem .8rem; font-family: var(--head-font);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted);
  border-bottom: 2px solid var(--line); white-space: nowrap;
}
.board-table tbody td { padding: .85rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--body); }
.board-table tbody tr { transition: background .15s; }
.board-table tbody tr:hover { background: var(--bg-soft); }
.board-table .col-no { width: 84px; text-align: center; color: var(--muted); white-space: nowrap; font-size: .85rem; }
.board-table .col-date, .board-table .col-views { width: 92px; color: var(--muted); font-size: .85rem; white-space: nowrap; text-align: center; }
.board-table .col-title a { color: var(--ink); text-decoration: none; font-weight: 500; }
.board-table .col-title a:hover { color: var(--blue); }
.board-table tr.pinned { background: var(--bg-soft2); }
.badge-pin {
  display: inline-block; background: rgba(255,122,69,.12); color: var(--accent-dark);
  font-family: var(--head-font); font-size: .72rem; font-weight: 600;
  padding: .2em .8em; border-radius: 50px; white-space: nowrap;
}
.media-ic { margin-left: .4em; font-size: .8rem; opacity: .7; }
.board-pager { display: flex; justify-content: center; gap: .4rem; margin-top: 1.6rem; }
.board-pager .pg {
  min-width: 2.1rem; text-align: center; padding: .4em .5em;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--body); font-size: .9rem; transition: all .15s;
}
.board-pager .pg:hover { border-color: var(--blue); color: var(--blue); }
.board-pager .pg.cur { background: var(--blue); color: #fff; border-color: var(--blue); }

.board-view .bv-head { border-bottom: 2px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.4rem; }
.board-view .bv-title { margin: 0 0 .5rem; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.4; }
.board-view .bv-meta { color: var(--muted); font-size: .85rem; display: flex; gap: .5rem; }
.board-view .bv-body { font-size: 1rem; line-height: 1.85; color: var(--body); min-height: 60px; margin-bottom: 1.6rem; word-break: break-word; }
.bv-images { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.6rem; }
.bv-images img { max-width: 100%; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
.bv-videos { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.6rem; }
.bv-video { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.bv-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bv-nav { border-top: 2px solid var(--line); margin-top: .5rem; }
.bv-nav-item { display: flex; gap: .9rem; align-items: baseline; padding: .8rem .3rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.bv-nav-item:hover .bv-nav-title { color: var(--blue); }
.bv-nav-label { flex: 0 0 auto; font-family: var(--head-font); font-size: .8rem; color: var(--muted); white-space: nowrap; }
.bv-nav-title { font-size: .95rem; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s; }
.bv-actions { text-align: center; padding: 1.2rem 0 .3rem; }
@media (max-width: 640px) {
  .board-table .col-views { display: none; }
  .board-table .col-no { width: 60px; }
  .board-table thead th, .board-table tbody td { padding: .7rem .5rem; }
}

/* ── 학사일정 PDF (구글 캘린더 위 표시) ──────────────────────────────────── */
.cal-pdf { margin-bottom: 2rem; }
.cal-pdf-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .9rem; }
.cal-pdf-head h3 { margin: 0; font-size: 1.1rem; }
.cal-pdf-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cal-pdf-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.cal-pdf-embed iframe { display: block; width: 100%; height: 75vh; min-height: 480px; border: 0; }
@media (max-width: 640px) {
  /* 모바일 브라우저는 PDF iframe 렌더가 불안정 → 높이를 줄이고 버튼 사용 유도 */
  .cal-pdf-embed iframe { height: 60vh; min-height: 360px; }
}
