/* ── MCA Global Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600&display=swap');

:root {
  --blue:        #18489e;   /* headings, primary brand */
  --blue-dark:   #123a82;   /* hover states */
  --green:       #6cd26e;   /* accents, labels, highlights */
  --green-dark:  #4db84f;   /* hover on green elements */
  --black:       #111111;
  --mid:         #444444;
  --muted:       #888888;
  --border:      #dde3ee;   /* slightly blue-tinted border */
  --bg:          #f8f9fc;   /* faint blue-white background */
  --white:       #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--black);
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 58px;
}
.nav-logo {
  font-family: 'Times New Roman', Times, serif;
  font-size: 16px; font-weight: 700;
  color: var(--blue); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-dot {
  width: 8px; height: 8px; background: var(--green);
  border-radius: 50%; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links a {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 6px 14px;
  transition: color 0.15s; border-bottom: 2px solid transparent;
  display: inline-block;
}
.nav-links a:hover  { color: var(--blue); border-bottom-color: var(--green); }
.nav-links a.active { color: var(--blue); border-bottom-color: var(--green); }
.nav-discord {
  margin-left: 8px; background: #5865F2 !important; color: white !important;
  border-bottom: none !important; padding: 6px 16px !important;
  border-radius: 4px; font-weight: 600 !important; transition: background 0.15s !important;
}
.nav-discord:hover { background: #4752c4 !important; color: white !important; border-bottom-color: transparent !important; }

/* ── PAGE WRAPPER ── */
.page-wrap { padding-top: 58px; min-height: 100vh; }

/* ─────────────────────────────────────────────
   IMAGE SLOTS
   All image components are self-contained blocks.
   Commenting out the HTML for any of them
   will have zero effect on surrounding layout.
───────────────────────────────────────────── */

/* Hero background image — sits behind hero text at low opacity */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center; display: block; opacity: 0.12;
}
.hero:has(.hero-bg) { position: relative; }
.hero:has(.hero-bg) > *:not(.hero-bg) { position: relative; z-index: 1; }

/* Section image — full-width banner inside a .section */
.section-image {
  margin: 2rem 0; border-radius: 6px;
  overflow: hidden; border: 1px solid var(--border);
}
.section-image img {
  width: 100%; height: auto; display: block;
  max-height: 420px; object-fit: cover; object-position: center;
}
.section-image figcaption {
  font-size: 12px; color: var(--muted); font-weight: 400;
  padding: 8px 12px; border-top: 1px solid var(--border);
  background: var(--white);
}

/* Leader portrait */
.leader-photo {
  width: 52px; height: 52px; border-radius: 4px;
  object-fit: cover; object-position: top center;
  border: 1px solid var(--border); flex-shrink: 0; display: block;
}

/* Side-by-side image + text */
.image-aside {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; align-items: start; margin: 2rem 0;
}
.image-aside img {
  width: 100%; height: auto; display: block;
  border-radius: 6px; border: 1px solid var(--border);
  object-fit: cover; max-height: 340px;
}
@media (max-width: 640px) { .image-aside { grid-template-columns: 1fr; } }

/* ── HERO ── */
.hero {
  border-bottom: 1px solid var(--border);
  padding: 5rem 2.5rem 4.5rem;
  max-width: 820px; margin: 0 auto;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--green); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::after {
  content: ''; display: block; height: 1px; width: 40px;
  background: var(--green); opacity: 0.6;
}
.hero h1 {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700; line-height: 1.15; color: var(--blue);
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--green); }
.hero-sub {
  font-size: 17px; font-weight: 400; color: var(--mid);
  max-width: 520px; line-height: 1.75; margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-discord {
  background: #5865F2; color: var(--white); font-size: 13px; font-weight: 600;
  padding: 11px 22px; border: none; border-radius: 4px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.15s;
}
.btn-discord:hover { background: #4752c4; }
.btn-outline {
  background: transparent; color: var(--blue); font-size: 13px; font-weight: 600;
  padding: 11px 22px; border: 2px solid var(--blue); border-radius: 4px;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* ── CONTENT ── */
.content { max-width: 820px; margin: 0 auto; padding: 0 2.5rem; }
.section { padding: 4rem 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }

.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--green); margin-bottom: 1.25rem;
}
.section h2 {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700; color: var(--blue); margin-bottom: 1.5rem; line-height: 1.25;
}
.section p {
  color: var(--mid); font-weight: 400; line-height: 1.8;
  margin-bottom: 1rem; max-width: 660px; font-size: 15.5px;
}
.section p strong { font-weight: 600; color: var(--black); }
hr.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── INFO GRID ── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.info-item-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.info-item-value {
  font-family: 'Times New Roman', Times, serif;
  font-size: 20px; color: var(--blue); margin-bottom: 4px;
}
.info-item-sub { font-size: 13px; color: var(--muted); font-weight: 400; }

/* ── TABLE ── */
.leader-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.leader-table td {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 15px; vertical-align: middle;
}
.leader-table td:first-child { font-weight: 600; color: var(--blue); width: 50%; padding-right: 1rem; }
.leader-table td:last-child { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0.5px; }
.leader-table tr:last-child td { border-bottom: none; }

/* ── BRANCH HEADERS ── */
.branch-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--green); margin-bottom: 4px;
}
.branch-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: 26px; color: var(--blue); margin-bottom: 6px;
}
.branch-sub { font-size: 13px; color: var(--muted); margin-bottom: 1.5rem; }

