:root {
  --burgundy: #7a1f2b;
  --burgundy-dark: #4b1019;
  --gold: #d6a62a;
  --gold-light: #fff4cf;
  --text: #1d2733;
  --muted: #5b6675;
  --border: #d8dee8;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --shadow: 0 12px 30px rgba(122, 31, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
}

iframe {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--burgundy);
  color: #ffffff;
  border-bottom: 4px solid var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
}

.logo {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 0.8rem;
}

.nav-links a {
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.hero {
  background:
    linear-gradient(90deg, rgba(75, 16, 25, 0.96), rgba(122, 31, 43, 0.88)),
    linear-gradient(135deg, var(--burgundy), #9d3040);
  color: #ffffff;
  padding: 5rem 1.25rem;
}

.home-hero {
  background:
    linear-gradient(90deg, rgba(75, 16, 25, 0.96) 0%, rgba(122, 31, 43, 0.82) 42%, rgba(75, 16, 25, 0.35) 100%),
    url("assets/jrotc2026-web.jpeg");
  background-position: center 43%;
  background-size: cover;
}

.hero-content,
.section {
  max-width: 1120px;
  margin: 0 auto;
}

.hero-content {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero .hero-content {
  min-height: 470px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: 3rem;
  line-height: 1.08;
}

.hero-text {
  max-width: 720px;
  margin: 1.1rem 0 1.8rem;
  color: #fff7f8;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  padding: 0.65rem 1rem;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--burgundy-dark);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(214, 166, 42, 0.4);
  outline-offset: 2px;
}

.section {
  padding: 4rem 1.25rem;
}

.section:nth-of-type(even) {
  background: var(--surface-soft);
  box-shadow: 50vw 0 0 var(--surface-soft), -50vw 0 0 var(--surface-soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.3rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

h2 {
  margin: 0;
  color: var(--burgundy);
  font-size: 2rem;
  line-height: 1.2;
}

h3 {
  margin: 0 0 0.45rem;
  color: var(--burgundy);
  font-size: 1.1rem;
  line-height: 1.25;
}

h4 {
  margin: 0 0 0.75rem;
  color: var(--burgundy);
  font-size: 1rem;
  line-height: 1.25;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.video-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.card p,
.video-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card .review-line {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.92rem;
}

.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 1rem;
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
  background: var(--burgundy);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.card-button:hover,
.card-button:focus-visible {
  background: var(--burgundy-dark);
  outline: 3px solid rgba(214, 166, 42, 0.35);
  outline-offset: 2px;
}

.worksheet-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1.55fr);
  gap: 1.1rem;
  align-items: stretch;
}

.worksheet-menu,
.phone-worksheet-links,
.worksheet-viewer {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.worksheet-menu {
  max-height: 660px;
  overflow-y: auto;
  padding: 0.9rem;
}

.phone-worksheet-links {
  display: none;
  padding: 1rem;
}

.worksheet-menu h3 {
  margin-top: 0;
}

.phone-worksheet-links h3 {
  margin-top: 0;
}

.worksheet-menu p {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.phone-worksheet-links p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.worksheet-menu a,
.phone-worksheet-links a {
  display: block;
  border-left: 4px solid transparent;
  border-radius: 6px;
  color: var(--burgundy);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 0.7rem 0.75rem;
  text-decoration: none;
}

.worksheet-menu a:hover,
.worksheet-menu a:focus-visible,
.phone-worksheet-links a:hover,
.phone-worksheet-links a:focus-visible {
  background: var(--gold-light);
  border-left-color: var(--gold);
  outline: 3px solid rgba(214, 166, 42, 0.32);
  outline-offset: 2px;
}

.worksheet-viewer {
  width: 100%;
  min-height: 660px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.video-category {
  margin-top: 1.4rem;
}

.category-heading {
  margin-bottom: 0.9rem;
}

.large-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.large-video-grid .video-card {
  padding: 1rem;
}

.large-video-grid h4 {
  min-height: 2.5rem;
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #111111;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-subsection {
  margin-top: 3rem;
}

.video-subsection h2 {
  margin-bottom: 0.4rem;
}

.video-subsection p {
  max-width: 760px;
  color: var(--muted);
}

.site-footer {
  padding: 1.4rem 1.25rem;
  background: var(--burgundy-dark);
  color: #ffffff;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  h1 {
    font-size: 2.35rem;
  }

  .card-grid,
  .large-video-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .worksheet-panel {
    grid-template-columns: 1fr;
  }

  .worksheet-menu {
    max-height: 320px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 3.5rem 1rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .nav-links a {
    padding-left: 0;
  }

  .card-grid,
  .large-video-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .worksheet-panel {
    display: none;
  }

  .phone-worksheet-links {
    display: block;
  }
}
