.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* Light background for the page content */
}

/* --------------------------------------------------- */
/* 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); /* Ensure space below fixed header */
  background-color: #0d0d0d; /* Dark background for video section */
}

.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: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.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: 12px;
  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: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  padding: 12px 25px;
  background: rgba(195, 8, 8, 0.85); /* Use register/login color */
  border-radius: 30px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

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

.page-index__play-now-button {
  display: inline-block;
  padding: 18px 50px;
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  text-decoration: none;
  border-radius: 30px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.page-index__play-now-button:hover {
  background: #a30606;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

/* --------------------------------------------------- */
/* Title Section */
/* --------------------------------------------------- */
.page-index__title-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #017439, #005f2e); /* Brand green gradient */
  color: #ffffff;
}

.page-index__title-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-index__main-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

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

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

/* --------------------------------------------------- */
/* About Section */
/* --------------------------------------------------- */
.page-index__about-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-index__about-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #017439;
}

.page-index__about-content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: justify;
}

.page-index__about-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 40px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-index__features-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #017439;
}

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

.page-index__feature-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__feature-icon {
  width: 100%; /* Ensure large images for cards */
  max-width: 400px; /* Adjust based on image size */
  height: auto;
  margin-bottom: 25px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__feature-heading {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-index__feature-description {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
}

/* --------------------------------------------------- */
/* Games Showcase Section */
/* --------------------------------------------------- */
.page-index__games-showcase {
  padding: 80px 20px;
  background-color: #f0fdf4; /* Lighter green tint */
  color: #333333;
}

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

.page-index__games-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #017439;
}

.page-index__games-description {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 50px;
  color: #555555;
}

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-index__game-name {
  font-size: 22px;
  font-weight: 600;
  margin: 20px 20px 10px;
}

.page-index__game-name a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-name a:hover {
  color: #005f2e;
  text-decoration: underline;
}

.page-index__game-intro {
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
  padding: 0 20px 20px;
}

.page-index__all-games-cta {
  text-align: center;
}

.page-index__cta-button--explore {
  background: #017439;
  color: #ffffff;
}

.page-index__cta-button--explore:hover {
  background: #005f2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-index__faq-main-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #017439;
}

.page-index__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-index__faq-question:active {
  background: #eeeeee;
}

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

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

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

.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-color: #fefefe;
  border-top: 1px solid #eee;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Sufficiently large value */
  padding: 20px 25px !important;
  opacity: 1;
  background: #fefefe;
  border-radius: 0 0 10px 10px;
}

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

/* --------------------------------------------------- */
/* Brand Section */
/* --------------------------------------------------- */
.page-index__brand-section {
  padding: 80px 20px;
  background-color: #e6f7ed; /* Light green background */
  color: #333333;
}

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

.page-index__brand-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #017439;
}

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

.page-index__brand-content > p {
  grid-column: 1 / -1;
  font-size: 17px;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 30px;
}

.page-index__brand-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__brand-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__brand-icon {
  width: 100%; /* Ensure large images for cards */
  max-width: 400px; /* Adjust based on image size */
  height: auto;
  margin-bottom: 25px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__brand-item-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

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

/* --------------------------------------------------- */
/* Blog Section */
/* --------------------------------------------------- */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #ffffff;
  color: #333333;
}

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

.page-index__blog-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

.page-index__blog-description {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 50px;
  text-align: center;
  color: #555555;
}

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

.page-index__blog-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

.page-index__blog-content-wrapper {
  padding: 25px;
}

.page-index__blog-item-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #017439;
  line-height: 1.4;
}

.page-index__blog-item-title:hover {
  text-decoration: underline;
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 15px;
}

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

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

.page-index__cta-button--view-all {
  background: #017439;
  color: #ffffff;
}

.page-index__cta-button--view-all:hover {
  background: #005f2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------- */
/* CTA Download Section */
/* --------------------------------------------------- */
.page-index__cta-download-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #017439, #005f2e); /* Brand green gradient */
  color: #ffffff;
  text-align: center;
}

.page-index__cta-download-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
}

.page-index__cta-download-content {
  flex: 1;
  text-align: left;
}

.page-index__cta-download-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.page-index__cta-download-description {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.page-index__cta-button--download-ios {
  background: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
}

.page-index__cta-button--download-ios:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--download-android {
  background: #FFFF00; /* Login font color for background */
  color: #C30808; /* Login color for text */
}

.page-index__cta-button--download-android:hover {
  background: #e0e000;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index__cta-download-image-wrapper {
  flex: 0 0 auto;
  width: 350px;
  height: auto;
  position: relative;
}

.page-index__cta-download-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

/* --------------------------------------------------- */
/* Responsive Design */
/* --------------------------------------------------- */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 40px;
  }
  .page-index__about-title,
  .page-index__features-title,
  .page-index__games-title,
  .page-index__faq-main-title,
  .page-index__brand-title,
  .page-index__blog-title {
    font-size: 34px;
  }
  .page-index__cta-download-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }
  .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: 8px;
    overflow: hidden !important;
  }
  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    object-fit: contain; /* Ensure video fits within bounds */
  }
  .page-index__video-click-hint {
    font-size: 16px !important;
    padding: 10px 20px !important;
  }
  .page-index__video-cta {
    margin-top: 25px;
    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: 14px 30px !important;
    font-size: 18px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__title-section,
  .page-index__about-section,
  .page-index__features-section,
  .page-index__games-showcase,
  .page-index__faq-section,
  .page-index__brand-section,
  .page-index__blog-section,
  .page-index__cta-download-section {
    padding: 50px 15px;
  }

  .page-index__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-index__title-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 25px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__about-title,
  .page-index__features-title,
  .page-index__games-title,
  .page-index__faq-main-title,
  .page-index__brand-title,
  .page-index__blog-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-index__about-content p {
    font-size: 16px;
  }
  .page-index__feature-heading {
    font-size: 20px;
  }
  .page-index__games-description,
  .page-index__blog-description {
    font-size: 16px;
  }
  .page-index__game-name {
    font-size: 18px;
  }
  .page-index__game-intro {
    font-size: 14px;
  }
  .page-index__blog-item-title {
    font-size: 18px;
  }
  .page-index__blog-item-excerpt {
    font-size: 14px;
  }
  .page-index__faq-question {
    padding: 15px 20px;
  }
  .page-index__faq-question h3 {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px 20px !important;
  }
  .page-index__brand-item-title {
    font-size: 20px;
  }

  .page-index__cta-download-container {
    flex-direction: column;
    text-align: center;
  }
  .page-index__cta-download-content {
    text-align: center;
  }
  .page-index__cta-download-title {
    font-size: 30px;
  }
  .page-index__cta-download-description {
    font-size: 16px;
  }
  .page-index__cta-download-buttons {
    justify-content: center;
    flex-direction: column;
    gap: 15px;
  }
  .page-index__cta-download-image-wrapper {
    width: 250px;
  }
  .page-index__cta-download-image {
    width: 100% !important;
    height: auto !important;
  }

  /* Image responsive for mobile */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsive for mobile */
  .page-index video,
  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index__video-section,
  .page-index__video-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__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }
  .page-index__cta-download-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-index__main-title {
    font-size: 28px;
  }
  .page-index__about-title,
  .page-index__features-title,
  .page-index__games-title,
  .page-index__faq-main-title,
  .page-index__brand-title,
  .page-index__blog-title {
    font-size: 24px;
  }
  .page-index__cta-download-title {
    font-size: 26px;
  }
  .page-index__play-now-button {
    padding: 12px 25px !important;
    font-size: 16px !important;
  }
  .page-index__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }
}