:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --main-bg: #0A0A0A; /* This should align with var(--background-color) from shared.css */
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-sports {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page, light for dark background */
  background-color: var(--main-bg); /* Ensure consistency with shared.css body background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-sports__hero-section {
  display: flex;
  flex-direction: column; /* Stacks image wrapper and content vertically */
  align-items: center;
  padding: 10px 0 60px 0; /* Adjusted padding-top to 10px as per rules */
  text-align: center;
  overflow: hidden;
  background-color: var(--main-bg); /* Fallback background for the section */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Max height for the image area */
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__hero-image {
  position: relative; /* Changed from absolute to relative to be in normal flow */
  width: 100%;
  height: auto; /* Ensure aspect ratio is maintained */
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.4); /* Darken image for text readability, not changing color */
  min-height: 300px; /* Ensure image is visible */
}

.page-sports__hero-content {
  position: relative; /* Content is below the image in DOM, so no absolute positioning needed */
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px 20px; /* Added top padding to separate from image */
  background-color: var(--main-bg); /* Ensures content has a solid background */
  width: 100%; /* Make content block full width within container */
  box-sizing: border-box;
}

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

.page-sports__hero-description {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 30px;
}

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

.page-sports__cta-buttons--center {
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__category-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--glow-color);
}

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

.page-sports__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.page-sports__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-sports__text-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* General Section Styles */
.page-sports__about-section,
.page-sports__sports-categories,
.page-sports__live-betting-section,
.page-sports__promotions-section,
.page-sports__mobile-betting-section,
.page-sports__faq-section,
.page-sports__cta-final {
  padding: 60px 0;
  position: relative;
}

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

.page-sports__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-sports__section-text {
  font-size: 1.1rem;
  color: var(--text-main);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-sports__feature-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark card */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 10px var(--primary-color);
}

.page-sports__feature-title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-sports__feature-description {
  font-size: 1rem;
  color: var(--text-main);
}

/* Sports Categories */
.page-sports__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-sports__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 220px;
}

.page-sports__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 10px var(--glow-color);
}

.page-sports__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-sports__category-title {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-sports__category-description {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 20px;
  flex-grow: 1; /* Allows description to take available space */
}