/* Base styles for the Help Center page */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f8f8; /* A light background for the page content */
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
}

.page-support__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-support__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-support__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-support__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-support__btn-secondary:hover {
  background: #e0e0e0;
  color: #1e87bb;
  border-color: #1e87bb;
}

/* Content Area */
.page-support__content-area {
  padding: 40px 0;
}

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

.page-support__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

.page-support p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #444;
}

.page-support a {
  color: #26A9E0;
  text-decoration: none;
}

.page-support a:hover {
  text-decoration: underline;
}

.page-support__policy-list {
  list-style: disc;
  padding-left: 30px;
  margin-bottom: 30px;
}

.page-support__policy-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #444;
}

/* FAQ Section */
.page-support__faq-list {
  margin-top: 30px;
}

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);
}
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 8px 8px;
  color: #555;
}

/* Grid Cards */
.page-support__grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-support__card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.page-support__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-support__card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin: 0 15px 10px;
  color: #333333;
}

.page-support__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-support__card p {
  font-size: 0.95em;
  color: #666;
  padding: 0 15px 15px;
  flex-grow: 1;
}

.page-support__card-link {
  display: block;
  padding: 12px 15px;
  background: #f0f0f0;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  border-top: 1px solid #e0e0e0;
  transition: background 0.3s ease;
}

.page-support__card-link:hover {
  background: #e5e5e5;
  text-decoration: none;
}

/* Contact Methods */
.page-support__contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 40px;
}

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

.page-support__contact-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-support__contact-card p {
  flex-grow: 1;
  margin-bottom: 25px;
  color: #555;
}

.page-support__download-cta {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 50px;
}

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

.page-support__section,
.page-support__card,
.page-support__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Color Contrast Fixes (if needed, applied conditionally) */
.page-support__dark-bg {
  color: #ffffff; /* Deep blue background with white text */
  background: #26A9E0;
}

.page-support__light-bg {
  color: #333333; /* White background with dark text */
  background: #ffffff;
}

/* Homepage specific CSS as requested, even if this is a support page */
@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;
  }
  /* Placeholder for other PC modules */
  .page-support__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 16px;
  }
  .page-support__promo-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .page-support__promo-card-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin-right: 15px;
  }
  .page-support__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 16px;
  }
  .page-support__hot-games-item-name,
  .page-support__hot-games-item-rtp,
  .page-support__hot-games-item-desc {
    display: block;
    text-align: center;
  }
}

/* Mobile responsive styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-support__hero-section {
    min-height: 300px;
    padding-bottom: 30px;
  }

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

  .page-support__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    max-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__container {
    padding: 0 15px;
  }

  .page-support__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-support p {
    font-size: 1em;
  }

  details.page-support__faq-item summary.page-support__faq-question { padding: 15px; }
  .page-support__faq-qtext { font-size: 1em; }
  details.page-support__faq-item .page-support__faq-answer { padding: 0 15px 15px; }

  .page-support__grid-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__card-image {
    height: 180px;
  }

  .page-support__card-title {
    font-size: 1.2em;
    margin: 0 10px 8px;
  }

  .page-support__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__contact-card {
    padding: 25px;
  }

  .page-support__contact-title {
    font-size: 1.3em;
  }

  /* General image and container rules 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__download-cta,
  .page-support__cta-buttons,
  .page-support__contact-methods,
  .page-support__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Homepage specific 768px rules (as requested) */
  .page-support__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
    overflow-x: hidden;
  }
  .page-support__promo-card {
    flex-direction: column;
    text-align: center;
  }
  .page-support__promo-card-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
  }
  .page-support__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }
  .page-support__hot-games-item-name,
  .page-support__hot-games-item-rtp,
  .page-support__hot-games-item-desc {
    display: none; /* Hide text below game images for mobile */
  }
  .page-support__brand-intro {
    padding: 20px 15px;
    text-align: center;
  }
  .page-support__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 0;
  }
  body {
    padding-bottom: 50px; /* Adjust for fixed ticker */
  }
}

/* Common utility for hiding */
.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-support__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.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;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-support__reward-modal-content{
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
}
.page-support__reward-modal-close{
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}