/* style/faq.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #071a40;
  --border-color: #e0e0e0;
}

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

/* Hero Section */
.page-faq .hero-faq {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--background-dark);
  overflow: hidden;
}

.page-faq .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-faq .hero-image {
  width: 100%;
  height: auto;
  max-height: 400px; /* Limit height for aesthetic */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
  filter: brightness(0.8); /* Slightly darken image for text contrast, not changing color */
}

.page-faq .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light);
}

.page-faq .hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq .hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-faq .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq .cta-button:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-faq .faq-section {
  padding: 80px 20px;
  background-color: var(--background-light);
}

.page-faq .container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-faq .section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq .section-description {
  font-size: 1.1em;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 10px 10px 0 0;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: var(--text-light);
  font-weight: 600;
}

.faq-question:hover {
  background-color: #081d4a;
}

.faq-toggle {
  font-size: 2em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
  line-height: 1;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background-color: #fcfcfc;
  color: var(--text-dark);
}

.faq-item.active .faq-answer {
  max-height: 600px; /* Sufficient height to contain content */
  padding: 25px;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--text-dark);
}

.page-faq .faq-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-faq .faq-button:hover {
  background: #e6c200;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Call to Action Section */
.page-faq .cta-section {
  background: linear-gradient(135deg, var(--primary-color), #0A2463CC);
  padding: 80px 20px;
  text-align: center;
  color: var(--text-light);
}

.page-faq .cta-content {
  max-width: 800px;
}

.page-faq .cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-faq .cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-faq .cta-button.primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 18px 50px;
  font-size: 1.3em;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq .cta-button.primary:hover {
  background: #e6c200;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq .hero-title {
    font-size: 2.8em;
  }
  .page-faq .hero-description {
    font-size: 1.1em;
  }
  .page-faq .section-title {
    font-size: 2.2em;
  }
  .faq-question h3 {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-faq .hero-faq {
    padding: 40px 15px;
  }
  .page-faq .hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }
  .page-faq .hero-title {
    font-size: 2.2em;
    margin-bottom: 10px;
  }
  .page-faq .hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-faq .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-faq .faq-section {
    padding: 50px 15px;
  }
  .page-faq .section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-faq .section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.8em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 20px;
  }
  .page-faq .cta-section {
    padding: 50px 15px;
  }
  .page-faq .cta-title {
    font-size: 2em;
  }
  .page-faq .cta-description {
    font-size: 1em;
  }
  .page-faq .cta-button.primary {
    padding: 15px 40px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-faq .hero-title {
    font-size: 1.8em;
  }
  .page-faq .hero-description {
    font-size: 0.9em;
  }
  .page-faq .section-title {
    font-size: 1.6em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .page-faq .cta-title {
    font-size: 1.6em;
  }
  .page-faq .cta-button {
    width: 100%;
    max-width: 280px;
  }
  .page-faq .faq-button {
    width: 100%;
    max-width: 200px;
  }
}