:root {
  --primary: #113B7A;
  --secondary: #1D5FD1;
  --Glow: #4FA8FF;
  --Gold: #F2C14E;
  --Border: #244D84;
  --Button: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --Card-BG: #10233F;
  --Divider: #1B3357;
  --Deep-Navy: #08162B;
  --Text-Main: #F3F8FF;
  --Text-Secondary: #AFC4E8;
}

.page-index {
  color: var(--Text-Main);
  background-color: var(--Deep-Navy);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* --- Module 1: HERO Section --- */
.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;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-index__hero-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
}

.page-index__hero-image {
  width: 100%;
  margin: 0;
  line-height: 0; /* Remove extra space below img */
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover; /* Default for desktop */
}

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

@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; /* Mobile: contain to prevent cropping */
    max-height: none !important;
    display: block !important;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }
}

/* --- Module 2: Product Display Section --- */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: var(--Deep-Navy);
}

.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;
}

.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;
  line-height: 0;
}

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

@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 */
    gap: 15px;
  }
  .page-index__product-card,
  .page-index__product-card-image {
    max-width: 100%; /* Ensure cards don't exceed mobile width */
  }
}

/* --- Module 3: Main Title Section --- */
.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: var(--Deep-Navy);
}

.page-index__section-title {
  margin: 0;
  font-size: clamp(1.1rem, 4.5vw, 1.75rem); /* Clamp for responsive H1 */
  line-height: 1.35;
  color: var(--Text-Main);
  font-weight: bold;
  text-shadow: 0 0 8px var(--Glow); /* Subtle glow for title */
}

.page-index__section-title-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  opacity: 0.6;
  background-color: var(--Divider);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .page-index__section-title-wrap {
    padding: 20px 15px;
    gap: 10px;
  }
  .page-index__section-title {
    font-size: clamp(1.1rem, 6vw, 1.5rem); /* Slightly larger clamp for mobile H1 */
  }
  .page-index__section-title-line {
    max-width: 40px;
  }
}

/* --- Module 4: Long SEO Article Body --- */
.page-index__article-body {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px;
  box-sizing: border-box;
  overflow-x: hidden;
  background-color: var(--Deep-Navy);
  color: var(--Text-Secondary);
}

.page-index__article-body h2 {
  margin: 2.5rem 0 1.25rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--Text-Main);
  font-weight: bold;
  text-shadow: 0 0 5px rgba(243, 248, 255, 0.1);
}

.page-index__article-body h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  color: var(--Gold); /* Use Gold for H3 */
  font-weight: 600;
}

.page-index__article-body p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.page-index__article-body a {
  color: var(--primary); /* Links use primary color */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-index__article-body a:hover {
  color: var(--Glow); /* Glow on hover */
}

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

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

.page-index__article-figure {
  margin: 2rem auto;
  max-width: 800px;
  text-align: center;
  background-color: var(--Card-BG);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.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: var(--Text-Secondary);
}

.page-index__article-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--Gold); /* Quote border uses Gold */
  background-color: var(--Card-BG); /* Quote background uses Card BG */
  color: var(--Text-Main);
  border-radius: 4px;
}

/* Button styling within article body */
.page-index__article-body .page-index__btn-primary,
.page-index__article-body .page-index__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  background: var(--Button); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__article-body .page-index__btn-primary:hover,
.page-index__article-body .page-index__btn-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

@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: 2rem 0 1rem;
  }
  .page-index__article-body h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.3rem);
    margin: 1.25rem 0 0.5rem;
  }
  .page-index__article-figure {
    margin: 1.5rem auto;
    padding: 8px;
  }
  .page-index__article-quote {
    padding: 0.8rem 1rem;
    margin: 1.2rem 0;
  }
  .page-index__article-body ul {
    margin-left: 15px;
  }
}

/* --- Generic Image and Button Responsive Rules (from requirements) --- */
/* All images basic responsive styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile forced adaptation for images */
@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__hero-section,
  .page-index__products-section,
  .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;
  }
  /* Remove specific padding for hero/products section if already handled by their own rules */
  .page-index__hero-section,
  .page-index__products-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* All buttons basic responsive styles */
.page-index__cta-button,
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index a[class*="button"],
.page-index a[class*="btn"],
.page-index__btn-link {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  display: inline-block; /* Ensure they behave like block for max-width */
  text-align: center;
}

/* Button containers basic responsive styles */
.page-index__cta-buttons,
.page-index__button-group,
.page-index__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile forced adaptation for buttons */
@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"],
  .page-index__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Add padding to buttons themselves */
    padding-right: 15px;
  }
  
  /* Button containers mobile adaptation */
  .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; /* Allow multiple buttons to wrap */
    gap: 10px;
    display: flex; /* Ensure flex context for wrap */
    flex-direction: column; /* Often better for mobile button groups */
  }
}