/* ── SERVER ADDRESS ── */
.address-row {
  display: flex; align-items: center; gap: 12px; background: var(--white);
  border: 1px solid var(--border); border-radius: 6px; padding: 14px 18px;
  margin: 1.5rem 0; max-width: 480px;
}
.address-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); flex-shrink: 0;
}
.address-value {
  font-family: 'Times New Roman', Times, serif;
  font-size: 18px; color: var(--blue); flex: 1;
}
.copy-btn {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--white); background: var(--green); border: 1px solid var(--green);
  border-radius: 4px; padding: 5px 10px; cursor: pointer;
  transition: background 0.15s; flex-shrink: 0;
}
.copy-btn:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* ── STATUS BADGE ── */
.status-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px;
  border-radius: 100px; border: 1px solid;
}
.status-badge.online   { color: #1a7a1c; border-color: var(--green); background: rgba(108,210,110,0.1); }
.status-badge.checking { color: #b45309; border-color: #fbbf24; background: rgba(251,191,36,0.08); }
.status-badge.offline  { color: #b91c1c; border-color: #fca5a5; background: rgba(248,113,113,0.08); }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

/* ── RULES LIST ── */
.rules-list { list-style: none; margin-top: 1rem; }
.rules-list li {
  display: flex; gap: 16px; align-items: flex-start; padding: 14px 0;
  border-bottom: 1px solid var(--border); font-size: 15px; color: var(--mid); font-weight: 400;
}
.rules-list li:last-child { border-bottom: none; }
.rule-num {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--green); flex-shrink: 0; width: 24px; margin-top: 3px;
}

/* ── MODS ── */
.mods-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.mod-tag {
  font-size: 12px; font-weight: 500; color: var(--mid); background: var(--white);
  border: 1px solid var(--border); border-radius: 100px; padding: 5px 14px;
}
.mod-tag.banned {
  color: #b91c1c; border-color: #fca5a5;
  background: rgba(248,113,113,0.06); text-decoration: line-through;
}

/* ── PENALTIES ── */
.penalty-row {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.penalty-row:last-child { border-bottom: none; }
.penalty-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; width: 90px; flex-shrink: 0; margin-top: 3px;
}
.penalty-label.first     { color: #b45309; }
.penalty-label.second    { color: #b91c1c; }
.penalty-label.emergency { color: #6d28d9; }
.penalty-text { font-size: 15px; color: var(--mid); font-weight: 400; line-height: 1.7; }

/* ── CALLOUT ── */
.callout {
  border-left: 3px solid var(--blue); padding: 1rem 1.5rem;
  background: rgba(24,72,158,0.04); border-radius: 0 4px 4px 0; margin-top: 1.5rem;
}
.callout-title { font-weight: 700; color: var(--blue); font-size: 14px; margin-bottom: 4px; }
.callout-body { font-size: 13.5px; color: var(--mid); font-weight: 400; line-height: 1.7; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  background: var(--white);
}
.footer-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2.5rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 260px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-img { height: 36px; width: auto; display: block; }
.footer-logo-text {
  font-family: 'Times New Roman', Times, serif;
  font-size: 14px; font-weight: 700; color: var(--blue);
}
.footer-tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  margin: 0;
}
.footer-copy { font-size: 11px; color: var(--muted); margin-top: 4px; }

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 100px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 2px;
}
.footer-col a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--blue); }
.footer-col a svg { flex-shrink: 0; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--blue); color: white; font-size: 13px; font-weight: 500;
  padding: 10px 22px; border-radius: 4px; opacity: 0; pointer-events: none;
  transition: all 0.25s; z-index: 9999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── HAMBURGER MENU ─────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav — hamburger menu */
  nav {
    padding: 0 1.25rem;
    position: fixed;
    z-index: 200;
  }

  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 58px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 199;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 12px 1.5rem;
    font-size: 13px;
    letter-spacing: 1px;
    border-bottom: none !important;
    border-left: 3px solid transparent;
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-left-color: var(--green);
    border-bottom: none !important;
    background: rgba(24,72,158,0.03);
  }

  .nav-discord {
    margin: 0.5rem 1.25rem 0 !important;
    display: block !important;
    text-align: center !important;
    padding: 10px 16px !important;
    border-radius: 4px !important;
  }

  .nav-logo-img { height: 28px; }

  /* Scroll progress bar */
  .scroll-progress { top: 58px; }

  /* Page padding */
  .page-wrap { padding-top: 58px; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .content { padding: 0 1.25rem; }

  /* Hero */
  .hero h1 { font-size: clamp(28px, 8vw, 42px); }
  .hero-sub { font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-ctas a, .hero-ctas button { width: 100%; text-align: center; justify-content: center; }

  /* Grids */
  .info-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .image-aside { grid-template-columns: 1fr; }
  .nations-grid { grid-template-columns: repeat(2, 1fr); }

  /* Tables */
  .leader-table td { font-size: 13px; }
  .leader-table td:first-child { width: 55%; }

  /* History table */
  .history-table-wrap { font-size: 13px; }
  .history-table td { padding: 10px 12px; }
  .history-table td:nth-child(2) { white-space: normal; }

  /* Server cards */
  .server-cards { grid-template-columns: 1fr; }
  .server-card.single { max-width: 100%; }
  .address-row { flex-wrap: wrap; gap: 8px; }
  .address-value { font-size: 14px; word-break: break-all; }

  /* Featured banner */
  .featured-banner-inner {
    padding: 0.9rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .featured-banner-left { flex-wrap: wrap; gap: 8px; }
  .featured-banner-title { font-size: 14px; white-space: normal; }
  .featured-banner-right { align-items: flex-start; flex-direction: row; gap: 12px; }

  /* News cards */
  .news-card-title { font-size: 18px; }
  .article-hero { padding: 2.5rem 1.25rem 2rem; }
  .article-title { font-size: clamp(22px, 6vw, 34px); }
  .article-content { padding: 2rem 1.25rem 3rem; }

  /* Section spacing */
  .section { padding: 2.5rem 0; }
  .slideshow-section { padding: 2.5rem 0; }
  .slide img { height: 220px; }

  /* Penalties */
  .penalty-row { flex-direction: column; gap: 6px; }
  .penalty-label { width: auto; }

  /* Footer */
  .footer-inner {
    padding: 2rem 1.25rem 1.5rem;
    flex-direction: column;
    gap: 2rem;
  }
  .footer-brand { max-width: 100%; }
  .footer-links { gap: 2rem; }
  .footer-logo-img { height: 30px; }
  .footer-copy { font-size: 11px; }
}

/* Slightly larger phones / small tablets */
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(24px, 7vw, 32px); }
  .section h2 { font-size: clamp(20px, 5vw, 26px); }
  .branch-title { font-size: 22px; }
  .mods-grid { gap: 6px; }
  .mod-tag { font-size: 11px; padding: 4px 10px; }
  .news-card-meta { flex-wrap: wrap; gap: 6px; }
}

