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

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

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

.page-index__slider-item {
  min-width: 100%;
  display: block;
  text-decoration: none; /* Ensure the entire slide is clickable */
}

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

.page-index__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: #FFFFFF;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.page-index__hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #FFFFFF;
  max-width: 900px;
}

.page-index__hero-description {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 800px;
  line-height: 1.5;
  color: #FFFFFF;
}

.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(0, 0, 0, 0.5);
  color: #FFFFFF;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.page-index__slider-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.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: #FFFFFF;
}

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

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

.page-index__section-heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #1F2D3D;
  margin: 0 20px;
  text-align: center;
}

.page-index__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

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

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

.page-index__category-card img {
  width: 100%;
  height: 300px; /* Fixed height for vertical images */
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

.page-index__category-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1F2D3D;
}

.page-index__article-body {
  max-width: 900px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
  line-height: 1.7;
  font-size: 1.05rem;
  color: #1F2D3D;
}

.page-index__blockquote {
  border-left: 5px solid #2F6BFF;
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #000000;
  background-color: #E6F0FF;
  padding: 20px;
  border-radius: 8px;
}

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

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

.page-index__article-heading {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #000000;
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: center;
}

.page-index__article-subheading {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 600;
  color: #2F6BFF;
  margin-top: 35px;
  margin-bottom: 15px;
}

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

.page-index__article-body ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

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

.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 12px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

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

.page-index__align-center {
  text-align: center;
}

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index__btn--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.4);
}

.page-index__btn--primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.6);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-index__hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }
  .page-index__hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-index__hero-slider {
    padding-top: 0;
  }
  .page-index__hero-content {
    padding: 15px 20px;
  }
  .page-index__hero-content h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  .page-index__hero-description {
    font-size: 0.95rem;
  }
  .page-index__btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
  .page-index__category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__category-card img {
    height: 250px;
  }
  .page-index__article-body {
    font-size: 1rem;
    padding: 0 15px;
  }
  .page-index__article-heading {
    font-size: clamp(1.4rem, 4vw, 2rem);
  }
  .page-index__article-subheading {
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  }
  .page-index__title-line {
    max-width: 80px;
  }
  .page-index__section-heading {
    font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  }

  /* Enforce max-width for all images in content area on mobile */
  .page-index__hero-slider img,
  .page-index__category-card img,
  .page-index__article-figure img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-content {
    padding: 10px 15px;
  }
  .page-index__hero-content h1 {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }
  .page-index__hero-description {
    font-size: 0.9rem;
  }
  .page-index__category-grid {
    grid-template-columns: 1fr;
  }
  .page-index__category-card img {
    height: 200px;
  }
  .page-index__section-title-container {
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-index__title-line {
    max-width: 50px;
  }
  .page-index__section-heading {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }
}