/* ── Custom Hero Banner ────────────────────────────────────── */

.cew-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.30), 0 1px 3px 1px rgba(0, 0, 0, 0.15);

  --cew-overlay-angle: 0deg;
  --cew-overlay-c1: rgba(0, 0, 0, 0.40);
  --cew-overlay-p1: 0%;
  --cew-overlay-c2: rgba(0, 0, 0, 0.40);
  --cew-overlay-p2: 100%;
}

/* Toggle off via the "Card" style control. */
.cew-hero--no-shadow {
  box-shadow: none;
}

/* Dark overlay — sits above video/image, below content.
 * z-index: 1 keeps it above .cew-bg (z-index: 0) so it is visible on desktop. */
.cew-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    var(--cew-overlay-angle),
    var(--cew-overlay-c1) var(--cew-overlay-p1),
    var(--cew-overlay-c2) var(--cew-overlay-p2)
  );
  z-index: 1;
  border-radius: 24px;
}


.cew-hero--solid::before {
  display: none;
}


.cew-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 24px;
}

.cew-bg--mobile {
  display: none;
}

.cew-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
}

/* ── Content ─────────────────────────────────────────────────── */
.cew-content {
  --cew-gutter: max(0px, (100% - 1280px) / 2);
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  z-index: 2;
  width: 100%;
  max-width: calc(620px + var(--cew-gutter) + 24px);
  margin: 0;
  padding: 100px 24px 0 var(--cew-gutter);
}

/* Header switches to fixed side padding below these widths. */
@media (max-width: 1024px) {
  .cew-content { --cew-gutter: 24px; }
}

/* Top Heading (badge) */
.cew-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 24px;
  padding: 4px 10px;
  font-family: 'Manrope';
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 17px;
  background: rgba(141, 141, 141, 0.30);
  color: #FFF;
}


.cew-badge {
  gap: 4px;
}
.cew-badge::before,
.cew-badge::after {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 11 11' fill='none'%3E%3Cpath d='M5.5 0L6.70951 4.29049L11 5.5L6.70951 6.70951L5.5 11L4.29049 6.70951L0 5.5L4.29049 4.29049L5.5 0Z' fill='white'/%3E%3C/svg%3E");
}

/* Heading */
.cew-heading {
  width: 100%;
  color: #fff;
  font-family: 'Nunito';
  font-style: normal;
  font-size: 64px;
  font-weight: 400;
  line-height: 70.4px;
  margin-bottom: 12px;
}

.cew-highlight {
  color: #1654C0;
}

.cew-heading-break {
  display: block;
}

/* Description */
.cew-description {
  width: 45%;
  color: #FFF;
  margin-bottom: 24px;
  font-family: "Manrope";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.32px;
}

/* Buttons */
.cew-buttons {
  display: flex;
  width: 269px;
  align-items: center;
  gap: 8px;
}

.cew-btn {
  position: relative;
  display: flex;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1 0 0;
  gap: 8px;
  padding: 16px;
  border-radius: 58px;
  z-index: 0;
  color: #FFF;
  font-family: "Manrope";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.28px;
  text-transform: uppercase;
  cursor: pointer;
}

.cew-btn-arrow {
  font-size: 16px;
  line-height: 1;
}

.cew-btn-primary {
  color: #fff;
  border: 1px solid #D1736D;
  background-color: #D1736D;
}

.cew-btn-primary:hover {
  color: #D1736D;
  background-color: #ffffff;
}

.cew-btn-outline {
  background-color: #fff;
  border: 1.5px solid #fff;
  color: #D1736D;
}

.cew-btn-outline:hover {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
}

@media (max-width: 768px) {
   .cew-heading {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -0.8px;
   }
}

/* ── Mobile — 690px and below (768px stays tablet) ────────────── */
@media (max-width: 690px) {
  .cew-hero--has-mobile-bg .cew-bg--desktop {
    display: none;
  }
  .cew-hero--has-mobile-bg .cew-bg--mobile {
    display: block;
  }

  /* Smaller card radius on mobile. */
  .cew-hero,
  .cew-hero::before,
  .cew-bg {
    border-radius: 8px;
  }

  .cew-hero {
    padding: 0;
    justify-content: flex-end;
  }
  .cew-content {
    padding: 140px 24px 34px;
    max-width: 100%;
    margin: 0 auto;
  }

  .cew-badge {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .cew-heading {
    margin-bottom: 4px;
  }

  .cew-description {
    width: 75%;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: normal;
    letter-spacing: -0.32px;
  }

}
@media (max-width: 380px) {
  .cew-description {
    width: 100%;
  }
}