.page-index {
  background-color: #F4F7FB;
  color: #1F2D3D;
  padding-top: 10px; /* Small top padding for the first section */
}

.page-index__hero-slider-section {
  margin-bottom: 20px;
}

.page-index__hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.page-index__slide {
  width: 100%;
  flex: 0 0 100%;
  display: none;
}

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

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

.page-index__slider-nav {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.page-index__slider-button {
  background-color: rgba(47, 107, 255, 0.7);
  border: none;
  color: #FFFFFF;
  font-size: 24px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-index__slider-button:hover {
  background-color: #2F6BFF;
}

.page-index__slider-dots {
  display: flex;
  gap: 8px;
}

.page-index__slider-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__slider-dot--active {
  background-color: #A5C4FF;
}

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

.page-index__title-line {
  flex-grow: 1;
  height: 2px;
  background-color: #D6E2FF;
  margin: 0 15px;
  max-width: 150px;
}

.page-index__main-title {
  font-size: clamp(1.1rem, 4.5vw, 1.75rem);
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  line-height: 1.3;
  max-width: 600px;
}

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

.page-index__category-gateway {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.page-index__category-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  background-color: #FFFFFF;
}

.page-index__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.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;
}

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

.page-index__article-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 15px 60px 15px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__article-body h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: #2F6BFF;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.page-index__article-body h3 {
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  color: #1F2D3D;
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-index__article-body p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #1F2D3D;
}

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

.page-index__article-body ul li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.page-index__blockquote {
  border-left: 4px solid #6FA3FF;
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #1F2D3D;
  background-color: #F4F7FB;
  padding: 15px 20px;
  border-radius: 4px;
}

.page-index__blockquote p {
  margin-bottom: 0;
}

.page-index__blockquote a {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
}

.page-index__blockquote 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;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  min-width: 200px; /* Ensure min width for content images */
  min-height: 200px; /* Ensure min height for content images */
}

.page-index__article-figure figcaption {
  font-size: 14px;
  color: #6FA3FF;
  margin-top: 10px;
}

.page-index__text-link {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 500;
}

.page-index__text-link:hover {
  text-decoration: underline;
}

.page-index__text-link--promo {
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-index__section-title-container {
    margin: 30px auto;
  }

  .page-index__title-line {
    max-width: 80px;
  }

  .page-index__category-gateway {
    flex-direction: column;
  }

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

@media (max-width: 768px) {
  .page-index__hero-slider img {
    aspect-ratio: 16/9; /* Slightly taller on mobile */
  }

  .page-index__main-title {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    padding: 0 10px;
  }

  .page-index__category-gateway-section {
    padding: 15px;
  }

  .page-index__category-row {
    grid-template-columns: repeat(3, 1fr); /* Keep 3 columns as per demo */
    gap: 8px;
  }

  .page-index__article-body {
    padding: 15px;
  }

  .page-index__article-body img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min size on mobile */
    min-height: 200px;
  }
}

@media (max-width: 549px) {
  .page-index__section-title-container {
    margin: 20px auto;
  }

  .page-index__title-line {
    max-width: 40px;
  }

  .page-index__main-title {
    font-size: clamp(1rem, 6vw, 1.5rem);
  }

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

  .page-index__article-body h2 {
    font-size: clamp(1.2rem, 4.5vw, 1.7rem);
  }

  .page-index__article-body h3 {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
  }

  .page-index__article-body p, .page-index__article-body ul li {
    font-size: 15px;
  }

  .page-index__blockquote {
    padding: 10px 15px;
    margin: 20px 0;
  }

  .page-index__slider-button {
    font-size: 20px;
    padding: 3px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-index__hero-slider-section {
    animation: none;
  }
  .page-index__slide {
    transition: none;
  }
}