/* CSS for page-support */
.page-support {
  color: #1F2D3D; /* Text Main */
  background: #F4F7FB; /* Background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-support__section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-support__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #2F6BFF; /* Main Color */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-support__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
}

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

.page-support__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 800;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

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

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-support__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-support__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-support__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF; /* Main Color */
}

.page-support__btn-secondary:hover {
  background: #2F6BFF; /* Main Color */
  color: #ffffff;
}

.page-support__btn-text {
  background: none;
  color: #2F6BFF; /* Main Color */
  border: none;
  padding: 5px 10px;
  font-weight: 500;
  text-decoration: underline;
}

.page-support__btn-text:hover {
  color: #4A8BFF;
}

.page-support__introduction p {
  font-size: 1.05em;
  margin-bottom: 15px;
  color: #1F2D3D; /* Text Main */
  text-align: justify;
}

.page-support__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #ffffff; /* Card BG */
  box-shadow: 0 2px 10px 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: #F4F7FB; /* Background */
}
.page-support__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main Color */
  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: #F4F7FB; /* Background */
  border-radius: 0 0 5px 5px;
  color: #1F2D3D; /* Text Main */
}

.page-support__faq-answer p {
  margin-bottom: 10px;
  font-size: 1em;
}

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

.page-support__card {
  background: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #1F2D3D; /* Text Main */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-support__card-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #2F6BFF; /* Main Color */
  margin-bottom: 15px;
}

.page-support__card p {
  font-size: 0.95em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-support__rules-grid .page-support__card {
  padding: 20px;
}

.page-support__rules-grid .page-support__card-title {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.page-support__dark-section {
  background: #2F6BFF; /* Main Color */
  color: #ffffff;
  padding: 50px 20px;
  text-align: center;
}

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

.page-support__dark-section p {
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
}

.page-support__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 20px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-support__contact-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 30px auto;
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  text-align: left;
}

.page-support__contact-list li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.page-support__contact-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2F6BFF; /* Main Color */
  font-weight: bold;
}

/* --- Homepage-specific CSS (as per global instruction) --- */
@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 homepage modules on PC */
  .page-support__promo-strip { margin-top: 16px; }
  .page-support__promo-strip-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
  .page-support__promo-card { display: flex; flex-direction: row; align-items: center; text-align: left; }
  .page-support__hot-games-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
  .page-support__hot-games-item { text-align: center; }
  .page-support__hot-games-name, .page-support__hot-games-rtp, .page-support__hot-games-desc { display: block; }
}

@media (max-width: 768px) {
  .page-support__section {
    padding: 30px 15px;
  }

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

  .page-support__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

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

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

  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support__btn-text {
    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__btn-container,
  .page-support__button-group {
    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;
  }

  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 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__rules-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-support__dark-section {
    padding: 40px 15px;
  }

  .page-support__contact-list {
    font-size: 1em;
    padding: 0 15px;
  }

  /* Homepage specific elements for 768px as per instruction */
  .page-support__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: hidden;
    padding: 0 15px;
  }
  .page-support__promo-card {
    flex-direction: column;
    text-align: center;
  }
  .page-support__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 15px;
  }
  .page-support__hot-games-name, .page-support__hot-games-rtp, .page-support__hot-games-desc {
    display: none;
  }
  /* Ensure winner ticker is handled for mobile if present */
  .page-support__winner-ticker { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999; }
}

/* General styles for game trial overlay and reward modal (from homepage instruction) */
.page-support__game-trial-overlay {
  z-index: 5; /* Important for overlay above iframe */
  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; /* Important for start button above overlay */
  pointer-events: auto;
  touch-action: manipulation;
}
.page-support__game-trial-shell {
  border: 1px solid #D6E2FF; /* Border */
  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: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-support__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.page-support__reward-modal-content {
  background: #ffffff; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.page-support__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #1F2D3D; /* Text Main */
}
.page-support__reward-modal h3 {
  font-size: 1.8em;
  color: #2F6BFF; /* Main Color */
  margin-bottom: 15px;
}
.page-support__reward-modal p {
  color: #1F2D3D; /* Text Main */
  margin-bottom: 25px;
}
.page-support__reward-modal .page-support__btn-primary {
  width: auto;
  padding: 10px 30px;
}