.page-index {
  color: #ffffff; /* Body background #1a1a1a is dark, so text is white */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #1a1a1a; /* Ensure consistency with body background */
}

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

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

.page-index__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
}

.page-index__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 60px 0;
}

.page-index__light-bg {
  background-color: #f8f8f8;
  color: #333333;
  padding: 60px 0;
}

.page-index__light-bg .page-index__section-title,
.page-index__light-bg .page-index__item-title {
  color: #017439;
}

.page-index__light-bg .page-index__section-subtitle,
.page-index__light-bg p {
  color: #555555;
}

/* CTA Button Styles */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid transparent;
}

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

.page-index__btn-secondary {
  background: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  margin-left: 20px;
}

.page-index__btn-secondary:hover {
  background: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 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: #1a1a1a;
}

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

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

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none;
}

.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.3);
  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(0, 123, 255, 0.8);
  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; /* Register/Login color */
  color: #FFFF00; /* Register/Login 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;
}

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

/* Hero Content (H1 + CTA) */
.page-index__hero-content {
  text-align: center;
  padding: 80px 20px;
  background-color: #017439;
  color: #ffffff;
}

.page-index__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

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

.page-index__brand-item {
  background: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

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

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

.page-index__brand-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

/* FAQ Section */
.page-index__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
}

details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
  display: none;
}

details.page-index__faq-item summary.page-index__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-index__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #017439;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  background-color: #ffffff;
  border-radius: 50%;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

details.page-index__faq-item .page-index__faq-answer p {
  margin-bottom: 0;
}

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

.page-index__blog-item {
  background: #ffffff;
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-index__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: #017439;
  min-height: 60px; /* Ensure consistent height for titles */
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  margin: 0 20px 15px;
  color: #555555;
  min-height: 75px; /* Consistent height for excerpts */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.page-index__blog-item-date {
  display: block;
  font-size: 14px;
  color: #888888;
  margin: 0 20px 20px;
}

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

/* Game Showcase Section */
.page-index__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__game-card {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  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.2);
}

.page-index__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

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

.page-index__game-description {
  font-size: 15px;
  margin: 0 15px 20px;
  color: rgba(255, 255, 255, 0.8);
}

.page-index__game-card .page-index__cta-button {
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 5px;
}

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

.page-index__security-item {
  background: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-index__security-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.page-index__security-item .page-index__item-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: #017439;
}

.page-index__security-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
}

/* App Download Section */
.page-index__app-download {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 80px 20px;
  flex-wrap: wrap;
  text-align: center;
}

.page-index__app-content {
  max-width: 500px;
  text-align: left;
  margin-bottom: 40px;
}

.page-index__app-download .page-index__section-title {
  text-align: left;
  margin-top: 0;
}

.page-index__app-download .page-index__section-subtitle {
  text-align: left;
  margin-bottom: 30px;
}

.page-index__app-image-wrapper {
  flex-shrink: 0;
  max-width: 300px;
}

.page-index__app-image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 40px;
  }
  .page-index__description {
    font-size: 18px;
  }
  .page-index__section-title {
    font-size: 30px;
  }
  .page-index__app-download .page-index__app-content {
    text-align: center;
  }
  .page-index__app-download .page-index__section-title,
  .page-index__app-download .page-index__section-subtitle {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .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;
  }
  
  .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__container {
    padding: 0 15px;
  }

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

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

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

  .page-index__section-subtitle {
    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;
    margin-left: 0 !important; /* Remove margin for stacked buttons */
  }

  .page-index__brand-grid,
  .page-index__blog-grid,
  .page-index__game-grid,
  .page-index__security-grid {
    grid-template-columns: 1fr;
  }

  .page-index__blog-image {
    height: 180px;
  }

  .page-index__blog-item-title {
    font-size: 18px;
    min-height: auto;
  }

  .page-index__blog-item-excerpt {
    font-size: 14px;
    min-height: auto;
    -webkit-line-clamp: unset;
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
    font-size: 16px;
  }
  .page-index__faq-toggle {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }

  .page-index__app-download {
    flex-direction: column-reverse;
    padding: 40px 15px;
  }

  .page-index__app-content {
    text-align: center;
    margin-bottom: 30px;
  }

  .page-index__app-download .page-index__section-title,
  .page-index__app-download .page-index__section-subtitle {
    text-align: center;
  }
  
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__brand-item,
  .page-index__blog-item,
  .page-index__game-card,
  .page-index__security-item,
  .page-index__app-download,
  .page-index__app-content,
  .page-index__app-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-index__dark-bg, .page-index__light-bg {
    padding: 40px 0;
  }
}