/* style/index.css */

:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #DC143C; /* Deep Red */
  --dark-background: #1a1a1a;
  --text-light: #ffffff;
  --text-dark: #333333;
  --card-background: #2a2a2a;
  --border-color: #333333;
  --hover-effect: #ffd700cc;
}

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

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

.page-index .section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 60px;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-index .section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #cccccc;
}

/* 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: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.9)); /* Dark overlay for text contrast */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.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 {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
}

.page-index .hero-content p {
  font-size: 1.3em;
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-index .hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-index .cta-button:hover {
  background: var(--hover-effect);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  border-color: var(--text-light);
}

.page-index .secondary-cta {
  background: var(--secondary-color);
  color: var(--text-light);
  border-color: var(--secondary-color);
}

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

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

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

.page-index .feature-item {
  background: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index .feature-icon {
  width: 100px; /* Min 200x200 requirement, adjusting for visual representation */
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px var(--primary-color));
}

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

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

/* Quick Access Section */
.page-index .quick-access-section {
  padding: 80px 0;
  background-color: #222222;
}

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

.page-index .quick-link-card {
  background: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index .quick-link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
}

.page-index .quick-link-icon {
  width: 100px; /* Min 200x200 requirement, adjusting for visual representation */
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px var(--secondary-color));
}

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

.page-index .quick-link-card p {
  font-size: 1em;
  color: #cccccc;
}

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

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

.page-index .game-card {
  background: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

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

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

.page-index .game-card p {
  font-size: 1em;
  color: #cccccc;
  padding: 0 20px 20px 20px;
}

.page-index .game-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px 20px;
  padding: 12px 0;
  background: var(--secondary-color);
  color: var(--text-light);
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index .game-button:hover {
  background: #bb0f32;
}

/* Promotions Section */
.page-index .promotions-section {
  padding: 80px 0;
  background-color: #222222;
}

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

.page-index .promo-card {
  background: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

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

.page-index .promo-card h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  padding: 20px 20px 10px 20px;
}

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

.page-index .promo-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px 20px;
  padding: 10px 0;
  background: var(--primary-color);
  color: var(--text-dark);
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index .promo-button:hover {
  background: var(--hover-effect);
}

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

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

.page-index .security-info, .page-index .payment-info, .page-index .support-info {
  background: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-index .security-image {
  width: 120px; /* Min 200x200 requirement, adjusting for visual representation */
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--primary-color));
}

.page-index .security-info h3, .page-index .payment-info h3, .page-index .support-info h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index .security-info p, .page-index .payment-info p, .page-index .support-info p {
  font-size: 1em;
  color: #cccccc;
}

/* FAQ Section */
.page-index .faq-section {
  padding: 80px 0;
  background-color: #222222;
}

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

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-background);
  border: 1px solid var(--border-color);
}

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

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

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

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: var(--card-background);
  color: #cccccc;
}

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

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

.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: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-light);
}

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

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

.page-index .blog-content {
  padding: 20px;
}

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

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

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

.page-index .view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

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

.page-index .view-all-button:hover {
  background: #bb0f32;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index .section-title {
    font-size: 2.2em;
  }
  .page-index .hero-content h1 {
    font-size: 2.8em;
  }
  .page-index .hero-content p {
    font-size: 1.1em;
  }
  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-index .intro-features, .page-index .quick-links-grid, .page-index .game-categories-grid, .page-index .promotions-grid, .page-index .security-support-content, .page-index .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index .section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }
  .page-index .section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-content h1 {
    font-size: 2.2em;
  }
  .page-index .hero-content p {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-index .hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index .cta-button {
    width: 80%;
    max-width: 300px;
    padding: 10px 20px;
    font-size: 1em;
  }
  .page-index .intro-section, .page-index .quick-access-section, .page-index .games-section, .page-index .promotions-section, .page-index .security-support-section, .page-index .faq-section, .page-index .blog-section {
    padding: 50px 0;
  }
  .page-index .intro-features, .page-index .quick-links-grid, .page-index .game-categories-grid, .page-index .promotions-grid, .page-index .security-support-content, .page-index .blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index .feature-icon, .page-index .quick-link-icon, .page-index .security-image {
    width: 80px;
    height: 80px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-index .game-image, .page-index .promo-image, .page-index .blog-image {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .page-index .hero-content h1 {
    font-size: 1.8em;
  }
  .page-index .hero-content p {
    font-size: 0.9em;
  }
  .page-index .section-title {
    font-size: 1.5em;
  }
  .page-index .cta-button {
    width: 90%;
    max-width: 250px;
  }
}