/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure consistency with body background */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #003366; /* Main brand color for hero background */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3; /* Subtle background image */
}

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

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 15px; /* Added padding for mobile responsiveness */
  box-sizing: border-box;
}

.page-faq__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for emphasis */
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-faq__hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #FFD700; /* Auxiliary color */
  color: #003366; /* Dark text for light background */
  border: 2px solid #FFD700;
}

.page-faq__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Auxiliary color text */
  border: 2px solid #FFD700;
}

.page-faq__btn-secondary:hover {
  background-color: #FFD700;
  color: #003366;
}

/* Content Area */
.page-faq__content-area {
  background-color: #000000; /* Dark background */
  color: #ffffff; /* Light text */
  padding: 60px 20px;
}

.page-faq__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #FFD700; /* Auxiliary color for titles */
}

.page-faq__section-title--light {
  color: #FFD700;
}

.page-faq__section-description {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

.page-faq__category-card {
  background-color: #003366; /* Main brand color */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-faq__category-icon {
  width: 100px; /* Min size 200x200px. Display at 100px, but source will be larger */
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-faq__category-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFD700; /* Auxiliary color */
}

.page-faq__category-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #f0f0f0;
}

/* FAQ List Section */
.page-faq__faq-list-section {
  background-color: #0d0d0d; /* Slightly lighter dark background */
  color: #ffffff;
  padding: 60px 20px;
}

.page-faq__faq-category {
  margin-bottom: 40px;
}

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

.page-faq__faq-item {
  background-color: #003366; /* Main brand color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: #003366;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #004488;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD700;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: #002244; /* Darker shade of main brand color */
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px;
}

.page-faq__faq-answer p {
  margin-bottom: 10px;
  line-height: 1.6;
}

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

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

/* CTA Section */
.page-faq__cta-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #003366; /* Main brand color */
  border-radius: 10px;
  margin-top: 50px;
  color: #ffffff;
}

/* General text styles */
.page-faq p, .page-faq li {
  color: #f0f0f0; /* Light text for readability on dark backgrounds */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  .page-faq__category-card {
    padding: 25px;
  }

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

  .page-faq__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px;
  }

  /* Images responsive */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__container,
  .page-faq__content-area,
  .page-faq__faq-list-section,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-faq__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__content-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}