/* style/faq.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --border-color: #e0e0e0;
  --bg-dark: #0a0a0a; /* Body background from shared.css */
}

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light-bg);
  background-color: var(--bg-dark); /* Ensure overall page has dark background */
}

/* Top padding for fixed header */
.page-faq__hero-faq-section {
  padding-top: 120px; /* Desktop: Adjust for fixed header */
}

/* HERO FAQ Section */
.page-faq__hero-faq-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), #0056b3); /* Darker blue gradient for contrast */
  color: var(--text-color-dark-bg);
}

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

.page-faq__hero-faq-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-dark-bg);
}

.page-faq__hero-faq-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-color-dark-bg);
  opacity: 0.9;
}

.page-faq__hero-faq-description .highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-faq__hero-faq-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-color-light-bg); /* Gold button with dark text */
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__hero-faq-button:hover {
  background: #e0a800;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 20px;
  background-color: #f8f9fa; /* Light background for FAQ content */
  color: var(--text-color-light-bg);
}

.page-faq__faq-list-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-faq__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-faq__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-color-light-bg);
}

.page-faq__section-description .highlight {
  color: var(--primary-color);
  font-weight: bold;
}

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

.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: #f9f9f9;
  color: var(--text-color-light-bg);
  font-size: 16px;
}

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

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

.page-faq__faq-answer h4 {
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

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

.page-faq__faq-answer ul {
  list-style-type: disc;
}

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

.page-faq__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-faq__faq-answer .highlight {
  color: #0056b3;
  font-weight: bold;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid var(--border-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: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color-light-bg);
  pointer-events: none; /* Prevent h3 from interfering with click event on parent */
}

.page-faq__faq-toggle {
  font-size: 28px; /* Slightly larger for better visibility */
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Use primary color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent span from interfering with click event on parent */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Increased size */
  height: 32px; /* Increased size */
  border-radius: 50%;
  border: 1px solid var(--primary-color);
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: #ffffff; /* White toggle on active */
  background-color: var(--primary-color); /* Primary color background on active */
  border-color: var(--primary-color);
  transform: rotate(45deg); /* Rotate to form an X or minus sign */
}

/* CTA Section */
.page-faq__cta-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #0056b3, var(--primary-color)); /* Darker blue gradient for contrast */
  color: var(--text-color-dark-bg);
}

.page-faq__cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-faq__cta-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
}

.page-faq__cta-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--text-color-dark-bg);
  opacity: 0.9;
}

.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-description .highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.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: 16px 35px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary {
  background: var(--secondary-color);
  color: var(--text-color-light-bg); /* Gold button with dark text */
  border: 2px solid var(--secondary-color);
}

.page-faq__btn-primary:hover {
  background: #e0a800;
  border-color: #e0a800;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-faq__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-faq-title {
    font-size: 38px;
  }
  .page-faq__section-title {
    font-size: 32px;
  }
  .page-faq__cta-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-faq-section {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
  }
  .page-faq__hero-faq-title {
    font-size: 32px;
  }
  .page-faq__hero-faq-description {
    font-size: 16px;
  }
  .page-faq__hero-faq-button {
    padding: 12px 30px;
    font-size: 18px;
  }

  .page-faq__faq-list-section {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 28px;
  }
  .page-faq__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .page-faq__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-faq__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-faq__faq-answer {
    padding: 0 15px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px !important;
  }
  .page-faq__faq-answer p,
  .page-faq__faq-answer li {
    font-size: 15px;
  }
  .page-faq__faq-answer h4 {
    font-size: 18px;
  }

  .page-faq__cta-section {
    padding: 60px 15px;
  }
  .page-faq__cta-title {
    font-size: 28px;
  }
  .page-faq__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100%;
    max-width: 300px; /* Limit width on mobile for better aesthetics */
    margin: 0 auto;
    padding: 14px 25px;
    font-size: 16px;
  }
  
  /* Ensure all images are responsive */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-faq-container,
  .page-faq__faq-list-container,
  .page-faq__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}