/* =========================================================
   밀양굿모닝병원 — Design System
   톤: 클린 신뢰 의료 (teal/green primary, deep navy text)
   ========================================================= */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  /* Brand — 흰검 모노톤 (charcoal/black + white/gray) */
  --teal-900: #0c0d0e;
  --teal-800: #16181a;
  --teal-700: #17181a;
  --teal-600: #1f2123;  /* primary (버튼·헤더 강조) */
  --teal-500: #2c2f33;
  --teal-400: #454a50;  /* 라인·점 강조 */
  --teal-100: #e3e6e8;
  --teal-50:  #f4f5f6;

  --ink-900: #15171a;
  --ink-700: #34373c;
  --ink-500: #5b6066;
  --ink-400: #868c93;
  --line:    #e7e9ec;
  --bg:      #ffffff;
  --bg-soft: #f6f7f8;
  --bg-mint: #f5f6f7;

  --gold: #8a7a52;
  --shadow-sm: 0 1px 3px rgba(20,22,26,.06), 0 1px 2px rgba(20,22,26,.04);
  --shadow:    0 10px 30px -12px rgba(20,22,26,.16);
  --shadow-lg: 0 24px 60px -20px rgba(20,22,26,.24);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --header-h: 80px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: -.01em;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { line-height: 1.25; letter-spacing: -.025em; color: var(--ink-900); font-weight: 800; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .08em;
  color: var(--teal-600); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal-400); border-radius: 2px; }
.section-title { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 0; }
.section-lead { color: var(--ink-500); font-size: 18px; margin-top: 16px; max-width: 640px; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 1.5px solid transparent; cursor: pointer; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--teal-700); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: #fff; color: var(--teal-700); border-color: var(--teal-100); }
.btn-ghost:hover { border-color: var(--teal-400); background: var(--teal-50); }
.btn-white { background: #fff; color: var(--teal-700); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn svg { width: 19px; height: 19px; flex: none; }
/* 텍스트 컨텍스트 인라인 아이콘 크기 고정 (SVG 무한확대 방지) */
.hero-badge svg, .d-more svg, .qna-q .qtoggle svg { width: 18px; height: 18px; flex: none; }
.hours-card h3 svg, .hours-tel svg { width: 26px; height: 26px; flex: none; }
.loc-row .lr-ic svg, .prose h3 svg { width: 20px; height: 20px; flex: none; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); background: transparent;
  border-bottom: 1px solid transparent; transition: height .3s var(--ease), border-color .3s, box-shadow .3s;
}
/* 배경 블러는 별도 레이어로 — 헤더 자체에 filter를 두면 fixed 자식(모바일 드로어)의
   컨테이닝 블록이 헤더로 잡혀 레이아웃이 깨진다. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); height: 70px; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; color: var(--ink-900); }
.brand img { height: 34px; width: auto; }
.brand .brand-sub { display: block; font-size: 11px; font-weight: 600; color: var(--ink-400); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a {
  display: flex; align-items: center; height: var(--header-h); padding: 0 18px;
  font-weight: 700; font-size: 17px; color: var(--ink-700); transition: color .2s;
}
.nav > li > a:hover, .nav > li.active > a { color: var(--teal-600); }
.nav > li > a::after {
  content: ""; position: absolute; bottom: 22px; left: 18px; right: 18px; height: 2px;
  background: var(--teal-500); border-radius: 2px; transform: scaleX(0); transition: transform .25s var(--ease);
}
.nav > li:hover > a::after, .nav > li.active > a::after { transform: scaleX(1); }

.dropdown {
  position: absolute; top: calc(var(--header-h) - 14px); left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transition: all .22s var(--ease);
}
.nav > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block; padding: 11px 16px; border-radius: 9px; font-size: 16px; font-weight: 600; color: var(--ink-700);
  transition: all .18s;
}
.dropdown a:hover { background: var(--teal-50); color: var(--teal-700); padding-left: 20px; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-tel { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.header-tel small { font-size: 12px; color: var(--ink-400); font-weight: 600; }
.header-tel b { font-size: 20px; color: var(--teal-700); font-weight: 800; letter-spacing: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; border: none; background: none; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink-700); border-radius: 2px; transition: all .3s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO (home)
   ========================================================= */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(12,13,14,.9) 0%, rgba(20,22,24,.68) 45%, rgba(30,33,36,.28) 100%);
}
.hero-inner { padding-top: calc(var(--header-h) + 24px); padding-bottom: 104px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px);
  font-size: 14px; font-weight: 700; letter-spacing: .01em; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); color: #fff; font-weight: 800; line-height: 1.18; }
