:root {
  --bg-color: #0d1117;
  --text-color: #c9d1d9;
  --heading-color: #f0f6fc;
  --accent-color: #ff4d4d;
  --secondary-bg: #161b22;
  --border-color: #30363d;
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-color);
  background-image:
    radial-gradient(circle at top, rgba(255, 77, 77, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
  color: var(--text-color);
  font-family: var(--font-base);
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
}

p {
  margin-bottom: 1rem;
}

/* Header & Nav Overrides */
header {
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Override Bootstrap Navbar to match theme */
.navbar {
    background-color: transparent !important;
    min-height: 5.6rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

a.navbar-brand {
    text-decoration: none;
}
.navbar-brand {
    color: var(--heading-color) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-brand-mark {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  color: inherit;
  flex: 0 0 auto;
}

.navbar-brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Make nav links stand out a bit more in our dark theme */
.navbar-collapse {
    justify-content: flex-end;
}

.navbar-nav .nav-link {
    color: rgba(201, 209, 217, 0.88);
    font-weight: 500;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--heading-color);
}

.navbar-nav .nav-link.active {
    text-decoration: underline;
    text-decoration-color: rgba(255, 77, 77, 0.6);
    text-underline-offset: 0.4rem;
}

.nav-link-cta {
    margin-left: 0.85rem;
    border: 1px solid rgba(255, 77, 77, 0.45);
    border-radius: 999px;
    color: var(--heading-color) !important;
}

.nav-link-cta:hover,
.nav-link-cta.active {
    background-color: rgba(255, 77, 77, 0.12);
    border-color: rgba(255, 77, 77, 0.75);
    text-decoration: none !important;
}

main {
  padding: 48px 0;
  min-height: 60vh;
}

/* Hero Section */
.hero {
  padding: 72px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.section-band,
.page-shell-inner,
.contact-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.92), rgba(13, 17, 23, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-copy {
  padding: 1.75rem clamp(2rem, 3.4vw, 3.75rem) clamp(2rem, 4vw, 4rem);
}

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.85rem);
  line-height: 1.02;
  margin: 0 0 1.1rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 40rem;
  margin: 0 0 1.5rem;
  color: var(--text-color);
}

.lead {
  color: #e3e9ef;
}

.eyebrow,
.page-kicker,
.hero-panel-label {
  display: inline-block;
  margin-bottom: 1rem;
  color: #ffa2a2;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel {
  padding: 1.75rem;
}

.hero-panel p {
  color: #d9e0e7;
}

.hero-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.hero-list li + li {
  margin-top: 0.85rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0.5rem;
  box-shadow: 0 14px 40px rgba(255, 77, 77, 0.28);
}

.cta-button:hover {
  background-color: #ff3333;
  text-decoration: none;
  color: #fff; /* Bootstrap override */
}

.section-block {
  padding: 2rem 0;
}

.section-heading {
  max-width: 52rem;
  margin-bottom: 1.75rem;
}

.section-heading h2,
.section-band h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* Problem Section */
.problem-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.96), rgba(14, 18, 24, 0.92));
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
}

.stat-card h3 {
  margin-top: 0;
  color: var(--heading-color);
}

.stat-value {
  display: inline-block;
  margin-bottom: 1rem;
  color: #ff7b72;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.source,
.source a {
  color: #97a3af;
  font-size: 0.92rem;
}

.section-band {
  margin-top: 1rem;
  padding: clamp(1.75rem, 4vw, 3rem);
}

.section-band-copy {
  max-width: 44rem;
}

/* Page */
.basic-wrapper {
  max-width: 48rem;
}
.basic-wrapper h1 {
  margin-top: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
}
.basic-content {
  color: #d6dde4;
}
.basic-content h2 {
  margin-top: 2rem;
}
.basic-content p,
.basic-content li {
  font-size: 1.05rem;
}
.basic-content ul,
.basic-content ol {
  padding-left: 1.25rem;
}

/* About Page */
h2.staff-name {
  margin-top: 0;
}

/* Policy Pages */
.page-shell {
  padding-top: 1.5rem;
}

.page-shell-inner {
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

.policy-wrapper {
  max-width: 48rem;
}

.policy-wrapper h1 {
  margin-top: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
}

.policy-content {
  color: #d6dde4;
}

.policy-content h2 {
  margin-top: 2rem;
}

.policy-content p,
.policy-content li {
  font-size: 1.05rem;
}

.policy-content ul,
.policy-content ol {
  padding-left: 1.25rem;
}

.last-updated {
  color: #8b949e;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.contact-panel {
  margin-top: 1.5rem;
  padding: 1.5rem;
}

.contact-intro {
  color: #dce3ea;
}

.staff-heading-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 0.75rem;
}

.staff-heading-row h2 {
  margin: 0;
}

.staff-avatar-circle {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}

.staff-avatar-circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
footer {
  background-color: var(--secondary-bg);
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}

.footer-brand p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  color: #8b949e;
}

.footer-links a {
  display: block;
  margin-bottom: 5px;
  color: #8b949e;
}
.footer-links a:hover {
  color: var(--accent-color);
}

.copyright {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #8b949e;
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

/* Form */
form {
  max-width: 100%;
  margin: 0;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input, textarea, select {
  width: 100%;
  padding: 10px;
  background-color: rgba(13, 17, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-color);
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 77, 77, 0.12);
}

button[type="submit"] {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #ff3333;
}

@media (max-width: 991.98px) {
  .navbar-nav {
    padding-top: 1rem;
  }

  .hero-copy {
    padding: clamp(2rem, 4vw, 4rem);
  }

  .nav-link-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  main {
    padding-top: 32px;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero-copy,
  .hero-panel,
  .section-band,
  .page-shell-inner,
  .contact-panel {
    border-radius: 22px;
  }

  .staff-avatar-circle {
    width: 4rem;
    height: 4rem;
  }
}
