:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #1a1a2e;
  --border-color: #e0e0e0;
}

.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

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

.page-index .section-title {
  font-size: 36px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
}

.page-index .section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-index .sub-section-title {
  font-size: 28px;
  color: var(--secondary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index .text-content {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.8;
  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: 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: 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-title {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index .hero-description {
  font-size: 22px;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-index .cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-index .cta-button:hover {
  background: #FFC107;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.page-index .game-type-icon {
  width: 100%; /* Ensure images are not small icons */
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-index .game-type-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index .game-type-description {
  font-size: 16px;
  color: var(--text-dark);
}

/* Quick Links Section */
.page-index .quick-links-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
  color: var(--text-light);
  text-align: center;
}

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

.page-index .quick-links-section .section-title::after {
  background-color: var(--primary-color);
}

.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: 15px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-index .quick-link-button:hover {
  background: #FFC107;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

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

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

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

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

.page-index .game-card-img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-index .game-card-title {
  font-size: 24px;
  color: var(--secondary-color);
  padding: 20px 20px 10px;
  font-weight: bold;
}

.page-index .game-card-link {
  color: inherit;
  text-decoration: none;
}

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

.page-index .game-card-description {
  font-size: 16px;
  color: var(--text-dark);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index .game-card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
  margin-top: auto; /* Push button to bottom */
}

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

/* Promotions Section */
.page-index .promotions-section {
  padding: 80px 0;
  background-color: #f2f2f2;
}

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

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

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

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

.page-index .promo-card-title {
  font-size: 24px;
  color: var(--secondary-color);
  padding: 20px 20px 10px;
  font-weight: bold;
}

.page-index .promo-card-link {
  color: inherit;
  text-decoration: none;
}

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

.page-index .promo-card-description {
  font-size: 16px;
  color: var(--text-dark);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index .promo-card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
  margin-top: auto;
}

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

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

.page-index .security-support-section .section-title, 
.page-index .security-support-section .sub-section-title, 
.page-index .security-support-section .text-content {
  color: var(--text-light);
}

.page-index .security-support-section .section-title::after {
  background-color: var(--primary-color);
}

.page-index .contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-index .contact-list li {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-index .contact-list li a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index .contact-list li a:hover {
  color: #FFC107;
  text-decoration: underline;
}

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

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

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

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

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

.faq-question h3 {
  font-size: 20px;
  color: var(--secondary-color);
  margin: 0;
  font-weight: bold;
  line-height: 1.4;
}

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

.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: #f9f9f9;
  color: var(--text-dark);
}

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

.faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.faq-answer a:hover {
  color: var(--primary-color);
}

/* Blog Section */
.page-index .blog-section {
  padding: 80px 0;
  background-color: #f2f2f2;
}

.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: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-index .blog-card-title {
  font-size: 22px;
  color: var(--secondary-color);
  padding: 20px 20px 10px;
  font-weight: bold;
}

.page-index .blog-card-link {
  color: inherit;
  text-decoration: none;
}

.page-index .blog-card-link:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

.page-index .blog-card-excerpt {
  font-size: 16px;
  color: var(--text-dark);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index .blog-card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
  margin-top: auto;
}

.page-index .blog-card-button:hover {
  background: #FFC107;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index .hero-title {
    font-size: 40px;
  }
  .page-index .hero-description {
    font-size: 20px;
  }
  .page-index .section-title {
    font-size: 32px;
  }
  .page-index .sub-section-title {
    font-size: 24px;
  }
  .page-index .text-content {
    font-size: 17px;
  }
  .page-index .game-card-title, .page-index .promo-card-title, .page-index .blog-card-title {
    font-size: 22px;
  }
  .faq-question h3 {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-title {
    font-size: 32px;
  }
  .page-index .hero-description {
    font-size: 18px;
  }
  .page-index .cta-button {
    padding: 15px 35px;
    font-size: 18px;
  }
  .page-index .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-index .sub-section-title {
    font-size: 22px;
    margin-top: 30px;
  }
  .page-index .text-content {
    font-size: 16px;
  }
  .page-index .game-types-grid, .page-index .links-grid, .page-index .games-carousel, .page-index .promo-grid, .page-index .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index .game-type-item, .page-index .quick-link-button, .page-index .game-card, .page-index .promo-card, .page-index .blog-card {
    padding: 20px;
  }
  .page-index .game-type-icon {
    max-width: 200px;
  }
  .page-index .game-card-img, .page-index .promo-card-img, .page-index .blog-card-img {
    height: 180px;
  }
  .page-index .game-card-title, .page-index .promo-card-title, .page-index .blog-card-title {
    font-size: 20px;
    padding: 15px 15px 8px;
  }
  .page-index .game-card-description, .page-index .promo-card-description, .page-index .blog-card-excerpt {
    font-size: 15px;
    padding: 0 15px 15px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 17px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 20px;
  }
  .page-index .contact-list li {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .page-index .hero-title {
    font-size: 28px;
  }
  .page-index .hero-description {
    font-size: 16px;
  }
  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-index .section-title {
    font-size: 24px;
  }
  .page-index .sub-section-title {
    font-size: 20px;
  }
  .page-index .game-type-title {
    font-size: 20px;
  }
  .page-index .quick-link-button {
    font-size: 16px;
  }
  .faq-question h3 {
    font-size: 16px;
  }
  .faq-toggle {
    font-size: 24px;
  }
}