.page-index {
  color: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a; /* Ensure consistency with shared body background */
}

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-index__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 80px 20px;
}

.page-index__dark-section .page-index__section-title,
.page-index__dark-section .page-index__section-description {
  color: #ffffff;
}

.page-index__hero-section {
  padding: 80px 20px;
  text-align: center;
  background-image: url('[GALLERY:bg:1920x1080:no_hu,jackpot_background,abstract_green]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-index__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: -1;
}

.page-index__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-index__main-title {
  font-size: 48px;
  font-weight: 900;
  color: #FFFF00; /* Custom color for H1 text */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-index__btn-register {
  background: #C30808; /* Custom Register button color */
  color: #FFFF00; /* Custom Register font color */
}

.page-index__btn-register:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__btn-login {
  background: #C30808; /* Custom Login button color */
  color: #FFFF00; /* Custom Login font color */
}

.page-index__btn-login:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Video Section */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #0a0a0a; /* Match body background */
}

.page-index__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-index__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event on parent <a> */
}

.page-index__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-index__video-link:hover .page-index__video-overlay {
  opacity: 1;
}

.page-index__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-index__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Custom Login button color */
  color: #FFFF00; /* Custom Login font color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-index__play-now-button:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.page-index__features-section {
  padding: 80px 20px;
  background-color: #0a0a0a;
}

.page-index__features-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  color: #ffffff;
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.page-index__feature-icon {
  width: 200px; /* Min size requirement */
  height: 150px; /* Example, adjust as needed for aspect ratio */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__feature-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFFF00; /* Highlight with yellow */
  margin-bottom: 15px;
}

.page-index__feature-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 20px;
}

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

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

.page-index__game-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__game-title {
  font-size: 22px;
  font-weight: bold;
  padding: 15px 20px 0;
  margin: 0;
}

.page-index__game-title a {
  color: #FFFF00; /* Highlight with yellow */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-index__game-description {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 20px 20px;
}

.page-index__view-all-games {
  text-align: center;
}

/* Other Games Section */
.page-index__other-games-section {
  padding: 80px 20px;
  background-color: #0a0a0a;
}

.page-index__other-games-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__other-game-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__other-game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__other-game-title {
  font-size: 20px;
  font-weight: bold;
  padding: 15px 20px 0;
  margin: 0;
}

.page-index__other-game-title a {
  color: #FFFF00; /* Highlight with yellow */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-index__other-game-description {
  font-size: 14px;
  color: #f0f0f0;
  padding: 0 20px 20px;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #0a0a0a;
}

.page-index__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

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

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