.page-index {
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #F4F7FB;
  color: #1F2D3D;
}

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

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

.page-index__slider-item {
  min-width: 100%;
  display: block;
}

.page-index__slider-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum image size */
}

.page-index__slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 8px;
}

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

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

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

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

.page-index__main-title {
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #000000;
  margin: 0;
  max-width: 600px;
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size */
}

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

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

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

.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: 350px; /* Fixed height for category images */
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  min-height: 200px; /* Ensure minimum image size */
}

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

.page-index__category-label {
  padding: 15px;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  color: #000000;
}

.page-index__article-body {
  margin: 40px auto;
  max-width: 1000px;
  padding: 0 20px;
  line-height: 1.7;
  font-size: 1rem;
}

.page-index__content-wrapper {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

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

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

.page-index__heading {
  font-size: 2rem;
  font-weight: 700;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-index__sub-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-index__article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 200px; /* Ensure minimum image size */
}

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

.page-index__numbered-list, .page-index__bullet-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 0;
}

.page-index__numbered-list li {
  margin-bottom: 10px;
  color: #1F2D3D;
}

.page-index__numbered-list li a {
  color: #2F6BFF;
  text-decoration: none;
}

.page-index__bullet-list li {
  margin-bottom: 10px;
  color: #1F2D3D;
}

.page-index__bullet-list li strong {
  color: #000000;
}

.page-index__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
}

.page-index__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.4);
}

.page-index__button--secondary {
  background: #6FA3FF;
  color: #FFFFFF;
}

.page-index__button--secondary:hover {
  background: #4A8BFF;
  box-shadow: 0 4px 10px rgba(111, 163, 255, 0.4);
}

@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }

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

  .page-index__category-card img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-slider {
    padding-top: 0;
  }

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

  .page-index__section-title-container {
    margin: 30px auto;
    padding: 0 15px;
  }

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

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

  .page-index__category-card img {
    height: 250px;
  }

  .page-index__category-label {
    font-size: 1.1rem;
    padding: 10px;
  }

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

  .page-index__content-wrapper {
    padding: 20px;
  }

  .page-index__heading {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-index__sub-heading {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-index__article-figure img {
    max-width: 100%;
    height: auto; /* ensure images scale correctly */
  }

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

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__button {
    width: 100%;
  }
}

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

  .page-index__category-card img {
    height: 200px;
  }

  .page-index__line {
    display: none;
  }
}