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

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(to right, #2d0000, #0a0909);
  padding-top: 10px; /* Small padding top to avoid overlap with header */
}

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

.page-index__hero-slide {
  min-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  display: none;
  justify-content: center;
}

.page-index__hero-slide--active {
  display: flex;
}

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

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

.page-index__hero-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__hero-dot--active {
  background-color: #d6d604;
}

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

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

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

.page-index__hero-arrow--prev::before {
  content: '‹';
}

.page-index__hero-arrow--next::before {
  content: '›';
}

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

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

.page-index__main-title {
  color: #1F2D3D;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 900px;
  padding: 0;
  margin: 0;
}

/* Category Gateway */
.page-index__category-gateway {
  padding: 40px 0;
  background-color: #F4F7FB;
}

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

.page-index__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #1F2D3D;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 200px; /* Ensure card content is not too small */
}

.page-index__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-index__category-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

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

/* Article Body */
.page-index__article-body {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-index__article-body .page-index__container {
  max-width: 900px;
}

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

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

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

.page-index__highlight-text {
  color: #ff9900; /* Amber/Orange for highlight */
  font-weight: bold;
}

.page-index__article-heading {
  color: #1F2D3D;
  font-size: 2.2em;
  margin-top: 50px;
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.3;
}

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

.page-index__article-body p,
.page-index__article-body ul li {
  color: #1F2D3D;
  line-height: 1.7;
  margin-bottom: 1em;
}

.page-index__article-body ul {
  list-style: disc inside;
  padding-left: 20px;
  margin-bottom: 20px;
}

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

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

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

.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 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

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

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

.page-index__article-body .page-index__button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-slide img {
    max-height: 560px;
  }

  .page-index__main-title {
    font-size: 2.5em;
  }

  .page-index__article-heading {
    font-size: 2em;
  }

  .page-index__article-subheading {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-slide img {
    max-height: 400px;
  }

  .page-index__hero-arrow {
    padding: 8px 12px;
    font-size: 20px;
  }

  .page-index__main-title {
    font-size: clamp(1.8em, 5vw, 2.2em);
    margin: 20px auto;
  }

  .page-index__section-title-line {
    margin: 0 10px;
  }

  .page-index__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }

  .page-index__category-card img,
  .page-index__article-figure img,
  .page-index__article-body img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure content images are not too small */
    min-height: 200px; /* Ensure content images are not too small */
  }

  /* Force content images to be responsive and not overflow */
  .page-index__article-body img {
    max-width: 100% !important;
    height: auto !important;
  }

  .page-index__article-heading {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-index__article-subheading {
    font-size: 1.2em;
    margin-top: 30px;
    margin-bottom: 10px;
  }

  .page-index__blockquote {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-slide img {
    max-height: 250px;
  }

  .page-index__category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .page-index__main-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

  .page-index__article-heading {
    font-size: 1.5em;
  }

  .page-index__article-subheading {
    font-size: 1.1em;
  }
}