.page-index {
  background-color: #F4F7FB;
  color: #1F2D3D;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding for the first section */
}

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

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

.page-index__slider-item {
  min-width: 100%;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.page-index__slider-item--active {
  opacity: 1;
  position: relative;
}

.page-index__hero-slider img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px; /* Limit height for aesthetic */
  object-fit: cover;
}

.page-index__slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
  border-radius: 5px;
}

.page-index__slider-nav--prev {
  left: 10px;
}

.page-index__slider-nav--next {
  right: 10px;
}

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

.page-index__slider-dot {
  width: 12px;
  height: 12px;
  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: #fff;
}

.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;
}

.page-index__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #1F2D3D;
  text-align: center;
  max-width: 600px; /* To prevent title from being too wide */
}

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

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

.page-index__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  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 6px 20px rgba(0, 0, 0, 0.15);
}

.page-index__category-card img {
  width: 100%;
  height: 300px; /* Fixed height for vertical images */
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.page-index__category-label {
  padding: 15px;
  font-weight: bold;
  text-align: center;
  font-size: 1.1em;
  color: #000000;
}

.page-index__article-body {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 40px;
}

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

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

.page-index__h2 {
  font-size: 2em;
  color: #2F6BFF;
  margin-top: 50px;
  margin-bottom: 20px;
  border-bottom: 2px solid #D6E2FF;
  padding-bottom: 10px;
}

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

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

.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);
  width: 800px; /* HTML width/height attributes are for display area */
  height: 450px;
}

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

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

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

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

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

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

.page-index__article-body .page-index__h2 + p {
  margin-top: 20px;
}

/* Buttons for promotion */
.page-index__article-body a[data-promo-link] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-top: 20px;
}

.page-index__article-body a[data-promo-link]:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  text-decoration: none;
}

@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 2.5em;
  }
  .page-index__h2 {
    font-size: 1.8em;
  }
  .page-index__h3 {
    font-size: 1.3em;
  }
  .page-index__category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-index__main-title {
    font-size: 2em;
  }
  .page-index__section-title-container {
    margin: 30px auto;
  }
  .page-index__grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .page-index__category-card img {
    height: 250px;
  }
  .page-index__article-body {
    padding: 20px;
    margin: 40px auto;
  }
  .page-index__article-body img {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
    width: auto; /* Override fixed width for mobile */
  }
  .page-index__hero-slider img {
    max-height: 400px;
  }
  .page-index__slider-nav {
    padding: 8px 12px;
    font-size: 20px;
  }
  .page-index__slider-dots {
    bottom: 10px;
  }
  .page-index__h2 {
    font-size: 1.5em;
  }
  .page-index__h3 {
    font-size: 1.2em;
  }
  /* Mobile content area images must not cause overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__article-figure img {
    width: 100%; /* Ensure article images scale down */
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__main-title {
    font-size: 1.5em;
  }
  .page-index__grid {
    grid-template-columns: 1fr;
  }
  .page-index__category-card img {
    height: 200px;
  }
  .page-index__hero-slider img {
    max-height: 300px;
  }
  .page-index__h2 {
    font-size: 1.3em;
  }
  .page-index__h3 {
    font-size: 1.1em;
  }
}