/* style/index.css */

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

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

.page-index__heading {
  font-size: 38px;
  font-weight: 700;
  color: #E0B14A;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-index__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0;
}

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

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

.page-index__highlight {
  color: #E0B14A;
  font-weight: 600;
}

.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-index__btn-primary {
  background-color: #E0B14A;
  color: #0A2463;
  border-color: #E0B14A;
}

.page-index__btn-primary:hover {
  background-color: #ffd700;
  border-color: #ffd700;
  color: #0A2463;
}

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

.page-index__btn-secondary:hover {
  background-color: #E0B14A;
  color: #0A2463;
}

/* Adjust padding for fixed header */
.page-index__introduction-section {
  padding-top: 120px; /* Desktop fixed header compensation */
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.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: #f8f8f8; /* Lighter background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-index__products-section .page-index__heading {
  color: #0A2463;
}

.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: #ffffff;
  border: 3px solid #E0B14A; /* Golden border */
  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;
}

/* Introduction Section (Dark Background) */
.page-index__introduction-section {
  background-color: var(--dark-bg-1);
  color: #ffffff;
  padding-bottom: 60px;
}

.page-index__introduction-section .page-index__heading {
  color: #E0B14A;
}

.page-index__introduction-section .page-index__btn-primary {
  display: block;
  margin: 30px auto 0 auto;
  max-width: 250px;
}

/* Quick Access Section (Light Background) */
.page-index__quick-access-section {
  background-color: #f0f0f0;
  color: #333333;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-index__quick-access-section .page-index__heading {
  color: #0A2463;
}

.page-index__quick-access-section .page-index__paragraph {
  color: #555555;
}

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

.page-index__quick-link-card {
  display: block;
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
}

.page-index__quick-link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: #E0B14A;
}

.page-index__quick-link-title {
  font-size: 20px;
  font-weight: 700;
  color: #0A2463;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-index__quick-link-description {
  font-size: 15px;
  color: #666666;
  margin-bottom: 0;
}

/* Games Section (Dark Background) */
.page-index__games-section {
  background-color: var(--dark-bg-1);
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-index__games-section .page-index__heading {
  color: #E0B14A;
}

.page-index__games-section .page-index__paragraph {
  color: #f0f0f0;
  text-align: center;
}

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

.page-index__game-category {
  background-color: #1a3a70; /* Slightly lighter dark for card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(224, 177, 74, 0.3);
}

.page-index__game-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index__game-category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__game-category-title {
  font-size: 22px;
  font-weight: 700;
  color: #E0B14A;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-index__game-category-description {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 25px;
  padding: 0 15px;
}

.page-index__game-category .page-index__btn-secondary {
  margin-top: auto;
}

/* Promotions Section (Light Background) */
.page-index__promotions-section {
  background-color: #f8f8f8;
  color: #333333;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-index__promotions-section .page-index__heading {
  color: #0A2463;
}

.page-index__promotions-section .page-index__paragraph {
  color: #555555;
  text-align: center;
}

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

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

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

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

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

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

/* Security & Support Section (Dark Background) */
.page-index__security-support-section {
  background-color: var(--dark-bg-1);
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-index__security-support-section .page-index__heading {
  color: #E0B14A;
}

.page-index__security-support-section .page-index__paragraph {
  color: #f0f0f0;
  text-align: center;
}

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

.page-index__feature-item {
  background-color: #1a3a70;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid rgba(224, 177, 74, 0.3);
}

.page-index__feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #E0B14A;
  margin-bottom: 10px;
}

.page-index__feature-description {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 0;
}

.page-index__btn-contact {
  margin-top: 50px;
  display: block;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section (Light Background) */
.page-index__faq-section {
  background-color: #f0f0f0;
  color: #333333;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-index__faq-section .page-index__heading {
  color: #0A2463;
}

.page-index__faq-section .page-index__paragraph {
  color: #555555;
  text-align: center;
}

.page-index__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.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; /* Use !important to ensure priority */
  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: #ffffff;
  border: 1px solid #e0e0e0;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

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

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

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: #0A2463;
  transform: rotate(45deg);
}

/* Blog Section (Dark Background) */
.page-index__blog-section {
  background-color: var(--dark-bg-1);
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-index__blog-section .page-index__heading {
  color: #E0B14A;
}

.page-index__blog-section .page-index__paragraph {
  color: #f0f0f0;
  text-align: center;
}

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

.page-index__blog-post-card {
  background-color: #1a3a70;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(224, 177, 74, 0.3);
}

.page-index__blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__blog-post-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

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

.page-index__blog-post-title {
  font-size: 20px;
  font-weight: 700;
  color: #E0B14A;
  margin-bottom: 10px;
}

.page-index__blog-post-title a {
  color: #E0B14A;
  text-decoration: none;
}

.page-index__blog-post-title a:hover {
  text-decoration: underline;
}

.page-index__blog-post-meta {
  font-size: 13px;
  color: #cccccc;
  margin-bottom: 10px;
}

.page-index__blog-post-excerpt {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-index__read-more-link {
  display: inline-block;
  color: #E0B14A;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-index__read-more-link:hover {
  color: #ffd700;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack product grids vertically */
  }
  .page-index__products-grid--small {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-index__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__heading {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-index__container {
    padding: 30px 15px;
  }
  .page-index__heading {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-index__paragraph {
    font-size: 15px;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
  }
  .page-index__introduction-section {
    padding-top: 100px; /* Mobile fixed header compensation */
  }
  .page-index__products-section {
    padding: 40px 15px;
  }
  /* Front 4 images - 4-square grid (2x2), square aspect ratio */
  .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; /* Square */
  }
  .page-index__products-grid--small .page-index__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }
  /* Back 2 large images - each on new line, square aspect ratio */
  .page-index__products-grid--large {
    grid-template-columns: 1fr; /* Each card takes full width */
    gap: 15px;
  }
  .page-index__products-grid--large .page-index__product-card {
    aspect-ratio: 1 / 1; /* Square */
  }
  .page-index__products-grid--large .page-index__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }
  .page-index__game-categories,
  .page-index__promo-cards,
  .page-index__features-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__quick-link-title {
    font-size: 18px;
  }
  .page-index__game-category-title,
  .page-index__promo-card-title,
  .page-index__feature-title,
  .page-index__blog-post-title {
    font-size: 18px;
  }
  .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 responsive adaptation */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}