/* Generated by tools/build-theme-css.py. Do not edit directly. */
.cb-course-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: livePulse 2s ease infinite;
}

/* Prototype-matched inner page sections */
.sub-hero {
  background: var(--navy-deep);
  padding: 72px 32px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(184, 41, 45, 0.06), transparent 50%);
}

.sub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(rgba(255, 255, 255, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 1) 1px, transparent 1px);
  background-size: 40px 40px;
}

.sub-hero h1 {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 500;
  animation: hStag 0.6s var(--ease-out) 0.1s both;
}

.sub-hero h1 .ri {
  color: var(--red);
  font-style: italic;
  font-weight: 600;
}

.sub-hero > p {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
  line-height: 1.7;
  animation: hStag 0.6s var(--ease-out) 0.2s both;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.c-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(27, 38, 85, 0.04);
  border-radius: var(--radius-xl);
  background: var(--white);
  transition: all 0.4s var(--ease-spring);
}

.c-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-strong);
}

.c-thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.c-thumb.has-image {
  overflow: hidden;
  padding: 0;
  font-size: 0;
}

.c-thumb.has-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.c-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.ct1 { background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid)); }
.ct2 { background: linear-gradient(135deg, #1a3d35, #2d7a5e); }
.ct3 { background: linear-gradient(135deg, #5a1520, var(--red)); }

.c-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.c-body h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
}

.c-title-link {
  color: inherit;
  text-decoration: none;
}

.c-title-link:hover {
  color: var(--red);
}

.c-sub {
  margin-bottom: 10px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.c-body > p {
  margin: 0 0 14px;
  color: var(--stone);
  font-size: 13.5px;
  line-height: 1.6;
}

.c-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.c-tag {
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--cream);
  color: var(--stone);
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s;
}

.c-tag:hover {
  background: var(--red-glow);
  color: var(--red);
}

.c-details-link {
  margin-bottom: 14px;
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.c-details-link:hover {
  color: var(--navy);
}

.c-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid rgba(27, 38, 85, 0.05);
}

.c-enroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 36px;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.3s var(--ease-spring);
}

.c-enroll:hover {
  background: var(--red);
  transform: scale(1.05);
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.legal-content h3 {
  margin: 32px 0 10px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

.legal-content h3:first-of-type {
  margin-top: 0;
}

.legal-content h4 {
  margin: 20px 0 6px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}

.legal-content p,
.legal-content li {
  margin-bottom: 8px;
  color: var(--stone);
  font-size: 14px;
  line-height: 1.8;
}

.legal-content strong {
  color: var(--navy);
  font-weight: 600;
}

.legal-content ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 4px;
}

.legal-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content > *:last-child {
  margin-bottom: 0;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.sitemap-col h4 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sitemap-col a {
  display: block;
  padding: 5px 0;
  color: var(--stone);
  font-size: 14px;
  line-height: 1.7;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.sitemap-col a:hover {
  color: var(--red);
  transform: translateX(4px);
}


@media (max-width: 640px) {
  .sub-hero {
    padding: 64px 24px 48px;
  }
}

@media (max-width: 1024px) {
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
}
