/* ============================================
   호랑이한의원 Modern Stylesheet
   Color: Deep Forest Green + Warm Gold
   ============================================ */

:root {
  --primary:       #1B4332;
  --primary-light: #2D6A4F;
  --primary-dark:  #0d2b1e;
  --primary-pale:  #D8F3DC;
  --accent:        #C9A84C;
  --accent-hover:  #b8922a;
  --accent-light:  #F5E6C0;
  --bg:            #FAFAF8;
  --surface:       #FFFFFF;
  --surface-2:     #F4F4F0;
  --text:          #1A1A1A;
  --text-2:        #4B5563;
  --text-muted:    #9CA3AF;
  --border:        #E5E7EB;
  --border-light:  #F3F4F0;
  --red:           #EF4444;
  --amber:         #F59E0B;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06);
  --shadow:        0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-full:   9999px;
  --ease:          0.25s ease;
  --sans:          'Noto Sans KR', system-ui, sans-serif;
  --serif:         'Noto Serif KR', serif;
  --max-w:         1200px;
  --header-h:      72px;
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: inherit; background: none; }
input, textarea { font-family: inherit; }

/* ── Layout ───────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section      { padding: 88px 0; }
.section-sm   { padding: 56px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,.4);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.45);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.8);
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-danger-ghost {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}
.btn-danger-ghost:hover { background: #DC2626; color: #fff; }
.btn-green { background: var(--primary); color: #fff; }
.btn-green:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* ── Header ───────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--ease), box-shadow var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-logo { display: flex; flex-direction: column; gap: 1px; }
.logo-main {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  transition: color var(--ease);
  line-height: 1.2;
}
.logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
  transition: color var(--ease);
}
.site-header.scrolled .logo-main  { color: var(--primary); }
.site-header.scrolled .logo-sub   { color: var(--text-muted); }
.logo-since { color: var(--accent); font-weight: 600; }
.site-header.scrolled .logo-since { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  color: rgba(255,255,255,.82);
  transition: all var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.15); }
.site-header.scrolled .nav-link          { color: var(--text-2); }
.site-header.scrolled .nav-link:hover    { color: var(--primary); background: var(--primary-pale); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  margin-left: 4px;
  transition: all var(--ease) !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); }

/* mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px; transition: all var(--ease);
}
.site-header.scrolled .mobile-toggle span { background: var(--primary); }
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .mobile-toggle { display: flex; }
  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 20px 24px;
    gap: 2px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .nav-link { color: var(--text-2) !important; width: 100%; padding: 12px 16px; }
  .nav-link:hover { background: var(--surface-2) !important; color: var(--primary) !important; }
  .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; justify-content: center; }
}

/* ── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 60%, rgba(201,168,76,.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(82,183,136,.08) 0%, transparent 40%);
}
.hero-img {
  position: absolute; inset: 0;
  background: url('../images/page/main.jpg') center/cover no-repeat;
  opacity: .18;
}
.hero-content {
  position: relative; z-index: 1;
  padding: calc(var(--header-h) + 56px) 24px 120px;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,.18);
  border: 1px solid rgba(201,168,76,.4);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.hero-since {
  display: block;
  color: var(--accent);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-since::before,
.hero-since::after {
  display: none;
  content: '';
  width: 0;
  height: 0;
  background: rgba(201,168,76,.5);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 6px;
}
.hero-title-sub {
  font-family: var(--serif);
  font-size: clamp(18px, 3vw, 28px);
  color: rgba(255,255,255,.7);
  font-weight: 400;
  margin-bottom: 28px;
}
.hero-desc {
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(255,255,255,.65);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.9;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  position: absolute;
  bottom: 48px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  padding: 0 24px;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--serif);
  font-size: 30px; font-weight: 700;
  color: var(--accent); display: block;
}
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }

.scroll-hint {
  position: absolute; bottom: 18px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.4);
  font-size: 22px;
  animation: bobble 2s ease-in-out infinite;
}
@keyframes bobble {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 600px) {
  .hero-stats { gap: 32px; bottom: 28px; }
  .hero-stat-num { font-size: 24px; }
}

/* ── Notices ──────────────────────────────── */
.notices-section { background: var(--surface); }
.notices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.notice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--ease);
  cursor: pointer;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.notice-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--ease);
}
.notice-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); transform: translateY(-4px); }
.notice-card:hover::before { transform: scaleY(1); }
.notice-date { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: .04em; }
.notice-title {
  font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notice-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--primary);
  margin-top: auto;
  transition: gap var(--ease);
}
.notice-card:hover .notice-arrow { gap: 10px; }
.notices-more { text-align: center; margin-top: 40px; }

