/* ============================================
   FAQ Page Styles
   ============================================ */

.faq-hero {
  padding: 80px 0 40px;
  background: linear-gradient(135deg, #1B2A4A 0%, #2B354E 100%);
  color: #fff;
  text-align: center;
}

.faq-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.faq-hero p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 30px;
}

.faq-search-wrap {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.faq-search-wrap input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.faq-search-wrap .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.1rem;
}

/* Layout */
.faq-content {
  padding: 50px 0 80px;
  background: #f8f9fa;
  min-height: 60vh;
}

.faq-sidebar {
  position: sticky;
  top: 100px;
}

.faq-sidebar .category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-sidebar .category-list li {
  margin-bottom: 4px;
}

.faq-sidebar .category-list li a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  color: #4a5a71;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.faq-sidebar .category-list li a:hover {
  background: #e9ecef;
  color: #1B2A4A;
}

.faq-sidebar .category-list li a.active {
  background: #1B2A4A;
  color: #fff;
}

.faq-sidebar .category-count {
  float: right;
  background: rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 1px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.faq-sidebar .category-list li a.active .category-count {
  background: rgba(255,255,255,0.2);
}

/* Mobile category selector */
.faq-mobile-categories {
  display: none;
  margin-bottom: 24px;
}

.faq-mobile-categories select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  background: #fff;
  color: #1B2A4A;
  appearance: auto;
}

/* Category sections */
.faq-category-section {
  margin-bottom: 40px;
}

.faq-category-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1B2A4A;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e4e8;
}

/* Accordion */
.faq-item {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.faq-question {
  display: block;
  padding: 18px 50px 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #2B354E;
  position: relative;
  user-select: none;
  line-height: 1.5;
  text-decoration: none;
}

.faq-question:hover {
  color: #2B354E;
  text-decoration: none;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: #999;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  content: '\2212';
  color: #1B2A4A;
}

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

.faq-item.open .faq-answer {
  max-height: 1000px;
  padding: 0 22px 20px;
}

.faq-answer-inner {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.8;
  padding-top: 4px;
  border-top: 1px solid #f0f0f0;
}

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

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

.faq-answer-inner a {
  color: #3b7ddd;
  text-decoration: underline;
}

.faq-answer-inner ul,
.faq-answer-inner ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.faq-answer-inner li {
  margin-bottom: 6px;
}

/* No results */
.faq-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  display: none;
}

.faq-no-results.visible {
  display: block;
}

.faq-no-results i {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-hero {
    padding: 60px 0 30px;
  }

  .faq-hero h1 {
    font-size: 1.8rem;
  }

  .faq-sidebar-col {
    display: none;
  }

  .faq-mobile-categories {
    display: block;
  }

  .faq-category-section h2 {
    font-size: 1.2rem;
  }

  .faq-question {
    font-size: 0.93rem;
    padding: 15px 42px 15px 16px;
  }

  .faq-answer-inner {
    font-size: 0.9rem;
  }
}

/* ============================================
   FAQ Detail Page Styles
   ============================================ */

.faq-detail-hero {
  padding: 80px 0 40px;
  background: linear-gradient(135deg, #1B2A4A 0%, #2B354E 100%);
  color: #fff;
}

.faq-breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 16px;
  opacity: 0.8;
}

.faq-breadcrumb a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.faq-breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

.faq-breadcrumb-sep {
  margin: 0 8px;
  opacity: 0.5;
}

.faq-detail-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  max-width: 800px;
}

.faq-detail-content {
  padding: 50px 0 80px;
  background: #f8f9fa;
  min-height: 40vh;
}

.faq-detail-answer {
  background: #fff;
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  color: #444;
  font-size: 1.05rem;
  line-height: 1.9;
}

.faq-detail-answer p {
  margin-bottom: 16px;
}

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

.faq-detail-answer a {
  color: #3b7ddd;
  text-decoration: underline;
}

.faq-detail-answer ul,
.faq-detail-answer ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.faq-detail-answer li {
  margin-bottom: 8px;
}

.faq-detail-sidebar {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: sticky;
  top: 100px;
}

.faq-detail-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1B2A4A;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e4e8;
}

.faq-detail-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.faq-detail-sidebar ul li {
  margin-bottom: 10px;
}

.faq-detail-sidebar ul li a {
  color: #4a5a71;
  text-decoration: none;
  font-size: 0.93rem;
  line-height: 1.5;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.faq-detail-sidebar ul li a:hover {
  background: #f0f2f5;
  color: #1B2A4A;
}

.faq-back-link {
  display: inline-block;
  color: #3b7ddd;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.faq-back-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .faq-detail-hero {
    padding: 60px 0 30px;
  }

  .faq-detail-hero h1 {
    font-size: 1.5rem;
  }

  .faq-detail-answer {
    padding: 24px 20px;
    font-size: 0.95rem;
  }

  .faq-detail-sidebar {
    margin-top: 30px;
    position: static;
  }
}
