/* General styles for the page-index scope */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  line-height: 1.6;
  font-size: 17px;
}

/* HERO Section (Module 1) */
.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;
  background-color: #0D0E12; /* Ensure consistent background */
}

.page-index__hero-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.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; /* Desktop aspect ratio */
    object-fit: cover;
  }
}

/* Product Showcase Section (Module 2) */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: #0D0E12; /* Background */
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden; /* Prevent horizontal scroll */
  box-sizing: border-box;
}

.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; /* No border-radius */
  overflow: hidden;
  background: transparent; /* No background color */
  box-shadow: none; /* No box-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;
  overflow: hidden;
}

.page-index__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0; /* No border-radius for images */
}

/* Centered Decorative H1 (Module 3) */
.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: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
}

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

.page-index__section-title-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  opacity: 0.6;
  background-color: #A84F0C; /* Border color */
}

/* Long SEO Article Body (Module 4) */
.page-index__article-body {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px; /* Adjusted padding for better visual */
  box-sizing: border-box;
  overflow-x: hidden;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
}

.page-index__article-body h2 {
  margin: 2rem 0 1rem;
  color: #FF8C1A; /* Primary color for H2 */
  font-size: 1.8rem;
  font-weight: 600;
}

.page-index__article-body h3 {
  margin: 1.25rem 0 0.75rem;
  color: #FFA53A; /* Secondary color for H3 */
  font-size: 1.4rem;
  font-weight: 500;
}

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

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

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

.page-index__article-body a {
  color: #FFA53A; /* Secondary color for links */
  text-decoration: underline;
}

.page-index__article-body a:hover {
  color: #FFB04D; /* Glow color on hover */
}

.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;
  border-radius: 5px; /* Slight radius for article images */
}

.page-index__article-figure figcaption {
  font-size: 0.9em;
  color: rgba(255, 243, 230, 0.7); /* Lighter text for caption */
  margin-top: 0.5em;
}

.page-index__article-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #FF8C1A; /* Primary color for quote border */
  background-color: #17191F; /* Card BG */
  border-radius: 4px;
  color: #FFF3E6; /* Text Main */
}

.page-index__article-body .highlight {
  color: #FFB04D; /* Glow color for highlights */
  font-weight: bold;
}

/* CTA Button styles */
.page-index__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom Button gradient */
  color: #ffffff; /* White text for primary button */
  border: none;
}

.page-index__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4); /* Glow effect on hover */
}

/* Mobile responsive styles */
@media (max-width: 849px) { /* Adjust breakpoint for hero image specifically */
  .page-index__hero-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding-top: 10px !important; /* Ensure 10px top padding for mobile */
  }
  .page-index__hero-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: unset !important; /* Prevent cropping */
    object-fit: contain !important; /* Ensure full image is visible */
    max-height: none !important;
    display: block !important;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-index {
    font-size: 16px;
    line-height: 1.5;
  }

  /* HERO Section (Module 1) - already handled by 849px breakpoint */

  /* Product Showcase Section (Module 2) */
  .page-index__products-section {
    padding: 40px 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__products-container,
  .page-index__products-grid {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    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%;
  }
  .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Centered Decorative H1 (Module 3) */
  .page-index__section-title-wrap {
    padding: 20px 10px;
    gap: 10px;
  }
  .page-index__section-title {
    font-size: clamp(1rem, 6vw, 1.5rem);
  }
  .page-index__section-title-line {
    max-width: 40px;
  }

  /* Long SEO Article Body (Module 4) */
  .page-index__article-body {
    padding: 0 15px 32px;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .page-index__article-body h2 {
    font-size: clamp(1.4rem, 5vw, 1.6rem);
    margin: 1.5rem 0 0.8rem;
  }
  .page-index__article-body h3 {
    font-size: clamp(1.2rem, 4.5vw, 1.3rem);
    margin: 1rem 0 0.6rem;
  }
  .page-index__article-figure {
    max-width: 100%;
  }
  .page-index__article-figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Universal image responsive styles for mobile */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__products-section,
  .page-index__products-container,
  .page-index__products-grid
  {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Remove specific padding for elements that might be inside a section with padding */
  .page-index__hero-section,
  .page-index__products-section,
  .page-index__section-title-wrap,
  .page-index__article-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Button responsive styles for mobile */
  .page-index__cta-button,
  .page-index__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Ensure internal padding for text */
    padding-right: 15px; /* Ensure internal padding for text */
  }
  .page-index__cta-buttons, /* If there were multiple buttons in a container */
  .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;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}