/* Full-bleed hero container */
.hero--cdl-classes {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 60vh, 700px);
  display: grid;
  place-items: stretch;
  overflow: hidden;
}

/* Background image fills the section */
.hero--cdl-classes .hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  z-index: 0;
}

/* Dark overlay across the whole hero */
.hero--cdl-classes .hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Centered text + button */
.hero--cdl-classes .hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: clamp(24px, 5vw, 56px) 16px;
}

/* Headline + tagline */
.hero--cdl-classes .hero__headline {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 56px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero--cdl-classes .hero__tagline {
  margin: 0 0 18px;
  font-size: clamp(16px, 2.2vw, 20px);
  opacity: 0.95;
}

/* Simple button styles */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  background: var(--cta-red, #e33a34);
  color: #fff;
}

/* ============================
   CDL Intro Section
   ========================= */

.cdl-intro {
  background: #ffffff;
  padding: 80px 0;
}

.cdl-intro__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 40px;
  align-items: center;
}

.cdl-intro__text,
.cdl-intro__media {
  flex: 1 1 0;
}

.cdl-intro__heading {
  margin: 0 0 20px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--cta-red, #ef202d);
}

.cdl-intro__text p {
  margin: 0 0 12px;
  font-size: 16px;
}

.cdl-intro__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: cover;
}

/* Stack on mobile */
@media (max-width: 768px) {
  .cdl-intro__inner {
    flex-direction: column;
  }

  .cdl-intro__media {
    order: -1; /* put image on top on small screens if you like */
  }
}

/* ============================
   CDL Benefits Section
   ========================= */

.cdl-benefits {
  position: relative;
  isolation: isolate;
  padding: 80px 16px 100px;
  color: #ffffff;
  overflow: hidden;
}

