.page-content.page-index {
  padding-top: 120px; /* Khoảng cách cho header cố định trên desktop */
  background-color: #121212; /* Nền tối của body */
  color: #f0f0f0; /* Màu chữ sáng cho nền tối */
}

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

/* HERO Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

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

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

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

/* Logo Carousel Section */
.page-index__logo-carousel-section {
  width: 100%;
  padding: 40px 20px;
  background: #1a1a1a; /* Nền tối hơn cho phần logo */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.page-index__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; /* Disable user interaction for carousel */
}

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

.page-index__logo-item {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Nền logo hơi trong suốt */
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto; /* Re-enable pointer events for the link inside */
}

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

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

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

/* Games Section */
.page-index__games-section {
  width: 100%;
  padding: 60px 20px;
  background: #121212;
  color: #f0f0f0;
}

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

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

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

.page-index__featured-game-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #ffd700; /* Yellow for Jackpot */
  text-align: left;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.page-index__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent background */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

.page-index__games-tabs {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

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

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

.page-index__games-tab.active {
  color: #ffc107; /* Auxiliary color for active tab */
  border-bottom: 3px solid #ffc107;
}

.page-index__games-tab.active + .page-index__games-tab {
  color: #ffffff; 
}

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

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

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

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

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

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

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

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

/* General Section Styles */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__heading {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-index__paragraph {
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 25px;
  color: #e0e0e0;
}

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

.page-index__light-bg {
  background: #242424;
  padding: 80px 0;
  color: #f0f0f0;
}

.page-index__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

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

.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-index__btn-primary {
  background: #007bff;
  color: #ffffff;
  border-color: #007bff;
}

.page-index__btn-primary:hover {
  background: #0056b3;
  border-color: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
}

.page-index__btn-secondary {
  background: none;
  color: #ffc107;
  border-color: #ffc107;
}

.page-index__btn-secondary:hover {
  background: #ffc107;
  color: #121212;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.page-index__btn-small {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #007bff;
  color: #ffffff;
  border: 1px solid #007bff;
}

.page-index__btn-small:hover {
  background: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

/* Quick Access Section */
.page-index__links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-index__link-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.page-index__link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background: rgba(0, 123, 255, 0.15);
}

.page-index__link-card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffc107;
}

.page-index__link-card-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
}

/* Games Detail Section */
.page-index__game-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-index__game-category-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-category-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background: rgba(0, 123, 255, 0.15);
}

.page-index__category-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__category-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffc107;
}

.page-index__category-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
}

/* Promotions Section */
.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background: rgba(0, 123, 255, 0.15);
}

.page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__promo-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffc107;
}

.page-index__promo-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 20px;
}

/* Security & Support Section */
.page-index__feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background: rgba(0, 123, 255, 0.15);
}

.page-index__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffc107;
}

.page-index__feature-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
}

/* FAQ Section */
.page-index__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

.page-index__faq-toggle {
  font-size: 28px;
  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: 32px;
  height: 32px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #007bff;
  transform: rotate(45deg); /* Plus to X for close, or just change text */
}

.page-index__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 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #cccccc;
  font-size: 16px;
  line-height: 1.7;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

/* Blog Section */
.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-index__blog-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background: rgba(0, 123, 255, 0.15);
}

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

.page-index__blog-content {
  padding: 25px;
}

.page-index__blog-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index__blog-title a {
  color: #ffc107;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-title a:hover {
  color: #ffffff;
}

.page-index__blog-summary {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-index__blog-date {
  font-size: 14px;
  color: #888888;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .page-index__heading {
    font-size: 32px;
  }
  .page-index__paragraph {
    font-size: 16px;
  }
  .page-index__games-layout {
    grid-template-columns: 1fr;
  }
  .page-index__featured-game-image {
    height: 400px;
  }
  .page-index__games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-index__game-card-image {
    height: 180px;
  }
  .page-index__links-grid,
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__feature-grid,
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 0 !important;
  }
  .page-index__logo-carousel-section,
  .page-index__games-section,
  .page-index__intro-section,
  .page-index__quick-access-section,
  .page-index__games-detail-section,
  .page-index__promotions-section,
  .page-index__security-support-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding: 40px 15px;
  }
  .page-index__heading {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-index__paragraph {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-index__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

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

  .page-index__featured-game-title {
    font-size: 24px;
  }
  .page-index__featured-game-image {
    height: 300px;
  }
  .page-index__games-tabs {
    gap: 15px;
    margin-bottom: 20px;
  }
  .page-index__games-tab {
    font-size: 17px;
  }
  .page-index__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-index__game-card-image {
    height: 140px;
  }
  .page-index__game-card-title {
    font-size: 13px;
    margin: 8px 0 0 0;
    padding: 0 5px 8px;
  }

  .page-index__links-grid,
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__feature-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__link-card,
  .page-index__game-category-item,
  .page-index__promo-card,
  .page-index__feature-item,
  .page-index__blog-card {
    padding: 20px;
  }
  .page-index__link-card-title,
  .page-index__category-title,
  .page-index__promo-title,
  .page-index__feature-title,
  .page-index__blog-title {
    font-size: 18px;
  }
  .page-index__link-card-desc,
  .page-index__category-desc,
  .page-index__promo-desc,
  .page-index__feature-desc,
  .page-index__blog-summary {
    font-size: 14px;
  }
  .page-index__category-icon,
  .page-index__feature-icon {
    width: 70px;
    height: 70px;
  }
  .page-index__promo-image,
  .page-index__blog-image {
    height: 180px;
  }
  .page-index__faq-list {
    margin-top: 30px;
  }
  .page-index__faq-question {
    padding: 15px 20px;
  }
  .page-index__faq-question h3 {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-index__faq-answer {
    padding: 0 20px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px 20px !important;
  }

  /* Ensure all images are responsive on mobile */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__link-card,
  .page-index__game-category-item,
  .page-index__promo-card,
  .page-index__feature-item,
  .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Body background is dark (#121212), so text is light (#f0f0f0) */
.page-index p,
.page-index li {
  color: #e0e0e0;
}

/* Card backgrounds are slightly lighter or transparent dark */
.page-index__card,
.page-index__link-card,
.page-index__game-category-item,
.page-index__promo-card,
.page-index__feature-item,
.page-index__blog-card {
  background: rgba(255, 255, 255, 0.08);
  color: #f0f0f0;
}

/* Button text contrast */
.page-index__btn-primary {
  background: #007bff;
  color: #ffffff;
}

.page-index__btn-secondary {
  background: none;
  color: #ffc107;
}

.page-index__btn-secondary:hover {
  background: #ffc107;
  color: #121212; /* Dark text on light background */
}

.page-index__btn-small {
  background: #007bff;
  color: #ffffff;
}

/* Specific elements for dark background text */
.page-index__faq-question h3 {
  color: #f0f0f0;
}

.page-index__blog-title a {
  color: #ffc107;
}