/* ═══════════════════════════════════════
   FAQ Page — eBridge Cup 2026
   ═══════════════════════════════════════ */

/* ── PAGE HERO (FAQ override — more spacious than event-details) ── */
.page-hero {
  padding: 72px 0 64px;
}
.page-hero-badge {
  margin-bottom: 24px;
}
.page-hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 30px;
  max-width: 560px;
  margin-bottom: 28px;
}
.page-hero-right img {
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.35));
}

/* ── HERO SEARCH ── */
.hero-search {
  display: flex;
  max-width: 480px;
  margin-top: 8px;
  position: relative;
}
.hero-search-input {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  border-radius: 9px 0 0 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
  transition: border-color var(--transition-fast);
}
/* full-width variant (no button) */
.hero-search-input--full {
  border-right: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  padding-right: 48px;
}
.hero-search-input--full:focus {
  border-color: rgba(255, 255, 255, 0.5);
}
.hero-search-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.hero-search-input:focus { border-color: rgba(255, 255, 255, 0.5); }

.hero-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  transition: color var(--transition-fast);
}
.hero-search-clear:hover { color: #fff; }

/* ── Sticky search bar ── */
.faq-sticky-bar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--green-dark, #1a3a2a);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-100%);
  transition: transform 0.25s ease;
  pointer-events: none;
}
.faq-sticky-bar--visible {
  transform: translateY(0);
  pointer-events: auto;
}
.faq-sticky-bar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10px var(--container-padding);
  display: flex;
  align-items: center;
  gap: 16px;
}
.faq-sticky-search {
  position: relative;
  flex: 1;
  max-width: 560px;
}
.faq-sticky-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  padding: 9px 42px 9px 14px;
  font-size: 14.5px;
  color: #fff;
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.faq-sticky-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.faq-sticky-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
}
.faq-sticky-clear {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  transition: color var(--transition-fast);
}
.faq-sticky-clear:hover { color: #fff; }
.faq-sticky-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.faq-sticky-count #faqStickyResultCount {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.hero-search-count {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}
.hero-search-count #faqResultCount {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-stat-item {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-stat-item strong { color: rgba(255, 255, 255, 0.9); }

/* ── FAQ LAYOUT ── */
.faq-layout {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 56px var(--container-padding);
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.faq-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.faq-main { flex: 1; min-width: 0; }

/* ── SIDEBAR NAV ── */
.sidebar-nav {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.sidebar-nav-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--green-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-left var(--transition-fast);
}
.sidebar-nav-link:last-child { border-bottom: none; }
.sidebar-nav-link:hover,
.sidebar-nav-link.active {
  background: var(--green-light);
  color: var(--green);
}
.sidebar-nav-link.active { border-left: 3px solid var(--green); }
.sidebar-nav-icon { font-size: 16px; flex-shrink: 0; }
.sidebar-nav-count {
  margin-left: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--green-muted);
  padding: 1px 7px;
}

/* ── SIDEBAR CONTACT ── */
.sidebar-contact {
  margin-top: 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
}
.sidebar-contact h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.sidebar-contact p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 14px;
}
.contact-btn {
  display: block;
  text-align: center;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}
.contact-btn:hover { opacity: 0.88; }

/* ── FAQ CATEGORIES ── */
.faq-category { margin-bottom: 48px; }
.faq-category:last-child { margin-bottom: 0; }

.cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.cat-icon.green  { background: var(--green-light); }
.cat-icon.blue   { background: var(--blue-light); }
.cat-icon.purple { background: var(--purple-light); }
.cat-icon.gold   { background: var(--gold-light); }
.cat-icon.dark   { background: var(--bg); }

.cat-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.3px;
}
.cat-count {
  font-size: 13px;
  color: var(--green-muted);
  margin-top: 2px;
}

/* ── ACCORDION ── */
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}
.faq-item:hover { box-shadow: var(--shadow-lg); }
.faq-item.open  {
  border-color: var(--green-border);
  box-shadow: var(--shadow-lg);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  gap: 16px;
  user-select: none;
}
.faq-question-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  flex: 1;
}
.faq-item.open .faq-question-text { color: var(--green); }

.faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--green-muted);
  flex-shrink: 0;
  transition: transform var(--transition-medium), background var(--transition-fast), border-color var(--transition-fast);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--green-light);
  border-color: var(--green-border);
  color: var(--green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium), padding var(--transition-fast);
  border-top: 0 solid var(--border);
}
.faq-item.open .faq-answer {
  max-height: 600px;
  border-top-width: 1px;
}
.faq-answer-inner {
  padding: 18px 22px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
}
.faq-answer-inner p { margin-bottom: 10px; }
.faq-answer-inner p:last-child { margin-bottom: 0; }
.faq-answer-inner strong { color: var(--dark); font-weight: 700; }
.faq-answer-inner a { color: var(--blue); text-decoration: underline; }
.faq-answer-inner ul {
  margin: 8px 0 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faq-answer-inner ul li { list-style: disc; }

.answer-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
}
.answer-tag-green {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid var(--green-border);
}
.answer-tag-blue {
  background: var(--blue-light);
  color: var(--blue);
}

/* ── NO RESULTS ── */
.no-results {
  text-align: center;
  padding: 48px 24px;
  color: var(--green-muted);
  display: none;
}
.no-results-icon { font-size: 40px; margin-bottom: 12px; }
.no-results h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .faq-layout {
    flex-direction: column;
    padding: 40px 32px;
  }
  .faq-sidebar {
    width: 100%;
    position: static;
  }
  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
  }
  .sidebar-nav-head { width: 100%; }
  .sidebar-nav-link {
    flex: 1 0 auto;
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 10px 14px;
    font-size: 13px;
  }
  .sidebar-nav-link:last-child { border-right: none; }
}

@media (max-width: 640px) {
  .faq-layout { padding: 32px 20px; }
  .hero-search { max-width: 100%; }
  .hero-stats { gap: 16px; }
  .faq-question { padding: 16px 18px; }
  .faq-answer-inner { padding: 16px 18px; }
  .cat-title { font-size: 18px; }
}
