.page-index {
  --primary-color: #2D3E50;
  --secondary-color: #E7B10A;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f7f6;
  --bg-dark: #2D3E50;
  --border-color: #e0e0e0;
}

.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(--bg-light);
}

.page-index h1,
.page-index h2,
.page-index h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

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

.page-index h2 {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 30px;
}

.page-index h3 {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--primary-color);
}

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

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

.page-index .cta-button:hover {
  background: #d4a009; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index .btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95em;
  font-weight: 500;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.page-index .btn-small:hover {
  background: #1f2c38; /* Slightly darker navy */
}

/* 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 */
}

.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 20px rgba(0, 0, 0, 0.4);
}

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

.page-index .hero-content h1,
.page-index .hero-content p {
  color: var(--text-light);
}

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

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

.page-index .introduction-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.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(--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 .intro-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index .intro-icon {
  width: 100px; /* Minimum 200x200px for actual images, this is a placeholder for icon-like imagery */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Example styling, actual image should be >= 200x200 */
  border: 2px solid var(--secondary-color);
  padding: 10px;
}

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

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

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

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

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

.page-index .access-link-card {
  background: var(--text-light);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-index .access-link-card img {
  width: 120px; /* Placeholder, actual image >= 200x200 */
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  padding: 8px;
}

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

.page-index .access-link-card p {
  color: var(--text-dark);
  font-size: 0.9em;
  flex-grow: 1;
}

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

.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: var(--text-light);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index .game-card h3 {
  margin: 20px 15px 10px;
  color: var(--primary-color);
}

.page-index .game-card p {
  padding: 0 15px;
  color: var(--text-dark);
  font-size: 0.95em;
  flex-grow: 1;
}

.page-index .game-card .btn-small {
  margin-bottom: 20px;
}

/* Promotions Section */
.page-index .promotions-section {
  background-color: var(--bg-dark);
}

.page-index .promotions-section h2,
.page-index .promotions-section p {
  color: var(--text-light);
}

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

.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;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index .promo-card h3 {
  margin: 20px 15px 10px;
  color: var(--primary-color);
}

.page-index .promo-card p {
  padding: 0 15px;
  color: var(--text-dark);
  font-size: 0.95em;
  flex-grow: 1;
}

.page-index .promo-card .btn-small {
  margin-bottom: 20px;
}

/* Security & Customer Service Section */
.page-index .security-customer-service-section {
  background-color: var(--bg-light);
}

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

.page-index .service-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 .service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index .service-icon {
  width: 100px; /* Placeholder, actual image >= 200x200 */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 2px solid var(--secondary-color);
  padding: 10px;
}

.page-index .service-item h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

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

.page-index .contact-cta {
  margin-top: 50px;
}

/* FAQ Section */
.page-index .faq-section {
  background-color: var(--bg-dark);
}

.page-index .faq-section h2,
.page-index .faq-section p {
  color: var(--text-light);
}

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

.page-index .faq-item {
  margin-bottom: 15px;
}

.page-index .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.page-index .faq-question:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-index .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  text-align: left;
}

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

.page-index .faq-answer p {
  color: var(--text-dark);
  margin-bottom: 15px;
}

.page-index .faq-answer .btn-small {
  margin-top: 0;
}

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

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

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

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

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

.page-index .blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index .blog-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4em;
  color: var(--primary-color);
  line-height: 1.3;
}

.page-index .blog-content h3 a {
  text-decoration: none;
  color: inherit;
}

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

.page-index .blog-content p {
  color: var(--text-dark);
  font-size: 0.95em;
  line-height: 1.6;
  flex-grow: 1;
}

.page-index .blog-content span {
  display: block;
  font-size: 0.85em;
  color: #777;
  margin-top: 15px;
}

.page-index .view-all-posts {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index h1 {
    font-size: 2.4em;
  }
  .page-index h2 {
    font-size: 1.8em;
  }
  .page-index h3 {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-index section {
    padding: 40px 0;
  }
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-image {
    margin-bottom: 20px;
  }
  .page-index .hero-image img {
    border-radius: 4px;
  }
  .page-index .hero-content h1 {
    font-size: 2em;
  }
  .page-index .hero-content p {
    font-size: 1em;
  }
  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 1em;
    margin-top: 20px;
  }
  .page-index .intro-grid,
  .page-index .access-links-grid,
  .page-index .games-grid,
  .page-index .promotions-grid,
  .page-index .service-grid,
  .page-index .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index .intro-icon,
  .page-index .access-link-card img,
  .page-index .service-icon {
    width: 80px;
    height: 80px;
  }
  .page-index .faq-question {
    padding: 12px 15px;
  }
  .page-index .faq-question h3 {
    font-size: 1.1em;
  }
  .page-index .faq-toggle {
    font-size: 20px;
  }
  .page-index .faq-answer {
    padding: 15px;
  }
  .page-index .blog-img {
    height: 180px;
  }
  .page-index .blog-content h3 {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-index h1 {
    font-size: 1.8em;
  }
  .page-index h2 {
    font-size: 1.6em;
  }
  .page-index h3 {
    font-size: 1.2em;
  }
  .page-index p {
    font-size: 0.95em;
  }
  .page-index .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-index .btn-small {
    padding: 8px 20px;
    font-size: 0.85em;
  }
  .page-index .intro-icon,
  .page-index .access-link-card img,
  .page-index .service-icon {
    width: 60px;
    height: 60px;
  }
  .page-index .faq-question h3 {
    font-size: 1em;
  }
}