/* style/faq.css */
:root {
  --primary-color: #0A246A;
  --secondary-color: #F3C72B;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000000; /* Body background from shared.css */
  --bg-light-section: #f8f8f8;
  --border-color: #e0e0e0;
}

/* Reset & Base Styles for .page-faq scope */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure main content area respects body background */
  padding-top: 10px; /* Account for fixed header on desktop */
}

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

/* Hero Section */
.page-faq__hero-section {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__main-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-faq__description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-faq__cta-button:hover {
  background: darken(var(--secondary-color), 10%); /* Example: slightly darker on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-faq__cta-button--secondary:hover {
  background: darken(var(--primary-color), 10%);
  border-color: var(--text-light);
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 0;
  background: var(--bg-light-section);
  color: var(--text-dark);
}

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

.page-faq__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

.page-faq__faq-category {
  margin-bottom: 40px;
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__category-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 25px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
}

/* FAQ Item Styles */
.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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;
}

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

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: var(--primary-color);
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

.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;
  color: var(--text-dark);
  background: #f9f9f9;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Sufficiently large max-height */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 5px 5px;
}

.page-faq__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

/* Bottom CTA Section */
.page-faq__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-light-section);
  color: var(--text-dark);
}

.page-faq__cta-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-faq__cta-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

.page-faq__cta-button--large {
  padding: 18px 45px;
  font-size: 20px;
  background: var(--secondary-color);
  color: var(--text-dark);
}

.page-faq__cta-button--large:hover {
  background: darken(var(--secondary-color), 10%);
}

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

@media (max-width: 768px) {
  .page-faq {
    padding-top: 10px !important; /* Mobile fixed header adjustment */
  }
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__hero-section {
    padding: 60px 0 40px;
  }
  .page-faq__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-faq__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__faq-section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-faq__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-faq__faq-category {
    padding: 20px;
    margin-bottom: 30px;
  }
  .page-faq__category-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-question h3 {
    font-size: 15px;
  }
  .page-faq__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 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 {
    font-size: 14px;
  }
  .page-faq__cta-bottom-section {
    padding: 60px 0;
  }
  .page-faq__cta-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-faq__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-faq__cta-button--large {
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px 30px;
    font-size: 18px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  /* Image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !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;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 28px;
  }
  .page-faq__section-title {
    font-size: 24px;
  }
  .page-faq__category-title {
    font-size: 18px;
  }
  .page-faq__cta-title {
    font-size: 24px;
  }
  .page-faq__cta-button {
    font-size: 15px;
  }
  .page-faq__cta-button--large {
    font-size: 16px;
  }
}