:root {
  --bg: #eae1de;
  --cream: #fdfbf3;
  --blue: #2b6fb3;
  --blue-dark: #1f5c99;
  --navy: #14324f;
  --ink: #16232f;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 24px rgba(20, 50, 79, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

button { font: inherit; cursor: pointer; }

a { color: inherit; text-decoration: none; }

.am, .news-overlay, .slide-caption .am { font-family: "Noto Sans Ethiopic", "Inter", sans-serif; }

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid rgba(20, 50, 79, 0.08);
  padding: 9px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  max-width: 780px;
  margin: 0 auto;
}

/* The supplied logo is a JPEG on white; multiply drops that white into the
   cream header (and leaves it untouched on the footer's white plaque). */
.brand-logo { display: block; width: auto; height: 48px; mix-blend-mode: multiply; }

/* ---------- Layout ---------- */
main {
  max-width: 780px;
  margin: 0 auto;
  padding: 22px 20px 0;
}

.section { margin-bottom: 34px; }

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  margin: 0 0 14px;
}

/* ---------- Hero ---------- */
.hero { margin-bottom: 26px; }

.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(20, 50, 79, 0.22);
  background: #08131d;
}

.slides { position: relative; aspect-ratio: 16 / 9; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.slide.is-active { opacity: 1; pointer-events: auto; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(0.4px);
  border: 2px solid #fff;
  border-radius: 4px;
}

/* Portrait photographs would lose the face in a 16:9 frame, so bias the crop up. */
.slide.is-portrait img { object-position: 50% 12%; }

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 20px 16px;
  text-align: center;
  color: #fff;
  background: linear-gradient(to top, rgba(6, 20, 32, 0.82), rgba(6, 20, 32, 0.28) 62%, transparent);
}

.slide-caption .am { margin: 0 0 2px; font-size: 12px; font-weight: 600; }

.slide-caption .en { margin: 0; font-size: 10.5px; color: rgba(255, 255, 255, 0.85); }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 34, 46, 0.55);
  transition: background 0.2s ease;
}

.carousel-arrow svg { width: 15px; height: 15px; }
.carousel-arrow:hover { background: rgba(20, 34, 46, 0.8); }
.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }

