/* 首页试玩布局 CSS - Bắt đầu (Bắt buộc phải có theo yêu cầu) */
@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;
  }
}

/* Các style chung cho overlay và modal (bắt buộc theo yêu cầu) */
.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;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 15px;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
}
.page-sports__reward-modal[hidden] {
  opacity: 0;
  pointer-events: none;
}
.page-sports__reward-modal-content {
  background: #10233F;
  color: #F3F8FF;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px 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: #F3F8FF;
  cursor: pointer;
  line-height: 1;
}

/* Style cho trang Thể Thao */
.page-sports {
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy); /* Body background from shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-sports__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

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

.page-sports__hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  box-sizing: border-box;
}

.page-sports__hero-title {
  font-size: 52px;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: 900;
  line-height: 1.1;
  max-width: 900px;
}

.page-sports__hero-description {
  font-size: 22px;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
}

/* CTA Button Base */
.page-sports__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__cta-button--primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
}

.page-sports__cta-button--primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
}

.page-sports__cta-button--secondary {
  background: #F2C14E; /* Gold */
  color: #113B7A; /* Main color */
  border: none;
}

.page-sports__cta-button--secondary:hover {
  background: #e0b03c;
  transform: translateY(-2px);
}

/* Dark Section */
.page-sports__dark-section {
  background-color: #10233F; /* Card BG */
  padding: 60px 0;
  margin-bottom: 40px;
}

/* Intro Section */
.page-sports__intro-section {
  padding: 60px 0;
}

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

.page-sports__feature-item {
  background: rgba(17, 59, 122, 0.5); /* Semi-transparent main color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84; /* Border color */
}

.page-sports__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__feature-title {
  font-size: 24px;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
  font-weight: 700;
}

.page-sports__feature-text {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* Categories Section */
.page-sports__categories-section {
  padding: 60px 0;
}

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

.page-sports__category-card {
  background: #10233F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84; /* Border color */
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-sports__card-title {
  font-size: 22px;
  color: #F2C14E; /* Gold */
  padding: 15px 20px 5px;
  font-weight: 700;
}

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

.page-sports__card-link {
  display: block;
  background-color: #1D5FD1; /* Auxiliary color */
  color: #F3F8FF;
  text-align: center;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border-radius: 0 0 10px 10px;
}

.page-sports__card-link:hover {
  background-color: #1144A6;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  padding: 60px 0;
}

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

.page-sports__live-betting-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-sports__live-betting-text {
  flex: 1;
}

.page-sports__live-betting-subtitle {
  font-size: 28px;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
}

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

.page-sports__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #F3F8FF;
  font-size: 17px;
}

.page-sports__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4FA8FF; /* Glow */
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
}

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

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

.page-sports__promo-card {
  background: #10233F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84; /* Border color */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-sports__promo-card .page-sports__card-image {
  height: 180px;
}

.page-sports__button-group {
    text-align: center;
    margin-top: 40px;
}

/* How to Start Section */
.page-sports__how-to-start {
  padding: 60px 0;
}

.page-sports__steps-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__step-item {
  background: rgba(17, 59, 122, 0.5); /* Semi-transparent main color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84; /* Border color */
}

.page-sports__step-title {
  font-size: 24px;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
  font-weight: 700;
}

.page-sports__step-description {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* Strategies Section */
.page-sports__strategies-section {
  padding: 60px 0;
}

.page-sports__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__strategy-item {
  background: #10233F; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #244D84; /* Border color */
}

.page-sports__strategy-title {
  font-size: 20px;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-sports__strategy-text {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

.page-sports__text-link {
  color: #4FA8FF; /* Glow */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: 20px;
  text-align: center;
  width: 100%;
}

.page-sports__text-link:hover {
  color: #2B73F6;
}

/* Responsible Gambling Section */
.page-sports__responsible-gambling {
  padding: 60px 0;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 60px 0;
}

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

details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #244D84; /* Border color */
  overflow: hidden;
  background: #10233F; /* Card BG */
}
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;
  color: #F3F8FF; /* Text Main */
  font-weight: 600;
}
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: rgba(29, 95, 209, 0.2); /* Semi-transparent auxiliary color */
}
.page-sports__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
}
.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  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: #08162B; /* Deep Navy */
  border-radius: 0 0 5px 5px;
  color: #AFC4E8; /* Text Secondary */
}

