.page-index {
  color: #ffffff; /* Body background is #000 (dark), so main text color is light */
  background-color: #000;
}

.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
  margin-top: 0;
}

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

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

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

.page-index__logo-carousel-section {
  width: 100%;
  padding: 30px 20px;
  background: #1A202C; /* Dark background for contrast */
  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;
  -ms-overflow-style: none;
  padding: 10px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

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

.page-index__logo-item {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

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

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

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

.page-index__games-section {
  width: 100%;
  padding: 60px 20px;
  background: #000;
}

.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 25px 0;
  color: #FFD700; /* Gold text */
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.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;
}

.page-index__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-decoration: none;
  position: relative;
  text-transform: uppercase;
}

.page-index__games-tab:hover {
  color: #FFD700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.page-index__games-tab.active {
  color: #FFD700; /* Gold for active tab */
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  border-bottom: 2px solid #FFD700;
  padding-bottom: 5px;
}

.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: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px 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 8px 25px 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: 12px 0 10px 0;
  padding: 0 8px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

.page-index__introduction-section, .page-index__quick-access-section, .page-index__core-games-section, .page-index__promotions-section, .page-index__security-support-section, .page-index__faq-section, .page-index__blog-section {
  padding: 80px 20px;
  background-color: #000; /* Ensure dark background */
  color: #ffffff;
}

.page-index__introduction-container, .page-index__quick-access-container, .page-index__core-games-container, .page-index__promotions-container, .page-index__security-support-container, .page-index__faq-container, .page-index__blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.page-index__introduction-title, .page-index__quick-access-title, .page-index__core-games-title, .page-index__promotions-title, .page-index__security-support-title, .page-index__faq-main-title, .page-index__blog-main-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Highlighted title color */
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.page-index__introduction-description, .page-index__quick-access-description, .page-index__core-games-description, .page-index__promotions-description, .page-index__security-support-description, .page-index__blog-description {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-index__introduction-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-index__btn-primary, .page-index__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-index__btn-primary {
  background: #FFD700; /* Gold */
  color: #1A202C; /* Dark text for contrast */
  border: 2px solid #FFD700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-index__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}

.page-index__btn-secondary {
  background: #1A202C; /* Dark background */
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.page-index__btn-secondary:hover {
  background: #FFD700;
  color: #1A202C;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}

.page-index__game-category {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__game-category-title {
  font-size: 24px;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-index__game-category p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

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

.page-index__promo-card, .page-index__security-item, .page-index__blog-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a row have equal height */
  display: flex;
  flex-direction: column;
}

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

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

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

.page-index__promo-image img, .page-index__blog-image img, .page-index__security-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-index__promo-card-title, .page-index__security-item-title, .page-index__blog-title {
  font-size: 20px;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.page-index__promo-content p, .page-index__security-item p, .page-index__blog-summary {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-index__promo-content .page-index__btn-primary {
  margin-top: 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);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.08);
  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.12);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  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: #FFD700;
  transform: rotate(45deg); /* Changed to rotate for a 'x' effect */
}

.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;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 8px 8px;
}

.page-index__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.page-index__blog-card .page-index__blog-content {
  flex-grow: 1;
}

.page-index__blog-card .page-index__blog-title {
  font-size: 20px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-index__blog-card .page-index__blog-summary {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.page-index__all-news-button {
  text-align: center;
  margin-top: 50px;
}

/* General image responsiveness */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-index__introduction-title, .page-index__quick-access-title, .page-index__core-games-title, .page-index__promotions-title, .page-index__security-support-title, .page-index__faq-main-title, .page-index__blog-main-title {
    font-size: 32px;
  }

  .page-index__game-category-title, .page-index__promo-card-title, .page-index__security-item-title, .page-index__blog-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 0 !important; /* Ensure no double padding on mobile */
  }

  .page-index__logo-carousel-section {
    padding: 20px 15px;
  }

  .page-index__logo-carousel {
    gap: 15px;
  }
  
  .page-index__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
  }

  .page-index__games-section {
    padding: 40px 15px;
  }
  
  .page-index__games-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .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: 150px;
  }
  
  .page-index__game-card-title {
    font-size: 13px;
    margin: 10px 0 8px 0;
    padding: 0 5px;
  }

  .page-index__introduction-section, .page-index__quick-access-section, .page-index__core-games-section, .page-index__promotions-section, .page-index__security-support-section, .page-index__faq-section, .page-index__blog-section {
    padding: 40px 15px;
  }

  .page-index__introduction-title, .page-index__quick-access-title, .page-index__core-games-title, .page-index__promotions-title, .page-index__security-support-title, .page-index__faq-main-title, .page-index__blog-main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-index__introduction-description, .page-index__quick-access-description, .page-index__core-games-description, .page-index__promotions-description, .page-index__security-support-description, .page-index__blog-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-index__btn-primary, .page-index__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    width: 100% !important; /* Ensure buttons take full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}