/* Base styles */
.page-index * {
  box-sizing: border-box;
}

/* Body background from shared, text color set for contrast */
.page-index {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: 'Lato', sans-serif;
}

/* Hero Section */
.page-index__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

/* Section Title */
.page-index__section-title {
  text-align: center;
  color: #F2FFF6; /* Text Main */
  margin: 30px auto 20px;
  padding: 0 15px;
  max-width: 1200px;
  font-size: 2.2em;
  font-weight: 700;
}

/* Service Grid Section */
.page-index__service-section {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.page-index__service-item {
  min-width: 0;
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-index__service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.page-index__service-link {
  display: block;
}

.page-index__service-item img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* Home Content Section */
.page-index__content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__page-title {
  text-align: center;
  color: #F2FFF6; /* Text Main */
  margin: 20px auto 30px;
  padding: 0 15px;
  font-size: clamp(1.8em, 2.5vw, 2.8em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
}

.page-index__home-content {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 20px;
  background-color: #08160F; /* Background */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  line-height: 1.7;
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
}

.page-index__home-content p,
.page-index__home-content ul,
.page-index__home-content ol {
  margin-bottom: 1em;
  color: #F2FFF6;
}

.page-index__home-content h2 {
  color: #F2FFF6; /* Text Main */
  margin: 28px 0 15px;
  font-size: 1.8em;
  font-weight: 600;
}

.page-index__home-content h3 {
  color: #F2FFF6; /* Text Main */
  margin: 20px 0 10px;
  font-size: 1.4em;
  font-weight: 500;
}

.page-index__home-content a {
  color: #57E38D; /* Glow */
  text-decoration: underline;
  transition: color 0.2s ease;
}

.page-index__home-content a:hover {
  color: #F2C14E; /* Gold */
}

.page-index__home-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
}

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

.page-index__home-content th {
  background-color: #0A4B2C; /* Deep Green */
  font-weight: 600;
  color: #F2FFF6;
}

.page-index__figure {
  margin: 25px 0;
  text-align: center;
}

.page-index__figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

/* Call to action button in long text */
.page-index__btn-primary {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-index__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  opacity: 0.9;
}

/* Partner Section */
.page-index__partner-section {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 15px;
  text-align: center;
  box-sizing: border-box;
}

.page-index__partner-title {
  color: #F2FFF6; /* Text Main */
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 15px;
}

.page-index__partner-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
  line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 10px; /* Ensure small top padding */
  }

  .page-index__section-title {
    font-size: 1.8em;
    margin-top: 25px;
  }

  .page-index__service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 10px;
  }

  .page-index__service-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__page-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 20px;
  }

  .page-index__home-content {
    padding: 15px;
    font-size: 1em;
    line-height: 1.6;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__home-content h2 {
    font-size: 1.5em;
    margin-top: 20px;
  }

  .page-index__home-content h3 {
    font-size: 1.2em;
    margin-top: 15px;
  }

  .page-index__home-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .page-index__home-content th,
  .page-index__home-content td {
    white-space: normal; /* Allow text wrapping within cells */
    min-width: 120px;
    padding: 8px 10px;
  }

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

  .page-index__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-index__partner-title {
    font-size: 1.6em;
  }

  /* General image and container responsiveness */
  .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;
  }
}