:root {
  --main-color: #11A84E;
  --accent-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* --- Base Styles & Layout --- */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color, will be overridden by specific sections if needed */
  background-color: var(--background); /* Body background from shared.css */
}

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

.page-sports__section-title {
  font-size: 2.5rem;
  color: var(--gold); /* Use gold for titles for emphasis */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-sports__section-title--white {
  color: var(--text-main); /* White for dark backgrounds */
}

.page-sports__paragraph {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-sports__paragraph--white {
  color: var(--text-main);
}

.page-sports__link-in-text {
  color: var(--gold);
  text-decoration: underline;
}

/* --- Buttons --- */
.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons adapt to container */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main); /* White text */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: var(--text-main); /* White text */
  border: 2px solid var(--gold);
}

.page-sports__btn-secondary:hover {
  background-color: var(--gold);
  color: var(--background);
}

.page-sports__btn-link {
  background-color: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 8px 15px;
  font-size: 1rem;
}

.page-sports__btn-link:hover {
  background-color: var(--gold);
  color: var(--background);
}

/* --- Hero Section --- */
.page-sports__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding-bottom: 60px; /* Padding for content below image */
  background-color: var(--deep-green); /* Fallback background for hero */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (1080/1920 = 0.5625) */
  overflow: hidden;
}

.page-sports__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-sports__hero-content {
  position: relative; /* Ensure content is above image filter */
  z-index: 2;
  text-align: center;
  padding: 40px 20px 0;
  max-width: 900px;
  color: var(--text-main);
}

.page-sports__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.page-sports__lead-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- General Section Styling --- */
.page-sports__intro-section,
.page-sports__categories-section,
.page-sports__promotions-section,
.page-sports__faq-section,
.page-sports__about-hi2999 {
  padding: 80px 0;
  background-color: var(--background); /* Default light background */
}

.page-sports__dark-bg {
  background-color: var(--deep-green); /* Deep green background for dark sections */
  color: var(--text-main); /* White text on dark background */
}

.page-sports__dark-bg .page-sports__paragraph {
  color: var(--text-secondary);
}

.page-sports__light-bg {
  background-color: var(--background);
  color: var(--text-secondary);
}

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

.page-sports__feature-item {
  text-align: center;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__feature-icon {
  width: 100%; /* Ensure images are responsive */
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

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

/* --- Video Section --- */
.page-sports__video-section {
  padding: 80px 0;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-sports__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px; /* Max width for video */
  margin: 40px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

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

.page-sports__category-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-sports__category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-sports__category-title {
  font-size: 1.6rem;
  color: var(--gold);
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-sports__category-description {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-sports__category-card .page-sports__btn-link {
  margin: 0 15px 20px;
  align-self: center;
}

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

.page-sports__live-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__live-feature-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__live-feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-sports__live-feature-title {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__live-feature-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

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

.page-sports__promo-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.page-sports__promo-title {
  font-size: 1.6rem;
  color: var(--gold);
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-sports__promo-description {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-sports__promo-card .page-sports__btn-primary {
  margin: 0 15px 20px;
  align-self: center;
}

/* --- FAQ Section --- */
.page-sports__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-sports__faq-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider);
  list-style: none; /* For details/summary */
}

.page-sports__faq-question::-webkit-details-marker { /* Hide default marker for details/summary */
  display: none;
}

.page-sports__faq-question:hover {
  background-color: var(--main-color);
}

.page-sports__faq-qtext {
  flex-grow: 1;
  color: var(--gold);
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--text-main);
}

.page-sports__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.page-sports__faq-answer p {
  text-align: left;
  margin-bottom: 10px;
}

.page-sports__faq-answer a {
  color: var(--gold);
  text-decoration: underline;
}

/* --- Call to Action Section --- */
.page-sports__cta-section {
  padding: 80px 0;
  text-align: center;
}

/* --- About hi2999 Section --- */
.page-sports__about-hi2999 {
  padding: 80px 0;
  text-align: center;
}

.page-sports__about-hi2999 .page-sports__paragraph {
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Image specific styles (minimal, focus on responsiveness) --- */
.page-sports img {
  display: block; /* Remove extra space below images */
  max-width: 100%;
  height: auto;
  object-fit: cover; /* Default object-fit */
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-sports__section-title {
    font-size: 2rem;
  }
  .page-sports__main-title {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }
  .page-sports__lead-text {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  .page-sports__container {
    padding: 0 15px;
  }

  .page-sports__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .page-sports__main-title {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-sports__lead-text {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link {
    width: 100%;
    padding: 10px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image responsiveness */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image containers responsiveness */
  .page-sports__hero-image-wrapper,
  .page-sports__feature-item,
  .page-sports__category-card,
  .page-sports__live-feature-item,
  .page-sports__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Video responsiveness */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video containers responsiveness */
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-sports__video-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-sports__feature-icon,
  .page-sports__live-feature-icon {
    max-width: 150px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .page-sports__category-image,
  .page-sports__promo-image {
    height: 180px;
  }

  .page-sports__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }

  .page-sports__faq-answer {
    padding: 15px;
  }

  .page-sports__hero-section,
  .page-sports__intro-section,
  .page-sports__categories-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__faq-section,
  .page-sports__cta-section,
  .page-sports__about-hi2999 {
    padding: 40px 0;
  }
}