.page-index {
  color: #333333; /* Default text color for light body background */
  background-color: #F5F7FA; /* Background color from custom palette */
}

/* Module 1: Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  overflow: hidden;
  max-width: 1920px; /* Max width to contain large images */
  margin: 0 auto;
}
.page-index__hero-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.page-index__hero-slider-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  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(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  color: #333333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.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;
  z-index: 10;
}
.page-index__hero-slider-dot {
  width: 10px;
  height: 10px;
  background: 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: #E53935;
}

/* Module 2: Spacing */
.page-index__promo-duo {
  margin-top: 30px; /* Spacing after slider */
}

/* Module 3: Promo Duo */
.page-index__promo-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1250px;
  margin: 0 auto 30px auto; /* Spacing before H1 */
  padding: 0 16px;
}
.page-index__promo-duo-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 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, #FF5A4F 0%, #E53935 100%); /* Button color */
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  transition: opacity 0.3s ease;
}
.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 16px;
}
.page-index__main-heading {
  font-size: clamp(24px, 4vw, 48px); /* H1 font size with clamp */
  font-weight: 700;
  line-height: 1.2;
  color: #E53935; /* Brand color for H1 */
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0;
}

/* Module 5: 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 #FF5A4F; /* Border color from custom palette */
  border-radius: 15px;
  box-shadow: 0 0 20px #FF5A4F; /* Shadow color from custom palette */
  background: rgba(255, 255, 255, 0.92); /* Card BG with slight transparency */
  color: #333333; /* 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 color */
  border-radius: 20px;
  border: 3px solid #FF5A4F; /* Scrollbar border color */
}
.page-index__content-heading {
  font-size: 28px;
  color: #E53935; /* Brand color for H2 */
  margin-top: 25px;
  margin-bottom: 15px;
  text-align: left;
}
.page-index__content-subheading {
  font-size: 22px;
  color: #FF5A4F; /* Auxiliary color for H3 */
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: left;
}
.page-index__home-content-inner p {
  line-height: 1.6;
  margin-bottom: 10px;
}
.page-index__home-content-inner a {
  color: #E53935; /* Link color */
  text-decoration: underline;
}
.page-index__content-figure {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
}
.page-index__content-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}
.page-index__content-figure figcaption {
  font-style: italic;
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}
.page-index__content-list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 15px;
}
.page-index__content-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}
.page-index__table-wrapper {
  overflow-x: auto; /* For horizontal scrolling on small screens */
  margin-top: 20px;
  margin-bottom: 20px;
  border: 1px solid #E0E0E0; /* Border color */
  border-radius: 8px;
}
.page-index__content-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table doesn't shrink too much */
}
.page-index__content-table th,
.page-index__content-table td {
  border: 1px solid #E0E0E0; /* Border color */
  padding: 12px 15px;
  text-align: left;
  color: #333333; /* Text Main */
}
.page-index__content-table th {
  background-color: #f0f0f0;
  font-weight: 600;
  color: #E53935; /* Brand color for table headers */
}
.page-index__content-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Module 6: Blog Slider */
.page-index__blog-slider {
  max-width: 1250px;
  margin: 30px auto;
  padding: 0 16px;
}
.page-index__blog-slider-title {
  text-align: center;
  color: #E53935; /* Brand color for H3 */
  text-transform: uppercase;
  font-size: 28px;
  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: 15px; /* Space for scrollbar */
}
.page-index__blog-slider-track::-webkit-scrollbar {
  height: 8px;
}
.page-index__blog-slider-track::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 10px;
}
.page-index__post-item {
  flex: 0 0 calc((100% - 40px) / 3); /* 3 items with 20px gap */
  scroll-snap-align: start;
  box-sizing: border-box;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.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; /* Fixed aspect ratio for blog covers */
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}
.page-index__post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}
.page-index__post-date {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #fff;
  border: 2px solid #E53935; /* Brand color border */
  border-radius: 2px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.2;
  color: #E53935; /* Brand color text */
  font-weight: 600;
}
.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: #333333; /* Text Main */
  margin: 12px 8px 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  padding: 0 8px;
}
.page-index__post-item p {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin: 0 8px 15px;
  padding: 0 8px;
}
.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #E0E0E0; /* Border color */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  color: #E53935; /* Brand color */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.page-index__blog-slider-prev {
  margin-right: 8px;
}
.page-index__blog-slider-next {
  margin-left: 8px;
}

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

/* General button responsive styles */
.page-index__promo-cta,
.page-index a[class*="button"],
.page-index a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  padding: 14px 20px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}