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

.page-index__spacing-30 {
  height: 30px;
}

/* Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.page-index__hero-slider-track {
  display: flex;
  width: 300%; /* For 3 slides, adjust dynamically if more */
  transition: transform 0.5s ease-in-out;
}
.page-index__hero-slider-slide {
  flex: 0 0 33.33%; /* Each slide takes 1/3 of the track width */
  width: 100%;
  position: relative;
  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-color: rgba(47, 107, 255, 0.7);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.page-index__hero-slider-prev:hover,
.page-index__hero-slider-next:hover {
  background-color: #2F6BFF;
}
.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-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.page-index__hero-slider-dots button.is-active {
  background-color: #2F6BFF;
}

/* Promo Duo */
.page-index__promo-duo {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.page-index__promo-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.page-index__promo-duo-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.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);
}
.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: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-index__promo-cta--alert {
  background: linear-gradient(180deg, #FF6B6B 0%, #E74C3C 100%); /* High contrast alert color */
}

/* Section Title (H1) */
.page-index__section-title {
  text-align: center;
  margin: 30px auto;
  max-width: 1250px;
  padding: 0 16px;
  box-sizing: border-box;
}
.page-index__main-h1 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #2F6BFF; /* Main color */
  margin: 0;
  padding: 0;
  font-size: clamp(28px, 4vw, 48px); /* Using clamp for responsive font size */
}

/* Long SEO Content */
.page-index__home-content {
  max-width: 900px;
  margin: 24px auto;
  height: 700px;
  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 */
}
.page-index__home-content-inner {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  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; /* Custom scrollbar thumb */
  border-radius: 20px;
  border: 3px solid #6FA3FF; /* Border color */
}
.page-index__home-content-inner h2 {
  color: #2F6BFF; /* Main color */
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 28px;
}
.page-index__home-content-inner h3 {
  color: #2F6BFF; /* Main color */
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 22px;
}
.page-index__home-content-inner p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #1F2D3D;
}
.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 figure figcaption {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}
.page-index__home-content-inner .page-index__quick-links a {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: bold;
}
.page-index__home-content-inner .page-index__quick-links a:hover {
  text-decoration: underline;
}
.page-index__ul-list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #1F2D3D;
}
.page-index__ul-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}
.page-index__table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
}
.page-index__styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  text-align: left;
  background-color: #FFFFFF;
  border: 1px solid #D6E2FF; /* Border color */
}
.page-index__styled-table th,
.page-index__styled-table td {
  padding: 12px 15px;
  border: 1px solid #D6E2FF; /* Border color */
  color: #1F2D3D;
}
.page-index__styled-table th {
  background-color: #6FA3FF; /* Auxiliary color */
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
}
.page-index__styled-table tbody tr:nth-of-type(even) {
  background-color: #F8FBFD;
}
.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-index__cta-button--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
}
.page-index__cta-button--primary:hover {
  opacity: 0.9;
}

