.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
}

/* Module 1: Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Adjusted for shared body padding-top */
  overflow: hidden;
  max-width: 100%;
  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%;
  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%; /* Ensure responsiveness */
  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;
  user-select: none;
}
.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;
}
.page-index__hero-slider-dots button.is-active {
  background: #E53935; /* Main color */
}

/* Module 2: Spacing (implicit) */

/* Module 3: Promo Duo + CTA */
.page-index__promo-duo {
  margin-top: 30px; /* Spacing after slider */
  margin-bottom: 30px;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
  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;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  box-sizing: border-box;
}
.page-index__promo-duo-col img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
}
.page-index__promo-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button color */
  color: #fff;
  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:hover {
  opacity: 0.9;
}

/* Module 4: Decorative H1 */
.page-index__section-title {
  text-align: center;
  margin: 30px auto;
  max-width: 1250px;
  padding: 0 15px;
  box-sizing: border-box;
}
.page-index__section-title h1 {
  color: #E53935; /* Main color for emphasis */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Module 5: Long-form SEO Content */
.page-index__home-content {
  max-width: 900px;
  margin: 24px auto;
  height: 700px;
  padding: 10px;
  box-sizing: border-box;
  border: 5px solid #FF5A4F; /* Accent color for border */
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 90, 79, 0.6); /* Soft glow with accent color */
  background: rgba(255, 255, 255, 0.92); /* Card BG with slight transparency */
}
.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;
  color: #333333; /* Text Main */
}
.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 #FF5A4F; /* Accent color for scrollbar border */
}
.page-index__home-content-inner h2 {
  color: #E53935; /* Main color */
  margin-top: 25px;
  margin-bottom: 15px;
}
.page-index__home-content-inner h3 {
  color: #FF5A4F; /* Accent color */
  margin-top: 20px;
  margin-bottom: 10px;
}
.page-index__home-content-inner p {
  margin-bottom: 15px;
  color: #333333; /* Text Main */
}
.page-index__home-content-inner a {
  color: #E53935; /* Main color for links */
  text-decoration: none;
}
.page-index__home-content-inner a:hover {
  text-decoration: underline;
}
.page-index__home-content-inner ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #333333; /* Text Main */
}
.page-index__home-content-inner ul li {
  margin-bottom: 8px;
}
.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%; /* Ensure responsiveness */
  box-sizing: border-box;
}
.page-index__home-content-inner figcaption {
  font-style: italic;
  font-size: 14px;
  color: #666666;
  margin-top: 8px;
}
.page-index__content-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
}
.page-index__content-table th,
.page-index__content-table td {
  border: 1px solid #E0E0E0; /* Border color */
  padding: 10px;
  text-align: left;
  color: #333333; /* Text Main */
}
.page-index__content-table th {
  background-color: #f0f0f0;
  font-weight: bold;
}
.page-index__table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
}
.page-index__quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  max-width: 100%;
  box-sizing: border-box;
}
.page-index__quick-link-btn {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button color */
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: opacity 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-index__quick-link-btn:hover {
  opacity: 0.9;
}

/* Module 6: Latest Articles · Blog Card 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: #FF5A4F; /* Accent color */
  text-transform: uppercase;
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: bold;
}
.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, Opera */
}
.page-index__post-item {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  box-sizing: border-box;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  max-width: 100%;
}
.page-index__post-item:hover {
  transform: translateY(-5px);
}
.page-index__post-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.page-index__post-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
}
.page-index__post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
}
.page-index__post-date {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #fff;
  border: 2px solid #E53935; /* Main color */
  border-radius: 2px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.2;
  color: #E53935; /* 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: #E53935; /* Main color */
  margin: 12px 8px 6px;
  font-size: 18px;
  padding: 0 5px;
}
.page-index__post-item p {
  text-align: center;
  color: #666; /* Slightly darker grey for body text */
  font-size: 14px;
  margin: 0 8px 15px;
  padding: 0 5px;
  max-height: 42px; /* Limit summary to 2-3 lines */
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #E0E0E0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #333333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background: #f0f0f0;
}

/* General Image Responsiveness */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* General Button Responsiveness */
.page-index__quick-link-btn,
.page-index__promo-cta {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Module 1: Hero Slider */
  .page-index__hero-slider {
    padding-top: 10px !important; /* Ensure minimal top padding */
  }
  .page-index__hero-slider-prev,
  .page-index__hero-slider-next {
    padding: 8px 12px;
    font-size: 20px;
  }

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

  /* Module 4: Decorative H1 */
  .page-index__section-title h1 {
    font-size: 24px; /* Adjusted for mobile readability */
    padding: 0 10px;
  }
  .page-index__section-title {
    margin: 20px auto;
    padding: 0 10px;
  }

  /* Module 5: Long-form SEO Content */
  .page-index__home-content {
    height: 60vh; /* Fixed height for mobile */
    min-height: 420px;
    max-height: 560px;
    margin: 16px 10px; /* Adjusted margins */
    border-width: 3px;
    box-shadow: 0 0 15px rgba(255, 90, 79, 0.4);
  }
  .page-index__home-content-inner {
    padding: 10px;
  }
  .page-index__home-content-inner h2 {
    font-size: 20px;
    margin-top: 20px;
  }
  .page-index__home-content-inner h3 {
    font-size: 18px;
  }
  .page-index__home-content-inner p,
  .page-index__home-content-inner ul li,
  .page-index__home-content-inner figcaption,
  .page-index__content-table td,
  .page-index__content-table th {
    font-size: 14px;
  }
  .page-index__quick-links {
    flex-direction: column;
    gap: 10px;
  }
  .page-index__quick-link-btn {
    padding: 10px 15px;
    font-size: 15px;
  }
  .page-index__content-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap; /* Prevent text wrap inside cells */
  }
  .page-index__content-table thead,
  .page-index__content-table tbody,
  .page-index__content-table th,
  .page-index__content-table td,
  .page-index__content-table tr {
    display: block;
  }
  .page-index__content-table th,
  .page-index__content-table td {
    width: auto;
    text-align: left;
    white-space: normal; /* Allow text wrap in mobile table cells */
  }
  .page-index__content-table th:first-child,
  .page-index__content-table td:first-child {
    border-top: none;
  }
  .page-index__content-table th:last-child,
  .page-index__content-table td:last-child {
    border-bottom: none;
  }
  .page-index__content-table td:before {
    content: attr(data-label);
    font-weight: bold;
    display: inline-block;
    width: 80px; /* Adjust as needed */
    margin-right: 10px;
  }

  /* Module 6: Latest Articles · Blog Card Slider */
  .page-index__blog-slider {
    padding: 0 10px;
  }
  .page-index__blog-slider-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .page-index__post-item {
    flex: 0 0 100%;
  }
  .page-index__post-item h5 {
    font-size: 16px;
  }
  .page-index__post-item p {
    font-size: 13px;
  }
  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  /* Generic Image and Container Mobile Adaptations */
  .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: 10px;
    padding-right: 10px;
  }

  /* Generic Button Mobile Adaptations */
  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index a[class*="btn"] {
    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;
  }
  .page-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-index__cta-buttons {
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }
}