/* style/index.css */

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

.page-index__main-heading {
  font-size: clamp(28px, 4vw, 48px); /* H1 font size with clamp */
  font-weight: 700;
  color: #2F6BFF;
  text-align: center;
  margin: 30px auto;
  max-width: 1250px;
  padding: 0 16px;
}

.page-index__content-heading {
  font-size: 28px;
  color: #2F6BFF; /* Main color for H2 */
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.page-index__content-subheading {
  font-size: 22px;
  color: #6FA3FF; /* Accent color for H3 */
  margin-top: 25px;
  margin-bottom: 15px;
  text-align: center;
}

.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 15px rgba(0, 0, 0, 0.1);
}

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

.page-index__content-list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  max-width: 800px;
  margin: 20px auto;
}

.page-index__content-list li {
  margin-bottom: 10px;
}

.page-index__content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  max-width: 800px;
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  overflow: hidden; /* For rounded corners */
}

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

.page-index__content-table th {
  background-color: #2F6BFF; /* Main color */
  color: #ffffff;
  font-weight: bold;
}

.page-index__content-table tr:nth-child(even) {
  background-color: #F4F7FB; /* Background */
}

.page-index__quick-access a {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: bold;
}
.page-index__quick-access a:hover {
  text-decoration: underline;
}

/* --- Module 1: Hero Slider --- */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding */
  overflow: hidden;
  max-width: 100%;
  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;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-top: 10px; /* Inherit from parent */
  box-sizing: border-box;
}

.page-index__hero-slider-slide.is-active {
  position: relative;
  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 responsiveness */
}

.page-index__hero-slider-prev,
.page-index__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: 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;
}

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

.page-index__hero-slider-dots button.is-active {
  background-color: #2F6BFF; /* Main color */
}

/* --- Module 3: Promo Duo --- */
.page-index__promo-duo {
  max-width: 1250px;
  margin: 30px auto; /* Spacing below hero and above h1 */
  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;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 15px;
  box-sizing: border-box;
}

.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%;
  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 gradient */
  color: #fff;
  border-radius: 44px;
  text-decoration: none;
  font-weight: bold;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.page-index__promo-cta--alert {
  background: linear-gradient(180deg, #ff7e5f 0%, #feb47b 100%); /* Alert color for CTA */
  color: #fff;
}
.page-index__promo-cta--alert:hover {
  background: linear-gradient(180deg, #feb47b 0%, #ff7e5f 100%);
}


/* --- 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 #6FA3FF; /* Accent color for border */
  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: #4C9BB6; /* Custom scrollbar thumb */
  border-radius: 20px;
  border: 3px solid #6FA3FF; /* Accent color for scrollbar border */
}

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

.page-index__home-content-inner table {
  width: 100%;
  border-collapse: collapse;
}

.page-index__table-responsive {
  max-width: 100%;
  overflow-x: auto;
  margin: 20px auto;
  box-sizing: border-box;
}

/* --- Module 6: 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: #6FA3FF; /* Accent color */
  text-transform: uppercase;
  margin-bottom: 25px;
  font-size: 28px;
}

.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 items on desktop with 20px gap */
  scroll-snap-align: start;
  box-sizing: border-box;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding-bottom: 15px;
}

.page-index__post-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-index__post-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px 8px 0 0; /* Top corners rounded */
}

.page-index__post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

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

.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: #2F6BFF; /* Main color */
  margin: 15px 8px 8px;
  font-size: 18px;
  font-weight: 600;
}