:root {
  --primary: #1b3a6b;   /* navy blue */
  --accent: #c9a227;    /* gold */
  --band: #f5f6f8;      /* alternating section background */
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 0.5px solid var(--border);
}

.brand {
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.container { max-width: 880px; margin: 0 auto; padding: 32px 24px; }

.hero h1 { color: var(--primary); }
.muted { color: var(--muted); }

.button {
  display: inline-block;
  padding: 8px 16px;
  border: 0.5px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  text-decoration: none;
}

/* --- Flash messages ------------------------------------------------------ */
.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.messages .msg {
  padding: 10px 14px; border-radius: 6px; margin-bottom: 8px;
  border: 1px solid var(--border);
}
.messages .msg-success { background: #e6f4ea; border-color: #97c9a9; }
.messages .msg-error { background: #fdeaea; border-color: #e0a3a3; }
.messages .msg-info, .messages .msg-warning { background: var(--band); }

/* --- Language toggle ----------------------------------------------------- */
.lang-toggle { display: inline-flex; align-items: center; gap: 4px; }
.lang-toggle .lang-opt {
  background: none; border: 0; cursor: pointer; padding: 2px 4px;
  font-size: 13px; color: var(--muted);
}
.lang-toggle .lang-opt.active { color: var(--primary); font-weight: 600; }
.lang-toggle .lang-sep { color: var(--border); }

/* --- Nav dropdown (Past Recipients) -------------------------------------- */
.nav-dropdown { position: relative; }
.nav-dropdown .nav-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 0; min-width: 160px; z-index: 20;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.nav-dropdown:hover .nav-menu { display: block; }
.nav-dropdown .nav-menu a { display: block; padding: 8px 16px; }

/* --- How-to steps / FAQ / recipients ------------------------------------- */
.steps { padding-left: 0; counter-reset: step; list-style: none; }
.steps .step {
  position: relative; padding: 12px 0 12px 48px;
  border-bottom: 1px solid var(--border);
}
.steps .step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.faq-item {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; margin: 8px 0;
}
.faq-item summary { cursor: pointer; font-weight: 600; }
table.recipients { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
table.recipients th, table.recipients td {
  text-align: left; padding: 8px; border-bottom: 1px solid var(--border);
}

/* Recipient cards (photo + text) */
.recipient-grid {
  display: grid; gap: 16px; margin-bottom: 24px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.recipient-card {
  border: 1px solid var(--border); border-radius: 8px; padding: 16px; text-align: center;
}
.recipient-card img {
  width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin-bottom: 8px;
}
.recipient-card h3 { margin: 4px 0; }

/* Category / step photos */
.category-image {
  width: 100%; max-height: 280px; object-fit: cover; border-radius: 8px; margin: 8px 0 16px;
}
.step-image {
  max-width: 240px; border-radius: 6px; margin: 6px 0; display: block;
}

/* --- Tabs (Categories page; also reused for the application form) -------- */
.tab-bar {
  display: flex; flex-wrap: wrap; gap: 4px;
  border-bottom: 2px solid var(--border); margin-bottom: 20px;
}
.tab-bar .tab {
  background: none; border: 0; cursor: pointer;
  padding: 12px 20px; font-size: 15px; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab-bar .tab.active {
  color: var(--primary); font-weight: 600;
  border-bottom-color: var(--accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel .award { color: var(--primary); font-weight: 600; }
.tab-bar .tab.has-error { color: #b00; }
.tab-error-dot { color: #b00; font-weight: 700; }

/* Application form fields */
.field { margin: 14px 0; }
.field-label { display: block; font-size: 13px; color: #555; margin-bottom: 4px; }
.field-label .req { color: #b00; }
.field-label .opt { color: var(--muted); font-size: 12px; }
.field-prompt { font-size: 13px; color: #333; margin-bottom: 6px; white-space: pre-wrap; }
.field-error { color: #b00; font-size: 12px; margin-top: 4px; }
.field input[type=text], .field input[type=email], .field input[type=number],
.field input[type=date], .field select { padding: 6px 8px; min-width: 260px; }

/* --- Hero banner carousel (slides sideways) ------------------------------ */
.carousel {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -32px;            /* flush to header */
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}
.carousel-slide {
  position: relative;
  min-width: 100%;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), #25508f);
  color: #fff;
}
.carousel-slide .slide-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: 0.4;
}
.carousel-slide .slide-caption { position: relative; z-index: 1; padding: 0 24px; }
.carousel-slide h1 { color: #fff; font-size: 2.8rem; letter-spacing: 2px; margin: 0 0 10px; }
.carousel-slide p { font-size: 1.4rem; font-style: italic; color: var(--accent); margin: 0 0 18px; }
.apply-cta {
  background: var(--accent) !important; border-color: var(--accent) !important;
  color: #1a1a1a !important; font-weight: 600; padding: 12px 28px;
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.3); color: #fff; border: 0;
  width: 44px; height: 44px; font-size: 28px; cursor: pointer; z-index: 2;
}
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-dots {
  position: absolute; bottom: 16px; left: 0; right: 0;
  display: flex; gap: 8px; justify-content: center; z-index: 2;
}
.carousel-dots .dot {
  width: 11px; height: 11px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.5); cursor: pointer;
}
.carousel-dots .dot.active { background: var(--accent); }

/* --- Public home: full-width bands, alternating backgrounds --------------- */
.home-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 64px 24px;
}
.home-section > * {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.home-section:nth-of-type(even) { background: var(--band); }
.home-section:first-child { margin-top: -32px; }   /* flush to header */
.home-section h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 8px;
}

/* Hero */
.home-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary), #25508f);
  color: #fff;
  text-align: center;
  padding: 120px 24px;
}
.home-hero h1 {
  color: #fff;
  font-size: 2.8rem;
  letter-spacing: 2px;
  margin: 0 0 8px;
}
.home-hero .hero-subtitle {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent);
  margin: 0 0 16px;
}
.home-hero .hero-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; opacity: 0.35; z-index: 0;
}
.home-hero > *:not(.hero-image) { position: relative; z-index: 1; }
.home-hero .button {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #1a1a1a !important;
  font-weight: 600;
  padding: 12px 28px;
}

/* Dates / categories lists */
.home-section .dates,
.home-section .categories {
  list-style: none; padding: 0; text-align: center;
}
.home-section .dates li { margin: 4px 0; }
.home-section .categories li {
  display: inline-block;
  margin: 6px; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 20px;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.gallery-grid img {
  width: 100%; height: 150px; object-fit: cover; border-radius: 6px;
}
.gallery-grid figcaption { font-size: 12px; color: var(--muted); }

/* Announcement cards */
.announcement {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 12px 0;
}
.announcement h3 { margin: 0 0 4px; }

/* Top navigation menu */
.site-nav { display: flex; gap: 18px; align-items: center; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 14px; }
.site-nav a.apply {
  background: var(--accent); color: #1a1a1a;
  padding: 6px 14px; border-radius: 6px; font-weight: 600;
}
