.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%; /* Ensure container takes full width */
}

.page-index__slide {
  min-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

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

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

.page-index__prev-btn, .page-index__next-btn {
  background-color: rgba(47, 107, 255, 0.7);
  border: none;
  color: #FFFFFF;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
  min-width: 44px; /* WCAG touch target */
  min-height: 44px;
}

.page-index__prev-btn::before {
  content: '‹';
}

.page-index__next-btn::before {
  content: '›';
}

.page-index__prev-btn:hover, .page-index__next-btn:hover {
  background-color: #2F6BFF;
}

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

.page-index__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__dot.page-index__dot--active {
  background-color: #2F6BFF;
}

.page-index__hero-cta-button {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  z-index: 10;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
  min-width: 150px;
  text-align: center;
}

.page-index__hero-cta-button:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

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

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

.page-index__main-title {
  color: #1F2D3D;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 600px; /* Constraint H1 font size visually */
}

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

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

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

.page-index__category-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 5; /* Approx 3:5 vertical ratio */
  object-fit: cover;
  transition: transform 0.3s ease;
  min-height: 200px; /* Minimum image size for cards */
}

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

.page-index__category-label {
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 15px;
  text-align: center;
  color: #1F2D3D;
}

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

.page-index__blockquote {
  border-left: 5px solid #2F6BFF;
  padding: 15px 25px;
  margin: 30px 0;
  background-color: #FFFFFF;
  border-radius: 8px;
  font-style: italic;
  color: #000000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

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

.page-index__article-heading {
  color: #2F6BFF;
  font-size: 2em;
  margin-top: 50px;
  margin-bottom: 25px;
  font-weight: bold;
  line-height: 1.3;
}

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

.page-index__article-body p {
  margin-bottom: 1em;
}

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

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

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

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

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

.page-index__step-list, .page-index__offer-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-index__step-list li, .page-index__offer-list li {
  margin-bottom: 10px;
}

.page-index__step-list li strong, .page-index__offer-list li strong {
  color: #000000;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__category-gateway {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .page-index__hero-slider {
    padding-top: 0; /* Remove small padding on mobile if needed, body padding is enough */
  }
  .page-index__hero-cta-button {
    bottom: 40px;
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-index__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em); /* Use clamp for H1 */
    max-width: 90%;
  }
  .page-index__category-gateway {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__article-heading {
    font-size: 1.8em;
  }
  .page-index__article-subheading {
    font-size: 1.3em;
  }
  .page-index__article-body {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-index__hero-slider img, .page-index__category-card img, .page-index__article-figure img {
    max-width: 100%;
    height: auto;
  }
  /* Crucial: Ensure content area images don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__category-gateway {
    grid-template-columns: 1fr;
  }
  .page-index__section-title {
    margin: 30px auto;
  }
  .page-index__title-line {
    margin: 0 10px;
  }
  .page-index__prev-btn, .page-index__next-btn {
    padding: 8px 12px;
    font-size: 1em;
  }
}