/* ── SLIDESHOW ──────────────────────────────────────────────────
   Commenting out the .slideshow HTML leaves zero gap.
   slideshow.js exits cleanly if .slideshow doesn't exist.
──────────────────────────────────────────────────────────────── */
.slideshow-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.slideshow {
  position: relative; width: 100%;
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--blue);
  margin-top: 1.5rem;
}
.slide { display: none; position: relative; }
.slide.active { display: block; animation: slideFadeIn 0.6s ease; }
@keyframes slideFadeIn { from { opacity: 0; } to { opacity: 1; } }
.slide img {
  width: 100%; height: 420px;
  object-fit: cover; object-position: center; display: block;
}
.slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: white; font-size: 12px; font-weight: 400; letter-spacing: 0.3px;
}
.slideshow-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.92); border: 1px solid var(--border);
  color: var(--blue); width: 36px; height: 36px; border-radius: 50%;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, opacity 0.15s;
  z-index: 10; opacity: 0; line-height: 1;
}
.slideshow:hover .slideshow-btn { opacity: 1; }
.slideshow-btn:hover { background: var(--white); }
.slideshow-btn.prev { left: 12px; }
.slideshow-btn.next { right: 12px; }
.slideshow-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.slideshow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none; padding: 0;
}
.slideshow-dot.active { background: var(--green); transform: scale(1.3); }

