.page-index {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A1A1A; /* Dark Grey */
  --text-color-dark: #1A1A1A;
  --text-color-light: #FFFFFF;
  --background-light: #F8F8F8;
  --background-dark: #2C2C2C;
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark);
  line-height: 1.6;
}

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

.page-index .section-title {
  font-size: 3em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.page-index .section-description,
.page-index .section-conclusion {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index .highlight-text {
  color: var(--primary-color);
  font-weight: bold;
}

.page-index .cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
}

.page-index .cta-button.primary-button {
  background: var(--primary-color);
  color: var(--text-color-dark);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-index .cta-button.primary-button:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

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

.page-index .cta-button.secondary-button:hover {
  background: lighten(var(--secondary-color), 10%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-index .cta-button.small-button {
  padding: 10px 25px;
  font-size: 0.9em;
}

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

.page-index .text-link:hover {
  color: darken(var(--primary-color), 15%);
  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: 60px 20px 80px;
  background: var(--background-dark);
  color: var(--text-color-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;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-index .hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

.page-index .hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Module Sections Styling */
.page-index .intro-section,
.page-index .quick-links-section,
.page-index .games-section,
.page-index .promotions-section,
.page-index .security-support-section,
.page-index .faq-section,
.page-index .blog-section {
  padding: 80px 0;
  margin-bottom: 0;
}

.page-index .intro-section,
.page-index .games-section,
.page-index .security-support-section,
.page-index .blog-section {
  background: var(--background-light);
  color: var(--text-color-dark);
}

.page-index .quick-links-section,
.page-index .promotions-section,
.page-index .faq-section {
  background: var(--background-dark);
  color: var(--text-color-light);
}

.page-index .quick-links-section .section-title,
.page-index .promotions-section .section-title,
.page-index .faq-section .section-title {
  color: var(--primary-color);
}

.page-index .quick-links-section .section-description,
.page-index .promotions-section .section-description,
.page-index .faq-section .section-description,
.page-index .quick-links-section .section-conclusion,
.page-index .promotions-section .section-conclusion,
.page-index .faq-section .section-conclusion {
  color: var(--text-color-light);
}

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

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

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

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

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

.page-index .feature-item p {
  font-size: 1em;
  color: #555;
}

/* Module 2: Quick Links */
.page-index .quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.page-index .quick-link-card {
  background: var(--secondary-color);
  color: var(--text-color-light);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid var(--primary-color);
}

.page-index .quick-link-card:hover {
  transform: translateY(-8px);
  background: lighten(var(--secondary-color), 10%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-index .quick-link-card p {
  font-size: 0.95em;
  color: #BBB;
}

/* Module 3: Games Section */
.page-index .games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

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

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

.page-index .game-card h3 {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin: 20px 20px 10px;
}

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

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

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

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

.page-index .game-card .read-more-link:hover {
  color: darken(var(--primary-color), 15%);
  text-decoration: underline;
}

/* Module 4: Promotions Section */
.page-index .promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index .promotion-card {
  background: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--primary-color);
}

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

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

.page-index .promotion-card h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin: 20px 20px 10px;
}

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

.page-index .promotion-card h3 a:hover {
  color: lighten(var(--primary-color), 15%);
}

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

.page-index .promotion-card .cta-button,
.page-index .promotion-card .read-more-link {
  display: block;
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* Module 5: Security & Support */
.page-index .security-support-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index .security-support-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index .security-support-item img {
  width: 90px;
  height: 90px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-index .security-support-item p {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
}

/* Module 6: FAQ Section */
.page-index .faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--secondary-color);
  color: var(--text-color-light);
  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: lighten(var(--secondary-color), 10%);
  color: var(--primary-color);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  font-weight: bold;
  color: inherit;
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #2C2C2C;
  color: #E0E0E0;
  border-radius: 0 0 8px 8px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
}

.faq-answer p {
  margin-bottom: 0;
}

.faq-answer p a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.faq-answer p a:hover {
  text-decoration: underline;
}

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

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

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

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

.page-index .blog-post-card h3 {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin: 20px 20px 10px;
}

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

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

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

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

.page-index .blog-post-card .read-more-link {
  display: block;
  padding: 0 20px 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index .blog-post-card .read-more-link:hover {
  color: darken(var(--primary-color), 15%);
  text-decoration: underline;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index .section-title {
    font-size: 2.5em;
  }
  .page-index .hero-title {
    font-size: 3em;
  }
  .page-index .hero-description {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px 60px;
  }
  .page-index .hero-title {
    font-size: 2.2em;
  }
  .page-index .hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-index .hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index .cta-button {
    width: 80%;
    max-width: 300px;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-index .section-title {
    font-size: 2em;
  }
  .page-index .section-description {
    font-size: 1em;
  }
  .page-index .intro-features,
  .page-index .quick-links-grid,
  .page-index .games-grid,
  .page-index .promotions-grid,
  .page-index .security-support-content,
  .page-index .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-index .feature-item,
  .page-index .quick-link-card,
  .page-index .game-card,
  .page-index .promotion-card,
  .page-index .security-support-item,
  .page-index .blog-post-card {
    padding: 20px;
  }
  .page-index .feature-item h3,
  .page-index .quick-link-card h3,
  .page-index .game-card h3,
  .page-index .promotion-card h3,
  .page-index .security-support-item h3,
  .page-index .blog-post-card h3 {
    font-size: 1.2em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-answer {
    padding: 15px 20px;
  }
  .faq-toggle {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .page-index .hero-title {
    font-size: 1.8em;
  }
  .page-index .hero-description {
    font-size: 0.9em;
  }
  .page-index .cta-button {
    width: 90%;
    font-size: 0.9em;
  }
  .page-index .section-title {
    font-size: 1.8em;
  }
  .page-index .section-description {
    font-size: 0.9em;
  }
  .page-index .feature-item h3,
  .page-index .quick-link-card h3,
  .page-index .game-card h3,
  .page-index .promotion-card h3,
  .page-index .security-support-item h3,
  .page-index .blog-post-card h3 {
    font-size: 1.1em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
}