/* style/sports.css */

/* Base Styles for .page-sports content */
.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;
  box-sizing: border-box;
}

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

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

.page-sports__center-text {
  text-align: center;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  box-sizing: border-box;
}

.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: rgba(0, 0, 0, 0.7);
  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.5rem;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

.page-sports__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

.page-sports__btn-primary:hover {
  background-color: #ff3333;
  border-color: #ff3333;
  transform: translateY(-2px);
}

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

.page-sports__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-sports__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

/* Features Section */
.page-sports__features-section {
  padding: 80px 0;
}

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

.page-sports__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.page-sports__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-sports__feature-icon {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__feature-title {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__feature-text {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Betting Types Section */
.page-sports__betting-types-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Ensure dark background for this section */
}

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

.page-sports__type-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.page-sports__type-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-sports__type-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__type-title {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__type-text {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  padding: 80px 0;
}

.page-sports__live-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-sports__video-wrapper {
  flex: 2;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background-color: #000;
}

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

.page-sports__live-text-content {
  flex: 1;
  color: #ffffff;
}

.page-sports__live-text-title {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-sports__live-text {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 15px;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Ensure dark background for this section */
}

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

.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.page-sports__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-sports__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__promo-title {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__promo-text {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 25px;
}

/* How to Start Section */
.page-sports__how-to-start-section {
  padding: 80px 0;
}

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

.page-sports__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.page-sports__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-sports__step-title {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__step-text {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Ensure dark background for this section */
}

.page-sports__responsible-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  color: #f0f0f0;
  font-size: 1.1rem;
}

.page-sports__responsible-list li {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 5px solid #017439;
}

.page-sports__responsible-list li p {
  margin: 0;
  color: #f0f0f0;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
}

.page-sports__faq-list {
  max-width: 800px;
  margin: 40px auto;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-question h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #017439;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

.page-sports__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

/* CTA Section */
.page-sports__cta-section {
  padding: 80px 0;
  background-color: #017439; /* Brand color background */
  color: #ffffff;
}

.page-sports__cta-title {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-sports__cta-description {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

  .page-sports__hero-description {
    font-size: 1.2rem;
  }

  .page-sports__live-content {
    flex-direction: column;
  }

  .page-sports__live-text-content {
    text-align: center;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    height: auto;
    min-height: 70vh;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-sports__hero-description {
    font-size: 1rem;
  }

  .page-sports__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports a[class*="button"],
  .page-sports a[class*="btn"] {
    max-width: 100% !important;
    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__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;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }

  .page-sports__section-title {
    font-size: 2rem;
  }

  .page-sports__section-intro {
    font-size: 0.95rem;
  }

  .page-sports__features-grid,
  .page-sports__types-grid,
  .page-sports__promotions-grid,
  .page-sports__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-sports__feature-card,
  .page-sports__type-card,
  .page-sports__promo-card,
  .page-sports__step-card {
    padding: 20px;
  }

  .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__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;
  }

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

  .page-sports__video-wrapper {
    padding-bottom: 75% !important; /* Adjust aspect ratio for mobile if needed, e.g., 4:3 */
  }

  .page-sports__cta-title {
    font-size: 2rem;
  }

  .page-sports__cta-description {
    font-size: 1rem;
  }

  .page-sports__faq-question h3 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8rem;
  }

  .page-sports__hero-description {
    font-size: 0.9rem;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-sports__section-title {
    font-size: 1.8rem;
  }

  .page-sports__feature-title,
  .page-sports__type-title,
  .page-sports__promo-title,
  .page-sports__step-title {
    font-size: 1.4rem;
  }

  .page-sports__live-text-title {
    font-size: 1.6rem;
  }

  .page-sports__cta-title {
    font-size: 1.8rem;
  }
}

/* Color Contrast Fixes for specific elements if needed */
.page-sports__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-sports__promo-card .page-sports__btn-secondary {
  color: #017439;
  background-color: #ffffff;
  border-color: #017439;
}

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

.page-sports__responsible-gaming-section .page-sports__btn-secondary {
  color: #017439;
  background-color: #ffffff;
  border-color: #017439;
}

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

.page-sports__how-to-start-section .page-sports__btn-secondary {
  color: #017439;
  background-color: #ffffff;
  border-color: #017439;
}

.page-sports__how-to-start-section .page-sports__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}