.page-index {
  background-color: #0A0A0A;
  color: #FFF6D6;
  padding-bottom: 20px;
  overflow-x: hidden;
}

/* Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-index__slider-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.page-index__slide {
  min-width: 100%;
  flex: 0 0 100%;
  position: relative;
}

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

.page-index__hero-cta {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  white-space: nowrap;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-index__slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #FFF6D6;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 5;
  font-size: 1.5rem;
  border-radius: 4px;
}

.page-index__slider-nav--prev {
  left: 10px;
}

.page-index__slider-nav--next {
  right: 10px;
}

.page-index__slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.page-index__slider-dots::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  z-index: -1;
}

.page-index__slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index__slider-dots button.is-active {
  background-color: #F2C14E;
}

/* Section Title */
.page-index__section-title {
  text-align: center;
  padding: 20px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto 30px auto;
  gap: 20px;
}

.page-index__main-title {
  color: #F2C14E;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 600px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(1.5rem, 4.5vw, 2.5rem); /* Increased max size slightly for impact */
}

.page-index__title-divider {
  flex-grow: 1;
  height: 2px;
  background-color: #3A2A12;
  max-width: 150px;
}

/* Category Gateway */
.page-index__category-gateway {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column; /* Default for mobile */
  gap: 15px;
}

.page-index__category-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.page-index__category-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background-color: #111111;
  border: 1px solid #3A2A12;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-index__category-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/25;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  min-width: 200px; /* Enforce min size for content images */
  min-height: 200px; /* Enforce min size for content images */
}

.page-index__category-card:hover img {
  filter: grayscale(0%);
}

/* Article Body */
.page-index__article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px 40px 15px;
  line-height: 1.8;
  font-size: 1rem;
}

.page-index__article-body p {
  margin-bottom: 1.2em;
  color: #FFF6D6;
}

.page-index__article-body a {
  color: #F2C14E;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__article-body a:hover {
  color: #FFD36B;
  text-decoration: underline;
}

.page-index__blockquote {
  border-left: 5px solid #F2C14E;
  padding-left: 20px;
  margin: 25px 0;
  font-style: italic;
  color: #FFD36B;
  background-color: #111111;
  padding: 15px 20px;
  border-radius: 5px;
}

.page-index__article-heading {
  color: #F2C14E;
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-index__article-subheading {
  color: #FFD36B;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 500;
}

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

.page-index__list li {
  margin-bottom: 8px;
}

.page-index__list li strong {
  color: #F2C14E;
}

.page-index__article-figure {
  margin: 30px 0;
  text-align: center;
}

.page-index__article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Enforce min size for content images */
  min-height: 200px; /* Enforce min size for content images */
}

.page-index__article-figure figcaption {
  margin-top: 10px;
  font-size: 0.9em;
  color: #FFD36B;
}

/* Responsive adjustments */
@media (min-width: 850px) {
  .page-index__category-gateway {
    flex-direction: row;
    gap: 20px;
  }
  .page-index__category-row {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .page-index__main-title {
    font-size: clamp(1.1rem, 4.5vw, 1.75rem);
    max-width: 90%;
  }
  .page-index__title-divider {
    max-width: 50px;
  }
  .page-index__hero-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .page-index__article-body img {
    max-width: 100%;
    height: auto;
  }
  .page-index__article-body table {
    width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-index__category-card img {
    filter: grayscale(0%); /* Disable grayscale on mobile for better visibility */
  }
}

@media (max-width: 549px) {
  .page-index__section-title {
    flex-wrap: wrap;
    gap: 10px;
  }
  .page-index__main-title {
    width: 100%;
  }
  .page-index__title-divider {
    display: none;
  }
  .page-index__category-row {
    grid-template-columns: repeat(2, 1fr); /* Adjust to 2 columns for smaller mobiles if 3 columns become too small */
  }
  .page-index__article-body {
    padding: 0 10px 30px 10px;
  }
  .page-index__blockquote {
    font-size: 0.95rem;
  }
}

@media (max-width: 320px) {
  .page-index__category-row {
    grid-template-columns: 1fr; /* Stack categories on very small screens */
  }
  .page-index__hero-cta {
    font-size: 0.8rem;
    padding: 8px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-index__slider-container {
    transition: none !important;
  }
}