/* Blog Slider */
.page-index__blog-slider {
  max-width: 1250px;
  margin: 30px auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.page-index__blog-slider-title {
  text-align: center;
  color: #2F6BFF; /* Main color */
  text-transform: uppercase;
  font-size: 32px;
  margin-bottom: 25px;
}
.page-index__blog-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-index__blog-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px; /* Space for scrollbar */
}
.page-index__blog-slider-track::-webkit-scrollbar {
  height: 8px;
}
.page-index__blog-slider-track::-webkit-scrollbar-thumb {
  background-color: #6FA3FF; /* Auxiliary color */
  border-radius: 10px;
}
.page-index__post-item {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  box-sizing: border-box;
  background: #FFFFFF; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.page-index__post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.page-index__post-item a {
  text-decoration: none;
  color: #1F2D3D; /* Text Main */
  display: block;
}
.page-index__post-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Fixed 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.page-index__post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-index__post-date {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: #2F6BFF; /* Main color */
  color: #fff;
  border: 2px solid #6FA3FF; /* Auxiliary color */
  border-radius: 4px;
  padding: 5px 10px;
  text-align: center;
  line-height: 1.2;
  font-size: 12px;
  text-transform: uppercase;
}
.page-index__post-date-day {
  display: block;
  font-weight: 700;
  font-size: 18px;
}
.page-index__post-date-month {
  display: block;
  font-size: 11px;
}
.page-index__post-item h5 {
  text-align: center;
  color: #2F6BFF; /* Main color */
  margin: 15px 10px 8px;
  font-size: 18px;
  line-height: 1.4;
}
.page-index__post-item p {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin: 0 10px 15px;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  background-color: #6FA3FF; /* Auxiliary color */
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}
.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background-color: #2F6BFF;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__hero-slider-prev,
  .page-index__hero-slider-next {
    padding: 8px 12px;
    font-size: 20px;
  }
  .page-index__promo-duo-grid {
    gap: 15px;
  }
  .page-index__section-title {
    margin-top: 25px;
    margin-bottom: 20px;
  }
  .page-index__main-h1 {
    font-size: clamp(24px, 3.5vw, 42px);
  }
  .page-index__home-content {
    height: 600px;
    max-width: 800px;
    border-width: 4px;
  }
  .page-index__home-content-inner h2 {
    font-size: 26px;
  }
  .page-index__home-content-inner h3 {
    font-size: 20px;
  }
  .page-index__blog-slider-title {
    font-size: 28px;
  }
  .page-index__post-item {
    flex: 0 0 calc((100% - 20px) / 2); /* Two cards on tablet */
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__promo-duo,
  .page-index__home-content,
  .page-index__blog-slider {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hero Slider */
  .page-index__hero-slider {
    padding-top: 10px !important; /* Fixed top padding for mobile */
  }
  .page-index__hero-slider-track {
    width: 100%;
    transform: translateX(0) !important; /* Reset transform for JS to handle */
  }
  .page-index__hero-slider-slide {
    flex: 0 0 100%;
  }
  .page-index__hero-slider-prev,
  .page-index__hero-slider-next {
    padding: 6px 10px;
    font-size: 18px;
    width: 30px;
    height: 30px;
  }

  /* Promo Duo */
  .page-index__promo-duo-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-index__promo-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 15px;
  }

  /* Section Title (H1) */
  .page-index__main-h1 {
    font-size: clamp(22px, 6vw, 36px);
  }

  /* Long SEO Content */
  .page-index__home-content {
    height: 60vh;
    min-height: 420px;
    max-height: 560px;
    margin: 16px auto;
    border-width: 3px;
    padding: 8px;
  }
  .page-index__home-content-inner {
    padding: 10px;
  }
  .page-index__home-content-inner h2 {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .page-index__home-content-inner h3 {
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 8px;
  }
  .page-index__home-content-inner p,
  .page-index__ul-list li {
    font-size: 15px;
  }
  .page-index__home-content-inner .page-index__table-wrapper {
    overflow-x: auto;
  }
  .page-index__styled-table {
    font-size: 14px;
    min-width: 600px; /* Ensure table content doesn't get too squished */
  }
  .page-index__styled-table th,
  .page-index__styled-table td {
    padding: 10px 12px;
  }
  .page-index__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    font-size: 16px;
    padding: 12px 20px;
    margin-top: 15px;
  }

  /* Blog Slider */
  .page-index__blog-slider-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .page-index__blog-slider-wrap {
    gap: 0;
  }
  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    display: none; /* Hide arrows on mobile for swipe */
  }
  .page-index__blog-slider-track {
    gap: 15px;
    padding-bottom: 5px; /* Adjust for scrollbar */
  }
  .page-index__post-item {
    flex: 0 0 100%; /* One card on mobile */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .page-index__post-item h5 {
    font-size: 16px;
    margin: 10px 8px 5px;
  }
  .page-index__post-item p {
    font-size: 13px;
    margin: 0 8px 10px;
  }
  .page-index__post-date {
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 11px;
  }
  .page-index__post-date-day {
    font-size: 16px;
  }
}