@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__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
  }
  .page-support__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.page-support__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-support__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-support__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-support__game-trial-shell {
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 10px;
  overflow: hidden;
}
.page-support__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

/* Page-specific styles for support.html */
.page-support {
  color: #333333; /* Default text color for light body background */
  background: #F5F7FA; /* Page background color */
  padding-bottom: 50px; /* Ensure space at the bottom */
}

/* Fixed header spacing - relying on body for padding-top */
.page-support__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: #F5F7FA; /* Match page background */
}

/* Hero Section */
.page-support__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

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

.page-support__hero-content {
  max-width: 900px;
  padding: 0 15px;
}

.page-support__main-title {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #333333; /* Ensure contrast */
}

.page-support__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555555;
}

/* General Sections */
.page-support__section {
  padding: 40px 0;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

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

.page-support__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #E53935; /* Brand color for title */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-support__section-description {
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 30px;
  color: #333333;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Guide Items */
.page-support__guides-section .page-support__guide-item {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-support__guide-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-support__guide-title {
  font-size: 24px;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
}

.page-support__guide-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 20px;
}

.page-support__guide-list {
  text-align: left;
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 25px;
  color: #333333;
  width: 100%;
  max-width: 600px;
}

.page-support__guide-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Game Categories */
.page-support__games-section {
  background: #E53935; /* Dark section brand color */
  color: #ffffff; /* Light text for dark background */
}

.page-support__games-section .page-support__section-title,
.page-support__games-section .page-support__section-description {
  color: #ffffff;
}

.page-support__game-category {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.page-support__game-title {
  font-size: 24px;
  font-weight: 600;
  color: #FF5A4F; /* Auxiliary brand color */
  margin-bottom: 15px;
}

.page-support__game-text {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Safety Section */
.page-support__safety-section .page-support__safety-item {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-support__safety-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-support__safety-title {
  font-size: 24px;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
}

.page-support__safety-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 20px;
}

/* Contact Section */
.page-support__contact-section {
  background: #E53935;
  color: #ffffff;
  text-align: center;
}

.page-support__contact-section .page-support__section-title,
.page-support__contact-section .page-support__section-description {
  color: #ffffff;
}

/* Buttons */
.page-support__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 5px;
  max-width: 100%; /* Ensure responsive */
  box-sizing: border-box; /* Ensure responsive */
  white-space: normal; /* Ensure responsive */
  word-wrap: break-word; /* Ensure responsive */
}

.page-support__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-support__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 5px 15px rgba(229, 57, 53, 0.4);
}

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

.page-support__btn-secondary:hover {
  background: #f0f0f0;
  color: #FF5A4F;
  border-color: #FF5A4F;
}

/* FAQ Section */
details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #f5f5f5;
}
.page-support__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
  line-height: 1.6;
}
.page-support__faq-answer p {
  margin-bottom: 15px;
}
.page-support__faq-answer .page-support__cta-button {
  margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-support__main-title {
    font-size: 36px;
  }
  .page-support__section-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-support__hero-section {
    padding-top: 8px; /* Smaller top padding for mobile */
  }
  .page-support__main-title {
    font-size: 28px;
    margin-bottom: 10px;
  }
  .page-support__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-support__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .page-support__section-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

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

  /* Containers responsive */
  .page-support__section,
  .page-support__container,
  .page-support__guide-item,
  .page-support__game-category,
  .page-support__safety-item,
  .page-support__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Buttons responsive */
  .page-support__cta-button,
  .page-support__btn-primary,
  .page-support__btn-secondary {
    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;
  }

  /* Multiple buttons in a row (e.g., game categories) */
  .page-support__game-category .page-support__cta-button {
    display: block; /* Stack buttons vertically */
    margin: 10px auto;
  }

  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;
  }
}