.page-index {
  background-color: #F4F7FB; /* Default background */
  color: #1F2D3D; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding for first section */
  background: linear-gradient(180deg, #2d0000 0%, #0a0909 100%); /* Deep red/wine background */
  display: flex; /* For CTA positioning */
  flex-direction: column;
  align-items: center;
}

.page-index__slider-container {
  width: 100%;
  max-width: 1920px; /* Max width for the slider image itself */
  margin: 0 auto;
  text-align: center;
}

.page-index__slider-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-index__hero-cta {
  margin-top: 20px;
  margin-bottom: 40px;
  z-index: 10;
}

/* Buttons */
.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  color: #FFFFFF; /* White text for buttons */
}

.page-index__button--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

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

.page-index__decoration-line {
  flex-grow: 1;
  height: 2px;
  background-color: #D6E2FF; /* Border color */
  max-width: 150px;
}

.page-index__main-title {
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin: 0 20px;
  font-weight: bold;
  /* Using clamp for responsive font size, within allowed limits */
  font-size: clamp(28px, 4vw, 42px); /* min, preferred, max */
  line-height: 1.2;
}

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

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

.page-index__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 15px;
  min-height: 280px; /* Ensure cards are not too small */
}

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

.page-index__category-image {
  width: 100%;
  height: 200px; /* Fixed height for category images */
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  transition: transform 0.3s ease;
}

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

.page-index__category-label {
  color: #1F2D3D; /* Text Main */
  font-weight: bold;
  font-size: 18px;
  margin-top: 15px;
  text-align: center;
}

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

.page-index__article-body a {
  color: #2F6BFF; /* Primary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__article-body a:hover {
  color: #6FA3FF; /* Secondary color for link hover */
  text-decoration: underline;
}

.page-index__blockquote {
  border-left: 5px solid #ff9900; /* Orange/amber highlight */
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #1F2D3D; /* Text Main */
  background-color: #FFFFFF; /* Card BG */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-index__blockquote p {
  margin: 0;
  font-size: 17px;
}

.page-index__article-heading {
  color: #1F2D3D; /* Text Main */
  font-size: 32px;
  margin-top: 50px;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.3;
}

.page-index__article-subheading {
  color: #1F2D3D; /* Text Main */
  font-size: 24px;
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.4;
}

.page-index__article-paragraph,
.page-index__article-list li,
.page-index__faq-answer {
  color: #1F2D3D; /* Text Main */
  font-size: 16px;
  margin-bottom: 15px;
}

.page-index__article-list {
  list-style: disc;
  margin-left: 25px;
  padding: 0;
  margin-bottom: 20px;
}

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

.page-index__article-figure {
  margin: 40px 0;
  text-align: center;
}

.page-index__article-figure img {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure image is not too small */
  min-height: 200px; /* Ensure image is not too small */
}

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

.page-index__aligncenter {
  text-align: center;
}

/* FAQ */
.page-index__faq-question {
  color: #1F2D3D; /* Text Main */
  font-size: 20px;
  margin-top: 30px;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: clamp(24px, 5vw, 38px);
  }
}

@media (max-width: 768px) {
  .page-index__hero-slider {
    padding-top: 8px;
  }
  .page-index__hero-cta {
    margin-top: 15px;
    margin-bottom: 30px;
  }
  .page-index__button {
    padding: 10px 20px;
    font-size: 15px;
  }
  .page-index__section-title-container {
    margin: 30px auto;
  }
  .page-index__decoration-line {
    max-width: 80px;
  }
  .page-index__main-title {
    font-size: clamp(22px, 6vw, 32px);
  }
  .page-index__category-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 15px;
  }
  .page-index__category-image {
    height: 180px; /* Adjust height for mobile */
  }
  .page-index__category-label {
    font-size: 16px;
  }
  .page-index__article-body {
    padding: 40px 0;
  }
  .page-index__article-heading {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 15px;
  }
  .page-index__article-subheading {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-index__article-paragraph,
  .page-index__article-list li,
  .page-index__faq-answer {
    font-size: 15px;
  }
  .page-index__article-figure img {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto;
    min-width: 200px; /* Maintain minimum size */
    min-height: 200px; /* Maintain minimum size */
  }
  .page-index__faq-question {
    font-size: 18px;
  }

  /* Critical: prevent content area images from causing horizontal scroll */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-index__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Adjust for smaller screens */
  }
  .page-index__category-image {
    height: 150px;
  }
  .page-index__decoration-line {
    display: none; /* Hide lines on very small screens */
  }
  .page-index__main-title {
    margin: 0; /* Remove side margins if lines are hidden */
  }
}