/* Final CTA Section */
.page-sports__final-cta {
  padding: 60px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1023px) {
  .page-sports__hero-title {
    font-size: 42px;
  }
  .page-sports__hero-description {
    font-size: 18px;
  }
  .page-sports__live-betting-content {
    flex-direction: column;
  }
  .page-sports__live-betting-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-sports__container {
    padding: 15px;
  }
  .page-sports__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-sports__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-sports__hero-section {
    padding-top: 0; /* Handled by body padding-top from shared.css */
  }
  .page-sports__hero-image-wrapper {
    height: 300px;
  }
  .page-sports__hero-title {
    font-size: 32px;
  }
  .page-sports__hero-description {
    font-size: 16px;
  }
  .page-sports__cta-button {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 10px; /* Add some spacing between buttons if stacked */
  }
  .page-sports__button-group {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
  }
  .page-sports__features-grid,
  .page-sports__category-grid,
  .page-sports__promo-grid,
  .page-sports__steps-list,
  .page-sports__strategy-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__feature-item,
  .page-sports__category-card,
  .page-sports__promo-card,
  .page-sports__step-item,
  .page-sports__strategy-item {
    padding: 20px;
  }
  .page-sports__feature-title,
  .page-sports__card-title,
  .page-sports__promo-card h3,
  .page-sports__step-title,
  .page-sports__strategy-title {
    font-size: 20px;
  }
  .page-sports__live-betting-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-sports__card-image {
    height: 150px;
  }
  .page-sports__live-betting-subtitle {
    font-size: 24px;
  }
  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: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-sports__faq-item .page-sports__faq-answer {
    padding: 0 15px 15px;
  }
  .page-sports__section, .page-sports__card, .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Các media query cho homepage (promo/hot-games/winner-ticker) - Bắt buộc phải có theo yêu cầu */
@media (min-width: 1024px) {
  .page-sports__promo-strip {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
  }
  .page-sports__promo-strip-item {
    display: flex;
    align-items: center;
    background: #10233F;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #244D84;
  }
  .page-sports__promo-strip-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 15px;
  }
  .page-sports__promo-strip-content {
    flex-grow: 1;
  }
  .page-sports__promo-strip-title {
    font-size: 18px;
    color: #F2C14E;
    margin-bottom: 5px;
  }
  .page-sports__promo-strip-text {
    font-size: 14px;
    color: #AFC4E8;
  }
  .page-sports__hot-games-section {
    padding: 40px 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 16px;
  }
  .page-sports__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 30px;
  }
  .page-sports__hot-games-card {
    background: #10233F;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #244D84;
    text-align: center;
    padding-bottom: 15px;
  }
  .page-sports__hot-games-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
  }
  .page-sports__hot-games-name {
    font-size: 16px;
    color: #F3F8FF;
    font-weight: 600;
    margin-bottom: 5px;
  }
  .page-sports__hot-games-rtp {
    font-size: 13px;
    color: #AFC4E8;
    margin-bottom: 10px;
  }
  .page-sports__hot-games-desc {
    font-size: 12px;
    color: #AFC4E8;
    padding: 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 36px;
  }
  .page-sports__winner-ticker-section {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 22, 43, 0.9);
    color: #F3F8FF;
    padding: 10px 0;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  }
  .page-sports__winner-ticker-content {
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
  }
  .page-sports__winner-ticker-item {
    margin-right: 30px;
    animation: ticker-scroll 30s linear infinite;
  }
  @keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
  }
}

@media (max-width: 768px) {
  .page-sports__promo-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 15px;
  }
  .page-sports__promo-strip-item {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__promo-strip-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .page-sports__hot-games-section {
    padding: 20px 0;
  }
  .page-sports__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-sports__hot-games-name,
  .page-sports__hot-games-rtp,
  .page-sports__hot-games-desc {
    display: none;
  }
  .page-sports__winner-ticker-section {
    font-size: 14px;
    padding: 8px 0;
  }
}