/* =========================================================
   FAQ Page
   File: css/faq.css
   ========================================================= */

.faq-page {
  background: #fffdf8;
}

/* =========================================================
   Hero
   ========================================================= */

.faq-hero-section {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: #021d13;
}

.faq-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.faq-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(2, 29, 19, 0.16) 0%,
      rgba(2, 29, 19, 0.48) 45%,
      rgba(2, 29, 19, 0.88) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 29, 19, 0.20),
      rgba(2, 29, 19, 0.42)
    );
}

.faq-hero-content {
  position: relative;
  z-index: 2;
  min-height: 460px;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  padding: 64px 0;
}

.faq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.faq-breadcrumb a {
  color: #ead28a;
  font-weight: 700;
}

.faq-breadcrumb strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.faq-label,
.faq-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d5ad58;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 10px;
}

.faq-label::before,
.faq-label::after,
.faq-section-label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: #d5ad58;
}

.faq-hero-content h1 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.45;
}

.faq-hero-content p {
  margin: 0;
  max-width: 710px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 2.05;
}

.faq-hero-search {
  width: 100%;
  max-width: 610px;
  height: 62px;
  margin-top: 30px;
  border: 1px solid rgba(213, 173, 88, 0.44);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
}

.faq-hero-search i {
  color: #d5ad58;
  font-size: 22px;
}

.faq-hero-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
}

.faq-hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

/* =========================================================
   Category Cards
   ========================================================= */

.faq-category-section {
  background: #fffdf8;
  padding: 38px 0 18px;
}

.faq-category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.faq-category-card {
  min-height: 105px;
  border: 1px solid #e9dfc9;
  border-radius: 14px;
  background: #ffffff;
  color: #063522;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.035);
  transition: 0.25s ease;
}

.faq-category-card i {
  color: #9c762e;
  font-size: 34px;
  line-height: 1;
}

.faq-category-card:hover,
.faq-category-card.active {
  transform: translateY(-4px);
  border-color: #d5ad58;
  background: #07452e;
  color: #ffffff;
}

.faq-category-card:hover i,
.faq-category-card.active i {
  color: #d5ad58;
}

/* =========================================================
   Main
   ========================================================= */

.faq-main-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(213, 173, 88, 0.08), transparent 430px),
    #fffdf8;
  padding: 46px 0 66px;
}

.faq-main-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: start;
}

.faq-sidebar {
  position: sticky;
  top: 155px;
  display: grid;
  gap: 18px;
}

.faq-sidebar-box,
.faq-help-box {
  border: 1px solid #e9dfc9;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.035);
}

.faq-sidebar-box {
  padding: 24px;
}

.faq-sidebar-box h2 {
  margin: 0 0 18px;
  color: #063522;
  font-size: 22px;
  font-weight: 900;
}

.faq-sidebar-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.faq-side-filter {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fffdf8;
  color: #063522;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
  transition: 0.25s ease;
}

.faq-side-filter i {
  color: #9c762e;
  font-size: 19px;
}

.faq-side-filter:hover,
.faq-side-filter.active {
  background: #07452e;
  color: #ffffff;
  border-color: #d5ad58;
}

.faq-side-filter:hover i,
.faq-side-filter.active i {
  color: #d5ad58;
}

.faq-help-box {
  padding: 26px 22px;
  text-align: center;
}

.faq-help-box i {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff7e4;
  color: #9c762e;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 34px;
}

.faq-help-box h3 {
  margin: 0 0 8px;
  color: #063522;
  font-size: 19px;
  font-weight: 900;
}

.faq-help-box p {
  margin: 0 0 14px;
  color: #626a63;
  font-size: 14px;
  line-height: 1.9;
}

.faq-help-box a {
  height: 42px;
  border-radius: 999px;
  background: #07452e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 900;
  transition: 0.25s ease;
}

.faq-help-box a:hover {
  background: #d5ad58;
  color: #021d13;
}

.faq-content {
  min-width: 0;
}

.faq-content-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}

.faq-content-head h2 {
  margin: 0;
  color: #063522;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.45;
}

