/* style/sports.css */

/* Cài đặt cơ bản cho trang Thể thao */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Mặc định chữ sáng trên nền tối của body */
  background-color: transparent; /* Body đã có nền đen từ shared.css */
  padding-top: 120px; /* Khoảng cách cho fixed header trên desktop */
}

@media (max-width: 768px) {
  .page-sports {
    padding-top: 100px; /* Khoảng cách cho fixed header trên mobile */
  }
}

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

.page-sports__section-title {
  font-size: 36px;
  color: #FFD700; /* Màu vàng thương hiệu cho tiêu đề */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-sports__section-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-sports__text-block {
  font-size: 17px;
  margin-bottom: 25px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-sports__text-block a {
  color: #FFD700;
  text-decoration: none;
}

.page-sports__text-block a:hover {
  text-decoration: underline;
}

.page-sports__text-white {
  color: #ffffff !important;
}

/* Hero Banner Section */
.page-sports__hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-sports__hero-banner.page-sports__dark-bg {
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.page-sports__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: #FFD700; /* Tiêu đề chính màu vàng */
}

.page-sports__hero-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-sports__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-sports__hero-description a {
  color: #FFD700;
  text-decoration: none;
}

.page-sports__hero-description a:hover {
  text-decoration: underline;
}

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

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  margin: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-primary {
  background: #FFD700;
  color: #000000; /* Chữ đen trên nền vàng */
  border: 2px solid #FFD700;
}

.page-sports__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__btn-secondary {
  background: transparent;
  color: #FFD700; /* Chữ vàng trên nền tối */
  border: 2px solid #FFD700;
}

.page-sports__btn-secondary:hover {
  background: #FFD700;
  color: #000000; /* Chữ đen trên nền vàng khi hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__center-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
}

/* Section Styling */
.page-sports__intro-section,
.page-sports__guide-section,
.page-sports__advantages-section,
.page-sports__news-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Nền tối vừa phải */
  color: #f0f0f0;
}

.page-sports__bet-types-section,
.page-sports__promo-section,
.page-sports__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Nền tối hơn */
  color: #f0f0f0;
}

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

.page-sports__dark-bg {
  background-color: #0d0d0d;
  color: #f0f0f0;
}

.page-sports__dark-section {
  background-color: #8B0000; /* Nền đỏ đậm */
  color: #ffffff; /* Chữ trắng trên nền đỏ đậm */
}

.page-sports__dark-section .page-sports__section-title,
.page-sports__dark-section .page-sports__text-block {
  color: #ffffff;
}

.page-sports__dark-section .page-sports__section-title a,
.page-sports__dark-section .page-sports__text-block a {
  color: #FFD700;
}

/* Image Full Width */
.page-sports__image-full-width {
  margin: 40px 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__image-full-width img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.page-sports__card {
  background-color: #2a2a2a; /* Nền thẻ tối nhẹ */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #f0f0f0;
}

.page-sports__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-sports__card-image {
  width: 100%;
  height: 200px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
}

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

.page-sports__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFD700; /* Tiêu đề thẻ màu vàng */
}

.page-sports__card-text {
  font-size: 16px;
  color: #cccccc;
}

/* Numbered List */
.page-sports__numbered-list {
  list-style: none;
  counter-reset: my-counter;
  padding: 0;
  margin-top: 40px;
}

.page-sports__numbered-list li {
  counter-increment: my-counter;
  margin-bottom: 25px;
  padding-left: 60px;
  position: relative;
  font-size: 17px;
  color: #f0f0f0;
}

.page-sports__numbered-list li::before {
  content: counter(my-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: #FFD700;
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-sports__list-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-sports__list-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-sports__numbered-list li p a {
  color: #FFD700;
  text-decoration: none;
}

.page-sports__numbered-list li p a:hover {
  text-decoration: underline;
}

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

.page-sports__promo-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #f0f0f0;
}

.page-sports__promo-image {
  width: 100%;
  height: 200px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
}

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

.page-sports__promo-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-sports__promo-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-sports__promo-description {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-sports__promo-description a {
  color: #FFD700;
  text-decoration: none;
}

.page-sports__promo-description a:hover {
  text-decoration: underline;
}

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

.page-sports__advantage-item {
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #f0f0f0;
}

.page-sports__advantage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  background-color: #FFD700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__advantage-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.page-sports__advantage-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-sports__advantage-text {
  font-size: 16px;
  color: #cccccc;
}

.page-sports__advantage-text a {
  color: #FFD700;
  text-decoration: none;
}

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

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #2a2a2a;
  color: #f0f0f0;
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background-color: #1a1a1a;
  color: #cccccc;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important; /* Đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-sports__faq-answer p a {
  color: #FFD700;
  text-decoration: none;
}

