.page-support {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  line-height: 1.6;
  background-color: #FFFFFF;
}

.page-support__hero-section {
  display: flex;
  flex-direction: column; /* Enforce image above text */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding if body handles header offset */
  padding-bottom: 40px;
  background-color: #f8f8f8;
  position: relative;
  overflow: hidden;
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for desktop hero */
  overflow: hidden;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop to fill space */
}

.page-support__hero-content {
  max-width: 900px;
  padding: 20px;
  margin-top: 20px;
  z-index: 1; /* Ensure content is above any potential background layers */
}

.page-support__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  max-width: 100%;
}

.page-support__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-support__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  padding: 0 15px;
}

.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-support__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

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

.page-support__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1e87c0;
  border-color: #1e87c0;
}

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

.page-support__introduction-section,
.page-support__guide-section,
.page-support__account-management-section,
.page-support__transaction-section,
.page-support__games-products-section,
.page-support__promotions-section,
.page-support__policies-section,
.page-support__contact-section {
  background-color: #FFFFFF;
  border-bottom: 1px solid #eeeeee;
}

.page-support__faq-section {
  background-color: #f8f8f8;
}

.page-support__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-support__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-support__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.page-support__paragraph {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #444444;
}

.page-support__highlight {
  font-weight: 700;
  color: #26A9E0;
}

.page-support__subsection-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-support__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 800px; /* Constrain image width in content */
  object-fit: cover;
}

/* FAQ Section */
.page-support__faq-list {
  list-style: none;
  padding: 0;
}

.page-support__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #fefefe;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-support__faq-item summary::marker {
  display: none;
}

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

.page-support__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-support__faq-item[open] .page-support__faq-toggle {
  transform: rotate(45deg);
}

.page-support__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-support__faq-item[open] .page-support__faq-answer {
  max-height: 1000px; /* A sufficiently large value */
  transition: max-height 0.5s ease-in;
}

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

.page-support__btn-faq {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-support__btn-promotions {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Policy Section */
.page-support__policy-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-support__policy-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-support__policy-item a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

.page-support__policy-item a:hover {
  text-decoration: underline;
}

/* Contact Section */
.page-support__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-support__contact-item {
  background-color: #fefefe;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.page-support__contact-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-support__contact-item p {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 0;
}

.page-support__contact-item a {
  color: #EA7C07; /* Login color for contact link */
  text-decoration: none;
  font-weight: 600;
}

.page-support__contact-item a:hover {
  text-decoration: underline;
}

.page-support__btn-contact {
  margin-top: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Global image responsiveness */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-support__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
    padding-bottom: 30px;
  }

  .page-support__hero-image {
    object-fit: contain; /* Contain for mobile to show full image */
    max-height: 400px; /* Limit height on small screens */
  }

  .page-support__main-title {
    font-size: 2em; /* Smaller title for mobile */
    margin-bottom: 10px;
  }

  .page-support__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-support__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support a[class*="button"],
  .page-support 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; /* Adjust padding for smaller buttons */
  }

  .page-support__section {
    padding: 30px 15px;
  }

  .page-support__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-support__subsection-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-support__paragraph {
    font-size: 0.95em;
    margin-bottom: 15px;
  }

  .page-support__image-content {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-support__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-support__faq-answer {
    padding: 0 20px 15px;
  }

  .page-support__policy-item {
    padding: 15px;
  }

  .page-support__contact-list {
    grid-template-columns: 1fr; /* Stack contact items */
    gap: 15px;
  }

  .page-support__contact-item {
    padding: 20px;
  }

  .page-support__contact-title {
    font-size: 1.2em;
  }

  /* General image and container responsiveness for all content */
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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