/* style/sports.css */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark background */
  background-color: var(--primary-color); /* Inherit from shared, which is #0A1931 */
}

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

.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 70vh;
  overflow: hidden;
  background-color: #0A1931;
  color: #ffffff;
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

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

.page-sports__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #ffffff;
}

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

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

.page-sports__btn-primary {
  background-color: #FFD700;
  color: #0A1931;
  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: #0A1931;
}

.page-sports__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #0A1931;
  font-weight: bold;
}

.page-sports__section-title--white {
  color: #FFD700;
}

.page-sports__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 50px;
  color: #555;
}

.page-sports__dark-section .page-sports__section-subtitle {
  color: #cccccc;
}

.page-sports__light-bg {
  background-color: #f8f8f8;
  color: #333333;
  padding: 80px 0;
}

.page-sports__dark-bg {
  background-color: #0A1931;
  color: #ffffff;
  padding: 80px 0;
}

.page-sports__features-section {
  padding: 80px 0;
}

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

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

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

.page-sports__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-sports__feature-heading {
  font-size: 1.8em;
  color: #0A1931;
  margin-bottom: 15px;
}

.page-sports__feature-text {
  font-size: 1em;
  color: #555555;
}

.page-sports__video-section {
  padding: 80px 0;
  background-color: #0A1931;
  color: #ffffff;
  text-align: center;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__video,
.page-sports__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-sports__video-link {
  display: block;
}

.page-sports__categories-section {
  padding: 80px 0;
}

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

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

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

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

.page-sports__category-heading {
  font-size: 1.5em;
  color: #0A1931;
  margin: 20px 15px 10px;
}

.page-sports__category-link {
  text-decoration: none;
  color: #0A1931;
}

.page-sports__category-link:hover {
  color: #FFD700;
}

.page-sports__category-text {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
}

.page-sports__live-betting-section {
  padding: 80px 0;
  background-color: #0A1931;
  color: #ffffff;
}

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

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

.page-sports__live-betting-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

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

.page-sports__tips-section {
  padding: 80px 0;
}

.page-sports__tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__tips-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-sports__tips-heading {
  font-size: 1.6em;
  color: #0A1931;
  margin-bottom: 10px;
}

.page-sports__tips-text {
  font-size: 1em;
  color: #555555;
}

.page-sports__faq-section {
  padding: 80px 0;
  background-color: #0A1931;
  color: #ffffff;
}

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

.page-sports__faq-item {
  background-color: #1A2E4B; /* Slightly lighter dark background for contrast */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #0A1931;
  border-bottom: 1px solid #1A2E4B;
}

.page-sports__faq-question:hover {
  background-color: #1A2E4B;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD700;
}

.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-out, padding 0.3s ease-out;
  color: #f0f0f0;
  background-color: #1A2E4B;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px;
}

.page-sports__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-sports__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.2em;
  margin-top: 30px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }
  .page-sports__hero-description {
    font-size: 1.1em;
  }
  .page-sports__section-title {
    font-size: 2.2em;
  }
  .page-sports__live-betting-content {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__live-betting-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
  }
  .page-sports__hero-title {
    font-size: 2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__section-subtitle {
    font-size: 1em;
  }
  .page-sports__feature-grid, .page-sports__category-grid, .page-sports__tips-list {
    grid-template-columns: 1fr;
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports__feature-icon {
    max-width: 180px;
  }
  .page-sports__video-wrapper {
    padding-bottom: 65%; /* Adjust aspect ratio for better mobile viewing if needed */
  }
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video,
  .page-sports__video-link {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container,
  .page-sports__section,
  .page-sports__card,
  .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-sports__btn-primary--large {
    font-size: 1.1em;
  }
}