/* General styles for the page-index scope */
.page-index {
  color: #FFF6D6; /* Text Main color for dark background */
  background-color: #0A0A0A; /* Background color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Small top padding, main offset handled by body */
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

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

@media (min-width: 850px) {
  .page-index__hero-image img {
    aspect-ratio: 16/5;
    object-fit: cover;
  }
}

/* Mobile: prevent cropping for hero image */
@media (max-width: 849px) {
  .page-index__hero-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__hero-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: unset !important;
    object-fit: contain !important;
    max-height: none !important;
    display: block !important;
  }
}

/* Products Section (Gameshow Grid) */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: #0A0A0A; /* Ensure consistency with body background */
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.page-index__products-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(6, 1fr); /* Desktop: 6 columns */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__product-card {
  width: 100%;
  max-width: 300px; /* Max width per card */
  border-radius: 0;
  overflow: hidden;
  background: transparent; /* No card background */
  box-shadow: none; /* No shadow */
  transition: transform 0.3s ease;
}

.page-index__product-card:hover {
  transform: translateY(-3px);
}

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

.page-index__product-card-image {
  width: 100%;
  max-width: 300px; /* Max width for image container */
  overflow: hidden;
}

.page-index__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
  border-radius: 0; /* No rounded corners */
}

/* Section Title (H1) */
.page-index__section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  padding: 24px 12px;
  box-sizing: border-box;
  text-align: center;
  background-color: #0A0A0A; /* Ensure consistency with body background */
}
.page-index__section-title {
  margin: 0;
  font-size: clamp(1.1rem, 4.5vw, 1.75rem); /* Responsive font size */
  line-height: 1.35;
  color: #FFF6D6; /* Text Main color */
  font-weight: bold;
}
.page-index__section-title-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background-color: #3A2A12; /* Border color */
  opacity: 0.6;
}

/* Article Body (Long SEO Content) */
.page-index__article-body {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px 48px;
  box-sizing: border-box;
  overflow-x: hidden;
  background-color: #0A0A0A; /* Ensure consistency with body background */
  color: #FFF6D6; /* Text Main color */
}
.page-index__article-body h2 {
  margin: 2rem 0 1rem;
  color: #F2C14E; /* Primary color for headings */
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: bold;
}
.page-index__article-body h3 {
  margin: 1.25rem 0 0.75rem;
  color: #FFD36B; /* Glow color for subheadings */
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: bold;
}
.page-index__article-body p {
  margin-bottom: 1em;
}
.page-index__article-body ul {
  margin-bottom: 1em;
  padding-left: 20px;
}
.page-index__article-body li {
  margin-bottom: 0.5em;
}
.page-index__article-figure {
  margin: 1.5rem auto;
  max-width: 800px;
  text-align: center;
}
.page-index__article-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
.page-index__article-figure figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: rgba(255, 246, 214, 0.8); /* Lighter Text Main */
  margin-top: 0.5rem;
}
.page-index__article-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #F2C14E; /* Primary color for quote border */
  background-color: #111111; /* Card BG color */
  color: #FFF6D6; /* Text Main color */
  font-style: italic;
}
.page-index__article-quote a {
  color: #FFD36B; /* Glow color for links in quote */
  text-decoration: none;
}
.page-index__article-quote a:hover {
  text-decoration: underline;
}

/* Links in article body */
.page-index__article-body a {
  color: #FFD36B; /* Glow color for general links */
  text-decoration: none;
}
.page-index__article-body a:hover {
  text-decoration: underline;
}

/* Primary Button in article body (for final CTA) */
.page-index__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for bright button */
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-index__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 211, 107, 0.4); /* Glow effect */
}

/* Responsive styles for Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* General page adjustments */
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO section */
  .page-index__hero-section {
    padding-top: 10px !important; /* Ensure small top padding on mobile */
    padding-left: 0;
    padding-right: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Products section */
  .page-index__products-section {
    padding: 40px 15px !important; /* Smaller padding */
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .page-index__products-container,
  .page-index__products-grid {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .page-index__products-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Mobile: 2 columns */
    gap: 15px !important;
  }
  .page-index__product-card,
  .page-index__product-card-image {
    max-width: 100% !important;
  }
  .page-index__product-card-image img {
    width: 100% !important;
    height: auto !important;
  }

  /* Section Title (H1) */
  .page-index__section-title-wrap {
    padding: 20px 10px !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__section-title {
    font-size: clamp(1.25rem, 5vw, 1.5rem) !important; /* Adjust font size */
    line-height: 1.4 !important;
  }
  .page-index__section-title-line {
    max-width: 40px !important; /* Shorter lines */
    height: 1px !important;
  }
}
}