.page-sports {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

.page-sports__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-sports__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for titles */
  margin-bottom: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-sports__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.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: linear-gradient(rgba(0, 0, 0, 0.7), rgba(204, 0, 0, 0.5));
  z-index: 2;
}

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

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  color: #FFD700; /* Gold for hero title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sports__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__cta-button--primary {
  background-color: #CC0000; /* Red primary button */
  color: #ffffff;
  border: 2px solid #CC0000;
}

.page-sports__cta-button--primary:hover {
  background-color: #FFD700; /* Gold on hover */
  color: #CC0000;
  border-color: #FFD700;
}

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

.page-sports__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #CC0000;
}

.page-sports__dark-section {
  background-color: #CC0000;
  color: #ffffff;
}

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

.page-sports__image-full {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__image-half-width {
  width: 80%; /* Adjusted to be less than 100% but still large */
  height: auto;
  border-radius: 8px;
  margin: 30px auto;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Grid Layout for Sports Cards */
.page-sports__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-sports__sport-card, .page-sports__bet-card, .page-sports__promotion-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

.page-sports__sport-card:hover, .page-sports__bet-card:hover, .page-sports__promotion-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__sport-title, .page-sports__bet-title, .page-sports__promotion-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__sport-description, .page-sports__bet-description, .page-sports__promotion-description {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Video Section */
.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 100%;
  box-sizing: border-box;
}

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

/* Guide Section */
.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-sports__guide-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-sports__guide-item:hover {
  transform: translateY(-5px);
}

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

.page-sports__guide-step-description {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1;
}

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

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

.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: #CC0000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  font-size: 1em;
  line-height: 1.6;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-sports__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-sports__copyright {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
  color: #aaaaaa;
  background-color: #1a1a1a;
  margin-top: 40px;
}

.page-sports a {
  color: #FFD700;
  text-decoration: none;
}

.page-sports a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }
  .page-sports__hero-description {
    font-size: 1.2em;
  }
  .page-sports__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset is applied */
  }
  .page-sports__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-sports__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-sports__cta-button {
    padding: 12px 25px;
    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__section {
    padding: 40px 15px;
  }
  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-sports__text-block {
    font-size: 0.95em;
    line-height: 1.7;
  }
  .page-sports__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__sport-card, .page-sports__bet-card, .page-sports__promotion-card, .page-sports__guide-item {
    padding: 20px;
  }
  .page-sports__sport-title, .page-sports__bet-title, .page-sports__promotion-title, .page-sports__guide-step-title {
    font-size: 1.3em;
  }
  .page-sports__image-full, .page-sports__image-half-width {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  /* Video Responsive */
  .page-sports__video-wrapper {
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-sports__video {
    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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  /* FAQ */
  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-sports__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__hero-description {
    font-size: 0.9em;
  }
  .page-sports__section-title {
    font-size: 1.6em;
  }
  .page-sports__text-block {
    font-size: 0.9em;
  }
  .page-sports__cta-button {
    font-size: 0.95em;
  }
}