/* =========================================================
   Courses page — custom CSS converted from utility markup.
   Uses the design tokens defined in assets/css/styles.css.
   ========================================================= */

/* ---------- Layout shell ---------- */
.shell {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .shell {
    padding-inline: 2rem;
  }
}

/* Entrance animation (keyframes fadeInUp declared in styles.css) */
.fade-up {
  animation: fadeInUp 0.6s ease both;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    var(--background) 0%,
    color-mix(in oklab, var(--background) 88%, transparent) 45%,
    color-mix(in oklab, var(--background) 60%, transparent) 100%
  );
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: 3rem;
  min-height: 500px;
  /* Clears the fixed header, matching .page-hero spacing */
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
}

.eyebrow-rule {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--primary);
}

.hero-title {
  max-width: 48rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.08;
  color: var(--foreground);
}

.hero-title .accent {
  color: var(--primary);
}

.hero-text {
  max-width: 42rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.75rem;
  color: var(--muted-foreground);
}

.hero-figure {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-elegant);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 52px;
  }

  .hero-text {
    font-size: 1.125rem;
  }

  .hero-grid {
    padding-top: 10rem;
    padding-bottom: 7rem;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
  }
}

/* ---------- Training portfolio ---------- */
.programs {
  padding-block: 4rem;
}

.program-list {
  display: grid;
  gap: 2rem;
}

.program {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: var(--shadow-elegant);
}

.program-img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.program-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem;
}

.program-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--foreground);
}

.program-sub {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.program-actions {
  margin-top: 1.75rem;
}

/* Primary call to action */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-gold);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-cta svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  pointer-events: none;
}

.btn-cta:hover {
  background: color-mix(in oklab, var(--gold) 84%, white);
}

.btn-cta:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .programs {
    padding-block: 6rem;
  }

  .program-body {
    padding: 2.5rem;
  }

  .program-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .program {
    grid-template-columns: 0.78fr 1.72fr;
  }
}