:root {
  --brand: #006699;
  --brand-dark: #004a70;
  --text: #1a1a1a;
  --muted: #5a6670;
  --bg: #ffffff;
  --bg-alt: #f4f7f9;
  --border: #e1e6ea;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
header.site-header img.logo { height: 48px; }
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
nav.main-nav a:hover { color: var(--brand); text-decoration: none; }

/* Hero */
.hero {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 48px 20px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.hero img.portrait {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero .hero-text { flex: 1; min-width: 280px; }
.hero h1 { color: var(--brand); margin-top: 0; }

/* Sections */
section.page-section { padding: 40px 20px; max-width: 1100px; margin: 0 auto; }
section.page-section.alt { background: var(--bg-alt); max-width: none; }
section.page-section.alt > .container { max-width: 1100px; margin: 0 auto; }
h2.section-title { color: var(--brand); border-bottom: 3px solid var(--brand); display: inline-block; padding-bottom: 4px; }

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.news-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg); }
.news-card img { width: 100%; height: 140px; object-fit: contain; background: var(--bg-alt); padding: 12px; }
.news-card .news-body { padding: 16px; }
.news-card .category { color: var(--brand); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; }
.news-card h3 { margin: 8px 0; font-size: 1.05rem; }
.news-card .date { color: var(--muted); font-size: 0.8rem; }

/* Station logo carousel */
.station-carousel { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.carousel-viewport { overflow: hidden; width: 960px; max-width: 100%; }
.carousel-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  transition: transform 0.4s ease;
}
.carousel-track img {
  height: 50px;
  width: 140px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.2s, opacity 0.2s;
}
.carousel-track img:hover { filter: grayscale(0%); opacity: 1; }

.carousel-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}
.carousel-arrow:hover:not(:disabled) { background: var(--brand-dark); }
.carousel-arrow:disabled { background: var(--border); color: var(--muted); cursor: default; }

/* Contact form */
form.contact-form { max-width: 480px; margin-top: 20px; }
form.contact-form label { display: block; font-weight: 600; margin-bottom: 4px; margin-top: 16px; }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
form.contact-form button {
  margin-top: 20px;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
form.contact-form button:hover { background: var(--brand-dark); }
#form-status { margin-top: 12px; font-weight: 600; }
#form-status.success { color: #1a7a3a; }
#form-status.error { color: #b00020; }

.placeholder-note {
  background: #fff8e1;
  border: 1px solid #f0d58c;
  border-radius: 6px;
  padding: 16px;
  color: #6b5600;
  font-size: 0.9rem;
}

/* Footer */
footer.site-footer {
  background: var(--brand);
  color: #fff;
  padding: 40px 20px 20px;
  margin-top: 60px;
}
footer.site-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}
footer.site-footer h4 { margin: 0 0 12px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
footer.site-footer a { color: #e0f0ff; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; }
.footer-bottom { text-align: center; margin-top: 30px; font-size: 0.8rem; color: #cfe6f5; }

@media (max-width: 700px) {
  header.site-header { flex-direction: column; gap: 12px; }
  nav.main-nav ul { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .hero { flex-direction: column; text-align: center; }
}
