/* style/support.css */

/* Base styles for the support page */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Match body background from shared.css */
}

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

.page-support__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

.page-support__light-bg {
  background-color: #26A9E0; /* Using brand color for light sections */
  color: #ffffff;
}

.page-support__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  font-weight: bold;
}

.page-support__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-support__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-support__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-support__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* Hero Section */
.page-support__hero-section {
  padding: 80px 0;
  text-align: center;
  background-image: url('[GALLERY:hero:1920x1080:u888_support_hero,online_betting,vietnam_gaming,mobile_casino,customer_service_interface]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
  padding-top: calc(80px + 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); /* Dark overlay for text readability */
  z-index: -1;
}

.page-support__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-support__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* Channels Section */
.page-support__channels-section {
  padding: 80px 0;
}

.page-support__channels-section .page-support__section-title {
  color: #ffffff;
}

.page-support__channels-section .page-support__section-intro {
  color: #f0f0f0;
}

.page-support__channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-support__channel-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__channel-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-support__channel-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-support__channel-text {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
  color: #f0f0f0;
}

/* Common Issues Section */
.page-support__common-issues-section {
  padding: 80px 0;
}

.page-support__common-issues-section .page-support__section-title {
  color: #ffffff;
}

.page-support__common-issues-section .page-support__section-intro {
  color: #f0f0f0;
}

.page-support__issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-support__issue-card {
  text-align: left;
}

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

.page-support__issue-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-support__issue-card li {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-support__issue-card strong {
  color: #ffffff;
}

/* Self-Help Section (FAQ) */
.page-support__self-help-section {
  padding: 80px 0;
}

.page-support__self-help-section .page-support__section-title {
  color: #ffffff;
}

.page-support__self-help-section .page-support__section-intro {
  color: #f0f0f0;
}

.page-support__faq-list {
  max-width: 800px;
  margin: 50px auto 30px auto;
}

.page-support__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-support__faq-heading {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-support__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px !important;
}

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

.page-support__cta-box {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
}

.page-support__cta-box p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Commitment Section */
.page-support__commitment-section {
  padding: 80px 0;
}

.page-support__commitment-section .page-support__section-title {
  color: #ffffff;
}

.page-support__commitment-section .page-support__section-intro {
  color: #f0f0f0;
}

.page-support__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-support__commitment-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 30px;
  color: #ffffff;
}

.page-support__commitment-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-support__commitment-heading {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-support__commitment-item p {
  color: #f0f0f0;
}

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

.page-support__cta-final-section .page-support__section-title {
  color: #ffffff;
}

.page-support__cta-final-section .page-support__section-intro {
  color: #f0f0f0;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 3em;
  }

  .page-support__section-title {
    font-size: 2em;
  }
}

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

  .page-support__container {
    padding: 0 15px;
  }

  .page-support__hero-section {
    padding: 60px 0;
    padding-top: calc(60px + var(--header-offset, 120px)); /* Adjust for mobile header offset */
  }

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

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

  .page-support__hero-cta,
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support a[class*="btn"] {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__channel-grid,
  .page-support__issues-grid,
  .page-support__commitment-grid {
    grid-template-columns: 1fr;
  }

  .page-support__card {
    padding: 20px;
  }

  /* Mobile image and video responsive rules */
  .page-support img {
    max-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;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-support__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Re-apply for video section if it's the first element */
  }

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

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

  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: 2em;
  }

  .page-support__section-title {
    font-size: 1.8em;
  }
}