:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A1A1A; /* Dark Grey/Black */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f5f5f5;
  --bg-dark: #2c2c2c;
  --border-color: #e0e0e0;
  --accent-color: #e74c3c; /* A contrasting red for emphasis */
}

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

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

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

.page-index h1 {
  font-size: 2.8em;
  color: var(--primary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-index h2 {
  font-size: 2.2em;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
}

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

.page-index p {
  margin-bottom: 15px;
  text-align: center;
}

/* CTA Button Styling */
.page-index .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color); /* Ensure contrast */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px 15px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-index .cta-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index .secondary-cta {
  background: none;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index .secondary-cta:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

/* 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(--secondary-color); /* Dark background for hero */
}

.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 image height */
  overflow: hidden; /* Hide overflow if image is too tall */
}

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

.page-index .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light); /* Light text on dark hero background */
}

.page-index .hero-content h1 {
  color: var(--primary-color); /* Gold heading */
  font-size: 3.5em;
  margin-bottom: 15px;
}

.page-index .hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index .intro-section h2 {
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.page-index .intro-section p {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: var(--text-dark);
}

.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: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .intro-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index .intro-item img {
  width: 100%;
  max-width: 300px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

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

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

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

.page-index .quick-links-section h2 {
  color: var(--primary-color);
  margin-bottom: 30px;
}

.page-index .quick-links-section p {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: var(--text-light);
}

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

.page-index .quick-link-card {
  display: block;
  background: #333333;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index .quick-link-card:hover {
  transform: translateY(-8px);
  background-color: #444444;
}

.page-index .quick-link-card img {
  width: 100%;
  max-width: 250px; /* Ensure image size is appropriate */
  height: auto;
  margin-bottom: 15px;
  border-radius: 5px;
  object-fit: cover;
}

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

.page-index .quick-link-card p {
  font-size: 0.95em;
  color: #cccccc;
  text-align: left;
}

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

.page-index .games-section h2 {
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.page-index .games-section p {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: var(--text-dark);
}

.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: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index .game-card img {
  width: 100%;
  max-width: 300px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

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

.page-index .game-card p {
  color: var(--text-dark);
  font-size: 1em;
  text-align: left;
  margin-bottom: 20px;
}

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

.page-index .game-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

/* Promotions Section */
.page-index .promotions-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-index .promotions-section h2 {
  color: var(--primary-color);
  margin-bottom: 30px;
}

.page-index .promotions-section p {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: var(--text-light);
}

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

.page-index .promo-card {
  background: #333333;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index .promo-card:hover {
  transform: translateY(-8px);
  background-color: #444444;
}

.page-index .promo-card img {
  width: 100%;
  max-width: 250px; /* Ensure image size is appropriate */
  height: auto;
  margin-bottom: 15px;
  border-radius: 5px;
  object-fit: cover;
}

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

.page-index .promo-card p {
  font-size: 0.95em;
  color: #cccccc;
  text-align: left;
  margin-bottom: 20px;
}

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

.page-index .promo-button:hover {
  background: var(--text-light);
  color: var(--secondary-color);
}

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

.page-index .security-support-section h2 {
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.page-index .security-support-section p {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: var(--text-dark);
}

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

.page-index .ss-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .ss-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index .ss-item img {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.page-index .ss-item h3 {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-bottom: 15px;
}

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

.page-index .contact-info {
  margin-top: 50px;
  text-align: center;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-index .contact-info p {
  font-size: 1.2em;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-index .contact-info ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.page-index .contact-info li {
  margin: 0;
  font-size: 1.1em;
}

.page-index .contact-info li strong {
  color: var(--primary-color);
}

.page-index .contact-info li a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index .contact-info li a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

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

.page-index .faq-section h2 {
  color: var(--primary-color);
  margin-bottom: 30px;
}

.page-index .faq-section p {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  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;
  border: 1px solid #444444;
  border-radius: 8px;
  overflow: hidden;
}

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

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

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

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

.page-index .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: #cccccc;
}

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

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

.page-index .faq-answer p {
  text-align: left;
  margin-bottom: 0;
  color: #cccccc;
}

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

.page-index .blog-section h2 {
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.page-index .blog-section p {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: var(--text-dark);
}

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

.page-index .blog-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  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 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index .blog-card img {
  width: 100%;
  max-width: 350px; /* Ensure images are not too small */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-index .blog-card h3 {
  color: var(--secondary-color);
  font-size: 1.3em;
  margin-bottom: 10px;
  text-align: left;
}

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