.alke-banner {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  padding: 48px 0;
  background: #ffffff;
  max-width: 1440px;
  margin: 0 auto;
  margin-bottom: 80px;
  top: 0;
  left: 0;
  width: 100%;
  height: 844px;
  --alke-tab-max-width: 220px;
  --alke-left-max-width: 480px;
}

.alke-banner .container {
  position: relative;
  z-index: 2;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.alke-banner .row {
  margin-left: 0;
  margin-right: 0;
}

.alke-banner [class^="col-"] {
  padding-left: 48px;
  padding-right: 48px;
}

.alke-banner-media {
  position: absolute;
  inset: 0;
}

.alke-banner-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.alke-banner-pretitle {
  color: #ffffff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  text-align: left;
}

.alke-banner-title {
  color: #fff;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 8px;
  text-align: left;
}

.alke-banner-left .alke-banner-pretitle,
.alke-banner-left .alke-banner-title {
  max-width: var(--alke-left-max-width, 480px);
}

.alke-banner-left {
  padding-left: 48px;
}

.alke-banner-right {
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 48px;
  align-items: flex-end;
}

.alke-banner-tabs-wrap {
  margin-top: 6px;
}

.alke-banner-progress {
  display: flex;
  gap: 60px;
  margin: 0 0 12px;
  align-items: center;
}

.alke-banner-progress .seg {
  position: relative;
  flex: 0 0 auto;
  height: 3px;
  background: transparent;
  border-radius: 5px;
  overflow: hidden;
}

.alke-banner-progress .seg .bar {
  display: block;
  width: 100%;
  height: 100%;
  background: #b3b3b363;
  transition: background-color 0.25s ease;
}

.alke-banner-progress .seg.is-active .bar {
  width: 100%;
  background: #ffffff;
  transition: background-color 0.25s ease;
}

.alke-banner-tabs {
  display: flex;
  gap: 48px;
  flex-wrap: nowrap;
  align-items: flex-start;
  position: relative;
  z-index: 3;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.alke-banner-tabwrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: var(--alke-tab-max-width, 220px);
  flex: 0 1 var(--alke-tab-max-width, 220px);
  min-width: 0;
}

.alke-banner-tabwrap .alke-banner-progress {
  width: 100%;
  gap: 0;
  margin: 8px 0 6px;
  background: transparent;
}

.alke-banner-tabwrap .seg {
  width: 100%;
  min-width: 24px;
}

.alke-banner-tab .label {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  /* Clamp to two lines and prevent overflow */
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.4em;
  /* 2 lines at line-height: 1.2 */
}

.alke-banner-tab {
  border: 0;
  background: transparent;
  color: #b3b3b363;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 6px 0;
  cursor: pointer;
  border-radius: 6px;
  width: auto;
  max-width: 100%;
  text-align: left;
  transition: color 0.25s ease;
}

.alke-banner-tab .label b,
.alke-banner-tab .label strong {
  font-weight: 800;
}

.alke-banner-tab:hover {
  color: #fff;
}

.alke-banner-tab.is-active {
  color: #fff;
}

/* Hover/focus: highlight bar and label together */
.alke-banner-tabwrap:hover .alke-banner-tab,
.alke-banner-tabwrap:focus-within .alke-banner-tab {
  color: #fff;
}

.alke-banner-tabwrap:hover .alke-banner-progress .seg .bar,
.alke-banner-tabwrap:focus-within .alke-banner-progress .seg .bar {
  background: #ffffff;
}

.alke-banner-panels {
  margin-top: 170px;
  position: relative;
  z-index: 2;
}

.alke-banner-tabs-wrap {
  position: relative;
}

.alke-banner-tabs-wrap:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  opacity: 0;
}

.alke-banner-panel {
  display: none;
}

.alke-banner-panel.is-active {
  display: block;
}

.alke-banner-text {
  font-size: 19px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
}

.alke-banner-actions {
  margin-top: 45px;
  align-self: flex-start;
}

.alke-banner .alke-split-cta {
  padding: 12px 24px !important;
  border-radius: 5px !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

@media (max-width: 991.98px) {
  .alke-banner {
    padding: 32px 0;
    margin: 24px 0;
  }

  .alke-banner-title {
    font-size: 1.2rem;
  }

  .alke-banner-right {
    margin-top: 12px;
    align-items: flex-start;
    padding-right: 24px;
  }

  .alke-banner-left {
    padding-left: 24px;
  }
}

/* Phones */
@media (max-width: 575.98px) {
  .alke-banner {
    padding: 20px 0 24px;
    margin: 16px 0;
    border-radius: 5px;
    height: 1000px;
    /* Tighter tab width and safe sizing */
    --alke-tab-max-width: 180px;
  }

  .alke-banner-media {
    height: 1000px;
  }

  .alke-banner .container {
    padding-left: 0;
    padding-right: 0;
  }

  /* Ensure inner columns respect mobile boundaries */
  .alke-banner-left {
    padding-left: 16px;
    padding-right: 16px;
    margin-bottom: 10px;
  }

  .alke-banner-right {
    padding-left: 16px;
    padding-right: 16px;
    min-width: 0;
    /* Avoid flex overflow on small screens */
  }

  .alke-banner .container,
  .alke-banner .row {
    height: 100%;
  }

  .alke-banner .row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .alke-banner-right {
    margin-top: auto;
  }

  .alke-banner-pretitle {
    font-size: calc(12px * 0.9);
    margin-top: 20px;
  }

  .alke-banner-title {
    font-size: calc(22px * 0.9);
    line-height: 1.25;
  }

  .alke-banner-tab {
    font-size: calc(14px * 0.9);
    width: auto;
    text-align: left;
    color: #b3b3b363;
  }

  .alke-banner-tabs-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    /* Contain tabs inside card radius */
  }

  .alke-banner-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    /* Show all tabs within available width (no scroll) */
    overflow-x: hidden;
    -webkit-overflow-scrolling: auto;
    scrollbar-width: none;
    /* keep hidden if any */
  }

  .alke-banner-tabwrap {
    align-items: center;
    /* Distribute tabs evenly and allow shrinking */
    max-width: none;
    flex: 1 1 0;
    min-width: 0;
  }

  /* Allow titles to wrap fully on mobile */
  .alke-banner-tab .label {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: initial;
    max-height: none;
  }

  .alke-banner-tabwrap .alke-banner-progress {
    margin: 6px 0 6px;
  }

  .alke-banner-progress .seg {
    height: 2px;
  }

  .alke-banner-panels {
    margin-top: 14px;
    max-width: 100%;
  }

  .alke-banner-text {
    font-size: calc(16px * 0.9);
    line-height: 1.55;
    overflow-wrap: anywhere;
    /* Avoid overflow of long words */
    word-break: normal;
  }

  .alke-banner-actions {
    margin-top: 20px;
    width: 100%;
  }

  .alke-banner .alke-banner-cta {
    width: 100% !important;
    display: block;
    text-align: center;
  }

  .alke-banner .alke-split-cta {
    font-size: calc(1.05rem * 0.9);
  }
}
