/* =========================================================
   GHANIA GAWAI
   FAQ Responsive
   /faq/
   ========================================================= */


/* =========================================================
   01. SMALL DESKTOP
   <= 1100px
   ========================================================= */

@media (max-width: 1100px) {

  .faq-content__layout {
    grid-template-columns:
      minmax(230px, 0.6fr)
      minmax(0, 1.4fr);

    gap: 46px;
  }


  .faq-contact__box {
    grid-template-columns:
      minmax(0, 1fr)
      290px;

    gap: 34px;
  }

}


/* =========================================================
   02. TABLET
   <= 980px
   ========================================================= */

@media (max-width: 980px) {

  /* Hero */

  .faq-hero {
    padding:
      54px
      0
      38px;
  }

  .faq-hero__title {
    font-size:
      clamp(
        38px,
        6vw,
        50px
      );
  }


  /* Search */

  .faq-search-section {
    padding-bottom: 60px;
  }


  /* Content */

  .faq-content {
    padding:
      66px
      0
      76px;
  }

  .faq-content__layout {
    grid-template-columns: 1fr;

    gap: 32px;
  }

  .faq-sidebar {
    position: static;

    max-width: 650px;
  }


  /* Contact */

  .faq-contact {
    padding:
      68px
      0;
  }

  .faq-contact__box {
    grid-template-columns: 1fr;

    gap: 26px;
  }

  .faq-contact__points {
    max-width: 620px;
  }


  /* Final CTA */

  .faq-final-cta {
    padding-bottom: 76px;
  }

}


/* =========================================================
   03. SMALL TABLET
   <= 768px
   ========================================================= */

@media (max-width: 768px) {

  /* Hero */

  .faq-hero {
    padding:
      46px
      0
      32px;
  }

  .faq-hero__title {
    max-width: 620px;

    font-size: 40px;
  }

  .faq-hero__description {
    max-width: 560px;

    font-size: 14px;
  }


  /* Search */

  .faq-search-section {
    padding-bottom: 54px;
  }

  .faq-search-box {
    padding: 20px;

    border-radius: 18px;
  }

  .faq-search__input {
    height: 52px;

    font-size: 12px;
  }


  /* Category */

  .faq-category-filter {
    justify-content: flex-start;

    flex-wrap: nowrap;

    overflow-x: auto;

    padding-bottom: 4px;

    scrollbar-width: none;
  }

  .faq-category-filter::-webkit-scrollbar {
    display: none;
  }

  .faq-category-filter__button {
    flex-shrink: 0;
  }


  /* FAQ content */

  .faq-content {
    padding:
      60px
      0
      68px;
  }

  .faq-sidebar__title {
    font-size: 24px;
  }


  /* Contact */

  .faq-contact {
    padding:
      60px
      0;
  }

  .faq-contact__box {
    padding: 34px;
  }


  /* Final CTA */

  .faq-final-cta__box {
    padding:
      38px
      30px;
  }

  .faq-final-cta__title {
    font-size: 30px;
  }

}


/* =========================================================
   04. MOBILE
   <= 640px
   ========================================================= */

