/* style/index.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1E90FF; /* Royal Blue */
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --bg-dark: #1a1a1a; /* Dark background for premium feel */
  --bg-light: #f5f5f5;
  --card-bg: #2a2a2a;
  --border-color: #444444;
}

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

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

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

.page-index-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #e0e0e0;
  text-align: justify;
}

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

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

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

/* 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;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(30, 144, 255, 0.1)); /* Subtle gradient overlay */
}

.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;
  z-index: 2;
}

.page-index .hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.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: 3;
  text-align: center;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text */
  border-radius: 10px;
  margin-top: -80px; /* Overlap with image slightly */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-index-hero-title {
  font-size: 3.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 900;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-index-hero-subtitle {
  font-size: 1.4em;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index-cta-button:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(30, 144, 255, 0.5);
}

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

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

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

.page-index-quick-link-card {
  background: var(--bg-dark);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

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

.page-index-quick-link-card img {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Subtle glow */
}

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

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

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

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

.page-index-game-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-index-game-card h3 {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

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

/* Promotions Section */
.page-index .section-promotions {
  padding: 80px 0;
  background-color: var(--card-bg);
}

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

.page-index-promotion-card {
  background: var(--bg-dark);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-index-promotion-card h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-promotion-card p {
  font-size: 1em;
  color: #cccccc;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

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

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

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

.page-index-security-item {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-index-security-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(30, 144, 255, 0.5));
}

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

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

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

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

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child .faq-question {
  border-bottom: none;
}

.faq-question:hover {
  background: #3a3a3a;
}

.faq-question h3 {
  font-size: 1.3em;
  color: var(--text-light);
  margin: 0;
  font-weight: bold;
  flex-grow: 1;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  width: 30px;
  text-align: center;
}

.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: #222222;
}

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

.faq-answer p {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 10px;
}

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

.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: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index-blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.page-index-blog-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

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

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

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

.page-index-view-all-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 40px;
  transition: all 0.3s ease;
}

.page-index-view-all-button:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-hero-title {
    font-size: 3em;
  }
  .page-index-hero-subtitle {
    font-size: 1.2em;
  }
  .page-index-section-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-index-hero-title {
    font-size: 2.5em;
  }
  .page-index-hero-subtitle {
    font-size: 1em;
  }
  .page-index-cta-button {
    padding: 15px 35px;
    font-size: 18px;
  }
  .page-index-section-title {
    font-size: 2em;
    margin-bottom: 30px;
    padding-top: 40px;
  }
  .page-index-text {
    font-size: 0.95em;
  }
  .page-index-quick-links-grid, .page-index-game-grid, .page-index-promotion-grid, .page-index-security-grid, .page-index-blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index-game-card img, .page-index-promotion-card img, .page-index-blog-card img {
    height: 160px;
  }
  .page-index .hero-content {
    margin-top: -50px;
    padding: 15px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-index-hero-title {
    font-size: 2em;
  }
  .page-index-hero-subtitle {
    font-size: 0.9em;
  }
  .page-index-cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-index-section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-top: 30px;
  }
  .page-index-game-card h3, .page-index-promotion-card h3, .page-index-blog-card h3 {
    font-size: 1.3em;
  }
  .page-index-game-button, .page-index-promotion-button, .page-index-view-all-button {
    padding: 10px 20px;
    font-size: 1em;
  }
  .page-index .hero-image {
    margin-bottom: 15px;
  }
  .page-index .hero-content {
    margin-top: -30px;
  }
}