/* style/index.css */

/* Base styles for the page content */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Matching body background */
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-index__section-dark {
  background-color: #0d0d0d; /* Slightly lighter dark for sections */
  color: #ffffff;
}

.page-index__section-light {
  background-color: #1a1a1a; /* Even lighter dark for contrast */
  color: #f0f0f0;
}

.page-index__heading {
  font-size: 36px;
  font-weight: 700;
  color: #ffd700; /* Golden yellow for headings */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-index__text {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

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

/* Buttons */
.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: none;
}

.page-index__btn-primary {
  background-color: #007bff;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.page-index__btn-primary:hover {
  background-color: #0056b3;
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
  transform: translateY(-2px);
}

.page-index__btn-secondary {
  background-color: #ffd700;
  color: #000000;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.page-index__btn-secondary:hover {
  background-color: #e6c200;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.page-index__btn-small {
  padding: 8px 18px;
  font-size: 14px;
}

.page-index__btn-large {
  padding: 15px 30px;
  font-size: 18px;
}

.page-index__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-index__button-group--center {
  text-align: center;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

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

.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); /* Slightly visible card background */
  border: 3px solid #ffd700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4 / 3; /* Maintain aspect ratio for desktop */
}

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

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

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

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

/* Introduction Section (First content module) */
.page-index__introduction-section {
  padding-top: 120px;
}

/* Quick Access Section */
.page-index__link-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-index__link-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-index__link-card-content {
  display: block;
  padding: 25px;
  text-decoration: none;
  color: #ffffff;
}

.page-index__link-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffd700;
}

.page-index__link-card-description {
  font-size: 15px;
  color: #f0f0f0;
  opacity: 0.9;
}

/* Games Section */
.page-index__game-category {
  margin-bottom: 60px;
}

.page-index__game-title {
  font-size: 28px;
  color: #007bff; /* Blue for game titles */
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-index__game-content-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
}

.page-index__game-content-wrapper:nth-child(odd) {
  flex-direction: row-reverse; /* Alternate image/text layout */
}

.page-index__game-image {
  flex: 1;
  max-width: 50%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-index__game-description {
  flex: 1;
  max-width: 50%;
}

.page-index__game-description .page-index__text {
  text-align: left;
}

/* Promotions Section */
.page-index__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-index__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.page-index__promo-card-description {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 15px;
}

/* Security & Support Section */
.page-index__security-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
  text-align: center;
}

.page-index__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
}

.page-index__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-index__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 10px;
}

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

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

.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;
  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: #1a1a1a;
  border-radius: 0 0 5px 5px;
}

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

.page-index__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffd700;
}

.page-index__faq-question:active {
  background: rgba(255, 255, 255, 0.15);
}

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

.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: #007bff;
  transform: rotate(45deg);
}

/* Blog Section */
.page-index__blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-index__blog-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-index__blog-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-index__blog-card-title a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-card-title a:hover {
  color: #007bff;
}

.page-index__blog-card-summary {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 15px;
}

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

/* Call to Action Section */
.page-index__call-to-action-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #007bff;
  color: #ffffff;
}

.page-index__call-to-action-content .page-index__heading {
  color: #ffffff;
}

.page-index__call-to-action-content .page-index__text {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 18px;
}

/* Copyright */
.page-index__copyright {
  background-color: #000;
  color: #aaaaaa;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__heading {
    font-size: 32px;
  }

  .page-index__game-content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-index__game-content-wrapper:nth-child(odd) {
    flex-direction: column;
  }

  .page-index__game-image,
  .page-index__game-description {
    max-width: 100%;
  }

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

  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack product grids */
  }
  
  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid for small */
  }
  
  .page-index__products-grid--large {
    grid-template-columns: repeat(2, 1fr); /* 1x2 grid for large on larger tablets */
  }
}

@media (max-width: 768px) {
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__section-dark,
  .page-index__section-light,
  .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__introduction-section {
    padding-top: 100px;
  }

  .page-index__heading {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-index__text {
    font-size: 16px;
  }

  .page-index__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__btn {
    width: 100%;
  }

  .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__link-cards-grid,
  .page-index__promo-cards-grid,
  .page-index__security-features-grid,
  .page-index__blog-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .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;
  }

  .page-index__game-title {
    font-size: 24px;
  }

  .page-index__game-image {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-index__heading {
    font-size: 24px;
  }
  .page-index__text {
    font-size: 15px;
  }
  .page-index__link-card-title,
  .page-index__promo-card-title,
  .page-index__blog-card-title {
    font-size: 18px;
  }
  .page-index__feature-title {
    font-size: 20px;
  }
}