/* style/index.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #002c5c; /* Darker shade of primary for contrast */
  --border-color: #e0e0e0;
}

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

.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: 50px;
  margin-top: 60px;
  font-weight: bold;
}

.page-index .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-color-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index .cta-button:hover {
  background: #e0a800; /* Darker secondary */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-index .hero-content h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--text-color-light);
  font-weight: bold;
}

.page-index .hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

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

.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: 8px;
  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 .intro-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.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: var(--text-color-dark);
}

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

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

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

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

.page-index .quick-link-card .card-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
  object-fit: contain;
}

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

.page-index .quick-link-card p {
  font-size: 0.95em;
  color: var(--text-color-dark);
}

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

.page-index .games-tabs {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
}

.page-index .tab-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.page-index .tab-button {
  background: none;
  border: none;
  padding: 15px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-color-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  margin: 0 5px;
}

.page-index .tab-button:hover {
  color: var(--primary-color);
}

.page-index .tab-button.active {
  color: var(--primary-color);
}

.page-index .tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
}

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

.page-index .tab-pane {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.page-index .tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-index .game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index .game-item .game-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-index .game-item p {
  font-size: 1.1em;
  color: var(--text-color-dark);
  max-width: 800px;
  margin: 0 auto 20px auto;
}

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

.page-index .btn-small:hover {
  background: #0056b3; /* Darker primary */
}

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

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

.page-index .promotion-card {
  display: block;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-color-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index .promotion-card .promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

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

.page-index .promotion-card p {
  font-size: 0.95em;
  color: var(--text-color-dark);
}

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

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

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

.page-index .security-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

.page-index .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: #ffffff;
}

.page-index .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

.page-index .faq-toggle {
  font-size: 20px;
  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 15px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark);
}

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

/* Module 7: Latest Blog Section */
.page-index .latest-blog-section {
  padding: 80px 0;
  background-color: #f1f1f1;
}

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

.page-index .blog-card {
  display: block;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-color-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.page-index .blog-card p {
  font-size: 0.95em;
  color: var(--text-color-dark);
  margin-bottom: 15px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index .hero-content h1 {
    font-size: 3em;
  }
  .page-index .section-title {
    font-size: 2em;
  }
  .page-index .intro-grid, .page-index .quick-links-grid, .page-index .promotions-grid, .page-index .security-support-grid, .page-index .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-content h1 {
    font-size: 2.5em;
  }
  .page-index .hero-content p {
    font-size: 1em;
  }
  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-index .section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
    margin-top: 50px;
  }
  .page-index .intro-grid, .page-index .quick-links-grid, .page-index .promotions-grid, .page-index .security-support-grid, .page-index .blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index .tab-buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-index .tab-button {
    width: 100%;
    margin: 5px 0;
  }
  .page-index .game-item h3 {
    font-size: 1.5em;
  }
  .page-index .faq-question {
    padding: 12px;
  }
  .page-index .faq-question h3 {
    font-size: 1em;
  }
  .page-index .faq-toggle {
    font-size: 18px;
  }
  .page-index .faq-item.active .faq-answer {
    padding: 12px;
  }
  .page-index .intro-item, .page-index .quick-link-card, .page-index .promotion-card, .page-index .security-item, .page-index .blog-card {
    padding: 20px;
  }
  .page-index .intro-item .intro-icon, .page-index .quick-link-card .card-icon, .page-index .security-item .security-icon {
    width: 60px;
    height: 60px;
  }
  .page-index .promotion-card .promotion-image, .page-index .blog-card .blog-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .page-index .hero-content h1 {
    font-size: 2em;
  }
  .page-index .hero-content p {
    font-size: 0.9em;
  }
  .page-index .section-title {
    font-size: 1.5em;
    margin-bottom: 30px;
  }
  .page-index .cta-button {
    padding: 10px 25px;
    font-size: 14px;
  }
  .page-index .game-item h3 {
    font-size: 1.3em;
  }
  .page-index .game-item p {
    font-size: 0.9em;
  }
  .page-index .btn-small {
    padding: 8px 20px;
    font-size: 0.9em;
  }
}