/* Base styles for the page-index scope */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background: var(--background-color, #B71C1C); /* Fallback to Background color if var not defined */
}

/* Module 1: HERO Main Image Area */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* As per fixed header spacing rule */
  margin-top: 0;
  background: #B71C1C; /* Background */
}

.page-index__hero-container {
  position: relative;
  margin: 0 auto;
}

.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;
  }
}
@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;
  }
}
@media (max-width: 768px) {
  .page-index__hero-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 10px !important;
    margin-top: 0;
  }
}

/* Module 2: Product Display Image Area */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  background: #B71C1C; /* 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;
  justify-self: center; /* Center cards in their grid cell */
}

.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; /* Max width for image container */
  overflow: hidden;
}

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

@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%; /* Ensure mobile cards don't exceed container */
  }
}

/* Module 3: Centered Decorative Main Title */
.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: #B71C1C; /* Background */
}
.page-index__section-title {
  margin: 0;
  font-size: clamp(1.1rem, 4.5vw, 1.75rem);
  line-height: 1.35;
  color: #FFF5E1; /* Text Main */
  font-weight: 700;
}
.page-index__section-title-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: #F2B544; /* Border color for lines */
  opacity: 0.8;
}
@media (max-width: 768px) {
  .page-index__section-title-wrap {
    padding: 20px 10px;
  }
  .page-index__section-title-line {
    max-width: 40px;
  }
  .page-index__section-title {
    font-size: clamp(1rem, 6vw, 1.5rem); /* Adjust clamp for smaller screens */
    white-space: normal; /* Allow text to wrap */
  }
}

/* Module 4: Long SEO Body (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;
  background: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
}
.page-index__article-body h2 {
  margin: 2rem 0 1rem;
  color: #F4D34D; /* Gold for main headings */
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
}
.page-index__article-body h3 {
  margin: 1.25rem 0 0.75rem;
  color: #FFCC66; /* Glow for subheadings */
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 600;
}
.page-index__article-body p,
.page-index__article-body ul,
.page-index__article-body li {
  color: #FFF5E1; /* Text Main */
  font-size: 1rem;
  margin-bottom: 1em;
}
.page-index__article-body a {
  color: #FFD86A; /* Button gradient start color for links */
  text-decoration: underline;
}
.page-index__article-body a:hover {
  color: #E6B800; /* Button gradient end color for links */
}
.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: 8px; /* Slight round for content images */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.page-index__article-figure figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: #FFCC66; /* Glow for captions */
  margin-top: 8px;
}
.page-index__article-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #F2B544; /* Border color */
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  font-style: italic;
  border-radius: 4px;
}
.page-index__article-quote a {
  color: #FFD86A;
}

/* General images responsive styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Buttons (general style for consistency, specific styles handled by shared.css if defined, or use custom) */
.page-index a.page-index__cta-button,
.page-index a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red for button text */
  border: 1px solid #F2B544; /* Border color */
}

.page-index a.page-index__cta-button:hover,
.page-index a[class*="btn"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive for article body, general images, and buttons */
@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index__article-body {
    padding: 0 15px 32px;
    font-size: 16px;
    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.25rem, 5vw, 1.5rem);
    margin: 1.5rem 0 0.8rem;
  }
  .page-index__article-body h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.3rem);
    margin: 1rem 0 0.6rem;
  }
  .page-index__article-figure {
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  .page-index__article-figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__article-figure figcaption {
    font-size: 0.85em;
  }
  .page-index__article-quote {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
  }

  /* General images responsive styles for mobile */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Button responsive styles for mobile */
  .page-index__cta-button,
  .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;
  }
}