.page-index {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-dark: #212529;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #343a40;
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* 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(--bg-dark); /* Fallback background for hero */
  color: var(--text-light);
}

.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;
  max-height: 500px; /* Limit height to prevent overly tall image */
  overflow: hidden;
  border-radius: 8px;
}

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

.page-index .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Overlay for text readability */
  border-radius: 8px;
}

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

.page-index .hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

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

.page-index .page-index-cta-button:hover {
  background: #e0a800; /* Darker secondary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* General Section Styles */
.page-index section {
  padding: 60px 0;
}

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

.page-index .page-index-h2 {
  font-size: 2.2em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-index .page-index-h2::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.page-index .page-index-h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-index .page-index-center-content {
  text-align: center;
  margin-top: 40px;
}

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

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

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

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

.page-index .page-index-feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-index .page-index-feature-item h3 {
  color: var(--primary-color);
  margin-top: 0;
}

/* Quick Access Section */
.page-index .quick-access-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-index .quick-access-section .page-index-h2::after {
  background: var(--secondary-color);
}

.page-index .quick-access-section p {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

.page-index .page-index-quick-link {
  display: block;
  background: var(--secondary-color);
  color: var(--text-dark);
  padding: 18px 25px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-index .page-index-quick-link:hover {
  background: #e0a800;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Games Section */
.page-index .games-section {
  background-color: var(--bg-light);
}

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

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

.page-index .page-index-game-card {
  background: var(--text-light);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index .page-index-game-card h3 {
  padding: 15px 20px 0;
  margin: 0;
  font-size: 1.4em;
}

.page-index .page-index-game-card h3 .page-index-game-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-index .page-index-game-card p {
  padding: 0 20px 20px;
  font-size: 0.95em;
  color: #555;
  text-align: left;
}

/* Promotions Section */
.page-index .promotions-section {
  background-color: #e9ecef;
}

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

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

.page-index .page-index-promo-card {
  background: var(--text-light);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index .page-index-promo-card h3 {
  padding: 15px 20px 0;
  margin: 0;
  font-size: 1.4em;
}

.page-index .page-index-promo-card h3 .page-index-promo-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-index .page-index-promo-card p {
  padding: 0 20px 15px;
  font-size: 0.95em;
  color: #555;
  text-align: left;
}

.page-index .page-index-btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-index .page-index-btn-small:hover {
  background: #e0a800;
}

/* Security & Support Section */
.page-index .security-support-section {
  background-color: var(--text-light);
}

.page-index .security-support-section p {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1em;
}

.page-index .page-index-grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.page-index .page-index-security-content h3,
.page-index .page-index-support-content h3 {
  color: var(--primary-color);
  font-size: 1.8em;
  margin-bottom: 20px;
}

.page-index .page-index-security-content p,
.page-index .page-index-support-content p {
  text-align: left;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-index .page-index-security-img,
.page-index .page-index-support-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
}

.page-index .page-index-support-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-index .page-index-support-content ul li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: var(--text-dark);
}

.page-index .page-index-support-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index .page-index-support-link:hover {
  color: var(--secondary-color);
}

/* FAQ Section */
.page-index .faq-section {
  background-color: #f0f2f5;
}

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

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  background: #f9f9f9;
}

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

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

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

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

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

.page-index .page-index-blog-card {
  background: var(--text-light);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index .page-index-blog-card h3 {
  padding: 15px 20px 0;
  margin: 0;
  font-size: 1.3em;
}

.page-index .page-index-blog-card h3 .page-index-blog-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-index .page-index-blog-card p {
  padding: 0 20px 10px;
  font-size: 0.9em;
  color: #555;
  text-align: left;
}

.page-index .page-index-blog-date {
  display: block;
  padding: 0 20px 15px;
  font-size: 0.85em;
  color: #888;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index .page-index-h1 {
    font-size: 2.2em;
  }
  .page-index .page-index-h2 {
    font-size: 1.8em;
  }
  .page-index .page-index-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-index .page-index-grid-2-cols {
    grid-template-columns: 1fr;
  }
  .page-index .page-index-security-img,
  .page-index .page-index-support-img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-image {
    margin-bottom: 20px;
    max-height: 350px;
  }
  .page-index .hero-content {
    padding: 15px;
  }
  .page-index .page-index-h1 {
    font-size: 1.8em;
  }
  .page-index .hero-content p {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-index section {
    padding: 40px 0;
  }
  .page-index .page-index-h2 {
    font-size: 1.6em;
    margin-bottom: 30px;
  }
  .page-index .page-index-h2::after {
    bottom: -10px;
  }
  .page-index .page-index-container {
    padding: 0 15px;
  }
  .page-index .page-index-features-grid,
  .page-index .page-index-links-grid,
  .page-index .page-index-game-cards-grid,
  .page-index .page-index-promos-grid,
  .page-index .page-index-blog-cards-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .faq-question {
    padding: 12px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-item.active .faq-answer {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .page-index .page-index-h1 {
    font-size: 1.5em;
  }
  .page-index .hero-content p {
    font-size: 0.9em;
  }
  .page-index .page-index-cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-index .page-index-h2 {
    font-size: 1.4em;
  }
  .page-index .page-index-feature-item,
  .page-index .page-index-quick-link,
  .page-index .page-index-game-card,
  .page-index .page-index-promo-card,
  .page-index .page-index-blog-card {
    padding: 20px;
  }
  .page-index .page-index-feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-index .page-index-game-card h3 .page-index-game-link,
  .page-index .page-index-promo-card h3 .page-index-promo-link,
  .page-index .page-index-blog-card h3 .page-index-blog-link {
    font-size: 1.2em;
  }
}