/* style/index.css */

/* General styles for page-index */
.page-index {
  color: var(--text-main, #1F2D3D); /* Default text color for light background */
  background-color: var(--bg-color, #F4F7FB); /* Default background color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Spacing between sections */
.page-index__spacing-30px {
  margin-bottom: 30px;
}

/* Module 1: Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  overflow: hidden;
  max-width: 1920px; /* Ensure it doesn't get too wide on very large screens */
  margin: 0 auto;
}

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

.page-index__hero-slider-slide {
  flex: 0 0 100%;
  position: relative;
  display: none; /* Hidden by default, shown by JS */
}

.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);
  min-height: 200px; /* Minimum size requirement */
}

.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;
  transition: background-color 0.3s ease;
}

.page-index__hero-slider-prev:hover,
.page-index__hero-slider-next:hover {
  background: 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;
}

.page-index__hero-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border: none;
  padding: 0;
}

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


/* Module 3: Promo Duo + CTA */
.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;
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index__promo-duo-col img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 4px; /* Slight round for consistency */
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  min-height: 200px; /* Minimum size requirement */
}

.page-index__promo-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  transition: opacity 0.3s ease;
}

.page-index__promo-cta--alert {
  background: #e74c3c; /* High contrast alert color for CTA */
  background: linear-gradient(180deg, #FF6B6B 0%, #E74C3C 100%); /* Example alert gradient */
}

.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;
  box-sizing: border-box;
}

.page-index__main-heading {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--custom-color-1776249996415, #000000); /* Black text for H1 */
  margin-bottom: 15px;
  max-width: 90%; /* Prevent overflow on smaller desktop screens */
  margin-left: auto;
  margin-right: auto;
}

.page-index__intro-text {
  font-size: 18px;
  color: var(--text-main, #1F2D3D);
  max-width: 800px;
  margin: 0 auto;
}


/* 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 var(--auxiliary-color, #6FA3FF); /* Border color from auxiliary */
  border-radius: 15px;
  box-shadow: 0 0 20px var(--glow-color, #A5C4FF); /* Glow color */
  background: rgba(255, 255, 255, 0.92); /* Slightly transparent white background */
  color: var(--text-main, #1F2D3D); /* Ensure text color is readable on light background */
}

.page-index__home-content-inner {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden; /* Prevent horizontal scroll for inner content */
  padding: 12px 16px;
  text-align: justify;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Scrollbar styling */
.page-index__home-content-inner::-webkit-scrollbar {
  width: 10px;
}
.page-index__home-content-inner::-webkit-scrollbar-track {
  background: var(--background-color, #F4F7FB); /* Track color */
  border-radius: 10px;
}
.page-index__home-content-inner::-webkit-scrollbar-thumb {
  background-color: var(--auxiliary-color, #6FA3FF); /* Thumb color */
  border-radius: 20px;
  border: 3px solid var(--auxiliary-color, #6FA3FF); /* Border for thumb */
}

.page-index__content-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color, #2F6BFF); /* Primary color for H2 */
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-index__content-subheading {
  font-size: 22px;
  font-weight: 600;
  color: var(--custom-color-1776249996415, #000000); /* Black text for H3 */
  margin-top: 20px;
  margin-bottom: 10px;
}

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

.page-index__home-content-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 10px;
}

.page-index__home-content-list li {
  margin-bottom: 5px;
}

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

.page-index__content-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-height: 200px; /* Minimum size requirement */
}

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

.page-index__table-wrapper {
  overflow-x: auto; /* Allow horizontal scroll for tables on small screens */
  margin-bottom: 20px;
}

.page-index__content-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  min-width: 600px; /* Ensure table content is readable */
}