.page-sports__faq-answer p a:hover {
  text-decoration: underline;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #3a3a3a;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-sports__faq-question:hover {
  background: #4a4a4a;
  border-color: #FFD700;
}

.page-sports__faq-question:active {
  background: #5a5a5a;
}

.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #f0f0f0;
}

.page-sports__faq-question h3 a {
  color: #FFD700;
  text-decoration: none;
}

.page-sports__faq-question h3 a:hover {
  text-decoration: underline;
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

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

.page-sports__news-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #f0f0f0;
}

.page-sports__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-sports__news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.page-sports__news-content {
  padding: 25px;
  text-align: left;
}

.page-sports__news-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-sports__news-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-sports__news-excerpt {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-sports__news-excerpt a {
  color: #FFD700;
  text-decoration: none;
}

.page-sports__news-excerpt a:hover {
  text-decoration: underline;
}

.page-sports__read-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-sports__read-more:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 40px;
  }

  .page-sports__hero-description {
    font-size: 18px;
  }

  .page-sports__section-title {
    font-size: 30px;
  }

  .page-sports__text-block {
    font-size: 16px;
  }

  .page-sports__card-title,
  .page-sports__promo-title,
  .page-sports__advantage-title,
  .page-sports__news-title {
    font-size: 20px;
  }

  .page-sports__card-text,
  .page-sports__promo-description,
  .page-sports__advantage-text,
  .page-sports__news-excerpt {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-banner {
    flex-direction: column;
    padding: 60px 0;
  }

  .page-sports__hero-content {
    padding: 0 15px;
  }

  .page-sports__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-sports__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    margin: 8px;
  }

  .page-sports__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-sports__text-block {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-sports__intro-section,
  .page-sports__bet-types-section,
  .page-sports__guide-section,
  .page-sports__promo-section,
  .page-sports__advantages-section,
  .page-sports__faq-section,
  .page-sports__news-section {
    padding: 60px 0;
  }

  .page-sports__container {
    padding: 0 15px;
  }

  .page-sports__grid-3-cols,
  .page-sports__promo-grid,
  .page-sports__advantage-grid,
  .page-sports__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__card,
  .page-sports__promo-card,
  .page-sports__advantage-item,
  .page-sports__news-card {
    padding: 20px;
  }

  .page-sports__card-image,
  .page-sports__promo-image,
  .page-sports__news-image {
    height: 180px;
  }

  .page-sports__card-title,
  .page-sports__promo-title,
  .page-sports__advantage-title,
  .page-sports__news-title {
    font-size: 18px;
  }

  .page-sports__card-text,
  .page-sports__promo-description,
  .page-sports__advantage-text,
  .page-sports__news-excerpt {
    font-size: 14px;
  }

  .page-sports__numbered-list li {
    padding-left: 50px;
    font-size: 15px;
  }

  .page-sports__numbered-list li::before {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .page-sports__list-title {
    font-size: 20px;
  }

  .page-sports__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }

  .page-sports__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }

  .page-sports__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  .page-sports__faq-answer {
    padding: 0 15px;
  }

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images and containers are responsive */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-sports__hero-banner,
  .page-sports__intro-section,
  .page-sports__bet-types-section,
  .page-sports__guide-section,
  .page-sports__promo-section,
  .page-sports__advantages-section,
  .page-sports__faq-section,
  .page-sports__news-section,
  .page-sports__container,
  .page-sports__card,
  .page-sports__promo-card,
  .page-sports__advantage-item,
  .page-sports__news-card,
  .page-sports__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sports__hero-banner {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 28px;
  }

  .page-sports__hero-description {
    font-size: 15px;
  }

  .page-sports__section-title {
    font-size: 24px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}