.tabs-with-bg {
  --tabs-bg: #e7ebf3;
  --tabs-panel: rgba(191, 197, 202, 0.14);
  --tabs-navy: #1b3b4d;
  --tabs-gold: #c8a46a;
  --tabs-border: rgba(27, 59, 77, 0.12);
  --tabs-active: rgba(27, 59, 77, 0.1);
  --tabs-white: #ffffff;

  position: relative;
  overflow: hidden;
  background: var(--tabs-bg);
  color: var(--tabs-navy);
}

.tabs-with-bg__background,
.tabs-with-bg__background picture,
.tabs-with-bg__background-image,
.tabs-with-bg__overlay,
.tabs-with-bg__top-gradient,
.tabs-with-bg__bottom-gradient {
  position: absolute;
  inset: 0;
}

.tabs-with-bg__background {
  z-index: 0;
  opacity: 0.3;
  filter: grayscale(1);
}

.tabs-with-bg__background picture,
.tabs-with-bg__background-image {
  display: block;
  width: 100%;
  height: 100%;
}

.tabs-with-bg__background-image {
  object-fit: cover;
  object-position: center;
}

.tabs-with-bg__overlay {
  z-index: 1;
  background:
    linear-gradient(to top, rgba(231, 235, 243, 1) 20%, rgba(231, 235, 243, 0.4) 40%, rgba(231, 235, 243, 0.4) 60%, rgba(231, 235, 243, 1) 80%),
    rgba(231, 235, 243, 0.36);

}

.tabs-with-bg__top-gradient,
.tabs-with-bg__bottom-gradient {
  display: none;
}

.tabs-with-bg__inner {
  position: relative;
  z-index: 2;
  width: min(1290px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
  display: grid;
  grid-template-columns: 550px minmax(0, 710px);
  gap: 30px;
  align-items: flex-start;
}

.tabs-with-bg__nav-column {
  padding: 48px;
  background: var(--tabs-panel);
  border-right: 1px solid var(--tabs-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}

.tabs-with-bg__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.tabs-with-bg__eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.tabs-with-bg__eyebrow-line {
  display: inline-block;
  width: 48px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--tabs-navy);
}

.tabs-with-bg__eyebrow {
  color: var(--tabs-navy);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: 0;
}

.tabs-with-bg__heading {
  width: min(455px, 100%);
  margin: 0;
  color: var(--tabs-navy);
  font-family: var(--font-display);
  font-size: 47px;
  font-weight: var(--fw-regular);
  line-height: 1.1;
  letter-spacing: 0;
}

.tabs-with-bg__heading-highlight {
  color: var(--tabs-gold);
}

.tabs-with-bg__tab-list {
  width: min(455px, 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tabs-with-bg__tab {
  position: relative;
  width: 100%;
  min-height: 98px;
  padding: 16px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  outline: 1px solid var(--tabs-border);
  outline-offset: -1px;
  background: transparent;
  color: var(--tabs-navy);
  cursor: pointer;
  text-align: left;
  transition:
    background var(--duration-fast) var(--ease-out),
    outline-color var(--duration-fast) var(--ease-out);
}

.tabs-with-bg__tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: transparent;
}

.tabs-with-bg__tab:hover,
.tabs-with-bg__tab:focus-visible {
  background: rgba(27, 59, 77, 0.06);
}

.tabs-with-bg__tab.is-active {
  background: var(--tabs-active);
}

.tabs-with-bg__tab.is-active::before {
  top: 0;
  bottom: 0;
  background: var(--tabs-navy);
}

.tabs-with-bg__tab-title {
  width: min(379px, 100%);
  color: var(--tabs-navy);
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: var(--fw-regular);
  line-height: 1.7;
  letter-spacing: 0;
}

.tabs-with-bg__tab-arrow {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--tabs-navy);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.tabs-with-bg__tab-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tabs-with-bg__tab.is-active .tabs-with-bg__tab-arrow {
  opacity: 1;
}

.tabs-with-bg__controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tabs-with-bg__control {
  width: 40px;
  height: 40px;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-full);
  outline: 1px solid rgba(27, 59, 77, 0.08);
  outline-offset: -1px;
  background: var(--tabs-navy);
  color: var(--tabs-white);
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.tabs-with-bg__control:hover {
  background: #24495d;
  transform: translateY(-1px);
}

.tabs-with-bg__control svg {
  width: 16px;
  height: 16px;
}

.tabs-with-bg__content-column {
  width: min(710px, 100%);
  padding-top: 8px;
}

.tabs-with-bg__panel {
  width: 100%;
}

.tabs-with-bg__panel[hidden] {
  display: none;
}

.tabs-with-bg__panel-title {
  margin: 0 0 24px;
  color: var(--tabs-navy);
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: var(--fw-regular);
  line-height: 1.1;
  letter-spacing: 0;
}

.tabs-with-bg__panel-body {
  color: var(--tabs-navy);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: var(--fw-regular);
  line-height: 1.56;
  letter-spacing: 0;
}

.tabs-with-bg__panel-body p {
  margin: 0 0 28px;
}

.tabs-with-bg__panel-body p:last-child {
  margin-bottom: 0;
}

.tabs-with-bg__panel-body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1399px) {
  .tabs-with-bg__inner {
    grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1fr);
  }
}

@media (max-width: 1139px) {
  .tabs-with-bg__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .tabs-with-bg__nav-column {
    border-right: 0;
  }

  .tabs-with-bg__heading,
  .tabs-with-bg__tab-list,
  .tabs-with-bg__content-column {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .tabs-with-bg__inner {
    width: min(100% - 40px, 1290px);
    padding: 72px 0;
    gap: 40px;
  }

  .tabs-with-bg__nav-column {
    padding: 28px;
    gap: 36px;
  }

  .tabs-with-bg__eyebrow {
    font-size: 16px;
  }

  .tabs-with-bg__heading {
    font-size: 38px;
  }

  .tabs-with-bg__tab {
    min-height: auto;
    padding: 18px 20px;
  }

  .tabs-with-bg__tab-title,
  .tabs-with-bg__panel-body {
    font-size: 16px;
  }

  .tabs-with-bg__panel-title {
    font-size: 32px;
  }
}
