.page-sports {
  font-family: 'Arial', sans-serif;
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy); /* Body background from shared.css */
}

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

.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px; /* Adjust as needed */
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #08162B; /* Deep Navy */
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-sports__hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #F3F8FF; /* Text Main */
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #AFC4E8; /* Text Secondary */
  line-height: 1.6;
}

.page-sports__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
  color: #F3F8FF; /* Text Main */
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-sports__section-description {
  font-size: 17px;
  color: #AFC4E8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-sports__intro-section, .page-sports__bonus-section, .page-sports__game-trial-section, .page-sports__cta-final-section {
  padding: 80px 0;
}

.page-sports__dark-section {
  background-color: #10233F; /* Card BG */
}

.page-sports__intro-section p {
  text-align: left;
  margin-bottom: 20px;
}

.page-sports__popular-sports-section {
  padding: 80px 0;
  background-color: var(--deep-navy);
}

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

.page-sports__sports-card {
  background-color: #10233F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #244D84; /* Border */
}

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

.page-sports__card-title {
  font-size: 24px;
  font-weight: 600;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-sports__card-description {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 25px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E; /* Gold */
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-sports__btn-secondary:hover {
  background-color: #F2C14E;
  color: #10233F; /* Card BG */
}

.page-sports__bonus-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-sports__bonus-text {
  flex: 1;
  text-align: left;
}

.page-sports__bonus-text p {
  font-size: 17px;
  color: #AFC4E8; /* Text Secondary */
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-sports__bonus-subtitle {
  font-size: 24px;
  font-weight: 600;
  color: #F3F8FF; /* Text Main */
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-sports__bonus-steps {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-sports__bonus-steps li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 17px;
  color: #AFC4E8; /* Text Secondary */
  line-height: 1.6;
}

.page-sports__bonus-step-num {
  background-color: #1D5FD1; /* Auxiliary Color */
  color: #F3F8FF; /* Text Main */
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  margin-right: 15px;
}

.page-sports__bonus-image-wrapper {
  flex: 0 0 400px;
  text-align: center;
}

.page-sports__bonus-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-sports__guide-section {
  padding: 80px 0;
  background-color: var(--deep-navy);
}

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

.page-sports__guide-card {
  background-color: #10233F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #244D84; /* Border */
}

.page-sports__guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #1D5FD1; /* Auxiliary Color */
  color: #F3F8FF; /* Text Main */
  font-size: 32px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(79, 168, 255, 0.5); /* Glow */
}

.page-sports__guide-title {
  font-size: 22px;
  font-weight: 600;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 10px;
}

.page-sports__guide-description {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  line-height: 1.6;
}

.page-sports__guide-cta {
  text-align: center;
  margin-top: 50px;
}

.page-sports__game-trial-section {
  padding: 80px 0;
  background-color: #10233F; /* Card BG */
}

.page-sports__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  max-width: 960px; /* Limit trial width */
  margin: 40px auto 0; /* Center it */
}

.page-sports__game-trial-viewport {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9/16 * 100%) */
  height: 0;
  overflow: hidden;
}

.page-sports__game-trial-frame {
  position: absolute;
  top: 0;
  left: 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.85); /* Dark overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.page-sports__game-trial-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  display: none !important; /* Ensure it's fully hidden */
}

.page-sports__game-trial-start {
  background: linear-gradient(180deg, #F2C14E 0%, #D4AF37 100%); /* Gold gradient */
  color: #10233F; /* Dark text on gold */
  border: none;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(242, 193, 78, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

.page-sports__game-trial-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(242, 193, 78, 0.6);
}

.page-sports__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-sports__reward-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.page-sports__reward-modal-content {
  background-color: #10233F; /* Card BG */
  color: #F3F8FF; /* Text Main */
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid #F2C14E; /* Gold */
}

.page-sports__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  color: #F3F8FF; /* Text Main */
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}

.page-sports__reward-modal-title {
  font-size: 32px;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
}

.page-sports__reward-modal-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #AFC4E8; /* Text Secondary */
}

.page-sports__faq-section {
  padding: 80px 0;
  background-color: var(--deep-navy);
}

.page-sports__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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;
  color: #F3F8FF; /* Text Main */
}

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: #1B3357; /* Divider - slightly lighter */
}

