.page-sports {
  --primary-color: #FFD700;
  --secondary-color: #1A1A1A;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
  
  color: var(--text-on-dark); /* Default text color for the page, as body is dark */
  background-color: var(--secondary-color);
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden;
  text-align: center;
  box-sizing: border-box;
}

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

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-sports__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-on-dark);
}

.page-sports__main-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__title-description {
  font-size: 1.3em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--text-on-dark);
}

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

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure text breaks */
  box-sizing: border-box;
  max-width: 100%;
}

.page-sports__btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color); /* Gold background, dark text for contrast */
  border: 2px solid var(--primary-color);
}

.page-sports__btn-primary:hover {
  background: darken(var(--primary-color), 10%);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__btn-secondary {
  background: transparent;
  color: var(--primary-color); /* Dark text on dark bg, but primary color for visibility */
  border: 2px solid var(--primary-color);
}

.page-sports__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-sports__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.page-sports__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__light-bg {
  background-color: var(--card-bg-light);
  color: var(--text-on-light);
}

.page-sports__dark-bg {
  background-color: var(--secondary-color);
  color: var(--text-on-dark);
}

/* Overview Section */
.page-sports__overview-section {
  padding: 80px 0;
}

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

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

.page-sports__sport-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.page-sports__sport-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-sports__sport-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
  padding: 0 20px;
}

.page-sports__sport-text {
  font-size: 1em;
  line-height: 1.6;
  text-align: center;
  padding: 0 20px 20px;
  flex-grow: 1;
}

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

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

.page-sports__live-content {
  flex: 1;
  padding-right: 40px;
}

.page-sports__live-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__live-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-sports__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Advantages Section */
.page-sports__advantages-section {
  padding: 80px 0;
}

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

.page-sports__advantage-card {
  background: var(--card-bg-light);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-on-light);
}

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

.page-sports__advantage-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-sports__advantage-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

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

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

.page-sports__promo-card {
  background: var(--card-bg-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-on-light);
}

.page-sports__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-sports__promo-title {
  font-size: 1.8em;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--primary-color);
}

.page-sports__promo-text {
  font-size: 1em;
  line-height: 1.6;
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 0;
}

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

.page-sports__guide-item {
  background: var(--card-bg-light);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-on-light);
  display: flex;
  flex-direction: column;
}

.page-sports__guide-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-sports__guide-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-sports__guide-item p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: var(--text-on-light);
}

.page-sports__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-sports__faq-question:active {
  background: #eeeeee;
}

.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-on-light);
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9;
  color: var(--text-on-light);
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__main-title {
    font-size: 3em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__hero-section {
    min-height: 500px;
  }
  .page-sports__live-betting-section .page-sports__container {
    flex-direction: column;
  }
  .page-sports__live-content {
    padding-right: 0;
    margin-bottom: 40px;
  }
  .page-sports__live-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 400px;
    padding: 60px 15px;
  }
  .page-sports__hero-content {
    padding: 0 15px;
  }
  .page-sports__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-sports__title-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
  }
  
  .page-sports__container {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  
  .page-sports__sport-grid, .page-sports__advantage-grid, .page-sports__promo-grid, .page-sports__guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-sports__sport-card, .page-sports__advantage-card, .page-sports__promo-card, .page-sports__guide-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-sports__sport-image, .page-sports__promo-image, .page-sports__live-image, .page-sports__advantage-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .page-sports__faq-question {
    padding: 15px 20px;
  }
  .page-sports__faq-question h3 {
    font-size: 1em;
  }
  .page-sports__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 20px !important;
  }
  .page-sports__live-content, .page-sports__live-image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sports__live-betting-section .page-sports__container {
    flex-direction: column;
  }
  .page-sports__live-content {
    padding-right: 0;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: 1.8em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__sub-title {
    font-size: 1.4em;
  }
}