.hero h1 .accent { color: #fff; border-bottom: 3px solid rgba(255,255,255,.45); padding-bottom: 2px; }
.hero p { font-size: clamp(17px, 2vw, 21px); color: rgba(255,255,255,.9); margin-top: 22px; max-width: 560px; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 38px; margin-top: 44px; flex-wrap: wrap; }
.hero-facts .fact b { display: block; font-size: 32px; font-weight: 800; color: #fff; }
.hero-facts .fact span { font-size: 14px; color: rgba(255,255,255,.75); }

/* Quick info bar */
.quickbar { position: relative; margin-top: -54px; z-index: 10; }
.quickbar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.quickbar-item { background: #fff; padding: 30px 26px; display: flex; gap: 16px; align-items: flex-start; transition: background .25s; }
.quickbar-item:hover { background: var(--teal-50); }
.quickbar-item .qicon { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; }
.quickbar-item .qicon svg { width: 24px; height: 24px; }
.quickbar-item h4 { font-size: 17px; margin-bottom: 4px; }
.quickbar-item p { font-size: 15px; color: var(--ink-500); line-height: 1.55; }
.quickbar-item p b { color: var(--teal-700); }

/* =========================================================
   SECTIONS
   ========================================================= */
section { position: relative; }
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 72px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-mint { background: var(--bg-mint); }

.section-head { margin-bottom: 52px; }
.section-head.center { display: flex; flex-direction: column; align-items: center; }

/* Department cards */
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dept-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.dept-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--teal-400); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease); }
.dept-card:hover { border-color: var(--teal-100); box-shadow: var(--shadow); transform: translateY(-4px); }
.dept-card:hover::before { transform: scaleY(1); }
.dept-card .d-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); color: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.dept-card .d-icon svg { width: 30px; height: 30px; }
.dept-card h3 { font-size: 22px; margin-bottom: 10px; }
.dept-card p { color: var(--ink-500); font-size: 16px; line-height: 1.6; }
.dept-card .d-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--teal-600); font-weight: 700; font-size: 15px; }
.dept-card:hover .d-more { gap: 11px; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.feature-list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .fl-ic { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--teal-100); color: var(--teal-700); display: grid; place-items: center; margin-top: 2px; }
.feature-list .fl-ic svg { width: 16px; height: 16px; }
.feature-list h4 { font-size: 18px; margin-bottom: 2px; }
.feature-list p { color: var(--ink-500); font-size: 15px; }

/* Hours card */
.hours-card { background: linear-gradient(135deg, var(--teal-700), var(--teal-900)); color: #fff; border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.hours-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.06); }
.hours-card h3 { color: #fff; font-size: 26px; }
.hours-list { margin-top: 26px; display: flex; flex-direction: column; gap: 2px; }
.hours-list li { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 17px; }
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { color: rgba(255,255,255,.85); font-weight: 600; }
.hours-list .time { font-weight: 700; }
.hours-list .closed { color: #ffd2c4; }
.hours-tel { margin-top: 28px; display: flex; align-items: center; gap: 14px; padding: 20px; background: rgba(255,255,255,.1); border-radius: 12px; }
.hours-tel .ht-num { font-size: 26px; font-weight: 800; }

/* News preview */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .3s var(--ease); display: flex; flex-direction: column; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--teal-100); }
.news-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-tag { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--teal-600); background: var(--teal-50); padding: 4px 12px; border-radius: 999px; margin-bottom: 13px; }
.news-card h4 { font-size: 18px; line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .news-ex { color: var(--ink-500); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .news-date { margin-top: auto; padding-top: 16px; color: var(--ink-400); font-size: 14px; font-weight: 600; }

/* CTA band */
.cta-band { background: linear-gradient(115deg, var(--teal-700), var(--teal-900)); color: #fff; border-radius: 24px; padding: 64px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -60px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); position: relative; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 14px; font-size: 18px; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* =========================================================
   SUBPAGE
   ========================================================= */
.subhero { position: relative; height: 320px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.subhero-bg { position: absolute; inset: 0; z-index: -2; }
.subhero-bg img { width: 100%; height: 100%; object-fit: cover; }
.subhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,13,14,.92), rgba(30,33,36,.55)); }
.subhero-inner { padding-top: var(--header-h); }
.subhero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 44px); }
.subhero p { color: rgba(255,255,255,.85); margin-top: 12px; font-size: 18px; }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 16px; font-weight: 600; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }

