:root {
  --navy: #1b2a38;
  --navy-deep: #101c26;
  --accent: #2b6cb0;
  --accent-dark: #1f4e82;
  --steel: #8a94a0;
  --ink: #1a1e24;
  --bg: #ffffff;
  --muted: #68707c;
  --line: #e1e4e8;
  --panel: #f2f4f6;
  --nav-size: 13px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.main-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; max-width: 1600px; margin: 0 auto; height: 76px;
}

.nav-left { display: flex; gap: 30px; flex: 1; }
.nav-left a { font-size: var(--nav-size); font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; color: var(--ink); }
.nav-left a:hover { color: var(--accent); }
.nav-left a.active { color: var(--accent); }

.nav-left li { position: relative; display: flex; align-items: center; }
.nav-left .nav-top {
  font-size: var(--nav-size); font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
  color: var(--ink); cursor: default;
}
.nav-left li.has-dropdown:hover .nav-top,
.nav-left li.has-dropdown.active-group .nav-top { color: var(--accent); }

.nav-left .dropdown {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 16px 32px rgba(8,26,48,.12); padding: 10px 0; min-width: 170px; z-index: 120;
}
.nav-left li.has-dropdown:hover .dropdown { display: block; }
.nav-left .dropdown li { width: 100%; }
.nav-left .dropdown a { display: block; padding: 9px 22px; font-size: 12.5px; white-space: nowrap; }
.nav-left .dropdown a:hover { background: var(--panel); color: var(--accent); }

.logo { display: inline-flex; align-items: center; padding: 0 24px; white-space: nowrap; }
.logo-img { height: 34px; width: auto; display: block; }

.nav-right { display: flex; gap: 18px; align-items: center; justify-content: flex-end; flex: 1; }
.nav-right li { flex-shrink: 0; }
.nav-right li:first-child { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }

.menu-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 5px; width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; background: rgba(8,26,48,.45);
  opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 150;
}
.nav-overlay.visible { opacity: 1; pointer-events: auto; }

.icon-btn { background: none; border: none; cursor: pointer; color: var(--navy); position: relative; padding: 8px; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 900px) {
  .icon-btn { padding: 10px; }
  .icon-btn svg { width: 22px; height: 22px; stroke-width: 1.8; }
}

.lang-switch { font-size: 12px; font-weight: 700; letter-spacing: 0.03em; color: var(--muted); padding: 4px 2px; }
.lang-switch:hover { color: var(--accent); }
.lang-switch[aria-current="true"] { color: var(--navy); }
.lang-divider { font-size: 12px; color: var(--line); }

/* ---------- Search overlay ---------- */
.search-overlay { position: relative; max-height: 0; overflow: hidden; background: var(--panel); border-bottom: 0px solid var(--line); transition: max-height .3s ease, border-color .3s ease; }
.search-overlay.open { max-height: 90px; border-bottom: 1px solid var(--line); }
.search-form { max-width: 1600px; margin: 0 auto; padding: 20px 90px 20px 40px; display: flex; align-items: center; gap: 14px; position: relative; }
.search-form input { flex: 1; border: none; background: none; font-family: inherit; font-size: 15px; outline: none; border-bottom: 1px solid var(--navy); padding: 8px 2px; }
.search-form button { background: none; border: none; cursor: pointer; color: var(--navy); display: inline-flex; }
.search-close { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); }
@media (max-width: 900px) { .search-form { padding: 16px 76px 16px 20px; } .search-close { right: 14px; } }

