/* ============================================================
   GLS Tech — FAQs Page Styles
   ============================================================ */

body {
  display: flex;
  flex-direction: column;
}

/* ── HERO ── */
.page-hero {
  margin-top: 70px;
  background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 60%, #1a2a3a 100%);
  padding: 70px 30px 55px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,118,206,0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(231,76,60,0.15) 0%, transparent 60%);
}
.page-hero-content { position: relative; max-width: 750px; margin: 0 auto; }
.page-hero h1 {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: white;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.page-hero h1 span { color: var(--primary-color); }
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── MAIN LAYOUT ── */
.faq-page { max-width: 860px; margin: 0 auto; padding: 60px 30px 80px; width: 100%; }

/* ── CATEGORY TABS ── */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
  justify-content: center;
}
.category-tab {
  background: #f0f4f8;
  border: 2px solid var(--border-light);
  color: var(--text-dark);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-secondary);
  transition: all 0.25s ease;
  text-decoration: none;
}
.category-tab:hover, .category-tab.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* ── CATEGORY GROUPS ── */
.faq-category { margin-bottom: 52px; }
.category-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.category-heading h2 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  color: var(--text-dark);
  letter-spacing: 1px;
}
.category-heading .cat-icon { font-size: 1.4rem; }
.category-heading::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border-light);
  border-radius: 2px;
}

/* ── FAQ ITEMS ── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-normal);
}
.faq-item.open { border-color: var(--primary-color); }
.faq-question {
  width: 100%;
  background: #fafafa;
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-secondary);
  transition: background var(--transition-normal);
}
.faq-question:hover { background: #f0f4f8; }
.faq-icon {
  font-size: 1.3rem;
  color: var(--primary-color);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 0.97rem;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 22px 18px; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  text-align: center;
  padding: 70px 30px;
}
.cta-banner h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.cta-banner h2::after { display: none; }
.cta-banner p { font-size: 1rem; opacity: 0.92; margin-bottom: 28px; line-height: 1.6; }
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: var(--font-secondary);
}
.btn-outline { background: transparent; color: white; border: 2px solid white; }
.btn-outline:hover { background: white; color: var(--primary-color); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: var(--secondary-color);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 24px 20px;
  font-size: 0.88rem;
}
footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer a:hover { color: white; }

/* ── RESPONSIVE ── */
@media(max-width: 700px) {
  .faq-page { padding: 40px 20px 60px; }
}
