/* style/faq.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #222222;
  --border-color: #e0e0e0;
}

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

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

/* Hero Section */
.page-faq-hero {
  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);
  color: var(--text-light);
}

.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: 450px; /* Adjusted for better visual balance */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-faq-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-faq-cta-button:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(139, 0, 0, 0.5);
}

/* General Section Styling */
.page-faq-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-faq-section:nth-of-type(even) {
  background-color: #ffffff;
}

.page-faq-section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

.page-faq-section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-faq-section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--text-dark);
}

.page-faq-section-description a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-faq-section-description a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* FAQ Categories */
.page-faq-category {
  margin-bottom: 50px;
}

.page-faq-category-title {
  font-size: 2em;
  color: var(--secondary-color);
  margin-bottom: 30px;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 10px;
  text-align: left;
  font-weight: bold;
}

/* FAQ Item Styling */
.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  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: 18px 25px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: var(--background-light);
}

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

.faq-toggle {
  font-size: 1.8em;
  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(--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: var(--background-light);
}

.faq-item.active .faq-answer {
  max-height: 1000px; /* Sufficient height to accommodate content */
  padding: 25px;
}

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

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

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

.faq-answer ol,
.faq-answer ul {
  margin-left: 25px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

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

.faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.faq-answer a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.page-faq-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Conclusion Section */
.page-faq-conclusion {
  background-color: var(--background-dark);
  color: var(--text-light);
  text-align: center;
  padding: 80px 20px;
}

.page-faq-conclusion .page-faq-section-title {
  color: var(--primary-color);
}

.page-faq-conclusion .page-faq-section-title::after {
  background-color: var(--text-light);
}

.page-faq-conclusion .page-faq-section-description {
  color: var(--text-light);
  margin-bottom: 40px;
}

.page-faq-conclusion .page-faq-cta-button {
  background: var(--primary-color);
  color: var(--text-dark);
  border-color: var(--primary-color);
}

.page-faq-conclusion .page-faq-cta-button:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  border-color: var(--secondary-color);
}

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

@media (max-width: 768px) {
  .page-faq-hero {
    padding: 40px 15px;
  }
  .page-faq-hero-title {
    font-size: 2.2em;
  }
  .page-faq-hero-description {
    font-size: 1em;
  }
  .page-faq-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-faq-section {
    padding: 40px 0;
  }
  .page-faq-section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq-category-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 20px;
  }
  .page-faq-image {
    margin: 15px auto;
  }
  .page-faq-conclusion {
    padding: 60px 15px;
  }
}

@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.5em;
  }
  .page-faq-category-title {
    font-size: 1.4em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 1.2em;
  }
}