/* EMENC site main styles
   Fonts: Pretendard + Poppins for KR/EN, Noto Sans JP for JP, Noto Sans SC for CN
   Loaded via header.php (Google Fonts + CDN Pretendard)                       */

:root {
  --c-bg: #ffffff;
  --c-fg: #1a1f2e;
  --c-muted: #6c7383;
  --c-line: #e6e8ee;
  --c-line-2: #f2f4f8;
  --c-primary: #0b3d91;
  --c-primary-2: #1054c4;
  --c-accent: #f5a623;
  --c-danger: #d9333f;
  --c-ok: #2faa6c;
  --c-card: #ffffff;
  --c-tag: #eef3fd;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(10,20,40,.06), 0 1px 2px rgba(10,20,40,.04);
  --shadow-md: 0 10px 30px rgba(10,20,40,.08), 0 2px 6px rgba(10,20,40,.04);
  --header-h: 92px;
  --max-w: 70%;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--c-fg);
  background: #fbfcfe;
  font-family: "Poppins", "Pretendard", system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Language-specific fonts — most-used safe family per region */
body.lang-jp {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-weight: 400;
}
body.lang-cn {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", system-ui, sans-serif;
  font-weight: 400;
}
body.lang-kr {
  font-family: "Pretendard", "Poppins", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
body.lang-th {
  font-family: "Noto Sans Thai", "Sarabun", "Tahoma", system-ui, sans-serif;
  font-weight: 400;
}
body.lang-ru {
  font-family: "Pretendard", "Roboto", "Inter", "PT Sans", "Segoe UI", system-ui, sans-serif;
}
body.lang-vi {
  /* Vietnamese needs full Latin-Extended-Additional + tone marks support */
  font-family: "Pretendard", "Be Vietnam Pro", "Roboto", "Inter", system-ui, sans-serif;
}
body.lang-fr, body.lang-de, body.lang-es {
  /* Latin-script European languages — Pretendard handles diacritics well */
  font-family: "Pretendard", "Poppins", "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; letter-spacing: -.01em; }
.muted { color: var(--c-muted); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-weight: 700; font-size: 20px; letter-spacing: -.02em;
  color: var(--c-fg) !important;
}
.primary-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.primary-nav a {
  color: var(--c-fg);
  font-weight: 500;
  font-size: 20px;
}
.primary-nav a:hover { color: var(--c-primary); text-decoration: none; }

/* Nav dropdown (회사소개 submenu) — desktop */
.primary-nav .nav-item.has-sub { position: relative; display: inline-block; }
.primary-nav .nav-sub {
  position: absolute; top: 100%; left: 0; min-width: 160px; background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); border-radius: 8px; padding: 8px 0;
  display: none; z-index: 1000;
}
.primary-nav .nav-item.has-sub:hover .nav-sub { display: block; }
.primary-nav .nav-sub a { display: block; padding: 9px 18px; white-space: nowrap; color: #222; font-size: 16px; }
.primary-nav .nav-sub a:hover { background: #f3f5f9; color: #0b3d91; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switcher { position: relative; }
.lang-btn {
  background: var(--c-line-2); border: 1px solid var(--c-line);
  border-radius: var(--radius-sm); padding: 6px 12px; font-weight: 500;
  font-size: 14px; cursor: pointer; color: var(--c-fg);
}
.lang-switcher ul {
  position: absolute; right: 0; top: 100%; margin-top: 6px;
  list-style: none; padding: 6px; min-width: 140px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); display: none;
}
.lang-switcher:hover ul, .lang-switcher:focus-within ul, .lang-switcher.open ul { display: block; }
.lang-switcher li a { display: block; padding: 8px 10px; border-radius: 4px; color: var(--c-fg); }
.lang-switcher li a:hover { background: var(--c-line-2); text-decoration: none; }

.nav-toggle {
  display: none; background: transparent; border: 0;
  width: 36px; height: 36px; padding: 8px; flex-direction: column; gap: 4px; cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--c-fg); border-radius: 2px; }

/* Hero */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(160deg, #f1f5fd 0%, #fafbfe 60%);
  border-bottom: 1px solid var(--c-line);
}
.hero-title {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 18px; color: var(--c-muted); max-width: 640px; }
.hero-cta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* Buttons */
.btn, .btn-primary, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .08s ease, box-shadow .15s, background .15s;
  font-family: inherit;
}
.btn { background: #fff; border-color: var(--c-line); color: var(--c-fg); }
.btn:hover { background: var(--c-line-2); text-decoration: none; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-2); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; border-color: var(--c-primary); color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary); color: #fff; text-decoration: none; }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { background: #b8262f; }
.btn.small { padding: 5px 10px; font-size: 12px; }

