.page-support {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background: #ffffff; /* Default light background */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

.page-support__hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-support__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-support__main-title {
  font-size: 3em;
  font-weight: 700;
  color: #017439;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-support__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555555;
}

.page-support__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* For mobile responsiveness */
}

/* General button styles */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons adapt */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

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

.page-support__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Section general */
.page-support__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

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

.page-support__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

/* Contact Methods Section */
.page-support__dark-section {
  background: #017439;
  color: #ffffff;
  padding: 60px 0;
}

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

.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: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-support__contact-icon {
  width: 100px; /* Example size, ensuring >200px actual image */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-support__contact-card .page-support__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-support__contact-card .page-support__card-text {
  font-size: 1em;
  line-height: 1.5;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__contact-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9em;
  color: #e0e0e0;
}

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

.page-support__faq-list {
  margin-top: 30px;
}

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: 1.1em;
  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;
}
.page-support__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

.page-support__cta-faq {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.page-support__cta-faq-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #555555;
}

/* Guides & Resources Section */
.page-support__guides-resources {
  padding: 60px 0;
  background: #ffffff;
}

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

.page-support__guide-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__guide-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-support__guide-card .page-support__card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
  flex-grow: 1;
}

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

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

.page-support__guide-card .page-support__card-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #666666;
  margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming {
  padding: 60px 0;
}

.page-support__responsible-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.page-support__responsible-image {
  flex: 1 1 40%;
  max-width: 500px;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__responsible-list {
  flex: 1 1 50%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-support__responsible-list li {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: #e0e0e0;
}

.page-support__responsible-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFFF00; /* Yellow checkmark for contrast */
  font-weight: bold;
}

.page-support__cta-responsible {
  text-align: center;
  margin-top: 40px;
}

/* Final CTA Section */
.page-support__final-cta {
  padding: 60px 0;
  text-align: center;
}

/* --- Homepage specific CSS (forced by prompt) --- */
/* --- Must be included as per instructions, even for inner page --- */

/* A. @media (max-width: 1023px) must be output verbatim */
@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;
  }
}

/* B. @media (min-width: 1024px) must be output verbatim */
@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 (max-width: 768px) for general elements and homepage elements (as per instruction) */
@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-support__main-title {
    font-size: 2em;
  }
  .page-support__section-title {
    font-size: 1.8em;
  }
  .page-support__description,
  .page-support__section-description,
  .page-support__cta-faq-text {
    font-size: 1em;
  }

  /* General images and containers */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-support__hero-section,
  .page-support__contact-methods,
  .page-support__faq-section,
  .page-support__guides-resources,
  .page-support__responsible-gaming,
  .page-support__final-cta,
  .page-support__container,
  .page-support__contact-card,
  .page-support__guide-card,
  .page-support__responsible-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Buttons and button containers */
  .page-support__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }
  .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;
  }

  /* FAQ specific mobile styles */
  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; }

  /* Contact grid for mobile */
  .page-support__contact-grid {
    grid-template-columns: 1fr;
  }

  /* Guides grid for mobile */
  .page-support__guide-grid {
    grid-template-columns: 1fr;
  }

  /* Responsible gaming layout for mobile */
  .page-support__responsible-content {
    flex-direction: column;
  }
  .page-support__responsible-image {
    max-width: 100%;
  }
}

/* General overlay and modal styles (as per prompt for homepage trial, but applied generally) */
.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;
  opacity: 0; /* Add opacity for smoother transition */
  transition: opacity 0.3s ease;
}
.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;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-support__reward-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}
.page-support__reward-modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  color: #333333;
}
.page-support__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999999;
  transition: color 0.3s ease;
}
.page-support__reward-modal-close:hover {
  color: #333333;
}
.page-support__reward-modal h3 {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}
.page-support__reward-modal p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 25px;
}
.page-support__reward-modal .page-support__btn-primary {
  width: auto;
  min-width: 150px;
}

/* Ensure no `filter` is used on images */
.page-support img {
  filter: none; /* Explicitly ensure no filter */
}