/* style/sports.css */
.page-sports {
  /* Đảm bảo nội dung không bị che bởi header cố định */
  padding-top: 120px; /* Giá trị mặc định cho desktop */
  color: #ffffff; /* Màu chữ mặc định cho nền tối */
}

@media (max-width: 768px) {
  .page-sports {
    padding-top: 100px; /* Giá trị cho mobile */
  }
}

/* HERO主图区域样式 */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: -120px; /* Bù lại padding-top của main để hero full width */
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    margin-top: -100px; /* Bù lại padding-top của main cho mobile */
  }
}

.page-sports__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-sports__hero-image {
  width: 100%;
  margin: 0;
}

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

/* LOGO轮播区域样式 */
.page-sports__logo-carousel-section {
  width: 100%;
  padding: 40px 20px;
  background: #1a1a1a; /* Nền tối hơn một chút so với body */
}

.page-sports__logo-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.page-sports__logo-carousel {
  display: flex;
  gap: 20px;
  overflow: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 10px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none; /* Ngăn chặn tương tác trực tiếp với carousel */
}

.page-sports__logo-carousel::-webkit-scrollbar {
  display: none;
}

.page-sports__logo-item {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: #282828; /* Nền tối cho logo */
  border: 1px solid #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto; /* Cho phép click vào item */
}

.page-sports__logo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-sports__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 15px;
  box-sizing: border-box;
  pointer-events: auto;
}

.page-sports__logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 游戏展示区域样式 */
.page-sports__games-section {
  width: 100%;
  padding: 60px 20px;
  background: #121212;
}

.page-sports__games-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-sports__games-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}

.page-sports__featured-game-area {
  width: 100%;
}

.page-sports__featured-game-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #ffc107; /* Màu vàng phụ trợ */
  text-align: left;
}

.page-sports__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid #333333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-sports__featured-game-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-sports__featured-game-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

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

.page-sports__games-grid-area {
  width: 100%;
}

.page-sports__games-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.page-sports__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #999999;
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
}

.page-sports__games-tab:hover {
  color: #ffffff;
}

.page-sports__games-tab.active {
  color: #007bff; /* Màu chủ đạo */
  text-decoration: underline;
}

.page-sports__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none;
}

.page-sports__games-grid.active {
  display: grid;
}

.page-sports__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-sports__game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

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

.page-sports__game-card-title {
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 0 0;
  padding: 0 5px 10px 5px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* Các section chung */
.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-sports__section-heading {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-sports__main-heading {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-sports__paragraph {
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Nút chung */
.page-sports__btn-primary {
  display: inline-block;
  background: #007bff;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
  border: none;
  cursor: pointer;
}

.page-sports__btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  display: inline-block;
  background: #1a1a1a;
  color: #007bff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
  border: 1px solid #007bff;
  cursor: pointer;
}

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

.page-sports__btn-text {
  display: inline-block;
  color: #ffc107;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-sports__btn-text:hover {
  color: #ffffff;
}

/* Các section riêng */
.page-sports__intro-section {
  padding: 80px 0;
  background: #007bff; /* Nền xanh chủ đạo */
  color: #ffffff;
}

.page-sports__intro-section .page-sports__paragraph {
  color: #ffffff;
}

.page-sports__quick-links-section {
  padding: 80px 0;
  background: #121212;
}

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

.page-sports__link-card {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
}

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

.page-sports__link-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-sports__link-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: brightness(0) invert(1); /* Làm trắng icon */
}

.page-sports__link-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-sports__link-card p {
  font-size: 14px;
  color: #cccccc;
  line-height: 1.6;
  text-align: center;
}

.page-sports__core-games-section {
  padding: 80px 0;
  background: #1a1a1a;
}

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

.page-sports__game-type-card {
  background: #282828;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sports__game-type-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__game-type-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__game-type-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #ffc107;
}

.page-sports__game-type-card p {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.7;
  text-align: justify;
  flex-grow: 1;
}

.page-sports__promotions-section {
  padding: 80px 0;
  background: #121212;
}

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

.page-sports__promo-card {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
  display: flex;
  flex-direction: column;
}

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

.page-sports__promo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__promo-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #007bff;
}

.page-sports__promo-card p {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  flex-grow: 1;
}

.page-sports__security-section {
  padding: 80px 0;
  background: #007bff; /* Nền xanh chủ đạo */
  color: #ffffff;
}

.page-sports__security-section .page-sports__paragraph {
  color: #ffffff;
}

.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: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__feature-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: brightness(0) invert(1); /* Làm trắng icon */
}

.page-sports__feature-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-sports__feature-item p {
  font-size: 15px;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-sports__faq-section {
  padding: 80px 0;
  background: #121212;
}

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

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #1a1a1a;
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #282828;
  border: 1px solid #333333;
  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: #3a3a3a;
  border-color: #555555;
}

.page-sports__faq-question:active {
  background: #4a4a4a;
}

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

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #ffc107;
  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: #007bff;
}

.page-sports__blog-section {
  padding: 80px 0;
  background: #1a1a1a;
}

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

.page-sports__blog-card {
  background: #282828;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
  display: flex;
  flex-direction: column;
}

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

.page-sports__blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__blog-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #ffc107;
  text-align: left;
  flex-grow: 1;
}

.page-sports__blog-card p {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 15px;
}

.page-sports__blog-card .page-sports__blog-date {
  font-size: 13px;
  color: #999999;
  text-align: right;
  display: block;
}

.page-sports__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-sports__games-layout {
    grid-template-columns: 1fr;
  }
  
  .page-sports__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-sports__section-heading {
    font-size: 28px;
  }
  .page-sports__main-heading {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-sports__container,
  .page-sports__logo-carousel-container,
  .page-sports__games-container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-sports__hero-section,
  .page-sports__logo-carousel-section,
  .page-sports__games-section,
  .page-sports__intro-section,
  .page-sports__quick-links-section,
  .page-sports__core-games-section,
  .page-sports__promotions-section,
  .page-sports__security-section,
  .page-sports__faq-section,
  .page-sports__blog-section {
    padding: 40px 0;
  }
  
  .page-sports__section-heading {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-sports__main-heading {
    font-size: 28px;
    margin-bottom: 25px;
  }
  .page-sports__paragraph {
    font-size: 15px;
  }

  .page-sports__logo-carousel-section {
    padding: 30px 0;
  }
  
  .page-sports__logo-item {
    width: 150px;
    height: 150px;
  }
  
  .page-sports__logo-carousel {
    gap: 15px;
  }

  .page-sports__featured-game-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .page-sports__featured-game-image {
    height: 300px;
  }
  
  .page-sports__games-tabs {
    gap: 15px;
  }
  
  .page-sports__games-tab {
    font-size: 16px;
  }
  
  .page-sports__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .page-sports__game-card-image {
    height: 150px;
  }
  
  .page-sports__game-card-title {
    font-size: 13px;
    margin: 8px 0 0 0;
    padding: 0 3px 8px 3px;
  }

  .page-sports__links-grid,
  .page-sports__game-types-grid,
  .page-sports__promo-grid,
  .page-sports__features-grid,
  .page-sports__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  
  .page-sports__link-card img,
  .page-sports__feature-item img {
    width: 80px;
    height: 80px;
  }

  .page-sports__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-sports__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    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;
  }
}