.page-index {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Custom main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* --- Module 0: Hero Section --- */
.page-index__hero-section {
  padding-top: 10px; /* Fixed small top padding, body handles --header-offset */
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-index__hero-image {
  width: 100%;
  max-width: 100%; /* Ensure image container is responsive */
  overflow: hidden;
  box-sizing: border-box;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%; /* Ensure image is responsive */
  object-fit: cover;
}

/* --- Module 1: H1 + SEO Long Text Section --- */
.page-index__content-section {
  max-width: 1250px;
  margin: 0 auto 40px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__page-title {
  color: #F2C14E; /* Gold for main title */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 16px;
  padding: 0 15px;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); /* H1 clamp font-size */
  line-height: 1.2;
}

.page-index__page-title::before,
.page-index__page-title::after {
  content: '';
  width: 40px;
  height: 3px;
  background-color: #2E7A4E; /* Custom border color for decorative lines */
  margin: 0 14px;
}

.page-index__home-content {
  max-width: 1250px;
  margin: 0 auto 36px;
  padding: 0 15px;
  box-sizing: border-box;
  line-height: 1.7;
  font-size: 1rem;
  color: #F2FFF6; /* Main text color */
}

.page-index__home-content h2 {
  color: #F2C14E; /* Gold for H2 */
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
}

.page-index__home-content h3 {
  color: #A7D9B8; /* Secondary text color for H3 */
  margin-top: 25px;
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.4;
}

.page-index__home-content p {
  margin-bottom: 1em;
}

.page-index__home-content ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
  padding-left: 0;
}

.page-index__home-content li {
  margin-bottom: 0.5em;
  color: #F2FFF6; /* Main text color for list items */
}

.page-index__home-content a {
  color: #57E38D; /* Glow color for links */
  text-decoration: underline;
}

.page-index__wp-caption {
  margin: 20px auto;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-index__wp-caption img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.page-index__wp-caption-text {
  font-style: italic;
  font-size: 0.9em;
  color: #A7D9B8; /* Secondary text color */
  margin-top: 8px;
}

.page-index__home-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background-color: #11271B; /* Custom Card BG for table */
  border: 1px solid #2E7A4E; /* Custom border color */
  border-radius: 8px;
  overflow: hidden;
}

.page-index__home-content td,
.page-index__home-content th {
  border: 1px solid #2E7A4E; /* Custom border color */
  padding: 10px 12px;
  text-align: left;
  color: #F2FFF6; /* Main text color */
}

.page-index__home-content th {
  background-color: #0A4B2C; /* Deep Green for table header */
  font-weight: bold;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  margin-top: 15px;
  cursor: pointer;
  border: none;
}

.page-index__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* --- Module 2: Latest Blog Section --- */
.page-index__blog-section {
  max-width: 1250px;
  margin: 0 auto 40px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__blog-section-title {
  color: #F2C14E; /* Gold for blog section title */
  text-align: center;
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.page-index__blog-slider {
  position: relative;
  overflow: hidden;
  max-width: 1250px;
  margin: 0 auto 40px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__blog-slider-track {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping on desktop for slider effect */
  gap: 20px;
  transition: transform 0.4s ease;
  width: 100%; /* Ensure track takes full width for flex item calculation */
}

.page-index__blog-slide {
  flex: 0 0 calc(33.333% - 14px); /* 3 columns with 20px gap */
  max-width: calc(33.333% - 14px);
  min-width: 0; /* Allow shrinking */
  background-color: #11271B; /* Custom Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__blog-card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.page-index__blog-card-image {
  position: relative;
  padding-top: 56%; /* 16:9 aspect ratio for images */
  overflow: hidden;
}

.page-index__blog-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%; /* Ensure image is responsive */
  display: block;
}

.page-index__blog-card-body {
  text-align: center;
  padding: 14px 10px;
}

.page-index__blog-card-body h5 {
  color: #F2C14E; /* Gold for blog card title */
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.4;
}

.page-index__blog-card-body p {
  color: #A7D9B8; /* Secondary text color for blog card description */
  font-size: 0.9em;
  line-height: 1.5;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #F2FFF6;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  font-size: 1.2rem;
  line-height: 1;
}

.page-index__blog-slider-prev {
  left: 0;
}

.page-index__blog-slider-next {
  right: 0;
}

/* --- Responsive styles for mobile (max-width: 768px) --- */
@media (max-width: 768px) {
  /* General mobile text and padding adjustments */
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Hero Section */
  .page-index__hero-section {
    padding-top: 10px;
  }

  /* Content Section */
  .page-index__content-section {
    padding: 0 15px;
    margin-bottom: 20px;
  }
}