/* style/sports.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến này */

.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Vì body background là #0a0a0a (dark), nên text color phải là light */
  background-color: transparent; /* Body background được quản lý bởi shared.css */
}

.page-sports__highlight {
  color: #FFFF00; /* Màu vàng cho các từ khóa nổi bật */
  font-weight: bold;
}

.page-sports__section {
  padding: 60px 0;
  text-align: center;
}

.page-sports__dark-bg {
  background-color: #017439; /* Nền màu chủ đạo */
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #0a0a0a; /* Nền màu tối từ body, nhưng dùng cho các section riêng */
  color: #ffffff;
}

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

.page-sports__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffffff; /* Đảm bảo màu sắc tương phản */
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small padding top, body already has --header-offset */
  padding-bottom: 60px;
  min-height: 600px;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Overlay for readability */
  border-radius: 10px;
}

.page-sports__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* H1 font size constraint */
  font-weight: 900;
  color: #FFFF00; /* Màu vàng nổi bật */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sports__description {
  font-size: 1.2em;
  color: #ffffff;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-promo {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background-color: #C30808; /* Màu Đăng Ký/Đăng Nhập */
  color: #FFFF00; /* Màu chữ Đăng Ký/Đăng Nhập */
  border: 2px solid #C30808;
}

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

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

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

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

.page-sports__btn-promo:hover {
  background-color: #005a2e;
  border-color: #005a2e;
  transform: translateY(-2px);
}

/* Why Choose Section */
.page-sports__why-choose .page-sports__section-title {
  color: #FFFF00;
}

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

.page-sports__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Adjust as needed, ensure min 200x200 */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-sports__feature-title {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-sports__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Popular Sports Section */
.page-sports__popular-sports .page-sports__section-title {
  color: #FFFF00;
}

.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: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__sport-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, adjust if needed */
  object-fit: cover;
  display: block;
}

.page-sports__sport-title {
  font-size: 1.8em;
  color: #FFFF00;
  margin: 20px 0 10px;
}

.page-sports__sport-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 20px 20px;
}

/* Betting Types Section */
.page-sports__betting-types .page-sports__section-title {
  color: #FFFF00;
}

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

.page-sports__type-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__type-image {
  width: 100%;
  height: auto;
  max-width: 250px; /* Ensure min 200x200 */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-sports__type-title {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-sports__type-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Promotions Section */
.page-sports__promotions .page-sports__section-title {
  color: #FFFF00;
}

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

.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-sports__promo-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency, adjust if needed */
  object-fit: cover;
  display: block;
}

.page-sports__promo-title {
  font-size: 1.8em;
  color: #FFFF00;
  margin: 20px 0 10px;
  padding: 0 20px;
}

.page-sports__promo-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 20px;
  flex-grow: 1;
}

.page-sports__btn-promo {
  margin: 20px auto;
  width: fit-content;
}

/* Guide Section */
.page-sports__guide .page-sports__section-title {
  color: #FFFF00;
}

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

.page-sports__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__step-number {
  width: 60px;
  height: 60px;
  background-color: #C30808;
  color: #FFFF00;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-sports__step-title {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-sports__step-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-sports__guide-cta {
  margin-top: 40px;
}

/* FAQ Section */
.page-sports__faq-section .page-sports__section-title {
  color: #FFFF00;
}

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

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00;
}

.page-sports__faq-item[open] .page-sports__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__faq-answer {
  padding: 15px 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.03);
}

.page-sports__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
}

.page-sports__link {
  color: #FFFF00;
  text-decoration: underline;
}

.page-sports__link:hover {
  color: #ffffff;
}

/* Final CTA Section */
.page-sports__cta-final .page-sports__section-title {
  color: #FFFF00;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__main-title {
    font-size: clamp(2.2em, 5vw, 3em);
  }
  .page-sports__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__hero-section {
    padding-bottom: 40px;
  }
  .page-sports__hero-content {
    padding: 30px 15px;
  }
  .page-sports__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
  }
  .page-sports__description {
    font-size: 1em;
  }
  .page-sports__section {
    padding: 40px 0;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__text-block {
    font-size: 0.95em;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-promo {
    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__container,
  .page-sports__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Responsive images */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__feature-icon,
  .page-sports__type-image {
    max-width: 100% !important;
  }
  .page-sports__sport-image,
  .page-sports__promo-image {
    height: 180px; /* Adjust height for smaller screens */
  }
  
  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-sports__faq-answer {
    font-size: 0.95em;
    padding: 10px 15px 15px;
  }
  .page-sports__video-section {
    padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }
}

@media (max-width: 480px) {
  .page-sports__section-title {
    font-size: 1.6em;
  }
  .page-sports__main-title {
    font-size: clamp(1.6em, 7vw, 2em) !important;
  }
  .page-sports__hero-content {
    padding: 20px 10px;
  }
  .page-sports__sport-image,
  .page-sports__promo-image {
    height: 150px; /* Further adjust height for very small screens */
  }
  .page-sports__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }
  .page-sports__faq-question {
    font-size: 1em;
  }
}