.page-index {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #002244;
  --border-color: #e0e0e0;
}

.page-index .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-dark); /* Fallback */
  color: var(--text-light);
  overflow: hidden;
}

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

.page-index .hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 900px; /* Adjust based on desired visual balance */
}

.page-index .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index .hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-index .hero-content p {
  font-size: 1.3em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

.page-index .cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.4em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

.page-index .cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-index section:nth-of-type(odd) {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-index section:nth-of-type(even) {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-index h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: 700;
  color: inherit;
}

.page-index h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-index h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: 600;
  color: inherit;
}

.page-index p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index .intro-section p {
  color: var(--text-dark);
}

.page-index .quick-access-section h2, .page-index .games-section h2, .page-index .promo-section h2, .page-index .security-support-section h2, .page-index .blog-section h2 {
  color: var(--text-light);
}

.page-index .intro-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-index .access-links-grid, .page-index .games-grid, .page-index .promo-grid, .page-index .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index .access-link-card, .page-index .game-card, .page-index .promo-card, .page-index .info-card, .page-index .blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index .access-link-card:hover, .page-index .game-card:hover, .page-index .promo-card:hover, .page-index .info-card:hover, .page-index .blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.page-index .access-link-card h3, .page-index .game-card h3, .page-index .promo-card h3, .page-index .info-card h3, .page-index .blog-card h3 {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-index .access-link-card p, .page-index .game-card p, .page-index .promo-card p, .page-index .info-card p, .page-index .blog-card p {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-index .game-card img, .page-index .promo-card img, .page-index .blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index .btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.95em;
  font-weight: 500;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-index .btn-small:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-index .faq-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-index .faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-index .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.page-index .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index .faq-question:hover {
  background: #f0f0f0;
}

.page-index .faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--primary-color);
  flex-grow: 1;
}

.page-index .faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.page-index .faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.page-index .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  color: var(--text-dark);
}

.page-index .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 25px;
  border-top: 1px solid var(--border-color);
}

.page-index .faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
}

.page-index .blog-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-index .blog-card {
  background-color: #ffffff;
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-index .blog-card h3 {
  color: var(--primary-color);
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-index .blog-card p {
  color: #666666;
  font-size: 0.95em;
  margin-bottom: 15px;
}

.page-index .blog-card span {
  font-size: 0.85em;
  color: #999999;
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index .hero-content h1 {
    font-size: 2.8em;
  }
  .page-index .hero-content p {
    font-size: 1.2em;
  }
  .page-index .cta-button {
    padding: 15px 35px;
    font-size: 1.2em;
  }
  .page-index h2 {
    font-size: 2em;
  }
  .page-index h3 {
    font-size: 1.6em;
  }
  .page-index p {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-image img {
    border-radius: 4px;
    margin-bottom: 20px;
  }
  .page-index .hero-content h1 {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-index .hero-content p {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-index .container {
    padding: 30px 15px;
  }
  .page-index section {
    padding: 40px 0;
  }
  .page-index h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-index h3 {
    font-size: 1.4em;
  }
  .page-index .access-links-grid, .page-index .games-grid, .page-index .promo-grid, .page-index .info-grid, .page-index .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  .page-index .access-link-card, .page-index .game-card, .page-index .promo-card, .page-index .info-card, .page-index .blog-card {
    padding: 20px;
  }
  .page-index .game-card img, .page-index .promo-card img, .page-index .blog-card img {
    height: 150px;
  }
  .page-index .faq-question {
    padding: 15px 20px;
  }
  .page-index .faq-question h3 {
    font-size: 1.1em;
  }
  .page-index .faq-toggle {
    font-size: 1.5em;
  }
  .page-index .faq-answer {
    padding: 0 20px;
  }
  .page-index .faq-item.active .faq-answer {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-index .hero-content h1 {
    font-size: 1.8em;
  }
  .page-index .hero-content p {
    font-size: 0.9em;
  }
  .page-index .cta-button {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-index h2 {
    font-size: 1.5em;
  }
  .page-index h3 {
    font-size: 1.2em;
  }
  .page-index p {
    font-size: 0.9em;
  }
  .page-index .access-links-grid, .page-index .games-grid, .page-index .promo-grid, .page-index .info-grid, .page-index .blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index .access-link-card, .page-index .game-card, .page-index .promo-card, .page-index .info-card, .page-index .blog-card {
    padding: 15px;
  }
  .page-index .game-card img, .page-index .promo-card img, .page-index .blog-card img {
    height: 120px;
  }
  .page-index .faq-question h3 {
    font-size: 1em;
  }
  .page-index .faq-toggle {
    font-size: 1.3em;
  }
}