.page-faq {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Matches shared.css var(--secondary-color) */
  line-height: 1.6;
}

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

/* Title Section (Hero) */
.page-faq__title-section {
  padding-top: 10px; /* Small top padding as per rule */
  padding-bottom: 40px;
  background-color: #f5f5f5; /* Light background for the hero section */
  text-align: center;
}

.page-faq__hero-image-wrapper {
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default for desktop */
  min-height: 200px; /* Min size requirement */
}

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

.page-faq__main-title {
  font-size: clamp(28px, 3.5vw, 48px); /* Using clamp as required */
  color: #26A9E0;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

.page-faq__intro-text {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%; /* For desktop, but important for mobile */
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: #e0f2f7;
  transform: translateY(-2px);
}

/* FAQ Sections */
.page-faq__section {
  padding: 60px 0;
}

.page-faq__general-info { background-color: #f9f9f9; }
.page-faq__account-management { background-color: #ffffff; }
.page-faq__transactions { background-color: #f9f9f9; }
.page-faq__games-betting { background-color: #ffffff; }
.page-faq__promotions { background-color: #f9f9f9; }
.page-faq__security { background-color: #ffffff; }
.page-faq__support-troubleshooting { background-color: #f9f9f9; }
.page-faq__other-questions { background-color: #ffffff; }


.page-faq__section-title {
  font-size: clamp(24px, 3vw, 38px); /* Using clamp for H2 */
  color: #26A9E0;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  color: #333333;
  font-weight: 600;
  font-size: 18px;
  list-style: none; /* Hide default marker for details */
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #f0f8ff;
}

.page-faq__faq-item[open] .page-faq__faq-question {
  background-color: #26A9E0;
  color: #FFFFFF;
  border-bottom: 1px solid #1a8cc4;
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: 300;
  margin-left: 15px;
  min-width: 20px;
  text-align: center;
}

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

.page-faq__faq-answer {
  padding: 0 25px 20px;
  background-color: #fcfcfc;
  color: #555555;
  font-size: 16px;
  line-height: 1.7;
}

.page-faq__faq-answer p {
  margin-bottom: 0;
  padding-top: 10px;
}

/* Contact Section at bottom */
.page-faq__contact-section {
  background-color: #26A9E0;
  padding: 80px 0;
  text-align: center;
  color: #FFFFFF;
}

.page-faq__contact-section .page-faq__section-title {
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-faq__contact-text {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.page-faq__btn-contact {
  background-color: #EA7C07;
  border-color: #EA7C07;
  color: #FFFFFF;
}

.page-faq__btn-contact:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

/* General image styling for content area */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-faq__title-section {
    padding-top: 10px !important; /* Small top padding as per rule */
    padding-bottom: 30px;
  }

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

  .page-faq__hero-image {
    object-fit: contain !important; /* Use contain for mobile hero */
    height: auto !important; /* Ensure height adjusts */
    max-height: none !important; /* Remove any max-height */
    aspect-ratio: unset !important; /* Remove aspect-ratio if set */
  }

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

  .page-faq__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* Buttons */
  .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 15px;
    font-size: 15px;
  }

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

  /* Sections and Titles */
  .page-faq__section {
    padding: 40px 0;
  }

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

  /* FAQ Items */
  .page-faq__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

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

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

  /* Contact Section */
  .page-faq__contact-section {
    padding: 60px 0;
  }

  .page-faq__contact-text {
    font-size: 16px;
    padding: 0 15px;
  }

  /* General Images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers with images also adapt */
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden; /* Prevent overflow from children */
  }
}