/* =========================================================
   CDL REFRESHER — HERO SECTION
   ========================================================= */

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 340px;
  padding: 4rem 1.5rem 3rem;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .page-hero {
    min-height: 420px;
    padding: 5rem 1.5rem 4rem;
  }
}

.page-hero--cdl-refresher {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.6)
    ),
    url("/Resources/images/Untitled design (15)-2880w.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 0.7) 100%
  );
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__logo {
  max-width: 260px;
  width: 70%;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

@media (min-width: 768px) {
  .page-hero__logo {
    max-width: 320px;
    margin-bottom: 2rem;
  }
}

.page-hero__title {
  font-size: clamp(2.1rem, 3vw, 2.75rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.page-hero__subtitle {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* =========================================================
   GENERIC SECTIONS + CONTAINERS
   ========================================================= */

.section {
  padding: 3rem 1.5rem;
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 1.5rem;
  }
}

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

.container--narrow {
  max-width: 960px;
}

/* =========================================================
   CDL REFRESHER INTRO + GLANCE
   ========================================================= */

.section--cdl-refresher-intro {
  background: #ffffff;
}

.cdl-refresher-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: #1f2933;
  margin-bottom: 2.5rem;
}

.cdl-refresher-intro p + p {
  margin-top: 1rem;
}

.cdl-refresher-glance {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cdl-refresher-glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

.cdl-refresher-glance__card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05),
    0 4px 10px rgba(15, 23, 42, 0.04);
}

.cdl-refresher-glance__card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.cdl-refresher-glance__card ul {
  padding-left: 1.1rem;
  margin: 0;
  list-style: disc;
}

.cdl-refresher-glance__card li + li {
  margin-top: 0.35rem;
}

/* =========================================================
   CDL REFRESHER DRIVING SECTION
   ========================================================= */

.section--cdl-refresher-driving {
  background: radial-gradient(circle at top left, #fef3f2 0, #ffffff 35%);
}

.cdl-refresher-driving__header {
  text-align: left;
  margin-bottom: 2rem;
}

.cdl-refresher-driving__header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cdl-refresher-driving__header p {
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.7;
  color: #1f2933;
}

.cdl-refresher-driving__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .cdl-refresher-driving__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.cdl-refresher-driving__card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04),
    0 4px 10px rgba(15, 23, 42, 0.03);
}

.cdl-refresher-driving__card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.cdl-refresher-driving__card p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: #1f2933;
}

/* =========================================================
   CTA BUTTONS + LAYOUT
   ========================================================= */

.cdl-refresher-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cdl-refresher-cta--center {
  justify-content: flex-start;
}

@media (min-width: 640px) {
  .cdl-refresher-cta--center {
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-size: 0.96rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease,
    box-shadow 150ms ease, transform 120ms ease;
}

.btn-primary {
  background: #ef202d;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(239, 32, 45, 0.35),
    0 4px 10px rgba(239, 32, 45, 0.25);
}

.btn-primary:hover {
  background: #d31b27;
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(239, 32, 45, 0.45),
    0 6px 14px rgba(239, 32, 45, 0.3);
}

.btn-outline {
  background: #ffffff;
  color: #ef202d;
  border-color: #ef202d;
}

.btn-outline:hover {
  background: #fff5f5;
}

/* =========================================================
   FLOATING REGISTER CTA (SHARED)
   ========================================================= */

.floating-cta {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: #ef202d;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 16px 28px rgba(239, 32, 45, 0.4),
    0 4px 10px rgba(239, 32, 45, 0.28);
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 40;
}

.floating-cta__icon {
  display: inline-flex;
}

.floating-cta__text {
  white-space: nowrap;
}

.floating-cta--register:hover {
  background: #d31b27;
  transform: translateY(-1px);
}

/* Small-screen adjustments so it doesn’t crush content */
@media (max-width: 480px) {
  .floating-cta {
    right: 0.85rem;
    bottom: 0.85rem;
    padding-inline: 1.1rem;
  }

  .floating-cta__text {
    font-size: 0.9rem;
  }
}
