/* General page-index styles based on body background */
.page-index {
  color: #1F2D3D; /* Text Main */
  background: #F4F7FB; /* Background */
}

/* Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding if body padding-top is handled by shared.css */
  overflow: hidden;
  max-width: 100%; /* Ensure no overflow */
  box-sizing: border-box;
}
.page-index__hero-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.page-index__hero-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.page-index__hero-slider-slide.is-active {
  opacity: 1;
}
.page-index__hero-slider-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.page-index__hero-slider-prev,
.page-index__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  border-radius: 4px;
}
.page-index__hero-slider-prev {
  left: 10px;
}
.page-index__hero-slider-next {
  right: 10px;
}
.page-index__hero-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.page-index__hero-slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
}
.page-index__hero-slider-dots button.is-active {
  background: #fff;
}

/* Spacing */
.page-index__spacing-medium {
  margin-bottom: 30px;
}

/* Promo Duo */
.page-index__promo-duo {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  width: 100%;
}
.page-index__promo-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 100%;
  box-sizing: border-box;
}
.page-index__promo-duo-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 100%;
  box-sizing: border-box;
}
.page-index__promo-duo-col img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  object-fit: cover;
}
.page-index__promo-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-index__promo-cta--alert {
  background: #e74c3c; /* Alert color for CTA */
}

/* Decorative H1 */
.page-index__section-title {
  text-align: center;
  margin: 30px auto;
  max-width: 1250px;
  padding: 0 16px;
  box-sizing: border-box;
  width: 100%;
}
.page-index__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1F2D3D; /* Text Main */
  margin: 0;
  padding: 0;
  font-size: clamp(2em, 4vw, 3.5em);
}

/* Long SEO Content */
.page-index__home-content {
  max-width: 900px;
  margin: 24px auto;
  height: 700px; /* Fixed height for desktop */
  padding: 10px;
  box-sizing: border-box;
  border: 5px solid #6FA3FF; /* Border color */
  border-radius: 15px;
  box-shadow: 0 0 20px #A5C4FF; /* Glow color */
  background: #FFFFFF; /* Card BG */
  color: #1F2D3D; /* Text Main */
  width: 100%;
}
.page-index__home-content-inner {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden; /* Prevent horizontal scroll for inner content */
  padding: 12px 16px;
  text-align: justify;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
.page-index__home-content-inner::-webkit-scrollbar {
  width: 10px;
}
.page-index__home-content-inner::-webkit-scrollbar-thumb {
  background-color: #4C9BB6; /* Scrollbar thumb color */
  border-radius: 20px;
  border: 3px solid #6FA3FF; /* Scrollbar border color */
}
.page-index__home-content-inner h2 {
  color: #2F6BFF; /* Primary color for H2 */
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: clamp(1.5em, 2.5vw, 2em);
}
.page-index__home-content-inner h3 {
  color: #2F6BFF; /* Primary color for H3 */
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: clamp(1.2em, 2vw, 1.7em);
}
.page-index__home-content-inner h5 {
  color: #2F6BFF; /* Primary color for H5 */
  margin-top: 15px;
  margin-bottom: 8px;
}
.page-index__home-content-inner p {
  line-height: 1.6;
  margin-bottom: 1em;
  color: #1F2D3D; /* Text Main */
}
.page-index__home-content-inner ul,
.page-index__home-content-inner ol {
  margin-bottom: 1em;
  padding-left: 20px;
  color: #1F2D3D; /* Text Main */
}
.page-index__home-content-inner li {
  margin-bottom: 0.5em;
  line-height: 1.5;
}
.page-index__home-content-inner figure {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
}
.page-index__home-content-inner figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.page-index__home-content-inner figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: #666;
  margin-top: 8px;
}
.page-index__home-content-inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9em;
  max-width: 100%;
}
.page-index__home-content-inner th,
.page-index__home-content-inner td {
  border: 1px solid #D6E2FF; /* Border color */
  padding: 10px;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-index__home-content-inner th {
  background-color: #6FA3FF; /* Auxiliary color for table headers */
  color: #FFFFFF;
  font-weight: bold;
}
.page-index__home-content-inner a {
  color: #2F6BFF; /* Primary color for links */
  text-decoration: none;
}
.page-index__home-content-inner a:hover {
  text-decoration: underline;
}
.page-index__quick-access-links {
  text-align: center;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 20px;
}
.page-index__quick-access-links a {
  margin: 0 8px;
}
.page-index__table-wrapper {
  max-width: 100%;
  overflow-x: auto; /* For mobile table overflow */
  box-sizing: border-box;
}

/* Blog Card Slider */
.page-index__blog-slider {
  max-width: 1250px;
  margin: 30px auto;
  padding: 0 16px;
  box-sizing: border-box;
  width: 100%;
}
.page-index__blog-slider-title {
  text-align: center;
  color: #6FA3FF; /* Auxiliary color */
  text-transform: uppercase;
  margin-bottom: 25px;
  font-size: clamp(1.5em, 2.5vw, 2em);
}
.page-index__blog-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  box-sizing: border-box;
}
.page-index__blog-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}
.page-index__blog-slider-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}