/* style/index.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #212529;
  --border-color: #e0e0e0;
}

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

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

.page-index h1, .page-index h2, .page-index h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-index h2 {
  font-size: 2.2em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

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

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

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

.page-index .btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index .btn-primary:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index .btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index .btn-secondary:hover {
  background: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index .btn-small {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index .btn-small:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-1px);
}

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

.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;
  position: relative;
}

.page-index .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-index .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 80%;
  max-width: 800px; /* Limit content width */
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-index .hero-content h1 {
  color: var(--text-light);
  font-size: 3.5em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index .hero-content p {
  color: var(--text-light);
  font-size: 1.3em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

/* Introduction Section */
.page-index .introduction-section {
  padding: 60px 0;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.page-index .introduction-section p {
  text-align: justify;
  margin-bottom: 20px;
}

.page-index .introduction-section .btn-secondary {
  margin-top: 30px;
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Quick Access Section */
.page-index .quick-access-section {
  padding: 60px 0;
  background-color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
}

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

.page-index .access-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-index .access-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.page-index .access-card .card-img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index .access-card h3 {
  color: var(--primary-color);
  margin-top: 0;
  font-size: 1.4em;
}

.page-index .access-card p {
  font-size: 0.95em;
  color: #555;
}

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

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

.page-index .game-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.page-index .game-card .game-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

.page-index .more-games-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: var(--text-dark);
}

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

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

.page-index .promo-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

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

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

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

.page-index .more-promos-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: var(--text-dark);
}

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

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

.page-index .security-support-section p {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-index .feature-item {
  text-align: center;
  padding: 25px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.page-index .feature-item:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
}

.page-index .feature-item .feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: invert(1) brightness(1.5) hue-rotate(200deg); /* Example for icons, but for images, this is forbidden */
}

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

.page-index .feature-item p {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.page-index .faq-section {
  padding: 60px 0;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

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

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

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

.page-index .faq-question:hover {
  background: #f0f0f0;
  border-color: var(--primary-color);
}

.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);
  color: var(--secondary-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: #f9f9f9;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

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

.page-index .faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #555;
}

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

.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: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-index .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.page-index .blog-card .blog-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-index .blog-card h3 {
  padding: 15px 20px 0;
  font-size: 1.3em;
  color: var(--primary-color);
}

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index .hero-content h1 {
    font-size: 2.8em;
  }
  .page-index .hero-content p {
    font-size: 1.1em;
  }
  .page-index .cta-button {
    padding: 15px 35px;
    font-size: 1.2em;
  }
  .page-index h2 {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-content {
    width: 90%;
    padding: 15px;
  }
  .page-index .hero-content h1 {
    font-size: 2.2em;
  }
  .page-index .hero-content p {
    font-size: 1em;
  }
  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-index h2 {
    font-size: 1.8em;
  }
  .page-index h3 {
    font-size: 1.4em;
  }
  .page-index p {
    font-size: 1em;
  }
  .page-index .access-links-grid, .page-index .game-categories, .page-index .promo-grid, .page-index .security-features, .page-index .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .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;
  }
  .page-index .introduction-section .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-index .hero-content h1 {
    font-size: 1.8em;
  }
  .page-index .hero-content p {
    font-size: 0.9em;
  }
  .page-index .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-index h2 {
    font-size: 1.6em;
  }
  .page-index .access-card .card-img, .page-index .game-card .game-img, .page-index .promo-card .promo-img, .page-index .blog-card .blog-img {
    height: 180px;
  }
}