.page-index {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
  padding-top: 10px; /* Small top padding for the first section, body handles --header-offset */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.page-index__wrapper {
  max-width: 1390px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Hero Section */
.page-index__hero-section {
  width: 100%;
  margin-bottom: 30px;
}

.page-index__hero-banner {
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.page-index__hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/5; /* 1920x600 */
  object-fit: cover;
  object-position: center;
}

/* Section Title */
.page-index__section-title-container {
  text-align: center;
  margin-bottom: 40px;
}

.page-index__main-title {
  font-family: 'Arial', sans-serif; /* Example font */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F2FFF6; /* Text Main */
  margin: 0;
  padding: 0 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.8rem, 4vw, 2.8rem); /* Adjusted clamp for H1 */
}

/* Category Gateway */
.page-index__category-gateway-section {
  margin-bottom: 50px;
}

.page-index__category-gateway {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr); /* Mobile default: 3 rows x 2 columns */
}

.page-index__category-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  transition: transform .2s ease, box-shadow .2s ease;
}

.page-index__category-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.5); /* Glow */
}

.page-index__category-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: none; /* Prohibit grayscale */
  transition: filter .2s ease;
  min-width: 200px; /* Ensure minimum size for category images */
  min-height: 200px; /* Ensure minimum size for category images */
}

/* Article Body */
.page-index__article-body-section {
  padding-bottom: 60px;
}

.page-index__article-content {
  line-height: 1.8;
  font-size: 16px;
  color: #F2FFF6; /* Text Main */
}

.page-index__article-heading {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: #F2C14E; /* Gold for main headings */
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.page-index__article-subheading {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: #57E38D; /* Glow for subheadings */
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.page-index__article-content p {
  margin-bottom: 1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: left; /* Explicitly left-aligned for better mobile readability and compliance */
}

.page-index__article-content ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
  color: #A7D9B8; /* Text Secondary */
}

.page-index__article-content ul li {
  margin-bottom: 0.5em;
}

.page-index__blockquote {
  border-left: 5px solid #F2C14E; /* Gold */
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #F2FFF6; /* Text Main */
  background-color: #0A4B2C; /* Deep Green */
  padding: 20px;
  border-radius: 5px;
}

.page-index__article-figure {
  margin: 30px auto;
  text-align: center;
  max-width: 800px; /* Example max-width for content images */
}

.page-index__article-figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin: 0 auto;
  border: 1px solid #2E7A4E; /* Border */
  min-width: 200px; /* Enforce minimum size for article images */
  min- /* Maintain aspect ratio, but ensure minimum height */
}

.page-index__article-figure figcaption {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-top: 10px;
}

.page-index__aligncenter {
  text-align: center;
}

.page-index__article-content a {
  color: #2AD16F; /* A vibrant green for links */
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-index__article-content a:hover {
  color: #13994A; /* Darker green on hover */
}

/* Buttons */
.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  margin-top: 15px;
  margin-bottom: 20px;
}

.page-index__btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
}

/* Responsive adjustments */
@media (min-width: 850px) {
  .page-index__category-gateway {
    grid-template-columns: repeat(6, 1fr); /* PC: one row of 6 */
  }
}

@media (max-width: 768px) {
  .page-index__wrapper {
    padding: 0 12px; /* Minimum 12px padding for mobile */
  }

  .page-index__hero-banner img {
    aspect-ratio: 16/9; /* Slightly taller on mobile */
  }

  .page-index__main-title {
    font-size: clamp(1.1rem, 4.5vw, 1.75rem); /* H1 clamp as specified */
  }

  .page-index__article-content img {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and don't overflow */
  }

  .page-index__article-content table {
    overflow-x: auto;
    display: block;
    width: 100%;
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
  }
}