/* style/sports.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm padding-top cho phần tử đầu tiên của main. */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-btn-bg: #C30808;
  --login-btn-bg: #C30808;
  --register-login-text: #FFFF00;
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --card-border-light-mode: #e0e0e0;
}

.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Body background is dark, so main text color is light */
}

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

/* Sections */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, main offset handled by body in shared.css */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-sports__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
}

.page-sports__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-color-light-bg);
}

.page-sports__hero-image-wrapper {
  width: 100%;
  height: 500px; /* Fixed height for hero image, adjust as needed */
  overflow: hidden;
  position: relative;
}

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

.page-sports__hero-content {
  position: relative; /* Ensure content is above image but not overlapping */
  z-index: 10;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: 20px; /* Separates content from image */
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for readability */
  border-radius: 8px;
}

.page-sports__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: var(--text-color-dark-bg);
  margin-bottom: 20px;
  /* No fixed font-size, rely on clamp if absolutely needed */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-sports__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-color-dark-bg);
}

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

/* Buttons */
.page-sports__btn-register,
.page-sports__btn-login,
.page-sports__btn-primary,
.page-sports__btn-download {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-sports__btn-register {
  background-color: var(--register-btn-bg);
  color: var(--register-login-text);
  border: 2px solid var(--register-btn-bg);
}

.page-sports__btn-register:hover {
  background-color: darken(var(--register-btn-bg), 10%);
  transform: translateY(-2px);
}

.page-sports__btn-login {
  background-color: var(--login-btn-bg);
  color: var(--register-login-text);
  border: 2px solid var(--login-btn-bg);
}

.page-sports__btn-login:hover {
  background-color: darken(var(--login-btn-bg), 10%);
  transform: translateY(-2px);
}

.page-sports__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
  border: 2px solid var(--primary-color);
}

.page-sports__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

.page-sports__btn-download {
  background-color: #333333; /* A neutral dark color for download */
  color: var(--text-color-dark-bg);
  border: 2px solid #333333;
}

.page-sports__btn-download:hover {
  background-color: darken(#333333, 10%);
  transform: translateY(-2px);
}


/* General Section Styling */
.page-sports__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__card-title {
  color: var(--text-color-light-bg);
}

.page-sports__dark-bg .page-sports__section-title,
.page-sports__dark-bg .page-sports__card-title {
  color: var(--text-color-dark-bg);
}

.page-sports__section-text {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

/* Sports List Section */
.page-sports__sports-list-section {
  padding: 80px 0;
}

.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: var(--card-bg-dark-mode);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: var(--text-color-dark-bg);
}

.page-sports__sport-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-sports__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-sports__card-description {
  font-size: 1rem;
  padding: 0 15px;
  text-align: justify;
}

/* Bet Types Section */
.page-sports__bet-types-section {
  padding: 80px 0;
}

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

.page-sports__bet-type-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-color-light-bg);
  border: 1px solid var(--card-border-light-mode);
}

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

.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: 40px;
  border-radius: 12px;
}

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

/* Why Choose Section */
.page-sports__why-choose-section {
  padding: 80px 0;
}

.page-sports__reason-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__reason-item {
  background-color: var(--secondary-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-color-light-bg);
  border: 1px solid var(--card-border-light-mode);
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
}

.page-sports__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-sports__promo-item {
  background-color: var(--card-bg-dark-mode);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-color-dark-bg);
}

.page-sports__cta-container {
  text-align: center;
  margin-top: 40px;
}

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

.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  background-color: var(--secondary-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--card-border-light-mode);
  color: var(--text-color-light-bg);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid var(--card-border-light-mode);
  color: var(--text-color-light-bg);
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-sports__faq-question::-webkit-details-marker {
  display: none;
}

.page-sports__faq-question::marker {
  display: none;
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-sports__faq-answer {
  padding: 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color-light-bg);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-image-wrapper {
    height: 400px;
  }
  .page-sports__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-sports__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__hero-image-wrapper {
    height: 300px;
  }
  .page-sports__hero-content {
    padding: 20px;
    margin-top: 10px;
  }
  .page-sports__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-sports__hero-description,
  .page-sports__section-text {
    font-size: 1rem;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-register,
  .page-sports__btn-login,
  .page-sports__btn-primary,
  .page-sports__btn-download {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-sports__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__hero-section,
  .page-sports__intro-section,
  .page-sports__sports-list-section,
  .page-sports__bet-types-section,
  .page-sports__live-betting-section,
  .page-sports__why-choose-section,
  .page-sports__promotions-section,
  .page-sports__faq-section,
  .page-sports__cta-final-section {
    padding: 40px 0;
  }
  .page-sports__sports-grid,
  .page-sports__bet-types-grid,
  .page-sports__reason-list,
  .page-sports__promo-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__sport-image {
    height: 200px;
  }
  .page-sports__card-title {
    font-size: 1.3rem;
  }
  .page-sports__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-sports__faq-answer {
    padding: 15px;
  }

  /* Mobile image and video responsive adaptation */
  .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__hero-image-wrapper,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-sports__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-section {
    padding-top: 10px !important;
  }
  .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-buttons {
    flex-direction: column;
  }
}