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

.page-faq {
  color: var(--text-on-dark); /* Body background is dark #0a0a0a */
  background-color: var(--background-dark);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Default padding for fixed header */
}

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

.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop padding-top to clear fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a7a 100%);
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 160px !important; /* Mobile override for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

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

.page-faq__hero-image {
  width: 100%;
  max-width: 800px; /* Limit image width to prevent it from being too wide */
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .page-faq__hero-image {
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

.page-faq__hero-content {
  text-align: center;
  color: var(--text-on-dark);
  max-width: 900px;
}

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

@media (max-width: 768px) {
  .page-faq__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-on-dark);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
}

.page-faq__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: linear-gradient(135deg, var(--secondary-color), #ffcc00);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.4em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
}

.page-faq__cta-button:hover {
  background: linear-gradient(135deg, #ffcc00, var(--secondary-color));
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .page-faq__cta-button {
    padding: 15px 35px;
    font-size: 1.2em;
  }
}

.page-faq__section {
  padding: 50px 20px;
  background-color: var(--background-dark);
  color: var(--text-on-dark);
}

.page-faq__section--intro {
  background-color: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

@media (max-width: 768px) {
  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

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

@media (max-width: 768px) {
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
}

.page-faq__intro-text {
  font-size: 1.1em;
  text-align: justify;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .page-faq__intro-text {
    font-size: 1em;
  }
}

/* FAQ Specific Styles */
.page-faq__container--faq {
  max-width: 900px;
}

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

.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 20px;
  opacity: 0;
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.85);
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-faq__faq-answer p {
  margin-bottom: 1em;
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 20px;
  margin-bottom: 1em;
}

.page-faq__faq-answer li {
  margin-bottom: 0.5em;
}

.page-faq__faq-answer h4 {
  color: var(--secondary-color);
  font-size: 1.2em;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.page-faq__faq-answer a {
  color: var(--secondary-color);
  text-decoration: none;
  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: 18px 25px;
  background: var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-question:hover {
  background: #1a3a7a;
}

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

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-on-dark);
  pointer-events: none; /* Allow click on entire question div */
}

@media (max-width: 768px) {
  .page-faq__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-faq__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
}

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

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Rotates the '+' to 'x' or similar effect */
}

@media (max-width: 768px) {
  .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 !important;
  }
}

/* CTA Bottom Section */
.page-faq__section--cta-bottom {
  padding: 80px 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  text-align: center;
}

.page-faq__container--cta-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
}

.page-faq__cta-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .page-faq__cta-image {
    margin-bottom: 30px;
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

.page-faq__cta-content {
  color: var(--text-on-dark);
}

.page-faq__cta-title {
  font-size: 2.8em;
  color: var(--secondary-color);
  margin-bottom: 25px;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .page-faq__cta-title {
    font-size: 2em;
    margin-bottom: 20px;
  }
}

.page-faq__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .page-faq__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
}

.page-faq__cta-description a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-faq__cta-description a:hover {
  text-decoration: underline;
}

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

@media (max-width: 768px) {
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 16px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-faq__btn-primary {
  background: linear-gradient(135deg, var(--secondary-color), #ffcc00);
  color: var(--primary-color);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(135deg, #ffcc00, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

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

@media (max-width: 768px) {
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    font-size: 1em;
    padding: 14px 25px;
    box-sizing: border-box;
  }
}

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

@media (max-width: 768px) {
  .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;
  }
}