.page-faq {
  background-color: var(--dark-bg-1);
  color: #f0f0f0;
  font-family: 'Arial', sans-serif;
}

.page-faq__hero-banner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-faq__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-faq__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 800px;
  color: #ffffff;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.page-faq__main-title {
  font-size: 48px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--primary-color);
}

.page-faq__cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--secondary-color);
}

.page-faq__cta-button--secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-faq__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

.page-faq__cta-button--small {
  padding: 10px 20px;
  font-size: 15px;
  margin-top: 15px;
  border-radius: 5px;
}

.page-faq__cta-button--large {
  padding: 18px 45px;
  font-size: 20px;
  border-radius: 10px;
}

.page-faq__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--dark-bg-1);
}

.page-faq__section--intro {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  padding: 40px;
}

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

.page-faq__container--large {
  max-width: 1200px;
}

.page-faq__section-title {
  font-size: 36px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-faq__section-description {
  font-size: 17px;
  line-height: 1.8;
  color: #e0e0e0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-faq__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-faq__link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-faq__faq-list {
  margin-top: 40px;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.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;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: #1a1a1a; /* Slightly lighter dark background */
  border-radius: 0 0 10px 10px;
  color: #e0e0e0;
  line-height: 1.7;
  text-align: justify;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--primary-color);
  border: 1px solid #0A2463;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-question:hover {
  background: #0C2E77; /* Slightly darker primary color */
  border-color: #0A2463;
}

.page-faq__faq-question:active {
  background: #091F50;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Allow click on parent div */
}

.page-faq__faq-toggle {
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-faq__section--conclusion {
  text-align: center;
  padding: 80px 20px;
  background-color: #1a1a1a;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__action-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 42px;
  }
  .page-faq__subtitle {
    font-size: 18px;
  }
  .page-faq__section-title {
    font-size: 32px;
  }
  .page-faq__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-banner {
    padding-top: 140px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
  }
  .page-faq__hero-content {
    width: 95%;
    padding: 15px;
  }
  .page-faq__main-title {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .page-faq__subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-faq__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 15px;
  }
  .page-faq__section {
    padding: 30px 15px;
  }
  .page-faq__section--intro {
    padding: 25px;
    margin-top: 20px;
  }
  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }
  .page-faq__section-description {
    font-size: 15px;
    margin-bottom: 15px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__faq-question h3 {
    font-size: 16px;
  }
  .page-faq__faq-toggle {
    font-size: 26px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px !important;
  }
  .page-faq__faq-answer p {
    font-size: 15px;
  }
  .page-faq__action-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__cta-button--large {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 28px;
  }
  .page-faq__subtitle {
    font-size: 14px;
  }
  .page-faq__section-title {
    font-size: 24px;
  }
  .page-faq__faq-question h3 {
    font-size: 15px;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  .page-faq__cta-button {
    font-size: 14px;
    padding: 10px 20px;
  }
  .page-faq__action-buttons {
    gap: 10px;
  }
}

/* Global image responsive styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-faq__section,
.page-faq__card,
.page-faq__container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color Contrast Fixes */
.page-faq__dark-bg {
  color: #ffffff; /* Deep blue background with white text */
  background: var(--primary-color);
}

.page-faq__light-bg {
  color: #333333; /* White background with dark grey text */
  background: #ffffff;
}

.page-faq__medium-bg {
  color: #333333; /* Gold background with dark grey text */
  background: var(--secondary-color);
}

.page-faq__content-area, .page-faq__text-block {
  color: #e0e0e0; /* Default text color for dark background */
  background: transparent;
}

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

.page-faq__card {
  background: #1a1a1a; /* Dark background for cards */
  color: #e0e0e0;
  border: 1px solid #333333;
}

.page-faq__dark-section {
  background: var(--primary-color);
  color: #ffffff;
}

.page-faq__btn-primary {
  background: var(--primary-color);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-faq__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-faq__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}