/* style/faq.css */

/* General Page Styles */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background: var(--dark-bg-1);
}

.page-faq__section--spacing {
  padding-top: 120px; /* Spacing for fixed header on desktop */
}

/* Hero Section */
.page-faq__hero-section {
  background: linear-gradient(135deg, #0A2463, #E0B14A);
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

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

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-faq__hero-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__hero-link:hover {
  color: #E0B14A;
}

/* Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: var(--dark-bg-1);
  color: #f0f0f0;
}

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

.page-faq__section-title {
  font-size: 2.5em;
  color: #E0B14A;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #cccccc;
}

.page-faq__text-link {
  color: #E0B14A;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__text-link:hover {
  color: #ffd700;
}

/* FAQ Section */
.page-faq__faq-list {
  margin-top: 30px;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for items */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #0A2463; /* Main brand color for question header */
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  border-bottom: 1px solid transparent; /* To prevent double border on active */
}

.page-faq__faq-item.active .page-faq__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-faq__faq-question:hover {
  background: #1a3a7c; /* Darker hover state */
}

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

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #E0B14A;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Change + to X or - */
}

.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.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.08); /* Lighter background for answer */
  color: #e0e0e0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Use!important and large value to ensure expansion */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 20px;
  margin-bottom: 15px;
  list-style-type: disc;
}

.page-faq__faq-answer ol {
  list-style-type: decimal;
}

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

.page-faq__faq-answer h4 {
  color: #E0B14A;
  font-size: 1.2em;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* Call to Action Section */
.page-faq__cta-section {
  background: #0A2463;
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.page-faq__cta-title {
  font-size: 2.8em;
  color: #E0B14A;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-faq__cta-link {
  color: #E0B14A;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__cta-link:hover {
  color: #ffd700;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary {
  background: #E0B14A;
  color: #0A2463;
  border-color: #E0B14A;
}

.page-faq__btn-primary:hover {
  background: #ffd700;
  border-color: #ffd700;
  transform: translateY(-3px);
}

.page-faq__btn-secondary {
  background: transparent;
  color: #E0B14A;
  border-color: #E0B14A;
}

.page-faq__btn-secondary:hover {
  background: #E0B14A;
  color: #0A2463;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.8em;
  }

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

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

@media (max-width: 768px) {
  .page-faq__section--spacing {
    padding-top: 100px !important; /* Spacing for fixed header on mobile */
  }

  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

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

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

  .page-faq__section-intro {
    font-size: 0.95em;
  }

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

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

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

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

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

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

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

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    font-size: 1em;
    padding: 12px 25px;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__section,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure contrast for text on various backgrounds */
.page-faq p,
.page-faq li {
  color: #e0e0e0;
}

.page-faq__faq-answer p,
.page-faq__faq-answer li {
  color: #e0e0e0;
}

/* Buttons and links should have defined colors for contrast */
.page-faq__btn-primary {
  color: #0A2463;
}

.page-faq__btn-secondary {
  color: #E0B14A;
}

.page-faq__btn-secondary:hover {
  color: #0A2463;
}