.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from body, ensure contrast */
}

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

.page-support__hero-section {
  padding: 100px 0;
  text-align: center;
  background-image: url('[GALLERY:hero:1920x1080:8kbet_support_hero,customer_service,online_betting,vietnam,green_theme]');
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-support__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-support__hero-section > .page-support__container {
  position: relative;
  z-index: 2;
}

.page-support__hero-title {
  font-size: 3.2em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-support__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-support__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: #017439;
  position: relative;
  padding-bottom: 15px;
}

.page-support__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-support__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
}

/* Color scheme application */
.page-support__dark-bg {
  background-color: #1a1a2e; /* Dark body background */
  color: #ffffff;
}

.page-support__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-support__light-bg .page-support__section-title {
  color: #017439;
}

.page-support__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  margin: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

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

.page-support__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 2px solid #017439;
  cursor: pointer;
  margin: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-support__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.page-support__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-support__cta-buttons--center {
  text-align: center;
}

/* Why Us Section */
.page-support__why-us-section, .page-support__payment-support-section, .page-support__security-privacy-section, .page-support__final-cta-section {
  padding: 80px 0;
}

.page-support__features-grid, .page-support__methods-grid, .page-support__payment-grid, .page-support__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-support__feature-item, .page-support__method-card, .page-support__payment-item, .page-support__security-item {
  background-color: rgba(255, 255, 255, 0.1); /* Subtle background for dark sections */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure uniform height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__light-bg .page-support__feature-item, .page-support__light-bg .page-support__method-card, .page-support__light-bg .page-support__payment-item, .page-support__light-bg .page-support__security-item {
  background-color: #f8f8f8;
  color: #333333;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-support__feature-item:hover, .page-support__method-card:hover, .page-support__payment-item:hover, .page-support__security-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-support__feature-icon, .page-support__method-icon, .page-support__payment-icon, .page-support__security-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #017439;
  box-shadow: 0 0 0 8px rgba(1, 116, 57, 0.2);
}

.page-support__feature-title, .page-support__method-title, .page-support__payment-title, .page-support__security-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #017439;
}

.page-support__dark-bg .page-support__feature-title, .page-support__dark-bg .page-support__method-title, .page-support__dark-bg .page-support__payment-title, .page-support__dark-bg .page-support__security-title {
  color: #FFFFFF;
}

.page-support__feature-description, .page-support__method-description, .page-support__payment-description, .page-support__security-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Contact Methods Section */
.page-support__contact-methods-section {
  padding: 80px 0;
  text-align: center;
}

.page-support__method-card .page-support__btn-primary, .page-support__method-card .page-support__btn-secondary {
  margin-top: auto; /* Push buttons to bottom */
  width: calc(100% - 20px);
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
}

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

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

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

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

.page-support__faq-item[open] .page-support__faq-question {
  background-color: #e8e8e8;
}

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

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

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-support__faq-item[open] .page-support__faq-toggle {
  content: '−';
}

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

.page-support__faq-item[open] .page-support__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding-top: 10px;
}

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

.page-support__faq-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-support__faq-link:hover {
  color: #005f2c;
  text-decoration: underline;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
  padding: 80px 0;
  text-align: center;
}

/* Technical Support Section */
.page-support__technical-support-section {
  padding: 80px 0;
}

.page-support__tech-issues-list {
  list-style: none;
  padding: 0;
  margin: 50px auto 0 auto;
  max-width: 900px;
}

.page-support__tech-issue-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__tech-issue-item h3 {
  color: #017439;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-support__tech-issue-item p {
  color: #f0f0f0;
  margin-bottom: 15px;
}

/* Security & Privacy Section */
.page-support__security-privacy-section {
  padding: 80px 0;
}

/* Feedback Form Section */
.page-support__feedback-section {
  padding: 80px 0;
  text-align: center;
}

.page-support__feedback-form {
  max-width: 700px;
  margin: 50px auto 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-support__form-group {
  margin-bottom: 25px;
}

.page-support__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #FFFFFF;
  font-size: 1.1em;
}

.page-support__form-input, .page-support__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #017439;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.95);
  color: #333333;
  font-size: 1em;
  box-sizing: border-box;
}

.page-support__form-input::placeholder, .page-support__form-textarea::placeholder {
  color: #888888;
}

.page-support__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-support__feedback-form .page-support__btn-primary {
  width: auto;
  padding: 15px 40px;
  margin-top: 20px;
}

/* Final CTA Section */
.page-support__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

/* Image and Video Responsiveness */
.page-support img, .page-support video {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-support__video-section, .page-support__video-container, .page-support__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-support__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }

  .page-support__hero-title {
    font-size: 2.2em;
  }

  .page-support__hero-description {
    font-size: 1em;
  }

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

  .page-support__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-support__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .page-support__btn-primary, .page-support__btn-secondary {
    width: calc(100% - 30px) !important; /* Full width with padding */
    margin: 0 !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__feature-item, .page-support__method-card, .page-support__payment-item, .page-support__security-item {
    padding: 20px;
  }

  .page-support__feature-icon, .page-support__method-icon, .page-support__payment-icon, .page-support__security-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-support__feature-title, .page-support__method-title, .page-support__payment-title, .page-support__security-title {
    font-size: 1.4em;
  }

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

  .page-support__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

  .page-support__feedback-form {
    padding: 25px;
  }

  .page-support__form-input, .page-support__form-textarea {
    padding: 12px;
  }

  /* Force images, videos, and containers to be responsive */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-support video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-support__section, .page-support__card, .page-support__container, .page-support__video-section, .page-support__video-container, .page-support__video-wrapper, .page-support__cta-buttons, .page-support__button-group, .page-support__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-support__hero-section > .page-support__container,
  .page-support__why-us-section > .page-support__container,
  .page-support__contact-methods-section > .page-support__container,
  .page-support__faq-section > .page-support__container,
  .page-support__responsible-gaming-section > .page-support__container,
  .page-support__payment-support-section > .page-support__container,
  .page-support__technical-support-section > .page-support__container,
  .page-support__security-privacy-section > .page-support__container,
  .page-support__feedback-section > .page-support__container,
  .page-support__final-cta-section > .page-support__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-support__faq-list, .page-support__tech-issues-list, .page-support__feedback-form {
    margin-left: 0;
    margin-right: 0;
  }

  .page-support__tech-issue-item h3 {
    font-size: 1.2em;
  }

  .page-support__tech-issue-item p {
    font-size: 0.9em;
  }
}