/* ── Hours & Calendar ─────────────────────── */
.hours-section { background: var(--surface-2); }
.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) { .hours-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.card-title {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  color: var(--primary); margin-bottom: 6px;
}
.card-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--border-light); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 13px 0; font-size: 15px; vertical-align: middle; }
.hours-table .day { color: var(--text); font-weight: 500; width: 45%; }
.hours-table .time { color: var(--text); font-weight: 600; }
.hours-table .half { color: var(--amber); font-weight: 600; }
.hours-table .closed { color: var(--red); font-weight: 600; }
.day-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 8px; vertical-align: middle;
}
.dot-open   { background: var(--text); }
.dot-half   { background: var(--amber); }
.dot-closed { background: var(--red); }

.hours-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--primary-pale);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--primary); line-height: 1.7;
}

/* calendar */
.cal-card { padding: 28px; }
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.cal-month {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700; color: var(--primary);
}
.cal-nav-wrap { display: flex; gap: 6px; }
.cal-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-2);
  font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease); cursor: pointer;
}
.cal-btn:hover { background: var(--primary); color: #fff; }

.cal-day-names {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; margin-bottom: 8px;
}
.cal-day-name {
  font-size: 11px; font-weight: 700;
  padding: 6px 0; color: var(--text-muted); letter-spacing: .04em;
}
.cal-day-name:first-child { color: var(--red); }
.cal-day-name:last-child  { color: #f59e0b }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 13px; font-weight: 500;
  position: relative;
  transition: all var(--ease);
}
.cal-cell.empty  { background: transparent; }
.cal-cell.today  { background: #22c55e; color: #fff; font-weight: 700; }
.cal-cell.open   { color: var(--text); }
.cal-cell.sun    { color: #EF4444; color: var(--red); }
.cal-cell.sat    { color: #F59E0B; color: var(--amber); }
.cal-cell.thu    { color: #EF4444; color: var(--red); }
.cal-cell.holiday-half   { color: #F59E0B; color: var(--amber); font-weight: 600; }
.cal-cell.holiday-closed { color: #EF4444; color: var(--red);   font-weight: 700; }
.cal-cell.holiday-half::after,
.cal-cell.holiday-closed::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
}
.cal-cell.holiday-half::after   { background: #F59E0B; background: var(--amber); }
.cal-cell.holiday-closed::after { background: #EF4444; background: var(--red); }
.cal-cell.custom-half { color: #F59E0B; color: var(--amber); font-weight: 600; }
.cal-cell.custom-half::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: #F59E0B; background: var(--amber); }
.cal-cell.faded { color: var(--border); }

.cal-legend { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.cal-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.cal-legend-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── Services ─────────────────────────────── */
.services-section { background: var(--surface); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--ease);
}
.service-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.service-img {
  width: 100%; height: 180px; object-fit: cover;
  background: var(--surface-2);
}
.service-body { padding: 22px; }
.service-icon {
  font-size: 28px; margin-bottom: 12px;
  display: block;
}
.service-name { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.service-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* ── Features (dark green bg) ─────────────── */
.features-section {
  background: var(--primary);
  color: #fff;
}
.features-section .section-title { color: #fff; }
.features-section .section-desc  { color: rgba(255,255,255,.7); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: all var(--ease);
}
.feature-card:hover { background: rgba(255,255,255,.13); transform: translateY(-4px); }
.feature-icon { font-size: 34px; margin-bottom: 14px; display: block; }
.feature-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: rgba(255,255,255,.62); line-height: 1.7; }

/* ── Contact / Map ────────────────────────── */
.contact-section { background: var(--surface); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-title {
  font-family: var(--serif);
  font-size: 26px; font-weight: 700; color: var(--primary);
}
.contact-items { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px;
  background: var(--surface-2);
  border-radius: var(--radius);
}
.contact-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; flex-shrink: 0;
}
.contact-item-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.contact-item-value { font-size: 15px; font-weight: 600; color: var(--text); }
.contact-item-sub   { font-size: 13px; color: var(--text-2); margin-top: 1px; }
.phone-link { color: var(--primary); text-decoration: none; }
.phone-link:hover { color: var(--accent); }

/* ── Footer ───────────────────────────────── */
.site-footer { background: #0b1e14; color: rgba(255,255,255,.55); padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-logo { font-family: var(--serif); font-size: 20px; font-weight: 700; color: #fff; display: block; margin-bottom: 10px; }
.footer-brand p { font-size: 14px; line-height: 1.85; max-width: 280px; }

.footer-col h4 {
  color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { font-size: 14px; color: rgba(255,255,255,.45); transition: color var(--ease); }
.footer-col li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: color var(--ease); }
.footer-bottom a:hover { color: #fff; }

/* ── Page Header (inner pages) ────────────── */
.page-header {
  background: var(--primary);
  padding: calc(var(--header-h) + 48px) 0 56px;
  text-align: center; color: #fff;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700; margin-bottom: 10px;
}
.page-header p { font-size: 15px; color: rgba(255,255,255,.65); }

/* ── Notice Board ─────────────────────────── */
.board-section { padding: 56px 0 80px; }
.board-actions { display: flex; justify-content: flex-end; margin-bottom: 20px; }

.board-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.board-head {
  display: grid;
  grid-template-columns: 70px 1fr 130px;
  padding: 14px 28px;
  background: var(--primary);
  color: rgba(255,255,255,.8);
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
}
.board-row {
  display: grid;
  grid-template-columns: 70px 1fr 130px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--ease);
  align-items: center;
  text-decoration: none; color: inherit;
}
.board-row:last-child { border-bottom: none; }
.board-row:hover { background: var(--surface-2); }
.board-num  { font-size: 14px; color: var(--text-muted); }
.board-title { font-size: 15px; font-weight: 500; color: var(--text); transition: color var(--ease); }
.board-row:hover .board-title { color: var(--primary); }
.board-date  { font-size: 13px; color: var(--text-muted); text-align: right; }
.board-empty { padding: 60px 28px; text-align: center; color: var(--text-muted); font-size: 15px; }

@media (max-width: 600px) {
  .board-head { grid-template-columns: 1fr 100px; }
  .board-head .col-num { display: none; }
  .board-row  { grid-template-columns: 1fr 100px; }
  .board-num  { display: none; }
}

/* ── Post View ────────────────────────────── */
.post-section { padding: 56px 0 80px; }
.post-wrap { max-width: 820px; margin: 0 auto; }
.post-head { margin-bottom: 36px; padding-bottom: 22px; border-bottom: 2px solid var(--border); }
.post-head h1 {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 14px;
}
.post-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-muted); }
.post-body {
  font-size: 16px; line-height: 1.9; color: var(--text-2);
  min-height: 120px;
}
.post-body img { max-width: 100%; border-radius: var(--radius); margin: 20px 0; }
.post-body p   { margin-bottom: 18px; }
.post-body h2, .post-body h3 { color: var(--primary); margin: 28px 0 12px; }
.post-body table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.post-body td, .post-body th { border: 1px solid var(--border); padding: 8px 12px; }

.post-foot {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.post-admin-btns { display: flex; gap: 8px; }

/* ── Write / Edit ─────────────────────────── */
.write-section { padding: 56px 0 80px; }
.write-wrap    { max-width: 900px; margin: 0 auto; }
.form-group    { margin-bottom: 22px; }
.form-label    { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text); background: var(--surface);
  transition: border-color var(--ease); outline: none;
}
.form-input:focus { border-color: var(--primary); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ── Login ────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 24px;
}
.login-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%; max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.login-top { text-align: center; margin-bottom: 36px; }
.login-top h1 { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.login-top p  { font-size: 13px; color: var(--text-muted); }
.login-form   { display: flex; flex-direction: column; gap: 16px; }
.login-btn {
  width: 100%; padding: 14px;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-full);
  font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all var(--ease);
  font-family: var(--sans); margin-top: 4px;
}
.login-btn:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: var(--shadow); }

/* ── Inline holiday admin (index.php) ────── */
.holiday-admin        { border: 2px dashed var(--accent); }
.holiday-form-row     { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.holiday-form-row .form-input { padding: 9px 14px; }
.holiday-date         { font-weight: 700; color: var(--primary); min-width: 110px; }
.holiday-reason       { color: var(--text-2); flex: 1; margin: 0 12px; font-size: 14px; }
.holiday-empty        { color: var(--text-muted); font-size: 14px; padding: 12px 0; }
.btn-xs               { padding: 5px 12px; font-size: 12px; }

/* ── Admin Holidays ───────────────────────── */
.admin-section { padding: 56px 0 80px; }
.admin-wrap    { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.holiday-list  { display: flex; flex-direction: column; gap: 10px; }
.holiday-item  {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface-2);
  border-radius: var(--radius);
  font-size: 14px;
}
.holiday-item-date   { font-weight: 700; color: var(--primary); }
.holiday-item-reason { color: var(--text-2); flex: 1; margin: 0 16px; }
.holiday-item-del {
  background: #FEF2F2; color: #DC2626;
  border: none; border-radius: var(--radius-sm);
  padding: 6px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all var(--ease);
}
.holiday-item-del:hover { background: #DC2626; color: #fff; }
.empty-list { color: var(--text-muted); font-size: 14px; padding: 20px 0; }

/* ── Popup overlay ────────────────────────── */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.65);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.popup-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
  animation: popupIn .3s ease;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
}
@keyframes popupIn {
  from { opacity:0; transform: scale(.93) translateY(12px); }
  to   { opacity:1; transform: none; }
}
.popup-img {
  display: block; width: 100%; height: auto;
  flex: 1 1 auto; min-height: 0;
  object-fit: contain;
}
.popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #1a1a1a;
  gap: 8px;
}
.popup-btn-noshow {
  background: none; border: none;
  color: rgba(255,255,255,.7);
  font-size: 13px; cursor: pointer;
  padding: 4px 0; font-family: var(--sans);
  text-decoration: underline;
}
.popup-btn-noshow:hover { color: #fff; }
.popup-btn-close {
  background: var(--accent); border: none;
  color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 7px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  transition: opacity var(--ease);
}
.popup-btn-close:hover { opacity: .85; }

/* ── Popup admin list ──────────────────────── */
.popup-admin-list   { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.popup-admin-item   {
  display: flex; align-items: center; gap: 16px;
  padding: 12px; background: var(--surface-2);
  border-radius: var(--radius); flex-wrap: wrap;
}
.popup-thumb        { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.popup-admin-info   { flex: 1; min-width: 160px; }
.popup-admin-dates  { font-weight: 600; color: var(--text-1); font-size: 14px; }
.popup-status       { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-live        { background: #DCFCE7; color: #166534; }
.status-wait        { background: #FEF9C3; color: #854D0E; }
.status-end         { background: #F3F4F6; color: #6B7280; }
@media (max-width: 480px) {
  .popup-overlay    { padding: 8px; align-items: flex-end; }
  .popup-box        { max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: calc(100vh - 16px); }
  .popup-btn-close  { padding: 10px 24px; font-size: 15px; }
  .popup-btn-noshow { font-size: 13px; }
  .popup-footer     { padding: 14px 16px; }
}

/* ── Reveal animation ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }
.reveal-d5 { transition-delay: .5s; }
.reveal-d6 { transition-delay: .6s; }

/* ── Scrollbar ────────────────────────────── */
html { scrollbar-width: auto; scrollbar-color: var(--primary-light) var(--border-light); }
::-webkit-scrollbar { width: 15px; }
::-webkit-scrollbar-track { background: var(--border-light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 8px; }

/* ── Selection ────────────────────────────── */
::selection { background: var(--primary-pale); color: var(--primary); }

/* ── Go-to-top ────────────────────────────── */
.go-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: all var(--ease);
  box-shadow: var(--shadow);
  z-index: 500;
}
.go-top.show { opacity: 1; pointer-events: auto; }
.go-top:hover { background: var(--primary-light); transform: translateY(-3px); }
