.page-index {
  color: #333333; /* Default text color for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #FFFFFF;
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-index__text-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 17px;
  color: #555555;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #017439;
  color: #FFFFFF;
  overflow: hidden;
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__hero-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

.page-index__cta-button--login:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-index__intro-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-index__feature-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

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

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

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

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

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: #017439;
  color: #FFFFFF;
}

.page-index__quick-access-section .page-index__section-title {
  color: #FFFFFF;
}

.page-index__quick-access-section .page-index__section-title::after {
  background-color: #FFFFFF;
}

.page-index__quick-access-section .page-index__text-block {
  color: #f0f0f0;
}

.page-index__access-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.page-index__access-link-button {
  display: inline-block;
  padding: 15px 30px;
  background: #C30808;
  color: #FFFF00;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid #C30808;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  max-width: 280px;
  box-sizing: border-box;
}

.page-index__access-link-button:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-index__game-card {
  background: #f9f9f9;
  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;
  border: 1px solid #e0e0e0;
}

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

.page-index__game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index__game-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 20px 10px 20px;
}

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

.page-index__game-card h3 a:hover {
  color: #005f2f;
}

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

.page-index__game-link {
  display: inline-block;
  background: #017439;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px 20px;
  transition: background-color 0.3s ease;
}

.page-index__game-link:hover {
  background: #005f2f;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #017439;
  color: #FFFFFF;
}

.page-index__promotions-section .page-index__section-title {
  color: #FFFFFF;
}

.page-index__promotions-section .page-index__section-title::after {
  background-color: #FFFFFF;
}

.page-index__promotions-section .page-index__text-block {
  color: #f0f0f0;
}

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

.page-index__promo-card {
  background: #1a8a5b; /* Slightly lighter green for contrast */
  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;
  border: 1px solid #005f2f;
}

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

.page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 20px 10px 20px;
}

.page-index__promo-title a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promo-title a:hover {
  color: #FFFF00;
}

.page-index__promo-card p {
  font-size: 15px;
  color: #e0e0e0;
  padding: 0 20px 15px 20px;
  line-height: 1.6;
}

.page-index__promo-button {
  display: inline-block;
  background: #C30808;
  color: #FFFF00;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px 20px;
  transition: background-color 0.3s ease;
}

.page-index__promo-button:hover {
  background: #a30606;
}

/* Security & Support Section */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-index__info-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-index__info-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
}

.page-index__info-card p {
  font-size: 15px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-index__info-link {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #017439;
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.page-index__info-link:hover {
  color: #005f2f;
  border-color: #005f2f;
}

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

.page-index__faq-section .page-index__section-title {
  color: #FFFFFF;
}

.page-index__faq-section .page-index__section-title::after {
  background-color: #FFFFFF;
}

.page-index__faq-section .page-index__text-block {
  color: #f0f0f0;
}

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

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

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

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

.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: 20px;
  pointer-events: none;
  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;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #f2fbf7; /* Light green background for answer */
  border-radius: 0 0 8px 8px;
  color: #444444;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.page-index__faq-item.active .page-index__faq-answer p {
  margin-bottom: 0;
  text-align: left;
  font-size: 16px;
}

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

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

.page-index__blog-card {
  background: #f9f9f9;
  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;
  border: 1px solid #e0e0e0;
}

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

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

.page-index__blog-title {
  font-size: 20px;
  font-weight: 700;
  margin: 20px 20px 10px 20px;
}

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

.page-index__blog-title a:hover {
  color: #005f2f;
}

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

.page-index__blog-date {
  display: block;
  font-size: 13px;
  color: #999999;
  margin: 0 20px 15px 20px;
}

.page-index__blog-link {
  display: inline-block;
  color: #C30808;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px 20px;
  transition: color 0.3s ease;
}

.page-index__blog-link:hover {
  color: #a30606;
}

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

.page-index__view-all-button {
  display: inline-block;
  background: #017439;
  color: #FFFFFF;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__view-all-button:hover {
  background: #005f2f;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 44px;
  }
  .page-index__hero-description {
    font-size: 18px;
  }
  .page-index__section-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-image img {
    border-radius: 8px;
  }
  .page-index__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-index__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    margin: 0 10px 10px 10px;
    width: calc(100% - 20px);
    max-width: 300px;
  }
  .page-index__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-index__text-block {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-index__intro-section, .page-index__quick-access-section, .page-index__games-section, .page-index__promotions-section, .page-index__security-support-section, .page-index__faq-section, .page-index__blog-section {
    padding: 50px 0;
  }
  .page-index__container {
    padding: 0 15px;
  }
  .page-index__feature-item, .page-index__game-card, .page-index__promo-card, .page-index__info-card, .page-index__blog-card {
    padding: 20px;
  }
  .page-index__feature-image, .page-index__game-image, .page-index__promo-image, .page-index__blog-image {
    height: 180px;
  }
  .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;
    margin-left: 15px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px 20px !important;
  }

  /* Mobile image overflow prevention */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__hero-section, .page-index__intro-section, .page-index__quick-access-section, .page-index__games-section, .page-index__promotions-section, .page-index__security-support-section, .page-index__faq-section, .page-index__blog-section,
  .page-index__container, .page-index__hero-container, .page-index__hero-image, .page-index__hero-content,
  .page-index__features-grid, .page-index__feature-item, .page-index__access-links-grid, .page-index__access-link-button,
  .page-index__games-grid, .page-index__game-card, .page-index__promotions-grid, .page-index__promo-card,
  .page-index__info-grid, .page-index__info-card, .page-index__faq-list, .page-index__faq-item, .page-index__blog-grid, .page-index__blog-card,
  .page-index__view-all-button-wrapper, .page-index__view-all-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__access-links-grid {
    flex-direction: column;
    align-items: center;
  }
  .page-index__access-link-button {
    width: calc(100% - 30px);
    max-width: 400px;
  }
}