/* 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);
}

.gal-carousel-wrap {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
}

.gal-carousel {
  display: flex;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

.gal-item {
  flex: 0 0 calc(33.333% - 8px);
  margin-right: 12px;
  height: 240px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background-color: var(--navy-deep);
  cursor: pointer;
  transition: box-shadow 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
}

.cb-gallery-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gal-item:hover {
  transform: scale(1.03);
  z-index: 2;
  box-shadow: var(--shadow-strong);
}

.gal-item.has-image {
  align-items: flex-end;
  justify-content: flex-start;
}

.gal-ov {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(14, 22, 50, 0.85));
  transition: opacity 0.4s;
}

.gal-item:hover .gal-ov {
  opacity: 1;
}

.gal-ov span {
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transform: translateY(8px);
  transition: transform 0.3s;
}

.gal-item:hover .gal-ov span {
  transform: none;
}

.cb-gallery-card.has-image::before,
.gal-item.has-image .cb-gallery-icon {
  display: none;
}

.gal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.gal-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gal-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: rgba(27, 38, 85, 0.15);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
}

.gal-dot.active {
  background: var(--red);
  transform: scale(1.3);
}

.vol-cta {
  position: relative;
  overflow: hidden;
  margin-top: 44px;
  padding: 48px;
  border-radius: var(--radius-xl);
  background: var(--navy);
  text-align: center;
}

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

.vol-cta h2,
.vol-cta > p,
.vol-perks,
.vol-cta .cta-main {
  position: relative;
  z-index: 2;
}

.vol-cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
}

.vol-cta > p {
  max-width: 420px;
  margin: 0 auto 22px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14.5px;
}

.vol-perks {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.vol-perk {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.vol-perk .chk {
  color: var(--red);
}


.cb-gallery-card {
  position: relative;
  isolation: isolate;
}

.cb-gallery-card.has-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.cb-gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 26%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.14), transparent 28%);
}

.cb-gallery-card--red {
  background: linear-gradient(135deg, #7d1821, #c83f44);
}

.cb-gallery-card--navy {
  background: linear-gradient(135deg, #102145, #314c8a);
}

.cb-gallery-card--green {
  background: linear-gradient(135deg, #18493d, #2d7a5e);
}

.cb-gallery-card--gold {
  background: linear-gradient(135deg, #7f5017, #c9973d);
}

.cb-gallery-card--purple {
  background: linear-gradient(135deg, #41204f, #7b4a90);
}

.cb-gallery-icon {
  position: relative;
  z-index: 1;
  font-size: 54px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.lb-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(10, 14, 30, 0.92);
  backdrop-filter: blur(20px);
  transition: opacity 0.35s;
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lb-inner {
  position: relative;
  width: min(85vw, 720px);
  height: min(70vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-xl);
  font-size: 72px;
  animation: lbIn 0.4s var(--ease-spring);
}

@keyframes lbIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lb-inner.has-image .cb-gallery-icon {
  display: none;
}

.lb-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(10, 14, 30, 0.9));
  color: #fff;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lb-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: all 0.3s;
}

.lb-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lb-arrow.prev {
  left: 16px;
}

.lb-arrow.next {
  right: 16px;
}

.lb-counter {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
}

.lb-caption strong {
  display: block;
}

.lb-caption small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}


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

@media (max-width: 1024px) {
  .gal-item {
    flex: 0 0 calc(50% - 9px);
  }
}

@media (max-width: 640px) {
  .gal-item {
    flex: 0 0 100%;
    margin-right: 0;
  }

  .vol-cta {
    padding: 32px 24px;
  }
}
