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

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-index__hero-slider {
  padding-top: 10px;
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
}

.page-index__slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.page-index__slider-link {
  display: block;
  width: 100%;
  height: auto;
}

.page-index__slider-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

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

.page-index__slider-arrow: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 {
  margin-bottom: 50px;
  text-align: center;
}

.page-index__section-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.page-index__line {
  flex-grow: 1;
  height: 2px;
  background-color: #D6E2FF;
  max-width: 150px;
}

.page-index__main-title {
  color: #1F2D3D;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 600px;
  font-size: clamp(2rem, 4vw, 2.5rem); /* Using clamp for responsive h1 font-size */
}

.page-index__category-gateway {
  margin-bottom: 60px;
}

.page-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.page-index__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #1F2D3D;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 15px;
}

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

.page-index__category-image {
  width: 100%;
  height: 250px; /* Approximate 3:5 aspect ratio for 180px width */
  object-fit: cover;
  border-bottom: 1px solid #D6E2FF;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.page-index__category-card:hover .page-index__category-image {
  transform: scale(1.03);
}

.page-index__category-label {
  margin-top: 15px;
  font-weight: 600;
  font-size: 1.1em;
  text-align: center;
}

.page-index__article-body {
  padding-bottom: 60px;
  background-color: #FFFFFF;
}

.page-index__article-content {
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-index__blockquote {
  background-color: #F4F7FB;
  border-left: 5px solid #2F6BFF;
  padding: 20px 30px;
  margin: 30px 0;
  font-style: italic;
  color: #1F2D3D;
  line-height: 1.6;
  border-radius: 4px;
}

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

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

.page-index__article-heading {
  color: #2F6BFF;
  font-size: 2em;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-index__article-subheading {
  color: #1F2D3D;
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__paragraph {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #1F2D3D;
}

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

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

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

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

.page-index__aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__article-image {
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%; /* Ensure it respects container width */
  min-width: 200px; /* Minimum width for content images */
  min-height: 200px; /* Minimum height for content images */
}

.page-index__figcaption {
  font-size: 0.9em;
  color: #6FA3FF;
  margin-top: 10px;
}

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

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

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

  .page-index__main-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    max-width: 90%;
  }

  .page-index__section-title-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .page-index__line {
    max-width: 80px;
  }

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

  .page-index__category-image {
    height: 180px;
  }

  .page-index__article-heading {
    font-size: 1.7em;
  }

  .page-index__article-subheading {
    font-size: 1.3em;
  }

  .page-index__article-content {
    padding: 20px 15px;
  }

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

  .page-index__article-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small on mobile */
    min-height: 200px;
  }

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

@media (max-width: 480px) {
  .page-index__grid {
    grid-template-columns: 1fr;
  }

  .page-index__category-image {
    height: 220px;
  }

  .page-index__slider-arrow {
    padding: 8px 12px;
    font-size: 16px;
  }
}