/* style/sports.css */

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

/* Fixed Header Offset - applied to the first main content section */
.page-sports__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Container for content sections */
.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-sports__section-title {
  font-size: 2.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-sports__text-dark {
  color: #333333; /* Dark text for light background sections */
}

/* Text blocks */
.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* 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;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

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

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

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

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

.page-sports__btn-center {
  display: block;
  margin: 30px auto;
  max-width: 300px; /* Limit width for centered buttons */
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 70vh; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  min-height: 400px;
}

.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: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  z-index: 2;
}

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

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

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

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

/* About Section */
.page-sports__about-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

.page-sports__image-full {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Features Section (Môn Thể Thao Nổi Bật) */
.page-sports__features-section {
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-sports__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__feature-card {
  background-color: #26A9E0; /* Brand color for card background */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  min-height: 250px; /* Ensure consistent card height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-sports__card-text {
  font-size: 1.05em;
  line-height: 1.6;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  background-color: #121212; /* Dark background */
}

.page-sports__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 * 100) */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  cursor: pointer; /* Indicate video is clickable */
}

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

/* Guide Section */
.page-sports__guide-section {
  background-color: #ffffff; /* Light background */
  color: #333333;
}

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

.page-sports__step-card {
  background-color: #26A9E0; /* Brand color for step cards */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-sports__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.page-sports__image-center {
  display: block;
  margin: 40px auto;
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Promotions Section */
.page-sports__promotions-section {
  background-color: #1a1a1a; /* Dark background */
}

.page-sports__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-sports__promo-card {
  background-color: #26A9E0; /* Brand color for promo cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.page-sports__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-sports__promo-content {
  padding: 30px;
  color: #ffffff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sports__promo-content .page-sports__card-title {
  margin-top: 0;
  color: #ffffff;
}

.page-sports__promo-content .page-sports__btn-primary {
  margin-top: 20px;
  width: 100%;
  max-width: 200px;
  align-self: flex-start;
}

/* Security Section */
.page-sports__security-section {
  background-color: #ffffff; /* Light background */
  color: #333333;
}

/* FAQ Section */
.page-sports__faq-section {
  background-color: #121212; /* Dark background */
}

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

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

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

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
  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 25px;
  background-color: #1a1a1a;
  color: #cccccc;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

/* Call to Action Section */
.page-sports__cta-section {
  background-color: #26A9E0; /* Brand color for CTA background */
  text-align: center;
  padding: 60px 20px;
}

.page-sports__cta-section .page-sports__section-title {
  color: #ffffff;
  text-shadow: none;
}

.page-sports__cta-section .page-sports__text-block {
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #ffffff;
  font-size: 1.2em;
}

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

/* Dark background sections */
.page-sports__dark-bg {
  background-color: #121212; /* Default dark background */
  color: #ffffff;
}

/* Light background sections */
.page-sports__light-bg {
  background-color: #ffffff; /* Default light background */
  color: #333333;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__hero-description {
    font-size: 1.2em;
  }
  .page-sports__section-title {
    font-size: 2.2em;
  }
  .page-sports__grid-3-cols,
  .page-sports__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .page-sports__promo-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    height: auto;
    min-height: 350px;
    padding-bottom: 40px;
  }
  .page-sports__hero-title {
    font-size: 2.2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-cta-group {
    flex-direction: column;
    align-items: center;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100%;
    max-width: 300px; /* Constrain buttons in mobile */
    font-size: 1em;
    padding: 12px 20px;
    margin-bottom: 10px; /* Space between stacked buttons */
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__container {
    padding: 20px 15px; /* Add padding for mobile content */
  }

  /* Mobile responsive images */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__promo-card,
  .page-sports__feature-card,
  .page-sports__step-card,
  .page-sports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Mobile responsive videos */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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;
  }

  /* Mobile responsive buttons (already handled above, but reiterate for safety) */
  .page-sports__cta-button,
  .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;
  }
  .page-sports__cta-group {
    flex-direction: column;
  }

  .page-sports__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-sports__promo-image {
    height: 200px; /* Adjust height for mobile */
  }
  .page-sports__faq-question {
    font-size: 1.1em;
  }
}