/* 🚨 Fixed Header Spacing: If shared.css sets body padding-top, hero section should only have ~10px top padding. */
.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: var(--header-offset) */
  margin-top: 0;
  background-color: #FFFFFF;
}

.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;
  object-fit: cover;
}

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

/* 🚨 Mobile HERO main image (max-width: 849px) - Must use object-fit: contain */
@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;
  }
}

/* 🚨 Mobile responsive for HERO section (max-width: 768px) */
@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 10px !important;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
    padding-bottom: 0;
  }
}

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

.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 in one row */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__product-card {
  width: 100%;
  max-width: 300px; /* Each card max width */
  border-radius: 0; /* No border-radius */
  overflow: hidden;
  background: transparent;
  box-shadow: none; /* No box-shadow */
  transition: transform 0.3s ease;
  justify-self: center; /* Center cards in grid cells */
}

.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; /* Image container max width */
  overflow: hidden;
}

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

/* 🚨 Mobile responsive for Products Section (max-width: 768px) */
@media (max-width: 768px) {
  .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 x 3 rows */
    gap: 15px;
  }
  .page-index__product-card,
  .page-index__product-card-image {
    max-width: 100%;
  }
}

/* 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;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-index__section-title-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background-color: #26A9E0;
  opacity: 0.6;
}

/* 🚨 Mobile responsive for Section Title Wrap (max-width: 768px) */
@media (max-width: 768px) {
  .page-index__section-title-wrap {
    padding: 20px 10px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .page-index__section-title {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    max-width: 100%;
  }
  .page-index__section-title-line {
    max-width: 40px;
    height: 1px;
  }
}

/* Article Body (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: #FFFFFF;
  color: #333333;
  line-height: 1.6;
}

.page-index__article-body h2 {
  margin: 2rem 0 1rem;
  color: #26A9E0;
  font-size: 1.8rem;
  font-weight: 700;
}

.page-index__article-body h3 {
  margin: 1.25rem 0 0.75rem;
  color: #333333;
  font-size: 1.4rem;
  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-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 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__article-figure figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.page-index__article-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #26A9E0; /* Brand color border */
  background-color: #f5faff; /* Light background for quote */
  font-style: italic;
  color: #333333;
  font-size: 1.1rem;
}

/* Buttons within article */
.page-index__btn-link {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background-color: #EA7C07; /* Login/Register color */
  color: #FFFFFF;
}

.page-index__btn-primary:hover {
  background-color: #d16b06;
}

/* 🚨 Mobile responsive for Article Body (max-width: 768px) */
@media (max-width: 768px) {
  .page-index__article-body {
    padding: 0 15px 32px;
    font-size: 16px;
  }
  .page-index__article-body h2 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }
  .page-index__article-body h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.25rem);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  .page-index__article-figure {
    margin: 1rem auto;
  }
  .page-index__article-figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__article-quote {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }
  .page-index__btn-link {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 12px 15px;
  }
}

/* General responsive for all images and containers (max-width: 768px) */
@media (max-width: 768px) {
  .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,
  .page-index__article-body,
  .page-index__section-title-wrap {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Reset padding for full-width sections that manage their own inner padding */
  .page-index__hero-section,
  .page-index__products-section {
      padding-left: 0;
      padding-right: 0;
  }
}

/* Buttons and Button Containers (max-width: 768px) */
@media (max-width: 768px) {
  .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;
    gap: 10px;
  }
  
  .page-index__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical stacking */
  }
}

/* Color Contrast Fallback (if needed, though primary colors are good) */
.page-index {
  color: #333333; /* Default text color for light body background */
}