.page-index {
  color: #ffffff; /* Text color for dark body background */
  background-color: transparent; /* body background is handled by shared.css */
}

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

.page-index__heading {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #DAA520; /* Primary brand color for headings */
}

.page-index__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0; /* Slightly lighter white for description */
  line-height: 1.6;
}

.page-index__text-block {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: #e0e0e0;
}

.page-index__dark-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Ensure section has a dark background */
}

.page-index__btn-primary {
  display: inline-block;
  background: #DAA520;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.page-index__btn-primary:hover {
  background-color: #ffb700;
  transform: translateY(-2px);
}

.page-index__btn-secondary {
  display: inline-block;
  background: transparent;
  color: #DAA520;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 2px solid #DAA520;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.page-index__btn-secondary:hover {
  border-color: #ffb700;
  color: #ffb700;
  transform: translateY(-2px);
}

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

/* HERO Main Image Area */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* Assuming shared.css already applies padding-top to body */
  margin-top: 0;
  width: 100%;
  overflow: hidden;
}

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

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

/* Game LOGO Carousel Area */
.page-index__logo-carousel-section {
  width: 100%;
  padding: 30px 20px;
  background: #2F4F4F; /* Auxiliary brand color */
  box-sizing: border-box;
}

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

.page-index__logo-carousel {
  display: flex;
  gap: 15px;
  overflow: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 8px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none; /* Disable user interaction for scrolling */
}

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

.page-index__logo-item {
  flex-shrink: 0;
  width: 80px; /* Fixed size */
  height: 80px; /* Fixed size */
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #4a6b6b;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto; /* Allow clicks on the logo item */
}

.page-index__logo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

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

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

/* Game Display Area */
.page-index__games-section {
  width: 100%;
  padding: 60px 20px;
  background: #1a1a2e;
  box-sizing: border-box;
}

.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: #DAA520; /* Gold color for jackpot title */
  text-align: left;
}

.page-index__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #2F4F4F;
  border: 1px solid #4a6b6b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  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.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;
  justify-content: flex-start;
}

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

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

.page-index__games-tab.active {
  color: #DAA520; /* Active tab color */
  text-shadow: 0 0 8px rgba(218, 165, 32, 0.7);
}

.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: #2F4F4F;
  border: 1px solid #4a6b6b;
  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: 14px;
  font-weight: 500;
  margin: 10px 0 15px 0;
  padding: 0 5px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* Homepage Introduction Module */
.page-index__intro-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Quick Access Links Module */
.page-index__quick-access-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-index__access-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #2F4F4F;
  padding: 30px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  border: 1px solid #4a6b6b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.page-index__access-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  background-color: #3f6060;
}

.page-index__access-icon {
  font-size: 48px;
  margin-bottom: 15px;
  color: #DAA520;
}

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

.page-index__access-text {
  font-size: 14px;
  line-height: 1.6;
  color: #e0e0e0;
}

/* Core Games/Services Module */
.page-index__core-games-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index__game-category {
  background: #2F4F4F;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #4a6b6b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-index__category-text {
  font-size: 15px;
  line-height: 1.7;
  color: #e0e0e0;
  margin-bottom: 25px;
  text-align: justify;
}

/* Promotions Module */
.page-index__promotions-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.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: #2F4F4F;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #4a6b6b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-index__promo-text {
  font-size: 14px;
  line-height: 1.6;
  color: #e0e0e0;
  margin: 0 15px 20px 15px;
  flex-grow: 1;
}

.page-index__promo-card .page-index__btn-primary {
  margin: 0 15px 20px 15px;
  width: calc(100% - 30px);
}

/* Security & Customer Service Module */
.page-index__security-support-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index__feature-item {
  background: #2F4F4F;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #4a6b6b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.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: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #DAA520;
}

.page-index__feature-text {
  font-size: 14px;
  line-height: 1.6;
  color: #e0e0e0;
}

/* FAQ Module */
.page-index__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-index__faq-list {
  margin-top: 40px;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #2F4F4F;
  border: 1px solid #4a6b6b;
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2F4F4F;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #3f6060;
}

.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: #DAA520;
  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: 30px;
  height: 30px;
}

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

.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 20px;
  opacity: 0;
  background: #3f6060;
  color: #e0e0e0;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid #4a6b6b;
}

.page-index__faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #e0e0e0;
}

/* Latest Blog Content Module */
.page-index__blog-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.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: #2F4F4F;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #4a6b6b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

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

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

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

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

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

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

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

  .page-index__featured-game-image {
    height: 400px;
  }

  .page-index__game-categories {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-index__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-index__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .page-index__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-index__link-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO Main Image Area */
  .page-index__hero-section {
    padding-top: 0 !important; /* Ensure no double padding if shared provides it */
  }
  
  .page-index__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* LOGO Carousel Area */
  .page-index__logo-carousel-section {
    padding: 20px 15px;
  }
  
  .page-index__logo-carousel {
    gap: 12px;
  }
  
  .page-index__logo-item {
    width: 80px !important; /* Fixed size, prevent scaling */
    height: 80px !important;
    max-width: 80px !important;
  }
  
  .page-index__logo-item a {
    padding: 8px;
  }

  /* Game Display Area */
  .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;
    margin-bottom: 15px;
  }
  
  .page-index__featured-game-image {
    height: 250px;
  }
  
  .page-index__games-tabs {
    gap: 15px;
    margin-bottom: 20px;
    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: 150px;
  }
  
  .page-index__game-card-title {
    font-size: 13px;
    margin: 8px 0 10px 0;
    padding: 0 3px;
  }

  /* Homepage Introduction Module */
  .page-index__intro-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  /* Quick Access Links Module */
  .page-index__quick-access-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  .page-index__link-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Core Games/Services Module */
  .page-index__core-games-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  .page-index__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__category-image {
    height: 200px;
  }
  
  .page-index__category-title {
    font-size: 20px;
  }
  
  .page-index__category-text {
    font-size: 14px;
  }

  /* Promotions Module */
  .page-index__promotions-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  .page-index__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__promo-image {
    height: 180px;
  }
  
  .page-index__promo-title {
    font-size: 18px;
  }
  
  .page-index__promo-text {
    font-size: 13px;
  }

  /* Security & Customer Service Module */
  .page-index__security-support-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  .page-index__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-index__feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .page-index__feature-title {
    font-size: 18px;
  }
  
  .page-index__feature-text {
    font-size: 13px;
  }
  
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  
  .page-index__cta-buttons .page-index__btn-primary,
  .page-index__cta-buttons .page-index__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* FAQ Module */
  .page-index__faq-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  .page-index__faq-question {
    padding: 15px;
  }
  
  .page-index__faq-question h3 {
    font-size: 16px;
  }
  
  .page-index__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  
  .page-index__faq-answer {
    padding: 0 15px;
  }
  
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }
  
  .page-index__faq-answer p {
    font-size: 14px;
  }

  /* Latest Blog Content Module */
  .page-index__blog-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-index__blog-image {
    height: 180px;
  }
  
  .page-index__blog-title {
    font-size: 18px;
  }
  
  .page-index__blog-summary {
    font-size: 13px;
  }

  /* General elements */
  .page-index__container {
    padding: 0 15px;
  }

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

  .page-index__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-index__text-block {
    font-size: 15px;
  }

  .page-index img:not(.page-index__logo-item img) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__access-card,
  .page-index__game-category,
  .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; */ /* Handled by container */
    /* padding-right: 15px; */ /* Handled by container */
  }

  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}