/* ==========================================================================
   MISSION HOSPITAL — public site stylesheet
   Palette: deep teal + warm gold accent; Playfair Display headings, Inter body.
   Theme colours are injected inline from the database via :root overrides.
   ========================================================================== */

:root {
  --primary: #0e7490;
  --primary-dark: #155e75;
  --accent: #d97706;
  --ink: #0f2830;
  --body: #334d55;
  --muted: #64818c;
  --tint: #eef6f8;
  --tint-2: #e2eff2;
  --surface: #ffffff;
  --line: #dce9ed;
  --danger: #b3413b;
  --ok: #1a7f4f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(15, 60, 74, 0.10);
  --shadow-sm: 0 3px 12px rgba(15, 60, 74, 0.08);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--surface);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
code { background: var(--tint); padding: 2px 6px; border-radius: 4px; font-size: 0.86em; color: var(--primary-dark); }

/* Content is centered on the page and expands as the window grows, always
   keeping at least 1cm free on both sides (exactly 1cm on narrow viewports). */
.container { width: min(92%, calc(100% - 2cm)); margin-inline: auto; }
.narrow { width: min(92%, calc(100% - 2cm)); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.center-actions { justify-content: center; display: flex; flex-wrap: wrap; gap: 12px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ------------------------------ Sections ------------------------------ */
.section { padding: 78px 0; }
.section-tight { padding: 48px 0; }
.section-tint { background: var(--tint); }
.section-head { width: min(92%, calc(100% - 2cm)); margin: 0 auto 42px; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-head-row {
  max-width: none; text-align: left; margin-bottom: 36px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.section-head-row p { margin-bottom: 0; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all 0.22s ease; text-decoration: none; line-height: 1.2;
  white-space: nowrap;
}
.btn i { font-size: 0.95em; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(0.94); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.75); color: #fff; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(3px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { background: var(--tint); color: var(--primary-dark); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.8); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--primary-dark); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger-outline { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn-danger-outline:hover { background: var(--danger); color: #fff; }
.text-link { font-weight: 600; font-size: 0.92rem; }
.text-link i { font-size: 0.8em; margin-left: 4px; transition: transform 0.2s; }
.text-link:hover i { transform: translateX(3px); }

/* ------------------------------ Alerts ------------------------------ */
.alert {
  display: flex; align-items: center; gap: 12px;
  width: min(1180px, 92%); margin: 18px auto 0; padding: 14px 18px;
  border-radius: var(--radius-sm); font-weight: 500; cursor: pointer;
  transition: opacity 0.6s;
}
.alert i { font-size: 1.15rem; }
.alert-success { background: #e8f6ee; color: var(--ok); border: 1px solid #bfe5cf; }
.alert-error { background: #fbeae9; color: var(--danger); border: 1px solid #eccfcd; }
.alert.fading { opacity: 0; pointer-events: none; }

/* ------------------------------ Top bar ------------------------------ */
.topbar { background: var(--primary-dark); color: #cfe8ef; font-size: 0.83rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item i { color: var(--accent); }
.topbar-item strong { color: #fff; }
.topbar-social { display: flex; gap: 6px; }
.topbar-social a {
  color: #cfe8ef; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; transition: all 0.2s;
}
.topbar-social a:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* ------------------------------ Header / nav ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; font-size: 1.15rem; flex-shrink: 0;
}
.brand-logo { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.18; min-width: 0; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em;
  font-size: clamp(1.02rem, 1.5vw, 1.3rem);
  max-width: 420px; overflow-wrap: break-word;
}
.brand-tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.brand-light { color: #fff; }
.brand-light .brand-name { color: #fff; }

/* Main menu centralized at the top: auto margins center it between the brand
   and the CTA on narrow desktops; on wide screens it pins to the TRUE top
   center of the page, with the Request Appointment button at the right edge. */
.main-nav { margin: 0 auto; }
.nav-cta { display: none; }
@media (min-width: 861px) {
  .nav-cta-item { display: none; } /* the copy inside the dropdown is mobile-only */
  .nav-cta { display: block; }
}
@media (min-width: 1440px) {
  .main-nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
  .nav-cta { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); }
}
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 9px 13px; font-weight: 600; font-size: 0.92rem;
  color: var(--ink); border-radius: 8px; position: relative; white-space: nowrap;
}
.main-nav a:hover { color: var(--primary); background: var(--tint); }
.main-nav a.active { color: var(--primary); }
.main-nav a.active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav-cta-item { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0;
  border-radius: 2px; transition: all 0.25s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative; min-height: 590px; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff;
  /* Full-bleed: spans the viewport edge to edge (square corners) */
  width: 100%; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  /* Blue → emerald gradient at 50% transparency, uniform across all areas of the slide */
  background: linear-gradient(105deg, rgba(9, 54, 137, 0.5) 0%, rgba(21, 101, 192, 0.5) 38%, rgba(0, 131, 143, 0.5) 68%, rgba(5, 150, 105, 0.5) 100%);
  background-size: 220% 220%;
  animation: heroGradient 14s ease-in-out infinite alternate;
}
@keyframes heroGradient {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-overlay { animation: none; }
}
.hero-inner {
  position: relative; display: flex; align-items: center; gap: 48px;
  padding: 90px 0 110px; justify-content: space-between;
}
.hero-content { max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; padding: 8px 18px;
  border-radius: 999px; font-size: 0.83rem; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 22px; backdrop-filter: blur(4px);
}
.hero-badge i { color: #ffc98a; }
.hero h1, .hero h2 { color: #fff; margin-bottom: 0.5em; }
.hero-lead { color: #d9ecf2; font-size: 1.08rem; max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px; padding: 26px 28px; width: 320px; flex-shrink: 0;
  backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.hero-card-row h3 { color: #fff; font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.03em; margin-bottom: 6px; }
.hero-card-row h3 i { color: #ffc98a; }
.hero-card-row h3.emergency i { color: #ff9d8f; }
.hero-card-row p { color: #d9ecf2; font-size: 0.88rem; margin: 0; }
.hero-card-row.small a { color: #ffd9a8; font-size: 0.88rem; font-weight: 600; }
.hero-card-divider { height: 1px; background: rgba(255, 255, 255, 0.18); margin: 18px 0; }
.hero-phone { display: block; color: #fff; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.hero-phone:hover { color: #ffd9a8; }

/* ------------------------------ Hero slider ------------------------------ */
.hero-slider { position: relative; overflow: hidden; align-items: stretch; }
.hero-track { display: grid; width: 100%; }
.hero-slide {
  grid-area: 1 / 1; position: relative; display: flex; align-items: center;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.9s ease, visibility 0.9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.hero-slide .hero-inner { width: min(92%, calc(100% - 2cm)); margin-inline: auto; }
/* Desktop: the floating Opening Hours card expands within the centered slider
   row and rides its right edge as the screen widens. */
@media (min-width: 861px) {
  .hero-card { width: auto; flex: 1 0 320px; max-width: 480px; }
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(10, 44, 54, 0.45); color: #fff; font-size: 1rem; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(3px);
  transition: background 0.25s, transform 0.25s;
}
.hero-arrow:hover { background: rgba(217, 119, 6, 0.9); transform: translateY(-50%) scale(1.06); }
.hero-arrow-prev { left: 22px; }
.hero-arrow-next { right: 22px; }
.hero-dots {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; gap: 9px; z-index: 3;
}
.hero-dot {
  width: 11px; height: 11px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255, 255, 255, 0.42); cursor: pointer; transition: background 0.3s, transform 0.3s;
}
.hero-dot.is-active { background: #ffc98a; transform: scale(1.3); }

/* ------------------------------ News ticker ------------------------------ */
.news-ticker { background: var(--primary-dark); border-top: 3px solid var(--accent); }
.ticker-inner { display: flex; align-items: center; min-height: 54px; }
.ticker-label {
  display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.07em; text-transform: uppercase; padding: 9px 16px;
  border-radius: 8px; margin: 9px 20px 9px 0;
}
.ticker-viewport { overflow: hidden; flex: 1; }
.ticker-track { display: flex; width: max-content; animation: tickerScroll 30s linear infinite; }
.news-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 28px;
  color: #e5f2f7; font-size: 0.9rem; font-weight: 500; white-space: nowrap;
}
.ticker-item:hover { color: #ffd9a8; }
.ticker-chip {
  background: rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 3px 11px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #bfe0ea;
}
.ticker-date { color: #9dc6d4; font-size: 0.78rem; display: inline-flex; align-items: center; gap: 5px; }
@keyframes tickerScroll { from { transform: translateX(-50%); } to { transform: translateX(0); } } /* -50% → 0: items auto-scroll LEFT → RIGHT (two identical sets keep the loop seamless) */

/* ------------------------------ Featured services (4 cards) ------------------------------ */
.highlights-strip { padding: 48px 0 8px; }
.highlight-card { padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.highlight-card:hover { color: var(--ink); }
.highlight-card h3 { font-size: 1.08rem; }
.highlight-card p { margin: 0; color: var(--muted); font-size: 0.9rem; flex: 1; }
.highlight-card .text-link { margin-top: auto; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
  .hero-slide { transition: none; }
}
@media (max-width: 1024px) {
  .hero-arrow { display: none; }
}
@media (max-width: 720px) {
  .highlights-strip .cols-4 { grid-template-columns: 1fr; }
  .ticker-inner { flex-wrap: wrap; padding: 8px 0; }
  .ticker-viewport { width: 100%; }
  .hero-dots { bottom: 10px; }
}

/* ------------------------------ Stats strip ------------------------------ */
.stats-strip { background: var(--primary-dark); padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.stat-icon { font-size: 1.4rem; color: #ffc98a; margin-bottom: 6px; }
.stat-value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stat-label { color: #bfe0ea; font-size: 0.86rem; letter-spacing: 0.03em; }

/* ------------------------------ Cards / services ------------------------------ */
.cards-grid { display: grid; gap: 24px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card { padding: 28px 26px; }
.service-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--tint-2), var(--tint));
  color: var(--primary); font-size: 1.35rem; margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.94rem; color: var(--muted); margin-bottom: 14px; }

/* ------------------------------ Split (about) ------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 54px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.split-badge {
  position: absolute; left: -14px; bottom: -16px; background: var(--accent); color: #fff;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 9px;
}
.split-content .check-list { margin: 18px 0 26px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 11px; font-weight: 500; color: var(--ink); }
.check-list i { color: var(--primary); }

.prose { font-size: 1.02rem; }
.prose .lead { font-size: 1.12rem; color: var(--ink); font-weight: 500; }
.prose h2 { margin-top: 0.4em; }

/* ------------------------------ News ------------------------------ */
.news-card { display: flex; flex-direction: column; }
.news-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.chip {
  position: absolute; top: 14px; left: 14px; background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.chip-lg { position: static; display: inline-block; font-size: 0.8rem; padding: 7px 16px; margin-bottom: 18px; }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-body time { color: var(--muted); font-size: 0.82rem; margin-bottom: 10px; }
.news-body time i { margin-right: 6px; color: var(--primary); }
.news-body h3 { font-size: 1.12rem; margin-bottom: 10px; }
.news-body h3 a { color: var(--ink); }
.news-body h3 a:hover { color: var(--primary); }
.news-body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; flex: 1; }

.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.chip-row { display: flex; gap: 9px; flex-wrap: wrap; }
.chip-link {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--body);
  font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.chip-link:hover { border-color: var(--primary); color: var(--primary); }
.chip-link.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-count { background: rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 1px 8px; font-size: 0.75rem; }
.chip-link:not(.current) .chip-count { background: var(--tint-2); color: var(--primary-dark); }

.search-box {
  display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 18px; min-width: 280px;
}
.search-box i { color: var(--muted); }
.search-box input { border: 0; outline: none; flex: 1; font-family: var(--font-body); font-size: 0.92rem; padding: 8px 0; background: transparent; color: var(--ink); }
.search-box-lg { padding: 8px 10px 8px 20px; min-width: 0; width: 100%; }

/* ------------------------------ Events ------------------------------ */
.event-list { display: grid; gap: 16px; }
.event-row {
  display: flex; align-items: center; gap: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px;
  box-shadow: var(--shadow-sm); color: var(--ink); transition: all 0.22s;
}
.event-row:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.event-date {
  width: 74px; height: 74px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
}
.event-date .day { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1; }
.event-date .mon { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #ffd9a8; }
.event-date-lg { width: 92px; height: 92px; }
.event-date-lg .day { font-size: 2.1rem; }
.event-info h3 { margin-bottom: 6px; font-size: 1.15rem; }
.event-info p { margin: 0; display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 0.88rem; }
.event-info i { margin-right: 6px; color: var(--primary); }
.event-arrow { margin-left: auto; color: var(--line); transition: all 0.2s; }
.event-row:hover .event-arrow { color: var(--accent); transform: translateX(4px); }

.event-detail { width: min(92%, calc(100% - 2cm)); margin-inline: auto; }
.event-detail-card {
  display: flex; gap: 30px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm);
}
.event-meta-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.event-meta-list li { display: flex; gap: 14px; align-items: flex-start; }
.event-meta-list i { color: var(--primary); margin-top: 4px; }
.event-meta-list strong { display: block; color: var(--ink); font-size: 0.9rem; }
.event-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ------------------------------ Calendar ------------------------------ */
.calendar-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: start; }
.calendar-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.calendar-head h2 { font-size: 1.3rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.calendar-head h2 i { color: var(--primary); }
.cal-nav {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  border: 1.5px solid var(--line); color: var(--primary); transition: all 0.2s;
}
.cal-nav:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.calendar { width: 100%; border-collapse: collapse; }
.calendar th { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 10px 4px; border-bottom: 2px solid var(--line); }
.calendar td { border: 1px solid var(--tint-2); padding: 6px; height: 74px; vertical-align: top; text-align: center; }
.cal-blank { background: #f8fbfc; }
.cal-day { border-radius: 6px; }
.cal-day.today { background: #fff7e8; }
.cal-day.today .cal-num { background: var(--accent); color: #fff; }
.cal-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.cal-dots { display: flex; gap: 4px; justify-content: center; align-items: center; margin-top: 5px; flex-wrap: wrap; }
.cal-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); display: inline-block; transition: transform 0.15s; }
.cal-dot:hover { transform: scale(1.5); }
.calendar-hint { color: var(--muted); font-size: 0.82rem; margin: 14px 0 0; }
.calendar-hint .cal-dot { margin-right: 6px; }
.cal-more { font-size: 0.72rem; color: var(--muted); font-weight: 600; }

.calendar-side { display: grid; gap: 24px; }
.side-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.side-panel h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 16px; }
.side-panel h3 i { color: var(--primary); }
.side-accent { background: linear-gradient(140deg, var(--primary-dark), #0b3c46); border: 0; }
.side-accent h3 { color: #fff; }
.side-accent h3 i { color: #ffc98a; }
.side-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-events a { display: flex; gap: 12px; align-items: baseline; color: var(--ink); }
.side-events a:hover .side-title { color: var(--primary); }
.side-accent .side-events a { color: #e3f1f5; }
.side-accent .side-events a:hover .side-title { color: #ffd9a8; }
.side-date { font-weight: 700; color: var(--primary); font-size: 0.85rem; flex-shrink: 0; min-width: 44px; }
.side-accent .side-date { color: #ffc98a; }
.side-title { font-size: 0.93rem; line-height: 1.45; }

/* ------------------------------ Accordion / FAQ ------------------------------ */
.kb-toolbar { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 26px; }
.kb-tools { display: flex; gap: 10px; }
.kb-cats { margin-bottom: 30px; }
.kb-section { margin-bottom: 38px; }
.kb-section-head { margin-bottom: 18px; }
.kb-section-head h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.kb-section-head h2 i { color: var(--primary); font-size: 1.1rem; }
.kb-section-head p { color: var(--muted); margin: 0; font-size: 0.92rem; }
.kb-empty { text-align: center; padding: 40px 0; color: var(--muted); }
.kb-empty i { font-size: 2.2rem; color: var(--line); margin-bottom: 10px; }
.kb-help { margin-top: 40px; background: var(--tint); border-radius: var(--radius); padding: 34px; }
.kb-help p { font-weight: 500; color: var(--ink); }

.accordion { display: grid; gap: 12px; }
.acc-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s;
}
.acc-item.open { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 18px 22px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink);
}
.acc-head:hover { color: var(--primary); }
.acc-q-icon { color: var(--primary); margin-right: 4px; }
.acc-chevron { color: var(--muted); transition: transform 0.3s; flex-shrink: 0; }
.acc-item.open .acc-chevron { transform: rotate(180deg); color: var(--accent); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.acc-body-inner { padding: 0 22px 20px; color: var(--body); border-top: 1px dashed var(--line); padding-top: 16px; margin: 0 22px 0; padding-left: 0; padding-right: 0; }
.acc-item.open .acc-body-inner { border-top: 1px dashed var(--line); }
.acc-body-inner p:last-child { margin-bottom: 0; }

/* ------------------------------ Forms ------------------------------ */
.feedback-layout { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 44px; align-items: start; }
.feedback-info h2 { display: flex; align-items: center; gap: 12px; }
.feedback-info h2 i { color: var(--primary); }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-top: 20px; box-shadow: var(--shadow-sm); }
.info-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.info-card h3 i { color: var(--primary); }

.form-card { padding: 34px; }
.form-title { margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.form-field label em { color: var(--danger); font-style: normal; }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s; background: #fff;
  width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.14);
}
.form-field textarea { resize: vertical; }
.field-error { color: var(--danger); font-size: 0.82rem; font-weight: 500; }
.form-note { color: var(--muted); font-size: 0.82rem; margin: 16px 0 0; text-align: center; }
.form-note i { margin-right: 5px; }

.rating-label { font-weight: 600; font-size: 0.88rem; color: var(--ink); margin-bottom: 7px; display: block; }
.rating { display: flex; flex-direction: row-reverse; gap: 6px; }
.rating input { display: none; }
.rating label { cursor: pointer; color: #c9d8de; font-size: 1.45rem; padding: 2px; transition: color 0.15s, transform 0.15s; }
.rating label:hover, .rating label:hover ~ label, .rating input:checked ~ label { color: var(--accent); transform: scale(1.1); }

/* ------------------------------ Contact / map ------------------------------ */
.contact-cards { margin-bottom: 40px; }
.contact-card { padding: 26px 24px; }
.contact-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.contact-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.contact-card small { font-size: 0.82rem; }

.map-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.map-head h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 11px; margin-bottom: 4px; }
.map-head h2 i { color: var(--primary); }
.map-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.map-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hospital-map { height: 430px; border-radius: 12px; overflow: hidden; z-index: 1; }
.map-note { color: var(--muted); font-size: 0.86rem; margin: 16px 0 0; }
.map-links { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------ Page hero / breadcrumb ------------------------------ */
.page-hero { position: relative; color: #fff; background-size: cover; background-position: center; }
.page-hero-inner { position: relative; padding: 74px 0 58px; }
.page-hero h1 { color: #fff; margin-bottom: 10px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.page-hero-lead { color: #d9ecf2; max-width: 640px; margin: 0; font-size: 1.02rem; }
.article-hero .page-hero-inner { padding: 110px 0 64px; }
.article-meta { display: flex; gap: 24px; flex-wrap: wrap; color: #d9ecf2; font-size: 0.88rem; margin-top: 8px; }
.article-meta i { margin-right: 7px; color: #ffc98a; }

.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: #cfe8ef; margin-top: 14px; }
.breadcrumb a { color: #ffc98a; font-weight: 600; }
.breadcrumb i { font-size: 0.7rem; opacity: 0.7; }
.breadcrumb-light { margin-top: 18px; }

/* ------------------------------ Article extras ------------------------------ */
.share-row {
  display: flex; align-items: center; gap: 12px; margin: 34px 0; padding: 18px 22px;
  background: var(--tint); border-radius: 12px; font-weight: 600; color: var(--ink);
}
.share-row a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); transition: all 0.2s;
}
.share-row a:hover { background: var(--primary); color: #fff; }
.article-nav { margin-top: 26px; }

/* ------------------------------ Empty state / 404 ------------------------------ */
.empty-state { text-align: center; padding: 70px 0; color: var(--muted); }
.empty-state i { font-size: 2.6rem; color: var(--line); margin-bottom: 14px; }
.error-state { padding: 90px 0; }
.error-code { font-family: var(--font-display); font-size: 5.5rem; font-weight: 800; color: var(--tint-2); line-height: 1; display: block; margin-bottom: 12px; -webkit-text-stroke: 2px var(--primary); color: transparent; }

/* ------------------------------ Pagination ------------------------------ */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.page-link {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 600; font-size: 0.9rem; padding: 0 12px;
}
a.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-link.disabled { opacity: 0.45; }
.page-link.dots { border: 0; background: none; }

/* ------------------------------ CTA band ------------------------------ */
.cta-band { background: linear-gradient(110deg, var(--primary-dark) 0%, var(--primary) 100%); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 44px 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; display: flex; align-items: center; gap: 14px; margin-bottom: 8px; font-size: 1.5rem; }
.cta-band h2 i { color: #ffc98a; }
.cta-band p { color: #d9ecf2; margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 13px; flex-wrap: wrap; }

/* ------------------------------ Footer ------------------------------ */
.site-footer { background: #0b2e38; color: #9fbec9; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr; gap: 40px; padding: 64px 0 48px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-brand p { margin: 18px 0; line-height: 1.7; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: #cfe8ef; transition: all 0.2s;
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: #9fbec9; }
.footer-links a:hover { color: #fff; }
.footer-links a::before { content: '\203A'; margin-right: 8px; color: var(--accent); font-weight: 700; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact i { color: var(--accent); margin-top: 4px; width: 16px; text-align: center; }
.footer-contact a { color: #cfe8ef; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.09); padding: 18px 0; font-size: 0.83rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-mini-links a { color: #7fa3af; margin-left: 8px; }
.footer-mini-links a:hover { color: #fff; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .calendar-layout { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; align-items: flex-start; padding: 70px 0 80px; }
  .hero-card { width: 100%; max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .feedback-layout { grid-template-columns: 1fr; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 4%; gap: 2px; }
  .main-nav a { padding: 12px 14px; }
  .main-nav a.active::after { display: none; }
  .nav-toggle { display: block; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .hide-sm { display: none; }
  .event-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .event-arrow { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .event-detail-card { flex-direction: column; padding: 24px; }
  .calendar td { height: 52px; padding: 3px; }
  .cal-num { width: 22px; height: 22px; font-size: 0.8rem; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero-inner { padding: 54px 0 44px; }
}

@media print {
  .topbar, .site-header, .cta-band, .site-footer, .map-actions { display: none !important; }
}
