/* style/index.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --background-dark: #222222;
  --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 20px;
}

.page-index section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-index .section-title {
  font-size: 38px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

.page-index .section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  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;
  max-height: 600px; /* Limit height to prevent excessive stretching */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index .hero-image img {
  width: 100%;
  height: 100%; /* Make image fill the container */
  max-width: 100%;
  display: block;
  object-fit: cover; /* Cover the area, cropping if necessary */
  border-radius: 12px;
}

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

.page-index .hero-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index .hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

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

.page-index .cta-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

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

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

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

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

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

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

.page-index .feature-icon {
  width: 150px; /* Increased size for content image, not icon */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

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

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

/* Module 2: Quick Access Section */
.page-index .quick-access-section {
  background: var(--secondary-color);
  padding: 80px 0;
}

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

.page-index .access-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-index .access-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--primary-color);
}

.page-index .access-button:hover {
  background: var(--text-light);
  color: var(--secondary-color);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border-color: var(--text-light);
}

/* Module 3: Games Section */
.page-index .games-section {
  background: var(--background-dark);
  padding: 80px 0;
}

.page-index .games-section .section-title,
.page-index .games-section .section-description {
  color: var(--text-light);
}

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

.page-index .game-card {
  background: #333333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

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

.page-index .game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index .game-title {
  font-size: 26px;
  color: var(--primary-color);
  margin: 20px 0 10px;
  font-weight: bold;
}

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

.page-index .game-title a:hover {
  color: var(--text-light);
}

.page-index .game-text {
  font-size: 16px;
  padding: 0 20px 20px;
  color: #cccccc;
}

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

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

/* Module 4: Promotions Section */
.page-index .promotions-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 80px 0;
}

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

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

.page-index .promo-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index .promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.page-index .promo-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin: 20px 15px 10px;
  font-weight: bold;
}

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

.page-index .promo-title a:hover {
  color: var(--primary-color);
}

.page-index .promo-text {
  font-size: 15px;
  padding: 0 15px 15px;
  color: var(--text-dark);
}

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

.page-index .promo-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

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

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

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

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

.page-index .security-icon {
  width: 120px; /* Increased size for content image, not icon */
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

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

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

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

.page-index .contact-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

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

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

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

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

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

.faq-question:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-index .faq-question-title {
  font-size: 20px;
  margin: 0;
  font-weight: bold;
  color: inherit;
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background: #444444;
  color: #cccccc;
  padding: 0 25px;
  border-radius: 0 0 8px 8px;
}

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

.page-index .faq-answer-text {
  margin: 0;
  font-size: 16px;
}

.page-index .faq-button {
  display: inline-block;
  padding: 8px 15px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.page-index .faq-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

/* Module 7: Blog Section */
.page-index .blog-section {
  background: var(--background-light);
  padding: 80px 0;
}

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

.page-index .blog-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index .blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

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

.page-index .blog-title a:hover {
  color: var(--primary-color);
}

.page-index .blog-excerpt {
  font-size: 15px;
  color: #666666;
  padding: 0 20px 15px;
}

.page-index .read-more {
  display: inline-block;
  padding: 8px 15px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: all 0.3s ease;
}

.page-index .read-more:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index .hero-title {
    font-size: 44px;
  }
  .page-index .hero-description {
    font-size: 20px;
  }
  .page-index .section-title {
    font-size: 32px;
  }
  .page-index .section-description {
    font-size: 16px;
  }
  .page-index .game-categories,
  .page-index .promo-grid,
  .page-index .security-support-grid,
  .page-index .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-title {
    font-size: 36px;
  }
  .page-index .hero-description {
    font-size: 18px;
  }
  .page-index .cta-button {
    padding: 15px 35px;
    font-size: 18px;
    margin: 8px 10px;
  }
  .page-index section {
    padding: 40px 0;
  }
  .page-index .section-title {
    font-size: 28px;
  }
  .page-index .section-description {
    font-size: 15px;
  }
  .page-index .intro-features,
  .page-index .game-categories,
  .page-index .promo-grid,
  .page-index .security-support-grid,
  .page-index .blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index .feature-icon,
  .page-index .security-icon {
    width: 100px;
    height: 100px;
  }
  .page-index .access-links {
    flex-direction: column;
    align-items: center;
  }
  .page-index .access-button {
    width: 80%;
    max-width: 300px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .page-index .faq-question-title {
    font-size: 18px;
  }
  .faq-toggle {
    font-size: 24px;
  }
  .faq-answer {
    padding: 15px 20px;
  }
  .page-index .blog-image {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .page-index .hero-title {
    font-size: 30px;
  }
  .page-index .hero-description {
    font-size: 16px;
  }
  .page-index .cta-button {
    padding: 12px 25px;
    font-size: 16px;
    margin: 5px;
  }
  .page-index .section-title {
    font-size: 24px;
  }
  .page-index .section-description {
    font-size: 14px;
  }
  .page-index .game-title,
  .page-index .promo-title,
  .page-index .security-title,
  .page-index .blog-title {
    font-size: 20px;
  }
  .page-index .faq-question-title {
    font-size: 16px;
  }
  .faq-toggle {
    font-size: 20px;
  }
}