/* style/index.css */
.page-index {
  color: #FFF3E6; /* Text Main from custom colors */
  background-color: #0D0E12; /* Background from custom colors */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll for the whole page */
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* As per rule, assuming shared.css handles body padding-top */
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Ensure no overflow */
}

.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-color: #0D0E12; /* Ensure consistent background */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

.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;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.page-index__product-card {
  width: 100%;
  max-width: 300px; /* Max width for each card */
  border-radius: 0;
  overflow: hidden;
  background: transparent; /* No background for cards */
  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;
  display: block;
  border-radius: 0; /* No border radius for images */
}

/* 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: #0D0E12; /* Ensure consistent background */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.page-index__section-title {
  margin: 0;
  font-size: clamp(1.1rem, 4.5vw, 1.75rem); /* Clamp font size for H1 */
  line-height: 1.35;
  color: #FFA53A; /* Auxiliary color for title */
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 165, 58, 0.5); /* Subtle glow */
}

.page-index__section-title-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background-color: #A84F0C; /* Border color from custom colors */
  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: #0D0E12; /* Ensure consistent background */
  color: #FFF3E6; /* Main text color */
}

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

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

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

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

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

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

.page-index__article-body a:hover {
  color: #FF8C1A; /* Primary 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 border-radius for content images */
}

.page-index__article-figure figcaption {
  margin-top: 10px;
  font-size: 0.9em;
  color: #CCC;
}

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

/* General button styles for the page-index */
.page-index a[class*="btn"],
.page-index a[class*="button"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient from custom colors */
  color: #FFF3E6; /* Text Main for button text */
  border: none;
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
  max-width: 100%; /* Ensure buttons adapt to container */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index a[class*="btn"]:hover,
.page-index a[class*="button"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 140, 26, 0.6);
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%); /* Slightly brighter on hover */
}

/* 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; /* Crucial for mobile HERO */
    max-height: none !important;
    display: block !important;
  }
}

/* Mobile responsive for all images and containers */
@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO Section (Mobile specific) */
  .page-index__hero-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 10px !important; /* Ensure 10px top padding for mobile */
    margin-top: 0;
  }

  /* Products Section (Mobile specific) */
  .page-index__products-section {
    padding: 40px 15px;
    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 x 3 rows */
    gap: 15px !important;
  }
  .page-index__product-card,
  .page-index__product-card-image {
    max-width: 100% !important;
  }

  /* Section Title (H1) (Mobile specific) */
  .page-index__section-title-wrap {
    padding: 20px 10px !important;
    gap: 10px !important;
  }
  .page-index__section-title {
    font-size: clamp(1.2rem, 5vw, 1.5rem) !important; /* Adjust clamp for mobile H1 */
  }
  .page-index__section-title-line {
    max-width: 40px !important;
  }

  /* Article Body (Long SEO Content) (Mobile specific) */
  .page-index__article-body {
    padding: 0 15px 32px !important; /* Adjust padding for mobile */
    font-size: 15px !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.4rem, 5.5vw, 1.6rem) !important; /* Adjust clamp for mobile H2 */
    margin: 1.5rem 0 0.8rem !important;
  }
  .page-index__article-body h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.3rem) !important; /* Adjust clamp for mobile H3 */
    margin: 1rem 0 0.6rem !important;
  }
  .page-index__article-figure {
    margin: 1rem auto !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;
  }
  .page-index__article-body ul {
    margin-left: 15px !important;
  }

  /* General images (Mobile specific) */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers (Mobile specific) */
  .page-index__section,
  .page-index__card,
  .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Buttons (Mobile specific) */
  .page-index a[class*="btn"],
  .page-index a[class*="button"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Button containers (Mobile specific) */
  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    display: flex !important;
    flex-direction: column !important;
  }
}