/* FAQ & Terms specific styles */
.faq-hero {
  height: 60vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), transparent), url('../media/LargeBoard.PNG') no-repeat center;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fcf9f2;
  position: relative;
}

.faq-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

/* Define the animation */
@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%); /* Start off-screen above */
    opacity: 0;
  }
  100% {
    transform: translateY(0); /* End at its natural position */
    opacity: 1;
  }
}

.faq-content {
  background: rgba(252, 249, 242, 0.80);
  padding: 30px 20px;
  max-width: 750px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  animation: slideInFromTop 1s ease-out forwards;
}

.faq-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: #333;
  line-height: 1.3;
}

.faq-hero p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.8;
  font-weight: 300;
  text-align: center;
}

.faq-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background: #fcf9f2;
}

.page-navigation {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 20px;
}

.nav-tab {
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  background: none;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-tab.active {
  color: #333;
  border-bottom-color: #ba9f38;
}

.nav-tab:hover {
  color: #333;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.section-title {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 400;
}

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

.category-title {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e1cc96;
  font-weight: 500;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  background: #fff;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  background: #fcf9f2;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  font-family: 'Georgia', serif;
}

.faq-question:hover {
  background: #f8f6f3;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #e1cc96;
}

.faq-answer.active {
  padding: 20px;
  max-height: 500px;
}

.faq-answer p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}

.faq-answer ul {
  color: #333;
  margin-left: 20px;
  margin-bottom: 15px;
}

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

.terms-content {
  background: #fff;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.terms-section {
  margin-bottom: 40px;
}

.terms-section h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.terms-section p {
  color: #333;
  line-height: 1.7;
  margin-bottom: 15px;
}

.terms-section ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.terms-section li {
  color: #333;
  margin-bottom: 8px;
  line-height: 1.6;
}

.highlight-box {
  background: #e1cc96;
  padding: 20px;
  margin: 20px 0;
}

.highlight-box p {
  color: #333;
  font-weight: 500;
  margin: 0;
}

.contact-info {
  background: #fcf9f2;
  padding: 30px;
  text-align: center;
  margin-top: 40px;
}

.contact-info h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.contact-info p {
  color: #666;
  margin-bottom: 10px;
}

.contact-info a {
  color: #ba9f38;
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .page-navigation {
      gap: 15px;
      align-items: center;
      margin-bottom: 40px;
      padding-bottom: 15px;
  }

  .nav-tab {
    padding: 10px 12px; /* Reduce padding */
    font-size: 0.75rem; /* Smaller font size */
    letter-spacing: 0.5px; /* Reduce letter spacing */
    flex: 1; /* Make tabs equal width */
    text-align: center;
    min-width: 0; /* Allow text to wrap if needed */
  }

  .faq-container {
      padding: 40px 15px;
  }

  .section-title {
      font-size: 1.8rem;
  }

  .category-title {
      font-size: 1.2rem;
  }

  .faq-question {
      font-size: 1rem;
      padding: 15px;
  }

  .terms-content {
      padding: 25px;
  }
}