/* ||||||||||||||||||||||||||||||||||||||||||||||||*/
/* ESB Section Services */
/* ||||||||||||||||||||||||||||||||||||||||||||||||*/

.esb-services__accordion-title {
  display: flex;
  align-items: center;
  gap: 24px;
  background-color: var(--BlueLight2);
  border-radius: 11px;
  padding: 20px 30px;
  min-height: 90px;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
}

.esb-services__accordion-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  /* background: var(--primaryGradient); */
  background: var(--BluePrimary);
  border-radius: inherit;
  transition: opacity 0.3s ease;
}

.esb-services__accordion-title * {
  position: relative;
  z-index: 2;
}

.esb-services__accordion {
  transition: border-color 0.3s ease;
  border-radius: 12px;
  border: 1px solid transparent;
  user-select: none;
}
.esb-services__accordion.is-open{
  border: 1px solid var(--LightGrey);
}

.esb-services__accordion:hover .esb-services__accordion-title::before {
  opacity: 1;
}

.esb-services__accordion:not(.is-open):hover .esb-services__accordion-title {
  color: var(--white);
}

.esb-services__accordion:not(.is-open):hover
  .esb-services__accordion-title-logo
  img {
  filter: brightness(0) invert(1);
}

.esb-services__accordion-title-arrow svg path {
  transition: stroke 0.3s ease;
}

.esb-services__accordion:not(.is-open):hover
  .esb-services__accordion-title-arrow
  svg
  path {
  stroke: var(--white);
}

.esb-services__accordion.is-open .esb-services__accordion-title::before {
  opacity: 0;
}

.esb-services__accordion-title-logo {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.esb-services__accordion-title-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  transition: filter 0.3s ease;
  filter: invert(56%) sepia(42%) saturate(2784%) hue-rotate(193deg)
  brightness(94%) contrast(101%);
}

.esb-services__accordion-title-arrow {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  transition: transform 0.3s ease;
}

.esb-services__accordion-content {
  display: none;
}

.esb-services__accordion-content-inner {
  padding: 25px 34px;
}

.esb-services__accordion-content-inner p {
  font-size: 16px;
  line-height: 1.75;
}

.esb-services__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 32px;
  align-items: flex-start;
}

.esb-services__accordion.is-open .esb-services__accordion-title {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.esb-services__accordion.is-open .esb-services__accordion-title-arrow {
  transform: scaleY(-1);
}

/* ------------------------------------------------ */
/* Desktop Large and Down */
/* ------------------------------------------------ */

@media (max-width: 1919px) {
  .esb-services__accordion-title {
    padding: 10px 30px;
    min-height: 80px;
    font-size: 18px;
  }

  .esb-services__accordion-title-logo {
    width: 45px;
    height: 45px;
  }
}

/* ------------------------------------------------ */
/* Desktop Smaller and Down */
/* ------------------------------------------------ */

@media (max-width: 1439px) {
  .esb-services__accordion-title {
    padding: 10px 20px;
    gap: 16px;
    line-height: normal;
  }

  .esb-services__accordion-title-logo {
    width: 38px;
    height: 38px;
  }

  .esb-services__accordion-title-arrow {
    width: 20px;
    height: 20px;
  }

  .esb-services__accordion-title-arrow svg {
    width: 100%;
    height: 100%;
  }

  .esb-services__accordion-content-inner {
    padding: 20px;
  }
}

/* ------------------------------------------------ */
/* Tablet L and Down */
/* ------------------------------------------------ */

@media (max-width: 1199px) {
  .esb-services__accordion-title {
    min-height: 74px;
  }
}

/* ------------------------------------------------ */
/* Tablet P and Down */
/* ------------------------------------------------ */

@media (max-width: 1023px) {
  .esb-services__inner {
    grid-template-columns: 1fr;
    grid-gap: 20px;
  }

  .esb-services__accordion-title {
    min-height: 56px;
  }

  .esb-services__accordion-title-logo {
    width: 32px;
    height: 32px;
  }
}

/* ------------------------------------------------ */
/* Mobile */
/* ------------------------------------------------ */

@media (max-width: 767px) {
  .esb-services__accordion {
    border-radius: 8px;
  }

  .esb-services__accordion-title {
    font-size: 16px;
    border-radius: 8px;
    padding: 10px 15px;
  }

  .esb-services__accordion-title-logo {
    width: 30px;
    height: 30px;
  }

  .esb-services__accordion-content-inner {
    padding: 15px;
  }
}
