.page-index {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #DC143C; /* Crimson */
  --dark-bg-color: #1A1A1A; /* Very dark grey */
  --text-light: #F0F0F0;
  --text-dark: #333333;
  --card-bg: #2A2A2A;
  --border-color: #3A3A3A;
  font-family: 'Arial', sans-serif;
  color: var(--text-light);
  background-color: var(--dark-bg-color);
}

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

.page-index-h1, .page-index-h2, .page-index-h3, .page-index-h4, .page-index-h5, .page-index-h6 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

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

.page-index-h2 {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  padding-top: 40px;
  border-bottom: 3px solid var(--secondary-color);
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 10px;
}

.page-index-h3 {
  font-size: 1.6em;
  color: var(--text-light);
  margin-top: 20px;
  margin-bottom: 15px;
}

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

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

.page-index-p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

/* 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: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(220, 20, 60, 0.1)); /* Light gradient overlay */
}

.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: 8px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-index .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background-color: rgba(26, 26, 26, 0.8);
  border-radius: 8px;
}

.page-index .hero-content .page-index-h1 {
  margin-top: 0;
  color: var(--primary-color);
}

.page-index .hero-content .page-index-p {
  color: var(--text-light);
  margin-bottom: 30px;
}

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

.page-index-cta-button:hover {
  background: var(--primary-color);
  color: var(--dark-bg-color);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--secondary-color);
}

/* General Section Styling */
.page-index section {
  padding: 60px 0;
  margin-bottom: 30px;
}

.page-index .intro-section, .page-index .promotions-section, .page-index .security-customer-service-section, .page-index .blog-section {
  background-color: var(--dark-bg-color);
}

.page-index .quick-access-section, .page-index .games-section, .page-index .faq-section {
  background-color: #222222;
}

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

.page-index-feature-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

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

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

.page-index-quick-link-card {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-quick-link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.page-index-link-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-index-quick-link-card .page-index-h3 {
  color: var(--primary-color);
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 1.4em;
}

.page-index-quick-link-card .page-index-p {
  font-size: 0.95em;
  color: #B0B0B0;
  text-align: center;
}

/* Games Section */
.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(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index-game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-index-game-card .page-index-h3 {
  padding: 15px 20px 0;
  text-align: left;
  font-size: 1.5em;
}

.page-index-game-card .page-index-p {
  padding: 0 20px 15px;
  font-size: 1em;
  color: #B0B0B0;
}

.page-index-game-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 0;
  background-color: var(--secondary-color);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index-game-button:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg-color);
}

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

.page-index-promo-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index-promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-index-promo-card .page-index-h3 {
  padding: 15px 20px 0;
  text-align: left;
  font-size: 1.5em;
}

.page-index-promo-card .page-index-p {
  padding: 0 20px 15px;
  font-size: 1em;
  color: #B0B0B0;
}

.page-index-promo-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 0;
  background-color: var(--primary-color);
  color: var(--dark-bg-color);
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index-promo-button:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
}

/* Security & Customer Service Section */
.page-index-security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-security-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

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

/* FAQ Section */
.page-index-faq-list {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.faq-question:hover {
  background: #444444;
}

.faq-question .page-index-h3 {
  margin: 0;
  color: var(--text-light);
  font-size: 1.3em;
  text-align: left;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background-color: var(--card-bg);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

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

.faq-answer .page-index-p {
  margin-bottom: 0;
  color: #B0B0B0;
}

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

.page-index-blog-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index-blog-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.page-index-blog-card .page-index-h3 {
  padding: 15px 20px 0;
  text-align: left;
  font-size: 1.4em;
}

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

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

.page-index-blog-card .page-index-p {
  padding: 0 20px 15px;
  font-size: 0.95em;
  color: #B0B0B0;
}

.page-index-blog-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 10px 0;
  background-color: var(--secondary-color);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-index-blog-button:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-h1 {
    font-size: 2.8em;
  }
  .page-index-h2 {
    font-size: 2.2em;
  }
  .page-index-h3 {
    font-size: 1.4em;
  }
  .page-index-p {
    font-size: 1em;
  }
  .page-index-cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-image img {
    border-radius: 4px;
  }
  .page-index .hero-content {
    padding: 15px;
  }
  .page-index-h1 {
    font-size: 2.2em;
  }
  .page-index-h2 {
    font-size: 1.8em;
  }
  .page-index-h3 {
    font-size: 1.2em;
  }
  .page-index-p {
    font-size: 0.95em;
  }
  .page-index-cta-button {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-index-feature-item, .page-index-quick-link-card, .page-index-game-card, .page-index-promo-card, .page-index-security-item, .page-index-blog-card {
    padding: 20px;
  }
  .page-index-link-icon, .page-index-feature-icon, .page-index-security-icon {
    width: 70px;
    height: 70px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question .page-index-h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px 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.1em;
  }
  .page-index-p {
    font-size: 0.9em;
  }
  .page-index-cta-button {
    width: 90%;
    padding: 10px 20px;
  }
  .page-index-feature-item, .page-index-quick-link-card, .page-index-game-card, .page-index-promo-card, .page-index-security-item, .page-index-blog-card {
    padding: 15px;
  }
  .page-index-game-image, .page-index-promo-image, .page-index-blog-image {
    height: 150px;
  }
  .page-index-game-card .page-index-h3, .page-index-promo-card .page-index-h3, .page-index-blog-card .page-index-h3 {
    font-size: 1.3em;
    padding: 10px 15px 0;
  }
  .page-index-game-card .page-index-p, .page-index-promo-card .page-index-p, .page-index-blog-card .page-index-p {
    padding: 0 15px 10px;
  }
  .page-index-game-button, .page-index-promo-button, .page-index-blog-button {
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 10px 0;
    font-size: 0.85em;
  }
  .faq-question .page-index-h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 18px;
  }
}