.page-index {
  color: #FFF3E6; /* Main text color for dark background */
  background: #0D0E12; /* Explicitly set main background */
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Assuming shared.css handles body padding-top */
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}

.page-index__hero-container {
  position: relative;
  margin: 0 auto;
  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;
  }
}

/* Products Section */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
}

.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;
  justify-items: center; /* Center cards in grid cells */
}

.page-index__product-card {
  width: 100%;
  max-width: 300px; /* Max width for each card */
  border-radius: 0; /* No rounded corners */
  overflow: hidden;
  background: transparent; /* No background color */
  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; /* Ensure image container respects max-width */
  overflow: hidden;
}

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

/* Section Title Wrap (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;
  color: #FFF3E6; /* Ensure title is light */
}

.page-index__section-title {
  margin: 0;
  font-size: clamp(1.1rem, 4.5vw, 1.75rem); /* Responsive font size */
  line-height: 1.35;
  color: #FFF3E6; /* Ensure H1 text is light */
  font-weight: 700;
}

.page-index__section-title-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background-color: #FFA53A; /* Use accent color for line */
  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;
  line-height: 1.7;
  color: #FFF3E6; /* Main text color for article body */
}

.page-index__article-body h2 {
  margin: 2rem 0 1rem;
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  color: #FF8C1A; /* Use primary color for h2 */
  font-weight: 700;
}

.page-index__article-body h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: clamp(1.2rem, 5vw, 1.7rem);
  color: #FFA53A; /* Use secondary color for h3 */
  font-weight: 600;
}

.page-index__article-body p {
  margin-bottom: 1rem;
}

.page-index__article-body ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1rem;
}

.page-index__article-body li {
  margin-bottom: 0.5rem;
}

.page-index__article-body a {
  color: #FFA53A; /* Links in article body */
  text-decoration: underline;
}

.page-index__article-figure {
  margin: 1.5rem auto;
  max-width: 800px;
  text-align: center;
  width: 100%;
}

.page-index__article-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Slightly rounded corners for article images */
}

.page-index__article-figure figcaption {
  font-style: italic;
  font-size: 0.9em;
  margin-top: 0.5rem;
  color: #FFF3E6; /* Light color for captions */
}

.page-index__article-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #FFA53A; /* Accent border for quote */
  background: rgba(255, 165, 58, 0.1); /* Light background for quote */
  color: #FFF3E6;
  font-style: italic;
  border-radius: 4px;
}

/* Buttons within article body (if any, general styling) */
.page-index__article-body .page-index__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  margin-top: 1rem;
  cursor: pointer;
}

.page-index__article-body .page-index__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #A84F0C 100%);
}

/* Responsive Styles */
/* Mobile: HERO section */
@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; /* Mobile: prevent cropping */
    max-height: none !important;
    display: block !important;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-index__hero-section {
    padding-top: 10px !important; /* Ensure 10px top padding on mobile */
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Products Section */
  .page-index__products-section {
    padding: 40px 15px; /* Adjust padding for mobile */
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
    box-sizing: border-box;
  }
  .page-index__products-container,
  .page-index__products-grid {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
    box-sizing: border-box;
  }
  .page-index__products-grid {
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 columns */
    gap: 15px;
  }
  .page-index__product-card,
  .page-index__product-card-image {
    max-width: 100%; /* Ensure cards don't exceed container */
  }

  /* Section Title Wrap (H1) */
  .page-index__section-title-wrap {
    padding: 20px 15px;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__section-title {
    font-size: clamp(1.2rem, 5vw, 1.5rem); /* Adjust H1 font size for mobile */
    word-break: break-word; /* Allow long words to break */
    white-space: normal; /* Allow text to wrap */
  }
  .page-index__section-title-line {
    max-width: 40px; /* Shorten decorative lines on mobile */
  }

  /* Article Body (Long SEO Content) */
  .page-index__article-body {
    padding: 0 15px 32px; /* Adjust padding for mobile */
    font-size: 16px; /* Base font size for mobile */
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__article-body h2 {
    font-size: clamp(1.25rem, 5vw, 1.5rem); /* Adjust h2 font size */
  }
  .page-index__article-body h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.3rem); /* Adjust h3 font size */
  }
  .page-index__article-figure {
    max-width: 100%; /* Ensure article images are responsive */
  }
  .page-index__article-figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* All images in content area for mobile */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All containers for mobile */
  .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;
  }

  /* Buttons and button containers for mobile */
  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* Allow buttons to wrap */
    gap: 10px;
  }
  .page-index__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}