/* style/index.css */

/* General styles for page-index */
.page-index {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background: var(--secondary-color); /* Inherit from shared, assume light for text */
}

/* Module 1: Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  overflow: hidden;
  max-width: 100vw; /* Ensure it doesn't overflow */
}

.page-index__hero-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.page-index__hero-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.page-index__hero-slider-slide.is-active {
  opacity: 1;
  position: relative; /* Bring active slide to front for interaction */
  z-index: 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);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.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: 15px;
  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;
  border: none;
  padding: 0;
}

.page-index__hero-slider-dot.is-active {
  background: #fff;
}

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

/* Module 3: Dual-column Promo Area */
.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);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-index__promo-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  background: #017439; /* Default brand color for CTA */
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__promo-cta:hover {
  background-color: #005f2b; /* Darker shade on hover */
}

.page-index__promo-cta--alert {
  background: #C30808; /* Specific alert color for register/login */
  color: #FFFF00; /* Specific text color for register/login */
}

.page-index__promo-cta--alert:hover {
  background: #9d0606; /* Darker shade on hover */
}

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

.page-index__section-title h1 {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #017439; /* Brand color for H1 */
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size for H1 */
  max-width: 100%;
}

/* Module 5: Long SEO Content (Scrollbox) */
.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(0, 0, 0, 0.1); /* Changed shadow color for better contrast on white background */
  background: rgba(255, 255, 255, 0.92);
  color: #333333; /* Ensure text is dark on light background */
}