@media (max-width: 640px) {

  /* =======================================================
     PAGE
     ======================================================= */

  .faq-page {
    background:
      linear-gradient(
        180deg,
        #f7fbfe 0%,
        #ffffff 250px
      );
  }


  /* =======================================================
     HERO
     ======================================================= */

  .faq-hero {
    padding:
      34px
      0
      24px;
  }

  .faq-hero::before {
    top: -220px;
    right: -220px;

    width: 410px;
    height: 410px;
  }

  .faq-hero::after {
    left: -210px;
    bottom: -250px;

    width: 360px;
    height: 360px;
  }

  .faq-hero__content {
    max-width: 100%;
  }

  .faq-hero__eyebrow {
    margin-bottom: 10px;

    font-size: 9px;
  }

  .faq-hero__title {
    max-width: 350px;

    margin-bottom: 12px;

    font-size: 32px;

    line-height: 1.07;

    letter-spacing: -0.04em;
  }

  .faq-hero__description {
    max-width: 325px;

    font-size: 12px;

    line-height: 1.65;
  }


  /* =======================================================
     SEARCH
     ======================================================= */

  .faq-search-section {
    padding:
      6px
      0
      48px;
  }

  .faq-search-box {
    padding: 14px;

    border-radius: 16px;

    box-shadow:
      0 12px 32px
      rgba(15, 23, 42, 0.05);
  }

  .faq-search__input {
    height: 48px;

    padding:
      0
      44px
      0
      42px;

    border-radius: 11px;

    font-size: 11px;
  }

  .faq-search__icon {
    left: 14px;

    width: 17px;
    height: 17px;
  }

  .faq-search__clear {
    right: 9px;

    width: 30px;
    height: 30px;
  }


  /* =======================================================
     CATEGORY FILTER
     ======================================================= */

  .faq-category-filter {
    margin-top: 12px;

    justify-content: flex-start;

    flex-wrap: nowrap;

    gap: 6px;

    overflow-x: auto;

    scroll-snap-type: x proximity;

    scrollbar-width: none;
  }

  .faq-category-filter::-webkit-scrollbar {
    display: none;
  }

  .faq-category-filter__button {
    min-height: 34px;

    padding:
      7px
      10px;

    flex-shrink: 0;

    font-size: 9px;

    scroll-snap-align: start;
  }


  /* =======================================================
     CONTENT
     ======================================================= */

  .faq-content {
    padding:
      52px
      0
      58px;
  }

  .faq-content__layout {
    gap: 24px;
  }


  /* =======================================================
     SIDEBAR
     ======================================================= */

  .faq-sidebar__eyebrow {
    font-size: 8px;
  }

  .faq-sidebar__title {
    margin-bottom: 8px;

    font-size: 22px;
  }

  .faq-sidebar__description {
    margin-bottom: 17px;

    font-size: 10px;
  }

  .faq-sidebar__actions {
    width: 100%;
  }

  .faq-sidebar__actions .btn {
    width: 100%;
  }


  /* =======================================================
     RESULT SUMMARY
     ======================================================= */

  .faq-result-summary {
    margin-bottom: 13px;

    align-items: flex-start;

    gap: 10px;
  }

  .faq-result-summary__text,
  .faq-result-summary__reset {
    font-size: 9px;
  }


  /* =======================================================
     FEATURED
     ======================================================= */

  .faq-featured {
    margin-bottom: 11px;

    padding: 17px;

    border-radius: 13px;
  }

  .faq-featured__eyebrow {
    font-size: 7px;
  }

  .faq-featured__title {
    font-size: 15px;
  }

  .faq-featured__description {
    margin-bottom: 13px;

    font-size: 10px;
  }


  /* =======================================================
     FAQ LIST
     ======================================================= */

  .faq-page-list {
    gap: 8px;
  }

  .faq-page-item {
    border-radius: 12px;
  }

  .faq-page-item__button {
    padding:
      14px
      15px;

    gap: 12px;
  }

  .faq-page-item__category {
    margin-bottom: 3px;

    font-size: 7px;
  }

  .faq-page-item__question {
    font-size: 11px;
  }

  .faq-page-item__icon {
    width: 25px;
    height: 25px;

    border-radius: 7px;
  }

  .faq-page-item__answer-inner {
    padding:
      0
      15px
      15px;

    font-size: 10px;

    line-height: 1.7;
  }


  /* =======================================================
     EMPTY
     ======================================================= */

  .faq-empty {
    padding:
      38px
      16px;

    border-radius: 13px;
  }

  .faq-empty__icon {
    width: 44px;
    height: 44px;

    margin-bottom: 11px;

    border-radius: 12px;
  }

  .faq-empty__title {
    font-size: 15px;
  }

  .faq-empty__description {
    max-width: 310px;

    margin-bottom: 14px;

    font-size: 10px;
  }


  /* =======================================================
     CONTACT
     ======================================================= */

  .faq-contact {
    padding:
      52px
      0;
  }

  .faq-contact__box {
    padding: 24px;

    grid-template-columns: 1fr;

    gap: 20px;

    border-radius: 18px;
  }

  .faq-contact__box::after {
    right: -180px;
    bottom: -240px;
  }

  .faq-contact__eyebrow {
    font-size: 8px;
  }

  .faq-contact__title {
    margin-bottom: 10px;

    font-size: 23px;
  }

  .faq-contact__description {
    margin-bottom: 16px;

    font-size: 10px;
  }

  .faq-contact__points {
    padding: 16px;

    border-radius: 12px;
  }

  .faq-contact__points ul {
    gap: 8px;
  }

  .faq-contact__points li {
    font-size: 9px;
  }


  /* =======================================================
     FINAL CTA
     ======================================================= */

  .faq-final-cta {
    padding:
      8px
      0
      58px;
  }

  .faq-final-cta__box {
    padding:
      30px
      18px;

    border-radius: 18px;
  }

  .faq-final-cta__eyebrow {
    font-size: 7px;
  }

  .faq-final-cta__title {
    max-width: 320px;

    margin-bottom: 9px;

    font-size: 25px;
  }

  .faq-final-cta__description {
    max-width: 310px;

    margin-bottom: 18px;

    font-size: 10px;
  }

  .faq-final-cta__actions {
    flex-direction: column;

    align-items: stretch;
  }

  .faq-final-cta__actions .btn {
    width: 100%;
  }


  /* =======================================================
     LOADING
     ======================================================= */

  .faq-loading {
    min-height: 180px;
  }

}


/* =========================================================
   05. SMALL MOBILE
   <= 480px
   ========================================================= */

@media (max-width: 480px) {

  .faq-hero {
    padding:
      30px
      0
      20px;
  }

  .faq-hero__title {
    max-width: 310px;

    font-size: 30px;
  }

  .faq-hero__description {
    max-width: 300px;
  }


  .faq-search-box {
    padding: 12px;
  }


  .faq-page-item__button {
    padding:
      13px
      14px;
  }

  .faq-page-item__answer-inner {
    padding:
      0
      14px
      14px;
  }


  .faq-contact__box {
    padding: 21px;
  }


  .faq-final-cta__box {
    padding:
      27px
      16px;
  }

}


/* =========================================================
   06. EXTRA SMALL MOBILE
   <= 380px
   ========================================================= */

@media (max-width: 380px) {

  .faq-hero__title {
    max-width: 285px;

    font-size: 28px;
  }


  .faq-category-filter__button {
    min-height: 32px;

    padding:
      6px
      9px;
  }


  .faq-sidebar__title {
    font-size: 21px;
  }


  .faq-page-item__question {
    font-size: 10px;
  }


  .faq-contact__title {
    font-size: 21px;
  }


  .faq-final-cta__title {
    font-size: 23px;
  }

}


/* =========================================================
   07. TOUCH DEVICES
   ========================================================= */

@media (hover: none) {

  .faq-category-filter__button:hover {
    color:
      var(--color-text);

    border-color:
      var(--color-border);
  }

  .faq-category-filter__button.is-active:hover {
    color:
      var(--color-primary-dark);

    background:
      var(--color-primary-soft);

    border-color:
      var(--color-primary);
  }

}


/* =========================================================
   08. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .faq-page-item__answer,
  .faq-page-item__icon,
  .faq-category-filter__button,
  .faq-search__input {
    transition: none;
  }

  .faq-loading__spinner {
    animation-duration: 1.5s;
  }

}