.page-index {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-color: #F4F7FB;
  --text-main-color: #1F2D3D;
  --text-black-color: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --highlight-orange: #ff9900;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

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

.page-index__hero-slide {
  min-width: 100%;
  display: block;
  position: relative;
}

.page-index__hero-slide--hidden {
  display: none;
}

.page-index__hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.page-index__slider-button {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

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

.page-index__slider-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--active {
  background-color: var(--primary-color);
}

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

.page-index__title-line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
  max-width: 200px;
}

.page-index__main-title {
  color: var(--text-main-color);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.02em;
  max-width: 800px;
  /* Using clamp for responsive font size, but within reasonable limits */
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.page-index__category-gateway-section {
  background-color: var(--background-color);
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-index__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-black-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  min-height: 400px; /* Ensure cards have minimum height */
}

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

.page-index__category-card img {
  width: 100%;
  height: 100%; /* Make image fill card height for 3:5 aspect */
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

.page-index__category-label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__article-body-section {
  padding: 60px 0;
  background-color: var(--card-bg);
}

.page-index__article-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  line-height: 1.7;
  color: var(--text-main-color);
}

.page-index__blockquote {
  border-left: 5px solid var(--primary-color);
  padding-left: 20px;
  margin: 40px 0;
  font-style: italic;
  color: var(--text-main-color);
  background-color: rgba(var(--primary-color-rgb, 47, 107, 255), 0.05);
  padding: 20px;
  border-radius: 8px;
}

.page-index__blockquote a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

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

.page-index__highlight-text {
  color: var(--highlight-orange);
  font-weight: 700;
}

.page-index__article-body h2 {
  color: var(--text-black-color);
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.page-index__article-body h3 {
  color: var(--text-main-color);
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 35px;
  margin-bottom: 15px;
  text-align: left;
}

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

.page-index__article-body ul {
  margin-bottom: 20px;
  padding-left: 25px;
}

.page-index__article-body li {
  margin-bottom: 10px;
  list-style-type: disc;
}

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

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

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

.page-index__process-list li {
  list-style-type: decimal;
}

.page-index__offer-list li strong {
  color: var(--primary-color);
}

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

.page-index__btn--primary {
  background: var(--button-gradient);
  color: #fff;
  box-shadow: 0 5px 15px rgba(var(--primary-color-rgb, 47, 107, 255), 0.3);
}

.page-index__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--primary-color-rgb, 47, 107, 255), 0.4);
}

.page-index__article-body .page-index__btn {
  margin-top: 30px;
  margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__category-gateway {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-index__title-line {
    max-width: 100px;
  }

  .page-index__category-gateway {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 15px;
  }

  .page-index__category-card {
    min-height: 300px;
  }

  .page-index__article-body h2 {
    font-size: 1.8rem;
  }

  .page-index__article-body h3 {
    font-size: 1.4rem;
  }

  .page-index__hero-slide img,
  .page-index__category-card img,
  .page-index__article-figure img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure min size even on mobile */
    min-height: 200px;
  }

  .page-index__hero-slider-section {
    margin-bottom: 20px;
  }

  .page-index__section-title-container {
    margin: 20px auto 40px;
    padding: 0 10px;
    gap: 10px;
  }

  .page-index__slider-nav {
    bottom: 10px;
  }

  .page-index__slider-button {
    padding: 8px 12px;
    font-size: 16px;
  }

  .page-index__dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .page-index__category-gateway {
    grid-template-columns: 1fr; /* Single column on very small screens */
  }

  .page-index__category-card {
    min-height: 250px;
  }

  .page-index__category-label {
    font-size: 1rem;
    padding: 8px 20px;
  }
}