/* style/faq.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E3B505;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --bg-dark-1: #0d0d0d; /* Assuming --dark-bg-1 from shared.css is dark */
}

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Default to light text for dark body background */
  background-color: var(--bg-dark-1);
}

/* Fixed Nav Bar Spacing for main content */
.page-faq__hero-header {
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  padding-bottom: 40px;
  background: linear-gradient(135deg, var(--primary-color), #0A2463da); /* Slightly transparent primary color */
  text-align: center;
  color: var(--text-color-light);
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.page-faq__subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.page-faq__cta-button:hover {
  background: #f0c52b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__content-section {
  padding: 60px 20px;
  background: var(--bg-dark-1);
  color: var(--text-color-light);
}

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

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

.page-faq__intro-text {
  font-size: 17px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

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

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

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

.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: rgba(255, 255, 255, 0.05);
  color: var(--text-color-light);
}

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

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

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 10px;
  list-style-type: disc;
}

.page-faq__faq-answer li {
  margin-bottom: 5px;
  font-size: 16px;
}

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

.page-faq__faq-question:hover {
  background: #0C2E77;
  border-color: #0C2E77;
}

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

.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-color-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%;
  background: rgba(255, 255, 255, 0.1);
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: var(--text-color-light);
  transform: rotate(180deg);
  background: var(--secondary-color);
}

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

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

.page-faq__cta-banner {
  background: var(--primary-color);
  border-radius: 12px;
  padding: 40px;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.page-faq__cta-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-faq__cta-text-content {
  position: relative;
  z-index: 2;
}

.page-faq__cta-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

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

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

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

/* Responsive design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 36px;
  }
  .page-faq__subtitle {
    font-size: 16px;
  }
  .page-faq__section-title {
    font-size: 28px;
  }
  .page-faq__intro-text {
    font-size: 15px;
  }
  .page-faq__faq-question h3 {
    font-size: 17px;
  }
  .page-faq__cta-title {
    font-size: 30px;
  }
  .page-faq__cta-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-header {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 30px;
  }
  .page-faq__hero-content {
    padding: 0 15px;
  }
  .page-faq__main-title {
    font-size: 30px;
  }
  .page-faq__subtitle {
    font-size: 15px;
  }
  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-faq__content-section {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 24px;
  }
  .page-faq__intro-text {
    font-size: 14px;
  }
  .page-faq__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-faq__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    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: 14px;
  }
  .page-faq__cta-banner {
    padding: 30px 20px;
  }
  .page-faq__cta-title {
    font-size: 26px;
  }
  .page-faq__cta-description {
    font-size: 15px;
  }
  .page-faq__cta-button--large {
    padding: 15px 30px;
    font-size: 18px;
  }
  
  /* Force image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__hero-header,
  .page-faq__content-section,
  .page-faq__container,
  .page-faq__faq-item,
  .page-faq__cta-banner {
    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: 26px;
  }
  .page-faq__subtitle {
    font-size: 14px;
  }
  .page-faq__cta-button {
    padding: 10px 20px;
    font-size: 15px;
  }
  .page-faq__section-title {
    font-size: 22px;
  }
  .page-faq__faq-question h3 {
    font-size: 14px;
  }
  .page-faq__cta-title {
    font-size: 22px;
  }
  .page-faq__cta-description {
    font-size: 14px;
  }
  .page-faq__cta-button--large {
    font-size: 16px;
    padding: 12px 25px;
  }
}