/* style/sports.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không thêm padding-top ở đây */

.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

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

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

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height to prevent overly large hero image */
  overflow: hidden;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-sports__hero-content {
  max-width: 800px;
  margin-top: 30px; /* Space between image and text */
  padding: 0 20px;
}

.page-sports__hero-title {
  font-weight: bold;
  color: #FF8C1A;
  margin-bottom: 15px;
  /* Using clamp for responsive font size, avoiding fixed large values */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 1.1rem;
  color: #FFF3E6;
  margin-bottom: 30px;
}

/* General Section Styles */
.page-sports__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-sports__section-description {
  font-size: 1.1rem;
  color: #FFF3E6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-sports__content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.page-sports__content-grid > div {
  flex: 1;
  min-width: 300px;
}

.page-sports__text-block {
  padding: 20px;
  background-color: #17191F; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C; /* Border */
}

.page-sports__text-block p {
  margin-bottom: 15px;
  color: #FFF3E6;
}

.page-sports__text-block strong {
  color: #FFA53A;
}

.page-sports__image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-sports__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button custom color */
  color: #ffffff;
  border: none;
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 0 15px #FFB04D; /* Glow */
}

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

.page-sports__btn-secondary:hover {
  background-color: #FF8C1A;
  color: #ffffff;
  box-shadow: 0 0 15px #FFB04D; /* Glow */
}

.page-sports__btn-centered {
  display: block;
  margin: 30px auto 0 auto;
  max-width: 300px;
}

/* Specific Sections */
.page-sports__why-us-section,
.page-sports__sports-list-section,
.page-sports__live-betting-section,
.page-sports__promotions-section,
.page-sports__get-started-section {
  padding: 60px 0;
}

.page-sports__sports-list-section .page-sports__content-grid {
  flex-direction: row-reverse; /* Image on left, text on right */
}

.page-sports__sport-categories {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-sports__sport-categories li {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #FF8C1A;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  color: #FFF3E6;
}

.page-sports__sport-categories li strong {
  color: #FFA53A;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 8px;
  margin-top: 30px;
  box-sizing: border-box;
}

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

.page-sports__get-started-section .page-sports__container {
  background-color: #17191F; /* Card BG */
  padding: 60px 40px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #A84F0C; /* Border */
}

.page-sports__get-started-section .page-sports__section-title,
.page-sports__get-started-section .page-sports__section-description {
  color: #FFF3E6;
}

.page-sports__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-sports__steps-list li {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  flex: 1;
  min-width: 250px;
  max-width: 280px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFF3E6;
}

.page-sports__steps-list li strong {
  color: #FF8C1A;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    margin-top: 20px;
  }

  .page-sports__content-grid {
    flex-direction: column;
  }

  .page-sports__sports-list-section .page-sports__content-grid {
    flex-direction: column; /* Revert for consistency on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-bottom: 40px;
  }

  .page-sports__hero-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

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

  .page-sports__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 30px;
  }

  .page-sports__section-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .page-sports__content-grid > div {
    min-width: unset;
    width: 100%;
  }

  .page-sports__image,
  .page-sports__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-sports__container,
  .page-sports__text-block,
  .page-sports__image-wrapper,
  .page-sports__video-wrapper,
  .page-sports__get-started-section .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-sports__hero-section,
  .page-sports__why-us-section,
  .page-sports__sports-list-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__get-started-section {
    padding: 40px 0;
  }

  .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__btn-centered {
    max-width: 100%;
  }

  .page-sports__steps-list {
    flex-direction: column;
    align-items: center;
  }

  .page-sports__steps-list li {
    max-width: 100%;
    width: 100%;
  }

  .page-sports__video-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for aesthetic spacing */
  }
}

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

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

  .page-sports__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

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

  .page-sports__get-started-section .page-sports__container {
    padding: 30px 20px;
  }
}