.page-index {
  padding-bottom: 20px;
  max-width: 1390px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
  padding-left: 15px;
  padding-right: 15px;
}

/* Hero Slider Section */
.page-index__hero-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
  padding-top: 10px; /* Small top padding to avoid header overlap */
}

.page-index__hero-slider {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  aspect-ratio: 16/5; /* Base aspect ratio for 1920x600 */
}

.page-index__slide {
  flex: 0 0 100%;
  width: 100%;
  transition: transform 0.5s ease-in-out;
  display: none;
}

.page-index__slide--active {
  display: block;
}

.page-index__hero-slider img {
  width: 100%;
  height: auto; /* Ensure aspect ratio is maintained */
  display: block;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16/5; /* Fallback for image loading */
}

.page-index__slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
}

.page-index__slider-prev, .page-index__slider-next {
  background-color: rgba(0, 0, 0, 0.5);
  color: #F3F8FF;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 5px;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.page-index__slider-prev:hover, .page-index__slider-next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

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

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

.page-index__dot--active {
  background-color: #F2C14E;
}

.page-index__hero-cta-container {
  text-align: center;
  margin-top: 20px;
}

.page-index__hero-cta-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__hero-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Title */
.page-index__section-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  gap: 20px;
}

.page-index__divider {
  flex-grow: 1;
  height: 2px;
  background-color: #1B3357;
  max-width: 200px;
}

.page-index__main-title {
  color: #F3F8FF;
  text-align: center;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 800px; /* Prevent title from being too wide */
  font-size: clamp(1.7rem, 4.5vw, 2.5rem); /* Responsive font size */
}

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

.page-index__category-gateway {
  display: flex;
  flex-direction: column; /* Default to column on mobile */
  gap: 12px;
}

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

.page-index__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background-color: #10233F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

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

.page-index__category-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/25; /* 3:5 aspect ratio for vertical images */
  object-fit: cover;
  display: block;
  filter: grayscale(100%); /* Grayscale on desktop by default */
  transition: filter 0.3s ease;
}

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

.page-index__category-name {
  color: #F3F8FF;
  font-weight: bold;
  padding: 10px;
  text-align: center;
  font-size: 1rem;
  width: 100%;
  background-color: rgba(16, 35, 63, 0.8); /* Slightly darker background for text */
  position: absolute;
  bottom: 0;
  left: 0;
}

/* Article Body */
.page-index__article-body {
  background-color: #10233F;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: #AFC4E8;
  line-height: 1.7;
  font-size: 1rem;
}

.page-index__article-body a {
  color: #4FA8FF;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

.page-index__blockquote p {
  margin: 0;
}

.page-index__article-heading {
  color: #F3F8FF;
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__article-subheading {
  color: #F3F8FF;
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__article-body p {
  margin-bottom: 15px;
}

.page-index__article-body ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: #AFC4E8;
}

.page-index__article-body ul li {
  margin-bottom: 8px;
}

.page-index__article-body strong {
  color: #F3F8FF;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-index__main-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  .page-index__divider {
    max-width: 100px;
  }
  .page-index__article-heading {
    font-size: 1.6rem;
  }
  .page-index__article-subheading {
    font-size: 1.2rem;
  }
  .page-index__category-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-index__hero-slider img {
    aspect-ratio: 16/7; /* Adjust aspect ratio for smaller screens */
  }
}

@media (max-width: 549px) {
  .page-index {
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-index__section-title-container {
    flex-direction: column;
    gap: 10px;
  }
  .page-index__divider {
    width: 80%;
    max-width: 100%;
  }
  .page-index__main-title {
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }
  .page-index__category-row {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on very small screens */
  }
  .page-index__category-name {
    font-size: 0.9rem;
  }
  .page-index__article-body {
    padding: 20px;
  }
  .page-index__article-heading {
    font-size: 1.4rem;
  }
  .page-index__article-subheading {
    font-size: 1.1rem;
  }
  .page-index__hero-slider img {
    aspect-ratio: 16/9; /* Further adjust for mobile */
  }
  .page-index__hero-cta-button {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

/* Ensure images in content area are not too small on mobile */
@media (max-width: 768px) {
  .page-index img {
    max-width: 100%;
    height: auto; /* Important for preventing overflow */
  }
  .page-index__category-card img {
    min- /* Ensure category images are not too small */
    min-height: 235px; /* Maintain aspect ratio */
  }
  .page-index__article-figure img {
    min-width: 200px;
    min- /* Example, adjust as needed */
  }
}

/* Specific min-width for content images to adhere to 200px minimum */
.page-index__article-figure img, .page-index__article-body img {
  min-width: 200px;
  min- /* Assuming 4:3 or similar aspect for general content images */
}

.page-index__category-card img {
  min- /* Approx 200px equivalent for 16:25 aspect ratio */
  min-height: 200px;
}