:root {
  --jtm-navy: #003366;
  --jtm-blue: #0066b3;
  --jtm-sky: #e8f4fc;
  --text: #333333;
  --muted: #666666;
  --border: #dde4ea;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a {
  color: var(--jtm-blue);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--jtm-navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a:not(.btn) {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.nav a:not(.btn):hover {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: center;
}

.btn-primary {
  background: var(--jtm-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: #005a9e;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--jtm-navy);
  border-color: var(--jtm-navy);
}

.btn-outline:hover {
  background: var(--jtm-navy);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--jtm-navy);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--jtm-sky) 0%, var(--white) 100%);
  padding: 4rem 0;
  text-align: center;
}

.hero-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--jtm-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  color: var(--jtm-navy);
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.hero-lead {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: #f7fafc;
}

.section h2 {
  color: var(--jtm-navy);
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-lead {
  text-align: center;
  color: var(--muted);
  margin: 0 0 2rem;
}

.section-cta {
  text-align: center;
  margin: 2rem 0 0;
}

/* Course grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.course-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--jtm-navy);
  line-height: 1.35;
}

.course-card .code {
  font-size: 0.85rem;
  color: var(--jtm-blue);
  font-weight: 600;
}

.course-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  flex: 1;
}

.course-card .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

.loading a {
  font-weight: 600;
}

/* About */
.about-grid {
  max-width: 800px;
  margin: 0 auto;
}

.about-grid > div > p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--jtm-navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--jtm-navy);
  color: var(--white);
  padding: 2.5rem 0 1rem;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
  color: #c8d6e5;
  font-size: 0.95rem;
}

.site-footer a {
  color: #b8d4f0;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  color: #9bb3c9;
  text-align: center;
}

.footer-bottom p {
  margin: 0.25rem 0;
  color: inherit;
}

/* Mobile nav */
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--jtm-navy);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }

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

  .nav a.btn {
    text-align: center;
  }

  .site-header .container {
    position: relative;
  }
}
