.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f5f5f5; /* Light background for overall page content */
}

.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  background-color: #FFFFFF;
}

.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-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  line-height: 1;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.page-index__hero-slider-prev:hover,
.page-index__hero-slider-next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.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-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-slider-dot.is-active {
  background-color: #FFFFFF;
}

.page-index__spacing {
  height: 30px;
}

.page-index__promo-duo {
  max-width: 1250px;
  margin: 0 auto 30px 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: #EA7C07; /* Custom color for 'Login' buttons */
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__promo-cta:hover {
  background-color: #d46c00;
}

.page-index__section-title {
  text-align: center;
  margin: 30px auto;
  max-width: 1250px;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-index__section-title-text {
  font-size: clamp(2em, 3.5vw, 2.8em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: #26A9E0; /* Brand color for H1 */
  margin: 0;
  padding: 0;
}

.page-index__home-content {
  max-width: 900px;
  margin: 24px auto;
  height: 700px;
  padding: 10px;
  box-sizing: border-box;
  border: 5px solid #FFFFFF;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); /* White shadow for light background */
  background: rgba(255, 255, 255, 0.92);
  color: #333333; /* Ensure dark text on light background */
}

.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; /* Accent color for scrollbar */
  border-radius: 20px;
  border: 3px solid #FFFFFF;
}

.page-index__home-content-inner h2 {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 25px;
  margin-bottom: 15px;
  text-align: left;
}

.page-index__home-content-inner h3,
.page-index__content-subheading {
  font-size: 1.4em;
  color: #26A9E0;
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: left;
}

.page-index__home-content-inner p {
  margin-bottom: 1em;
}

.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);
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__home-content-inner figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: #666666;
  margin-top: 8px;
}

.page-index__home-content-inner ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 1em;
}

.page-index__home-content-inner li {
  margin-bottom: 0.5em;
}

.page-index__quick-links {
  font-weight: bold;
  margin-top: 15px;
  text-align: center;
}

.page-index__quick-link {
  color: #26A9E0;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.page-index__quick-link:hover {
  text-decoration: underline;
  color: #1a7bb0;
}

.page-index__table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.page-index__content-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is wide enough for content */
}

.page-index__content-table th,
.page-index__content-table td {
  border: 1px solid #e0e0e0;
  padding: 12px;
  text-align: left;
  color: #333333;
}

.page-index__content-table th {
  background-color: #f0f0f0;
  font-weight: bold;
  color: #26A9E0;
}

.page-index__content-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.page-index__content-table a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-index__content-cta {
  display: inline-block;
  padding: 12px 25px;
  background-color: #EA7C07;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-index__content-cta:hover {
  background-color: #d46c00;
}

.page-index__blog-slider {
  max-width: 1250px;
  margin: 30px auto 50px auto;
  padding: 0 16px;
  box-sizing: border-box;
  background-color: #26A9E0; /* Brand color background for blog section */
  border-radius: 8px;
  padding-bottom: 30px;
}

.page-index__blog-slider-title {
  text-align: center;
  color: #FFFFFF;
  text-transform: uppercase;
  font-size: 2em;
  padding-top: 30px;
  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: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

.page-index__blog-slider-track::-webkit-scrollbar-track {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-index__post-item {
  flex: 0 0 calc((100% - 40px) / 3); /* 3 cards with 20px gap */
  scroll-snap-align: start;
  box-sizing: border-box;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  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: inherit;
  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: 8px;
  left: 8px;
  z-index: 2;
  background: #fff;
  border: 2px solid #26A9E0;
  border-radius: 4px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.2;
  color: #26A9E0;
  font-size: 10px;
}

.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: #26A9E0; /* Brand color for blog card titles */
  margin: 12px 8px 6px;
  font-size: 1.1em;
  line-height: 1.4;
  min-height: 2.8em; /* Ensure consistent height for titles */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-index__post-item p {
  text-align: center;
  color: #666;
  font-size: 0.9em;
  margin: 0 8px 15px;
  min-height: 2.7em; /* Ensure consistent height for summaries */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* Responsive styles for mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-index {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__hero-slider {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-index__hero-slider-prev,
  .page-index__hero-slider-next {
    padding: 8px 12px;
    font-size: 20px;
  }

  .page-index__promo-duo {
    padding: 0 15px;
  }

  .page-index__promo-duo-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 15px;
  }

  .page-index__promo-cta {
    padding: 12px 15px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__section-title {
    padding: 0 15px;
  }

  .page-index__section-title-text {
    font-size: clamp(1.8em, 5vw, 2.2em);
  }

  .page-index__home-content {
    height: 60vh; /* Fixed height for scroll box */
    min-height: 420px;
    max-height: 560px;
    margin: 16px 12px;
    border-width: 3px;
    padding: 5px;
  }

  .page-index__home-content-inner {
    padding: 10px;
  }

  .page-index__home-content-inner h2 {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-index__home-content-inner h3,
  .page-index__content-subheading {
    font-size: 1.2em;
    margin-top: 15px;
    margin-bottom: 8px;
  }

  .page-index__content-table {
    display: block;
    overflow-x: auto;
    width: 100%;
    min-width: unset;
  }

  .page-index__content-table th,
  .page-index__content-table td {
    padding: 8px;
    white-space: nowrap;
  }

  .page-index__blog-slider {
    padding: 0 15px 20px 15px;
    margin: 20px auto 40px auto;
  }

  .page-index__blog-slider-title {
    font-size: 1.6em;
    padding-top: 20px;
    margin-bottom: 20px;
  }

  .page-index__blog-slider-wrap {
    flex-direction: column; /* Stack arrows and track */
    gap: 15px;
  }

  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    position: static;
    transform: none;
    margin: 0 auto;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-index__blog-slider-track {
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    padding-bottom: 0; /* Remove padding for scrollbar on mobile, as it's horizontal */
  }

  .page-index__post-item {
    flex: 0 0 100%; /* Single card on mobile */
    margin-bottom: 15px;
  }

  .page-index__post-item h5 {
    font-size: 1em;
    min-height: auto;
  }

  .page-index__post-item p {
    font-size: 0.85em;
    min-height: auto;
  }
}

/* Global image and button responsive styles (ensuring no overflow) */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-index__promo-cta,
.page-index__content-cta {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__promo-duo,
.page-index__section-title,
.page-index__home-content,
.page-index__blog-slider {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__promo-duo,
  .page-index__section-title,
  .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;
  }

  .page-index__promo-cta,
  .page-index__content-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}