/* faq.css — Page-specific styles for FAQ page */

/* Override common container to narrower width */
.container {
  max-width: 900px;
}

/* Override common body line-height */
body {
  line-height: 1.7;
}

/* Main content */
main {
  padding: 60px 0;
}

/* Hero section */
.hero {
  text-align: center;
  margin-bottom: 48px;
}
.hero h1 {
  color: #1d3557;
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.hero p {
  color: #666;
  font-size: 1.1rem;
}

/* Search box */
.search-box {
  max-width: 500px;
  margin: 32px auto 0;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border: 2px solid #a8dadc;
  border-radius: 50px;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.search-box input:focus {
  outline: none;
  border-color: #1d3557;
}
.search-box::before {
  content: "\1F50D";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

/* Category tabs */
.category-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.category-tab {
  padding: 10px 20px;
  background: white;
  border: 2px solid #a8dadc;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  color: #444;
  transition: all 0.2s;
}
.category-tab:hover {
  border-color: #1d3557;
  color: #1d3557;
}
.category-tab.active {
  background: #1d3557;
  border-color: #1d3557;
  color: white;
}

/* FAQ sections */
.faq-section {
  margin-bottom: 40px;
}
.faq-section h2 {
  color: #1a1a1a;
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* FAQ accordion items */
.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #1a1a1a;
  transition: background 0.2s;
}
.faq-question:hover {
  background: #f7f7f5;
}
.faq-question .icon {
  font-size: 1.5rem;
  color: #1d3557;
  transition: transform 0.3s;
}
.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

/* Accordion answer animation */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}

/* Answer content */
.faq-answer-content {
  padding: 0 24px 24px;
  color: #555;
}
.faq-answer-content p {
  margin-bottom: 12px;
}
.faq-answer-content ul {
  margin: 12px 0 12px 20px;
}
.faq-answer-content li {
  margin-bottom: 6px;
}
.faq-answer-content a {
  color: #1d3557;
}

/* Still Need Help section */
.still-need-help {
  background: linear-gradient(135deg, #e8eaed 0%, #e0f7fa 100%);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  margin-top: 60px;
}
.still-need-help h2 {
  color: #1d3557;
  margin-bottom: 12px;
}
.still-need-help p {
  color: #555;
  margin-bottom: 24px;
}
.help-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page-specific button overrides (larger padding, rounded) */
.btn-primary {
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-secondary {
  display: inline-block;
  background: white;
  color: #1d3557;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid #1d3557;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: #1d3557;
  color: white;
}

/* Active nav link */
.nav-active {
  color: #1d3557;
}

/* Dark footer override */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0;
  text-align: center;
  margin-top: 60px;
  border-top: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .faq-question {
    padding: 16px 18px;
    font-size: 0.95rem;
  }
  .still-need-help {
    padding: 32px 20px;
  }
}
