/* style/index.css */

/* General page-index styles */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: transparent; /* Main content area, body background handled by shared.css */
}

/* Ensure all images are responsive */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 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;
  margin-bottom: 30px; /* Module 2: Spacing */
}

.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 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.page-index__hero-slider-slide.is-active {
  opacity: 1;
  position: relative;
}

.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(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: 20px;
  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: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

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

/* Module 3: Promo Duo */
.page-index__promo-duo {
  max-width: 1250px;
  margin: 0 auto 30px auto;
  padding: 0 16px;
}

.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 {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  width: 100%;
  height: auto;
}

.page-index__promo-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
  color: #7A0E0E; /* Deep Red for text on gold button for contrast */
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* 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-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #C91F17; /* Primary color for H1 */
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Clamp for responsive H1 */
  margin: 0;
  padding: 0;
}

/* Module 5: Long SEO Content */
.page-index__home-content {
  max-width: 900px;
  margin: 24px auto;
  height: 700px;
  padding: 10px;
  box-sizing: border-box;
  border: 5px solid #E53935; /* Auxiliary color for border */
  border-radius: 15px;
  box-shadow: 0 0 20px #E53935; /* Auxiliary color for shadow */
  background: rgba(255, 255, 255, 0.92); /* Semi-transparent white background for content */
  color: #333333; /* Dark text for readability 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; /* Blueish for scrollbar thumb */
  border-radius: 20px;
  border: 3px solid #E53935; /* Auxiliary color for scrollbar border */
}

.page-index__home-content-inner h2,
.page-index__home-content-inner h3 {
  color: #C91F17; /* Primary color for headings */
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-index__home-content-inner h2 {
  font-size: 24px;
  font-weight: bold;
}

.page-index__home-content-inner h3 {
  font-size: 20px;
  font-weight: 600;
}

.page-index__home-content-inner p {
  margin-bottom: 15px;
}

.page-index__quick-links a {
  color: #C91F17; /* Primary color for links */
  text-decoration: none;
  font-weight: bold;
}

.page-index__quick-links a:hover {
  text-decoration: underline;
}

.page-index__milestone-list,
.page-index__step-list,
.page-index__contact-list,
.page-index__future-plan-list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  padding-left: 0;
}

.page-index__milestone-list li strong,
.page-index__step-list li strong {
  color: #E53935; /* Auxiliary color for strong text in lists */
}

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

.page-index__content-figure img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.page-index__content-figure figcaption {
  font-style: italic;
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

.page-index__table-wrapper {
  overflow-x: auto; /* For responsive tables */
  margin-bottom: 20px;
}

.page-index__content-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.page-index__content-table th,
.page-index__content-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.page-index__content-table th {
  background-color: #f2f2f2;
  font-weight: bold;
  color: #333;
}

/* Static FAQ styling for home_content */
.page-index__faq-question-static {
  font-size: 18px;
  font-weight: 600;
  color: #C91F17; /* Primary color for static FAQ questions */
  margin-top: 20px;
  margin-bottom: 10px;
}

/* Module 6: Latest Articles Blog Slider */
.page-index__blog-slider {
  max-width: 1250px;
  margin: 30px auto;
  padding: 0 16px;
}

.page-index__blog-slider-title {
  text-align: center;
  color: #C91F17; /* Primary color for blog title */
  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 */
}

.page-index__post-item {
  flex: 0 0 calc((100% - 40px) / 3); /* 3 cards on desktop */
  scroll-snap-align: start;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-index__post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(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: 12px;
  left: 12px;
  z-index: 2;
  background: #fff;
  border: 2px solid #C91F17; /* Primary color for border */
  border-radius: 4px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.2;
  color: #C91F17; /* Primary color for date text */
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.page-index__post-date-day {
  display: block;
  font-weight: 700;
  font-size: 18px;
}

.page-index__post-date-month {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
}

.page-index__post-item h5 {
  text-align: center;
  color: #E53935; /* Auxiliary color for post title */
  margin: 12px 10px 6px;
  font-size: 18px;
  font-weight: bold;
  height: 2.4em; /* Limit height for consistent card appearance */
  overflow: hidden;
}

.page-index__post-item p {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin: 0 10px 15px;
  height: 3em; /* Limit height for consistent card appearance */
  overflow: hidden;
}