.dots {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.dot.is-active { width: 14px; border-radius: 3px; background: #fff; }

/* ---------- News ---------- */
.news-list { display: grid; gap: 12px; }

.news-card {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(20, 50, 79, 0.18);
  background: #0b1520;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(20, 50, 79, 0.24); }

.news-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }

.news-media img { width: 100%; height: 100%; object-fit: cover; filter: blur(0.4px); }

.news-overlay {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 14px 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.55;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
  background: rgba(8, 22, 34, 0.42);
}

.play {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.play svg { width: 13px; height: 13px; margin-left: 1px; }

.news-date {
  background: #16283a;
  color: rgba(255, 255, 255, 0.82);
  font-size: 9px;
  letter-spacing: 0.4px;
  text-align: center;
  padding: 5px 8px;
}

/* ---------- Video ---------- */
.video-shell { display: grid; gap: 12px; justify-items: center; }

.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0f11;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(20, 50, 79, 0.2);
}

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-right-color: #fff;
  animation: spin 1s linear infinite;
  transition: opacity 0.2s ease;
}

@keyframes spin { to { transform: rotate(360deg); } }

.video-player.is-playing .spinner { opacity: 0; }

.video-bigplay {
  position: absolute;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-bigplay svg { width: 26px; height: 26px; margin-left: 3px; }
.video-bigplay:hover { transform: scale(1.06); }
.video-player:hover .video-bigplay, .video-player.is-playing .video-bigplay { opacity: 1; }
.video-player.is-playing .video-bigplay { opacity: 0; }

.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

.ctrl { display: inline-flex; width: 13px; height: 13px; opacity: 0.9; }
.ctrl svg { width: 100%; height: 100%; }

.time { font-size: 8.5px; letter-spacing: 0.3px; opacity: 0.85; }

.track {
  flex: 1;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.track-fill { display: block; width: 0; height: 100%; background: #6cb0ec; transition: width 0.3s linear; }

.btn-skip {
  border: 0;
  border-radius: 5px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 4px 10px rgba(43, 111, 179, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-skip:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ---------- Stats ---------- */
.stat-card {
  background: var(--card);
  border-radius: 4px;
  padding: 22px 18px;
  box-shadow: 0 8px 20px rgba(20, 50, 79, 0.12);
}

.map { width: 100%; height: auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }

.faq-item {
  background: var(--card);
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(20, 50, 79, 0.08);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  color: #1b2a38;
}

.faq-icon {
  flex: 0 0 auto;
  color: #6b7c8c;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p {
  margin: 0;
  padding: 0 12px 12px;
  font-size: 10.5px;
  line-height: 1.65;
  color: #4a5a68;
}

/* ---------- Code ---------- */
.code-section { text-align: center; }

.code-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 16px;
  letter-spacing: -0.2px;
  font-family: "Inter", "Noto Sans Ethiopic", sans-serif;
}

.code-card {
  display: inline-block;
  background: var(--card);
  border-radius: 6px;
  padding: 18px 22px;
  box-shadow: 0 8px 20px rgba(20, 50, 79, 0.12);
}

.code-form { display: grid; gap: 10px; }

.code-inputs { display: flex; gap: 6px; justify-content: center; }

.code-cell {
  width: 34px;
  height: 30px;
  border: 0;
  border-radius: 3px;
  background: #3a3a3a;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  outline: 2px solid transparent;
  transition: background 0.15s ease, outline-color 0.15s ease;
}

.code-cell:focus { outline-color: var(--blue); background: #2f2f2f; }

.code-cell.is-filled { background: #4a4a4a; }

.code-msg {
  margin: 0;
  min-height: 12px;
  font-size: 10px;
  color: #b23b3b;
}

.code-msg.is-ok { color: var(--blue-dark); }

.btn-verify {
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
  background: var(--navy);
  transition: background 0.2s ease;
}

.btn-verify:hover { background: #0d2439; }

/* ---------- CTA ---------- */
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--card);
  border: 1px solid rgba(43, 111, 179, 0.35);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 6px 16px rgba(20, 50, 79, 0.06);
}

.cta-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
}

.btn-learn {
  flex: 0 0 auto;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-learn:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 26px 20px 20px;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

/* The logo is a raster with a white background, so the navy footer carries it
   on a white plaque instead of printing it straight onto the dark. */
.brand--footer {
  justify-content: flex-start;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 8px;
  background: #ffffff;
}
.brand-logo--footer { height: 26px; }

.footer-note {
  margin: 10px 0 0;
  font-size: 9.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 330px;
  font-family: "Noto Sans Ethiopic", "Inter", sans-serif;
}

.footer-links { display: grid; gap: 6px; align-content: start; }

.footer-links h4 {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ffffff;
  text-transform: uppercase;
}

.footer-links a {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 780px;
  margin: 0 auto;
  padding: 12px 20px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p { margin: 0; }

.socials { display: flex; gap: 8px; }

.socials a {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.socials a:hover { color: #fff; }
.socials svg { width: 12px; height: 12px; }

.legal a { color: rgba(255, 255, 255, 0.6); }
.legal a:hover { color: #fff; }

/* ---------- Admin entry ---------- */
.admin-gear {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 60;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(20, 50, 79, 0.18);
  border-radius: 50%;
  color: rgba(20, 50, 79, 0.55);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 3px 10px rgba(20, 50, 79, 0.14);
  opacity: 0.72;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.admin-gear svg { width: 16px; height: 16px; }
.admin-gear:hover { opacity: 1; color: var(--blue); transform: rotate(35deg); }

.admin-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(12, 30, 48, 0.72);
  backdrop-filter: blur(3px);
}

.admin-gate[hidden] { display: none; }

.admin-gate-card {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 12px;
  padding: 22px 20px 18px;
  text-align: center;
  box-shadow: 0 20px 44px rgba(4, 16, 28, 0.4);
}

.admin-gate-icon { display: block; width: 26px; margin: 0 auto 8px; color: var(--blue); }
.admin-gate-icon svg { width: 100%; height: auto; display: block; }

.admin-gate-card h2 { margin: 0 0 4px; font-size: 14px; color: var(--navy); }
.admin-gate-card p { margin: 0 0 12px; font-size: 10.5px; line-height: 1.6; color: #5d7183; }

.admin-gate-card input {
  width: 100%;
  font: inherit;
  font-size: 12px;
  text-align: center;
  letter-spacing: 1px;
  padding: 9px 12px;
  border: 1px solid #dbe5ee;
  border-radius: 5px;
  background: #f7fafc;
  outline: 2px solid transparent;
}

.admin-gate-card input:focus { border-color: var(--blue); background: #fff; outline-color: rgba(43, 111, 179, 0.18); }

.admin-gate-msg { margin: 8px 0 0; min-height: 12px; font-size: 10px; color: #b23b3b; }

.admin-gate-actions { display: flex; gap: 8px; margin-top: 10px; }

.btn-gate-ghost,
.btn-gate-primary {
  flex: 1;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-gate-ghost { background: #fff; border-color: #dbe5ee; color: #5d7183; }
.btn-gate-ghost:hover { background: #f1f5f9; }
.btn-gate-primary { background: var(--blue); color: #fff; }
.btn-gate-primary:hover { background: var(--blue-dark); }

/* ---------- Responsive ---------- */
@media (min-width: 620px) {
  .brand-logo { height: 52px; }
  .brand-logo--footer { height: 30px; }

  .slide-caption .am { font-size: 16px; }
  .slide-caption .en { font-size: 12px; }

  .section-title { font-size: 19px; }
  .news-list { grid-template-columns: 1fr; gap: 16px; }
  .news-overlay { font-size: 13px; }
  .news-date { font-size: 10px; }

  .faq-q { font-size: 12.5px; padding: 12px 16px; }
  .faq-a p { font-size: 12px; padding: 0 16px 14px; }

  .code-title { font-size: 28px; }
  .code-cell { width: 42px; height: 36px; font-size: 16px; }
  .code-inputs { gap: 8px; }

  .cta-card h3 { font-size: 19px; }
  .footer-inner { grid-template-columns: 1.6fr 1fr; gap: 30px; padding: 34px 20px 26px; }
  .footer-bottom { font-size: 10px; }
  .footer-links a { font-size: 11px; }
  .footer-note { font-size: 11px; }
}

@media (min-width: 900px) {
  main { padding-top: 30px; }
  .section { margin-bottom: 44px; }
}
