/* style/faq.css */

/* Base styles for the FAQ page content */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Ensure content background is white as per body background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

/* Hero Section */
.page-faq__hero-section {
  background-color: #000000; /* Main color for hero background */
  color: #FFFFFF; /* White text for dark background */
  padding: 80px 20px;
  text-align: center;
}

.page-faq__hero-container {
  max-width: 960px;
  margin: 0 auto;
}

.page-faq__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-faq__intro-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-faq__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
}

.page-faq__button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-faq__button--register:hover {
  background-color: #F0F0F0;
  color: #000000;
}

.page-faq__button--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-faq__button--login:hover {
  background-color: #E0A53C;
  color: #000000;
}

/* Content Area */
.page-faq__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-faq__section-title {
  font-size: 2em;
  color: #000000;
  margin-bottom: 30px;
  text-align: center;
}

/* Accordion Styles */
.page-faq__accordion {
  margin-bottom: 40px;
}

.page-faq__accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #f9f9f9;
}

.page-faq__accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px;
  background-color: #000000; /* Dark header for contrast */
  color: #FFFFFF;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-faq__accordion-header:hover {
  background-color: #333333;
}

.page-faq__accordion-title {
  margin: 0;
  color: inherit; /* Inherit color from button */
}

.page-faq__accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.page-faq__accordion-icon::before,
.page-faq__accordion-icon::after {
  content: '';
  position: absolute;
  background-color: #FCBC45; /* Accent color for icon */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.page-faq__accordion-icon::before {
  width: 12px;
  height: 2px;
  transition: transform 0.3s ease;
}

.page-faq__accordion-icon::after {
  width: 2px;
  height: 12px;
  transition: transform 0.3s ease;
}

.page-faq__accordion-header[aria-expanded="true"] .page-faq__accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.page-faq__accordion-header[aria-expanded="true"] .page-faq__accordion-icon::before {
  transform: translate(-50%, -50%) rotate(90deg); /* Rotate horizontal line as well for a minus effect */
}

.page-faq__accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #FFFFFF;
  color: #333333;
}

.page-faq__accordion-content p {
  padding: 20px 0;
  margin: 0;
}

.page-faq__accordion-content a {
  color: #FCBC45; /* Link color */
  text-decoration: none;
  font-weight: bold;
}

.page-faq__accordion-content a:hover {
  text-decoration: underline;
}

/* Call to Action Section */
.page-faq__cta-section {
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
}

.page-faq__cta-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-faq__cta-image {
  width: 100%;
  max-width: 600px; /* Ensure image is not too small */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block; /* Ensure no extra space below image */
}

.page-faq__cta-content {
  text-align: center;
}

.page-faq__cta-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__button--contact {
  background-color: #FCBC45;
  color: #000000;
  margin-right: 15px;
  border: 2px solid #FCBC45;
}

.page-faq__button--contact:hover {
  background-color: #E0A53C;
  color: #000000;
}

.page-faq__button--register-alt {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-faq__button--register-alt:hover {
  background-color: #F0F0F0;
  color: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-faq {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }

  .page-faq__main-title {
    font-size: 2em;
  }

  .page-faq__intro-description {
    font-size: 1em;
  }

  .page-faq__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__button {
    width: 100%;
    max-width: 300px;
  }

  .page-faq__section-title {
    font-size: 1.8em;
  }

  .page-faq__accordion-header {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-faq__accordion-content p {
    padding: 15px 0;
  }

  .page-faq__cta-title {
    font-size: 1.8em;
  }

  .page-faq__cta-description {
    font-size: 1em;
  }

  .page-faq__cta-container {
    flex-direction: column;
  }

  .page-faq__cta-image {
    max-width: 100%;
    width: 100%; /* Ensure mobile images don't overflow */
    height: auto; /* Maintain aspect ratio */
  }

  /* Ensure all images within .page-faq are responsive and don't overflow */
  .page-faq img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-section {
    padding: 40px 15px;
  }

  .page-faq__content-area {
    padding: 30px 15px;
  }

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

  .page-faq__main-title {
    font-size: 1.8em;
  }

  .page-faq__section-title {
    font-size: 1.6em;
  }

  .page-faq__cta-title {
    font-size: 1.6em;
  }
}