.page-index {
  /* Body background is dark, so default text color should be light */
  color: #ffffff;
  background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* 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);
  background-color: #0a0a0a;
}

.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; /* Allow click 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-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(1, 116, 57, 0.8); /* Using primary color */
  border-radius: 5px;
  white-space: nowrap;
}

.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; /* Specific color for Play Now */
  color: #FFFF00; /* Specific font color for Play Now */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  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;
  min-width: 180px; /* Ensure button is not too small */
}

.page-index__play-now-button:hover {
  background: #a30707;
  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);
}

/* Hero Content (H1 + CTA) */
.page-index__hero-content {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #017439, #0a0a0a); /* Blend primary with body background */
  color: #ffffff;
}

.page-index__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FFFF00; /* Specific font color for main title */
}

.page-index__hero-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 150px;
  text-align: center;
}

.page-index__cta-button--register {
  background: #C30808; /* Specific color for Register */
  color: #FFFF00; /* Specific font color for Register */
}

.page-index__cta-button--register:hover {
  background: #a30707;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--login {
  background: #C30808; /* Specific color for Login */
  color: #FFFF00; /* Specific font color for Login */
}

.page-index__cta-button--login:hover {
  background: #a30707;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-index__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00; /* Using specific font color for titles */
}

.page-index__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

/* Features Section */
.page-index__features-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-index__feature-item {
  background: #2a2a2a; /* Darker background for cards */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-index__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-index__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00; /* Specific font color for feature titles */
}

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

/* Games Showcase Section */
.page-index__games-showcase {
  padding: 80px 0;
  background-color: #017439; /* Primary color background */
  color: #ffffff;
}

.page-index__games-showcase .page-index__section-title {
    color: #FFFF00; /* Yellow title on green background */
}

.page-index__games-showcase .page-index__section-description {
    color: #ffffff;
}

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

.page-index__game-card {
  display: block;
  background: #005a2e; /* Darker green for game cards */
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  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 20px rgba(0, 0, 0, 0.3);
}

.page-index__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index__game-title {
  font-size: 22px;
  font-weight: bold;
  padding: 20px 20px 10px;
  color: #FFFF00; /* Yellow title for game cards */
}

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

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

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

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1a1a1a; /* Darker background for FAQ items */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a; /* Even darker background for question header */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-index__faq-question:hover {
  background: #3a3a3a;
  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;
  pointer-events: none;
  color: #FFFF00; /* Yellow text for FAQ questions */
}