.page-sports {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--secondary-color); /* Matches body background */
}

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

.page-sports__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by header */
}

.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);
  z-index: 2;
}

.page-sports__hero-content-wrapper {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-sports__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-sports__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-sports__hero-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: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background-color: #FFD700;
  color: #1A1A1A;
  border: 2px solid #FFD700;
}

.page-sports__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

.page-sports__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
}

.page-sports__btn-link {
  background-color: transparent;
  color: #FFD700;
  border: none;
  padding: 10px 0;
  font-size: 1em;
  text-decoration: underline;
}

.page-sports__btn-link:hover {
  color: #e6c200;
}

/* Video Section */
.page-sports__video-section {
  background-color: #1A1A1A;
  padding: 80px 0;
  text-align: center;
}

.page-sports__video-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.page-sports__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

/* Features Section */
.page-sports__features-section {
  background-color: #1A1A1A;
  padding: 80px 0;
}

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

.page-sports__feature-card {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-sports__feature-card:hover {
  transform: translateY(-10px);
}

.page-sports__feature-card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__feature-card-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Sports Categories Section */
.page-sports__sports-categories-section {
  background-color: #1A1A1A;
  padding: 80px 0;
}

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

.page-sports__sport-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-sports__sport-card:hover {
  transform: translateY(-10px);
}

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

.page-sports__sport-card-title {
  font-size: 1.5em;
  color: #FFD700;
  padding: 15px 20px 0;
  font-weight: bold;
}

.page-sports__sport-card-text {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 10px 20px 20px;
  line-height: 1.5;
}

.page-sports__cta-buttons--center {
  margin-top: 50px;
  text-align: center;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  background-color: #1A1A1A;
  padding: 80px 0;
}

.page-sports__live-betting-section .page-sports__container {
  display: flex;
  align-items: center;
  gap: 50px;
}

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

.page-sports__live-betting-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-sports__live-betting-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-sports__live-betting-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-sports__live-betting-item {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  line-height: 1.6;
}

.page-sports__live-betting-item::before {
  content: '✓';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Guide Section */
.page-sports__guide-section {
  background-color: #1A1A1A;
  padding: 80px 0;
}

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

.page-sports__guide-step {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__guide-step-icon {
  background-color: #FFD700;
  color: #1A1A1A;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.page-sports__guide-step-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__guide-step-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-sports__responsible-gaming-info {
  margin-top: 50px;
  text-align: center;
  font-size: 0.95em;
  color: #ccc;
}

.page-sports__responsible-gaming-info a {
  color: #FFD700;
  text-decoration: underline;
}

.page-sports__responsible-gaming-info a:hover {
  color: #e6c200;
}

/* Promotions Section */
.page-sports__promotions-section {
  background-color: #1A1A1A;
  padding: 80px 0;
}

.page-sports__promotions-section .page-sports__container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-direction: row-reverse; /* Image on right */
}

.page-sports__promotions-content {
  flex: 1;
}

.page-sports__promotions-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-sports__promotions-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

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

.page-sports__promotions-item::before {
  content: '★';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* FAQ Section */
.page-sports__faq-section {
  background-color: #1A1A1A;
  padding: 80px 0;
}

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

.page-sports__faq-item {
  background-color: #2a2a2a;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #3a3a3a;
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: #4a4a4a;
}

.page-sports__faq-question-title {
  font-size: 1.2em;
  color: #FFD700;
  margin: 0;
  font-weight: bold;
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 1.8em;
  color: #FFD700;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 25px;
}

.page-sports__faq-answer p {
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__section-title {
    font-size: 2.2em;
  }
  .page-sports__live-betting-section .page-sports__container,
  .page-sports__promotions-section .page-sports__container {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__live-betting-image-wrapper,
  .page-sports__promotions-image-wrapper {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__hero-section {
    height: auto;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-sports__hero-title {
    font-size: 2.2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }
  .page-sports__features-grid,
  .page-sports__sports-grid,
  .page-sports__guide-steps {
    grid-template-columns: 1fr;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-sports__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__video-section,
  .page-sports__features-section,
  .page-sports__sports-categories-section,
  .page-sports__live-betting-section,
  .page-sports__guide-section,
  .page-sports__promotions-section,
  .page-sports__faq-section {
    padding: 40px 0;
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .page-sports__hero-section,
  .page-sports__features-section,
  .page-sports__sports-categories-section,
  .page-sports__live-betting-section,
  .page-sports__guide-section,
  .page-sports__promotions-section,
  .page-sports__faq-section,
  .page-sports__cta-buttons,
  .page-sports__cta-buttons--center {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-sports__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section padding is correct on mobile */
  }
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-sports__faq-question {
    padding: 15px 20px;
  }
  .page-sports__faq-question-title {
    font-size: 1.1em;
  }
  .page-sports__faq-answer {
    padding: 10px 20px 20px;
  }
}