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

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

.page-sports__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #E53935; /* Main Brand Color */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sports__section-title--light {
  color: #ffffff;
}

.page-sports__section-description {
  font-size: 18px;
  text-align: center;
  color: #333333;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__section-description--light {
  color: #f0f0f0;
}

.page-sports__card {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

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

.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button Gradient */
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.4);
}

.page-sports__btn-secondary {
  background: #FFFFFF;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-sports__btn-secondary:hover {
  background: #E53935;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.2);
}

.page-sports__btn-link {
  background: none;
  color: #E53935;
  padding: 0;
  font-size: 16px;
  text-decoration: underline;
  font-weight: 600;
}

.page-sports__btn-link:hover {
  color: #FF5A4F;
}

.page-sports__text-link {
  color: #E53935;
  text-decoration: underline;
}

.page-sports__text-link--light {
  color: #FF5A4F;
}

.page-sports__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
}

.page-sports__cta-buttons--center {
  margin-top: 40px;
}

/* Hero Section */
.page-sports__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-sports__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-sports__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-sports__hero-description {
  font-size: 20px;
  color: #333333;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* Features Section */
.page-sports__features-section {
  padding: 50px 0;
}

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

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

.page-sports__feature-heading {
  font-size: 22px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
}

.page-sports__feature-text {
  font-size: 16px;
  color: #333333;
  flex-grow: 1;
}

/* Categories Section */
.page-sports__categories-section {
  padding: 50px 0;
  background: #FFFFFF;
}

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

.page-sports__category-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.page-sports__category-heading {
  font-size: 24px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
}

.page-sports__category-text {
  font-size: 16px;
  color: #333333;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Trial Section */
.page-sports__trial-section {
  padding: 60px 0;
  background: #E53935; /* Dark brand color */
  color: #ffffff;
  text-align: center;
}

.page-sports__game-trial-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9; /* Default aspect ratio for video/game */
  margin: 40px auto 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__game-trial-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

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

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

.page-sports__game-trial-start {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
  cursor: pointer;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

.page-sports__game-trial-start:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.5);
}

.page-sports__trial-note {
  font-size: 15px;
  color: #ffffff;
}

.page-sports__trial-note--light {
  color: #f0f0f0;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 50px 0;
}

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

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

.page-sports__promo-heading {
  font-size: 22px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
}

.page-sports__promo-text {
  font-size: 16px;
  color: #333333;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guide Section */
.page-sports__guide-section {
  padding: 60px 0;
  background: #E53935;
  color: #ffffff;
}

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

.page-sports__step-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__step-number {
  width: 60px;
  height: 60px;
  background: #FF5A4F;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__step-heading {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-sports__step-heading--light {
  color: #ffffff;
}

.page-sports__step-text {
  font-size: 16px;
}

.page-sports__step-text--light {
  color: #f0f0f0;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 50px 0;
  background: #F5F7FA;
}

details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  overflow: hidden;
  background: #fff;
  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 25px;
  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: #f5f5f5;
}
.page-sports__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-sports__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #E53935;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}
details.page-sports__faq-item .page-sports__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #333333;
  font-size: 16px;
}

/* Global image responsiveness */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Reward Modal (for game trial) */
.page-sports__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.3s ease;
}

.page-sports__reward-modal[hidden] {
  display: none;
}

.page-sports__reward-modal-content {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.page-sports__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  color: #333333;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.page-sports__reward-modal-title {
  font-size: 28px;
  color: #E53935;
  margin-bottom: 20px;
}

.page-sports__reward-modal-text {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
}

/* Specific CSS for fixed header padding - this page relies on shared.css for body padding */
/* .page-sports { padding-top: var(--header-offset, 122px); } */ /* Not needed if body already has it */