.page-sports__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-sports__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-sports__faq-item .page-sports__faq-answer {
  padding: 0 25px 25px;
  background: #08162B; /* Deep Navy */
  border-top: 1px solid #1B3357; /* Divider */
  border-radius: 0 0 10px 10px;
  color: #AFC4E8; /* Text Secondary */
  font-size: 16px;
  line-height: 1.7;
}

.page-sports__cta-final-section {
  text-align: center;
  padding-bottom: 100px;
}

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

.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;
}

/* --- Responsive Design --- */

/* Tablet/Small Desktop (max-width: 1023px) - Homepage Trial Reset (Mandatory Inclusion) */
@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;
  }
}

/* Desktop (min-width: 1024px) - Homepage 3-column Layout (Mandatory Inclusion) */
@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;
  }
  .page-sports__promo-strip {
    margin-top: 16px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
  }
  .page-sports__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
  .page-sports__promo-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 15px;
  }
  .page-sports__promo-card-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
  }
  .page-sports__promo-card-content {
    flex-grow: 1;
  }
  .page-sports__hot-games-section {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
  }
  .page-sports__hot-games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  .page-sports__hot-game-card {
    text-align: center;
  }
  .page-sports__hot-game-name,
  .page-sports__hot-game-rtp,
  .page-sports__hot-game-desc {
    display: block;
  }
}

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

  .page-sports__hero-title {
    font-size: 36px;
  }

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

  .page-sports__btn-primary {
    padding: 12px 25px;
    font-size: 16px;
  }

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

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

  .page-sports__intro-section, .page-sports__bonus-section, .page-sports__game-trial-section, .page-sports__cta-final-section, .page-sports__popular-sports-section, .page-sports__guide-section, .page-sports__faq-section {
    padding: 40px 0;
  }

  .page-sports__sports-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .page-sports__card-title {
    font-size: 20px;
  }

  .page-sports__card-description {
    font-size: 14px;
  }

  .page-sports__btn-secondary {
    font-size: 14px;
    padding: 10px 20px;
  }

  .page-sports__bonus-content {
    flex-direction: column-reverse;
    gap: 30px;
  }

  .page-sports__bonus-image-wrapper {
    flex: none;
    width: 100%;
  }

  .page-sports__bonus-subtitle {
    font-size: 20px;
  }

  .page-sports__bonus-text p, .page-sports__bonus-steps li {
    font-size: 15px;
  }

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

  .page-sports__guide-icon {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }

  .page-sports__guide-title {
    font-size: 20px;
  }

  .page-sports__game-trial-shell {
    margin: 20px auto 0;
  }

  .page-sports__game-trial-start {
    font-size: 18px;
    padding: 12px 25px;
  }

  .page-sports__reward-modal-content {
    padding: 25px;
    max-width: 90%;
  }

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

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

  details.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;
    width: 25px;
  }

  .page-sports__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }

  /* Mobile specific for promo strip (mandatory inclusion) */
  .page-sports__promo-strip-track {
    grid-template-columns: repeat(4,1fr);
    overflow-x:hidden;
    gap: 10px;
  }
  .page-sports__promo-card {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }
  .page-sports__promo-card-image {
    margin: 0 auto 10px;
  }

  /* Mobile specific for hot games (mandatory inclusion) */
  .page-sports__hot-games-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 15px;
  }
  .page-sports__hot-game-card img {
    width: 100%;
    height: auto;
  }
  .page-sports__hot-game-name,
  .page-sports__hot-game-rtp,
  .page-sports__hot-game-desc {
    display: none; /* Hide for mobile */
  }

  /* Mobile specific for brand intro (mandatory inclusion) */
  .page-sports__brand-intro {
    display: block; /* Ensure it's visible if hidden on desktop */
  }

  /* Mobile specific for winner ticker (mandatory inclusion) */
  .page-sports__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 15px;
    box-sizing: border-box;
  }
  body {
    padding-bottom: 50px; /* Adjust if ticker is present */
  }

  /* General image and container rules 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__sports-grid,
  .page-sports__guide-steps,
  .page-sports__bonus-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsive for mobile */
  .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% !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;
    display: flex;
    flex-direction: column;
  }
}

/* Hidden utility class */
.is-hidden {
  display: none !important;
  pointer-events: none !important;
  opacity: 0;
  visibility: hidden;
}

.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;}