/* style/faq.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #EEEEEE;
  --bg-dark: #1A1A1A;
  --bg-light: #F8F8F8;
  --border-color: #444444;
  --accent-gold-light: #FFEB3B;
}

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

.page-faq .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.page-faq .hero-faq-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  padding: 80px 20px;
  text-align: center;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-faq .hero-container {
  position: relative;
  z-index: 2;
}

.page-faq .hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-faq .hero-subtitle {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-faq .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--primary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-faq .cta-button:hover {
  background-color: var(--accent-gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-faq .introduction-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
}

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

.page-faq .section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #CCCCCC;
}

.page-faq .intro-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  margin-top: 20px;
}

/* FAQ Section */
.page-faq .faq-section {
  padding: 60px 0;
  background-color: #222222;
}

.page-faq .faq-list {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #333333;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
  background: #444444;
  color: var(--accent-gold-light);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: inherit; /* Inherit color from parent for hover effect */
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background: #2A2A2A;
  color: var(--text-light);
  border-radius: 0 0 8px 8px;
}

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

.faq-answer p {
  margin-bottom: 15px;
  color: #CCCCCC;
}

.faq-answer ul {
  list-style-type: disc;
  margin-left: 25px;
  padding-left: 0;
  color: #CCCCCC;
}

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

.faq-answer strong {
  color: var(--primary-color);
}

.page-faq .button-link {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-faq .button-link:hover {
  background-color: var(--accent-gold-light);
  transform: translateY(-2px);
}

.page-faq .content-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.page-faq .cta-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  text-align: center;
  color: #FFFFFF;
}

.page-faq .cta-section .section-title {
  color: var(--primary-color);
  font-size: 2.8em;
  margin-bottom: 25px;
}

.page-faq .cta-section .section-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq .cta-section .cta-button.primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  margin-right: 20px;
}

.page-faq .cta-section .cta-button.primary:hover {
  background-color: var(--accent-gold-light);
  color: var(--secondary-color);
}

.page-faq .cta-section .cta-button.secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.page-faq .cta-section .cta-button.secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq .hero-title {
    font-size: 3em;
  }
  .page-faq .hero-subtitle {
    font-size: 1.3em;
  }
  .page-faq .section-title {
    font-size: 2.2em;
  }
  .page-faq .cta-section .section-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-faq .hero-faq-section {
    padding: 60px 15px;
  }
  .page-faq .hero-title {
    font-size: 2.5em;
  }
  .page-faq .hero-subtitle {
    font-size: 1.1em;
  }
  .page-faq .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-faq .introduction-section, .page-faq .faq-section, .page-faq .cta-section {
    padding: 40px 0;
  }
  .page-faq .section-title {
    font-size: 1.8em;
  }
  .faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .faq-question h3 {
    font-size: 1.1em;
    margin-bottom: 5px; /* Add some space if wraps */
    width: calc(100% - 30px);
  }
  .faq-toggle {
    font-size: 20px;
    margin-top: 5px;
  }
  .faq-answer {
    padding: 15px;
  }
  .page-faq .cta-section .cta-button {
    margin-right: 0;
    margin-bottom: 15px;
    width: 90%;
    max-width: 300px;
  }
  .page-faq .cta-section .cta-button.primary {
    margin-bottom: 15px;
  }
  .page-faq .cta-section .cta-button.secondary {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .page-faq .hero-title {
    font-size: 2em;
  }
  .page-faq .hero-subtitle {
    font-size: 1em;
  }
  .page-faq .section-title {
    font-size: 1.5em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .page-faq .cta-section .section-title {
    font-size: 2em;
  }
}