.page-index {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #4B0082; /* Dark Purple */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f4f4;
  --background-dark: #2a004a; /* Slightly lighter purple for contrast */
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

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

.page-index-h1, .page-index-h2, .page-index-h3 {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index-h1 {
  font-size: 3.2em;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-h2 {
  font-size: 2.5em;
  margin-top: 40px;
  margin-bottom: 30px;
}

.page-index-h3 {
  font-size: 1.8em;
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-index-p {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-index-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--primary-color);
}

.page-index-cta-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* HERO Section */
.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(--background-dark);
}

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

.page-index .hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-index .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light);
}

.page-index-hero-text {
  font-size: 1.3em;
  margin-top: 20px;
  color: #e0e0e0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Intro */
.page-index .section-intro {
  background-color: var(--background-light);
  padding: 60px 0;
}

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

.page-index-intro-item {
  background-color: var(--text-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index-intro-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

/* Quick Links */
.page-index .section-quick-links {
  background-color: var(--background-dark);
  padding: 60px 0;
}

.page-index .section-quick-links .page-index-h2, .page-index .section-quick-links .page-index-p {
  color: var(--text-light);
}

.page-index-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-index-quick-link-button {
  display: block;
  padding: 18px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-index-quick-link-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Core Games */
.page-index .section-core-games {
  background-color: var(--background-light);
  padding: 60px 0;
}

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

.page-index-game-card {
  background-color: var(--text-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index-game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-index-game-card .page-index-h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-index-game-card .page-index-p {
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: left;
}

.page-index-game-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-index-game-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Promotions */
.page-index .section-promotions {
  background-color: var(--background-dark);
  padding: 60px 0;
}

.page-index .section-promotions .page-index-h2, .page-index .section-promotions .page-index-p {
  color: var(--text-light);
}

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

.page-index-promo-card {
  background-color: var(--text-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index-promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-index-promo-card .page-index-h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-index-promo-card .page-index-p {
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: left;
}

.page-index-promo-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-index-promo-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Security & Support */
.page-index .section-security-support {
  background-color: var(--background-light);
  padding: 60px 0;
}

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

.page-index-security-item {
  background-color: var(--text-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index-security-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index-contact-cta {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: var(--secondary-color);
  color: var(--text-light);
  border-radius: 12px;
}

.page-index-contact-cta .page-index-p {
  color: var(--text-light);
  font-size: 1.2em;
  margin-bottom: 20px;
}

.page-index-contact-cta .page-index-cta-button {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-index-contact-cta .page-index-cta-button:hover {
  background: var(--text-light);
  color: var(--secondary-color);
  border: 2px solid var(--text-light);
}

/* FAQ Section */
.page-index .section-faq {
  background-color: var(--background-dark);
  padding: 60px 0;
}

.page-index .section-faq .page-index-h2, .page-index .section-faq .page-index-p {
  color: var(--text-light);
}

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

.faq-item {
  margin-bottom: 15px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.faq-question .page-index-h3 {
  margin: 0;
  text-align: left;
  color: inherit;
  font-size: 1.2em;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  background: var(--background-light);
  color: var(--text-dark);
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height */
  padding: 15px;
  border-top: none;
}

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

.faq-item.active .faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Blog Section */
.page-index .section-blog {
  background-color: var(--background-light);
  padding: 60px 0;
}

.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-color: var(--text-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index-blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-index-blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index-blog-content .page-index-h3 {
  text-align: left;
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-index-blog-content .page-index-h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-blog-content .page-index-h3 a:hover {
  color: var(--primary-color);
}

.page-index-blog-content .page-index-p {
  text-align: left;
  font-size: 1em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-index-blog-date {
  font-size: 0.9em;
  color: #777;
  text-align: left;
  display: block;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-h1 {
    font-size: 2.8em;
  }
  .page-index-h2 {
    font-size: 2em;
  }
  .page-index-h3 {
    font-size: 1.6em;
  }
  .page-index-hero-text {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-index-h1 {
    font-size: 2.2em;
  }
  .page-index-h2 {
    font-size: 1.8em;
  }
  .page-index-h3 {
    font-size: 1.4em;
  }
  .page-index-p {
    font-size: 1em;
  }
  .page-index-cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-image img {
    border-radius: 8px;
  }
  .page-index-intro-grid, .page-index-links-grid, .page-index-games-grid, .page-index-promo-cards, .page-index-security-grid, .page-index-blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index-game-card .page-index-p, .page-index-promo-card .page-index-p, .page-index-blog-content .page-index-p {
    text-align: center;
  }
  .faq-question .page-index-h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .page-index-h1 {
    font-size: 1.8em;
  }
  .page-index-h2 {
    font-size: 1.5em;
  }
  .page-index-h3 {
    font-size: 1.2em;
  }
  .page-index-cta-button {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-index-intro-icon, .page-index-security-icon {
    width: 80px;
    height: 80px;
  }
  .page-index-quick-link-button {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-index-game-image, .page-index-promo-image, .page-index-blog-image {
    height: 150px;
  }
  .page-index-game-button, .page-index-promo-button {
    padding: 10px 20px;
    font-size: 0.95em;
  }
  .faq-question {
    padding: 12px;
  }
  .faq-question .page-index-h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 18px;
  }
  .faq-answer {
    padding: 12px;
  }
  .page-index-blog-content .page-index-h3 {
    font-size: 1.2em;
  }
}