/* 首页试玩布局 CSS - Bắt buộc phải có theo yêu cầu, dù trang hiện tại là trang con Thể Thao */
@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;
  }
}

/* General styles for .page-sports */
.page-sports {
  color: #333333; /* Default text color for light body background */
  background: var(--secondary-color, #FFFFFF); /* Assuming body background is light based on default */
}

.page-sports__section-padding {
  padding: 40px 0;
}

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

.page-sports__section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

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

.page-sports__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

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

/* Hero Section */
.page-sports__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background: linear-gradient(180deg, #017439, #005a2d);
  position: relative;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
}

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

.page-sports__hero-content-wrapper {
  z-index: 2;
  max-width: 800px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-sports__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 15px;
  font-size: clamp(28px, 4vw, 48px); /* Using clamp for H1 font size */
}

.page-sports__hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-sports__btn-primary {
  background: #C30808; /* Color for Register/Login buttons */
  color: #FFFF00; /* Font color for Register/Login buttons */
  border: 2px solid #C30808;
  margin-right: 15px;
}

.page-sports__btn-primary:hover {
  background: #e00b0b;
  border-color: #e00b0b;
}

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

.page-sports__btn-secondary:hover {
  background: #017439;
  color: #FFFFFF;
}

.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Content Grid */
.page-sports__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-sports__content-grid--reverse {
  grid-template-areas: "image text";
}

.page-sports__content-grid--reverse .page-sports__text-block {
  grid-area: text;
}

.page-sports__content-grid--reverse .page-sports__image-block {
  grid-area: image;
}

.page-sports__text-block p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 16px;
}

.page-sports__image-block {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-sports__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-sports__category-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-sports__category-item:hover {
  transform: translateY(-5px);
}

.page-sports__category-image {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
}

.page-sports__category-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-sports__category-text {
  font-size: 15px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-sports__promo-card {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
}

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

.page-sports__promo-title {
  font-size: 20px;
  font-weight: 600;
  margin: 20px 15px 10px;
  color: #017439;
}

.page-sports__promo-text {
  font-size: 15px;
  line-height: 1.6;
  padding: 0 15px 20px;
  color: #555555;
}

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

/* Why Choose Us */
.page-sports__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-sports__benefit-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 80px;
  margin: 0 auto 20px;
  display: block;
}

.page-sports__benefit-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-sports__benefit-text {
  font-size: 14px;
  line-height: 1.6;
  color: #f0f0f0;
}

/* FAQ Section */
details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #f5f5f5;
}
.page-sports__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* CTA Section */
.page-sports__cta-section {
  background: linear-gradient(180deg, #005a2d, #017439);
  color: #FFFFFF;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-sports__section-padding {
    padding: 30px 0;
  }
  .page-sports__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  .page-sports__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-sports__hero-section {
    padding-bottom: 30px;
  }
  .page-sports__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-sports__hero-description {
    font-size: 16px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    margin: 0;
  }
  .page-sports__btn-primary {
    margin-bottom: 10px;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-sports__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-sports__content-grid--reverse {
    grid-template-areas: none;
  }

  .page-sports__text-block p {
    font-size: 15px;
  }

  .page-sports__categories-grid,
  .page-sports__promo-cards-grid,
  .page-sports__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__category-item,
  .page-sports__promo-card,
  .page-sports__benefit-item {
    padding: 20px;
  }
  .page-sports__category-title,
  .page-sports__promo-title {
    font-size: 18px;
  }
  .page-sports__category-text,
  .page-sports__promo-text,
  .page-sports__benefit-text {
    font-size: 14px;
  }
  .page-sports__promo-image {
    height: 180px;
  }
  .page-sports__category-image,
  .page-sports__benefit-icon {
    max-width: 100px;
    margin-bottom: 15px;
  }

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

  /* 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-image-wrapper,
  .page-sports__image-block,
  .page-sports__category-item,
  .page-sports__promo-card,
  .page-sports__benefit-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Homepage specific styles for promo strip and hot games (as per "必写清单"), even if not directly used by this page's HTML */
@media (max-width: 768px) {
  .page-sports__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
    gap: 10px;
    padding: 0 15px;
  }
  .page-sports__promo-strip-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .page-sports__promo-strip-card-image {
    width: 100%;
    height: auto;
    max-width: 80px;
    margin-bottom: 8px;
  }
  .page-sports__promo-strip-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
  }

  .page-sports__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }
  .page-sports__hot-games-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
  }
  .page-sports__hot-games-image {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #eee;
  }
  .page-sports__hot-games-content {
    padding: 10px;
  }
  .page-sports__hot-games-name,
  .page-sports__hot-games-rtp,
  .page-sports__hot-games-desc {
    display: none; /* Hide for mobile as per requirement */
  }
  .page-sports__hot-games-play-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    background: #017439;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
  }
  .page-sports__hot-games-play-btn:hover {
    background: #005a2d;
  }

  .page-sports__brand-intro {
    padding: 30px 15px;
    text-align: center;
    background: #f8f8f8;
  }
  .page-sports__brand-intro-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
  }
  .page-sports__brand-intro-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
  }
  .page-sports__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    text-align: center;
    z-index: 999;
  }
  body {
    padding-bottom: 40px; /* Adjust for fixed ticker */
  }
  main.page-content {
    margin-bottom: 40px; /* Adjust for fixed ticker */
  }
}

/* FAQ CSS for toggle icon (for details tag) */
details.page-sports__faq-item.open .page-sports__faq-toggle {
  content: '−';
}