/* style/faq.css */

:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000000;
  --bg-light: #f9f9f9;
  --border-color: #e0e0e0;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-faq {
  color: var(--text-light); /* Light text on dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background: var(--bg-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%;
  margin-bottom: 30px;
}

.page-faq__hero-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

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

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

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-list-section {
  padding: 60px 20px;
  background: var(--bg-light);
  color: var(--text-dark);
}

.page-faq__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-align: center;
}

.page-faq__section-description {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 40px;
  text-align: center;
}

.page-faq__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

/* FAQ Item Styles */
.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-question:hover {
  background: var(--bg-light);
  border-color: #d0d0d0;
}

.page-faq__faq-question:active {
  background: #eeeeee;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Visually change '+' to 'x' or similar */
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 20px;
  opacity: 0;
  background: var(--bg-light);
  color: var(--text-dark);
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px !important;
  opacity: 1;
  background: var(--bg-light);
  border-radius: 0 0 8px 8px;
}

.page-faq__faq-answer p {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 10px;
}

.page-faq__faq-answer li {
  margin-bottom: 5px;
}

.page-faq__link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Contact CTA Section */
.page-faq__contact-cta-section {
  padding: 80px 20px;
  text-align: center;
  background: var(--bg-dark);
  color: var(--text-light);
}

.page-faq__contact-cta-section .page-faq__section-title {
  color: var(--primary-color);
}

.page-faq__contact-cta-section .page-faq__section-description {
  color: var(--text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.page-faq__btn-primary {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
}

.page-faq__btn-primary:hover {
  background: var(--secondary-color);
}

.page-faq__btn-secondary {
  background: #ffffff;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-faq__btn-secondary:hover {
  background: var(--secondary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 38px;
  }
  .page-faq__section-title {
    font-size: 32px;
  }
  .page-faq__hero-description, .page-faq__section-description {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 140px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-img {
    border-radius: 4px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__hero-container,
  .page-faq__faq-list-section .page-faq__container,
  .page-faq__contact-cta-section .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__main-title {
    font-size: 32px;
  }

  .page-faq__hero-description {
    font-size: 16px;
  }

  .page-faq__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-faq__faq-list-section {
    padding: 40px 15px;
  }

  .page-faq__section-title {
    font-size: 28px;
  }

  .page-faq__section-description {
    font-size: 16px;
  }

  .page-faq__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }

  .page-faq__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

  .page-faq__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }

  .page-faq__faq-answer {
    padding: 0 15px;
  }

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px !important;
  }
  
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__contact-cta-section {
    padding: 60px 15px;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 28px;
  }
  .page-faq__section-title {
    font-size: 24px;
  }
  .page-faq__hero-description, .page-faq__section-description {
    font-size: 15px;
  }
  .page-faq__faq-question h3 {
    font-size: 15px;
  }
  .page-faq__faq-answer p, .page-faq__faq-answer li {
    font-size: 14px;
  }
}