.page-faq {
  background-color: #F4F7FB;
  color: #1F2D3D;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-faq__hero-section {
  padding-top: 10px; /* Fixed header spacing */
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  overflow: hidden;
  z-index: 1;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 20px 40px;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: clamp(16px, 1.8vw, 20px);
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-faq__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-faq__cta-button--small {
  padding: 10px 20px;
  font-size: 16px;
}

.page-faq__section {
  padding: 40px 0;
}

.page-faq__section--spacing {
  margin-bottom: 30px;
}

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

.page-faq__section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #1F2D3D;
}

.page-faq__section-title--light {
  color: #FFFFFF;
}

.page-faq__dark-section {
  background-color: #2F6BFF;
  color: #FFFFFF;
  padding: 60px 0;
  border-radius: 15px;
  margin-bottom: 30px;
}

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

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

details.page-faq__faq-item[open] {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  border-color: #6FA3FF;
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-weight: 600;
  color: #1F2D3D;
}

details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #F4F7FB;
}

.page-faq__dark-section details.page-faq__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.page-faq__dark-section details.page-faq__faq-item summary.page-faq__faq-question {
  color: #FFFFFF;
}

.page-faq__dark-section details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #6FA3FF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
  color: #2F6BFF;
}

.page-faq__dark-section .page-faq__faq-toggle {
  color: #A5C4FF;
}

.page-faq__dark-section details.page-faq__faq-item[open] .page-faq__faq-toggle {
  color: #FFFFFF;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  font-size: 16px;
  color: #333333;
}

.page-faq__dark-section details.page-faq__faq-item .page-faq__faq-answer {
  background: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}

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

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__btn-link {
  display: inline-block;
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-faq__btn-link:hover {
  color: #4A8BFF;
  text-decoration: underline;
}

.page-faq__dark-section .page-faq__btn-link {
  color: #A5C4FF;
}

.page-faq__dark-section .page-faq__btn-link:hover {
  color: #FFFFFF;
}

.page-faq__image-block {
  margin: 30px auto;
  max-width: 700px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__image-block--right {
  float: right;
  margin-left: 30px;
  margin-right: 0;
}

.page-faq__image {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-faq__button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.page-faq__btn-secondary {
  display: inline-block;
  background: #FFFFFF;
  color: #2F6BFF;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid #2F6BFF;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-secondary:hover {
  background: #2F6BFF;
  color: #FFFFFF;
}

.page-faq__final-cta {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  padding: 60px 0;
  text-align: center;
  color: #FFFFFF;
  border-radius: 15px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-faq__final-cta-content {
  max-width: 800px;
}

.page-faq__final-cta-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 15px;
}

.page-faq__final-cta-text {
  font-size: clamp(17px, 2vw, 22px);
  margin-bottom: 30px;
  opacity: 0.9;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-faq__container {
    padding: 0 30px;
  }

  .page-faq__image-block--right {
    float: none;
    margin: 30px auto;
  }
}

@media (max-width: 849px) {
  .page-faq__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding-top: 10px; /* Ensure 10px top padding for mobile */
    margin-bottom: 30px;
    min-height: unset;
    padding-bottom: 30px;
  }

  .page-faq__hero-image-wrapper {
    margin-bottom: 15px;
    border-radius: 10px;
  }

  .page-faq__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__hero-content {
    padding: 0 15px 20px;
  }

  .page-faq__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 10px;
  }

  .page-faq__intro-text {
    font-size: clamp(15px, 4vw, 18px);
    margin-bottom: 20px;
  }

  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__cta-button--small {
    padding: 10px 15px;
    font-size: 14px;
  }

  .page-faq__section {
    padding: 30px 0;
  }

  .page-faq__section--spacing {
    margin-bottom: 20px;
  }

  .page-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__section-title {
    font-size: clamp(20px, 6vw, 30px);
    margin-bottom: 20px;
  }

  .page-faq__dark-section {
    padding: 40px 0;
    border-radius: 10px;
  }

  details.page-faq__faq-item {
    margin-bottom: 10px;
    border-radius: 8px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
  }

  .page-faq__faq-qtext {
    font-size: 15px;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    margin-left: 10px;
    width: 25px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }

  .page-faq__image-block {
    margin: 20px auto;
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__button-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-faq__btn-link,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__final-cta {
    padding: 40px 0;
    border-radius: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .page-faq__final-cta-title {
    font-size: clamp(22px, 6vw, 36px);
  }

  .page-faq__final-cta-text {
    font-size: clamp(16px, 4vw, 20px);
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(22px, 8vw, 32px);
  }

  .page-faq__intro-text {
    font-size: clamp(14px, 4vw, 16px);
  }

  .page-faq__section-title {
    font-size: clamp(18px, 6vw, 24px);
  }

  .page-faq__faq-qtext {
    font-size: 14px;
  }

  .page-faq__faq-toggle {
    font-size: 20px;
    width: 20px;
  }

  details.page-faq__faq-item .page-faq__faq-answer {
    font-size: 14px;
  }

  .page-faq__final-cta-title {
    font-size: clamp(20px, 7vw, 32px);
  }

  .page-faq__final-cta-text {
    font-size: clamp(14px, 4vw, 18px);
  }
}