:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-alt: #eef3f2;
  --ink: #172026;
  --muted: #4b5a63;
  --brand: #0f766e;
  --brand-dark: #0a5852;
  --accent: #0d4f8b;
  --border: #dce4e3;
  --danger: #b91c1c;
  --radius: 14px;
  --maxw: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.8;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* News Ticker Bar (fixed height prevents CLS) */
.ticker-bar {
  background: #0f2430;
  color: #f0f7f6;
  border-bottom: 2px solid var(--brand);
  font-size: 14px;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6px 18px;
}
.ticker-badge {
  background: var(--brand);
  color: #fff;
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
  font-size: 12px;
  flex-shrink: 0;
}
.ticker-viewport {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  position: relative;
  min-height: 24px;
}
.ticker-track {
  display: inline-flex;
  gap: 32px;
  animation: tickerScroll 48s linear infinite;
}
.ticker-viewport:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { color: #e2f5f2; font-weight: 500; }
.ticker-track a:hover { color: #ffffff; }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
}

/* Header & Navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 21px;
  text-decoration: none;
}
.brand-link:hover { text-decoration: none; }
.brand-sub { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--surface-alt);
  color: var(--brand-dark);
  text-decoration: none;
}
.nav-cta {
  background: var(--brand) !important;
  color: #ffffff !important;
}
.nav-cta:hover { background: var(--brand-dark) !important; }

/* Radio Strip */
.radio-bar {
  background: linear-gradient(90deg, #eef6f5, #eaf1f8);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.radio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.radio-info { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.radio-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #64748b; display: inline-block; flex-shrink: 0;
}
.radio-dot.playing { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2); }
.radio-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.radio-select {
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; color: var(--ink); font-family: inherit; font-size: 13px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; border: 0; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--accent); color: #fff; }
.btn-secondary:hover { background: #093b69; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-alt); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0b3c49 0%, #0f766e 60%, #0d4f8b 100%);
  color: #fff;
  border-radius: 18px;
  padding: 36px 28px;
  margin: 22px 0;
}
.hero-kicker {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  color: #e6fffa;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero h1 { margin: 0 0 12px; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.35; }
.hero p { margin: 0 0 20px; max-width: 740px; color: #e2f3f1; font-size: 16.5px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta-main { background: #ffffff; color: #0b3c49; }
.hero-cta-main:hover { background: #e6fffa; }
.hero-cta-alt { background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.hero-cta-alt:hover { background: rgba(255,255,255,0.26); }

/* Layout Grid */
.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  margin: 24px 0 36px;
}
@media (max-width: 900px) { .layout-grid { grid-template-columns: 1fr; } }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 0 0 16px; border-bottom: 2px solid var(--border); padding-bottom: 10px;
}
.section-head h2 { margin: 0; font-size: 21px; color: var(--ink); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-cat {
  font-size: 12px; font-weight: 700; color: var(--brand-dark);
  background: var(--surface-alt); padding: 2px 9px; border-radius: 6px; align-self: flex-start;
}
.card h3 { margin: 0; font-size: 17px; line-height: 1.5; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--brand-dark); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card-meta { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; }

/* Sidebar */
.side-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}
.side-box h2, .side-box h3 { margin: 0 0 12px; font-size: 17px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.pill-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pill-links a {
  background: var(--surface-alt); color: var(--ink); padding: 7px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; text-align: center;
}
.pill-links a:hover { background: var(--brand); color: #fff; text-decoration: none; }

.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.news-list li:last-child { border-bottom: 0; }
.news-list a { color: var(--ink); font-weight: 600; display: block; }
.news-list small { color: var(--muted); font-size: 12px; }

/* Article Page */
.breadcrumb { font-size: 13.5px; color: var(--muted); margin: 18px 0 8px; }
.article-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}
@media (max-width: 600px) { .article-shell { padding: 18px; } }
.article-shell h1 { margin: 0 0 10px; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.4; }
.article-meta { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.article-shell h2 { color: var(--brand-dark); margin: 24px 0 10px; font-size: 21px; }
.article-shell h3 { color: var(--accent); margin: 18px 0 8px; font-size: 17.5px; }
.article-shell p { margin: 0 0 14px; }
.article-shell ul, .article-shell ol { margin: 0 0 16px; padding-right: 22px; }
.article-shell li { margin-bottom: 6px; }
.cta-banner {
  background: linear-gradient(135deg, #eef6f5, #e6eff8);
  border: 1px solid var(--border);
  border-right: 4px solid var(--brand);
  border-radius: 12px;
  padding: 18px;
  margin: 22px 0;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq-item h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.faq-item p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Footer */
.site-footer {
  background: #102029;
  color: #cbd5e1;
  padding: 28px 0;
  margin-top: 32px;
  font-size: 14px;
}
.footer-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: #e2f5f2; }

/* Admin Studio Helpers */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 5px; font-size: 14px; }
.form-control {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 14.5px; background: #fff; color: var(--ink);
}
textarea.form-control { min-height: 170px; resize: vertical; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.alert-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
