.page-index {
  background-color: #F4F7FB;
  color: #1F2D3D;
}

.page-index__hero-slider {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small padding to avoid being flush with header, body handles main offset */
  margin-bottom: 40px;
}

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

.page-index__hero-slider img {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
}

.page-index__slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-index__slider-arrow {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 18px;
}

.page-index__slider-arrow--prev::before {
  content: '‹';
}

.page-index__slider-arrow--next::before {
  content: '›';
}

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

.page-index__slider-dot {
  width: 10px;
  height: 10px;
  background-color: #D6E2FF;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index__slider-dot--active {
  background-color: #2F6BFF;
}

.page-index__section-title-container {
  text-align: center;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.page-index__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1F2D3D;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-index__grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.page-index__category-card {
  display: block;
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #1F2D3D;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  padding-bottom: 20px;
}

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

.page-index__category-card img {
  width: 100%;
  height: 300px; /* Example fixed height for category cards, will be responsive */
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-index__category-card:hover img {
  transform: scale(1.05);
}

.page-index__category-label {
  display: block;
  text-align: center;
  font-weight: 600;
  font-size: 1.1em;
  padding: 15px 10px 0;
  color: #2F6BFF;
}

.page-index__article-body {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 20px;
  line-height: 1.8;
  font-size: 1.05em;
}

.page-index__blockquote {
  border-left: 4px solid #2F6BFF;
  padding-left: 20px;
  margin: 40px 0;
  font-style: italic;
  color: #1F2D3D;
  background-color: #D6E2FF50;
  padding: 20px;
  border-radius: 8px;
}

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

.page-index__article-heading {
  font-weight: 700;
  color: #1F2D3D;
  margin-top: 50px;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-index__article-subheading {
  font-weight: 600;
  color: #2F6BFF;
  margin-top: 35px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-index__article-body p,
.page-index__article-body ul {
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-index__article-body ul {
  list-style: disc inside;
  padding-left: 20px;
}

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

.page-index__article-body a {
  color: #2F6BFF;
  text-decoration: none;
}

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

.page-index__article-figure {
  margin: 40px 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.1);
  min-width: 200px;
  min-height: 200px;
}

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

@media (max-width: 768px) {
  .page-index__hero-slider {
    margin-bottom: 20px;
  }

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

  .page-index__grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-index__category-card img {
    height: 200px; /* Adjust height for mobile */
  }

  .page-index__category-label {
    font-size: 1em;
    padding: 10px 5px 0;
  }

  .page-index__article-body {
    margin: 40px auto;
    padding: 0 15px;
    font-size: 1em;
  }

  .page-index__article-heading {
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-index__article-subheading {
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-index__article-body img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-index__grid-container {
    grid-template-columns: 1fr;
  }
  .page-index__slider-arrow {
    width: 25px;
    height: 25px;
    font-size: 16px;
  }
  .page-index__slider-dot {
    width: 8px;
    height: 8px;
  }
}

/* Ensure all images in content area are responsive and not too small */
.page-index img {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }
}