/* General styles for the page-index scope */
.page-index {
  color: #F2FFF6; /* Text Main */
  background: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  margin-top: 0;
  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;
  }
}

/* Products Section */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  background: #08160F; /* 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 for each card */
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.page-index__product-card-image {
  width: 100%;
  max-width: 300px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Centered Decorative 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: #F2FFF6; /* Text Main */
  background: #08160F; /* Background */
}

.page-index__section-title {
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem); /* Adjusted for H1, within range 50-60 chars */
  line-height: 1.35;
  color: #F2FFF6; /* Text Main */
  font-weight: 700;
}

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

/* Long SEO Article Body */
.page-index__article-body {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px 48px;
  box-sizing: border-box;
  overflow-x: hidden;
  color: #F2FFF6; /* Text Main */
  background: #08160F; /* Background */
}

.page-index__article-body h2 {
  margin: 2rem 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: #F2FFF6; /* Text Main */
  font-weight: 700;
}

.page-index__article-body h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: #A7D9B8; /* Text Secondary */
  font-weight: 600;
}

.page-index__article-body p {
  margin-bottom: 1em;
  font-size: 1.1rem;
  color: #F2FFF6; /* Text Main */
}

.page-index__article-body ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1em;
  color: #F2FFF6; /* Text Main */
}

.page-index__article-body ul li {
  margin-bottom: 0.5em;
  color: #F2FFF6; /* Text Main */
}

.page-index__article-body a {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

.page-index__article-body a:hover {
  color: #2AD16F; /* Button top gradient color */
}

.page-index__article-figure {
  margin: 1.5rem auto;
  max-width: 800px;
  text-align: center;
  background: #11271B; /* Card BG */
  padding: 15px;
  border-radius: 8px;
}

.page-index__article-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.page-index__article-figure figcaption {
  margin-top: 10px;
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
}

.page-index__article-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #F2C14E; /* Gold */
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

/* CTA Buttons */
.page-index__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-index__btn-primary,
.page-index__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-index__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-index__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
}

.page-index__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  color: #2AD16F; /* Button top gradient color */
  border-color: #2AD16F; /* Button top gradient color */
}

/* Text link within article body for promotions */
.page-index__text-link {
  color: #F2C14E; /* Gold */
  text-decoration: underline;
}

.page-index__text-link:hover {
  color: #F2FFF6; /* Text Main */
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
/* HERO main image object-fit for smaller screens */
@media (max-width: 849px) {
  .page-index__hero-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: unset !important;
    object-fit: contain !important; /* Prevent cropping */
    max-height: none !important;
    display: block !important;
  }
}

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

  /* HERO Section */
  .page-index__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .page-index__hero-container,
  .page-index__hero-image {
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-index__hero-image img {
    padding: 0 5px;
    box-sizing: border-box;
  }

  /* Products Section */
  .page-index__products-section {
    padding: 40px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
    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 x 3 rows */
    gap: 15px !important;
  }
  .page-index__product-card,
  .page-index__product-card-image {
    max-width: 100% !important; /* Ensure cards fill grid cells */
  }
  .page-index__product-card-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  /* Centered Decorative H1 */
  .page-index__section-title-wrap {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__section-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem) !important; /* Adjusted clamp for mobile H1 */
    padding: 0 5px;
  }
  .page-index__section-title-line {
    max-width: 40px !important;
  }

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

  /* CTA Buttons */
  .page-index__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px !important; /* Add padding to container */
  }
  .page-index__btn-primary,
  .page-index__btn-secondary {
    max-width: 100% !important;
    width: 100% !important; /* Ensure buttons take full width */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }

  /* Generic image and container rules for mobile */
  .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;
  }
}