.page-index {
  background-color: #140C0C;
  color: #FFF1E8;
  padding-bottom: 40px;
  overflow-x: hidden;
}

.page-index__hero-section {
  margin: 0;
  padding-top: 10px; /* Small padding to avoid content touching header, body handles main offset */
}

.page-index__hero-link {
  display: block;
  width: 100%;
}

.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;
  filter: none; /* Ensure no filters are applied */
}

.page-index__section-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 15px;
}

.page-index__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFF1E8;
  text-align: center;
  margin: 0 20px;
  max-width: 800px;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem); /* Adjusted for better desktop/mobile balance */
}

.page-index__title-divider {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(to right, #6A1E1E, #E53030, #6A1E1E);
  max-width: 150px;
}

.page-index__category-gateway-section {
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 15px;
}

.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;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #2A1212; /* Card background */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-index__category-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: none; /* Absolutely no grayscale or color filters */
  transition: transform .2s ease;
}

.page-index__category-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-index__category-card:hover img {
  transform: scale(1.03);
  filter: brightness(1.05); /* Slight brightness change on hover */
}

.page-index__article-body-section {
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 15px;
}

.page-index__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__blockquote {
  border-left: 5px solid #E53030;
  padding: 15px 20px;
  margin: 30px 0;
  background-color: #2A1212;
  color: #FFF1E8;
  font-style: italic;
  line-height: 1.6;
}

.page-index__blockquote a {
  color: #F3C54D;
  text-decoration: none;
  font-weight: bold;
}

.page-index__blockquote a:hover {
  text-decoration: underline;
}

.page-index__article-heading {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #FFF1E8;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.page-index__article-subheading {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  color: #F3C54D;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.page-index__paragraph {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #FFF1E8;
  text-align: justify;
}

.page-index__paragraph a {
  color: #F3C54D;
  text-decoration: none;
  font-weight: bold;
}

.page-index__paragraph a:hover {
  text-decoration: underline;
}

.page-index__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #FFF1E8;
}

.page-index__list-item {
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-index__list-item strong {
  color: #F3C54D;
}

.page-index__list-item a {
  color: #F3C54D;
  text-decoration: none;
}

.page-index__list-item a:hover {
  text-decoration: underline;
}

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

.page-index__article-figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  filter: none;
  margin: 0 auto;
}

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

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

@media (max-width: 768px) {
  .page-index__main-title {
    font-size: clamp(1.5rem, 6vw, 2rem); /* Slightly larger on smaller screens for impact */
  }
  .page-index__title-divider {
    max-width: 80px;
  }
  .page-index__paragraph {
    text-align: left;
  }
  .page-index__article-figure img {
    max-width: 100%;
    height: auto;
  }
  .page-index__container {
    padding: 0;
  }
  .page-index__hero-banner img,
  .page-index__article-figure img,
  .page-index__category-card img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-index__article-body-section,
  .page-index__category-gateway-section,
  .page-index__section-title-container {
    padding: 0 12px;
  }
}

/* Ensure content area images are never too small */
.page-index__article-body-section img, 
.page-index__category-gateway-section img {
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 549px) {
  .page-index__paragraph {
    text-align: left;
  }
}

.page-index__paragraph strong {
  color: #F3C54D;
}

.page-index__article-body-section .page-index__paragraph:last-of-type a {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: opacity 0.3s ease;
}

.page-index__article-body-section .page-index__paragraph:last-of-type a:hover {
  opacity: 0.9;
  text-decoration: none;
}