.page-index {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A202C; /* Deep Black/Dark Blue */
  --text-dark: #1A202C;
  --text-light: #FFFFFF;
  --background-light: #F5F5F5;
  --background-dark: #1A202C;
  --border-color: #E0E0E0;
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
}

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

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

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

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

.page-index h1 {
  font-size: 2.8em;
  color: var(--text-light);
}

.page-index h2 {
  font-size: 2.2em;
}

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

.page-index p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-index a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-index a:hover {
  text-decoration: underline;
}

/* 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: 80px 20px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%); /* Dark background for text contrast */
  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;
}

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

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

.page-index .hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 25px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index .hero-content p {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #E0E0E0;
}

.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: 10px 15px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

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

.page-index .cta-button--secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-index .cta-button--secondary:hover {
  background: #000000; /* Even darker black */
  color: #FFD700;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* Module 1: Introduction */
.page-index .introduction-section {
  background-color: #FFFFFF;
}

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

.page-index .intro-item {
  background: var(--background-light);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-index .intro-item:hover {
  transform: translateY(-5px);
}

.page-index .intro-item h3 {
  color: var(--primary-color);
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-index .intro-item p {
  font-size: 1em;
  color: var(--text-dark);
}

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

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

.page-index .quick-access-section p {
  color: #E0E0E0;
}

.page-index .access-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-index .access-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index .access-button:hover {
  background: #FFC107;
  transform: translateY(-2px);
}

/* Module 3: Core Games */
.page-index .core-games-section {
  background-color: #FFFFFF;
}

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

.page-index .game-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index .game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-index .game-card h3 {
  padding: 15px 20px 0;
  font-size: 1.4em;
  color: var(--secondary-color);
}

.page-index .game-card .game-title-link {
  color: var(--secondary-color);
  text-decoration: none;
}

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

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

.page-index .game-card .btn-game {
  display: inline-block;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  margin: 0 20px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index .game-card .btn-game:hover {
  background: #FFC107;
}

/* Module 4: Promotions */
.page-index .promotions-section {
  background-color: var(--background-light);
}

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

.page-index .promo-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index .promo-card h3 {
  padding: 15px 20px 0;
  font-size: 1.3em;
  color: var(--secondary-color);
}

.page-index .promo-card .promo-title-link {
  color: var(--secondary-color);
  text-decoration: none;
}

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

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

.page-index .promo-card .btn-promo {
  display: inline-block;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 8px 18px;
  margin: 0 20px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index .promo-card .btn-promo:hover {
  background: #FFC107;
}

/* Module 5: Security & Support */
.page-index .security-support-section {
  background-color: #FFFFFF;
}

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

.page-index .info-item {
  background: var(--background-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-index .info-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-index .info-item h3 {
  color: var(--primary-color);
  font-size: 1.4em;
}

.page-index .info-item p {
  font-size: 0.95em;
  color: var(--text-dark);
}

.page-index .btn-contact {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 10px 25px;
  margin-top: 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index .btn-contact:hover {
  background: #000000;
}

/* Module 6: FAQ */
.page-index .faq-section {
  background-color: var(--background-light);
}

.page-index .faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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: 15px 20px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-index .faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--secondary-color);
  text-align: left;
  flex-grow: 1;
}

.page-index .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
  margin-left: 15px;
}

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

.page-index .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background: #fcfcfc;
  text-align: left;
}

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

.page-index .faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #444;
}

/* Module 7: Latest Blog Content */
.page-index .latest-blog-section {
  background-color: #FFFFFF;
}

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

.page-index .blog-post-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index .blog-post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index .blog-post-card .post-content {
  padding: 20px;
}

.page-index .blog-post-card h3 {
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-index .blog-post-card .post-title-link {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-index .blog-post-card .post-title-link:hover {
  color: var(--primary-color);
}

.page-index .blog-post-card .post-meta {
  font-size: 0.85em;
  color: #777;
  margin-bottom: 10px;
}

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

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

.page-index .read-more-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-index .view-all-button {
  margin-top: 50px;
}

/* Floating buttons for mobile */
@media (max-width: 768px) {
  .page-index .floating-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    background: var(--secondary-color);
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  }

  .page-index .floating-buttons .float-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8em;
    font-weight: bold;
  }

  .page-index .floating-buttons .float-btn img {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index .hero-content h1 {
    font-size: 2.8em;
  }

  .page-index .hero-content p {
    font-size: 1.1em;
  }

  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }

  .page-index h2 {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-index section {
    padding: 40px 0;
  }

  .page-index .hero-section {
    padding: 60px 15px;
  }

  .page-index .hero-content h1 {
    font-size: 2.2em;
  }

  .page-index .hero-content p {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-index .cta-button {
    padding: 10px 25px;
    font-size: 1em;
    margin: 8px 10px;
  }

  .page-index h2 {
    font-size: 1.8em;
  }

  .page-index h3 {
    font-size: 1.3em;
  }

  .page-index p {
    font-size: 0.95em;
  }

  .page-index .intro-grid, .page-index .game-categories, .page-index .promo-grid, .page-index .security-support-grid, .page-index .blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index .intro-item, .page-index .game-card, .page-index .promo-card, .page-index .info-item, .page-index .blog-post-card {
    padding: 20px;
  }

  .page-index .game-card img, .page-index .promo-card img, .page-index .blog-post-card img {
    height: 180px;
  }

  .page-index .faq-question {
    padding: 12px 15px;
  }

  .page-index .faq-question h3 {
    font-size: 1em;
  }

  .page-index .faq-toggle {
    font-size: 20px;
  }

  .page-index .faq-answer {
    padding: 0 15px;
  }

  .page-index .faq-item.active .faq-answer {
    padding: 12px 15px;
  }

  .page-index .quick-access-section .access-links {
    flex-direction: column;
    align-items: center;
  }

  .page-index .access-button {
    width: 80%;
    max-width: 300px;
  }
}