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

/* Module 1: Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding if body already has offset */
  overflow: hidden;
  max-width: 100%; /* Ensure no overflow */
  box-sizing: border-box;
}
.page-index__hero-slider-track {
  display: flex;
  overflow: hidden; /* Controlled by JS, not native scroll */
  width: 100%;
}
.page-index__hero-slider-slide {
  flex: 0 0 100%;
  transition: transform 0.6s ease-in-out;
  display: none;
}
.page-index__hero-slider-slide.is-active {
  display: block;
}
.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);
  max-width: 100%;
  box-sizing: border-box;
}
.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;
  padding: 0;
  transition: background-color 0.3s ease;
}
.page-index__hero-slider-dots button.is-active {
  background: #2F6BFF; /* Main Color */
}

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

/* Module 3: Promo Duo */
.page-index__promo-duo {
  max-width: 1250px;
  margin: 0 auto 30px auto;
  padding: 0 16px;
  box-sizing: border-box;
  overflow: hidden;
}
.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;
  background: #FFFFFF; /* Card BG */
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  box-sizing: border-box;
  overflow: hidden; /* Ensure content does not overflow */
}
.page-index__promo-duo-col img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  max-width: 100%;
  box-sizing: border-box;
}
.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;
  transition: background-color 0.3s ease;
  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%); /* Example alert color gradient */
}
.page-index__promo-cta:hover {
  opacity: 0.9;
}

/* Module 4: Main Title */
.page-index__section-title {
  text-align: center;
  margin: 30px auto;
  max-width: 1250px;
  padding: 0 16px;
  box-sizing: border-box;
}
.page-index__main-heading {
  font-weight: 700;
  line-height: 1.2;
  color: #2F6BFF; /* Main Color */
  margin: 0;
  padding: 0;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

/* Module 5: 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, ensuring contrast with text */
  color: #1F2D3D; /* Text Main */
  overflow: hidden; /* Ensure inner content scrolls within this fixed height */
}
.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 color */
  border-radius: 20px;
  border: 3px solid #6FA3FF; /* Border color */
}
.page-index__home-content-inner h2 {
  color: #2F6BFF; /* Main Color */
  margin-top: 25px;
  margin-bottom: 15px;
}
.page-index__home-content-inner h3 {
  color: #2F6BFF; /* Main Color */
  margin-top: 20px;
  margin-bottom: 10px;
}
.page-index__home-content-inner p {
  margin-bottom: 1em;
  color: #1F2D3D; /* Text Main */
}
.page-index__home-content-inner .page-index__quick-links {
  text-align: center;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 20px;
}
.page-index__home-content-inner .page-index__quick-links a {
  color: #6FA3FF; /* Auxiliary Color */
  text-decoration: none;
}
.page-index__home-content-inner .page-index__quick-links a:hover {
  text-decoration: underline;
}
.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: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  max-width: 100%;
  box-sizing: border-box;
}
.page-index__home-content-inner figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: #666;
  margin-top: 8px;
}
.page-index__home-content-inner ul {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 1em;
  color: #1F2D3D; /* Text Main */
}
.page-index__home-content-inner li {
  margin-bottom: 0.5em;
  color: #1F2D3D; /* Text Main */
}
.page-index__home-content-inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  color: #1F2D3D; /* Text Main */
}
.page-index__home-content-inner th,
.page-index__home-content-inner td {
  border: 1px solid #D6E2FF; /* Border color */
  padding: 10px;
  text-align: left;
}
.page-index__home-content-inner th {
  background-color: #F4F7FB; /* Background */
  font-weight: bold;
  color: #000000; /* Custom Color_1776249996415 */
}
.page-index__table-wrapper {
  overflow-x: auto; /* For mobile table scrolling */
  max-width: 100%;
  box-sizing: border-box;
}

/* Module 6: Blog Card Slider */
.page-index__blog-slider {
  max-width: 1250px;
  margin: 30px auto;
  padding: 0 16px;
  box-sizing: border-box;
  overflow: hidden; /* Ensure slider content is contained */
}
.page-index__blog-slider-title {
  text-align: center;
  color: #6FA3FF; /* Auxiliary Color */
  text-transform: uppercase;
  margin-bottom: 25px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}
.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;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}
.page-index__blog-slider-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari */
}
.page-index__post-item {
  flex: 0 0 calc((100% - 40px) / 3); /* 3 cards desktop with 20px gap */
  scroll-snap-align: start;
  box-sizing: border-box;
  background: #FFFFFF; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  padding-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 280px; /* Ensure cards don't get too small before mobile breakpoint */
}
.page-index__post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.page-index__post-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.page-index__post-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Fixed 16:9 ratio */
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  margin-bottom: 10px;
}
.page-index__post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
  box-sizing: border-box;
}
.page-index__post-date {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #fff;
  border: 2px solid #2F6BFF; /* Main Color */
  border-radius: 4px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.2;
  color: #2F6BFF; /* Main Color */
  font-size: 12px;
}
.page-index__post-date-day {
  display: block;
  font-weight: 700;
  font-size: 16px;
}
.page-index__post-date-month {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
}
.page-index__post-item h5 {
  text-align: center;
  color: #2F6BFF; /* Main Color */
  margin: 12px 8px 6px;
  font-size: 1.1em;
  padding: 0 5px;
}
.page-index__post-item p {
  text-align: center;
  color: #1F2D3D; /* Text Main */
  font-size: 14px;
  margin: 0 8px 8px;
  padding: 0 5px;
}
.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  background: #2F6BFF; /* Main Color */
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 20px;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}
.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background: #4A8BFF; /* Lighter Main Color */
}

/* General image responsive styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-slider-slide img {
    height: 56.25vw; /* Maintain 16:9 aspect ratio */
  }
  .page-index__home-content {
    max-width: 800px;
    margin: 20px auto;
  }
  .page-index__blog-slider-track {
    gap: 15px;
  }
  .page-index__post-item {
    flex: 0 0 calc((100% - 30px) / 3);
  }
}

@media (max-width: 768px) {
  /* General mobile container/image styles */
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index__hero-slider {
    padding-top: 10px !important; /* Ensure small top padding */
  }
  .page-index__hero-slider-slide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__promo-duo {
    padding: 0 12px;
    margin-bottom: 20px;
  }
}