.custom-tabs {
  display: flex;
  margin: auto;
  background: #f8f9fc;
  border-radius: 10px;
  box-shadow: 0px 0px 20px 0px #0000001a;
  line-height: normal;
  .custom-tabs__sidebar {
    width: 30%;
    background: #eff5fc;
    padding: 20px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }

  .custom-tabs__nav {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .custom-tabs__item {
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 500;
    color: #2d3e50;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: background 0.3s ease, color 0.3s ease;
  }

  .custom-tabs__item:hover,
  .custom-tabs__item.active {
    background: #5078ff;
    color: white;
  }

  .custom-tab-title {
    color: inherit;
  }

  .custom-tabs__item.active .custom-tab-title {
    color: white;
  }

  .custom-tabs__item:hover .custom-tab-title {
    color: white;
  }

  .custom-tabs__content {
    width: 70%;
    padding: 40px;
    background: white;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .custom-tabs__panel {
    display: none;
  }

  .custom-tabs__panel.active {
    display: block;
  }

  .custom-tabs__panel-title {
    font-size: 24px;
    color: #2d3e50;
    margin-bottom: 10px;
  }

  .custom-tabs__panel-content {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
  }

  .custom-tabs__panel-content ul {
    list-style: none;
    padding-left: 0;
  }

  .custom-tabs__panel-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    line-height: 1.6;
  }

  .custom-tabs__panel-content ul li::before {
    content: "";
    background-image: url(../images/tick-circle.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 0;
    top: 15px;
    transform: translateY(-50%);
  }
}

@media (max-width: 768px) {
  .custom-tabs {
    flex-direction: column;
    background: transparent;
    box-shadow: none;

    .custom-tabs__sidebar {
      width: 100%;
      background: #fff;
      padding: 15px 20px;
    }

    .custom-tabs__nav {
      display: flex;
      flex-direction: column;
    }

    .custom-tabs__item {
      padding: 15px;
      font-size: 18px;
      cursor: pointer;
      position: relative;
    }
    .custom-tab-title {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      font-weight: 500;
    }

    .custom-tab-title::after {
      content: "";
      border: solid currentColor;
      border-width: 0 2px 2px 0;
      display: inline-block;
      padding: 3px;
      transform: rotate(-45deg);
      -webkit-transform: rotate(-45deg);
      position: relative;
      margin-left: auto;
      margin-right: 10px;
      top: -1px;
      transition: all 0.3s ease;
    }

    .custom-tabs__item.active .custom-tab-title::after {
      transform: rotate(45deg);
      -webkit-transform: rotate(45deg);
    }

    .custom-tabs__panel-content.mobile-only {
      display: none;
      padding: 10px;
      font-size: 16px;
      line-height: 1.5;
    }

    .custom-tabs__panel-content.mobile-only.active {
      display: block;
    }
    .custom-tabs__panel-content.mobile-only .title {
      display: none;
    }

    .desktop-only {
      display: none;
    }

    .custom-tabs__sidebar .custom-tabs__nav .custom-tabs__item.active {
      background-color: transparent;
    }

    .custom-tabs__sidebar .custom-tabs__nav .custom-tabs__item:hover {
      background-color: transparent;
    }

    .custom-tab-title {
      text-transform: uppercase;
      color: inherit;
    }

    .custom-tabs__sidebar
      .custom-tabs__nav
      .custom-tabs__item.active
      .custom-tab-title {
      color: #5078ff;
    }

    .custom-tabs__sidebar
      .custom-tabs__nav
      .custom-tabs__item:hover
      .custom-tab-title {
      color: #5078ff;
    }
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}
