/* style/index.css */

/* Base styles for dark body background */
.page-index {
  color: #F2FFF6; /* Text Main */
  font-family: 'Arial', sans-serif;
}

.page-index__h2-title {
  color: #57E38D; /* Glow */
  text-align: center;
  margin: 30px auto 20px;
  font-size: 28px;
  font-weight: 700;
}

.page-index__h3-title {
  color: #A7D9B8; /* Text Secondary */
  margin: 20px 0 10px;
  font-size: 22px;
  font-weight: 600;
}

.page-index p {
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-index a {
  color: #2AD16F; /* A lighter green for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index a:hover {
  color: #57E38D; /* Glow */
}

/* Module 1: Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top margin, body handles header offset */
  overflow: hidden;
  margin-bottom: 30px; /* Module 2: spacing */
}

.page-index__hero-slider-track {
  display: flex;
  width: 300%; /* For 3 slides */
  transition: transform 0.6s ease-in-out;
}

.page-index__hero-slider-slide {
  width: calc(100% / 3);
  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 image size */
  min-height: 200px;
}

.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;
  font-size: 24px;
  z-index: 10;
  border-radius: 4px;
  min-width: 48px; /* Button minimum size */
  min-height: 48px;
}

.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;
}

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

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

/* Module 3: Promo Duo */
.page-index__promo-duo {
  max-width: 1250px;
  margin: 0 auto 40px;
  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 {
  text-align: center;
  background: #11271B; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-index__promo-duo-col img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #2E7A4E; /* Border */
  margin-bottom: 20px;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-index__promo-cta {
  display: inline-block;
  width: calc(100% - 40px);
  max-width: 300px; /* Example max-width for CTA */
  text-align: center;
  padding: 14px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  min-width: 150px; /* Button minimum size */
  min-height: 48px;
}

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

/* Module 4: H1 Title */
.page-index__section-title {
  text-align: center;
  margin: 30px auto 40px;
  max-width: 1250px;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-index__main-heading {
  color: #F2C14E; /* Gold */
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

/* 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 #2E7A4E; /* Border */
  border-radius: 15px;
  box-shadow: 0 0 20px #57E38D; /* Glow */
  background: rgba(255, 255, 255, 0.92); /* Light background for readability */
  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; /* Scrollbar thumb color */
  border-radius: 20px;
  border: 3px solid #2E7A4E; /* Border */
}

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

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

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

.page-index__home-content-inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-index__home-content-inner th,
.page-index__home-content-inner td {
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  text-align: left;
  color: #333333;
}

.page-index__home-content-inner th {
  background: #2E7A4E; /* Border */
  color: #F2FFF6; /* Text Main */
  font-weight: 700;
}

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

.page-index__home-content-inner ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Module 6: Blog 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: #2AD16F; /* Button gradient start for title */
  text-transform: uppercase;
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: 700;
}

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

.page-index__blog-slider-track::-webkit-scrollbar {
  height: 8px;
}

.page-index__blog-slider-track::-webkit-scrollbar-thumb {
  background-color: #13994A; /* Button gradient end */
  border-radius: 10px;
}

.page-index__post-item {
  flex: 0 0 calc((100% - 40px) / 3); /* 3 cards desktop */
  scroll-snap-align: start;
  box-sizing: border-box;
  background: #11271B; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.page-index__post-item:hover {
  transform: translateY(-5px);
}

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

.page-index__post-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Fixed 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 4px;
  border-bottom: 1px solid #2E7A4E; /* Border */
}

.page-index__post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-index__post-date {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #11A84E; /* Primary color */
  border-radius: 4px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.2;
  color: #11A84E; /* Primary color */
  font-weight: 600;
}

.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: #F2FFF6; /* Text Main */
  margin: 12px 8px 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.page-index__post-item p {
  text-align: center;
  color: #A7D9B8; /* Text Secondary */
  font-size: 14px;
  margin: 0 8px 15px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  background: #1E3A2A; /* Divider */
  color: #F2FFF6;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 4px;
  flex-shrink: 0;
  min-width: 48px; /* Button minimum size */
  min-height: 48px;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-index {
    font-size: 15px;
  }

  .page-index__hero-slider {
    padding-top: 10px !important; /* Ensure small top padding */
    margin-bottom: 20px;
  }

  .page-index__hero-slider-prev,
  .page-index__hero-slider-next {
    padding: 8px 12px;
    font-size: 20px;
  }

  .page-index__promo-duo {
    margin-bottom: 30px;
  }

  .page-index__promo-duo-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 15px;
  }

  .page-index__promo-cta {
    width: calc(100% - 30px) !important; /* Adjust padding */
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 15px;
    margin: 0 auto;
  }

  .page-index__section-title {
    margin: 20px auto 30px;
  }

  .page-index__main-heading {
    font-size: clamp(24px, 6vw, 36px);
    padding: 0 10px;
  }

  .page-index__home-content {
    height: 60vh; /* Responsive height for scrollbox */
    min-height: 420px;
    max-height: 560px;
    margin: 16px 12px;
    border-width: 3px;
    padding: 5px;
  }

  .page-index__home-content-inner {
    padding: 10px 12px;
  }

  .page-index__home-content-inner table {
    display: block;
    overflow-x: auto; /* Horizontal scroll for tables */
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .page-index__home-content-inner table th,
  .page-index__home-content-inner table td {
    padding: 10px;
    font-size: 13px;
  }

  .page-index__blog-slider {
    margin: 20px auto;
    padding: 0 10px;
  }

  .page-index__blog-slider-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-index__blog-slider-wrap {
    gap: 5px;
  }

  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    padding: 8px 10px;
    font-size: 20px;
    min-width: 40px;
    min-height: 40px;
  }

  .page-index__blog-slider-track {
    gap: 15px;
  }

  .page-index__post-item {
    flex: 0 0 100%; /* Single card for mobile */
  }

  .page-index__post-item h5 {
    font-size: 16px;
    margin: 10px 5px 5px;
  }

  .page-index__post-item p {
    font-size: 13px;
    margin: 0 5px 10px;
  }

  /* General mobile image adaptation */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* General mobile button adaptation */
  .page-index a[class*="cta"],
  .page-index a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-index__promo-duo-grid,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* Ensure buttons wrap */
    gap: 10px;
  }

  .page-index__promo-duo-col .page-index__promo-cta {
    margin: 0 auto;
  }

  .page-index__h2-title {
    font-size: 24px;
  }

  .page-index__h3-title {
    font-size: 20px;
  }
}