/* style/index.css */

/* General page styling */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background: #FFFFFF; /* Default body background */
}

.page-index__section {
  padding: 20px 0;
  max-width: 1250px;
  margin: 0 auto;
}

/* Module 1: Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
  overflow: hidden;
  margin-bottom: 30px; /* Spacing for Module 2 */
}

.page-index__hero-slider-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%; /* Ensure track takes full width */
}

.page-index__hero-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}

.page-index__hero-slider-slide.is-active {
  opacity: 1;
  position: relative; /* Active slide takes up space */
}

.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; /* Minimum size requirement */
  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;
}

.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-dots .dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

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

/* Module 3: Promo Duo */
.page-index__promo-duo {
  max-width: 1250px;
  margin: 0 auto 30px auto; /* Spacing after module */
  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 {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-index__promo-cta--alert {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  background: #EA7C07; /* Use Login color for alert CTA */
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  min-width: 200px; /* Minimum size requirement */
  min-height: 40px; /* Minimum height for buttons */
}

.page-index__promo-cta--alert:hover {
  opacity: 0.9;
}

/* Module 4: Decorative Main Title (H1) */
.page-index__section-title {
  text-align: center;
  margin: 30px auto 40px auto; /* Spacing after module */
  max-width: 1250px;
  padding: 0 16px;
}

.page-index__main-heading {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #26A9E0; /* Brand color for main heading */
  margin: 0;
  padding: 0;
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
}

/* 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 #FFFFFF; /* White border as per prompt */
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1); /* Light shadow for readability */
  background: rgba(255, 255, 255, 0.92);
  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; /* Specified scrollbar color */
  border-radius: 20px;
  border: 3px solid #FFFFFF;
}

.page-index__home-content-inner h2.page-index__content-heading {
  color: #26A9E0; /* Brand color for H2 */
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 24px;
}

.page-index__home-content-inner h3.page-index__sub-heading {
  color: #333333; /* Dark text for H3 */
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 20px;
}

.page-index__home-content-inner p {
  margin-bottom: 1em;
}

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

.page-index__home-content-inner figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-index__home-content-inner figcaption {
  font-style: italic;
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

.page-index__home-content-inner ul.page-index__milestone-list,
.page-index__home-content-inner ul.page-index__step-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
  padding-left: 0;
}

.page-index__home-content-inner ul li {
  margin-bottom: 0.5em;
}

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

.page-index__content-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  min-width: 600px; /* Ensure table is wide enough to trigger overflow-x */
}

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

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

.page-index__quick-access-link,
.page-index__home-content-inner a {
  color: #26A9E0;
  text-decoration: none;
}

.page-index__quick-access-link:hover,
.page-index__home-content-inner a:hover {
  text-decoration: underline;
}

/* Module 6: Blog Card Slider */
.page-index__blog-slider {
  max-width: 1250px;
  margin: 30px auto 40px auto; /* Spacing after module */
  padding: 0 16px;
}

.page-index__blog-slider-title {
  text-align: center;
  color: #26A9E0; /* Brand 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 */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

.page-index__blog-slider-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari/Opera */
}