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

.page-index__hero-slider-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
}

.page-index__hero-link {
  display: block;
  width: 100%;
  max-width: 1390px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (1080 / 1920) */
  overflow: hidden;
}

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

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

.page-index__slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-index__slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(47, 107, 255, 0.7);
  color: #FFFFFF;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 8px;
  z-index: 10;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__slider-nav:hover {
  background-color: #2F6BFF;
  transform: translateY(-50%) scale(1.05);
}

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

.page-index__slider-nav--prev::before {
  content: '❮';
}

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

.page-index__slider-nav--next::before {
  content: '❯';
}

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

.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, transform 0.3s ease;
}

.page-index__slider-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.page-index__slider-dot--active {
  background-color: #2F6BFF;
  transform: scale(1.2);
}

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

.page-index__title-line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(to right, #D6E2FF, #A5C4FF);
  margin: 0 20px;
  max-width: 150px;
}

.page-index__main-title {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4vw + 1rem, 3.2rem); /* Responsive H1 font size */
}

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

.page-index__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #1F2D3D;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF;
}

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

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

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

.page-index__category-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 15px 0 20px;
  text-align: center;
  color: #2F6BFF;
}

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

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

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

.page-index__blockquote p {
  margin: 0;
}

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

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

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

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

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

.page-index__article-body li {
  margin-bottom: 0.5em;
}

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

.page-index__article-figure img {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

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

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

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

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

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

@media (max-width: 1024px) {
  .page-index__hero-link {
    border-radius: 10px;
  }
  .page-index__section-title-container {
    margin-bottom: 40px;
  }
  .page-index__category-gateway {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  .page-index__category-card img {
    height: 250px;
  }
  .page-index__category-title {
    font-size: 1.2rem;
  }
  .page-index__article-body {
    padding: 30px;
  }
  .page-index__article-h2 {
    font-size: 1.8rem;
  }
  .page-index__article-h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .page-index__hero-link {
    border-radius: 0;
  }
  .page-index__hero-slider {
    padding-bottom: 66.66%; /* Adjust aspect ratio for mobile if needed, e.g., 3:2 */
  }
  .page-index__slider-nav {
    padding: 8px 12px;
    font-size: 20px;
  }
  .page-index__slider-nav--prev {
    left: 5px;
  }
  .page-index__slider-nav--next {
    right: 5px;
  }
  .page-index__slider-dots {
    bottom: 10px;
  }
  .page-index__section-title-container {
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-index__title-line {
    margin: 0 10px;
    max-width: 80px;
  }
  .page-index__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-index__category-gateway {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }
  .page-index__category-card img {
    height: 200px;
  }
  .page-index__article-body {
    padding: 25px;
    margin-bottom: 60px;
    border-radius: 0;
  }
  .page-index__article-h2 {
    font-size: 1.6rem;
    margin-top: 40px;
  }
  .page-index__article-h3 {
    font-size: 1.2rem;
    margin-top: 30px;
  }
  .page-index__article-body img {
    max-width: 100%;
    height: auto; /* Ensure images don't overflow */
  }
  .page-index__article-body ul {
    margin-left: 20px;
  }
  .page-index__btn {
    width: 100%;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-index__category-gateway {
    grid-template-columns: 1fr;
  }
  .page-index__category-card img {
    
  }
  .page-index__article-body {
    padding: 20px;
  }
  .page-index__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .page-index__article-h2 {
    font-size: 1.4rem;
  }
  .page-index__article-h3 {
    font-size: 1.1rem;
  }
}

/* Ensure content area images are never smaller than 200px */
.page-index img:not(.page-index__slider-item img) {
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__article-body img {
    max-width: 100%;
    height: auto;
  }
}