/* style/index.css */

/* Căn chỉnh khoảng cách cho nội dung chính nếu có thanh điều hướng cố định */
.page-content {
  padding-top: 0; /* HERO section không cần padding top đặc biệt, nó full width */
  background-color: var(--dark-bg-1); /* Nền tối cho toàn bộ trang */
  color: #ffffff; /* Chữ màu sáng trên nền tối */
}

/* -------------------- HERO Section -------------------- */
.page-index__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  background-color: var(--dark-bg-1); /* Đảm bảo nền khớp với body */
}

.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-color: var(--dark-bg-2); /* Nền tối hơn một chút cho phần này */
  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: 30px;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none; /* Disable user interaction for the carousel wrapper */
}

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

.page-index__logo-item {
  flex-shrink: 0;
  width: 180px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Nền 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; /* Allow interaction for individual logo items */
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.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-color: var(--dark-bg-1);
}

.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: var(--accent-color); /* Vàng */
  text-align: left;
  text-transform: uppercase;
}

.page-index__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  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(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.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: 20px;
  margin-bottom: 20px;
  align-items: center;
}

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

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

.page-index__games-tab.active {
  color: var(--accent-color); /* Vàng */
  text-decoration: underline;
}

.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.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  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.25);
}

.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 10px 0;
  padding: 0 5px;
  color: #ffffff; /* Chữ trắng */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* -------------------- General Content Styles -------------------- */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-index__dark-section {
  background-color: var(--dark-bg-2);
  color: #ffffff;
  padding: 60px 20px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-index__light-section {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 20px;
  margin-top: 30px;
}

.page-index__heading {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 25px;
  color: #ffffff;
  text-align: left;
}

.page-index__heading--center {
  text-align: center;
}

.page-index__paragraph {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-index__paragraph--center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__inline-link {
  color: var(--accent-color); /* Vàng */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-index__inline-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

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

.page-index__button-group--center {
  justify-content: center;
}

.page-index__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.page-index__btn--primary {
  background-color: var(--accent-color); /* Vàng */
  color: var(--main-color); /* Xanh đậm */
  border: 2px solid var(--accent-color);
}

.page-index__btn--primary:hover {
  background-color: #ffffff;
  color: var(--main-color);
  border-color: #ffffff;
}

.page-index__btn--secondary {
  background-color: transparent;
  color: var(--accent-color); /* Vàng */
  border: 2px solid var(--accent-color);
}

.page-index__btn--secondary:hover {
  background-color: var(--accent-color);
  color: var(--main-color);
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 6px;
}

/* -------------------- Quick Access Section -------------------- */
.page-index__quick-access-section {
  background-color: var(--dark-bg-1);
  padding: 60px 20px;
}

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

.page-index__access-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.page-index__access-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.page-index__access-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__access-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent-color); /* Vàng */
}

.page-index__access-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-index__category-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__category-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

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

.page-index__category-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--accent-color); /* Vàng */
}

.page-index__category-description {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* -------------------- Promotions Section -------------------- */
.page-index__promotions-section {
  background-color: var(--dark-bg-1);
  padding: 60px 20px;
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-index__promo-card .page-index__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: var(--accent-color); /* Vàng */
}

.page-index__promo-card .page-index__promo-description {
  font-size: 15px;
  line-height: 1.6;
  color: #f0f0f0;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-index__promo-card .page-index__btn {
  margin: 0 15px 20px;
}

/* -------------------- Safety & Support Section -------------------- */
.page-index__safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__safety-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__safety-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.page-index__safety-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.page-index__safety-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--accent-color); /* Vàng */
}

.page-index__safety-description {
  font-size: 15px;
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* -------------------- FAQ Section -------------------- */
.page-index__faq-section {
  background-color: var(--dark-bg-1);
  padding: 60px 20px;
}

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

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-index__faq-item.active {
  background: rgba(255, 255, 255, 0.1);
}

.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;
  padding: 0 20px;
  opacity: 0;
  color: #f0f0f0;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: transparent;
  border-radius: 8px;
  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.08);
}

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

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--accent-color); /* Vàng */
  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: #ffffff;
}

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

.page-index__blog-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

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

.page-index__blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

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

.page-index__blog-title a:hover {
  color: var(--accent-color); /* Vàng */
}

.page-index__blog-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 15px;
  flex-grow: 1;
}

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

/* -------------------- Responsive Design -------------------- */
/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-content {
    padding-top: 80px; /* Adjust for fixed header on mobile */
  }

  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__section,
  .page-index__container,
  .page-index__hero-section,
  .page-index__logo-carousel-section,
  .page-index__games-section,
  .page-index__intro-section,
  .page-index__quick-access-section,
  .page-index__core-games-section,
  .page-index__promotions-section,
  .page-index__safety-support-section,
  .page-index__faq-section,
  .page-index__blog-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__hero-image {
    height: auto; /* Allow image to dictate height */
  }

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

  .page-index__games-section {
    padding: 40px 15px;
  }
  
  .page-index__games-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-index__featured-game-title {
    font-size: 22px;
    text-align: center;
  }
  
  .page-index__featured-game-image {
    height: 300px;
  }
  
  .page-index__games-tabs {
    gap: 15px;
    justify-content: center;
  }
  
  .page-index__games-tab {
    font-size: 16px;
  }
  
  .page-index__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .page-index__game-card-image {
    height: 120px;
  }
  
  .page-index__game-card-title {
    font-size: 13px;
    margin: 8px 0 0 0;
    padding: 0 3px;
  }

  .page-index__heading {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
  }

  .page-index__paragraph {
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
  }

  .page-index__button-group {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .page-index__btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-index__access-grid,
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__safety-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-index__access-card,
  .page-index__category-item,
  .page-index__promo-card,
  .page-index__safety-item,
  .page-index__blog-card {
    padding: 25px;
  }

  .page-index__access-icon,
  .page-index__safety-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }

  .page-index__access-title,
  .page-index__safety-title {
    font-size: 20px;
  }

  .page-index__access-desc,
  .page-index__safety-description,
  .page-index__promo-description,
  .page-index__category-description,
  .page-index__blog-excerpt {
    font-size: 14px;
  }

  .page-index__promo-image {
    height: 180px;
  }

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

  .page-index__faq-question {
    padding: 15px;
  }
  
  .page-index__faq-question h3 {
    font-size: 16px;
  }
  
  .page-index__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }

  .page-index__blog-image {
    height: 180px;
  }

  .page-index__blog-title {
    font-size: 18px;
  }

  .page-index__blog-date {
    font-size: 12px;
  }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-index__games-layout {
    grid-template-columns: 1fr;
  }
  
  .page-index__games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-index__container {
    padding: 30px 20px;
  }

  .page-index__heading {
    font-size: 28px;
  }

  .page-index__access-grid,
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__safety-grid,
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}