/* CSS for FAQ layout */

.acf-layout-faq {
  background-color: var(--color-dark, #000000);
}

.faq-heading {
  margin-bottom: 70px;
}

/* Ensure headings inside the layout are white so they are visible on dark background */
.faq-heading,
.faq-heading h1,
.faq-heading h2,
.faq-heading h3,
.faq-heading h4,
.faq-heading h5,
.faq-heading h6,
.faq-heading p,
.faq-heading span {
  color: #ffffff;
}

.faq-accordion-wrapper {
  /* Separate card style - no divider on wrapper */
}

.faq-item {
  background-color: #ffffff;
  margin-bottom: 16px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  background: #ffffff;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: left;
  gap: 20px;
  color: #808080; /* Heading normal color */
  transition: color 0.3s ease;
}

.faq-header:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-1, #e65125);
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
}

/* Opened heading color #000000 */
.faq-item.is-open .faq-header,
.faq-item.is-open .faq-question {
  color: #000000;
}

.faq-icon-wrapper {
  position: relative;
  width: 20px;
  height: 20px;
  color: #000000; /* Toggle icon always black */
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.faq-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.faq-line {
  display: block;
  background-color: currentColor;
  border-radius: 1px;
}

.faq-line-h {
  position: absolute;
  width: 8px;
  height: 2px;
  left: 6px;
  top: 9px;
  transition: transform 0.3s ease;
}

.faq-line-v {
  position: absolute;
  width: 2px;
  height: 8px;
  left: 9px;
  top: 6px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.faq-item.is-open .faq-line-v {
  transform: rotate(90deg);
  opacity: 0;
}

/* FAQ Body/Answer Collapsible */
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #ffffff;
}

.faq-answer {
  padding: 0 24px 20px 24px;
  color: #484848; /* Content color */
  line-height: 1.6;
  font-size: 15px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .faq-header {
    padding: 20px 24px; /* Maintain padding per request */
  }

  .faq-answer {
    padding: 0 24px 20px 24px; /* Maintain padding per request */
  }

  .faq-question {
    font-size: 16px;
  }
}



/* =========================================
   FAQ SEARCH - SCREENSHOT DESIGN
========================================= */

.faq-search-wrapper {
    width: 100%;
    margin-bottom: 35px;
    display: flex;
    justify-content: flex-start;
}

.faq-search-box {
    position: relative;
    width: 223px;
    height: 37px;
    display: flex;
    align-items: center;
}

.faq-search-input {
    width: 100%;
    height: 37px;
    padding: 0 42px 0 11px;

    border: 1px solid #343434;
    border-radius: 0;

    outline: none;

    background: #1a1a1a;
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 37px;

    box-shadow: none;

    transition:
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.faq-search-input::placeholder {
    color: #8a8a8a;
    opacity: 1;
}

.faq-search-input:focus {
    border-color: #4a4a4a;
    background: #1a1a1a;
    box-shadow: none;
}

.faq-search-icon {
    position: absolute;

    right: 12px;
    left: auto;

    top: 50%;
    transform: translateY(-50%);

    width: 16px;
    height: 16px;

    color: #ffffff;

    pointer-events: none;
    z-index: 2;
}


/* =========================================
   HIDE CLEAR BUTTON
========================================= */

.faq-search-clear {
    display: none !important;
}


/* =========================================
   SEARCH FILTER
========================================= */

.faq-item.faq-hidden {
    display: none !important;
}

.faq-no-results {
    width: 100%;
    padding: 25px 0;
    text-align: center;
}

.faq-no-results p {
    margin: 0;
    color: #888;
    font-size: 14px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .faq-search-wrapper {
        justify-content: flex-end;
        margin-bottom: 25px;
    }

    .faq-search-box {
        width: 223px;
        height: 37px;
    }

    .faq-search-input {
        height: 37px;
        font-size: 13px;
    }

    .faq-search-icon {
        right: 11px;
        width: 16px;
        height: 16px;
    }

}


/* =========================================================
   PAGINATION WRAPPER
========================================================= */

.faq-pagination-wrapper {
    width: 100%;

    margin-top: 55px;
    margin-bottom: 20px;
}


/* =========================================================
   PAGINATION
========================================================= */

.faq-pagination {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;

    gap: 16px;

    overflow-x: auto;
    scrollbar-width: none;
}

.faq-pagination::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   PAGINATION BUTTON
========================================================= */

.faq-pagination-btn,
.faq-pagination-result,
.faq-pagination-number {
    height: 46px;

    border: 1px solid #292929;

    background: #151515;

    color: #969696;

    font-family: inherit;
    font-size: 18px;
    font-weight: 400;

    display: flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;

    flex-shrink: 0;
}


/* Back / Next */

.faq-pagination-btn {
    min-width: 120px;

    padding: 0 20px;

    gap: 14px;

    cursor: pointer;
}

.faq-pagination-btn:hover {
    background: #202020;

    color: #ffffff;

    border-color: #3a3a3a;
}

.faq-pagination-btn:disabled {
    opacity: 0.45;

    cursor: not-allowed;
}


/* =========================================================
   PAGE NUMBERS
========================================================= */

.faq-pagination-numbers {
    display: flex;

    align-items: center;

    gap: 16px;

    flex-shrink: 0;
}

.faq-pagination-number {
    width: 54px;

    padding: 0;

    cursor: pointer;
}

.faq-pagination-number:hover {
    background: #202020;

    color: #ffffff;

    border-color: #3a3a3a;
}


/* Active page */

.faq-pagination-number.is-active {
    background: #6248aa;

    border-color: #6248aa;

    color: #ffffff;
}


/* Dots */

.faq-pagination-dots {
    height: 55px;

    min-width: 63px;

    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #151515;

    border: 1px solid #292929;

    color: #969696;

    font-size: 18px;

    flex-shrink: 0;
}


/* =========================================================
   RESULT COUNT
========================================================= */

.faq-pagination-result {
    min-width: 260px;

    padding: 0 20px;

    justify-content: flex-start;
}


/* =========================================================
   ARROWS
========================================================= */

.faq-pagination-arrow {
    color: #ffffff;

    font-size: 22px;

    line-height: 1;
}

.faq-pagination-arrow-left {
    font-size: 20px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .faq-search-wrapper {
        margin-bottom: 25px;
    }

    .faq-search-box {
        width: 223px;
        height: 37px;
    }

    .faq-search-input {
        height: 37px;

        font-size: 13px;
    }


    .faq-pagination-wrapper {
        margin-top: 35px;
    }

    .faq-pagination {
        gap: 8px;
    }

    .faq-pagination-numbers {
        gap: 8px;
    }

    .faq-pagination-btn {
        min-width: 95px;

        height: 48px;

        padding: 0 14px;

        font-size: 15px;
    }

    .faq-pagination-number {
        width: 48px;

        height: 48px;

        font-size: 15px;
    }

    .faq-pagination-dots {
        height: 48px;

        min-width: 48px;

        font-size: 15px;
    }

    .faq-pagination-result {
        height: 48px;

        min-width: 190px;

        padding: 0 15px;

        font-size: 14px;
    }

}
