.page-index {
  color: var(--Text-Main, #F3F8FF); /* Default text color for the page */
  background-color: var(--Deep-Navy, #08162B); /* Assuming body background is dark */
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Assuming shared.css sets body padding-top */
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}

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

.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; /* Desktop default */
  aspect-ratio: 16/5; /* Desktop default */
}

/* Products Section */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: var(--Card-BG, #10233F); /* Darker background for product section */
}

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

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

/* Decorative H1 Section */
.page-index__section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  padding: 48px 12px;
  box-sizing: border-box;
  text-align: center;
  background-color: var(--Card-BG, #10233F); /* Consistent background */
}

.page-index__section-title {
  margin: 0;
  font-size: clamp(1.1rem, 4.5vw, 1.75rem); /* Responsive font size */
  line-height: 1.35;
  color: var(--Text-Main, #F3F8FF);
  font-weight: 700;
}

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

/* Article Body Section */
.page-index__article-body {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 48px; /* Added top padding */
  box-sizing: border-box;
  overflow-x: hidden;
  color: var(--Text-Secondary, #AFC4E8); /* Lighter text for main body */
  background-color: var(--Deep-Navy, #08162B); /* Dark background */
  line-height: 1.6;
}

.page-index__article-body h2 {
  margin: 2.5rem 0 1.25rem;
  font-size: 1.8rem;
  color: var(--Text-Main, #F3F8FF);
  font-weight: 700;
  line-height: 1.4;
}

.page-index__article-body h3 {
  margin: 1.5rem 0 0.85rem;
  font-size: 1.4rem;
  color: var(--Text-Main, #F3F8FF);
  font-weight: 600;
  line-height: 1.4;
}

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

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

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

.page-index__article-body a {
  color: var(--Glow, #4FA8FF); /* Link color */
  text-decoration: underline;
}

.page-index__article-body a:hover {
  color: var(--Gold, #F2C14E);
}

.page-index__article-figure {
  margin: 2rem auto;
  max-width: 800px;
  text-align: center;
}

.page-index__article-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__article-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--Text-Secondary, #AFC4E8);
}

.page-index__article-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 5px solid var(--Glow, #4FA8FF);
  background-color: var(--Card-BG, #10233F);
  border-radius: 4px;
  font-style: italic;
  color: var(--Text-Main, #F3F8FF);
}

/* Buttons */
.page-index__btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Custom button gradient */
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  min-width: 150px;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-index__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-index__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  background: transparent;
  color: var(--Glow, #4FA8FF);
  border: 2px solid var(--Glow, #4FA8FF);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 150px;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-index__btn-secondary:hover {
  background: var(--Glow, #4FA8FF);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-index__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 3rem;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* General images (for article body) */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-index__products-grid {
    gap: 15px;
  }
  .page-index__section-title {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }
  .page-index__article-body {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__article-body h2 {
    font-size: 1.6rem;
  }
  .page-index__article-body h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 849px) { /* HERO specific media query for object-fit */
  .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) {
  /* HERO Section */
  .page-index__hero-section {
    padding-top: 10px !important; /* Ensure 10px top padding on mobile */
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__hero-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  /* Products Section */
  .page-index__products-section {
    padding: 40px 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__products-container {
    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;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__product-card,
  .page-index__product-card-image {
    max-width: 100%;
  }
  .page-index__product-card-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  /* Decorative H1 Section */
  .page-index__section-title-wrap {
    padding: 30px 15px;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-index__section-title {
    font-size: clamp(1.25rem, 5vw, 1.5rem); /* Adjusted clamp for mobile H1 */
    line-height: 1.4;
  }
  .page-index__section-title-line {
    max-width: 40px;
  }

  /* Article Body Section */
  .page-index__article-body {
    padding: 30px 15px 30px;
    font-size: 16px;
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__article-body h2 {
    font-size: clamp(1.5rem, 6vw, 1.7rem);
    margin: 2rem 0 1rem;
  }
  .page-index__article-body h3 {
    font-size: clamp(1.2rem, 5vw, 1.4rem);
    margin: 1.25rem 0 0.75rem;
  }
  .page-index__article-figure {
    margin: 1.5rem auto;
  }
  .page-index__article-figure img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .page-index__article-quote {
    padding: 1rem 1.25rem;
  }

  /* Buttons */
  .page-index__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .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;
  }

  /* General Images */
  .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;
  }
}