/* ---------- Hero ---------- */
.hero { position: relative; width: 100%; height: 72vh; min-height: 460px; overflow: hidden; background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 60%, #16395e 100%); }
.hero #heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 25% 55%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,26,48,.15) 0%, rgba(8,26,48,.55) 100%);
}
.hero-text {
  position: relative; z-index: 2; height: 100%; max-width: 1600px; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center; padding: 0 40px; color: #fff;
}
.hero-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .22em; color: #8fb6e8; margin: 0 0 16px; }
.hero-text h1 { font-weight: 800; letter-spacing: -0.01em; font-size: clamp(2rem, 4.2vw, 3.4rem); margin: 0 0 16px; line-height: 1.25; }
.hero-text p { font-size: 15px; letter-spacing: .01em; color: #cfdcee; margin: 0; max-width: 520px; line-height: 1.8; }

.spacer { height: 60px; }

/* ---------- Notice popup ---------- */
.notice-popup-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(8,26,48,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.notice-popup-overlay.visible { opacity: 1; pointer-events: auto; }
.notice-popup {
  background: #fff; border-radius: 14px; width: 100%; max-width: 420px;
  max-height: 80vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(8,26,48,.3);
  transform: translateY(12px); transition: transform .25s ease;
}
.notice-popup-overlay.visible .notice-popup { transform: translateY(0); }
.notice-popup-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 12px; }
.notice-popup-header h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--navy); }
.notice-popup-close { background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px; }
.notice-popup-list { list-style: none; margin: 0; padding: 0 8px; overflow-y: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.notice-popup-list li a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--navy); border-bottom: 1px solid var(--line); }
.notice-popup-list li:last-child a { border-bottom: none; }
.notice-popup-list li a:hover { background: #f7f9fc; }
.notice-popup-item-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-popup-item-date { font-size: 12px; color: var(--muted); flex: none; }
.notice-popup-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 20px; }
.notice-popup-footer label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.notice-popup-confirm { background: var(--navy); color: #fff; border: none; border-radius: 8px; padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ---------- Editorial duo ---------- */
.editorial-duo { display: grid; grid-template-columns: 56% 44%; gap: 40px; align-items: start; padding: 0 40px; max-width: 1600px; margin: 0 auto 120px; }
.editorial-duo.reverse { grid-template-columns: 44% 56%; }
.editorial-duo.reverse .img-tall:first-child { order: 2; }
.editorial-duo.reverse .img-tall:last-child { order: 1; }
.img-tall img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4/5; }

/* ---------- Statement ---------- */
.statement { text-align: center; padding: 72px 20px; max-width: 760px; margin: 0 auto; background: var(--panel); }
.statement-script { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--accent); margin: 0 0 18px; text-transform: uppercase; }
.statement-body { font-size: 20px; line-height: 1.8; color: var(--navy); font-weight: 500; letter-spacing: -0.01em; }

