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

.page-sports__section-spacing {
  padding: 40px 20px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-sports__section-header {
  text-align: center;
  margin-bottom: 30px;
}

.page-sports__section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
}

.page-sports__section-description {
  font-size: clamp(15px, 2.5vw, 18px);
  color: #1F2D3D;
  max-width: 800px;
  margin: 0 auto;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #FFFFFF;
  border: none;
}

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

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

.page-sports__btn-secondary:hover {
  background: #F4F7FB;
  color: #2F6BFF;
  border-color: #4A8BFF;
}

.page-sports__card {
  background: #FFFFFF; /* Card B G */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #1F2D3D;
}

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

.page-sports__card-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #1F2D3D;
}

.page-sports__card-description {
  font-size: 15px;
  color: #1F2D3D;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: clamp(300px, 50vw, 600px); /* Responsive height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-align: center;
}

.page-sports__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.page-sports__hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: clamp(16px, 2.5vw, 20px);
  margin-bottom: 30px;
}

/* Betting Simulator Section */
.page-sports__betting-simulator {
    background-color: #F4F7FB;
}

.page-sports__game-trial-shell {
  border: 1px solid #D6E2FF;
  border-radius: 10px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-sports__game-trial-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Default aspect ratio */
  overflow: hidden;
}

.page-sports__game-trial-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.page-sports__game-trial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.page-sports__game-trial-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  display: none !important; /* Force hide */
}

.page-sports__game-trial-start {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.4);
  touch-action: manipulation;
}

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

.page-sports__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-sports__reward-modal-content {
  background: #FFFFFF;
  color: #1F2D3D;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #1F2D3D;
  cursor: pointer;
  font-weight: bold;
}

.page-sports__modal-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2F6BFF;
}

.page-sports__modal-description {
  font-size: 16px;
  margin-bottom: 25px;
}

.page-sports__modal-cta {
  padding: 12px 25px;
}

/* Intro Section */
.page-sports__content-grid {
  display: flex;
  align-items: center;
  gap: 30px;
}

.page-sports__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-sports__content-text,
.page-sports__content-image {
  flex: 1;
}

.page-sports__content-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Popular Sports Grid */
.page-sports__sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-sports__sport-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Live Betting Section */
.page-sports__dark-section {
  background-color: #2F6BFF;
  color: #FFFFFF;
  padding: 60px 20px;
}

.page-sports__dark-section .page-sports__section-title,
.page-sports__dark-section .page-sports__section-description {
  color: #FFFFFF;
}

.page-sports__dark-section .page-sports__btn-secondary {
  background: #FFFFFF;
  color: #2F6BFF;
  border-color: #FFFFFF;
}

.page-sports__dark-section .page-sports__btn-secondary:hover {
  background: #F4F7FB;
  border-color: #F4F7FB;
}

/* Promotions Section */
.page-sports__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-sports__promo-card img {
  width: 100%;
  
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-sports__cta-container {
  text-align: center;
  margin-top: 40px;
}

/* Features Section */
.page-sports__light-bg {
  background-color: #FFFFFF;
}

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

.page-sports__feature-item {
  text-align: center;
  padding: 30px;
}

.page-sports__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2F6BFF;
}

/* FAQ Section */
details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card B G */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
details.page-sports__faq-item summary.page-sports__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-sports__faq-item summary.page-sports__faq-question::-webkit-details-marker {
  display: none;
}
details.page-sports__faq-item summary.page-sports__faq-question:hover {
  background: #F4F7FB;
}
.page-sports__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}
.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-sports__faq-item .page-sports__faq-answer {
  padding: 0 20px 20px;
  background: #F4F7FB;
  border-radius: 0 0 5px 5px;
  color: #1F2D3D;
}

.page-sports__faq-answer p {
    margin-bottom: 0;
}

/* CTA Footer */
.page-sports__cta-footer {
  text-align: center;
  background-color: #2F6BFF;
  color: #FFFFFF;
  padding: 60px 20px;
}

.page-sports__cta-footer .page-sports__cta-title {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-sports__cta-footer .page-sports__cta-description {
  font-size: clamp(16px, 2.5vw, 20px);
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-sports__cta-footer .page-sports__cta-description a {
    color: #A5C4FF;
    text-decoration: underline;
}

.page-sports__cta-footer .page-sports__cta-description a:hover {
    color: #FFFFFF;
}

/* --- General Image & Button Responsiveness --- */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-sports__cta-button,
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports a[class*="button"],
.page-sports a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__cta-buttons,
.page-sports__button-group,
.page-sports__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- FIXED HOMEPAGE TRIAL LAYOUT CSS (AS REQUIRED) --- */
/* This section is included verbatim as per strict instructions, even if the HTML structure for this non-homepage page does not fully utilize all of these classes. */
@media (max-width: 1023px) {
  .page-sports__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-sports__hero-brand,
  .page-sports__hero-jackpot {
    display: none !important;
  }
  .page-sports__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-sports__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-sports__game-trial-topbar,
  .page-sports__game-trial-bottombar {
    display: none !important;
  }
  .page-sports__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-sports__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-sports__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-sports__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-sports__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-sports__hero-brand,
  .page-sports__hero-jackpot,
  .page-sports__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-sports__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-sports__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-sports__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-sports__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-sports__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

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

  .page-sports__section-spacing {
    padding: 25px 15px;
  }

  .page-sports__hero-section {
    height: clamp(250px, 60vw, 400px);
  }

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

  .page-sports__hero-title {
    font-size: clamp(28px, 6vw, 36px);
  }

  .page-sports__hero-description {
    font-size: clamp(15px, 3vw, 18px);
    margin-bottom: 20px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports a[class*="button"],
  .page-sports 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;
  }

  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    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-sports__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-sports__section, .page-sports__card, .page-sports__container,
  .page-sports__content-grid, .page-sports__sports-grid, .page-sports__promo-grid, .page-sports__features-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column;
  }

  .page-sports__content-grid {
    gap: 20px;
  }

  .page-sports__sport-card img, .page-sports__promo-card img {
    
  }

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

  .page-sports__cta-footer .page-sports__cta-title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .page-sports__cta-footer .page-sports__cta-description {
    font-size: clamp(15px, 3vw, 18px);
  }

  .page-sports__reward-modal-content {
    padding: 20px;
    margin: 0 15px;
  }

  .page-sports__modal-title {
    font-size: 24px;
  }
}

/* Additional styles for game trial if not using homepage hero */
.page-sports__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-sports__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-sports__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

.page-sports__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius:10px;
  overflow:hidden;
}
.page-sports__reward-modal{
  position:fixed;
  inset:0;
  z-index:10000;
}