/* 智能文字颜色选择器 - Mặc định cho body là light-bg nếu var(--secondary-color) không được định nghĩa là dark */
.page-support {
  color: #333333;
  background: var(--secondary-color, #FFFFFF);
}

.page-support__dark-section {
  background: #017439;
  color: #ffffff;
}

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

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

.page-support__hero-section {
  padding-top: 10px; /* Small top padding as body padding-top is handled by shared.css */
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-support__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-support__main-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-support__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-support__cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary {
  background: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  border: 2px solid #C30808;
}

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

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

.page-support__btn-secondary:hover {
  background: #005a2d;
  border-color: #005a2d;
}

.page-support__quick-nav {
  padding: 30px 0;
  background: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}

.page-support__section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  color: #017439;
}

.page-support__nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-support__nav-item {
  display: block;
  padding: 10px 20px;
  background: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.3s ease, color 0.3s ease;
  font-weight: 500;
}

.page-support__nav-item:hover {
  background: #017439;
  color: #fff;
}

.page-support__content-section {
  padding: 50px 0;
  border-bottom: 1px solid #e0e0e0;
}

.page-support__section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.page-support__section-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-support__sub-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #017439;
}

.page-support__text-block p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #333333;
}

.page-support__dark-section .page-support__text-block p {
  color: #f0f0f0;
}

.page-support__image-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-support__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-support__faq-section {
  padding: 50px 0;
  background: #017439;
  color: #ffffff;
}

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

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

details.page-support__faq-item summary.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-support__faq-item summary.page-support__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-support__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #ffffff;
}

.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-support__faq-item .page-support__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-support__contact-cta {
  padding: 60px 0;
  text-align: center;
}

.page-support__contact-cta .page-support__section-title {
  color: #017439;
}

.page-support__contact-cta .page-support__description {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

/* Responsive styles */
@media (max-width: 1023px) {
  .page-support__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-support__hero-brand,
  .page-support__hero-jackpot {
    display: none !important;
  }
  .page-support__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-support__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-support__game-trial-topbar,
  .page-support__game-trial-bottombar {
    display: none !important;
  }
  .page-support__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-support__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-support__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-support__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-support__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-support__hero-brand,
  .page-support__hero-jackpot,
  .page-support__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-support__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-support__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-support__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-support__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-support__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .page-support__main-title {
    font-size: 28px;
  }
  .page-support__description {
    font-size: 16px;
  }
  .page-support__section-title {
    font-size: 24px;
  }
  .page-support__sub-title {
    font-size: 20px;
  }
  .page-support__content-section {
    padding: 30px 0;
  }
  .page-support__section-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-support__section-grid--reverse {
    grid-template-columns: 1fr;
  }
  .page-support__section-grid--reverse .page-support__image-block {
    order: -1;
  }
  .page-support__nav-links {
    flex-direction: column;
    align-items: center;
  }
  .page-support__nav-item {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  details.page-support__faq-item summary.page-support__faq-question {
    padding: 15px;
  }
  .page-support__faq-qtext {
    font-size: 15px;
  }
  details.page-support__faq-item .page-support__faq-answer {
    padding: 0 15px 15px;
  }
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-support__container,
  .page-support__section,
  .page-support__card,
  .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;
  }
  .page-support__cta-button,
  .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-left: 15px;
    padding-right: 15px;
  }
  .page-support__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}