@media (max-width: 640px) { .slide img { height: 240px; } }

/* ── SERVER CARDS (server.html) ─────────────────────────────────
   Two side-by-side address + status cards.
──────────────────────────────────────────────────────────────── */
.server-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.server-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}
.server-card-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 0.75rem;
}
/* override address-row inside a card — no outer border, fills full width */
.server-card .address-row {
  border: none; border-bottom: 1px solid var(--border);
  border-radius: 0; padding: 0 0 0.75rem 0;
  margin: 0 0 0.75rem 0; max-width: 100%;
  background: transparent;
}
.server-card .address-value {
  font-size: 14px; word-break: break-all;
}
.server-card-status {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.status-detail {
  font-size: 12px; color: var(--muted);
}

@media (max-width: 640px) {
  .server-cards { grid-template-columns: 1fr; }
}

/* ── HISTORY PAGE ────────────────────────────────────────────── */

/* Bullet list used in history sections */
.history-list {
  list-style: none;
  margin: 1rem 0 1rem 0;
}
.history-list li {
  padding: 8px 0 8px 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--mid);
  font-weight: 400;
  line-height: 1.7;
  position: relative;
}
.history-list li:last-child { border-bottom: none; }
.history-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.history-list li strong { color: var(--black); font-weight: 600; }

/* Server history table */
.history-table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;           /* scrolls on narrow screens */
  border: 1px solid var(--border);
  border-radius: 6px;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.history-table thead tr {
  background: var(--blue);
  color: var(--white);
}
.history-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.history-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--mid);
  line-height: 1.6;
}
.history-table td:first-child { color: var(--black); white-space: nowrap; }
.history-table td:nth-child(2) { white-space: nowrap; color: var(--muted); font-size: 13px; }
.history-table tbody tr:last-child td { border-bottom: none; }
.history-table tbody tr:hover { background: rgba(24,72,158,0.03); }

/* Highlight the current/active server row */
.history-table .current-row td { background: rgba(108,210,110,0.08); }
.history-table .current-row td:first-child { color: var(--blue); }

/* ── HOME FEATURE LIST ───────────────────────────────────────── */
.home-feature-list {
  list-style: none;
  margin: 1.25rem 0;
}
.home-feature-list li {
  padding: 10px 0 10px 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--mid);
  line-height: 1.7;
  position: relative;
}
.home-feature-list li:last-child { border-bottom: none; }
.home-feature-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.home-feature-list li strong { color: var(--black); font-weight: 600; }

/* ── LOGO IMAGES ─────────────────────────────────────────────── */

/* Wide logo in the nav bar */
.nav-logo-img {
  height: 36px;       /* fits neatly within the 58px nav height */
  width: auto;
  display: block;
}

/* Square logo in the footer */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.footer-logo-text {
  font-family: 'Times New Roman', Times, serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

/* Address tip note below server cards */
.server-address-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 1rem;
}
.server-address-note strong { color: var(--blue); font-weight: 600; }
.server-address-note code {
  font-family: monospace;
  font-size: 12px;
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--black);
}

