.page-faq {
  padding-top: 10px; /* Small top padding, body handles header offset */
  color: #F3F8FF;
  background-color: #08162B;
}

.page-faq__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for mobile-first, adjusted to row for desktop */
  align-items: center;
  padding: 20px;
  background: linear-gradient(180deg, #113B7A 0%, #08162B 100%);
  border-radius: 8px;
  margin-bottom: 40px;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  margin-bottom: 20px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-faq__hero-content {
  text-align: center;
  max-width: 800px;
}

.page-faq__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #F2C14E;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-faq__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #AFC4E8;
}

.page-faq__hero-cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  text-align: center;
}

.page-faq__hero-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__faq-list-section {
  padding: 40px 20px;
  background-color: #10233F;
  border-radius: 8px;
  margin-bottom: 40px;
}

.page-faq__faq-list-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #F2C14E;
}

.page-faq__accordion-item {
  border: 1px solid #244D84;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #08162B;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 25px;
  background-color: #113B7A;
  color: #F3F8FF;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-faq__accordion-header:hover {
  background-color: #1D5FD1;
}

.page-faq__accordion-header[aria-expanded="true"] {
  background-color: #1D5FD1;
}

.page-faq__accordion-question {
  margin: 0;
  color: #F3F8FF;
}

.page-faq__accordion-icon {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-faq__accordion-header[aria-expanded="true"] .page-faq__accordion-icon {
  transform: rotate(45deg);
}

.page-faq__accordion-content {
  padding: 0 25px;
  background-color: #10233F;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-faq__accordion-content p {
  padding: 15px 0;
  margin: 0;
  line-height: 1.6;
  color: #AFC4E8;
}

.page-faq__accordion-content p a {
  color: #4FA8FF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq__accordion-content p a:hover {
  color: #F2C14E;
  text-decoration: underline;
}

.page-faq__contact-support-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-faq__contact-support-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #10233F;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  gap: 30px;
}

.page-faq__cta-content {
  max-width: 700px;
}

.page-faq__cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: #F2C14E;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #AFC4E8;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.15rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 220px;
  text-align: center;
}

.page-faq__cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-image-wrapper {
  width: 100%;
  max-width: 600px;
}

.page-faq__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Desktop styles */
@media (min-width: 850px) {
  .page-faq__hero-section {
    flex-direction: row;
    text-align: left;
    gap: 40px;
    padding: 60px;
  }

  .page-faq__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    margin-bottom: 0;
  }

  .page-faq__hero-content {
    flex: 1;
    text-align: left;
  }

  .page-faq__main-title {
    margin-top: 0;
  }

  .page-faq__cta-section {
    flex-direction: row;
    text-align: left;
    gap: 40px;
    padding: 60px;
  }

  .page-faq__cta-section .page-faq__cta-content {
    flex: 1;
  }

  .page-faq__cta-section .page-faq__cta-image-wrapper {
    flex: 1;
    min-width: 300px;
  }
}

/* Mobile responsiveness for content images */
@media (max-width: 768px) {
  .page-faq__faq-list-section, .page-faq__cta-section {
    padding: 30px 15px;
  }

  .page-faq__accordion-header {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .page-faq__accordion-content p {
    padding: 10px 0;
  }

  .page-faq__hero-image, .page-faq__cta-image, .page-faq__faq-list-section img, .page-faq__cta-section img {
    max-width: 100%;
    height: auto;
  }

  /* Ensure content images are not too small */
  .page-faq img:not(.page-faq__hero-image):not(.page-faq__cta-image) {
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
  }

  .page-faq__contact-support-button, .page-faq__hero-cta-button, .page-faq__cta-button {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 549px) {
  .page-faq__hero-section, .page-faq__cta-section {
    padding: 20px 15px;
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-faq__hero-description, .page-faq__cta-description {
    font-size: 1rem;
  }

  .page-faq__faq-list-title, .page-faq__cta-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .page-faq__accordion-header {
    font-size: 1rem;
    padding: 12px 18px;
  }

  .page-faq__accordion-icon {
    font-size: 1.5rem;
  }

  .page-faq__accordion-content p {
    font-size: 0.95rem;
  }

  .page-faq__hero-cta-button, .page-faq__cta-button {
    font-size: 1rem;
    padding: 12px 25px;
  }
}