.faq-count {
  flex: 0 0 auto;
  height: 38px;
  border-radius: 999px;
  background: #fff7e4;
  color: #9c762e;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid #e9dfc9;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.028);
  transition: 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(213, 173, 88, 0.75);
}

.faq-item.is-hidden {
  display: none;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: #063522;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  text-align: right;
  font-size: 17px;
  font-weight: 900;
}

.faq-question i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff7e4;
  color: #9c762e;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: 0.25s ease;
}

.faq-item.is-open .faq-question i {
  background: #07452e;
  color: #ffffff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 24px 24px;
  color: #5c665f;
  font-size: 15px;
  line-height: 2.1;
}

.faq-answer strong {
  color: #063522;
  font-weight: 900;
}

.faq-empty-state {
  display: none;
  margin-top: 18px;
  text-align: center;
  border: 1px dashed #e9dfc9;
  border-radius: 16px;
  background: #ffffff;
  padding: 48px 20px;
}

.faq-empty-state.show {
  display: block;
}

.faq-empty-state i {
  color: #9c762e;
  font-size: 48px;
  margin-bottom: 12px;
}

.faq-empty-state h3 {
  margin: 0 0 8px;
  color: #063522;
  font-size: 24px;
  font-weight: 900;
}

.faq-empty-state p {
  margin: 0;
  color: #626a63;
  font-size: 15px;
}

/* =========================================================
   Help Main CTA
   ========================================================= */

.faq-help-section {
  background: #fffdf8;
  padding: 0 0 66px;
}

.faq-help-main {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 45%, rgba(213, 173, 88, 0.16), transparent 260px),
    linear-gradient(135deg, #021d13, #07452e);
  border: 1px solid rgba(213, 173, 88, 0.35);
  box-shadow: 0 18px 42px rgba(4, 53, 35, 0.13);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 42px 46px;
}

.faq-help-main h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.55;
}

.faq-help-main p {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 2;
}

.faq-help-main > a {
  height: 54px;
  min-width: 210px;
  border-radius: 999px;
  background: #d5ad58;
  color: #021d13;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  transition: 0.25s ease;
}

.faq-help-main > a:hover {
  transform: translateY(-3px);
}

.faq-bottom-cta {
  background: #fffdf8;
  padding: 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199px) {
  .faq-hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .faq-breadcrumb,
  .faq-label {
    justify-content: center;
  }

  .faq-hero-search {
    margin-left: auto;
    margin-right: auto;
  }

  .faq-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .faq-main-layout {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    position: static;
  }

  .faq-sidebar-box ul {
    grid-template-columns: repeat(3, 1fr);
  }

  .faq-help-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .faq-help-main .faq-section-label {
    justify-content: center;
  }

  .faq-help-main > a {
    justify-self: center;
  }
}

@media (max-width: 767px) {
  .faq-hero-section,
  .faq-hero-content {
    min-height: 450px;
  }

  .faq-hero-content {
    padding: 48px 0;
  }

  .faq-hero-content h1 {
    font-size: 31px;
    line-height: 1.6;
  }

  .faq-hero-content p {
    font-size: 15px;
    line-height: 2;
  }

  .faq-hero-search {
    height: 54px;
    padding: 0 16px;
  }

  .faq-hero-search input {
    font-size: 14px;
  }

  .faq-category-section {
    padding: 30px 0 8px;
  }

  .faq-category-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faq-category-card {
    min-height: 72px;
    justify-content: flex-start;
  }

  .faq-main-section {
    padding: 34px 0 46px;
  }

  .faq-sidebar-box {
    padding: 18px;
  }

  .faq-sidebar-box ul {
    grid-template-columns: 1fr;
  }

  .faq-content-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-content-head h2 {
    font-size: 27px;
  }

  .faq-question {
    padding: 18px;
    font-size: 15px;
  }

  .faq-answer p {
    padding: 0 18px 20px;
    font-size: 14px;
  }

  .faq-help-section {
    padding: 0 0 44px;
  }

  .faq-help-main {
    border-radius: 14px;
    padding: 32px 20px;
  }

  .faq-help-main h2 {
    font-size: 24px;
  }

  .faq-help-main p {
    font-size: 14px;
  }

  .faq-help-main > a {
    width: 100%;
  }
}