/* Base styles for the support page */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff; /* Explicitly set for clarity */
}

.page-support__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

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

.page-support__text-center {
  text-align: center;
}

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

.page-support__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  color: #ffffff;
  text-align: center;
  padding: 0;
  margin-bottom: 0;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit hero image height */
}

.page-support__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  margin-top: -100px; /* Overlap with image for visual effect */
  position: relative;
  z-index: 2;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

/* CTA Buttons */
.page-support__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support a[class*="button"],
.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;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

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

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

.page-support__btn-text:hover {
  color: #005a2e;
  text-decoration: underline;
}

/* Contact Methods Section */
.page-support__contact-methods {
  background-color: #f9f9f9;
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-support__method-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-support__method-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-support__method-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 700;
}

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

/* Guides & Resources Section */
.page-support__guides-resources {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-support__guide-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-support__guide-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.page-support__guide-card h3 {
  padding: 20px 20px 10px;
  margin: 0;
  font-size: 1.3em;
  color: #017439;
}

.page-support__guide-card h3 a {
  color: #017439;
  text-decoration: none;
}

.page-support__guide-card h3 a:hover {
  text-decoration: underline;
}

.page-support__guide-text {
  padding: 0 20px;
  color: #555555;
  font-size: 0.95em;
  flex-grow: 1;
}

.page-support__guide-card .page-support__btn-text {
  display: block;
  padding: 15px 20px 20px;
  text-align: right;
}

/* FAQ Section */
.page-support__faq-section {
  background-color: #f9f9f9;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-support__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Accordion styles (from prompt) */
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: #555555;
}

/* Register CTA Section */
.page-support__register-cta {
  padding: 60px 0;
  background-color: #e0f2f1; /* Light background for contrast */
  color: #333333;
}

/* Copyright Section */
.page-support__copyright-section {
  background-color: #017439;
  color: #ffffff;
  padding: 20px 0;
  margin-bottom: 0;
}

.page-support__copyright-text {
  font-size: 0.9em;
  margin: 0;
}

/* Mobile Responsive (max-width: 768px) */
@media (max-width: 768px) {
  .page-support__section {
    padding: 30px 0;
  }

  .page-support__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-support__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-support__hero-content {
    padding: 30px 15px;
    margin-top: -60px;
  }

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

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

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 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-left: 15px;
    padding-right: 15px;
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-support__section,
  .page-support__card,
  .page-support__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__methods-grid,
  .page-support__guides-grid {
    grid-template-columns: 1fr;
  }

  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__guide-image {
    height: 150px;
  }
}

/* --- HOMEPAGE TRIAL GAME CSS (Required to be included as per instructions) --- */
@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;
  }
}

/* Additional homepage-specific styles for 768px as per instructions, using page-support prefix */
@media (max-width: 768px) {
  /* These are placeholder classes for homepage elements, required by the prompt to be in CSS */
  .page-support__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-support__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-support__brand-intro {
    display: block !important; /* Assuming it was hidden on larger screens */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-support__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 15px;
    box-sizing: border-box;
  }
  /* Ensure body/main has padding-bottom if ticker is fixed */
  body,
  .page-support {
    padding-bottom: 50px; /* Adjust based on ticker height */
  }
}

/* Trial Game Overlay/Modal (Required to be included as per instructions) */
.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;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
}
.page-support__reward-modal[hidden] {
  display: none;
}
.page-support__reward-modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  position: relative;
}
.page-support__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* Ensure body padding for fixed header (as per instructions) */
.page-support__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
}

/* Image and container responsive rules (general) */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-support__section,
.page-support__card,
.page-support__container,
.page-support__methods-grid,
.page-support__guides-grid,
.page-support__faq-list {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}