/* style/index.css */

/* General styling for the page, ensuring light text on dark body background */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for main content */
  background-color: var(--deep-navy-color); /* Body background from shared.css */
}

/* Custom CSS Variables from palette */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg-color: #10233F;
  --text-main-color: #F3F8FF;
  --text-secondary-color: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy-color: #08162B; /* This should match body background from shared.css */
  --alert-color: #e74c3c; /* For promo cta--alert */
  --primary-color-rgb: 17, 59, 122; /* RGB for #113B7A */
}

/* --- Module 1: Hero Slider --- */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header-offset */
  overflow: hidden;
  max-width: 100%; /* Ensure it doesn't overflow */
  box-sizing: border-box;
}
.page-index__hero-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.page-index__hero-slider-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: none;
}
.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-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}
.page-index__hero-slider-prev,
.page-index__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(var(--primary-color-rgb), 0.5);
  color: var(--text-main-color);
  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: var(--primary-color);
}
.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: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}
.page-index__hero-slider-dot.is-active {
  background-color: #fff;
}

/* --- Module 3: Promo Duo --- */
.page-index__promo-duo {
  max-width: 1250px;
  margin: 30px auto; /* Spacing after slider */
  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 {
  background-color: var(--card-bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  box-sizing: border-box;
}
.page-index__promo-duo-col img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  margin-bottom: 15px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}
.page-index__promo-cta {
  display: block;
  width: calc(100% - 40px); /* 20px padding on each side */
  text-align: center;
  padding: 14px 20px;
  background: var(--button-gradient);
  color: var(--text-main-color);
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  transition: opacity 0.3s ease;
}
.page-index__promo-cta:hover {
  opacity: 0.9;
}
.page-index__promo-cta--alert {
  background: var(--alert-color); /* Override with alert color */
}

/* --- 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-text {
  font-size: clamp(2em, 3.5vw, 3em); /* Use clamp for H1 font-size */
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-color); /* Using gold for decorative h1 */
  text-shadow: 0 0 8px var(--glow-color);
  margin: 0;
}

/* --- Module 5: Long SEO Content --- */
.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(--secondary-color);
  border-radius: 15px;
  box-shadow: 0 0 20px var(--secondary-color);
  background: rgba(255, 255, 255, 0.92); /* Lighter background for readability */
  color: #333333; /* Dark text 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; /* Light blue thumb */
  border-radius: 20px;
  border: 3px solid var(--secondary-color);
}
.page-index__home-content-inner h2,
.page-index__home-content-inner h3 {
  color: var(--primary-color); /* Darker blue for headings */
  margin-top: 25px;
  margin-bottom: 15px;
}
.page-index__home-content-inner p {
  margin-bottom: 10px;
  color: #333333; /* Explicitly dark text */
}
.page-index__home-content-inner ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}
.page-index__home-content-inner li {
  margin-bottom: 5px;
  color: #333333; /* Explicitly dark text */
}
.page-index__home-content-inner figure {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8); /* Light background for figure */
  padding: 10px;
  border-radius: 8px;
}
.page-index__home-content-inner figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}
.page-index__home-content-inner figcaption {
  font-style: italic;
  font-size: 14px;
  color: #666; /* Explicitly dark text */
  margin-top: 10px;
}