/* style/index.css */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--dark-bg-1);
}

.page-index__section {
  padding: 80px 20px;
  position: relative;
}

.page-index__dark-section {
  background-color: #1A202C;
  color: #ffffff;
}

.page-index__light-bg {
  background-color: #f9f9f9;
  color: #333333;
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-index__heading {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #FFD700;
}

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

.page-index__text {
  font-size: 18px;
  margin-bottom: 25px;
  line-height: 1.8;
}

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

.page-index__text--small {
  font-size: 15px;
  opacity: 0.8;
}

.page-index__highlight {
  color: #FFD700;
  font-weight: bold;
}

.page-index__link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__link:hover {
  color: #ffd700cc;
  text-decoration: underline;
}

.page-index__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-index__cta-buttons--center {
  justify-content: center;
}

.page-index__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}

.page-index__btn--primary {
  background-color: #FFD700;
  color: #1A202C;
  border-color: #FFD700;
}

.page-index__btn--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-index__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-index__btn--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
}

.page-index__grid {
  display: grid;
  gap: 30px;
}

.page-index__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-index__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 100px; /* Adjust for fixed header */
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-index__hero-image {
  width: 100%;
  margin: 0;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Product Showcase Section */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #1A202C;
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr;
  gap: 20px;
}

.page-index__products-grid {
  display: grid;
  gap: 20px;
}

.page-index__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-index__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-index__product-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 3px solid #FFD700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-index__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index__product-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.page-index__product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Module 1: Homepage Introduction */
.page-index__introduction {
  padding-top: 120px; /* Adjust for fixed header */
}

/* Module 2: Quick Access Links */
.page-index__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-index__card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1A202C;
}

.page-index__card-title .page-index__link {
  color: #1A202C;
}

.page-index__card-title .page-index__link:hover {
  color: #FFD700;
}

.page-index__card-text {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
}

/* Module 3: Core Games/Services */
.page-index__game-category {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__game-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 2px solid #FFD700;
}

.page-index__game-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-index__game-description {
  font-size: 16px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Module 4: Promotions */
.page-index__promo-card {
  background: #ffffff;
  color: #333333;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index__promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-index__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 2px solid #FFD700;
}

.page-index__promo-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1A202C;
}

.page-index__promo-description {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Module 5: Security & Customer Service */
.page-index__feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
}

.page-index__feature-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-index__feature-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* Module 6: FAQ Section */
.page-index__faq-list {
  margin-top: 40px;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A202C;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-index__faq-question:hover {
  background: #2a3447;
  border-color: #FFD700;
}

.page-index__faq-question:active {
  background: #3a4457;
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700;
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg);
}

/* Module 7: Latest Blog Content */
.page-index__latest-blog .page-index__heading {
  color: #FFD700;
}

.page-index__blog-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-index__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid #FFD700;
}

.page-index__blog-title {
  font-size: 20px;
  font-weight: 600;
  margin: 20px 20px 10px;
  color: #FFD700;
}

.page-index__blog-title .page-index__link {
  color: #FFD700;
}

.page-index__blog-title .page-index__link:hover {
  color: #ffd700cc;
}

.page-index__blog-excerpt {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 20px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-index__blog-date {
  font-size: 13px;
  color: #aaaaaa;
  padding: 0 20px 20px;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__heading {
    font-size: 32px;
  }
  .page-index__text {
    font-size: 17px;
  }
  .page-index__products-container {
    grid-template-columns: 1fr;
  }
  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-index__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index__section {
    padding: 60px 15px;
  }
  .page-index__hero-section {
    padding-top: 80px; /* Mobile adjust for fixed header */
  }
  .page-index__introduction {
    padding-top: 80px; /* Mobile adjust for fixed header */
  }
  .page-index__heading {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-index__text {
    font-size: 16px;
    margin-bottom: 15px;
  }
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .page-index__btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-index__products-section {
    padding: 40px 15px;
  }
  .page-index__products-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-index__products-grid--small .page-index__product-card {
    aspect-ratio: 1 / 1;
  }
  .page-index__products-grid--small .page-index__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }
  .page-index__products-grid--large {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-index__products-grid--large .page-index__product-card {
    aspect-ratio: 1 / 1;
  }
  .page-index__products-grid--large .page-index__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }
  .page-index__grid--3-cols {
    grid-template-columns: 1fr;
  }
  .page-index__grid--2-cols {
    grid-template-columns: 1fr;
  }
  .page-index__game-image, .page-index__promo-image, .page-index__blog-image {
    height: 180px;
  }
  .page-index__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-index__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-index__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-index__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-index__faq-answer {
    padding: 0 15px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image forced responsive styles */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__product-card,
  .page-index__game-category,
  .page-index__promo-card,
  .page-index__feature-card,
  .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__products-section .page-index__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-index__products-grid--small .page-index__product-card,
  .page-index__products-grid--large .page-index__product-card {
    padding-left: 0;
    padding-right: 0;
  }
}