html[dir="rtl"] {
  .timeline-content ul li::before {
    right: -18px !important;
  }

  .contextual-region {
    .bg-lighter {
      .row {
        margin-left: calc(-0.3 * var(--bs-gutter-x));
        --bs-gutter-x: 0px;
      }
    }
  }

  .faq-section .details-wrapper {
    padding-right: 1.25rem !important;
    padding-top: 1rem;
  }
  .custom-navbar {
    padding: 0 !important;
    ul.nav {
      padding-right: 10px;
    }
  }
}

.contextual-region {
  word-break: break-word;
  .form-actions {
    display: flex;
  }
}

.faq-section {
  background-color: #ffffff;
  padding: 1rem;
  margin-bottom: 40px;
  word-break: break-word;
}

.faq-section ul li {
  border-top: 1px solid #dcdfe2;
}

.faq--teaser ul li {
  border-top: none !important;
}

.faq--teaser ul li:first-child {
  margin-top: 0 !important;
}

.faq-section ul li:first-child {
  border-top: none !important;
  margin-top: 10px !important;
}

.faq-section ul li {
  border-bottom: none !important;
}

.faq-section .faq__field-answer {
  color: #1e3564 !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 160%;
  word-break: break-word;
}

.faq-section .faq__field-answer strong {
  color: #1e3564 !important;
}

.faq-section .details {
  /* border: 1px solid #e9ecef; */
  margin-bottom: 0rem;
  border: none !important;
}

.faq .details__summary {
  padding-right: 0rem !important;
}

.faq--teaser {
  padding-bottom: 7px !important;
  padding-top: 8px !important;
  color: #1e3564 !important;
  word-break: break-word;
}

.faq--teaser .details__summary .details__title {
  font-weight: 700 !important;
}

.faq--teaser .details-wrapper {
  padding-top: 7px !important;
}

.faq-section .details__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  /* padding: 1rem 1.25rem; */
  background-color: transparent;
  border: none;
  border-radius: 8px;
  font-weight: normal;
  /* Default weight */
  transition: font-weight 0.3s ease;
}

/* Target the <summary> inside an open <details> */
.faq-section details[open] .details__summary {
  font-weight: bold;
  /* Bold text for open details */
}

.faq-section .details__summary:focus {
  outline: none;
}

.faq-section .details__icon {
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.faq-section .details__icon:not(.collapsed) {
  background-color: transparent;
  /* transform: rotate(180deg); */
}

.faq-section .details__icon:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

.faq-section .details__title {
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.faq-section .details-wrapper {
  padding-top: 1rem;
}

.faq-section .details__content {
  padding: 1rem 1.25rem;
  background-color: #ffffff;
  border-radius: 0 0 8px 8px;
  color: #495057;
  font-size: 0.9rem;
}

.faq-section .field {
  margin-bottom: 0;

  p {
    text-align: justify;
  }
}

.accordion-button:not(.collapsed) {
  background-color: #e7f1ff;
  color: #0c63e4;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

.accordion-item {
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.125);
}

.accordion-button {
  border-radius: 100px;
  padding: 1rem 1.25rem;
}

.accordion-body {
  padding: 1.5rem;
  line-height: 1.6;
}

.custom-navbar {
  background-color: #1e3463 !important;
  height: 48px;
  padding: 0px 23px 0px 23px;
  gap: 10px;
  border: 0px 0px 1px 0px;
  opacity: 0px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;

  ul.nav {
    display: flex;
    flex-wrap: nowrap;
    text-wrap-mode: nowrap;
    padding-left: 0;
  }
}

@media (max-width: 425px) {
  .help-support-heading {
    font-size: 25px !important;
  }

  .help-support-description {
    font-size: 15px !important;
  }

  .custom-navbar {
    ul.nav {
      overflow-x: scroll;

      li {
        font-size: 12px;
      }
    }
  }

  .faq--teaser .details__summary .details__title {
    font-size: 16px !important;
  }

  .faq-section .details__content {
    padding: 0 !important;
    margin-top: 10px !important;
  }
}

.custom-navbar .nav-link {
  color: #dcdfe2 !important;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 3rem;
  height: 100%;
  width: 2px;
  background: #e9ecef;
}

.timeline-item {
  position: relative;
  padding-left: 7rem;
  margin-bottom: 3rem;
}

.timeline-icon {
  position: absolute;
  left: 1rem;
  width: 4rem;
  height: 4rem;
  background: #fff;
  border: 2px solid #dcdfe2;
  border-radius: 7%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background-color: #eef3f7;
}

@media (max-width: 426px) {
  .timeline-icon {
    left: 0.1rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .img-size {
    height: 20px;
  }

  .timeline::before {
    left: 1.3rem;
  }

  .timeline-item {
    padding-left: 3rem;
  }
}

.timeline-icon i {
  color: #11309c;
  font-size: 2rem;
}

.timeline-content {
  background: transparent;
}

.timeline-content h3 {
  color: #212529;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.timeline-content p {
  color: #6c757d;
  margin-bottom: 1rem;
}

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

.timeline-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #6c757d;
}

.timeline-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #515a63;
}

html[dir="rtl"] {
  /* RTL adjustments for the main layout */
  .timeline::before {
    left: auto;
    right: 3rem;
  }

  .timeline-icon {
    left: auto;
    right: 1rem;
  }

  .timeline-item {
    padding-left: 0;
    padding-right: 7rem;
  }

  /* RTL adjustments for smaller screens */
  @media (max-width: 426px) {
    .timeline::before {
      left: auto;
      right: 1.3rem;
    }

    .timeline-icon {
      left: auto;
      right: 0.1rem;
    }

    .timeline-item {
      padding-left: 0;
      padding-right: 3rem;
    }
  }
}

@media (min-width: 768px) {
  .faq-section .details {
    padding-bottom: 1rem !important;
  }
}

.faq-section svg path {
  fill: black !important;
}

.block--cait-faqheader {
  margin-bottom: 0 !important;
}

.faq-section .help-support-header {
  padding: 22px;
  text-align: left;
  margin-bottom: 2rem;
}

.view-faq {
  border: 1px solid #ddd;
  /* Adds a light gray border */
  border-top: none;
  /* Removes the border at the top */
  border-radius: 0 0 8px 8px;
  /* Adds rounded corners only at the bottom */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Adds a shadow only on sides and bottom */
  padding: 0 15px 15px;
  /* No padding on top, padding only on sides and bottom */
  background-color: #fff;
  /* Ensures a white background */
}

/* .details__summary .details__icon {
  background: blue !important;
} */

.faq-section .help-support-header h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.faq-section .help-support-header p {
  font-size: 1rem;
  color: rgba(81, 90, 99, 1);
  margin-bottom: 0;
}

/**************************************** Hide the existing SVG icon ***************************************************/
.details__icon {
  display: none;
}

/* Add a "+" icon by default using a pseudo-element */
.details__summary::after {
  content: "+";
  font-size: 24px;
  font-weight: bold;
  margin-left: 10px;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  /* Aligns it properly inline */
  color: var(--Nautral-300, #dcdfe2);
}

/* Change to "-" icon when the details are expanded */
.details[open] > .details__summary::after {
  content: "-";
}

.details[open] > .details__summary .details__icon {
  transform: none !important;
}

.details .details__summary .details__title {
  display: inline-grid;
  width: 96%;
}
