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

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

.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 clicks to pass to the <a> tag */
}

.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; /* Use custom color for login/register */
  color: #FFFF00; /* Use custom font color */
  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.15);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

.page-index__hero-cta-section {
  background: var(--dark-bg-1); /* Assuming a dark background for body */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

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

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

.page-index__title-description {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.9;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-index__cta-button--register {
  background: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color */
  border: 2px solid transparent;
}

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

.page-index__cta-button--login {
  background: #017439; /* Primary color */
  color: #ffffff;
  border: 2px solid transparent;
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #FFFF00; /* Highlight with custom font color */
}

.page-index__section-description {
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  opacity: 0.8;
}

.page-index__features-section {
  padding: 80px 20px;
  background: var(--dark-bg-1); /* Consistent dark background */
  color: #ffffff;
}

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

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

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter card on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  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.2);
}

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

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

.page-index__feature-text {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.8;
}

.page-index__games-showcase-section {
  padding: 80px 20px;
  background: #017439; /* Primary brand color background */
  color: #ffffff;
}

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

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

.page-index__game-category-card {
  display: block;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-index__game-category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__game-category-title {
  font-size: 24px;
  font-weight: bold;
  padding: 20px 20px 10px 20px;
  color: #FFFF00; /* Highlight with custom font color */
}

.page-index__game-category-description {
  font-size: 15px;
  line-height: 1.6;
  padding: 0 20px 20px 20px;
  opacity: 0.8;
}

.page-index__faq-section {
  padding: 80px 20px;
  background: var(--dark-bg-1); /* Consistent dark background */
  color: #ffffff;
}

.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 10px rgba(0, 0, 0, 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); /* Slightly lighter on dark background */
  border: 1px solid rgba(255, 255, 255, 0.15);
  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.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFFF00; /* Custom font color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-index__faq-item.active .page-index__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.page-index__faq-item.active .page-index__faq-toggle {
  transform: rotate(45deg); /* Change to X or rotate for active state */
  color: #C30808; /* Change color for active state */
}

.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;
  background: rgba(255, 255, 255, 0.05); /* Answer background */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
  color: #f0f0f0;
}

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

.page-index__brand-intro-section {
  padding: 80px 20px;
  background: #FFFFFF; /* Light background for brand intro */
  color: #333333;
}

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

.page-index__brand-intro-section .page-index__section-title {
  color: #017439; /* Primary color for title on light background */
}

.page-index__brand-intro-section .page-index__section-description {
  color: #555555;
}

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

.page-index__brand-item {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.page-index__brand-item-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439; /* Primary color for sub-titles */
}

.page-index__brand-item-text {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
}

.page-index__blog-list-section {
  padding: 80px 20px;
  background: var(--dark-bg-1); /* Consistent dark background */
  color: #ffffff;
}

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

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

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

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

.page-index__blog-item-image {
  width: 100%;
  height: 200px; /* Consistent image height */
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 20px;
}

.page-index__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #FFFF00; /* Highlight with custom font color */
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
  opacity: 0.8;
}

.page-index__blog-item-date {
  font-size: 14px;
  color: #cccccc;
  display: block;
}

.page-index__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-index__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: #017439; /* Primary color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-index__view-all-button:hover {
  background: #005628;
  transform: translateY(-2px);
}

/* General text color for page content on dark background */
.page-index {
  color: #ffffff; /* Default text color for main content on dark background */
}

.page-index p {
  color: #f0f0f0;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 42px;
  }
  .page-index__section-title {
    font-size: 32px;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-index__feature-item {
    padding: 25px;
  }
  .page-index__feature-title {
    font-size: 20px;
  }
  .page-index__game-category-title {
    font-size: 22px;
  }
  .page-index__blog-item-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  /* Mobile specific adjustments */
  .page-index__video-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-index__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }

  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain; /* Ensure video fits within container */
  }

  .page-index__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-index__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  .page-index__hero-cta-section, 
  .page-index__features-section, 
  .page-index__games-showcase-section, 
  .page-index__faq-section, 
  .page-index__brand-intro-section, 
  .page-index__blog-list-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index__main-title {
    font-size: 32px;
  }

  .page-index__title-description {
    font-size: 16px;
  }

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__section-title {
    font-size: 28px;
  }

  .page-index__section-description {
    font-size: 15px;
  }

  .page-index__feature-grid, .page-index__game-categories, .page-index__blog-list, .page-index__brand-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-index__feature-image {
    max-width: 200px;
  }

  .page-index__game-category-image, .page-index__blog-item-image {
    height: 180px;
  }

  .page-index__faq-question {
    padding: 15px 20px;
  }

  .page-index__faq-question h3 {
    font-size: 15px;
  }

  .page-index__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px 20px !important;
  }

  .page-index__faq-answer p {
    font-size: 15px;
  }
  
  /* Mobile image and video responsiveness */
  .page-index img, .page-index video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index__section, .page-index__card, .page-index__container, .page-index__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px;
    padding-right: 0px;
    overflow: hidden !important;
  }

  .page-index__feature-item, .page-index__game-category-card, .page-index__blog-item, .page-index__brand-item {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .page-index__view-all-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
  }
}