/* ── CSS Variables ───────────────────────────────── */
:root {
  --text-main: #1f2d3d;
  --text-sub: #677487;
  --line: #d9e1eb;
  --blue-700: #0f4ea8;
  --blue-800: #0a3f89;
  --blue-900: #0a2f68;
  --bg-soft: #f3f6fa;
  --danger: #d93025;
  --warning: #e8a000;
  --success: #1a7f3c;
}

/* ── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; margin: 0; padding: 0; }
body {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text-main);
  background: #fff;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ── Layout ──────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── Header ──────────────────────────────────────── */
.site-header { background: #fff; margin-bottom: 8px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.utility-row { display: flex; justify-content: flex-end; align-items: center; min-height: 34px; }
.header-top { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 60px; padding: 6px 0 10px; }
.logo-link img { width: 165px; height: 47px; object-fit: contain; }

.utility-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 16px; color: #6f7986; font-size: 12px; font-weight: 400; white-space: nowrap; }
.utility-menu a:hover, .util-admin-link:hover { color: var(--blue-700); }
.util-admin-link { cursor: pointer; }
.util-logout { color: var(--danger) !important; }

/* ── GNB ─────────────────────────────────────────── */
.gnb { min-width: 0; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 14px; }
.menu-item { position: relative; }
.menu-item > a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 28px; min-width: 138px; font-size: 17px; font-weight: 500; letter-spacing: -.2px; white-space: nowrap; }
.menu-item > a:hover { color: var(--blue-700); }
.menu-item.active > a { color: var(--blue-700); border-bottom: 2px solid var(--blue-700); }
.dropdown {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%) translateY(6px);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  width: max-content;
  min-width: fit-content;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(17,43,82,.14), 0 4px 12px rgba(17,43,82,.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 300;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.menu-item.is-open .dropdown,
.menu-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* 드롭다운 연결 안전 영역 (메뉴 항목과 드롭다운 사이 갭 커버) */
.menu-item.is-open .dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.dropdown li { white-space: nowrap; }
.dropdown li + li { border-top: 1px solid #f0f4f9; }
.dropdown a { display: block; padding: 10px 20px; font-size: 14px; color: #2f3f56; transition: background .15s, color .15s; }
.dropdown a:hover { background: #eef4ff; color: var(--blue-700); }

/* ── Flash ───────────────────────────────────────── */
.flash-wrap { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; min-width: 280px; }
.flash { padding: 12px 20px; border-radius: 8px; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.12); animation: slideDown .3s ease; }
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }

/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  background-image: url("../images/mbg2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 히어로 애니메이션 래퍼 — 상단 배치 ── */
.ha-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  z-index: 2;
  position: absolute;
  top: 42px;          /* 상단에서 42px 아래 */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

/* 서브타이틀 — 위에서 내려오며 등장 */
.ha-sub {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: #2a4a7a;
  letter-spacing: 2.5px;
  opacity: 0;
  transform: translateY(-28px);
  animation: haSubReveal 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* 구분선 — 중심에서 바깥으로 확장 */
.ha-bar {
  width: 320px;
  height: 2px;
  overflow: hidden;
  position: relative;
}
.ha-bar-inner {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
    transparent 0%,
    #2478f0 25%,
    #5aa3ff 50%,
    #2478f0 75%,
    transparent 100%);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  animation: haBarReveal 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* 메인 타이틀 — 아래에서 올라오며 등장 */
.ha-main {
  margin: 0;
  font-size: 38px;
  font-weight: 800;
  color: #0d3d8a;
  letter-spacing: -1.5px;
  line-height: 1;
  opacity: 0;
  transform: translateY(36px);
  animation: haMainReveal 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* 영문 태그라인 — 마지막 페이드인 */
.ha-tag {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #4a72a8;
  letter-spacing: 3px;
  opacity: 0;
  animation: haTagReveal 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* ── 키프레임 (8초 주기, 상단↓ / 바 ↔ / 메인↑ / 태그 순서 등장) ── */
@keyframes haSubReveal {
  0%   { opacity: 0; transform: translateY(-28px); }
  12%  { opacity: 1; transform: translateY(0); }
  72%  { opacity: 1; transform: translateY(0); }
  86%  { opacity: 0; transform: translateY(-14px); }
  100% { opacity: 0; transform: translateY(-28px); }
}

@keyframes haBarReveal {
  0%   { transform: scaleX(0); opacity: 0; }
  8%   { opacity: 1; }
  22%  { transform: scaleX(1); opacity: 1; }
  72%  { transform: scaleX(1); opacity: 1; }
  84%  { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(0); opacity: 0; }
}

@keyframes haMainReveal {
  0%   { opacity: 0; transform: translateY(36px); }
  18%  { opacity: 1; transform: translateY(0); }
  72%  { opacity: 1; transform: translateY(0); }
  86%  { opacity: 0; transform: translateY(18px); }
  100% { opacity: 0; transform: translateY(36px); }
}

@keyframes haTagReveal {
  0%   { opacity: 0; }
  28%  { opacity: 0; }
  40%  { opacity: .8; }
  72%  { opacity: .8; }
  84%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ── Content Band (Home) ─────────────────────────── */
.content-band {
  background: #f7f7f8;
  padding: 14px 0 0;
  margin-top: -20px;
  margin-bottom: 20px;
}
.content-grid {
  display: grid;
  grid-template-columns: 1.72fr 0.78fr;
  gap: 5px;
  padding-bottom: 12px;
  align-items: end;
}
.product-box { padding-left: 20px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.block-head h2 { margin: 0; font-size: 26px; letter-spacing: -.5px; color: #163f7d; font-weight: 700; }

/* 홈 제품 카드 (4열) */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.product-card {
  border: 1px solid #d8e0e9;
  border-radius: 10px;
  background: #fff;
  padding: 10px 8px 12px;
  text-align: center;
  transition: box-shadow .2s;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(15,78,168,.12); }
.product-card h3 { margin: 0 0 6px; font-size: 17px; color: #314a6b; font-weight: 600; }
.product-card img { height: 94px; width: 100%; object-fit: contain; margin: 0 auto 8px; }
.product-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9cae5;
  border-radius: 999px;
  color: #275ca9;
  background: #f6faff;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
}
.product-card a:hover { background: #e8f0fc; border-color: #8aadd8; }

/* 홈 서포트 박스 */
.support-box { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; align-items: flex-end; }
.support-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 59px;
  width: 90%;
  border-radius: 12px;
  border: 1px solid #d6deea;
  background: #fff;
  padding: 0 14px;
  transition: border-color .2s;
}
.support-item:hover { border-color: var(--blue-700); }
.support-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #b8c9e7;
  background: #f4f8ff;
  color: #2d63ab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.support-copy { display: flex; flex-direction: column; gap: 3px; }
.support-copy strong { display: block; font-size: 18px; line-height: 1.1; font-weight: 600; }
.support-copy span { font-size: 12px; color: #6d7887; }
.support-main {
  background: linear-gradient(to right, #0d4ba2 0%, #0d57ba 100%);
  border-color: transparent;
  color: #fff;
}
.support-main .support-icon { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.45); color: #fff; }
.support-main .support-copy strong,
.support-main .support-copy span { color: #fff; }

/* 공지사항 미니 (홈) */
.notice-mini { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; }
.notice-mini-title { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--blue-700); }
.notice-mini ul { list-style: none; margin: 0; padding: 0; }
.notice-mini li { border-bottom: 1px solid var(--line); padding: 6px 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-mini li:last-child { border-bottom: none; }
.notice-mini a:hover { color: var(--blue-700); }

/* ── Sub Hero ────────────────────────────────────── */
.sub-hero {
  position: relative;
  height: 160px;
  background:
    linear-gradient(135deg,
      rgba(11,50,114,.88) 0%,
      rgba(21,88,192,.80) 50%,
      rgba(44,136,244,.72) 100%),
    url("../images/sbg.png") center / cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
}
/* decorative circle — top right */
.sub-hero::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
/* decorative circle — bottom center-right */
.sub-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: 200px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.sub-hero .container { position: relative; z-index: 1; }
.sub-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
/* -- 아이콘 박스 -- */
.sub-hero-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.28);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: shIconIn .6s cubic-bezier(.22,.68,0,1.2) both;
}
.sub-hero-icon svg {
  width: 38px;
  height: 38px;
  stroke: #fff;
  fill: none;
  color: #fff;
}
/* -- 텍스트 영역 -- */
.sub-hero-text {
  padding-left: 26px;
  border-left: 1.5px solid rgba(255,255,255,.3);
}
/* -- 슬로건 (영문 태그라인) -- */
.sh-tag {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,.65);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  animation: shTagIn .5s .22s ease both;
}
/* -- 대표 문구 -- */
.sh-slogan {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.4px;
  line-height: 1.35;
  animation: shSloganIn .55s .38s cubic-bezier(.22,.68,0,1.1) both;
}
/* 슬로건 아래 강조선 */
.sh-slogan::after {
  content: '';
  display: block;
  width: 38px;
  height: 2px;
  background: rgba(255,255,255,.55);
  margin-top: 10px;
  transform-origin: left;
  animation: shLineGrow .5s .62s ease both;
}

/* ── Sub Hero 입장 애니메이션 ──────────────────────── */
@keyframes shIconIn {
  from { opacity: 0; transform: translateX(-22px) scale(.85); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes shTagIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shSloganIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shLineGrow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* ── Sub Layout (제품/게시판/관리자) ─────────────── */
.sub-wrap { padding: 40px 0 80px; }
.sub-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }

.sub-nav h3 { font-size: 16px; font-weight: 700; padding: 12px 16px; background: var(--blue-800); color: #fff; border-radius: 8px 8px 0 0; margin: 0; }
.sub-nav ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-top: none; border-radius: 0 0 8px 8px; overflow: hidden; }
.sub-nav li a { display: block; padding: 10px 16px; font-size: 14px; color: var(--text-main); border-bottom: 1px solid var(--line); }
.sub-nav li:last-child a { border-bottom: none; }
.sub-nav li a:hover { background: var(--bg-soft); color: var(--blue-700); }
.sub-nav li.active a { background: #eef4ff; color: var(--blue-700); font-weight: 600; }
.admin-subnav { padding: 10px 10px 0; }
.logout-link { color: var(--danger) !important; }

.sub-content-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; border-bottom: 2px solid var(--blue-700); padding-bottom: 12px; }
.sub-content-head .sub-content-title { margin: 0; padding-bottom: 0; border-bottom: none; }
.sub-content-title { font-size: 20px; font-weight: 700; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--blue-700); }
.sub-content-sub { font-size: 14px; font-weight: 400; color: var(--text-sub); margin-left: 8px; }

/* ── 회사소개 서브 레이아웃 (원본 스타일) ─────────── */
.company-sub-wrap {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 52px;
  padding: 34px 0 60px;
}

/* 서브 LNB (원본) */
.sub-lnb-title { margin: 0 0 20px; font-size: 24px; letter-spacing: -1.2px; color: #243449; font-weight: 700; }
.sub-lnb-menu {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid #d5dde8;
  border-bottom: 1px solid #d5dde8;
}
.sub-lnb-menu li + li { border-top: 1px solid #d5dde8; }
.sub-lnb-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #2d3b4d;
  letter-spacing: -.3px;
}
.sub-lnb-link:hover { color: #1b72bf; }
.sub-lnb-link.is-active { color: #1175c4; }
.sub-lnb-link.is-active::after { content: "›"; font-size: 26px; line-height: 1; }

/* 서브 전화 위젯 */
.sub-contact {
  border: 1px solid #bcc6d2;
  border-radius: 6px;
  background: linear-gradient(to bottom, #ffffff 0%, #f2f3f4 100%);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sub-contact-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f19ac8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.sub-contact-copy { display: flex; flex-direction: column; }
.sub-contact-copy strong { color: #f25c21; font-size: 20px; line-height: 1.05; letter-spacing: -.2px; }
.sub-contact-copy span { color: #505b68; font-size: 12px; }

/* 회사소개 콘텐츠 제목 */
.company-content-title {
  margin: 0 0 20px;
  color: #203349;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -1px;
  font-weight: 700;
}

/* 서브 메시지 박스 */
.sub-message-box {
  border: 1px solid #d7e0ec;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(16,41,77,.08);
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.sub-message-image { border: 1px solid #ced8e7; border-radius: 4px; overflow: hidden; align-self: center; background: #fff; }
.sub-message-image img { width: 100%; height: 110px; object-fit: cover; }
.sub-message-copy {
  align-self: center;
  border-left: 1px solid #dce4ef;
  padding-left: 18px;
  color: #405064;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -.3px;
}
.sub-message-copy strong { color: #2b78c7; font-weight: 700; }

/* 인사말 */
.intro-card {
  border: 1px solid #d8e2ee;
  border-radius: 14px;
  background: linear-gradient(140deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 12px 26px rgba(21,53,95,.08);
  padding: 22px 24px;
}
.intro-lead { color: #2f3f51; font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.intro-points { margin: 14px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.intro-points li {
  position: relative;
  margin: 0;
  padding: 9px 12px 9px 30px;
  border: 1px solid #dbe5f3;
  border-radius: 10px;
  background: #ffffff;
  color: #485667;
  font-size: 14px;
  line-height: 1.55;
}
.intro-points li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #3fa6ff 0%, #2b78c7 100%);
}
.intro-sign { margin-top: 12px; text-align: right; color: #596577; font-size: 13px; }
.sub-body p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; letter-spacing: -.1px; color: #4a5563; word-break: keep-all; }
.sub-body p strong { color: #2a70c2; }
.sub-body p.point { color: #217d90; font-weight: 700; }

/* 회사연혁 */
.sub-history { margin: 0; padding: 4px 0 0 20px; }
.sub-history li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e3e8ef;
  font-size: 15px;
  line-height: 1.7;
  color: #455261;
  list-style: none;
}
.sub-history .year { display: inline-flex; align-items: flex-start; font-size: 24px; line-height: 1.2; color: #2f73c5; font-weight: 700; }
.sub-history .event-group { display: grid; gap: 5px; }
.sub-history .month { display: inline-block; min-width: 32px; color: #2f73c5; font-weight: 700; }
.sub-history .indent { padding-left: 32px; }

/* 조직도 */
.org-chart-v2 { position: relative; padding: 6px 4px 4px; }
.org-ceo {
  width: 128px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #47abef 0%, #1b74c7 100%);
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  padding: 11px 10px;
  line-height: 1;
}
.org-rnd-wrap { position: relative; width: 250px; margin: 12px 0 12px auto; display: grid; justify-items: end; gap: 8px; }
.org-rnd-wrap::before {
  content: "";
  position: absolute;
  left: -122px;
  top: 16px;
  width: 120px;
  border-top: 1px solid #cfd8e3;
}
.org-rnd-main {
  border-radius: 999px;
  background: linear-gradient(180deg, #47abef 0%, #1b74c7 100%);
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 18px;
  line-height: 1;
}
.org-rnd-sub { display: flex; gap: 8px; }
.org-pill-vertical {
  width: 40px;
  min-height: 92px;
  border-radius: 20px;
  background: linear-gradient(180deg, #48acef 0%, #1b76c8 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}
.org-main-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
  padding-top: 20px;
}
.org-main-row::before {
  content: "";
  position: absolute;
  left: 4%; right: 4%; top: 0;
  border-top: 1px solid #cfd8e3;
}
.org-main-row::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -124px;
  bottom: calc(100% - 1px);
  border-left: 1px solid #cfd8e3;
}
.org-dept { display: grid; justify-items: center; gap: 8px; }
.org-dept-title {
  min-width: 112px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #48acef 0%, #1b76c8 100%);
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  padding: 10px 14px;
  line-height: 1;
}
.org-team-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  padding-top: 10px;
}
.org-team-row::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  height: 10px;
  border-left: 1px solid #cfd8e3;
}
.org-team-box {
  width: 46px;
  min-height: 98px;
  border: 1px solid #d3dbe7;
  border-radius: 3px;
  background: #fff;
  color: #4b5566;
  font-size: 14px;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  line-height: 1.2;
}

/* 오시는길 - CSS 지도 */
.route-map {
  border: 2px solid #b7deef;
  border-radius: 4px;
  background: #f8fbfd;
  padding: 14px 14px 10px;
  margin-bottom: 16px;
}
.route-head { display: inline-flex; align-items: center; gap: 8px; color: #2a86b6; font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.route-phone-icon { width: 24px; height: 24px; border-radius: 4px; background: #d1e4ef; color: #286a8a; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.route-canvas { position: relative; height: 430px; background: #f8fbfd; overflow: hidden; }
.route-road { position: absolute; background: #c9cdd1; border-radius: 999px; }
.route-h { left: 8%; right: 5%; height: 12px; }
.route-h1 { top: 58px; } .route-h2 { top: 162px; } .route-h3 { top: 266px; } .route-h4 { top: 328px; }
.route-v { width: 16px; top: 18px; bottom: 12px; }
.route-v1 { right: 24%; }
.route-v2 { right: 19%; background: #d7eef7; }
.route-circle { position: absolute; right: 20.2%; top: 42px; width: 48px; height: 48px; border-radius: 50%; background: #b8bdc2; }
.route-dir { position: absolute; color: #616870; font-size: 15px; font-weight: 600; }
.route-dir-left.top { left: 8%; top: 34px; }
.route-dir-left.mid { left: 8%; top: 245px; }
.route-dir-left.bottom { left: 8%; top: 307px; }
.route-dir-right.top { right: 5%; top: 56px; }
.route-dir-right.bottom { right: 5%; top: 325px; }
.route-dir-down { right: 19%; bottom: 0; }
.route-river { position: absolute; right: 18.8%; top: 150px; color: #4f8eac; font-size: 14px; font-weight: 700; writing-mode: vertical-rl; }
.route-main-road { position: absolute; right: 20.7%; top: 318px; background: #2eb7c4; color: #fff; border-radius: 2px; font-size: 13px; font-weight: 700; padding: 2px 6px; }
.route-point { position: absolute; color: #60666d; font-size: 14px; font-weight: 600; padding-left: 15px; }
.route-point::before { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #f08a00; box-shadow: 0 0 0 2px rgba(240,138,0,.2); }
.route-point.p1  { right: 24%; top: 2px; }
.route-point.p2  { right: 25%; top: 28px; }
.route-point.p3  { right: 18%; top: 86px; }
.route-point.p4  { right: 5%;  top: 106px; }
.route-point.p5  { left: 28%; top: 106px; }
.route-point.p6  { right: 21%; top: 132px; }
.route-point.p7  { right: 21%; top: 164px; }
.route-point.p8  { right: 26%; top: 206px; }
.route-point.p9  { right: 23%; top: 258px; }
.route-point.p10 { right: 5%;  top: 236px; }
.route-point.p11 { right: 5%;  top: 308px; }
.route-point.p12 { right: 20%; top: 307px; }
.route-point.p13 { right: 20%; top: 328px; }
.route-point.p14 { left: 34%; top: 328px; }
.route-point.p15 { right: 24%; top: 370px; }
.route-company { position: absolute; left: 35%; top: 350px; color: #3158b8; font-size: 44px; font-weight: 700; letter-spacing: -.5px; }
.route-info { border-top: 1px solid #dde4ee; padding-top: 10px; }
.route-info p { margin: 0 0 4px; font-size: 14px; color: #4a5563; line-height: 1.8; }

/* ── Buttons ─────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 20px; border-radius: 7px; font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: all .18s; white-space: nowrap; }
.btn-primary { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.btn-primary:hover { background: var(--blue-800); border-color: var(--blue-800); }
.btn-outline { background: #fff; color: var(--blue-700); border-color: var(--blue-700); }
.btn-outline:hover { background: #eef4ff; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b52820; }
.btn-danger-outline { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-danger-outline:hover { background: #fdf0ef; }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-warning:hover { background: #c98900; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 5px; }
.btn-block { width: 100%; }
.btn-text-sm { background: none; border: none; color: var(--text-sub); font-size: 12px; cursor: pointer; padding: 2px 6px; }
.btn-text-sm:hover { color: var(--danger); }

/* ── 제품 좌측 아코디언 사이드바 ────────────────── */
.prod-side { min-width: 0; }
.prod-side-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a3a6b;
  letter-spacing: -.5px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #c5d3e8;
}
.prod-acc { border-top: 1px solid #d5dde8; }
.prod-acc-item { border-bottom: 1px solid #d5dde8; }
.prod-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #2d3b4d;
  transition: color .15s;
  cursor: pointer;
}
.prod-acc-head:hover { color: var(--blue-700); background: #f4f8ff; }
.prod-acc-head.is-active { color: var(--blue-700); background: #edf4ff; }
.acc-chevron {
  font-size: 22px;
  line-height: 1;
  transition: transform .22s ease;
  color: #8aa5cb;
}
.prod-acc-item.is-open .acc-chevron { transform: rotate(90deg); color: var(--blue-700); }
.prod-acc-body {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  background: #f8fafd;
  transition: max-height .28s ease;
}
.prod-acc-item.is-open .prod-acc-body { max-height: 600px; }
.prod-acc-body li a {
  display: block;
  padding: 7px 14px 7px 22px;
  font-size: 13px;
  color: #4a5c75;
  transition: color .12s;
}
.prod-acc-body li a:hover,
.prod-acc-body li a.is-current { color: var(--blue-700); font-weight: 600; }
.acc-empty { padding: 7px 14px 7px 22px; font-size: 13px; color: #aab; }

/* 사이드 연락처 */
.prod-side-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid #c8d5e5;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fff 0%, #f2f5fa 100%);
}
.psc-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f19ac8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.psc-copy { display: flex; flex-direction: column; }
.psc-copy strong { font-size: 16px; color: #e05018; font-weight: 700; }
.psc-copy span { font-size: 11px; color: #7a8b9c; }
.prod-side-admin { margin-top: 12px; }

/* 제품 목록 타이틀 */
.prod-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.prod-list-title {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: #1a3a6b;
}
.prod-list-sub { margin: 0; font-size: 13px; color: var(--text-sub); }

/* 서브카테고리 탭 (전체폭 균등 분할) */
.subcat-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.subcat-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border-radius: 10px;
  border: 2px solid #c8d8ed;
  background: #f5f8fd;
  font-size: 13px;
  font-weight: 600;
  color: #4a6080;
  white-space: nowrap;
  text-align: center;
  letter-spacing: -.3px;
  transition: all .18s ease;
  line-height: 1.2;
}
.subcat-tab:hover {
  border-color: #6aaaf0;
  color: var(--blue-700);
  background: #eef5ff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(15,78,168,.1);
}
.subcat-tab.is-active {
  background: linear-gradient(135deg, #2478f0 0%, #0f4ea8 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 5px 18px rgba(15,78,168,.35);
  transform: translateY(-1px);
}

/* ── Product List ────────────────────────────────── */
.prod-list-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod-card {
  position: relative;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.prod-card:hover { box-shadow: 0 8px 24px rgba(15,78,168,.13); transform: translateY(-2px); }
.prod-card-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 8px;
  min-height: 80px;
}
/* 원본 크기 유지 — max-width 로 컨테이너 초과만 방지, 절대 업스케일 없음 */
.prod-card-img-wrap img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}
.prod-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,78,168,.52);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .22s;
}
.prod-card-img-wrap:hover .prod-card-overlay { opacity: 1; }
.prod-no-img {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 13px;
  background: var(--bg-soft);
}
/* ── 관리자 아이콘 오버레이 ──────────────────────── */
.prod-card-admin {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity .2s ease;
}
.prod-card:hover .prod-card-admin { opacity: 1; }
/* 아이콘 버튼 공통 */
.pca-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.pca-btn:hover { transform: scale(1.13); box-shadow: 0 4px 14px rgba(0,0,0,.32); }
.pca-btn svg  { width: 16px; height: 16px; stroke: #fff; fill: none; }
/* 수정 — 황금색 */
.pca-edit { background: rgba(230,155,0,.92); }
/* 삭제 — 빨간색 */
.pca-del  { background: rgba(210,45,45,.92); }
.admin-btns { margin-top: 8px; display: flex; gap: 4px; }

/* req-hint */
.req-hint { font-size: 12px; font-weight: 400; color: var(--text-sub); margin-left: 6px; }

/* ── Product Detail ──────────────────────────────── */
/* 타이틀 헤더 */
.pd-header {
  margin-bottom: 28px;
  padding: 6px 0 18px 18px;
  border-left: 4px solid var(--blue-700);
  border-bottom: 1px solid #dce7f8;
  position: relative;
}
.pd-header::after {
  content: '';
  position: absolute;
  left: -4px;
  bottom: -1px;
  width: 72px;
  height: 2px;
  background: var(--blue-700);
}
.pd-badge {
  display: inline-block;
  background: #eef4ff;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: .3px;
}
.pd-name {
  font-size: 20px;
  font-weight: 700;
  color: #1a3a6b;
  margin: 0;
  letter-spacing: -.3px;
  line-height: 1.35;
}
.pd-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;  /* 우측 정렬 */
  margin-top: 20px;
}

/* 이미지 영역 — 원본 크기 & 선명도 최적화 */
.pd-images {
  margin-bottom: 24px;
}
/* 이미지 박스 — 콘텐츠 폭 100% */
.pd-img-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid #dde6f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.pd-img-wrap:last-child { margin-bottom: 0; }
.pd-img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}
.pd-no-img {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--text-sub);
  font-size: 14px;
}
/* 하위 호환 */
.prod-sub-badge { display: inline-block; background: #eef4ff; color: var(--blue-700); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; margin-bottom: 6px; }
.prod-detail-desc { border-top: 1px solid var(--line); padding-top: 28px; }
.prod-detail-desc h4 { font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.prod-desc-body { font-size: 14px; line-height: 1.8; color: #3a4a5c; }
.spec-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.spec-table th { background: var(--bg-soft); padding: 10px 12px; text-align: left; font-weight: 600; border: 1px solid var(--line); width: 38%; }
.spec-table td { padding: 10px 12px; border: 1px solid var(--line); }

/* ── Board ───────────────────────────────────────── */
.board-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.board-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.board-table th { background: var(--bg-soft); padding: 10px; border-top: 2px solid var(--blue-700); border-bottom: 1px solid var(--line); text-align: center; font-weight: 600; }
.board-table td { padding: 10px; border-bottom: 1px solid var(--line); }
.board-title-link:hover { color: var(--blue-700); }
.comment-count { color: var(--blue-700); font-size: 12px; font-weight: 600; margin-left: 4px; }
.board-notice-row { background: #f9fbff; }
.notice-badge { display: inline-block; background: var(--blue-700); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.board-empty { color: var(--text-sub); padding: 40px !important; }
.row-inactive { opacity: .5; }
.text-center { text-align: center; }
.text-sub { color: var(--text-sub); font-size: 12px; }

/* ── Pagination ──────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 4px; margin: 24px 0; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; color: var(--text-main); }
.page-btn:hover { border-color: var(--blue-700); color: var(--blue-700); }
.page-btn.active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.page-ellipsis { display: inline-flex; align-items: center; padding: 0 4px; color: var(--text-sub); }

/* ── Board Search ────────────────────────────────── */
.board-search { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.board-search input { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; width: 260px; font-size: 14px; }
.board-search input:focus { outline: none; border-color: var(--blue-700); }

/* ── Board View ──────────────────────────────────── */
.view-header { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
.view-title { font-size: 20px; font-weight: 700; margin: 6px 0 10px; }
.view-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-sub); }
.view-body { font-size: 15px; line-height: 1.9; min-height: 120px; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 16px; }
.view-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.view-edit-group { display: flex; gap: 8px; }

/* ── 비밀번호 오류 메시지 ───────────────────── */
.pw-error-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #c0392b;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.pw-err-icon { font-size: 16px; flex-shrink: 0; }

/* 수정 폼 상단 오류 배너 */
.pw-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff5f5;
  border: 1.5px solid #fca5a5;
  border-left: 4px solid #e74c3c;
  border-radius: 8px;
  color: #c0392b;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 18px;
  margin-bottom: 20px;
  animation: fadeInDown .3s ease;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 오류 상태 input 테두리 */
.input-error { border-color: #e74c3c !important; background: #fff8f8; }
.input-error:focus { border-color: #c0392b !important; }

/* ── 비밀번호 인라인 섹션 (삭제 패널 등) ───── */
.pw-section {
  background: #f8faff;
  border: 1px solid #dde6f0;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.pw-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pw-inline-form.mt6 { margin-top: 8px; }
.pw-inline-label {
  font-size: 13px;
  font-weight: 600;
  color: #4a6fa5;
  white-space: nowrap;
}
.pw-inline-input {
  flex: 1;
  min-width: 160px;
  max-width: 240px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13.5px;
  transition: border-color .18s;
}
.pw-inline-input:focus { outline: none; border-color: var(--blue-700); }

/* ── Comments ────────────────────────────────────── */
.comment-section { margin-top: 40px; border-top: 2px solid var(--line); padding-top: 28px; }
.comment-title { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.comment-count-num { color: var(--blue-700); }
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment-item { border-bottom: 1px solid var(--line); padding: 14px 0; }

/* 댓글 메타 (작성자/날짜/버튼 한 줄) */
.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 6px;
}
.comment-author { font-weight: 600; }
.comment-date { color: var(--text-sub); }
.comment-btns { margin-left: auto; display: flex; gap: 4px; }
.btn-text-sm {
  background: none;
  border: none;
  padding: 2px 6px;
  font-size: 12px;
  color: var(--text-sub);
  cursor: pointer;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.btn-text-sm:hover { background: #eef3ff; color: var(--blue-700); }
.btn-text-danger { color: #e74c3c; }
.btn-text-danger:hover { background: #fff0ef; color: #c0392b; }

.comment-body { font-size: 14px; line-height: 1.7; margin: 0 0 4px; }

/* 댓글 수정/삭제 인라인 패널 */
.comment-pw-section {
  background: #f8faff;
  border: 1px solid #dde6f0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 8px;
}
.comment-edit-form-inner { display: flex; flex-direction: column; gap: 0; }
.comment-edit-ta {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
  margin-bottom: 0;
}
.comment-edit-ta:focus { outline: none; border-color: var(--blue-700); }

.comment-empty { color: var(--text-sub); font-size: 14px; padding: 16px 0; }
.comment-form { background: var(--bg-soft); border-radius: 10px; padding: 16px; }
.comment-form-row { display: flex; gap: 10px; margin-bottom: 10px; }
.comment-form-row input { flex: 1; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; resize: vertical; }
.comment-form-submit { text-align: right; margin-top: 10px; }

/* ── Write Form ──────────────────────────────────── */
.write-form { display: flex; flex-direction: column; gap: 16px; }
.write-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.write-row input[type=text], .write-row input[type=password], .write-row input[type=number], .write-row select, .write-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 14px; transition: border-color .18s;
}
.write-row input:focus, .write-row select:focus, .write-row textarea:focus { outline: none; border-color: var(--blue-700); }
.write-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.write-row-check { font-size: 14px; }
.write-check { display: flex; align-items: flex-end; padding-bottom: 2px; }
.write-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }
.req { color: var(--danger); margin-left: 2px; }
.field-hint { font-size: 12px; color: var(--text-sub); margin: 4px 0 0; }

/* ── Spec form grid ──────────────────────────────── */
.spec-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.spec-form-item .spec-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.spec-input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.spec-input:focus { outline: none; border-color: var(--blue-700); }

/* ── Admin tables ────────────────────────────────── */
.admin-thumb { width: 50px; height: 40px; object-fit: contain; border-radius: 4px; }
.admin-thumb-lg { width: 120px; height: 90px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; }
.current-img { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.img-hint { font-size: 12px; color: var(--text-sub); margin: 0; }
.no-thumb { color: var(--text-sub); font-size: 13px; }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-tab { padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px; font-size: 13px; }
.cat-tab.active { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.cat-tab:hover:not(.active) { background: var(--bg-soft); border-color: var(--blue-700); color: var(--blue-700); }

/* ── Dashboard ───────────────────────────────────── */
.dash-grid { display: flex; flex-direction: column; gap: 32px; }
.dash-section-title { font-size: 16px; font-weight: 700; margin: 0 0 14px; color: var(--blue-800); }
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dash-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; border: 1px solid var(--line); border-radius: 10px; text-align: center; transition: box-shadow .2s; gap: 4px; }
.dash-card:hover { box-shadow: 0 6px 20px rgba(15,78,168,.1); border-color: var(--blue-700); }
.dash-card-num { font-size: 32px; font-weight: 700; color: var(--blue-700); }
.dash-card-label { font-size: 13px; color: var(--text-sub); }
.dash-card-action { font-size: 12px; color: var(--blue-700); margin-top: 4px; }
.dash-card-board .dash-card-num { color: var(--success); }
.dash-quick { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Error page ──────────────────────────────────── */
.error-page { padding: 100px 0; text-align: center; }
.error-code { font-size: 80px; font-weight: 700; color: var(--blue-700); margin: 0 0 8px; }
.error-msg { font-size: 18px; color: var(--text-sub); margin: 0 0 28px; }

/* ── Empty box ───────────────────────────────────── */
.empty-box { text-align: center; padding: 60px 20px; color: var(--text-sub); }
.empty-box p { margin: 0 0 16px; }

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  background: #0f4fa9;
  color: #cfdcf0;
  border-top: 1px solid #0e4697;
}
.site-footer p {
  margin: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
}

/* ── Admin Modal ─────────────────────────────────── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-backdrop[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 14px; padding: 36px 32px; width: 360px; position: relative; box-shadow: 0 24px 48px rgba(0,0,0,.2); animation: modalIn .25s ease; }
@keyframes modalIn { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 22px; color: var(--text-sub); cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text-main); }
.modal-title { font-size: 20px; font-weight: 700; margin: 0 0 24px; text-align: center; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-row input { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.form-row input:focus { outline: none; border-color: var(--blue-700); }
.modal-error { color: var(--danger); font-size: 13px; margin: 8px 0; text-align: center; }

/* ── Mobile Hamburger & Drawer ───────────────────── */
.mob-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  transition: background .2s;
  flex-shrink: 0;
}
.mob-toggle:hover { background: rgba(11,50,114,.08); }
.mob-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a3a6b;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
}
.mob-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mob-toggle.is-open span:nth-child(2) { opacity: 0; width: 0; }
.mob-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.48);
  z-index: 900;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.mob-overlay.is-active { opacity: 1; pointer-events: auto; }

.mob-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 950;
  overflow-y: auto;
  transition: right .3s cubic-bezier(.22,.68,0,1.1);
  box-shadow: -6px 0 30px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
}
.mob-nav.is-open { right: 0; }

.mob-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #0b3272;
  flex-shrink: 0;
}
.mob-nav-logo { height: 30px; object-fit: contain; filter: brightness(0) invert(1); }
.mob-nav-close {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.mob-nav-close:hover { background: rgba(255,255,255,.28); }

.mob-util {
  display: flex;
  border-bottom: 1px solid #e8edf5;
  flex-shrink: 0;
}
.mob-util a {
  flex: 1;
  text-align: center;
  padding: 9px 4px;
  font-size: 11.5px;
  color: #4a6fa5;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .5px;
  border-right: 1px solid #e8edf5;
}
.mob-util a:last-child { border-right: none; }
.mob-util a:hover { background: #f0f5ff; color: #0b3272; }

.mob-menu { list-style: none; margin: 0; padding: 4px 0; flex: 1; }
.mob-menu-item { border-bottom: 1px solid #f0f4fa; }
.mob-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #1a3a6b;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background .15s, color .15s;
}
.mob-menu-head:hover { background: #f5f8ff; color: #1558c0; }
.mob-acc-arrow { font-size: 18px; color: #9aadcc; transition: transform .25s ease; line-height: 1; }
.mob-menu-item.is-open .mob-acc-arrow { transform: rotate(90deg); }

.mob-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f7faff;
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
}
.mob-menu-item.is-open .mob-sub { max-height: 600px; }
.mob-sub li a {
  display: block;
  padding: 10px 18px 10px 30px;
  font-size: 13.5px;
  color: #4a6fa5;
  text-decoration: none;
  border-top: 1px solid #eaf0fa;
}
.mob-sub li:first-child a { border-top: none; }
.mob-sub li a:hover { color: #0b3272; background: #eef3ff; }

.mob-nav-contact {
  padding: 16px 18px;
  border-top: 1px solid #e8edf5;
  background: #f5f8ff;
  flex-shrink: 0;
}
.mob-nav-contact strong { display: block; font-size: 17px; color: #0b3272; font-weight: 700; letter-spacing: .5px; }
.mob-nav-contact span { font-size: 12px; color: #7a94ba; margin-top: 3px; display: block; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .utility-row { display: none; }
  .gnb { display: none; }
  .mob-toggle { display: flex; }
  .header-top { display: flex; justify-content: space-between; align-items: center; gap: 0; padding: 8px 0; }
}
@media (max-width: 1024px) {
  .header-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .menu { flex-wrap: wrap; justify-content: flex-start; padding: 6px 0 12px; }
  .menu-item > a { min-height: 50px; font-size: 14px; padding: 0 10px; min-width: 0; }
  .content-grid { grid-template-columns: 1fr; gap: 24px; }
  .support-box { align-items: stretch; }
  .support-item { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card img { height: 140px; }
  .company-sub-wrap { grid-template-columns: 1fr; gap: 24px; }
  .sub-layout { grid-template-columns: 1fr; }
  .sub-nav { display: none; }
  .prod-side { display: none; }
  .subcat-tabs { flex-wrap: wrap; }
  .subcat-tab { flex: 0 0 50%; border-bottom: 1px solid #c3d0e3; }
}
@media (max-width: 1100px) {
  .prod-list-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .prod-list-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-detail { grid-template-columns: 1fr; }
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .spec-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .logo-link img { width: 140px; height: 40px; }
  .product-grid { grid-template-columns: 1fr; }
  .prod-list-grid { grid-template-columns: 1fr; }
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .write-row-half { grid-template-columns: 1fr; }
  .menu { gap: 4px; }
  .menu-item > a { min-width: 70px; padding: 0 8px; font-size: 13px; }
  .site-footer p { padding: 12px 0; min-height: auto; line-height: 1.5; }
  .sub-message-box { grid-template-columns: 1fr; }
  .org-main-row { grid-template-columns: 1fr; }
  .subcat-tabs { flex-wrap: wrap; }
  .subcat-tab { flex: 0 0 calc(50% - 4px); }
}

/* ── 제품 등록/수정 폼 (pf-*) ────────────────────── */
.pf-page-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--blue-700);
  color: #1a3a6b;
}
.pf-form { display: flex; flex-direction: column; gap: 0; }
.pf-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 0 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid #edf0f5;
}
.pf-row:last-of-type { border-bottom: none; }
.pf-label {
  font-size: 14px;
  font-weight: 700;
  color: #2d3b4d;
  padding-top: 10px;
  line-height: 1.3;
}
.pf-hint { display: block; font-size: 11px; font-weight: 400; color: #8fa0b5; margin-top: 3px; }
.pf-req { color: #d93025; margin-left: 3px; }
.pf-value-text { font-size: 15px; font-weight: 600; color: var(--blue-700); padding-top: 10px; }

/* 카테고리 탭 (전체폭) */
.pf-cat-tabs {
  display: flex;
  gap: 7px;
}
.pf-cat-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 8px;
  border-radius: 10px;
  border: 1.5px solid #c8d8ed;
  background: #f5f8fd;
  font-size: 14px;
  font-weight: 500;
  color: #5a6e87;
  text-align: center;
  transition: all .18s ease;
}
.pf-cat-tab:hover { border-color: var(--blue-700); color: var(--blue-700); background: #eef5ff; }
.pf-cat-tab.is-active {
  background: linear-gradient(135deg, #2478f0 0%, #0f4ea8 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(15,78,168,.32);
}

/* 서브카테고리 탭 (radio 버튼형) */
.pf-subcat-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.pf-subcat-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1.5px solid #c8d8ed;
  background: #f5f8fd;
  font-size: 13px;
  font-weight: 500;
  color: #5a6e87;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}
.pf-subcat-tab:hover { border-color: var(--blue-700); color: var(--blue-700); background: #eef5ff; }
.pf-subcat-tab.is-active {
  background: linear-gradient(135deg, #2478f0 0%, #0f4ea8 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(15,78,168,.28);
}

/* 입력 필드 */
.pf-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d0daea;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-main);
  transition: border-color .18s, box-shadow .18s;
  background: #fff;
}
.pf-input:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(15,78,168,.1);
}
.pf-input-sm { width: 140px !important; }

/* 이미지 업로드 */
.pf-img-upload { display: flex; flex-direction: column; gap: 10px; }
.pf-img-preview {
  position: relative;
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  max-width: 200px;
}
.pf-img-preview img { width: 200px; height: 140px; object-fit: contain; display: block; background: var(--bg-soft); }
.pf-img-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15,78,168,.75);
  color: #fff;
  font-size: 11px;
  text-align: center;
  padding: 4px 0;
}
.pf-file-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.pf-file-input { display: none; }
.pf-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 18px;
  border-radius: 7px;
  border: 1.5px solid #b0c0d8;
  background: #f5f8fd;
  font-size: 13px;
  font-weight: 600;
  color: #3a5278;
  transition: all .15s;
}
.pf-file-label:hover .pf-file-btn { border-color: var(--blue-700); color: var(--blue-700); background: #eef5ff; }
.pf-file-name { font-size: 13px; color: var(--text-sub); }
.pf-file-hint { margin: 0; font-size: 11px; color: #aab0bb; }

/* 액션 버튼 */
.pf-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #edf0f5;
}
.btn-lg { padding: 12px 32px; font-size: 16px; border-radius: 9px; }
