/* Base styles for the sports page */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--background-color);
}

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

.page-sports__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-sports__section-description {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Hero Section */
.page-sports__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--deep-green);
  overflow: hidden;
}

.page-sports__hero-section .page-sports__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-sports__hero-content {
  flex: 1;
  padding-right: 20px;
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sports__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
}

.page-sports__hero-image-wrapper {
  flex: 1;
  min-width: 50%;
  display: flex;
  justify-content: flex-end;
}

.page-sports__hero-image {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.page-sports__btn-secondary:hover {
  background-color: rgba(242, 193, 78, 0.1);
  color: var(--text-main);
}

/* Why Choose Section */
.page-sports__why-choose-section {
  padding: 80px 0;
  background-color: var(--card-b-g);
}

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

.page-sports__feature-card {
  background-color: var(--background-color);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__feature-icon {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-sports__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-sports__feature-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Sports Types Section */
.page-sports__types-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

.page-sports__sport-card {
  background-color: var(--card-b-g);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__sport-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-sports__sport-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  padding: 20px 20px 10px;
}

.page-sports__sport-text {
  font-size: 16px;
  color: var(--text-secondary);
  padding: 0 20px 20px;
  line-height: 1.7;
}

/* Live Betting CTA Section */
.page-sports__live-betting-cta {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-green);
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

.page-sports__promo-card {
  background-color: var(--card-b-g);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  text-align: center;
}

.page-sports__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-sports__promo-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* How to Start Section */
.page-sports__how-to-start-section {
  padding: 80px 0;
  background-color: var(--deep-green);
}

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

.page-sports__step-card {
  background-color: var(--card-b-g);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.page-sports__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--gold);
  color: #000;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-sports__step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-sports__step-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background-color: var(--card-b-g);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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-color: rgba(46, 122, 78, 0.2);
}

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

.page-sports__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-sports__faq-item .page-sports__faq-answer {
  padding: 0 25px 25px;
  background-color: var(--background-color);
  border-radius: 0 0 12px 12px;
}

.page-sports__faq-answer p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Final CTA Section */
.page-sports__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-green);
}

/* Responsive Design */
@media (max-width: 1023px) {
  .page-sports__hero-section .page-sports__container {
    flex-direction: column;
    text-align: center;
  }

  .page-sports__hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .page-sports__main-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .page-sports__hero-image-wrapper {
    justify-content: center;
  }

  /* Mandatory homepage game trial CSS (even if not used in this specific HTML) */
  .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;
    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) {
  /* Mandatory homepage game trial CSS (even if not used in this specific HTML) */
  .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;
  }
  /* PC specific layout for other sections (not homepage specific but common large screen) */
  .page-sports__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .page-sports__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-sports__section-title {
    font-size: 28px;
  }

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

  .page-sports__hero-section,
  .page-sports__why-choose-section,
  .page-sports__types-section,
  .page-sports__live-betting-cta,
  .page-sports__promotions-section,
  .page-sports__how-to-start-section,
  .page-sports__faq-section,
  .page-sports__cta-final-section {
    padding: 40px 0;
  }

  .page-sports__hero-content {
    margin-bottom: 30px;
  }

  .page-sports__main-title {
    font-size: 2.2rem;
  }

  .page-sports__subtitle {
    font-size: 1rem;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__features-grid,
  .page-sports__sports-grid,
  .page-sports__promo-cards-grid,
  .page-sports__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__feature-card,
  .page-sports__sport-card,
  .page-sports__promo-card,
  .page-sports__step-card {
    padding: 20px;
  }

  .page-sports__feature-title,
  .page-sports__sport-title,
  .page-sports__promo-title,
  .page-sports__step-title {
    font-size: 20px;
  }

  .page-sports__feature-description,
  .page-sports__sport-text,
  .page-sports__promo-desc,
  .page-sports__step-description {
    font-size: 15px;
  }

  .page-sports__sport-image {
    height: 180px;
  }

  details.page-sports__faq-item summary.page-sports__faq-question {
    padding: 15px;
  }

  .page-sports__faq-qtext {
    font-size: 16px;
  }

  .page-sports__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
  }

  details.page-sports__faq-item .page-sports__faq-answer {
    padding: 0 15px 15px;
  }

  .page-sports__faq-answer p {
    font-size: 15px;
  }

  /* Mandatory mobile image adaptation */
  .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__container,
  .page-sports__why-choose-section .page-sports__container,
  .page-sports__types-section .page-sports__container,
  .page-sports__live-betting-cta .page-sports__container,
  .page-sports__promotions-section .page-sports__container,
  .page-sports__how-to-start-section .page-sports__container,
  .page-sports__faq-section .page-sports__container,
  .page-sports__cta-final-section .page-sports__container,
  .page-sports__features-grid,
  .page-sports__sports-grid,
  .page-sports__promo-cards-grid,
  .page-sports__steps-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mandatory mobile button adaptation */
  .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;
  }
  .page-sports__cta-buttons {
    display: flex;
    flex-direction: column; 
  }

  /* Mandatory homepage specific media queries (even if not used in this HTML) */
  .page-sports__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: hidden;
  }
  .page-sports__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-sports__hot-games-item-name,
  .page-sports__hot-games-item-rtp,
  .page-sports__hot-games-item-desc {
    display: none;
  }
  .page-sports__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
  }
}

/* Custom Colors */
:root {
  --card-b-g: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Default color for page content based on body background (assuming dark) */
.page-sports {
  color: var(--text-main);
  background-color: var(--background-color);
}

/* Dark background sections */
.page-sports__dark-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-sports__dark-section .page-sports__section-title {
  color: var(--gold);
}

.page-sports__dark-section .page-sports__section-description {
  color: var(--text-secondary);
}

/* Reward Modal styles (mandatory for JS initGameTrial) */
.page-sports__reward-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  background-color: var(--card-b-g);
  border: 1px solid var(--gold);
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  padding: 30px;
  max-width: 400px;
  text-align: center;
  color: var(--text-main);
  box-sizing: border-box;
}

.page-sports__reward-modal h3 {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 15px;
}

.page-sports__reward-modal p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.page-sports__reward-modal-close {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.page-sports__reward-modal-close:hover {
  background-color: #d4a940;
}

/* Game trial overlay (mandatory for JS initGameTrial) */
.page-sports__game-trial-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--text-main);
  z-index: 5;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

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

.page-sports__game-trial-overlay h3 {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 15px;
}

.page-sports__game-trial-overlay p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-sports__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

/* The following are for homepage specific sections, included as per instructions, but not directly used in sports.html's current HTML structure. */
/* Promo strip (mandatory for 768px media query) */
.page-sports__promo-strip-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  overflow-x: hidden;
}

/* Hot games grid (mandatory for 768px media query) */
.page-sports__hot-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

/* Winner ticker (mandatory for 768px media query) */
.page-sports__winner-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--text-main);
  padding: 10px 0;
  text-align: center;
  z-index: 100;
}

/* Fixed header spacing (applied to body via shared.css) */
/* No padding-top on first section of page-sports, relying on body padding */