/* style/sports.css */

/* Base Styles & Color Contrast */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color 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;
}

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

.page-sports__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__dark-section {
  background-color: #1a1a1a; /* Slightly lighter than body bg for distinction */
  padding: 80px 0;
  color: #ffffff;
}

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

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__section-description,
.page-sports__light-bg .page-sports__item-title,
.page-sports__light-bg .page-sports__item-description,
.page-sports__light-bg .page-sports__card-title,
.page-sports__light-bg .page-sports__card-text {
  color: #333333;
}

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

.page-sports__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-sports__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-sports__card-button {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  background-color: #017439;
  color: #ffffff;
  border: 1px solid #017439;
  margin-top: 15px;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-sports__card-button:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  text-align: center;
}

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

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

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

.page-sports__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
}

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

/* About Section */
.page-sports__about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__about-item {
  text-align: center;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.page-sports__about-item:hover {
  transform: translateY(-10px);
}

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

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

.page-sports__item-description {
  color: #f0f0f0;
}

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

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

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

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

.page-sports__card-title {
  font-size: 1.4em;
  color: #333333;
  margin: 15px 10px 5px;
}

.page-sports__card-text {
  color: #555555;
  padding: 0 15px 20px;
}

/* Live Betting Section */
.page-sports__live-betting .page-sports__container {
  display: flex;
  align-items: center;
  gap: 50px;
}

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

.page-sports__live-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-sports__live-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

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

.page-sports__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
}

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

.page-sports__cta-promotions {
  text-align: center;
}

/* How To Play Section */
.page-sports__video-wrapper {
  max-width: 1000px;
  margin: 0 auto 50px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
}

.page-sports__step-item .page-sports__item-title {
  color: #FFFF00;
  font-size: 1.3em;
}

.page-sports__step-item .page-sports__item-description {
  color: #f0f0f0;
}

.page-sports__cta-guides {
  text-align: center;
  margin-top: 50px;
}

/* Mobile App Section */
.page-sports__mobile-app .page-sports__container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-direction: row;
}

.page-sports__mobile-content {
  flex: 1;
}

.page-sports__mobile-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-sports__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-sports__app-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: flex-start;
}

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

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-sports__faq-title {
  margin: 0;
  color: #ffffff;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.03);
}

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

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg);
}

/* Final CTA Section */
.page-sports__cta-final {
  padding: 100px 0;
  text-align: center;
}

.page-sports__cta-final .page-sports__section-title {
  font-size: 3em;
}

.page-sports__cta-final .page-sports__section-description {
  font-size: 1.2em;
  margin-bottom: 50px;
}

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

/* 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: 2em;
  }
  .page-sports__section-description {
    font-size: 1em;
  }
  .page-sports__live-betting .page-sports__container,
  .page-sports__mobile-app .page-sports__container {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__app-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    height: 500px;
    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 {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__card-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-sports__about-section,
  .page-sports__sports-categories,
  .page-sports__live-betting,
  .page-sports__promotions,
  .page-sports__how-to-play,
  .page-sports__mobile-app,
  .page-sports__faq-section,
  .page-sports__cta-final {
    padding: 50px 0;
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__cta-final .page-sports__section-title {
    font-size: 2.5em;
  }
  .page-sports__live-image-wrapper, .page-sports__mobile-image-wrapper {
      order: -1; /* Image/video above text on mobile */
      margin-bottom: 30px;
  }
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-wrapper,
  .page-sports__about-item,
  .page-sports__category-card,
  .page-sports__promo-card,
  .page-sports__step-item,
  .page-sports__app-buttons,
  .page-sports__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-sports__app-buttons,
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}