.page-index {
  background-color: #F4F7FB;
  color: #1F2D3D;
  font-family: Arial, sans-serif;
}

.page-index__hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding to avoid header overlap */
  background-color: #F4F7FB; /* Match main background */
}

.page-index__slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  max-width: 100%; /* Ensure it doesn't overflow */
}

.page-index__hero-slider img {
  width: 100%;
  height: auto;
  min-width: 100%; /* For slider items */
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-index__slider-arrow:hover {
  background-color: #2F6BFF;
}

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

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

.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__decorative-line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(to right, #D6E2FF, #2F6BFF, #D6E2FF);
  margin: 0 20px;
}

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

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

.page-index__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  justify-content: center;
}

.page-index__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 200px; /* Ensure cards don't shrink too much */
}

.page-index__category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

.page-index__category-title {
  color: #1F2D3D;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 15px;
  text-align: center;
  width: 100%;
  background-color: #FFFFFF;
}

.page-index__article-body {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
  line-height: 1.8;
}

.page-index__blockquote {
  border-left: 5px solid #2F6BFF;
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #000000; /* Custom Color_1776249996415 */
  font-size: 1.1rem;
}

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

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

.page-index__article-h2 {
  color: #2F6BFF;
  font-size: 2.2rem;
  margin-top: 50px;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-index__article-h3 {
  color: #1F2D3D;
  font-size: 1.6rem;
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

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

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

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

.page-index__article-list li strong {
  color: #000000; /* Custom Color_1776249996415 */
}

.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;
  min-height: 200px;
}

.page-index__article-figure figcaption {
  font-size: 0.9rem;
  color: #000000; /* Custom Color_1776249996415 */
  margin-top: 10px;
}

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #1F2D3D; /* Changed to dark for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-index__btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%); /* Slightly invert gradient on hover */
}

.page-index__btn--center {
  display: block;
  width: fit-content;
  margin: 30px auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-slider img {
    height: 500px;
  }
  .page-index__main-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }
  .page-index__category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .page-index__hero-slider img {
    height: 350px;
  }
  .page-index__section-title-container {
    margin: 40px auto 30px auto;
  }
  .page-index__main-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    padding: 0 10px;
  }
  .page-index__category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__category-card img {
    height: 300px;
  }
  .page-index__article-body {
    margin: 40px auto;
    padding: 25px;
  }
  .page-index__article-h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .page-index__article-h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 10px;
  }
  .page-index__article-figure img {
    max-width: 100%;
    height: auto;
  }
  /* Mobile image overflow prevention */
  .page-index__article-body img,
  .page-index__category-card img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }
  .page-index__slider-arrow {
    padding: 8px 12px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-slider img {
    height: 250px;
  }
  .page-index__category-grid {
    grid-template-columns: 1fr;
  }
  .page-index__category-card img {
    height: 250px;
  }
  .page-index__section-title-container {
    flex-direction: column;
    gap: 10px;
  }
  .page-index__decorative-line {
    width: 80%;
    margin: 0;
  }
  .page-index__main-title {
    font-size: 1.6rem;
  }
  .page-index__article-body {
    padding: 20px;
  }
}