.content-section { padding: 80px 0; }
.prose { max-width: 880px; }
.prose h2 { font-size: 28px; margin: 0 0 8px; }
.prose .lead-line { width: 48px; height: 3px; background: var(--teal-400); border-radius: 3px; margin-bottom: 28px; }
.prose h3 { font-size: 21px; margin: 40px 0 14px; color: var(--teal-800); display: flex; align-items: center; gap: 10px; }
.prose h3::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); }
.prose p { color: var(--ink-700); margin-bottom: 16px; font-size: 17px; line-height: 1.85; }
.prose ul.bullets { margin: 8px 0 20px; display: flex; flex-direction: column; gap: 10px; }
.prose ul.bullets li { position: relative; padding-left: 26px; color: var(--ink-700); line-height: 1.7; }
.prose ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: var(--teal-400); }

/* Info callout */
.callout { background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--radius); padding: 28px 32px; margin: 28px 0; }
.callout.gold { background: #f7f7f5; border-color: #e6e4dd; }
.callout p { margin: 0; color: var(--ink-700); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius); border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; background: #fff; }
table.tbl th { background: var(--teal-700); color: #fff; font-weight: 700; padding: 15px 18px; text-align: left; font-size: 15px; }
table.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink-700); }
table.tbl tr:nth-child(even) td { background: var(--bg-soft); }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl td.price { font-weight: 700; color: var(--teal-700); white-space: nowrap; }

/* Doctor cards */
.doc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .3s var(--ease); }
.doc-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.doc-photo { aspect-ratio: 4/5; background: var(--bg-mint); overflow: hidden; }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doc-info { padding: 26px; }
.doc-info .doc-role { font-size: 14px; color: var(--teal-600); font-weight: 700; }
.doc-info h3 { font-size: 23px; margin: 4px 0 8px; }
.doc-info .doc-field { font-size: 15px; color: var(--ink-500); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.doc-info .doc-cv { font-size: 14px; color: var(--ink-500); line-height: 1.7; }
.doc-info .doc-cv .cv-label { font-weight: 700; color: var(--ink-700); display: block; margin: 12px 0 4px; }

/* Timeline (history) */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--teal-400), var(--teal-100)); }
.tl-item { position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--teal-500); }
.tl-item .tl-date { font-size: 15px; font-weight: 800; color: var(--teal-600); }
.tl-item .tl-text { font-size: 18px; color: var(--ink-700); margin-top: 4px; font-weight: 600; }

/* Gallery grid */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; background: var(--bg-soft); cursor: pointer; transition: all .3s var(--ease); }
.gallery-item:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 20px 16px; background: linear-gradient(transparent, rgba(12,13,14,.85)); color: #fff; font-weight: 700; font-size: 17px; }

/* Equipment cards */
.equip-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.equip-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .3s var(--ease); }
.equip-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--teal-100); }
.equip-photo { aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; display: grid; place-items: center; }
.equip-photo img { width: 100%; height: 100%; object-fit: cover; }
.equip-body { padding: 22px 24px; }
.equip-cat { font-size: 12px; font-weight: 700; color: var(--teal-600); background: var(--teal-50); padding: 3px 10px; border-radius: 999px; }
.equip-body h3 { font-size: 19px; margin: 12px 0 8px; }
.equip-body p { color: var(--ink-500); font-size: 15px; line-height: 1.6; }

