/* ================================
   CDL CLASS B — HERO SECTION
================================ */

.page-hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  background-image: url("/Resources/images/Untitled%20design%20(14)-2880w.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem 4rem;
  overflow: hidden;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  /* same treatment as Class A so the pages match */
  background: linear-gradient(
    120deg,
    rgba(8, 14, 26, 0.65),
    rgba(239, 32, 45, 0.15)
  );
  z-index: 1;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
}

.page-hero__logo {
  display: block;
  width: 240px;
  height: auto;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.page-hero__title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 0.5rem 0 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.page-hero__subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: #ffffff;
  opacity: 0.95;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ================================
   INTRO COPY
================================ */

.cdl-b-intro {
  background: #ffffff;
  padding: 3.5rem 1rem 2.5rem;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.container--narrow {
  max-width: 900px;
  margin: 0 auto;
}

.cdl-b-intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #222;
}

/* ================================
   TWO-CARD GRID
================================ */

.cdl-b-grid {
  background: #ffffff;
  padding: 0 1rem 4rem;
}

.cdl-b-grid__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.cdl-b-card {
  background: #fff6f6;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 12px 30px rgba(255, 0, 0, 0.08);
}

.cdl-b-card h2 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
  font-weight: 600;
  color: #222;
}

.cdl-b-card ul {
  margin-left: 1.2rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ================================
   TRAINING SECTION
================================ */

.cdl-b-training {
  background: linear-gradient(#fafafa, #f4f6fb);
  padding: 4rem 1rem 5rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading--compact h2 {
  margin-bottom: 0.75rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ef202d;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.cdl-b-training__list {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #222;
  margin-left: 1.2rem;
}

.cdl-b-training__list li + li {
  margin-top: 0.5rem;
}

/* ================================
   CTA BUTTONS
================================ */

.cdl-b-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s;
}

.btn-primary {
  background: #ef202d;
  color: #fff;
}

.btn-primary:hover {
  background: #c91520;
}

.btn-outline {
  border: 2px solid #ef202d;
  color: #ef202d;
  background: transparent;
}

.btn-outline:hover {
  background: #ef202d;
  color: #fff;
}

/* ================================
   FLOATING CTA (same as Class A)
================================ */

.floating-cta {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  background: #ef202d;
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  z-index: 999;
  text-decoration: none;
}

.floating-cta__icon {
  font-size: 1.25rem;
}

.floating-cta:hover {
  background: #c91520;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
  .cdl-b-grid__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero__title {
    font-size: 2.5rem;
  }

  .page-hero__subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 520px) {
  .page-hero {
    padding: 4rem 1rem 3rem;
  }

  .page-hero__title {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
