/* style/faq.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a;
  --background-light: #f1f3f5;
  --border-color: #e0e0e0;
}

.page-faq {
  color: var(--text-light); /* Body background is dark, so default text is light */
  background-color: var(--background-dark);
  min-height: 100vh;
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

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

.page-faq__intro-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-faq__main-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 18px;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-light);
}

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

.page-faq__intro-text a:hover {
  color: #fff;
  text-decoration: underline;
}

.page-faq__faq-section {
  padding: 60px 0;
  background-color: var(--primary-color); /* Dark section for FAQ */
  color: var(--text-light);
}

.page-faq__section-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  color: var(--secondary-color);
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: #1a3a7c; /* Slightly lighter dark background for item */
}

.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.05); /* Very subtle light background for answer */
  color: var(--text-light);
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Sufficiently large value */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.page-faq__faq-answer a:hover {
  color: #fff;
  text-decoration: underline;
}

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

.page-faq__faq-question:hover {
  background: #1a3a7c;
  border-color: #1a3a7c;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light);
}

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

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: #fff;
  transform: rotate(45deg); /* Rotate for minus sign */
  border-color: #fff;
  background-color: var(--secondary-color);
}

.page-faq__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-faq__image--full-width {
  width: 100%;
}

.page-faq__image--small {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__call-to-action-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-faq__call-to-action-content {
  max-width: 800px;
}

.page-faq__call-to-action-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-faq__call-to-action-text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

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

.page-faq__call-to-action-text a:hover {
  color: #fff;
  text-decoration: underline;
}

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

.page-faq__cta-button:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-faq__main-title {
    font-size: 32px;
  }
  .page-faq__section-title {
    font-size: 28px;
  }
  .page-faq__faq-question h3 {
    font-size: 17px;
  }
  .page-faq__intro-text, .page-faq__faq-answer p {
    font-size: 16px;
  }
  .page-faq__call-to-action-title {
    font-size: 30px;
  }
  .page-faq__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-faq__intro-section, .page-faq__faq-section, .page-faq__call-to-action-section {
    padding: 40px 0;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__main-title {
    font-size: 28px;
  }
  .page-faq__section-title {
    font-size: 24px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .page-faq__faq-question h3 {
    font-size: 15px;
    width: calc(100% - 40px);
  }
  .page-faq__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px !important;
  }
  .page-faq__faq-answer p {
    font-size: 15px;
  }
  .page-faq__call-to-action-title {
    font-size: 26px;
  }
  .page-faq__call-to-action-text {
    font-size: 16px;
  }
  .page-faq__cta-button {
    padding: 10px 25px;
    font-size: 15px;
  }
  .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;
  }
}