/* Colorado Springs Military Guide - Main Stylesheet */
:root {
  --navy: #1B2A4A;
  --gold: #C8972B;
  --light-gold: #f0c96a;
  --white: #ffffff;
  --light-gray: #f4f6f9;
  --text: #2c3e50;
  --muted: #6c757d;
  --border: #dee2e6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* NAVIGATION */
nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nav-top {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 44px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}
.nav-links-row {
  background: rgba(0,0,0,0.2);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links-row::-webkit-scrollbar { display: none; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  white-space: nowrap;
}
.nav-links a {
  color: #cdd6e8;
  text-decoration: none;
  padding: 7px 11px;
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.2px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover {
  background: rgba(200,151,43,0.25);
  color: var(--gold);
}
.nav-links li.active a {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2d4a7a 100%);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 32px;
  opacity: 0.9;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); margin-left: 12px; }

/* STATS BAR */
.stats-bar {
  background: var(--gold);
  color: var(--white);
  padding: 20px;
  text-align: center;
}
.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; display: block; }
.stat-label { font-size: 0.85rem; opacity: 0.9; }

/* SECTIONS */
.section { padding: 60px 20px; }
.section-alt { background: var(--light-gray); }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 700;
}
.section-subtitle {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.14); }
.card-header {
  background: linear-gradient(135deg, var(--navy) 0%, #2d4a7a 100%);
  color: var(--white);
  padding: 20px;
}
.card-header h3 { font-size: 1.1rem; }
.card-header .badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.card-body { padding: 20px; }
.card-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.card-body a { color: var(--navy); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.card-body a:hover { color: var(--gold); }

/* TABLES */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th {
  background: linear-gradient(135deg, var(--navy) 0%, #2d4a7a 100%);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
td { padding: 11px 16px; border-bottom: 1px solid var(--border); }
tr:nth-child(even) td { background: var(--light-gray); }
tr:hover td { background: #e8edf5; }

/* ARTICLE LAYOUT */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}
.article-content h2 {
  color: var(--navy);
  font-size: 1.6rem;
  margin: 32px 0 12px;
  border-left: 4px solid var(--gold);
  padding-left: 12px;
}
.article-content h3 { color: var(--navy); margin: 24px 0 8px; font-size: 1.2rem; }
.article-content p { margin-bottom: 16px; line-height: 1.8; }
.article-content ul, .article-content ol { margin: 12px 0 20px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: var(--navy); text-decoration: underline; }

/* SIDEBAR */
.sidebar { }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}
.sidebar-widget h4 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget li { margin-bottom: 8px; }
.sidebar-widget a { color: var(--navy); text-decoration: none; font-size: 0.9rem; }
.sidebar-widget a:hover { color: var(--gold); }

/* CHECKLIST */
.checklist { list-style: none; }
.checklist li {
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 0.95rem;
}
.checklist li:before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* ADSENSE */
.ad-unit {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  margin: 30px 0;
  overflow: hidden;
}
.ad-unit ins { display: block; }

/* BREADCRUMB */
.breadcrumb {
  background: var(--light-gray);
  padding: 12px 20px;
  font-size: 0.85rem;
}
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--muted); }

/* FOOTER */
footer {
  background: var(--navy);
  color: #a0b0cc;
  padding: 50px 20px 24px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: var(--gold);
  margin-bottom: 14px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #a0b0cc; text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #6c7a90;
}

/* HIGHLIGHT BOX */
.highlight-box {
  background: #e8f0fe;
  border-left: 4px solid var(--navy);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin: 20px 0;
}
.highlight-box.gold { background: #fff8e6; border-color: var(--gold); }

/* BLOG GRID */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.blog-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}
.blog-card-header { background: var(--navy); padding: 24px; color: var(--white); }
.blog-card-header .category {
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 10px;
}
.blog-card-header h3 { font-size: 1.05rem; line-height: 1.4; }
.blog-card-body { padding: 20px; }
.blog-card-body p { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.blog-card-body a { color: var(--navy); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.blog-card-body a:hover { color: var(--gold); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 700px) {
  .hero h1 { font-size: 2rem; }
  .hamburger { display: flex; }
  .nav-links-row { display: none; }
  .nav-links-row.open { display: block; }
  .stats-bar-inner { gap: 28px; }
}

/* ── Nav flag canvas ─────────────────────────────── */
.nav-flag-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-width: 0;
}
#nav-flag-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
}
.nav-logo {
  background: var(--navy);
  padding-right: 18px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.hamburger {
  background: var(--navy);
  padding-left: 14px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
