/* ===============================================
   FAQs PAGE CSS
   Back-to-top → style.css + home.js only
   =============================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --navbar: #5DADE2;
  --bg: #F8FBFF;
  --mint: #7ED6A5;
  --mint-hover: #66c491;
  --hover-blue: #4A90E2;
  --text: #2C3E50;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.section-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ========== HERO + SEARCH ========== */
.faq-hero {
  background: linear-gradient(135deg, #EAF4FF 0%, var(--bg) 100%);
  padding: 80px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.faq-hero-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.faq-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  margin: 10px 0 16px;
}

.faq-hero p:not(.eyebrow) {
  color: #5A6B7B;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.faq-hero .floating-icon {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--navbar);
}

.faq-hero .icon-1 { top: 12%; left: 8%; }
.faq-hero .icon-2 { top: 18%; right: 10%; color: var(--mint-hover); }
.faq-hero .icon-3 { top: 75%; left: 45%; }

.eyebrow.center {
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(93, 173, 226, 0.12);
  color: var(--navbar);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.faq-search-box {
  max-width: 550px;
  width: 100%;
  margin: 0 auto;
  background: var(--white);
  border-radius: 50px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  padding: 16px 26px;
  gap: 14px;
  box-sizing: border-box;
}

.faq-search-box i {
  color: var(--navbar);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.faq-search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: none;
}

/* ========== FILTER TABS — always one horizontal line ========== */
.faq-filter-section {
  width: 100%;
  max-width: 100%;
  margin: 50px auto 0;
  padding: 0 24px;
  box-sizing: border-box;
}

.faq-filter-section.section-box {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0 24px;
}

.faq-filter-tabs {
  display: flex;
  flex-wrap: nowrap;          /* desktop: single line */
  justify-content: center;
  align-items: center;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 40px;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 20px;
  gap: 8px;
  box-sizing: border-box;
}

.ffilter-btn {
  background: var(--bg);
  border: none;
  padding: 10px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.ffilter-btn:focus,
.ffilter-btn:active {
  outline: none;
}

.ffilter-btn:hover {
  background: #EAF4FF;
}

.ffilter-btn.active {
  background: var(--navbar);
  color: var(--white);
}

/* ========== FAQ LIST ========== */
.faq-main-section {
  max-width: 900px;
  margin: 40px auto 60px;
  padding: 50px;
}

.faq-full-list {
  display: flex;
  flex-direction: column;
}

.faq-category-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navbar);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 34px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E2EEFB;
}

.faq-category-heading:first-child {
  margin-top: 0;
}

.faq-item {
  border-bottom: 1px solid #E2EEFB;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  color: #6B7C8C;
  font-size: 0.9rem;
  line-height: 1.7;
  padding-bottom: 20px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-item.faq-hidden,
.faq-category-heading.faq-hidden {
  display: none;
}

.faq-no-results {
  display: none;
  text-align: center;
  padding: 50px 20px;
  color: #6B7C8C;
}

.faq-no-results.show {
  display: block;
}

.faq-no-results i {
  font-size: 2rem;
  color: #C5D5E5;
  margin-bottom: 14px;
}

/* ========== CTA ========== */
.faq-cta {
  background: linear-gradient(135deg, var(--navbar), var(--mint-hover));
  padding: 70px 40px;
  text-align: center;
}

.faq-cta .cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.faq-cta i {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 16px;
}

.faq-cta h2 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 14px;
}

.faq-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 28px;
}

.faq-cta .cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1;
}

.faq-cta .cta-buttons a,
.faq-cta .cta-buttons .btn,
.faq-cta .cta-buttons .btn-outline-white {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  line-height: 1.2;
}

.faq-cta .cta-buttons a i,
.faq-cta .cta-buttons .btn i {
  font-size: 0.85rem;
  line-height: 1;
  margin: 0;
  padding: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .faq-hero {
    padding: 50px 16px 40px;
  }

  .faq-hero h1 {
    font-size: 2.2rem;
  }

  .faq-hero .floating-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .faq-hero .icon-1 { top: 10%; left: 4%; }
  .faq-hero .icon-2 { top: 12%; right: 4%; }
  .faq-hero .icon-3 { top: 78%; left: 8%; }

  .faq-search-box {
    padding: 14px 20px;
    max-width: 100%;
  }

  .faq-filter-section,
  .faq-filter-section.section-box {
    margin: 28px auto 0;
    padding: 0 12px;
  }

  /* Mobile: wrap like before (not forced single line) */
  .faq-filter-tabs {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 14px 20px;
    gap: 10px;
    border-radius: 28px;
  }

  .ffilter-btn {
    padding: 11px 16px;
    font-size: 0.8rem;
  }

  .faq-main-section {
    margin: 28px 12px 40px;
    padding: 30px 20px;
    max-width: calc(100% - 24px);
  }

  .faq-question {
    font-size: 0.9rem;
    padding: 16px 0;
  }

  .faq-cta {
    padding: 50px 16px;
  }

  .faq-cta h2 {
    font-size: 1.6rem;
  }

  .faq-cta .cta-buttons {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .faq-cta .cta-buttons .btn,
  .faq-cta .cta-buttons .btn-outline-white {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    font-size: 0.85rem;
    padding: 12px 10px;
  }

  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-brand,
  .footer-newsletter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .faq-hero h1 {
    font-size: 1.75rem;
  }

  .faq-hero .floating-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .ffilter-btn {
    padding: 9px 12px;
    font-size: 0.74rem;
  }

  .footer-container {
    gap: 24px 14px;
  }
}
