/* style/index.css */

/* General styles for the page content */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

/* Module 1: Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, assuming body has 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;
  width: 100%;
}

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

.page-index__hero-slider-slide.is-active {
  opacity: 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);
  max-width: 100%; /* Ensure responsive */
  box-sizing: border-box;
}

.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: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

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

.page-index__hero-slider-dot.is-active {
  background: #2F6BFF; /* Primary color */
}

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

/* Module 3: Two-column Promo Duo + CTA */
.page-index__promo-duo {
  max-width: 1250px;
  margin: 0 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: #FFFFFF; /* Card BG */
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #D6E2FF; /* Border */
}

.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);
  max-width: 100%; /* Ensure responsive */
  box-sizing: border-box;
}

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

.page-index__promo-cta--alert {
  background: #e74c3c; /* A strong alert color for CTA */
  color: #fff;
}

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

/* Module 4: Decorative Main Title (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: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  color: #2F6BFF; /* Primary color */
  line-height: 1.2;
  margin: 0;
}

/* Module 5: Long SEO Content Body (Scrolling Box) */
.page-index__home-content {
  max-width: 900px;
  margin: 24px auto;
  height: 700px;
  padding: 10px;
  box-sizing: border-box;
  border: 5px solid #6FA3FF; /* Auxiliary color */
  border-radius: 15px;
  box-shadow: 0 0 20px #A5C4FF; /* Glow color */
  background: #FFFFFF; /* Card BG */
  color: #1F2D3D; /* Text Main */
}

.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: #6FA3FF; /* Auxiliary color */
  border-radius: 20px;
  border: 3px solid #2F6BFF; /* Primary color */
}

.page-index__home-content-inner h2 {
  font-size: 28px;
  color: #2F6BFF; /* Primary color */
  margin-top: 25px;
  margin-bottom: 15px;
  text-align: center;
}

.page-index__home-content-inner h3 {
  font-size: 22px;
  color: #1F2D3D; /* Text Main */
  margin-top: 20px;
  margin-bottom: 10px;
}

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

.page-index__home-content-inner ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-index__home-content-inner li {
  margin-bottom: 8px;
}

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

.page-index__content-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%; /* Ensure responsive */
  box-sizing: border-box;
}

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

.page-index__table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
}

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

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

.page-index__content-table th {
  background-color: #E6F0FF; /* Lighter shade of primary */
  color: #1F2D3D; /* Text Main */
  font-weight: bold;
}

.page-index__home-content-inner a {
  color: #2F6BFF; /* Primary color for links */
  text-decoration: none;
}

.page-index__home-content-inner a:hover {
  text-decoration: underline;
}

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

.page-index__blog-slider-title {
  text-align: center;
  color: #2F6BFF; /* Primary color */
  text-transform: uppercase;
  font-size: 32px;
  margin-bottom: 25px;
}

.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;
  padding-bottom: 10px; /* Space for scrollbar */
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  background: #2F6BFF; /* Primary color */
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  opacity: 0.8;
}

.page-index__post-item {
  flex: 0 0 calc((100% - 40px) / 3); /* 3 items with 20px gap */
  scroll-snap-align: start;
  box-sizing: border-box;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #D6E2FF; /* Border */
}

.page-index__post-item a {
  text-decoration: none;
  color: #1F2D3D; /* Text Main */
  display: block;
}

.page-index__post-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
}

.page-index__post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%; /* Ensure responsive */
  box-sizing: border-box;
}

.page-index__post-date {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #fff;
  border: 2px solid #2F6BFF; /* Primary color */
  border-radius: 2px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.2;
  color: #2F6BFF; /* Primary color */
  font-size: 12px;
}

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

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

.page-index__post-item h5 {
  text-align: center;
  color: #000000; /* Custom Color_1776249996415 */
  margin: 12px 8px 6px;
  font-size: 18px;
  line-height: 1.3;
}

.page-index__post-item p {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin: 0 8px 12px;
  line-height: 1.4;
}

/* Global image styles for responsive behavior */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* General button styles for responsive behavior */
.page-index a[class*="btn"],
.page-index a[class*="cta"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__main-heading {
    font-size: clamp(26px, 3.5vw, 40px);
  }
  .page-index__home-content {
    max-width: 800px;
    height: 650px;
  }
  .page-index__blog-slider-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  /* Module 1: Hero Slider */
  .page-index__hero-slider {
    padding-top: 10px !important; /* Ensure small top padding */
  }
  .page-index__hero-slider-prev,
  .page-index__hero-slider-next {
    padding: 8px 12px;
    font-size: 20px;
  }

  /* Module 3: Two-column Promo Duo + CTA */
  .page-index__promo-duo-grid {
    grid-template-columns: 1fr !important; /* Single column */
    gap: 15px;
    display: flex;
    flex-direction: column;
  }
  .page-index__promo-duo-col {
    padding: 10px;
  }
  .page-index__promo-cta {
    padding: 12px 15px !important;
    font-size: 16px;
  }

  /* Module 4: Decorative Main Title (H1) */
  .page-index__section-title {
    margin: 20px auto;
    padding: 0 10px;
  }
  .page-index__main-heading {
    font-size: clamp(24px, 6vw, 36px);
  }

  /* Module 5: Long SEO Content Body (Scrolling Box) */
  .page-index__home-content {
    height: 60vh !important; /* Fixed height for mobile */
    min-height: 420px !important;
    max-height: 560px !important;
    margin: 16px 12px !important;
    border-width: 3px !important;
    padding: 8px !important;
  }
}