/* ── SCROLL PROGRESS BAR ─────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 58px;        /* sits flush under the nav */
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--green);
  z-index: 99;
  transition: width 0.05s linear;
}

/* Single server card (not in a grid) */
.server-card.single {
  max-width: 480px;
  margin: 1.5rem 0 0;
}

/* ── NEWS SYSTEM ─────────────────────────────────────────────── */

.news-loading {
  font-size: 14px;
  color: var(--muted);
  padding: 3rem 0;
  text-align: center;
  letter-spacing: 0.5px;
}

.news-error {
  font-size: 14px;
  color: #b91c1c;
  padding: 2rem;
  background: rgba(248,113,113,0.06);
  border: 1px solid #fca5a5;
  border-radius: 6px;
}

/* ── NEWS INDEX CARDS ── */
.news-index {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-card {
  display: block;
  text-decoration: none;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}

.news-card:first-child { padding-top: 0; }
.news-card:last-child  { border-bottom: none; }

.news-card:hover .news-card-title {
  color: var(--blue);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.5rem;
}

.news-card-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green);
  padding: 2px 8px;
  border-radius: 3px;
}

.news-card-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.news-card-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

.news-card-summary {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 0.6rem;
  max-width: 600px;
}

.news-card-byline {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ── ARTICLE HERO ── */
.article-hero {
  border-bottom: 1px solid var(--border);
  padding: 5rem 2.5rem 3.5rem;
  background: var(--white);
}

.article-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.article-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.article-summary {
  font-size: 18px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 1.25rem;
}

.article-byline {
  font-size: 13px;
  color: var(--muted);
}

.article-byline strong { color: var(--black); }

/* ── ARTICLE BODY ── */
.article-content {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.article-back {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.15s;
}

.article-back:hover { color: var(--green); }

.article-body h1,
.article-body h2,
.article-body h3 {
  font-family: 'Times New Roman', Times, serif;
  color: var(--blue);
  margin: 2rem 0 0.75rem;
  line-height: 1.25;
}

.article-body h1 { font-size: clamp(22px, 3vw, 30px); }
.article-body h2 { font-size: clamp(18px, 2.5vw, 24px); }
.article-body h3 { font-size: 18px; }

.article-body p {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  max-width: 660px;
}

.article-body strong { color: var(--black); font-weight: 600; }
.article-body em     { font-style: italic; }

.article-body ul,
.article-body ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  max-width: 660px;
}

.article-body li {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 0.3rem;
}

.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover { color: var(--green); }

/* Pull quote */
.pull-quote {
  border-left: 4px solid var(--green);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: rgba(24,72,158,0.03);
  border-radius: 0 6px 6px 0;
}

.pull-quote p,
.pull-quote {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(18px, 2.5vw, 22px);
  font-style: italic;
  color: var(--blue);
  line-height: 1.5;
  margin: 0;
}

/* Article images */
.article-image {
  margin: 2rem 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

.article-image figcaption {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

@media (max-width: 640px) {
  .article-hero { padding: 3rem 1.25rem 2.5rem; }
}

/* ── FEATURED BANNER (homepage) ─────────────────────────────── */
.featured-banner {
  display: block;
  text-decoration: none;
  background: var(--blue);
  color: var(--white);
  transition: background 0.15s;
}

.featured-banner:hover {
  background: var(--blue-dark);
}

.featured-banner-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.featured-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.featured-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--green);
  color: var(--black);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.featured-banner-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-banner-summary {
  display: none; /* shown on wider screens */
}

.featured-banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.featured-banner-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

.featured-banner-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

@media (max-width: 640px) {
  .featured-banner-inner {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .featured-banner-left  { flex-wrap: wrap; }
  .featured-banner-right { align-items: flex-start; }
}

/* ── NATIONS FLAG GRID ───────────────────────────────────────── */
.nations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.nation-flag-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.nation-flag-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: block;
}

.nation-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--mid);
  text-align: center;
}

@media (max-width: 640px) {
  .nations-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── NEWS SEARCH ─────────────────────────────────────────────── */
.news-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
  max-width: 540px;
}

