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

.cal-year {
  margin-bottom: 8px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  text-align: center;
}

.cal-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cal-leg {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--stone);
  font-size: 12.5px;
  font-weight: 500;
}

.cal-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cal-leg-start { background: var(--red); }
.cal-leg-end { background: var(--navy); }
.cal-leg-holiday { background: #c9a030; }

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

.cal-month {
  overflow: hidden;
  border: 1px solid rgba(27, 38, 85, 0.06);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(27, 38, 85, 0.03);
  transition: all 0.4s var(--ease-spring);
}

.cal-month:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-med);
}

.cal-mhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.cal-mhead h4 {
  margin: 0;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.cal-mhead span {
  color: rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
}

.cal-table {
  width: 100%;
  padding: 6px 10px 10px;
  border-collapse: separate;
  border-spacing: 0 2px;
}

.cal-table th {
  padding: 10px 0 6px;
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cal-table td {
  width: 14.28%;
  height: 32px;
  padding: 0;
  color: var(--charcoal);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 32px;
  text-align: center;
  vertical-align: middle;
}

.cal-table td.empty {
  color: transparent;
  pointer-events: none;
}

.cal-table td:not(.empty):not(.term-start):not(.term-end):not(.holiday) {
  transition: background 0.2s, color 0.2s;
  border-radius: 50%;
}

.cal-table td:not(.empty):not(.term-start):not(.term-end):not(.holiday):hover {
  background: rgba(27, 38, 85, 0.04);
}

.cal-table td.term-start {
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(184, 41, 45, 0.25);
}

.cal-table td.term-end {
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(27, 38, 85, 0.2);
}

.cal-table td.holiday {
  border-radius: 50%;
  background: linear-gradient(135deg, #fef7e0, #fdf0c8);
  color: #8a6d15;
  font-weight: 600;
}

.visa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.visa-card {
  padding: 26px;
  border: 1px solid rgba(27, 38, 85, 0.04);
  border-radius: var(--radius-lg);
  background: var(--white);
  text-align: center;
  transition: all 0.4s var(--ease-spring);
}

.visa-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.visa-card .vi {
  margin-bottom: 10px;
  font-size: 32px;
  transition: all 0.3s var(--ease-spring);
}

.visa-card:hover .vi {
  transform: scale(1.2) rotate(-10deg);
}

.visa-card h4 {
  margin: 0 0 5px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}

.visa-card p {
  margin: 0;
  color: var(--stone);
  font-size: 12.5px;
  line-height: 1.5;
}


.cb-visa-steps {
  position: relative;
  margin: 36px 0 52px;
  padding: 0 20px;
}

.cb-visa-steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--navy), var(--red), var(--navy));
}

.cb-visa-steps-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cb-visa-step {
  text-align: center;
}

.cb-visa-step-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #fff;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(27, 38, 85, 0.24);
  transition: transform 0.4s var(--ease-spring);
}

.cb-visa-step:hover .cb-visa-step-icon {
  transform: scale(1.08) rotate(-4deg);
}

.cb-visa-step-icon--red {
  background: linear-gradient(135deg, var(--red), var(--red-bright));
}

.cb-visa-step-icon--navy {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
}

.cb-visa-step-index {
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 3px solid var(--cream);
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
}

.cb-visa-step-icon--navy .cb-visa-step-index {
  background: var(--red);
}

.cb-visa-step h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
}

.cb-visa-step p {
  max-width: 180px;
  margin: 0 auto;
  color: var(--stone);
  font-size: 12.5px;
  line-height: 1.6;
}

.cb-visa-step-duration {
  margin-top: 10px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cb-visa-step-icon--navy + h3 + p + .cb-visa-step-duration {
  color: var(--navy);
}

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

@media (max-width: 1024px) {
  .cb-visa-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-visa-steps::before {
    display: none;
  }
}

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