/* style/sports.css */

/* Base styles for the sports page */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default background for main content */
}

/* Section spacing and content width */
.page-sports__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-sports__dark-section {
  background-color: #26A9E0; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1920px; /* Ensure image doesn't stretch beyond its intended max size */
  margin: 0 auto;
  object-fit: cover;
  z-index: 1;
}

.page-sports__hero-content {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 20px;
  z-index: 2;
  position: relative;
  /* Ensure text is below image, not overlapping */
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff; /* White text for dark hero section */
}

.page-sports__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for contrast on blue */
}

/* CTA Buttons */
.page-sports__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__card-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-sports__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand primary color for secondary CTA */
  border: 2px solid #26A9E0;
}

.page-sports__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-sports__btn-primary--large {
  padding: 18px 35px;
  font-size: 1.1rem;
}

/* General Section Titles */
.page-sports__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand primary color */
}

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

.page-sports__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

/* Images within content */
.page-sports__image-full-width,
.page-sports__image-center,
.page-sports__image-center-large,
.page-sports__image-right {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
}

.page-sports__image-right {
  margin: 40px 0 40px auto;
}

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

.page-sports__sport-card {
  text-align: center;
}

.page-sports__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  color: #333333;
}

.page-sports__card-image {
  width: 100%;
  max-width: 600px; /* Max width for card images */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand primary color for card titles */
}

.page-sports__card-button {
  margin-top: auto; /* Push button to bottom */
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 5px;
}

.page-sports__card-button:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

/* Live Betting Section */
.page-sports__live-betting-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
}

.page-sports__text-block {
  flex: 1;
  color: #ffffff;
}

.page-sports__text-block .page-sports__sub-title {
  color: #ffffff;
}

.page-sports__image-right {
  flex: 1;
  max-width: 600px;
  margin: 0;
}

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

/* Why Choose Us Section */
.page-sports__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__feature-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  box-sizing: border-box;
}

.page-sports__feature-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

/* Video Section */
.page-sports__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding for video section */
  box-sizing: border-box;
  background-color: #000000; /* Dark background for video */
}

.page-sports__video-container {
  width: 100%;
  max-width: 1000px; /* Max width for the video player */
  margin: 40px auto 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  width: 100%; /* Ensure width is 100% on desktop too */
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-sports__video-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin-bottom: 30px;
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 30px;
  display: grid;
  gap: 20px;
}

.page-sports__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  box-sizing: border-box;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #333333;
  border-bottom: 1px solid #e0e0e0;
}

.page-sports__faq-item[open] .page-sports__faq-question {
  background-color: #e0e0e0;
}

.page-sports__faq-qtext {
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-sports__faq-answer {
  padding: 20px;
  padding-top: 0;
  color: #555555;
}

.page-sports__faq-answer p {
  margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-image {
    height: 500px;
  }
  .page-sports__live-betting-content {
    flex-direction: column;
  }
  .page-sports__image-right {
    margin: 40px auto;
  }
}

@media (max-width: 768px) {
  .page-sports__content-area {
    padding: 40px 15px;
  }
  .page-sports__hero-section {
    padding-bottom: 40px;
  }
  .page-sports__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .page-sports__intro-text {
    font-size: 1rem;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__card-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }
  .page-sports__sub-title {
    font-size: clamp(1.3rem, 5vw, 1.7rem);
  }
  .page-sports__card-title {
    font-size: 1.3rem;
  }
  .page-sports__card-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-content,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    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;
  }
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-image {
    height: 300px;
  }
  .page-sports__hero-content {
    margin-top: 20px;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    font-size: 1rem;
    padding: 12px 20px;
  }
}