/* --- REQUIRED MEDIA QUERIES --- */
/* REQUIRED: @media (max-width: 1023px) for trial reset */
@media (max-width: 1023px) {
  .page-sports__hero-section {
    padding-top: 0; /* Remove top padding for hero on smaller screens */
  }
  .page-sports__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-sports__main-title {
    font-size: 38px;
  }
  .page-sports__hero-description {
    font-size: 18px;
  }
  .page-sports__feature-grid, .page-sports__category-grid, .page-sports__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-sports__game-trial-wrapper {
    aspect-ratio: 1024 / 768; /* Specific aspect ratio for trial on tablet */
    max-width: 768px;
  }
  .page-sports__game-trial-start {
    font-size: 20px;
    padding: 12px 25px;
  }
  .page-sports__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .page-sports__step-number {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
  .page-sports__faq-qtext {
    font-size: 17px;
  }
  .page-sports__faq-toggle {
    font-size: 26px;
  }
  .page-sports__faq-answer {
    font-size: 15px;
  }

  /* REQUIRED HOMEPAGE-SPECIFIC TRIAL CSS (even if not homepage, must be included) */
  .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;
  }
}

/* REQUIRED: @media (min-width: 1024px) for PC three-column layout */
@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;
  }
  /* Additional styles for non-homepage sections to adapt to wider screens */
  .page-sports__main-title {
    font-size: 52px;
  }
  .page-sports__hero-description {
    font-size: 22px;
  }
  .page-sports__section-title {
    font-size: 42px;
  }
}

/* REQUIRED: @media (max-width: 768px) for mobile responsiveness */
@media (max-width: 768px) {
  .page-sports__container {
    padding: 0 15px;
  }

  .page-sports__main-title {
    font-size: 32px;
  }

  .page-sports__hero-description {
    font-size: 16px;
  }

  .page-sports__section-title {
    font-size: 28px;
  }

  .page-sports__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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__feature-grid, .page-sports__category-grid, .page-sports__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-sports__feature-heading, .page-sports__category-heading, .page-sports__promo-heading {
    font-size: 20px;
  }

  .page-sports__feature-text, .page-sports__category-text, .page-sports__promo-text {
    font-size: 15px;
  }

  .page-sports__game-trial-wrapper {
    aspect-ratio: 4 / 3; /* More mobile-friendly aspect ratio */
    margin-top: 30px;
  }

  .page-sports__game-trial-start {
    font-size: 18px;
    padding: 10px 20px;
  }

  .page-sports__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-sports__step-item {
    padding: 0 10px;
  }

  .page-sports__step-number {
    width: 45px;
    height: 45px;
    font-size: 26px;
  }

  .page-sports__faq-item summary.page-sports__faq-question {
    padding: 15px 20px;
  }
  .page-sports__faq-qtext {
    font-size: 16px;
  }
  .page-sports__faq-toggle {
    font-size: 24px;
  }
  .page-sports__faq-answer {
    padding: 0 20px 20px;
  }

  /* Universal image responsiveness for mobile */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__features-section,
  .page-sports__categories-section,
  .page-sports__trial-section,
  .page-sports__promotions-section,
  .page-sports__guide-section,
  .page-sports__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px;
    padding-right: 15px; */ /* Container already handles this */
  }
}

/* REQUIRED HOMEPAGE PROMO STRIP (even if not homepage) */
.page-sports__promo-strip {
  margin-top: 16px;
}
.page-sports__promo-strip-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  overflow-x: hidden; /* Ensure no horizontal scroll for this strip */
}

/* REQUIRED HOMEPAGE HOT GAMES (even if not homepage) */
.page-sports__hot-games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  max-width: 1280px;
  margin: 0 auto;
}
.page-sports__hot-games-item img {
  width: 100%;
  height: auto;
}
.page-sports__hot-games-name, .page-sports__hot-games-rtp, .page-sports__hot-games-desc {
  text-align: center;
}

/* REQUIRED HOMEPAGE WINNER TICKER (even if not homepage) */
.page-sports__winner-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 0;
  z-index: 999;
}

/* REQUIRED HOMEPAGE BRAND INTRO (even if not homepage) */
.page-sports__brand-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-sports__brand-intro h1 {
  font-size: 2em;
}
.page-sports__brand-intro-trust-items {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

/* REQUIRED HOMEPAGE JACKPOT (even if not homepage) */
.page-sports__hero-jackpot-claim {
  background: #c62828 !important;
  color: #fff !important;
}

/* REQUIRED HOMEPAGE GAME TRIAL SHELL (even if not homepage) */
.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;
}

/* REQUIRED CSS for .is-hidden */
.is-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

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