/* style/sports.css */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a;
}

.page-sports__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #8B0000, #FFD700);
}

.page-sports__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-sports__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  font-weight: 300;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-card,
.page-sports__btn-play-video {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

.page-sports__btn-primary:hover {
  background-color: #e6c200;
  color: #6a0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-sports__btn-secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

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

.page-sports__sub-title {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 15px;
}

/* Featured Sports Section */
.page-sports__featured-sports {
  padding: 80px 20px;
  background-color: #2a2a2a;
  color: #ffffff;
}

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

.page-sports__sport-card {
  background-color: #333333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sports__sport-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-sports__card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-sports__card-text {
  font-size: 1em;
  color: #e0e0e0;
  padding: 0 20px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-sports__btn-card {
  background-color: #8B0000;
  color: #ffffff;
  border: 2px solid #8B0000;
  padding: 12px 25px;
  font-size: 1em;
  margin: 0 20px;
}

.page-sports__btn-card:hover {
  background-color: #6a0000;
  border-color: #6a0000;
  transform: translateY(-1px);
}

/* Live Betting Section */
.page-sports__live-betting {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-sports__live-content {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-sports__live-image {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

/* Cockfighting Highlight Section */
.page-sports__cockfighting-highlight {
  padding: 80px 20px;
  background-color: #2a2a2a;
  color: #ffffff;
}

.page-sports__cockfighting-content {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-sports__cockfighting-video-wrapper {
  flex: 1;
  position: relative;
  padding-bottom: 45%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  background-color: #000;
}

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

.page-sports__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.page-sports__cockfighting-video-wrapper:hover .page-sports__video-overlay {
  opacity: 1;
}

.page-sports__btn-play-video {
  background-color: #FFD700;
  color: #8B0000;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.2em;
  text-transform: uppercase;
}

.page-sports__btn-play-video:hover {
  background-color: #e6c200;
  transform: scale(1.05);
}

.page-sports__cockfighting-text {
  flex: 1;
}

/* Why Choose Section */
.page-sports__why-choose {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-sports__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 50px auto;
}

.page-sports__feature-item {
  background-color: #333333;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-sports__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-sports__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-sports__feature-text {
  font-size: 0.95em;
  color: #e0e0e0;
}

.page-sports__cta-download {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 20px;
  background-color: #2a2a2a;
  color: #ffffff;
}

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

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: #444444;
  border-bottom: 1px solid #555555;
}

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

.page-sports__faq-title {
  font-size: 1.2em;
  color: #FFD700;
  margin: 0;
}

.page-sports__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD700;
  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 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

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

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

/* CTA Section */
.page-sports__cta-section {
  padding: 80px 20px;
  background-color: #8B0000;
  color: #ffffff;
  text-align: center;
}

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

.page-sports__cta-section .page-sports__section-description {
  color: #f0f0f0;
}

.page-sports__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__section-title {
    font-size: 2.2em;
  }
  .page-sports__live-content,
  .page-sports__cockfighting-content {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__live-image {
    max-width: 80%;
  }
  .page-sports__cockfighting-video-wrapper {
    padding-bottom: 56.25%; /* Standard 16:9 for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__hero-section {
    min-height: 450px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-sports__hero-title {
    font-size: 2.2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-buttons,
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-card,
  .page-sports__btn-play-video {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 0 auto;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-sports__sub-title {
    font-size: 1.6em;
  }
  .page-sports__sports-grid,
  .page-sports__features-grid {
    grid-template-columns: 1fr;
  }
  .page-sports__sport-image {
    height: 200px;
  }
  .page-sports__live-image {
    max-width: 100%;
  }
  .page-sports__cockfighting-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 56.25% !important; /* Maintain 16:9 ratio */
    height: 0 !important;
    overflow: hidden !important;
  }
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__cockfighting-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__faq-question {
    padding: 15px 20px;
  }
  .page-sports__faq-title {
    font-size: 1.1em;
  }
  .page-sports__faq-answer {
    padding: 0 20px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__hero-buttons,
  .page-sports__cta-buttons {
    gap: 10px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-card,
  .page-sports__btn-play-video {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  .page-sports__faq-question {
    padding: 12px 15px;
  }
  .page-sports__faq-title {
    font-size: 1em;
  }
  .page-sports__faq-answer {
    padding: 0 15px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 10px 15px;
  }
}