/* style/sports.css */
/* body đã có padding-top: var(--header-offset) từ shared.css, không cần lặp lại ở đây */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Phù hợp với nền body tối #121212 */
  background-color: transparent; /* Nền trong suốt để body background hiển thị */
}

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

.page-sports__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-sports__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 0 60px 0; /* Chỉ padding-top nhỏ */
  overflow: hidden;
  box-sizing: border-box;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Khoảng cách giữa ảnh và nội dung */
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  max-width: 1920px; /* Đảm bảo hình ảnh không quá lớn */
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-sports__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-sports__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Sử dụng clamp để giới hạn kích thước */
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-sports__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-align: center;
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word; /* Ngắt từ nếu cần */
  max-width: 100%; /* Đảm bảo nút không vượt quá chiều rộng container */
  box-sizing: border-box;
}

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

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

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

.page-sports__btn-secondary:hover {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* About Sports Betting Section */
.page-sports__about-sports-betting {
  padding: 80px 0;
  background-color: #1a1a1a; /* Nền tối hơn cho section này */
  color: #f0f0f0;
}

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

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.08); /* Nền thẻ hơi trong suốt */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  height: 100%; /* Đảm bảo chiều cao đồng nhất */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f0f0f0;
}

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

.page-sports__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Đảm bảo kích thước tối thiểu */
  min-height: 200px;
}

.page-sports__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-sports__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-sports__card-title a:hover {
  text-decoration: underline;
}

.page-sports__card-description {
  font-size: 1em;
  color: #cccccc;
  flex-grow: 1;
}

.page-sports__card-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #26A9E0;
  color: #FFFFFF;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-sports__card-button:hover {
  background-color: #1a8cc7;
}

/* Game Providers Section */
.page-sports__game-providers {
  padding: 80px 0;
  background-color: #0d0d0d; /* Nền cực tối */
  color: #f0f0f0;
}

.page-sports__provider-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 50px;
}

.page-sports__provider-logo {
  max-width: 180px;
  height: auto;
  filter: brightness(0.8) grayscale(0.2); /* Giảm độ sáng và màu sắc nhẹ */
  transition: filter 0.3s ease;
  min-width: 200px; /* Đảm bảo kích thước tối thiểu */
  min-height: 100px;
  object-fit: contain;
}

.page-sports__provider-logo:hover {
  filter: brightness(1) grayscale(0);
}

/* Promotions Section */
.page-sports__promotions {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

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

/* Video Section */
.page-sports__video-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #f0f0f0;
}

.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: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  width: 100%; /* Đảm bảo chiều rộng 100% trên desktop */
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block; /* Thêm display block */
  cursor: pointer;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-sports__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* Ẩn marker mặc định của summary */
}

.page-sports__faq-question::-webkit-details-marker {
  display: none; /* Ẩn marker mặc định trên Webkit */
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: #FFFFFF;
  margin-left: 15px;
}

.page-sports__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  color: #cccccc;
  line-height: 1.7;
}

/* Dark/Light Background Classes for Contrast */
.page-sports__dark-bg {
  background-color: #0d0d0d;
  color: #ffffff;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-section {
    min-height: 500px;
  }
  .page-sports__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-sports__hero-description {
    font-size: 1.1em;
  }
  .page-sports__card-title {
    font-size: 1.3em;
  }
  .page-sports__provider-logo {
    max-width: 150px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__hero-section {
    padding: 10px 0 40px 0;
    min-height: 400px;
  }
  .page-sports__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-sports__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-sports__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-sports__section-title {
    font-size: clamp(1.8em, 5vw, 2.2em);
    margin-bottom: 30px;
  }
  .page-sports__text-block {
    font-size: 0.95em;
  }
  .page-sports__about-sports-betting,
  .page-sports__game-providers,
  .page-sports__promotions,
  .page-sports__video-section,
  .page-sports__faq-section {
    padding: 50px 0;
  }
  .page-sports__feature-cards,
  .page-sports__promotion-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__card {
    padding: 20px;
  }
  .page-sports__card-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-sports__provider-logos {
    gap: 20px;
  }
  .page-sports__provider-logo {
    max-width: 120px;
    min-width: 200px !important;
    min-height: 100px !important;
  }
  /* Video responsiveness */
  .page-sports__video-wrapper {
    padding-bottom: 56.25% !important; /* 16:9 Aspect Ratio */
    height: 0 !important;
    overflow: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-sports__faq-answer {
    font-size: 0.95em;
    padding: 0 20px 15px 20px;
  }
  /* General content area padding for mobile */
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports__hero-content,
  .page-sports__about-sports-betting .page-sports__container,
  .page-sports__game-providers .page-sports__container,
  .page-sports__promotions .page-sports__container,
  .page-sports__video-section .page-sports__container,
  .page-sports__faq-section .page-sports__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  /* All images must be responsive */
  .page-sports img {
    max-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;
    overflow: hidden !important;
  }
}