.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: var(--secondary-color); /* Assumes --secondary-color is light */
}

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

.page-index__section {
  padding: 60px 0;
  text-align: center;
}

.page-index__section-title {
  font-size: 36px;
  color: #017439; /* Primary color for titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-title--light {
  color: #ffffff;
}

.page-index__section-description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__section-description--light {
  color: #f0f0f0;
}

/* 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);
  background-color: #017439; /* Fallback for hero section background */
  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;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff;
}

.page-index__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-index__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--register {
  background: #C30808; /* Register button background */
  color: #000000; /* Register button text (black for contrast) */
}

.page-index__cta-button--login {
  background: #017439; /* Login button background (primary green) */
  color: #000000; /* Login button text (black for contrast) */
}

.page-index__cta-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Intro Section */
.page-index__intro-section {
  background-color: #ffffff;
}

.page-index__intro-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-index__intro-text {
  flex: 1;
}

.page-index__intro-text p {
  margin-bottom: 20px;
  font-size: 17px;
  color: #333333;
}

.page-index__intro-image {
  flex: 1;
  min-width: 400px;
}

.page-index__intro-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Quick Access Section */
.page-index__quick-access-section {
  background-color: #017439; /* Dark background */
  color: #ffffff;
}

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

.page-index__access-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 8px;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-align: left;
}

.page-index__access-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.25);
}

.page-index__access-card h3 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-index__access-card p {
  font-size: 16px;
  color: #f0f0f0;
}

/* Game Section */
.page-index__game-section {
  background-color: #f8f8f8;
}

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

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

.page-index__game-card:hover {
  transform: translateY(-5px);
}

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

.page-index__game-card h3 {
  font-size: 20px;
  padding: 15px 20px 5px;
  margin: 0;
}

.page-index__game-card h3 a {
  color: #017439; /* Primary color for game titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-card h3 a:hover {
  color: #004d2c;
}

.page-index__game-card p {
  font-size: 15px;
  color: #555555;
  padding: 0 20px 20px;
  margin: 0;
}

/* Promo Section */
.page-index__promo-section {
  background-color: #017439; /* Dark background */
  color: #ffffff;
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: left;
  transition: transform 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
}

.page-index__promo-card img {
  width: 100%;
  
  object-fit: cover;
  display: block;
}

.page-index__promo-card h3 {
  font-size: 20px;
  padding: 15px 20px 5px;
  margin: 0;
  color: #ffffff;
}

.page-index__promo-card p {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 20px 15px;
  margin: 0;
}

/* Security & Support Section */
.page-index__security-support-section {
  background-color: #ffffff;
}

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

.page-index__security-item {
  background: #f9f9f9;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__security-item img {
  width: 100%;
   /* Adjust max-width for smaller display, still >= 200px in source */
  height: auto;
  margin-bottom: 20px;
  display: inline-block;
}

.page-index__security-item h3 {
  font-size: 20px;
  color: #017439;
  margin-bottom: 10px;
}

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

.page-index__contact-buttons {
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: #017439;
  color: #000000; /* Black text for contrast on primary green */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #017439;
}

.page-index__btn-primary:hover {
  background: #004d2c;
  transform: translateY(-2px);
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #ffffff;
  color: #333333; /* Dark gray text for contrast on white background */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  border: 2px solid #017439; /* Primary color border */
}

.page-index__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-index__faq-section {
  background-color: #f8f8f8; /* Light background */
}

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

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

.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 15px;
  opacity: 0;
  text-align: left;
  color: #555555;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 5px 5px;
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  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: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #333333;
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #017439;
  transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
}

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

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

.page-index__blog-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
}

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

.page-index__blog-card h3 {
  font-size: 20px;
  padding: 15px 20px 5px;
  margin: 0;
}

.page-index__blog-card h3 a {
  color: #017439; /* Primary color for blog titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-card h3 a:hover {
  color: #004d2c;
}

.page-index__blog-card p {
  font-size: 15px;
  color: #555555;
  padding: 0 20px 10px;
  margin: 0;
}

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

.page-index__view-all {
  margin-top: 50px;
}

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