/*  GLOBAL  */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", sans-serif;
  background: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1rem; }

/*  NAVIGATION  */
nav {
  background: #1f2937;
  color: #fff;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #3FA8B7;
  text-transform: uppercase;
}
.logo-img { height: 32px; width: auto; display: block; }
.nav-links { display: flex; gap: 1rem; }
.nav-links a {
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: #47BFCF; }
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #3FA8B7;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.hamburger:active { transform: scale(0.9); }

/*  HERO  */
.hero {
  background: linear-gradient(135deg,
    rgba(25, 66, 78, 1) 0%,        /* your original tone */
    rgba(40, 100, 115, 0.9) 50%,   /* slightly richer midtone */
    rgba(70, 160, 175, 0.7) 100%   /* soft highlight */
  );
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin: 1rem;
  border-radius: 0.75rem;
}
.hero-content { max-width: 700px; padding: 2rem; }
.hero h1 { font-size: 2.3rem; margin-bottom: 0.7rem; }
.nrcpd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.nrcpd-badge i { color: #2dd4bf; }
.hero p { font-size: 1.1rem; margin-bottom: 2rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0.25rem;
  border: 1px solid transparent;
}
.btn-primary {
  background: #4BA9B7;
  color: #F9FAFB;
  border: none;
  transition: background 0.25s ease, transform 0.15s ease;
}
.btn-primary:hover {
  background: #3B8E9B;
  transform: translateY(-1px);
}
.btn-secondary {
  border: 2px solid #E8F1F2;
  color: #E8F1F2;
}
.btn-secondary:hover {
  background: #E8F1F2;
  color: #1E5A68;
}

/*  ABOUT  */
.about {
  background: #fff;
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
}
.about h2 { font-size: 1.9rem; margin-bottom: 1.25rem; }
.about p {
  max-width: 780px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.75;
}

/* SERVICES SECTION  */
.section#services {
  padding: 4rem 0;
}

.section#services h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Desktop grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  padding: 0 1rem;
  justify-items: center;
}

.service-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.25s ease;
  max-width: 360px;
}
.service-item:hover {
  transform: translateY(-3px);
  border-color: #3FA8B7;
}
.service-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #111827;
}
.service-item p {
  font-size: 0.80rem;
  color: #4b5563;
  line-height: 1.45;
}

.training-list {
  list-style: disc;
  padding-left: 1.25rem;  /* slightly tighter */
  margin: 0.25rem 0 0;   /* less top margin to avoid extra height */
  text-align: left;
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.4;       /* more compact lines */
}

.training-list li {
  margin: 0;              /* no gap between items */
  padding: 0;
}

.training-list li::marker {
  color: #3FA8B7;         /* brand teal bullets */
  font-size: 0.85rem;
}

/* Hidden extras for desktop */
.extra { display: none; }
.show-all .extra { display: block; }

/* View All button */
.view-all {
  display: inline-block;
  margin-top: 2rem;
  background: #3B8E9B;
  color: #F9FAFB;
  border: none;
  padding: 0.9rem 2.4rem;
  border-radius: 3rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}
.view-all:hover { background: #47BFCF; }

/* Scroll indicator */
.services-indicator {
  width: 80%;
  max-width: 300px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin: 1rem auto 0;
  overflow: hidden;
  position: relative;
}
.services-indicator::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: #3FA8B7;
  border-radius: 2px;
  transition: width 0.2s ease-out;
}

/*  SUPPORT SECTION  */
.support-section {
  background: #f5f5f4;
  padding: 3rem 1rem 5rem;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}
.support-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #1f2937;
}
.support-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.support-card {
  flex: 1 1 300px;
  max-width: 350px;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.support-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.support-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.support-card p {
  padding: 1.2rem;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
}

/*  CONTACT SECTION  */
.contact {
  background: #fff;
  padding: 5rem 1rem;
  text-align: center;
  box-shadow: 0 -1px 10px rgba(0,0,0,0.03);
  border-top: 1px solid #e5e7eb;
}
.contact h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}
.contact h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 2px;
  background: #47BFCF;
  margin: 0.6rem auto 0;
  border-radius: 2px;
}
.contact p {
  max-width: 600px;
  margin: 1.4rem auto 2rem;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.9;
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.contact-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}
.contact-card:hover {
  border-color: #3FA8B7;
  box-shadow: 0 4px 12px rgba(71,191,207,0.18);
  transform: translateY(-2px);
}
.contact-card i { font-size: 1.2rem; color: #47BFCF; }
.contact-card a, .contact-card span {
  color: #1f2937;
  font-weight: 600;
  font-size: 0.92rem;
}

/*  FOOTER  */
.footer {
  background: #1f2937;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
}
.footer p { font-size: 0.7rem; }
.text-gray { color: #d1d5db; font-size: 0.75rem; margin-top: 0.25rem; }

/*  MOBILE  */
@media (max-width: 767px) {
  /*  NAVIGATION  */
  nav .container { flex-wrap: wrap; }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #1f2937;
    width: 100%;
    position: absolute;
    top: 56px;
    left: 0;
    padding: 1rem;
    z-index: 999;
  }
  .nav-links.active { display: flex; }
  .hamburger { display: block; }

  /*  HERO  */
  .hero { min-height: 60vh; margin: 0.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }

  /*  ABOUT  */
  .about { padding: 3rem 1rem 2rem; }

  /*  SERVICES */
  .services-grid {
      display: flex !important;
      flex-wrap: nowrap !important;
      overflow-x: auto !important;
      scroll-snap-type: x mandatory !important;
      -webkit-overflow-scrolling: touch !important;
      gap: 1rem !important;
      padding: 1.2rem 0 2rem !important;
      grid-template-columns: none !important;
  }

  .service-item {
    flex: 0 0 82% !important;
    max-width: none !important;
    scroll-snap-align: start !important;
    padding: 2rem 1.4rem !important;   /* ← THIS LINE MAKES THEM TALLER */
    border-radius: 1rem !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
    min-height: 180px !important;      /* ← THIS GUARANTEES MINIMUM HEIGHT */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .services-grid::before {
    content: "";
    flex: 0 0 1rem;
  }
  .services-grid::after {
    content: "";
    flex: 0 0 1rem;
  }

  .service-item h3 {
    position: relative;
    padding-bottom: 0.9rem !important;
    margin-bottom: 1rem !important;
    font-size: 1.12rem !important;
  }

  .service-item h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #3FA8B7;
    border-radius: 2px;
  }

  .service-item p {
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
  }

  .extra { display: flex !important; }
  .view-all { display: none !important; }

  /*  SUPPORT SECTION  */
  .support-card img { height: 150px; }

  /*  CONTACT  */
  .contact-info {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    margin: 1.5rem auto 0;
  }
  .contact-card {
    width: 100%;
    justify-content: center;
    border-radius: 0.95rem;
    font-size: 0.95rem;
    padding: 0.75rem 0.9rem;
    background: #f3f4f6;
  }
  .contact-card a,
  .contact-card span {
    font-size: 0.95rem;
    flex: 1;
    text-align: center;
  }
}

/* DESKTOP */
@media (min-width: 768px) {
  .services-grid {
    display: flex; 
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    padding: 0 1rem;
  }
  .service-item {
    flex: 0 1 320px;       
    max-width: 360px;
  }
}
