/**
 * FAQ PAGE STYLESHEET
 * World Children’s Summit for a Sustainable Future 2027
 * United Nations Conference Centre (UNCC), Bangkok, Thailand
 */

/* ============================================================
   HERO & SEARCH BANNER
   ============================================================ */
.faq-hero {
  background: radial-gradient(circle at 50% 15%, rgba(0, 114, 206, 0.22) 0%, transparent 65%),
              linear-gradient(135deg, #020C1F 0%, #061A38 50%, #0A2244 100%);
  color: #FFFFFF;
  padding: 130px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(224, 242, 254, 0.15);
}

.faq-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0072CE 0%, #43B97D 35%, #F4B942 70%, #001B3A 100%);
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.faq-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.faq-subtitle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-yellow);
  margin-bottom: 14px;
}

.faq-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 22px;
  border-radius: var(--radius-full);
  margin-bottom: 30px;
}

.faq-meta i {
  color: #38BDF8;
}

/* Instant Search Box */
.faq-search-wrapper {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.faq-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 50px;
  padding: 6px 8px 6px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.faq-search-box:focus-within {
  box-shadow: 0 12px 36px rgba(0, 114, 206, 0.35);
  transform: translateY(-2px);
}

.faq-search-icon {
  color: #0072CE;
  font-size: 1.15rem;
  margin-right: 14px;
}

.faq-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: #0F172A;
  background: transparent;
}

.faq-search-input::placeholder {
  color: #94A3B8;
}

.faq-search-clear {
  background: transparent;
  border: none;
  color: #94A3B8;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.95rem;
  border-radius: 50%;
  display: none;
}

.faq-search-clear:hover {
  color: #0F172A;
}

/* ============================================================
   CONTROLS & CATEGORY PILLS BAR
   ============================================================ */
.faq-controls-bar {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 18px 0;
  position: sticky;
  top: 74px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.faq-controls-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.faq-category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.faq-pill {
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.faq-pill:hover {
  border-color: #0072CE;
  color: #0072CE;
  background: #F0F7FF;
}

.faq-pill.active {
  background: #002C50;
  color: #FFFFFF;
  border-color: #002C50;
  box-shadow: 0 2px 8px rgba(0, 44, 80, 0.2);
}

.faq-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-btn-toggle-all {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #002C50;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.faq-btn-toggle-all:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

/* ============================================================
   MAIN FAQ ACCORDION SECTION
   ============================================================ */
.faq-main-section {
  background: #FFFFFF;
  padding: 50px 0 80px;
  min-height: 500px;
}

.faq-results-counter {
  font-size: 0.95rem;
  color: #64748B;
  margin-bottom: 24px;
  font-weight: 600;
}

.faq-category-block {
  margin-bottom: 40px;
}

.faq-category-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #002C50;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-category-heading i {
  color: #0072CE;
  font-size: 1.15rem;
}

/* Accordion Item */
.faq-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
  border-color: #93C5FD;
  box-shadow: 0 4px 14px rgba(0, 114, 206, 0.08);
}

.faq-item.active {
  border-color: #0072CE;
  box-shadow: 0 6px 20px rgba(0, 114, 206, 0.12);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0A2540;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.faq-question-btn:hover {
  color: #0072CE;
}

.faq-question-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.faq-q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 114, 206, 0.08);
  color: #0072CE;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 1px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 114, 206, 0.2);
}

.faq-item.active .faq-q-num {
  background: #002C50;
  color: #FFFFFF;
  border-color: #002C50;
}

.faq-icon-chevron {
  font-size: 0.95rem;
  color: #64748B;
  transition: transform 0.25s ease, color 0.2s ease;
  margin-top: 4px;
  flex-shrink: 0;
}

.faq-item.active .faq-icon-chevron {
  transform: rotate(180deg);
  color: #0072CE;
}

/* Answer Body */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  background: #F8FAFC;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
  max-height: 1200px;
  transition: max-height 0.4s ease-in-out;
  border-top-color: #E2E8F0;
}

.faq-answer-inner {
  padding: 20px 24px 24px 50px;
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.75;
}

.faq-answer-inner p {
  margin-bottom: 12px;
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

.faq-answer-inner ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
}

.faq-answer-inner ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.faq-answer-inner ul li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: #0072CE;
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1;
  top: 2px;
}

.faq-answer-inner strong {
  color: #0A2540;
}

/* ============================================================
   IMPORTANT NOTICE & ASSISTANCE BOXES
   ============================================================ */
.faq-notice-card {
  background: linear-gradient(135deg, rgba(254, 240, 138, 0.25) 0%, rgba(253, 224, 71, 0.12) 100%);
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-left: 6px solid #CA8A04;
  border-radius: 12px;
  padding: 26px 30px;
  margin-top: 48px;
  margin-bottom: 40px;
}

.faq-notice-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #854D0E;
  margin-bottom: 10px;
}

.faq-notice-desc {
  color: #713F12;
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

/* Quick Support Banner */
.faq-support-box {
  background: radial-gradient(circle at 50% 0%, rgba(0, 114, 206, 0.1) 0%, transparent 70%),
              linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 1px solid #BFDBFE;
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  margin-top: 30px;
}

.faq-support-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #002C50;
  margin-bottom: 10px;
}

.faq-support-subtitle {
  font-size: 1.05rem;
  color: #475569;
  max-width: 680px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.faq-support-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* No Search Results State */
.faq-no-results {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.faq-no-results i {
  font-size: 3rem;
  color: #94A3B8;
  margin-bottom: 16px;
}

.faq-no-results h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #0F172A;
  margin-bottom: 8px;
}

.faq-no-results p {
  color: #64748B;
  font-size: 1rem;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 920px) {
  .faq-hero {
    padding: 100px 0 50px;
  }
  .faq-title {
    font-size: 2.2rem;
  }
  .faq-controls-bar {
    top: 50px;
  }
}

@media (max-width: 680px) {
  .faq-title {
    font-size: 1.8rem;
  }
  .faq-subtitle {
    font-size: 1.05rem;
  }
  .faq-meta {
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .faq-controls-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .faq-answer-inner {
    padding: 16px 18px 20px 20px;
    font-size: 0.95rem;
  }
  .faq-question-btn {
    padding: 14px 16px;
    font-size: 1rem;
  }
}
