/* style/index.css */

/* General Page Styling */
.page-index {
  color: #F2FFF6; /* Text Main for dark body background */
  background-color: #08160F; /* Body Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__spacing-30 {
  margin-bottom: 30px;
}

/* Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding as body has padding-top */
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__hero-slider-track {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.page-index__hero-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  transition: transform 0.5s ease-in-out;
  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);
  max-width: 100%;
  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-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
}

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

/* Promo Duo */
.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: #11271B; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.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, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border-radius: 0 0 8px 8px;
  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; /* High contrast alert color (red) */
}

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

/* Section Title (H1) */
.page-index__section-title {
  text-align: center;
  margin: 30px auto;
  max-width: 1250px;
  padding: 0 16px;
  color: #F2FFF6; /* Text Main */
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
}

/* Home Content (Long SEO Text) */
.page-index__home-content {
  max-width: 900px;
  margin: 24px auto;
  height: 700px;
  padding: 10px;
  box-sizing: border-box;
  border: 5px solid #2E7A4E; /* Border color */
  border-radius: 15px;
  box-shadow: 0 0 20px #57E38D; /* Glow color */
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* 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; /* Scrollbar thumb color */
  border-radius: 20px;
  border: 3px solid #2E7A4E; /* Border color */
}

.page-index__home-content-inner h2 {
  color: #2AD16F; /* Brighter green for subheadings */
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 1.8em;
}

.page-index__home-content-inner h3 {
  color: #A7D9B8; /* Text Secondary */
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.5em;
}

.page-index__home-content-inner p {
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.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;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-index__home-content-inner figcaption {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-top: 10px;
}

.page-index__home-content-inner ul,
.page-index__home-content-inner ol {
  margin-left: 20px;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

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

.page-index__home-content-inner strong {
  color: #57E38D; /* Glow color for emphasis */
}

.page-index__content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 8px;
  overflow: hidden;
}

.page-index__content-table th,
.page-index__content-table td {
  border: 1px solid #1E3A2A; /* Divider color */
  padding: 12px;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}

.page-index__content-table th {
  background-color: #0A4B2C; /* Deep Green */
  font-weight: bold;
  color: #57E38D; /* Glow color */
}

.page-index__content-table tr:nth-child(even) {
  background-color: #11271B; /* Card BG */
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */\  border-radius: 5px;
  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__button:hover {
  opacity: 0.9;
}

/* 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; /* Brighter green for subheadings */
  text-transform: uppercase;
  margin-bottom: 25px;
  font-size: 2em;
}

.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, Opera */
}

.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: #11271B; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-width: 280px; /* Ensure minimum width for cards */
}

.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: 4px 4px 0 0;
}

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

.page-index__post-date {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #F2FFF6; /* Text Main for background */
  border: 2px solid #11A84E; /* Main color */
  border-radius: 2px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.2;
  color: #11A84E; /* Main color for text */
  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: #2AD16F; /* Brighter green for headings */
  margin: 12px 8px 6px;
  font-size: 1.2em;
  padding: 0 5px;
}

.page-index__post-item p {
  text-align: center;
  color: #A7D9B8; /* Text Secondary */
  font-size: 14px;
  margin: 0 8px 15px;
  padding: 0 5px;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  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;
  flex-shrink: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Hero Slider */
  .page-index__hero-slider {
    padding-top: 10px !important; /* Ensure minimal top padding */
  }

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

  /* Promo Duo */
  .page-index__promo-duo-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-index__promo-duo-col img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__promo-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Section Title (H1) */
  .page-index__section-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin: 20px auto;
    padding: 0 10px;
  }

  /* Home Content (Long SEO Text) */
  .page-index__home-content {
    height: 60vh;
    min-height: 420px;
    max-height: 560px;
    margin: 16px 12px;
    border-width: 3px;
    padding: 8px;
  }

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

  .page-index__home-content-inner h2 {
    font-size: 1.5em;
  }

  .page-index__home-content-inner h3 {
    font-size: 1.2em;
  }

  .page-index__home-content-inner figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__content-table {
    display: block;
    overflow-x: auto;
  }

  .page-index__content-table th,
  .page-index__content-table td {
    padding: 8px;
    white-space: nowrap; /* Prevent text wrapping in table cells for horizontal scroll */
  }

  .page-index__button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Blog Slider */
  .page-index__blog-slider {
    padding: 0 10px;
  }

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

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

  .page-index__post-item {
    flex: 0 0 100%; /* Single item per view on mobile */
    min-width: unset;
  }

  .page-index__post-item img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  /* Generic image and button adaptations */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__section,
  .page-index__card,
  .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .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;
    padding-right: 15px;
  }

  .page-index__cta-buttons,
  .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;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }
}