/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Ensures a consistent background for the page content */
  padding-top: var(--header-offset, 120px); /* Space for fixed header */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text for dark hero background */
  position: relative;
  overflow: hidden;
}

.page-faq__hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-faq__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  border: 2px solid transparent;
}

.page-faq__button--primary {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border-color: #FFFFFF;
}

.page-faq__button--primary:hover {
  background-color: #f0f0f0;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.page-faq__button--secondary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border-color: #FCBC45;
}

.page-faq__button--secondary:hover {
  background-color: #e0a53b;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(252, 188, 69, 0.3);
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Slightly transparent to let content stand out */
}

.page-faq__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Section Titles */
.page-faq__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

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

/* FAQ Categories Section */
.page-faq__categories-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-faq__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-faq__category-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-faq__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-faq__category-card img {
  width: 100%; /* Ensure images are not small icons */
  max-width: 250px; /* Max width to keep them proportional in card */
  height: auto;
  min-height: 200px; /* Enforce minimum height */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-faq__category-title {
  font-size: 1.5em;
  margin: 0;
  color: #000000;
}

/* FAQ List Section (Accordion) */
.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-faq__accordion {
  margin-top: 40px;
}

.page-faq__accordion-item {
  background-color: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-faq__accordion-header h3 {
  margin: 0;
  color: #FFFFFF;
  font-size: 1em; /* Adjust to fit button, as button is already font-size 1.3em */
}

.page-faq__accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

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

.page-faq__accordion-icon::before {
  width: 100%;
  height: 2px;
}

.page-faq__accordion-icon::after {
  width: 2px;
  height: 100%;
}

.page-faq__accordion-header.active .page-faq__accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg); /* Rotate to hide vertical bar */
}

.page-faq__accordion-content {
  padding: 0 30px;
  background-color: #fcfcfc;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-faq__accordion-content.active {
  max-height: 500px; /* Adjust as needed for content length */
  padding: 20px 30px;
}

.page-faq__accordion-content p {
  margin-bottom: 15px;
  color: #555555;
}

.page-faq__text-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, background-color 0.3s ease;
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #FCBC45;
  border-radius: 5px;
  background-color: transparent;
  margin-top: 10px;
}

.page-faq__text-link:hover {
  color: #000000;
  background-color: #FCBC45;
}


/* Contact Section */
.page-faq__contact-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background for contact */
  color: #FFFFFF; /* Light text */
  text-align: center;
}

.page-faq__contact-section .page-faq__section-title {
  color: #FFFFFF;
}

.page-faq__contact-section .page-faq__section-title::after {
  background-color: #FFFFFF; /* White line for dark background */
}

.page-faq__contact-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

/* 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: 2em;
  }
}

@media (max-width: 768px) {
  /* Mobile content overflow prevention */
  .page-faq img {
    max-width: 100%;
    height: auto;
  }

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

  .page-faq__hero-title {
    font-size: 2.2em;
  }

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

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

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

  .page-faq__categories-grid {
    grid-template-columns: 1fr;
  }

  .page-faq__category-card img {
    max-width: 100%; /* Ensure category images scale down */
  }

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

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

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

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }

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

  .page-faq__accordion-header {
    font-size: 1em;
  }
}