/* Shared body padding-top is handled by shared.css */

/* Homepage Trial Layout CSS (as per strict instruction, even for support.css) */
@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 @media (max-width: 768px) for homepage elements (as per strict instruction) */
@media (max-width: 768px) {
  .page-support__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: hidden;
  }
  .page-support__promo-card {
    flex-direction: column !important;
    text-align: center;
    padding: 15px;
  }
  .page-support__promo-card-image {
    margin-right: 0 !important;
    margin-bottom: 10px;
  }
  .page-support__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-support__hot-games-card-name,
  .page-support__hot-games-card-rtp,
  .page-support__hot-games-card-desc {
    display: none !important;
  }
  .page-support__brand-intro-content {
    padding: 20px;
  }
  .page-support__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
  }
  body {
    padding-bottom: 50px; /* Adjust based on ticker height */
  }
  .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__reward-modal-close {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
}

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

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

.page-support__section {
  padding: 60px 0;
}

.page-support__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
}

.page-support__section-description {
  font-size: 18px;
  color: #1F2D3D;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-support__hero-section {
  padding-top: 10px; /* Minimal top padding, rely on body padding-top */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #ffffff;
  text-align: center;
}

.page-support__hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-support__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-support__intro-text {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-support__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

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

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

.page-support__btn-secondary:hover {
  background: #f0f5ff;
  color: #1a4da6;
  border-color: #1a4da6;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.2);
}

/* Channels Section */
.page-support__channels-section {
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
}

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

.page-support__channel-card {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__channel-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-support__channel-title {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  margin-bottom: 15px;
}

.page-support__channel-text {
  font-size: 16px;
  color: #1F2D3D;
  margin-bottom: 20px;
}

.page-support__btn-text {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-support__btn-text:hover {
  color: #1a4da6;
  text-decoration: underline;
}

/* FAQ Section */
.page-support__faq-section {
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
}

.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 */
}

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: #1F2D3D;
}

.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: #1F2D3D;
}

.page-support__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
}

.page-support__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Guides Section */
.page-support__guides-section {
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #ffffff;
}

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

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

.page-support__guide-card {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-support__guide-title {
  font-size: 20px;
  font-weight: bold;
  color: #2F6BFF;
  padding: 15px 20px 0;
  margin-bottom: 10px;
}

.page-support__guide-title a {
  color: #2F6BFF;
  text-decoration: none;
}

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

.page-support__guide-text {
  font-size: 15px;
  color: #1F2D3D;
  padding: 0 20px 20px;
}

/* Policies Section */
.page-support__policies-section {
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
}

.page-support__policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-support__policy-link {
  display: inline-block;
  padding: 12px 25px;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  text-decoration: none;
  color: #2F6BFF;
  font-weight: bold;
  font-size: 16px;
  background: #FFFFFF; /* Card BG */
  transition: all 0.3s ease;
}

.page-support__policy-link:hover {
  background: #e0e9ff;
  border-color: #2F6BFF;
  color: #1a4da6;
}

/* Bottom CTA Section */
.page-support__cta-bottom {
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%);
  color: #ffffff;
}

.page-support__cta-bottom .page-support__section-title,
.page-support__cta-bottom .page-support__section-description {
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-support__hero-image {
    max-width: 600px;
  }
  .page-support__channels-grid,
  .page-support__guides-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-support__section {
    padding: 40px 0;
  }
  .page-support__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-support__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-support__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-support__intro-text {
    font-size: 16px;
  }
  .page-support__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-support__channels-grid,
  .page-support__guides-grid {
    grid-template-columns: 1fr;
  }
  .page-support__channel-card,
  .page-support__guide-card {
    padding: 20px;
  }
  .page-support__channel-title {
    font-size: 20px;
  }
  .page-support__guide-title {
    font-size: 18px;
  }
  details.page-support__faq-item summary.page-support__faq-question {
    padding: 15px;
  }
  .page-support__faq-qtext {
    font-size: 15px;
  }
  .page-support__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-support__faq-item .page-support__faq-answer {
    padding: 0 15px 15px;
  }
  .page-support__policy-link {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 10px 15px;
  }
  /* Universal image responsive styles for mobile */
  .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;
  }
}

/* Reward Modal styles (part of initGameTrial JS requirement) */
.page-support__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  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;
  border-radius: 10px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-support__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.page-support__reward-modal-close:hover {
  color: #F00;
}

.page-support__reward-modal-title {
  font-size: 28px;
  color: #2F6BFF;
  margin-bottom: 15px;
}

.page-support__reward-modal-text {
  font-size: 16px;
  color: #1F2D3D;
  margin-bottom: 25px;
}

.page-support__reward-modal-cta {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  display: inline-block;
  transition: background 0.3s ease;
}

.page-support__reward-modal-cta:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-support--reward-open {
  overflow: hidden;
}