/* style/index.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #2F4F4F; /* Dark Slate Gray */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f4f4;
  --bg-dark: #1a1a1a;
  --accent-color: #FF4500; /* OrangeRed for emphasis */
  --border-color: #e0e0e0;
}

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

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

.page-index-section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  position: relative;
}

.page-index-section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

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

.page-index-cta-button:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border-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: 80px 20px;
  background-color: var(--secondary-color);
  overflow: hidden;
}

.page-index-hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-index-hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-height: 500px;
  overflow: hidden;
  border-radius: 12px;
  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;
  object-position: center;
}

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

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

.page-index-hero-description {
  font-size: 1.3em;
  color: #e0e0e0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index-intro-section p {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
}

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

.page-index-quick-access-section .page-index-section-title {
  color: var(--primary-color);
}

.page-index-quick-access-section p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index-quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--primary-color);
}

.page-index-quick-link-card:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--text-light);
}

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

.page-index-game-category {
  margin-bottom: 60px;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index-game-category:last-child {
  margin-bottom: 0;
}

.page-index-game-title {
  font-size: 2em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-index-game-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-index-game-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-index-game-category p {
  font-size: 1.05em;
  line-height: 1.7;
  text-align: justify;
}

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

.page-index-promotions-section .page-index-section-title {
  color: var(--primary-color);
}

.page-index-promotion-item {
  background-color: var(--bg-dark);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--primary-color);
}

.page-index-promotion-item:last-child {
  margin-bottom: 0;
}

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

.page-index-promotion-item p {
  font-size: 1.05em;
  line-height: 1.7;
  text-align: justify;
  color: #e0e0e0;
}

/* Security & Customer Service Section */
.page-index-security-cs-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.page-index-info-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index-info-item:last-child {
  margin-bottom: 0;
}

.page-index-info-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-index-info-item p {
  font-size: 1.05em;
  line-height: 1.7;
  text-align: justify;
}

.page-index-contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-index-contact-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: var(--text-dark);
}

.page-index-contact-list li strong {
  color: var(--secondary-color);
}

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

.page-index-faq-section .page-index-section-title {
  color: var(--primary-color);
}

.page-index-faq-section p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

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

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--primary-color);
}

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

.faq-item.active .faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.faq-question:hover {
  background: #3a5d5d; /* Slightly lighter secondary for hover */
}

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

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

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--accent-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(--bg-light);
  color: var(--text-dark);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

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

.faq-answer p {
  margin: 0;
  font-size: 1.05em;
  line-height: 1.7;
  text-align: justify;
}

/* Blog Section */
.page-index-blog-section {
  padding: 60px 0;
  background-color: var(--bg-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-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-index-blog-card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin: 20px 20px 10px;
  line-height: 1.4;
}

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

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

.page-index-blog-summary {
  font-size: 1em;
  color: var(--text-dark);
  margin: 0 20px 15px;
  flex-grow: 1;
  text-align: justify;
}

.page-index-read-more {
  display: inline-block;
  margin: 0 20px 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index-read-more:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-hero-title {
    font-size: 3em;
  }
  .page-index-hero-description {
    font-size: 1.2em;
  }
  .page-index-section-title {
    font-size: 2em;
  }
  .page-index-game-title, .page-index-promotion-title, .page-index-info-title {
    font-size: 1.6em;
  }
  .page-index-game-image {
    height: 300px;
  }
  .faq-question h3 {
    font-size: 1.15em;
  }
  .page-index-blog-card-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-index-hero-section {
    padding: 60px 15px;
  }
  .page-index-hero-title {
    font-size: 2.5em;
  }
  .page-index-hero-description {
    font-size: 1em;
  }
  .page-index-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-index-section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-index-container {
    padding: 15px;
  }
  .page-index-quick-links-grid {
    grid-template-columns: 1fr;
  }
  .page-index-game-image {
    height: 250px;
  }
  .page-index-game-title, .page-index-promotion-title, .page-index-info-title {
    font-size: 1.4em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.8em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-index-blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index-blog-card-title {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-index-hero-section {
    padding: 40px 10px;
  }
  .page-index-hero-title {
    font-size: 2em;
  }
  .page-index-hero-description {
    font-size: 0.9em;
  }
  .page-index-cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-index-section-title {
    font-size: 1.5em;
  }
  .page-index-game-image {
    height: 200px;
  }
  .page-index-game-title, .page-index-promotion-title, .page-index-info-title {
    font-size: 1.2em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .page-index-blog-card-title {
    font-size: 1.1em;
  }
}