:root {
  --page-index-primary-color: #C91F17;
  --page-index-secondary-color: #E53935;
  --page-index-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --page-index-card-bg: #D32F2F;
  --page-index-background: #B71C1C;
  --page-index-text-main: #FFF5E1;
  --page-index-border-color: #F2B544;
  --page-index-glow-color: #FFCC66;
  --page-index-gold-color: #F4D34D;
  --page-index-deep-red-color: #7A0E0E;
}

.page-index {
  background-color: var(--page-index-background); /* Dark Red background */
  color: var(--page-index-text-main); /* Creamy white text for general sections */
  padding-bottom: 30px; /* Ensure some space at the bottom */
}

/* 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: 100%; /* Ensure no overflow */
  box-sizing: border-box;
}

.page-index__hero-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.page-index__hero-slider-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.page-index__hero-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: relative; /* For the image inside */
}

.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);
  max-width: 100%; /* Ensure image itself is responsive */
  box-sizing: border-box;
}

.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: var(--page-index-text-main);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  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;
  z-index: 10;
}

.page-index__hero-slider-dot {
  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;
  padding: 0;
}

.page-index__hero-slider-dot.is-active {
  background-color: var(--page-index-gold-color); /* Active dot in gold */
}

/* Module 2: Spacing */
.page-index__spacing {
  height: 30px;
  width: 100%;
}

/* Module 3: Promo Duo + CTA */
.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;
  align-items: center;
}

.page-index__promo-duo-col img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  max-width: 100%; /* Ensure image itself is responsive */
  box-sizing: border-box;
}

.page-index__promo-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  background: var(--page-index-button-gradient); /* Gold gradient */
  color: var(--page-index-deep-red-color); /* Deep Red text for contrast on gold */
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  max-width: 100%; /* Ensure button is responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.page-index__promo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Module 4: Decorative H1 Title */
.page-index__section-title {
  text-align: center;
  margin: 30px auto 40px auto;
  max-width: 1250px;
  padding: 0 16px;
  box-sizing: border-box;
  color: var(--page-index-gold-color); /* Gold color for H1 */
}

.page-index__section-title h1 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Module 5: Long SEO Content (Scrolling Box) */
.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 var(--page-index-secondary-color); /* Secondary Red border */
  border-radius: 15px;
  box-shadow: 0 0 20px var(--page-index-secondary-color); /* Secondary Red glow */
  background: rgba(255, 255, 255, 0.92); /* Light background for readability */
  color: #333333; /* Dark text for 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; /* Blue-green scrollbar thumb */
  border-radius: 20px;
  border: 3px solid var(--page-index-secondary-color); /* Secondary Red border for thumb */
}

.page-index__home-content-inner figure {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
}