/* style/index.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A1A1A; /* Deep Black */
  --text-light: #FFFFFF;
  --text-dark: #1A1A1A;
  --background-light: #F8F8F8;
  --background-dark: #1A1A1A;
  --border-color: #e0e0e0;
}

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

.page-index h1, .page-index h2, .page-index h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index h1 {
  font-size: 3.2em;
  font-weight: bold;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-index h3 {
  font-size: 1.8em;
  color: var(--secondary-color);
}

.page-index p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

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

.page-index .text-center {
  text-align: center;
}

/* CTA Button Styles */
.page-index .cta-button {
  display: inline-block;
  padding: 16px 45px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  text-transform: uppercase;
}

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

/* 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-color: var(--background-dark); /* Fallback for image loading */
  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;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px 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 15px;
}

.page-index .hero-content p {
  font-size: 1.3em;
  color: #E0E0E0;
  margin-bottom: 40px;
}

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

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

.page-index .intro-section > p {
  max-width: 900px;
  margin: 0 auto 60px auto;
  font-size: 1.15em;
  color: #555;
}

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

.page-index .intro-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid var(--primary-color);
}

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

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

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

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

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

.page-index .quick-links-section p {
  color: #CCC;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

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

.page-index .quick-link-item {
  display: block;
  background: #333;
  padding: 25px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-light);
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid #444;
}

.page-index .quick-link-item:hover {
  background: #444;
  transform: translateY(-5px);
}

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

.page-index .quick-link-item p {
  font-size: 0.95em;
  color: #BBB;
  margin-bottom: 0;
}

/* Games Showcase Section */
.page-index .games-showcase-section {
  background-color: var(--background-light);
  padding: 80px 0;
  text-align: center;
}

.page-index .games-showcase-section h2 {
  color: var(--secondary-color);
}

.page-index .games-showcase-section > p {
  max-width: 900px;
  margin: 0 auto 60px auto;
  font-size: 1.15em;
  color: #555;
}

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

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

.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: 220px;
  object-fit: cover;
  display: block;
}

.page-index .game-card-content {
  padding: 25px;
  text-align: left;
}

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

.page-index .game-card-content p {
  font-size: 1em;
  color: #666;
  margin-bottom: 15px;
}

.page-index .game-card-content span {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: bold;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 3px;
}

.page-index .view-all-games {
  margin-top: 20px;
}

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

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

.page-index .promotions-section p {
  color: #CCC;
  max-width: 900px;
  margin: 0 auto 60px auto;
}

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

.page-index .promo-item {
  background: #333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 5px solid var(--primary-color);
}

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

.page-index .promo-item .promo-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-index .promo-item p {
  font-size: 1em;
  color: #BBB;
  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;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

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

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

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

.page-index .security-support-section > p {
  max-width: 900px;
  margin: 0 auto 60px auto;
  font-size: 1.15em;
  color: #555;
}

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

.page-index .security-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 5px solid var(--primary-color);
}

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

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

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

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

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

.page-index .faq-section h2 {
  color: var(--primary-color);
  text-align: center;
}

.page-index .faq-section p {
  color: #CCC;
  max-width: 900px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.page-index .faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-index .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-index .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #333;
  border: 1px solid #444;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

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

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

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

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

.page-index .faq-answer p {
  margin-bottom: 0;
  color: #E0E0E0;
}

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

.page-index .faq-answer a:hover {
  color: #FFC107;
}

/* Blog Section */
.page-index .blog-section {
  background-color: var(--background-light);
  padding: 80px 0;
  text-align: center;
}

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

.page-index .blog-section p {
  max-width: 900px;
  margin: 0 auto 60px auto;
  font-size: 1.15em;
  color: #555;
}

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

.page-index .blog-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--text-dark);
}

.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;
  display: block;
}

.page-index .blog-card-content {
  padding: 25px;
  text-align: left;
}

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

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

.page-index .blog-date {
  font-size: 0.85em;
  color: #999;
}

.page-index .view-all-blog {
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index h1 {
    font-size: 2.8em;
  }
  .page-index h2 {
    font-size: 2em;
  }
  .page-index h3 {
    font-size: 1.6em;
  }
  .page-index .hero-section {
    padding: 60px 15px;
  }
  .page-index .intro-section, .page-index .quick-links-section, .page-index .games-showcase-section, .page-index .promotions-section, .page-index .security-support-section, .page-index .faq-section, .page-index .blog-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-index h1 {
    font-size: 2.2em;
  }
  .page-index h2 {
    font-size: 1.8em;
  }
  .page-index h3 {
    font-size: 1.4em;
  }
  .page-index p {
    font-size: 1em;
  }
  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-index .hero-image {
    margin-bottom: 20px;
  }
  .page-index .hero-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  .page-index .intro-grid, .page-index .links-grid, .page-index .game-cards-grid, .page-index .promo-grid, .page-index .security-grid, .page-index .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index .intro-item, .page-index .quick-link-item, .page-index .game-card, .page-index .promo-item, .page-index .security-item, .page-index .blog-card {
    padding: 20px;
  }
  .page-index .game-card-img, .page-index .promo-img {
    height: 180px;
  }
  .page-index .faq-question {
    padding: 15px 20px;
  }
  .page-index .faq-question h3 {
    font-size: 1.1em;
  }
  .page-index .faq-toggle {
    font-size: 20px;
  }
  .page-index .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-index h1 {
    font-size: 1.8em;
  }
  .page-index h2 {
    font-size: 1.5em;
  }
  .page-index .hero-section {
    padding: 40px 10px;
  }
  .page-index .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-index .intro-section, .page-index .quick-links-section, .page-index .games-showcase-section, .page-index .promotions-section, .page-index .security-support-section, .page-index .faq-section, .page-index .blog-section {
    padding: 40px 0;
  }
  .page-index .faq-question h3 {
    font-size: 1em;
  }
}