/* style/faq.css */

/* Base Styles */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from shared.css body background */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background: linear-gradient(135deg, #336699, #1a334d);
  color: #ffffff;
}

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

.page-faq__description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  margin: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #FFCC00;
  color: #333333;
  border: 2px solid #FFCC00;
}

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-faq__btn-secondary:hover {
  background-color: #FFCC00;
  color: #333333;
}

/* Content Area */
.page-faq__content-area {
  padding: 60px 0;
  background-color: #f0f2f5; /* Light background for content */
  color: #333333; /* Dark text for light background */
}

.page-faq__section-title {
  font-size: 2.2em;
  color: #336699;
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* FAQ List */
.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #336699;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-question h3 {
  margin: 0;
  color: inherit; /* Ensure h3 color is inherited from parent */
}

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

.page-faq__faq-item.active .page-faq__faq-question {
  background-color: #2a547a;
}

.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: #333333;
  background-color: #fcfcfc;
}

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

.page-faq__faq-answer p {
  margin-bottom: 15px;
  color: #333333; /* Ensure text color is dark on light background */
}

.page-faq__faq-answer img.page-faq__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px 0;
  border-radius: 5px;
}

/* CTA Section */
.page-faq__cta-section {
  text-align: center;
  padding: 50px 30px;
  margin-top: 50px;
  border-radius: 8px;
  background: #336699;
  color: #ffffff;
}

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

.page-faq__cta-text {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 30px auto;
}

/* Image styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover; /* Ensures images cover their area without distortion */
}

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

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

  .page-faq__description,
  .page-faq__intro-text,
  .page-faq__cta-text {
    font-size: 1em;
  }

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

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

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    margin: 10px 0;
    padding: 12px 15px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__cta-section .page-faq__btn-primary,
  .page-faq__cta-section .page-faq__btn-secondary {
    display: block;
  }

  /* Ensure all content containers are responsive */
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__faq-list,
  .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;
  }

  /* Image responsiveness for mobile */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}