/* Location */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-embed iframe, .map-embed > div { width: 100%; height: 420px; border: 0; display: block; }
.loc-info { display: grid; gap: 16px; }
.loc-row { display: flex; gap: 16px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.loc-row .lr-ic { width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; }
.loc-row h4 { font-size: 15px; color: var(--ink-400); font-weight: 700; margin-bottom: 3px; }
.loc-row p { font-size: 17px; color: var(--ink-900); font-weight: 600; }

/* =========================================================
   BOARD (Firestore)
   ========================================================= */
.board-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
.board-count { color: var(--ink-500); font-size: 16px; }
.board-count b { color: var(--teal-700); }
.board-list { display: flex; flex-direction: column; gap: 14px; }
.board-row { display: flex; gap: 22px; align-items: center; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: all .25s var(--ease); cursor: pointer; }
.board-row:hover { border-color: var(--teal-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.board-row .br-thumb { width: 120px; height: 80px; flex: none; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.board-row .br-thumb img { width: 100%; height: 100%; object-fit: cover; }
.board-row .br-main { flex: 1; min-width: 0; }
.board-row .br-cat { font-size: 13px; font-weight: 700; color: var(--teal-600); }
.board-row h3 { font-size: 19px; margin: 4px 0 6px; }
.board-row .br-ex { color: var(--ink-500); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.board-row .br-date { color: var(--ink-400); font-size: 14px; font-weight: 600; flex: none; }
.board-empty, .board-loading { text-align: center; padding: 80px 20px; color: var(--ink-400); }
.spinner { width: 36px; height: 36px; border: 3px solid var(--teal-100); border-top-color: var(--teal-500); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Q&A */
.qna-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.qna-q { display: flex; gap: 14px; align-items: flex-start; padding: 22px 26px; cursor: pointer; }
.qna-q .qmark { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--teal-600); color: #fff; display: grid; place-items: center; font-weight: 800; }
.qna-q h3 { font-size: 18px; flex: 1; }
.qna-q .qtoggle { color: var(--ink-400); transition: transform .25s; }
.qna-item.open .qtoggle { transform: rotate(180deg); }
.qna-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); background: var(--bg-soft); }
.qna-item.open .qna-a { max-height: 600px; }
.qna-a-inner { padding: 22px 26px 22px 70px; color: var(--ink-700); line-height: 1.8; }

/* Modal (post view / lightbox) */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(12,13,14,.8); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius); max-width: 760px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { padding: 28px 32px 18px; border-bottom: 1px solid var(--line); position: relative; }
.modal-header .news-tag { position: static; }
.modal-header h2 { font-size: 24px; margin: 12px 0 8px; }
.modal-header .m-date { color: var(--ink-400); font-size: 14px; }
.modal-close { position: absolute; top: 22px; right: 24px; width: 38px; height: 38px; border: none; background: var(--bg-soft); border-radius: 50%; cursor: pointer; font-size: 20px; color: var(--ink-500); transition: all .2s; }
.modal-close:hover { background: var(--teal-50); color: var(--teal-700); }
.modal-body { padding: 26px 32px 34px; color: var(--ink-700); line-height: 1.85; }
.modal-body img { border-radius: 12px; margin: 16px 0; }
.lightbox-img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #16181a; color: rgba(255,255,255,.66); padding: 64px 0 32px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 32px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand b { color: #fff; font-size: 20px; font-weight: 800; }
.footer-top p { line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--teal-400); }
.footer-biz { padding-top: 28px; line-height: 1.9; font-size: 13.5px; color: rgba(255,255,255,.5); }
.footer-biz .footer-links { margin-bottom: 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-biz .footer-links a { color: rgba(255,255,255,.8); font-weight: 600; }
.footer-biz .footer-links a:hover { color: var(--teal-400); }
.footer-biz .privacy-strong { font-weight: 800; color: #fff; }
.footer-copy { margin-top: 14px; color: rgba(255,255,255,.4); }

/* Floating actions */
.float-actions { position: fixed; right: 22px; bottom: 26px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: all .25s var(--ease); color: #fff; }
.float-btn:hover { transform: translateY(-3px) scale(1.05); }
.float-btn.tel { background: var(--teal-600); }
.float-btn.map { background: #03c75a; }
.float-btn.top { background: #fff; color: var(--teal-700); border: 1px solid var(--line); opacity: 0; pointer-events: none; }
.float-btn.top.show { opacity: 1; pointer-events: auto; }
.float-btn svg { width: 26px; height: 26px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .split, .dept-grid, .news-grid, .doc-grid, .equip-grid, .gallery-grid, .footer-top { gap: 30px; }
  .dept-grid, .news-grid, .doc-grid, .equip-grid, .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .quickbar-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav, .header-tel { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  /* Mobile nav drawer */
  .nav.mobile-open {
    display: flex; flex-direction: column; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 18px 24px; overflow-y: auto; gap: 0; align-items: stretch; z-index: 99;
  }
  .nav.mobile-open > li { border-bottom: 1px solid var(--line); }
  .nav.mobile-open > li > a { height: auto; padding: 18px 4px; font-size: 18px; }
  .nav.mobile-open > li > a::after { display: none; }
  .nav.mobile-open .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: 0 0 14px 12px; min-width: 0; }
  .nav.mobile-open .dropdown a { padding: 9px 8px; font-size: 16px; color: var(--ink-500); }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .section-pad { padding: 68px 0; }
  .hero { min-height: 80vh; }
  .hero-facts { gap: 24px; }
  .cta-band, .hours-card { padding: 40px 26px; }
  .board-row { flex-wrap: wrap; }
  .board-row .br-thumb { width: 100%; height: 160px; }
  .board-row .br-date { order: -1; }
}
@media (max-width: 540px) {
  .dept-grid, .news-grid, .doc-grid, .equip-grid, .gallery-grid, .quickbar-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .wrap { padding: 0 18px; }
  .content-section { padding: 56px 0; }
}
