.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #f8f8f8;
}

.page-faq__hero-section {
  padding-top: 10px; /* Small top padding, body handles main offset */
  background-color: #26A9E0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-faq__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

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

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-faq__btn-primary:hover {
  background-color: #d16d06;
  border-color: #d16d06;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-faq__btn-secondary:hover {
  background-color: #e0f7fa;
  border-color: #1f8ec7;
  transform: translateY(-2px);
}

.page-faq__btn-inline {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 0.95rem;
}

.page-faq__cta-buttons--inline {
  margin-top: 20px;
  gap: 10px;
}

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

.page-faq__section--about .page-faq__section-title,
.page-faq__section--transactions .page-faq__section-title,
.page-faq__section--support .page-faq__section-title {
  color: #26A9E0;
}

.page-faq__section--registration .page-faq__section-title,
.page-faq__section--promotions .page-faq__section-title,
.page-faq__section--conclusion .page-faq__section-title {
  color: #ffffff;
}

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

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-faq__section-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

.page-faq__dark-bg .page-faq__section-intro {
  color: #f0f0f0;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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, color 0.3s ease;
}

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: #f5f5f5;
  color: #26A9E0;
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

details.page-faq__faq-item[open] .page-faq__faq-qtext {
  color: #26A9E0;
}

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

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

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  line-height: 1.7;
  color: #444444;
}

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

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

.page-faq__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-faq__dark-section .page-faq__faq-qtext {
  color: #ffffff;
}

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

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

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

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

.page-faq__dark-section details.page-faq__faq-item .page-faq__faq-answer {
  background: rgba(0, 0, 0, 0.1);
  color: #e0e0e0;
}

.page-faq__text-center {
  text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    max-width: 700px;
    padding: 15px;
  }

  .page-faq__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

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

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

  .page-faq__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }

  .page-faq__section-intro {
    font-size: 1rem;
    margin-bottom: 30px;
  }

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

  .page-faq__faq-qtext {
    font-size: 1rem;
  }

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

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

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px; /* Ensure small top padding */
    min-height: 400px;
  }

  .page-faq__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    position: relative;
    height: auto;
  }

  .page-faq__hero-content {
    position: relative;
    top: unset;
    left: unset;
    transform: unset;
    padding: 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

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

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

  .page-faq__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-faq__section-intro {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

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

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

  .page-faq__faq-qtext {
    font-size: 0.95rem;
  }

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

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

  .page-faq__image-content,
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 15px auto !important;
  }

  .page-faq__cta-buttons--inline {
    flex-direction: column;
    gap: 10px;
  }

  .page-faq__cta-buttons--inline .page-faq__btn-primary,
  .page-faq__cta-buttons--inline .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
  }
}

/* Ensure body padding-top is handled by shared.css */
/* No body padding-top here to avoid double padding */

/* Color contrast safety */
.page-faq__light-bg {
  background: #f8f8f8;
  color: #333333;
}

.page-faq__dark-bg {
  background: #26A9E0;
  color: #ffffff;
}

.page-faq p,
.page-faq li {
  color: #444444;
}

.page-faq__dark-bg p,
.page-faq__dark-bg li {
  color: #e0e0e0;
}

.page-faq__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}