/* style/sports.css */

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

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

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

.page-sports__subtitle {
  font-size: 1.8em;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-sports__text-block {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 20px;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background-color: #1A2A4A; /* Brand primary color for hero */
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

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

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

.page-sports__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  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%;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background-color: #FFD700;
  color: #1A2A4A;
  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;
  margin-left: 20px;
}

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

.page-sports__video-cta {
  margin-top: 30px;
}

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

/* Section Backgrounds */
.page-sports__dark-bg {
  background-color: #1A2A4A;
  color: #ffffff;
  padding: 60px 0;
}

.page-sports__light-bg {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark for contrast */
  color: #ffffff;
  padding: 60px 0;
}

/* Intro Section */
.page-sports__intro-section .page-sports__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* 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;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
}

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

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

.page-sports__sport-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__sport-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-sports__card-text {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-sports__sport-card .page-sports__btn-secondary {
  margin-left: 0;
  margin-top: auto;
}

.page-sports__betting-types ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__betting-types li {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.5;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__betting-types li strong {
  color: #FFD700;
}

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

.page-sports__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-sports__feature-icon {
  width: 150px;
  height: 112px; /* Adjusted height for 4:3 aspect ratio */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

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

.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__promo-card .page-sports__card-image {
  height: 200px;
}

.page-sports__promo-card .page-sports__btn-primary {
  margin-top: auto;
}

/* Other Games Section */
.page-sports__other-game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__other-game-card .page-sports__card-image {
  height: auto;
  max-height: 400px;
}

.page-sports__other-game-card .page-sports__card-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-sports__other-game-card .page-sports__card-title a:hover {
  text-decoration: underline;
}

.page-sports__other-game-card .page-sports__btn-secondary {
  margin-top: 20px;
  margin-left: 0;
}

/* FAQ Section */
.page-sports__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-sports__faq-item.active .page-sports__faq-question {
  background-color: #1A2A4A;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(0deg); /* From + to - */
}

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

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

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

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 80px 15px;
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }

  .page-sports__hero-title {
    font-size: 2.2em;
  }

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

  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-sports__subtitle {
    font-size: 1.5em;
  }

  .page-sports__text-block {
    font-size: 0.95em;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 15px;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-sports__container,
  .page-sports__video-section,
  .page-sports__popular-sports-section,
  .page-sports__features-section,
  .page-sports__promotions-section,
  .page-sports__other-games-section,
  .page-sports__faq-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-sports__sport-card,
  .page-sports__feature-item,
  .page-sports__promo-card,
  .page-sports__other-game-card {
    padding: 20px;
  }

  .page-sports__card-image {
    height: auto;
    max-height: 250px; /* Adjust max height for smaller screens */
  }

  .page-sports__feature-icon {
    width: 100px;
    height: 75px;
  }

  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-sports__faq-answer {
    font-size: 0.95em;
    padding: 0 20px;
  }

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 10px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__hero-section {
    padding: 60px 10px;
    min-height: 400px;
  }
}