/* ---------- Stat strip ---------- */
.stat-strip { background: var(--navy-deep); }
.stat-strip-inner {
  max-width: 1200px; margin: 0 auto; padding: 44px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-strip-item { text-align: center; padding: 0 16px; border-left: 1px solid rgba(255,255,255,.14); }
.stat-strip-item:first-child { border-left: none; }
.stat-strip-num { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 6px; letter-spacing: -0.01em; }
.stat-strip-label { font-size: 12px; color: #9fb0c3; margin: 0; }
@media (max-width: 700px) {
  .stat-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 0; padding: 32px 24px; }
  .stat-strip-item:nth-child(3) { border-left: none; }
}

/* ---------- Process (how we work) ---------- */
.process-section { background: var(--navy); color: #fff; padding: 90px 40px; }
.process-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.process-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--accent); margin: 0 0 18px; text-transform: uppercase; }
.process-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.35; letter-spacing: -0.01em; margin: 0; }
.process-list { list-style: none; margin: 0; padding: 0; }
.process-list li { display: flex; gap: 24px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.14); }
.process-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.process-num { font-size: 15px; font-weight: 800; color: var(--accent); flex: none; width: 32px; }
.process-list h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.process-list p { font-size: 13px; color: #b7c3d1; margin: 0; line-height: 1.6; }
@media (max-width: 900px) {
  .process-section { padding: 60px 20px; }
  .process-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Closing CTA banner ---------- */
.cta-banner { background: var(--navy-deep); color: #fff; padding: 80px 20px; text-align: center; }
.cta-banner-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; margin: 0 0 18px; text-transform: uppercase; color: var(--accent); }
.cta-banner-title { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.35; margin: 0 0 32px; }
.cta-banner-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; padding: 16px 30px; border-radius: 999px; text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.cta-banner-btn:hover { transform: translateY(-2px); background: var(--accent-dark); }

/* ---------- Content grid (notice / product / gallery cards) ---------- */
.content-grid { max-width: 1600px; margin: 0 auto 100px; padding: 72px 40px 0; }
.section-title { font-weight: 800; font-size: 24px; letter-spacing: -0.01em; text-align: left; margin: 0 0 32px; padding-left: 16px; border-left: 4px solid var(--accent); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.content-card { display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.content-card:hover { box-shadow: 0 12px 28px rgba(14,42,74,.14); transform: translateY(-3px); }
.content-thumb { overflow: hidden; background: var(--panel); aspect-ratio: 4/3; position: relative; }
.content-card--feature .content-thumb { aspect-ratio: 3/4; }
.content-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.content-card:hover .content-thumb img { transform: scale(1.06); }
.content-num {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-size: 12px; font-weight: 800; color: #fff; background: rgba(14,26,38,.65);
  padding: 4px 9px; border-radius: 999px; letter-spacing: .03em;
}
.play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: rgba(14,26,38,.75); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px; padding-left: 3px;
}
.content-name { font-size: 14px; font-weight: 600; margin: 0; padding: 16px 16px 4px; letter-spacing: -0.01em; }
.content-desc { font-size: 12.5px; color: var(--muted); margin: 0; padding: 4px 16px 16px; line-height: 1.6; }
.content-meta { font-size: 12px; color: var(--muted); margin: 0; padding: 0 16px 16px; }
.content-tag { color: var(--accent); font-weight: 600; }
.content-empty { color: var(--muted); font-size: 13px; grid-column: 1/-1; text-align: center; padding: 60px 0; background: var(--panel); }

/* ---------- Page banner (sub pages) ---------- */
.page-banner { text-align: center; padding: 64px 20px; background: var(--navy); color: #fff; }
.page-banner .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .2em; color: #8fb6e8; margin: 0 0 12px; text-transform: uppercase; }
.page-banner h1 { font-weight: 800; letter-spacing: -0.01em; font-size: 32px; margin: 0; }

/* ---------- Filter tabs ---------- */
.filter-tabs { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; padding: 36px 20px; background: var(--panel); margin-bottom: 0; }
.filter-tabs a { background: none; border: none; font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); cursor: pointer; padding: 6px 4px; border-bottom: 2px solid transparent; white-space: nowrap; }
.filter-tabs a.active, .filter-tabs a:hover { color: var(--navy); border-color: var(--accent); }

@media (max-width: 900px) {
  .filter-tabs {
    flex-wrap: nowrap; justify-content: flex-start; gap: 20px;
    padding: 20px 20px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tabs a { flex: none; }
}

/* ---------- Board ---------- */
.board-wrap { max-width: 1000px; margin: 0 auto; padding: 48px 20px 120px; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.board-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.board-table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--navy); padding: 0 10px 14px; border-bottom: 2px solid var(--navy); }
.board-table td { padding: 16px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.board-table tr.pinned td { color: var(--accent); font-weight: 600; }
.board-toolbar { display: flex; justify-content: flex-end; padding: 20px 0; }

.board-view-head { padding: 24px 0; border-bottom: 2px solid var(--navy); margin-bottom: 24px; }
.board-view-head h1 { font-size: 21px; font-weight: 700; margin: 0 0 10px; }
.board-view-meta { font-size: 12px; color: var(--muted); display: flex; gap: 16px; }
.board-view-body { font-size: 14px; line-height: 2; min-height: 160px; padding-bottom: 40px; border-bottom: 1px solid var(--line); margin-bottom: 30px; word-break: break-word; overflow-wrap: break-word; }
.board-view-body p { margin: 0 0 18px; }
.greeting-sign { text-align: right; font-weight: 700; margin-top: 30px !important; }
.video-embed { position: relative; width: 100%; padding-top: 56.25%; margin-bottom: 24px; background: #000; border-radius: 6px; overflow: hidden; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.board-view-actions { display: flex; justify-content: space-between; }

form.board-form { display: flex; flex-direction: column; gap: 16px; }
form.board-form input[type=text],
form.board-form input[type=password],
form.board-form input[type=email],
form.board-form input[type=tel],
form.board-form textarea {
  border: 1px solid var(--line); background: var(--bg);
  padding: 12px 10px; font-size: 14px; font-family: inherit; outline: none; resize: vertical;
}
form.board-form input:focus, form.board-form textarea:focus { border-color: var(--accent); }
.board-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { font-size: 12px; color: #c0392b; margin: -6px 0 0; }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-hint { font-size: 12px; color: var(--muted); margin: -6px 0 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 10px 0 100px; font-size: 13px; color: var(--muted); }
.pagination a.active, .pagination a:hover { color: var(--accent); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn-solid, .btn-outline {
  display: inline-block; padding: 14px 30px; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  text-align: center; cursor: pointer; border: 1px solid var(--navy); border-radius: 4px; font-family: inherit;
}
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline { background: none; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Account / login forms (shared by member + admin login) ---------- */
.account-wrap { max-width: 400px; margin: 0 auto; padding: 90px 20px 160px; text-align: center; }
.account-wrap h1 { font-weight: 800; font-size: 26px; margin: 0 0 40px; color: var(--navy); }
.account-form { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.account-form input {
  border: 1px solid var(--line); background: var(--bg);
  padding: 12px 10px; font-size: 14px; font-family: inherit; outline: none;
}
.account-form input:focus { border-color: var(--accent); }
.account-submit { margin-top: 20px; padding: 15px; background: var(--navy); color: #fff; border: none; border-radius: 4px; font-size: 13px; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.account-submit:hover { background: var(--accent); }
.account-links { margin-top: 26px; font-size: 12px; color: var(--muted); display: flex; justify-content: center; gap: 18px; }
.account-links a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #a9bdd4; padding: 48px 20px 60px; text-align: center; margin-top: 40px; }
.sns-link { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .05em; margin-bottom: 20px; color: #fff; border-bottom: 1px solid #fff; padding-bottom: 2px; }
.legal { font-size: 11px; line-height: 1.9; color: #7f93ab; max-width: 900px; margin: 0 auto; }
.legal a { text-decoration: underline; color: #a9bdd4; }

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 4px;
  border: none; background: var(--navy); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .05em;
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s ease, background .2s ease;
}
.to-top:hover { background: var(--accent); }
.to-top.visible { opacity: 1; pointer-events: auto; }

.floating-cta {
  position: fixed; right: 24px; height: 52px; padding: 0 20px 0 16px; border-radius: 26px;
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,.2); z-index: 140; transition: transform .2s ease;
}
.floating-cta:hover { transform: scale(1.04); }
.floating-cta--kakao { bottom: 82px; background: #FEE500; color: #191919; }
.floating-cta--phone { position: static; border: none; cursor: pointer; background: var(--navy); color: #fff; }

.phone-cta-wrap { position: fixed; right: 24px; bottom: 144px; z-index: 140; }
.phone-popover {
  position: absolute; right: 0; bottom: 62px; width: 230px; background: #fff; border-radius: 12px;
  padding: 16px; box-shadow: 0 10px 30px rgba(8,26,48,.25);
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease;
}
.phone-popover.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.phone-popover-label { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.phone-popover-number { display: block; font-size: 21px; font-weight: 800; color: var(--navy); text-decoration: none; }

/* ---------- Social icon row (blog/youtube) ---------- */
.social-icon-row { position: fixed; right: 24px; bottom: 206px; z-index: 140; display: flex; gap: 10px; }
.social-icon-btn {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 50%; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.2); transition: transform .2s ease;
}
.social-icon-btn:hover { transform: scale(1.08); }
.social-icon-btn--blog { background: #03C75A; }
.social-icon-btn--youtube { background: #FF0000; }
.blog-badge-text { font-size: 10px; font-weight: 800; font-style: italic; letter-spacing: -.02em; }
@media (max-width: 900px) {
  .social-icon-row { right: 16px; bottom: 182px; gap: 8px; }
  .social-icon-btn { width: 38px; height: 38px; }
  .blog-badge-text { font-size: 9px; }
}

@media (max-width: 900px) {
  .to-top { right: 16px; bottom: 16px; }
  .floating-cta { right: 16px; height: 48px; padding: 0 16px 0 14px; font-size: 12px; }
  .floating-cta--kakao { bottom: 70px; }
  .phone-cta-wrap { right: 16px; bottom: 128px; }
}

/* ---------- Admin ---------- */
.admin-topbar-spacer { flex: 1; }
.admin-topbar-right { flex: 1; text-align: right; }
.admin-logo { font-size: 24px; }
.admin-logout { padding: 8px 16px; white-space: nowrap; }

.admin-login { max-width: 360px; margin: 100px auto; padding: 0 20px; text-align: center; }
.admin-login h1 { font-size: 20px; font-weight: 700; margin: 0 0 30px; color: var(--navy); }

.admin-dashboard { max-width: 1200px; margin: 0 auto; padding: 40px 40px 140px; }
.admin-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 30px; flex-wrap: wrap; }
.admin-tabs a { font-size: 13px; font-weight: 600; letter-spacing: .02em; padding: 0 0 16px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; display: inline-block; }
.admin-tabs a.active { color: var(--navy); border-color: var(--accent); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { text-align: left; font-weight: 700; color: var(--navy); padding: 10px 8px; border-bottom: 2px solid var(--navy); }
.admin-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table select { font-family: inherit; font-size: 12px; padding: 4px; border: 1px solid var(--line); background: var(--bg); }
.admin-empty { padding: 40px 0; text-align: center; color: var(--muted); font-size: 13px; }

.admin-form { display: flex; flex-direction: column; gap: 12px; background: var(--panel); padding: 24px; margin-bottom: 40px; border-left: 4px solid var(--accent); }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-form input, .admin-form select, .admin-form textarea {
  border: 1px solid var(--line); background: var(--bg);
  padding: 10px 8px; font-size: 13px; font-family: inherit; outline: none; resize: vertical;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--accent); }
.admin-form-textarea-lg { width: 100%; min-height: 140px; max-height: 600px; font-size: 14px; line-height: 1.7; overflow-y: hidden; resize: none; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 16px; margin-bottom: 30px; }
.stat-card { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 4px; padding: 20px; text-align: center; }
.stat-card .num { font-family: "Noto Sans KR", sans-serif; font-weight: 700; font-size: 30px; color: var(--navy); }
.stat-card .label { font-size: 12px; color: var(--muted); margin-top: 6px; }

.section-subtitle { font-size: 15px; font-weight: 700; color: var(--navy); margin: 0 0 14px; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.quick-link-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 6px;
  border: 1px solid var(--line); text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.quick-link-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.quick-link-card strong { font-size: 14px; color: var(--navy); }
.quick-link-card span { font-size: 12px; color: var(--muted); line-height: 1.5; }

.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-row { display: grid; grid-template-columns: 110px 1fr 36px; align-items: center; gap: 12px; }
.rank-label { font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-bar-track { background: var(--panel); border-radius: 4px; height: 16px; overflow: hidden; }
.rank-bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.rank-count { font-size: 12px; color: var(--muted); text-align: right; }
@media (max-width: 600px) {
  .rank-row { grid-template-columns: 80px 1fr 30px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { padding: 0 20px; height: 64px; }
  .menu-toggle { display: flex; flex: 0 0 auto; }
  .nav-right { flex: 0 0 auto; gap: 8px; }
  .nav-left {
    position: fixed; top: 0; left: -280px; width: 260px; height: 100vh;
    flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg);
    padding: 90px 32px; box-shadow: 2px 0 24px rgba(0,0,0,.18); transition: left .3s ease; z-index: 200;
  }
  .nav-left.open { left: 0; }
  .nav-left { overflow-y: auto; }
  .nav-left > li { display: block; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-left .nav-top { padding: 0; font-weight: 700; color: var(--navy); }
  .nav-left .dropdown {
    display: block; position: static; transform: none; background: none; border: none;
    box-shadow: none; padding: 10px 0 0; min-width: 0;
  }
  .nav-left .dropdown li { padding: 8px 0 0; border: none; }
  .nav-left .dropdown a { padding: 0 0 0 14px; font-size: 13px; color: var(--muted); }
  .logo { padding: 0 10px; }
  .logo-img { height: 20px; }
  .editorial-duo, .editorial-duo.reverse { grid-template-columns: 1fr; padding: 0 20px; margin-bottom: 60px; }
  .editorial-duo.reverse .img-tall:first-child, .editorial-duo.reverse .img-tall:last-child { order: initial; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .content-grid { padding: 48px 20px 0; }
  .hero { height: 54vh; }
  .page-banner h1 { font-size: 26px; }
  .board-form-row { grid-template-columns: 1fr; }
  .admin-dashboard { padding: 30px 20px 100px; }
  .admin-logo { font-size: 15px; padding: 0 8px; }
  .admin-logout { padding: 6px 10px; font-size: 11px; }
  .admin-form-row { grid-template-columns: 1fr; }
  .hero-text { padding: 0 20px; }
  .pagination { flex-wrap: wrap; }
}
