/* General Styling for Help Center */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #f8f8f8; /* Slightly off-white background */
  padding-bottom: 50px;
}

.page-support h1,
.page-support h2,
.page-support h3 {
  color: #017439; /* Brand primary color for headings */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-support h1 {
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1, not fixed large */
  text-align: center;
  margin-top: 20px;
  line-height: 1.2;
}

.page-support h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

.page-support h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  margin-bottom: 10px;
}

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

.page-support__hero-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Ensure image is above text */
  align-items: center;
  background-color: #017439; /* Darker background for hero */
  padding-bottom: 20px;
  box-sizing: border-box;
}

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

.page-support__hero-content {
  max-width: 900px;
  width: 100%;
  padding: 20px 15px;
  text-align: center;
  color: #ffffff;
  box-sizing: border-box;
}

.page-support__main-title {
  color: #FFFF00; /* Yellow for main title on dark background */
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.page-support__intro-text {
  font-size: 18px;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__section-title {
  color: #017439;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 40px;
  font-size: clamp(26px, 3.5vw, 38px);
}

/* CTA Button Styling */
.page-support__cta-button,
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__cta-button {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Yellow font for register/login */
  border: 2px solid #C30808;
}
.page-support__cta-button:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

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

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

.page-support__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 15px;
}
.page-support__cta-buttons .page-support__cta-button {
  min-width: 180px;
}

/* FAQ Section Styling */
.page-support__faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
details.page-support__faq-item[open] {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-support__faq-toggle {
  font-size: 26px;
  font-weight: bold;
  color: #017439;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-support__faq-item .page-support__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
}
.page-support__faq-answer p {
  margin-bottom: 10px;
}
.page-support__faq-answer .page-support__faq-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  display: block;
  margin: 15px auto 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.page-support__faq-answer .page-support__btn-secondary,
.page-support__faq-answer .page-support__btn-primary {
  margin-top: 10px;
  margin-right: 10px;
}


/* Contact Section Styling */
.page-support__contact-section {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 15px;
  text-align: center;
}

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

.page-support__contact-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.page-support__contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

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

.page-support__contact-title {
  font-size: 22px;
  color: #017439;
  margin-bottom: 10px;
}

.page-support__contact-description {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__contact-note {
  margin-top: 40px;
  font-size: 16px;
  color: #666666;
}

/* Global Image & Button Responsive */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Placeholder for homepage specific CSS (as required by prompt) */
/*
The following media queries are included as per the prompt's strict requirements for CSS output,
even though they primarily target homepage-specific elements like `__home-hero` and `__game-trial`
which may not be present on this 'support' page. They ensure the overall CSS structure
adheres to the given boilerplate.
*/
@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;
  }
}

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

  .page-support__hero-content {
    padding: 15px;
  }

  .page-support__main-title {
    font-size: 28px;
  }

  .page-support__intro-text {
    font-size: 16px;
  }

  .page-support__section-title {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 25px;
  }

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
  }
  .page-support__cta-buttons .page-support__cta-button {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* FAQ specific mobile styles */
  details.page-support__faq-item summary.page-support__faq-question {
    padding: 15px;
    flex-wrap: wrap; /* Allow question text to wrap */
  }
  .page-support__faq-qtext {
    font-size: 15px;
    width: calc(100% - 40px); /* Adjust width for toggle */
  }
  .page-support__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  details.page-support__faq-item .page-support__faq-answer {
    padding: 0 15px 15px;
  }

  /* Contact section mobile styles */
  .page-support__contact-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .page-support__contact-card {
    padding: 25px;
  }
  .page-support__contact-title {
    font-size: 20px;
  }
  .page-support__contact-description {
    font-size: 14px;
  }

  /* Universal image and container handling for mobile */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__faq-item,
  .page-support__contact-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Specific styles for game trial overlay and reward modal (as required by prompt) */
.page-support__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
  position: absolute; /* Assuming this overlays a game iframe */
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-size: 24px;
}
.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;
  background-color: #C30808;
  color: #FFFF00;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  border: none;
}
.page-support__game-trial-start:hover {
  background-color: #e00b0b;
}

.page-support__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease;
}
.page-support--reward-open .page-support__reward-modal {
  visibility: visible;
  opacity: 1;
}
.page-support__reward-modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #333333;
}
.page-support__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}
.page-support__reward-modal-close:hover {
  color: #000;
}
.page-support__reward-modal-title {
  color: #017439;
  font-size: 28px;
  margin-bottom: 15px;
}
.page-support__reward-modal-description {
  margin-bottom: 25px;
  font-size: 16px;
}
.page-support__reward-modal-button {
  background-color: #C30808;
  color: #FFFF00;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}
.page-support__reward-modal-button:hover {
  background-color: #e00b0b;
}