.cdl-benefits__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.cdl-benefits__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.cdl-benefits__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.cdl-benefits__heading {
  margin: 0 0 32px;
  font-size: clamp(26px, 3vw, 36px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cdl-benefits__panel {
  background: var(--cta-red, #ef202d);
  border-radius: 18px;
  padding: 32px 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.cdl-benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.cdl-benefit-card {
  background: #ffffff;
  color: #111827;
  border-radius: 18px;
  padding: 24px 20px;
}

.cdl-benefit-card__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: 999px;
  border: 2px solid var(--cta-red, #ef202d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--cta-red, #ef202d);
}

.cdl-benefit-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--cta-red, #ef202d);
}

.cdl-benefit-card__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .cdl-benefits {
    padding: 60px 12px 80px;
  }

  .cdl-benefits__panel {
    padding: 24px 16px;
  }
}

/* ============================
   CDL Commitment Section
   ============================ */

.cdl-commitment {
  padding: 80px 0;
  background: #fff;
}

.cdl-commitment__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.cdl-commitment__image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.cdl-commitment__content h2 {
  color: var(--cta-red, #ef202d);
  font-size: clamp(28px, 3vw, 40px);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cdl-commitment__content p {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.cdl-commitment__content .btn {
  margin-top: 10px;
}

/* Mobile */
@media (max-width: 900px) {
  .cdl-commitment__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cdl-commitment__content h2 {
    text-align: center;
  }

  .cdl-commitment__image img {
    margin-bottom: 20px;
  }
}

/* ===========================
   CDL PROGRAMS STRIP
   "Get Your CDL at Carolina Trucking Academy"
   =========================== */

.cdl-programs {
  background-color: #f13434; /* top red band */
  padding: 2.5rem 1rem 3.5rem;
  color: #ffffff;
}

.cdl-programs__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cdl-programs__title {
  margin: 0 0 2.5rem;
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1.8rem, 2.3vw, 2.5rem);
}

/* Cards layout */

.cdl-programs__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .cdl-programs__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cdl-program-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  background-color: #f5f5f5;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
}

.cdl-program-card:hover,
.cdl-program-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

/* Image wrapper enforces consistent card height */
.cdl-program-card__image-wrap {
  aspect-ratio: 5 / 4; /* keeps all three cards same height */
  overflow: hidden;
}

/* Base image behavior */
.cdl-program-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Special crop for Class A image so it matches original design */
.cdl-program-card__image--class-a {
  object-position: center top;
}

.cdl-program-card__body {
  padding: 1.25rem 1.5rem 1.6rem;
  text-align: center;
  background-color: #f7f7f7;
}

.cdl-program-card__label {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e63232;
}

/* CTA button under the cards */

.cdl-programs__cta {
  margin-top: 2.5rem;
  text-align: center;
}

.cdl-programs__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 3.3rem;
  border-radius: 999px;
  border: none;
  background-color: #ffffff;
  color: #e63232;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.cdl-programs__cta-button:hover,
.cdl-programs__cta-button:focus-visible {
  background-color: #ffeaea;
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

/* ============================
   Video CTA – "We are always ready to help"
   ============================ */

.video-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  text-align: center;
  min-height: clamp(360px, 55vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-cta__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.video-cta__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.video-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.6)
  );
  z-index: -1;
}

.video-cta__content {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(48px, 7vh, 72px) 16px clamp(64px, 9vh, 96px);
}

.video-cta__headline {
  margin: 0 0 32px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-cta__button {
  margin-top: 4px;
  padding-inline: 40px;
  padding-block: 12px;
  border-radius: 999px;
  font-size: 16px;
}

/* ---------------------------------------
   WHAT TO EXPECT (background image panel)
---------------------------------------- */

.cdl-expected {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0;
  color: #ffffff;
  background-image: url("/Resources/images/trucks-lined-up-1920w.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.cdl-expected::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* darken whole image */
}

.cdl-expected__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.cdl-expected__panel {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 40px) clamp(28px, 4vw, 40px);
  background: rgba(0, 0, 0, 0.45); /* translucent rectangular panel */
  border-radius: 4px;
  text-align: center;
}

.cdl-expected__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cdl-expected__text {
  font-size: 16px;
  line-height: 1.7;
}

.cdl-expected__text p {
  margin: 0 0 10px;
}

.cdl-expected__note {
  font-style: italic;
  margin-bottom: 18px;
}

.cdl-expected__subheading {
  margin-top: 10px;
  font-weight: 700;
}

.cdl-expected__hours {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.cdl-expected__hours li {
  margin-bottom: 4px;
}

.cdl-expected__actions {
  margin-top: 26px;
}

.cdl-expected__button {
  display: inline-block;
  padding: 12px 42px;
  border-radius: 999px;
  background-color: #e33a34;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.cdl-expected__button:hover,
.cdl-expected__button:focus-visible {
  background-color: #c52d28;
  transform: translateY(-1px);
}

/* GAP ABOVE THIS SECTION */
.section-gap-cta {
  height: 140px; /* adjust if needed */
}

/* SECTION CONTAINER */
.expected-section {
  position: relative;
  width: 100%;
  padding: 120px 0;
  overflow: hidden;
}

/* BACKGROUND IMAGE FULL WIDTH */
.expected-bg picture,
.expected-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
  filter: brightness(0.55);
}

/* OVERLAY CARD */
.expected-overlay {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 60px 40px;
  border-radius: 10px;
  color: #fff;
}

/* TEXT */
.expected-text {
  font-size: 20px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.expected-text.small {
  margin-top: 10px;
  font-style: italic;
}

/* LIST SECTIONS */
.expected-list p,
.expected-hours p {
  margin: 6px 0;
  font-size: 18px;
}

/* BUTTON */
.expected-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 40px;
  background: #e21e25;
  color: white;
  border-radius: 8px;
  font-size: 18px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.expected-btn:hover {
  background: #c3181f;
}
/* WHAT TO EXPECT
   -------------------------------------------------- */

.cdl-expected {
  position: relative;
  margin-top: 80px; /* <— this creates the gap under the video section */
  padding: 120px 16px;
  overflow: hidden;
  color: #ffffff;
}

/* background image fills the section */
.cdl-expected__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.45);
  z-index: 1;
}

/* dark translucent box in the center */
.cdl-expected__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 40px 64px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 12px;
  text-align: center;
}

/* heading */
.cdl-expected__heading {
  font-size: 2.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* main lead paragraph */
.cdl-expected__lead {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* other text lines */
.cdl-expected__text {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* CTA button */
.cdl-expected__button {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 40px;
  border-radius: 999px;
  background-color: #e32227; /* your red */
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cdl-expected__button:hover,
.cdl-expected__button:focus-visible {
  background-color: #bf1b20;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .cdl-expected {
    padding: 80px 12px;
    margin-top: 48px;
  }

  .cdl-expected__inner {
    padding: 32px 20px 40px;
  }

  .cdl-expected__heading {
    font-size: 1.7rem;
  }

  .cdl-expected__lead,
  .cdl-expected__text {
    font-size: 0.95rem;
  }
}

/* ───────────────────────────── */
/* CAREER SECTION GRID LAYOUT    */
/* ───────────────────────────── */

.cdl-career {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 20px;
  display: flex;
  flex-direction: column;
  gap: 160px; /* spacing between the two rows */
}

/* DEFAULT ROW — LEFT IMAGE / RIGHT TEXT */
.cdl-career__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

/* REVERSED ROW — RIGHT IMAGE / LEFT TEXT */
.cdl-career__row--reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.cdl-career__media picture,
.cdl-career__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* TEXT BLOCK */
.cdl-career__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cdl-career__heading {
  font-size: 34px;
  font-weight: 800;
  color: #ce1e24;
  margin-bottom: 10px;
  line-height: 1.2;
}

/* BUTTON */
.cdl-career .btn {
  background: #ce1e24;
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  text-transform: uppercase;
  font-size: 16px;
  width: fit-content;
  margin-top: 10px;
  font-weight: 600;
}

.cdl-career .btn:hover {
  background: #b41a20;
}

/* ───────────────────────────── */
/* RESPONSIVE                    */
/* ───────────────────────────── */

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

  /* Put image on top for reverse rows */
  .cdl-career__row--reverse .cdl-career__media {
    order: -1;
  }

  .cdl-career__content {
    text-align: center;
    align-items: center;
  }

  .cdl-career__heading {
    font-size: 28px;
  }
}