/* Container that holds the icon + input together */
.news-search-inner {
  position: relative;
  flex: 1;
}

.news-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.news-search {
  width: 100%;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 16px 11px 42px;  /* left padding for icon */
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

/* Hide the browser's default X clear button — we keep it functional but style it away */
.news-search::-webkit-search-cancel-button { -webkit-appearance: none; }
.news-search::-webkit-search-decoration    { -webkit-appearance: none; }

.news-search:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24,72,158,0.08);
}

.news-search::placeholder {
  color: var(--muted);
  font-weight: 300;
}

.news-search-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.news-empty {
  font-size: 14px;
  color: var(--muted);
  padding: 2rem 0;
  font-style: italic;
}

/* ── LEADERSHIP TEAM GRID ────────────────────────────────────── */
.leadership-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.leadership-team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  border-top: 3px solid var(--blue);
  transition: box-shadow 0.15s;
}

.leadership-team-card:hover {
  box-shadow: 0 4px 16px rgba(24,72,158,0.08);
}

.leadership-team-name {
  font-family: 'Times New Roman', Times, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

.leadership-team-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .leadership-team-grid { grid-template-columns: 1fr 1fr; }
}

/* ── FOOTER DISCLAIMER ───────────────────────────────────────── */
.footer-disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 0.75rem 2.5rem 1.25rem;
  border-top: 1px solid var(--border);
  max-width: 820px;
  margin: 0 auto;
}

/* ── VERSION NUMBER ──────────────────────────────────────────── */
.footer-version {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--border);
  letter-spacing: 1px;
}

/* ── ARCHIVE SYSTEM ──────────────────────────────────────────── */

/* Filter buttons */
.archive-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.archive-filter-btn {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.15s;
}

.archive-filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.archive-filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* Search wrap reuse */
.archive-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  max-width: 540px;
}

/* Category sections */
.archive-category { margin-bottom: 3rem; }

.archive-category-header {
  font-family: 'Times New Roman', Times, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
}

.archive-category-docs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Archive cards */
.archive-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}

.archive-card:last-child { border-bottom: none; }
.archive-card:hover .archive-card-title { color: var(--blue); }

.archive-card-thumb {
  width: 72px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: block;
}

.archive-card-thumb-placeholder {
  width: 72px;
  height: 90px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.archive-card-body { flex: 1; min-width: 0; }

.archive-card-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  padding: 2px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 6px;
}

.archive-card-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.25;
  margin-bottom: 4px;
  transition: color 0.15s;
}

.archive-card-summary {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 6px;
}

.archive-card-meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

/* Document reader — side by side layout */
.document-content {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.document-layout {
  display: block;
}

.document-has-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.document-scan-label,
.document-text-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.document-scan img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  position: sticky;
  top: 80px;  /* stays visible while you scroll the explanation */
}

@media (max-width: 768px) {
  .document-has-image {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .document-scan img { position: static; }
  .archive-card-thumb,
  .archive-card-thumb-placeholder { width: 52px; height: 66px; }
}

/* ── ARCHIVE PDF HANDLING ────────────────────────────────────── */
.archive-card-thumb-pdf {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--blue);
  background: rgba(24,72,158,0.06);
  border-color: var(--blue) !important;
}

.document-pdf-wrap {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  position: sticky;
  top: 80px;
}

.document-pdf-icon { font-size: 48px; }

.document-pdf-name {
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}

.document-pdf-btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s;
}

.document-pdf-btn:hover { background: var(--blue-dark); }

/* ── FEATURED BANNER DISMISS BUTTON ─────────────────────────── */
.featured-banner-dismiss {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
  transition: color 0.15s;
  flex-shrink: 0;
}
.featured-banner-dismiss:hover { color: white; }

/* Make the banner wrapper relative so dismiss button can be positioned */
#featured-banner { position: relative; }

/* ── FEATURED BANNER WRAP FIX ───────────────────────────────── */
.featured-banner-wrap {
  position: relative;
  display: block;
  background: var(--blue);
}
.featured-banner-wrap .featured-banner {
  display: block;
  padding-right: 44px; /* room for the X button */
}
