.page-sports {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #F5F7FA); /* Default background, fallback to light grey */
}

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

.page-sports__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Fixed header spacing */
  padding-bottom: 40px;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

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

.page-sports__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-sports__main-title {
  font-size: 3.2em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-sports__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-link {
  background: transparent;
  color: #E53935;
  border: 1px solid #E53935;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-sports__btn-link:hover {
  background: #E53935;
  color: #ffffff;
}

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

.page-sports__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #333333;
}

.page-sports__dark-section {
  background: #E53935;
  color: #ffffff;
  padding: 60px 0;
}

.page-sports__dark-section .page-sports__section-title,
.page-sports__dark-section .page-sports__section-description {
  color: #ffffff;
}

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

.page-sports__about-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.page-sports__item-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-sports__item-text {
  line-height: 1.6;
  color: #f0f0f0;
}

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

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

.page-sports__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-sports__game-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #E53935;
}

.page-sports__game-title .page-sports__game-link {
  color: #E53935;
  text-decoration: none;
}

.page-sports__game-title .page-sports__game-link:hover {
  text-decoration: underline;
}

.page-sports__game-text {
  line-height: 1.6;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-sports__view-all-button-container {
  text-align: center;
  margin-top: 40px;
}

.page-sports__live-betting-section .page-sports__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-sports__live-betting-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__live-betting-features {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 400px;
}

.page-sports__feature-item {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #f0f0f0;
}

.page-sports__feature-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #FFD700; /* Gold checkmark */
  font-weight: bold;
}

.page-sports__promotions-section {
  padding: 60px 0;
}

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

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

.page-sports__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-sports__promotion-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #E53935;
}

.page-sports__promotion-title .page-sports__promotion-link {
  color: #E53935;
  text-decoration: none;
}

.page-sports__promotion-title .page-sports__promotion-link:hover {
  text-decoration: underline;
}

.page-sports__promotion-text {
  line-height: 1.6;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
}

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

.page-sports__why-choose-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.page-sports__why-choose-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
}

.page-sports__guide-section {
  padding: 60px 0;
}

.page-sports__guide-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap-reverse;
  justify-content: center;
}

.page-sports__guide-steps {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-sports__guide-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  gap: 15px;
}

.page-sports__step-number {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: 700;
  flex-shrink: 0;
}

.page-sports__step-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 5px;
  color: #E53935;
}

.page-sports__step-text {
  line-height: 1.6;
  color: #555555;
}

.page-sports__guide-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__faq-section {
  padding: 60px 0;
}

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

.page-sports__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  color: #ffffff;
  position: relative;
  list-style: none;
}

.page-sports__faq-question::-webkit-details-marker {
  display: none;
}

.page-sports__faq-question::marker {
  display: none;
}

.page-sports__faq-qtext {
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
  color: #ffffff;
}

.page-sports__faq-answer {
  padding: 0 25px 20px 25px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__main-title {
    font-size: 2.8em;
  }
  .page-sports__section-title {
    font-size: 2.2em;
  }
  .page-sports__hero-image {
    max-height: 500px;
  }
  .page-sports__live-betting-content,
  .page-sports__guide-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-sports__live-betting-features,
  .page-sports__guide-steps {
    max-width: 100%;
    text-align: center;
  }
  .page-sports__feature-item {
    padding-left: 0;
    text-align: left;
  }
  .page-sports__feature-item::before {
    left: -15px;
  }
  .page-sports__why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* HERO 主图区域 */
  .page-sports__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-sports__hero-image {
    max-height: 300px;
    margin-bottom: 15px;
  }
  .page-sports__main-title {
    font-size: 2em !important;
    margin-bottom: 10px;
  }
  .page-sports__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-sports__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 通用图片与容器 */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__game-card,
  .page-sports__promotion-card,
  .page-sports__about-item,
  .page-sports__why-choose-item,
  .page-sports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__game-image,
  .page-sports__promotion-image {
    height: 180px;
  }

  /* 按钮与按钮容器 */
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link,
  .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;
    text-align: center;
  }
  .page-sports__view-all-button-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Các môn thể thao phổ biến (Product-like section) */
  .page-sports__games-grid,
  .page-sports__promotion-grid,
  .page-sports__why-choose-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .page-sports__game-card, .page-sports__promotion-card {
    padding-left: 0;
    padding-right: 0;
  }

  /* Live Betting */
  .page-sports__live-betting-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-sports__live-betting-image {
    max-width: 100%;
  }
  .page-sports__live-betting-features {
    max-width: 100%;
    text-align: left;
  }
  .page-sports__feature-item {
    padding-left: 30px;
  }

  /* Guide Section */
  .page-sports__guide-content {
    flex-direction: column-reverse;
    gap: 20px;
  }
  .page-sports__guide-image {
    max-width: 100%;
  }
  .page-sports__guide-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
  .page-sports__step-text {
    font-size: 0.95em;
  }

  /* FAQ Section */
  .page-sports__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-sports__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Other content modules */
  .page-sports__section-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }
  .page-sports__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-sports__dark-section, .page-sports__guide-section, .page-sports__promotions-section {
    padding: 40px 0;
  }
}