/* Cards / sections */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding: 56px 20px;
}
.card {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head h2 { font-size: 20px; margin: 0; }
.link { color: var(--c-primary); font-size: 14px; font-weight: 500; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--c-line-2);
}
.post-list li:last-child { border-bottom: 0; }
.post-list a { color: var(--c-fg); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-list time { color: var(--c-muted); font-size: 13px; flex-shrink: 0; }

.feature-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  padding: 56px 20px 80px;
}
.feature-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 12px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  color: var(--c-fg); transition: all .2s;
}
.feature-tile:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-primary);
}
.ft-icon { font-size: 28px; }
.ft-title { font-size: 13px; font-weight: 500; }

/* Footer */
.site-footer {
  padding: 46px 0;
  margin-top: 80px;
  background: #34373c;
  color: #c9ccd2;
  font-size: 14px;
}
.footer-grid {
  display: flex; align-items: center; gap: 56px; flex-wrap: wrap;
}
.footer-brand { flex: 0 0 auto; }
.footer-brand img { height: 56px; width: auto; display: block; }
.footer-info { flex: 1 1 420px; }
.footer-contacts { list-style: none; margin: 0 0 14px; padding: 0; }
.footer-contacts li { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; line-height: 1.6; }
.footer-contacts .fc-ico { color: #f5a623; font-size: 13px; line-height: 1.7; flex: 0 0 auto; }
.footer-contacts a { color: #e3e6ea; }
.footer-contacts a:hover { color: #fff; text-decoration: none; }
.footer-rights { margin: 0; font-size: 13px; color: #8b909a; }
.footer-rights a { color: #8b909a; }
.footer-rights a:hover { color: #fff; }
.footer-rights .footer-legal { margin-left: 10px; }
.footer-rights .footer-legal a { margin: 0 2px; }
.footer-admin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-left: 10px !important; vertical-align: middle;
  border: 1px solid rgba(255,255,255,.25); border-radius: 6px;
  color: #c9ccd2; transition: background .15s, color .15s, border-color .15s;
}
.footer-admin:hover { background: #5b9bd5; border-color: #5b9bd5; color: #fff; }
.footer-admin svg { display: block; }

/* Scroll-to-top button */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  width: 46px; height: 46px; border: 0; border-radius: 8px; cursor: pointer;
  background: #5b9bd5; color: #fff; font-size: 22px; font-weight: 700; line-height: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, background .15s, visibility .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: #4a8ac4; }
@media (max-width: 768px) {
  .footer-grid { gap: 28px; }
  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; font-size: 20px; }
}

/* Board */
.board-page { padding: 40px 20px 80px; }
.board-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding-bottom: 18px; margin-bottom: 24px;
  border-bottom: 2px solid var(--c-fg);
}
.board-title { font-size: 28px; margin: 0; font-weight: 700; }
.board-desc { margin: 0; color: var(--c-muted); }
.board-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search { display: flex; gap: 4px; }
.search input { padding: 7px 10px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.search button {
  padding: 7px 14px; background: var(--c-fg); color: #fff; border: 0;
  border-radius: var(--radius-sm); cursor: pointer; font-family: inherit;
}

.board-table { width: 100%; border-collapse: collapse; }
.board-table thead { background: var(--c-line-2); }
.board-table th, .board-table td {
  padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--c-line);
  font-size: 14px;
}
.board-table th { font-weight: 600; font-size: 13px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.board-table .num-col, .board-table .meta-col, .board-table .adm-col { width: 1%; white-space: nowrap; }
.board-table .subj a { color: var(--c-fg); font-weight: 500; }
.board-table .subj a:hover { color: var(--c-primary); }
.board-table tr.notice-row { background: #fff8e8; }
.board-table .empty { text-align: center; color: var(--c-muted); padding: 40px 0; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--c-tag); font-size: 11px; color: var(--c-primary); margin-left: 4px; }

.admin-bulk { margin-top: 14px; padding: 10px 14px; background: #fff8e8; border-radius: var(--radius-sm); display: flex; gap: 10px; align-items: center; }
.pager { display: flex; gap: 4px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pager a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  color: var(--c-fg); font-size: 14px;
}
.pager a.on { background: var(--c-fg); color: #fff; border-color: var(--c-fg); }
.pager a:hover { background: var(--c-line-2); text-decoration: none; }

/* Photo grid */
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.photo-card { position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; transition: all .2s; }
.photo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--c-primary); }
.photo-check { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(255,255,255,.9); border-radius: 4px; padding: 2px 4px; }
.photo-thumb {
  width: 100%; aspect-ratio: 4/3; background-size: cover; background-position: center;
  background-color: var(--c-line-2);
}
.photo-meta { padding: 12px; }
.photo-title { font-weight: 500; font-size: 14px; color: var(--c-fg); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-sub { color: var(--c-muted); font-size: 12px; }

/* Calendar */
.calendar { width: 100%; border-collapse: separate; border-spacing: 2px; }
.calendar th { background: var(--c-line-2); padding: 8px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.calendar th.sun { color: var(--c-danger); }
.calendar th.sat { color: var(--c-primary); }
.calendar td { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); vertical-align: top; padding: 6px; min-height: 90px; height: 90px; position: relative; }
.calendar td.empty { background: var(--c-line-2); border: 0; }
.calendar td.today { background: #f0f6ff; border-color: var(--c-primary); }
.calendar td .d { display: inline-block; font-size: 13px; color: var(--c-muted); font-weight: 600; margin-bottom: 4px; }
.calendar td.sun .d { color: var(--c-danger); }
.calendar td.sat .d { color: var(--c-primary); }
.cal-event { display: block; background: var(--c-primary); color: #fff !important; padding: 2px 6px; border-radius: 3px; font-size: 11px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event:hover { background: var(--c-primary-2); text-decoration: none; }
.cal-nav { display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* Post view */
.post-view { padding: 40px 20px 80px; max-width: var(--max-w); }
.crumbs { font-size: 13px; color: var(--c-muted); margin-bottom: 18px; }
.crumbs a { color: var(--c-muted); }
.post-head { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 2px solid var(--c-fg); }
.post-head h1 { font-size: 30px; }
.post-meta { color: var(--c-muted); font-size: 14px; }
.event-bar { background: #fff8e8; padding: 10px 14px; border-radius: var(--radius-sm); margin: 0 0 16px; font-weight: 500; }
.post-body { font-size: 16px; line-height: 1.8; padding: 24px 0; min-height: 220px; }
.post-body img { border-radius: var(--radius-sm); margin: 12px 0; }
.attachments-block { background: var(--c-line-2); padding: 16px; border-radius: var(--radius); margin: 24px 0; }
.attachments-block h3 { font-size: 14px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); }
.att-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.att-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.att-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.post-actions { display: flex; gap: 10px; margin: 24px 0; flex-wrap: wrap; }
.prev-next { display: flex; justify-content: space-between; gap: 12px; padding: 20px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.prev-next a { color: var(--c-fg); font-size: 14px; }
.comments { margin-top: 40px; }
.comments ul { list-style: none; padding: 0; margin: 0; }
.comments li { padding: 14px 0; border-bottom: 1px solid var(--c-line-2); }
.comments li strong { margin-right: 8px; }
.comments p { margin: 8px 0 0; }
.comment-form { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px;
}

/* Write form */
.post-write { padding: 40px 20px 80px; max-width: 900px; }
.write-form { display: flex; flex-direction: column; gap: 16px; }
.write-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; }
.write-form input[type=text],
.write-form input[type=datetime-local],
.write-form textarea {
  padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px;
}
.write-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.write-form fieldset.attachments { border: 1px dashed var(--c-line); padding: 16px; border-radius: var(--radius-sm); }
.write-form .file-row { margin: 6px 0; }
.write-form .form-actions { display: flex; gap: 10px; }

.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin: 12px 0; font-size: 14px; }
.alert.ok  { background: #e6f7ee; color: #145a36; }
.alert.err { background: #fde6e8; color: #921c25; }

/* ===== Homepage hero slider (troynet) ===== */
.hero-slider { position: relative; width: 100%; aspect-ratio: 1920 / 661; overflow: hidden; background:#0b3d91; }
.hero-slider .hslide {
  position: absolute; inset: 0;
  background-size: 100% 100%; background-position: center;
  display: flex; align-items: center;
  opacity: 0; transition: opacity .8s ease;
  pointer-events: none;
}
.hero-slider .hslide.active { opacity: 1; pointer-events: auto; }
.hero-slider .container { width: 100%; }
.hslide-caption { max-width: 460px; margin-left: auto; text-align: right; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.hslide-caption .hs-h { font-size: 40px; font-weight: 700; margin: 0 0 10px; line-height: 1.15; }
.hslide-caption .hs-sub { font-size: 22px; font-weight: 500; margin: 0 0 14px; }
.hslide-caption .hs-decor { width: 64px; height: 2px; background: #fff; border: 0; margin: 0 0 14px auto; }
.hslide-caption .hs-p { font-size: 16px; opacity: .95; margin: 0; }
.hslide-caption .hs-check { color: #4fc3f7; margin-right: 4px; }
.hslider-dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hslider-dots .hdot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; transition: background .2s; }
.hslider-dots .hdot.active { background: #fff; }
@media (max-width: 768px) {
  .hslide-caption { max-width: 100%; margin: 0 16px; }
  .hslide-caption .hs-h { font-size: 28px; }
  .hslide-caption .hs-sub { font-size: 17px; }
}

/* ===== Homepage company intro (troynet) ===== */
.intro-section { position: relative; padding: 84px 20px; overflow: hidden; background: linear-gradient(180deg,#f7f9fc 0%,#eef3fa 100%); }
.intro-bg-deco { position: absolute; top: -120px; right: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(21,101,192,.18), rgba(11,61,145,.04) 70%); z-index: 0; }
.intro-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.intro-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px; color: #1565c0;
  background: rgba(21,101,192,.1); padding: 6px 14px; border-radius: 20px; margin-bottom: 16px; }
.intro-title { font-size: 38px; font-weight: 800; color: #0b3d91; margin: 0 0 14px; line-height: 1.15; position: relative; }
.intro-title::after { content: ""; display: block; width: 60px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg,#0b3d91,#1565c0); margin-top: 14px; }
.intro-quote { font-size: 20px; font-weight: 600; color: #1565c0; margin: 0 0 24px; }
.intro-body p { font-size: 15.5px; line-height: 1.85; color: #44505f; margin: 0 0 12px; }
.intro-body strong { color: #0b3d91; }
.intro-sign { margin-top: 22px; font-size: 17px; color: #222; }
.intro-sign strong { font-size: 20px; }
.intro-media { position: relative; }
.intro-media img { display: block; width: 100%; height: auto; border-radius: 16px;
  box-shadow: 0 24px 50px rgba(11,61,145,.22); position: relative; z-index: 1; }
.intro-media-accent { position: absolute; top: -18px; left: -18px; width: 72%; height: 72%;
  border: 4px solid #1565c0; border-radius: 16px; z-index: 0; opacity: .35; }
.intro-media-tag { position: absolute; right: 18px; bottom: -18px; z-index: 2;
  background: linear-gradient(135deg,#0b3d91,#1565c0); color: #fff; padding: 12px 22px; border-radius: 12px;
  box-shadow: 0 12px 28px rgba(11,61,145,.3); }
.intro-media-tag span { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; }
@media (max-width: 768px) {
  .intro-section { padding: 56px 20px; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-title { font-size: 30px; }
  .intro-media { margin-top: 8px; }
  .intro-media-tag { right: 12px; bottom: -14px; padding: 10px 16px; }
}

/* ===== Homepage contact section (troynet) ===== */
.contact-section { position: relative; padding: 80px 20px; overflow: hidden;
  background: url('/data/uploads/troynet/slider/bg-forms-2.jpg') center/cover fixed; }
.contact-overlay { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(8,22,48,.78),rgba(8,22,48,.62)); }
.contact-inner { position: relative; z-index: 1; text-align: center; color: #fff; }
.contact-phone { font-size: clamp(26px,4vw,40px); font-weight: 700; margin: 0 0 26px; letter-spacing: -.01em; }
.contact-phone .cp-ico { font-size: .82em; opacity: .9; }
.contact-bank-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.contact-bank { font-size: 15px; margin: 0 0 32px; }
.contact-bank .cb-y { color: #ffe14d; } .contact-bank .cb-c { color: #c8ecff; }
.contact-flash { max-width: 760px; margin: 0 auto 22px; padding: 13px 18px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.contact-flash.ok  { background: rgba(47,170,108,.92); color: #fff; }
.contact-flash.err { background: rgba(217,51,63,.92); color: #fff; }
.contact-form { max-width: 1040px; margin: 0 auto; }
.cf-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 16px; }
.cf-field { position: relative; }
.cf-field input, .cf-field textarea {
  width: 100%; padding: 22px 16px 8px; font-size: 15px; font-family: inherit;
  background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.38); border-radius: 8px;
  color: #fff; outline: none; transition: background .15s, border-color .15s, box-shadow .15s; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: transparent; }
.cf-field textarea { resize: vertical; min-height: 150px; padding-top: 26px; }
.cf-field input:focus, .cf-field textarea:focus {
  background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.75);
  box-shadow: 0 0 0 3px rgba(79,195,247,.45); }
.cf-field label { position: absolute; left: 16px; top: 15px; font-size: 14px; color: rgba(255,255,255,.78); pointer-events: none; transition: all .15s; }
.cf-field input:focus + label, .cf-field input:not(:placeholder-shown) + label,
.cf-field textarea:focus + label, .cf-field textarea:not(:placeholder-shown) + label {
  top: 6px; font-size: 11px; color: #9fd4ff; font-weight: 600; letter-spacing: .3px; }
.cf-full { margin-bottom: 22px; }
.cf-submit { display: inline-block; padding: 14px 40px; font-size: 16px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg,#4fc3f7,#1565c0); border: 0; border-radius: 30px; cursor: pointer;
  box-shadow: 0 10px 26px rgba(21,101,192,.4); transition: transform .12s, box-shadow .15s; }
.cf-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(21,101,192,.5); }
@media (max-width: 768px) {
  .contact-section { padding: 56px 16px; background-attachment: scroll; }
  .cf-row { grid-template-columns: 1fr; }
}

/* ===== Sub-page hero banner (board pages) ===== */
.sub-hero {
  background-size: cover; background-position: center;
  padding: 64px 20px; text-align: center; color: #fff;
}
.sub-hero .container { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sub-hero-title { font-size: clamp(28px,4vw,42px); font-weight: 800; margin: 0; letter-spacing: -.01em;
  text-shadow: 0 3px 14px rgba(0,0,0,.45); }
.sub-hero-desc { font-size: 16px; margin: 0; opacity: .95; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
/* tools-only board head (title now lives in sub-hero) */
.board-head.board-head-tools-only {
  border-bottom: 1px solid var(--c-line); padding-bottom: 16px; margin-bottom: 24px;
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .sub-hero { padding: 44px 16px; }
}

/* ===== Page hero + 인사말(greeting) creative layout ===== */
.page-hero {
  background-size: cover; background-position: center;
  padding: 92px 20px 78px; color: #fff; text-align: center;
}
.page-hero-crumb { font-size: 13px; letter-spacing: 1px; opacity: .9; margin: 0 0 12px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.page-hero-crumb a { color: #fff; }
.page-hero-crumb span { margin: 0 6px; opacity: .6; }
.page-hero-title { font-size: clamp(32px,5vw,48px); font-weight: 800; margin: 0; text-shadow: 0 3px 16px rgba(0,0,0,.4); }
.page-hero-sub { font-size: 15px; letter-spacing: 4px; margin: 8px 0 0; opacity: .9; font-weight: 500; }

.greeting-section { padding: 80px 20px; background: linear-gradient(180deg,#ffffff 0%,#f4f7fc 100%); }
.greeting-wrap { display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center; }
.greeting-media { position: relative; }
.greeting-media img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 18px; box-shadow: 0 26px 54px rgba(11,61,145,.22); position: relative; z-index: 1;
}
.greeting-frame { position: absolute; left: -20px; bottom: -20px; width: 64%; height: 64%;
  border: 4px solid #1565c0; border-radius: 18px; opacity: .35; z-index: 0; }
.greeting-badge { position: absolute; top: 16px; left: 16px; z-index: 2;
  background: linear-gradient(135deg,#0b3d91,#1565c0); color: #fff; padding: 9px 18px; border-radius: 10px;
  box-shadow: 0 10px 24px rgba(11,61,145,.3); }
.greeting-badge span { font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.greeting-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #1565c0; margin-bottom: 14px; }
.greeting-eyebrow .ge-bar { width: 28px; height: 3px; background: #1565c0; border-radius: 3px; display: inline-block; }
.greeting-quote { font-size: clamp(26px,3vw,36px); font-weight: 800; color: #0b3d91; line-height: 1.25; margin: 0 0 22px; }
.greeting-body p { font-size: 15.5px; line-height: 1.9; color: #44505f; margin: 0 0 12px; }
.greeting-body strong { color: #0b3d91; }
.greeting-sign { margin-top: 24px; font-size: 17px; color: #222; }
.greeting-sign strong { font-size: 21px; }
@media (max-width: 768px) {
  .page-hero { padding: 60px 16px 50px; }
  .greeting-section { padding: 52px 16px; }
  .greeting-wrap { grid-template-columns: 1fr; gap: 40px; }
  .greeting-frame { left: -12px; bottom: -12px; }
}

/* ===== Directions page (오시는 길) ===== */
.page-wide { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.directions-section { padding: 56px 0 84px; background: #f6f8fb; }
.directions-wrap { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 34px; align-items: stretch; }
.directions-info {
  background: #fff; border-radius: 18px; padding: 38px 34px;
  box-shadow: 0 16px 40px rgba(11,61,145,.10); border: 1px solid #e7ecf4;
  display: flex; flex-direction: column;
}
.directions-name { font-size: 26px; font-weight: 700; color: #0b3d91; margin: 12px 0 22px; }
.directions-list { list-style: none; margin: 0 0 26px; padding: 0; }
.directions-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid #eef1f6; }
.directions-list li:first-child { border-top: 0; }
.directions-list .di-ico {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg,#0b3d91,#2f6bd8); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.directions-list strong { display: block; font-size: 13px; letter-spacing: .04em; color: #8a93a3; font-weight: 600; margin-bottom: 4px; }
.directions-list p { margin: 0; font-size: 16.5px; color: #222; line-height: 1.5; }
.directions-list a { color: #0b3d91; }
.directions-nav-btn {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center;
  background: #0b3d91; color: #fff; font-weight: 600; padding: 14px 22px;
  border-radius: 12px; transition: background .2s, transform .2s;
}
.directions-nav-btn:hover { background: #082c6b; transform: translateY(-2px); }
.directions-map { border-radius: 18px; overflow: hidden; box-shadow: 0 16px 40px rgba(11,61,145,.12); min-height: 460px; }
.directions-map iframe { display: block; width: 100%; height: 100%; min-height: 460px; }
@media (max-width: 900px) {
  .page-wide { max-width: 100%; }
  .directions-wrap { grid-template-columns: 1fr; gap: 22px; }
  .directions-map { min-height: 340px; }
  .directions-map iframe { min-height: 340px; }
}

/* ===== Secret (QnA private) post gate ===== */
.lock-ico { color: #c9a227; }
.secret-gate { display: flex; justify-content: center; }
.secret-card {
  max-width: 460px; width: 100%; margin: 30px auto 60px; text-align: center;
  background: #fff; border: 1px solid #e7ecf4; border-radius: 18px;
  padding: 44px 34px; box-shadow: 0 16px 40px rgba(11,61,145,.10);
}
.secret-card .secret-lock { font-size: 46px; margin-bottom: 10px; }
.secret-card h2 { font-size: 23px; color: #0b3d91; margin-bottom: 8px; }
.secret-card p.muted { margin-bottom: 22px; }
.secret-form { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.secret-form input[type=password] {
  flex: 1; max-width: 240px; padding: 11px 14px;
  border: 1px solid #d4dbe6; border-radius: 10px; font-size: 15px;
}
.secret-form input[type=password]:focus { outline: none; border-color: #0b3d91; box-shadow: 0 0 0 3px rgba(11,61,145,.12); }
