.ns-service-grid {
  display: grid;
  gap: 30px;
  padding: 30px 15px;
  justify-content: center;
}

.ns-service-box {
  background-color: #ffffff;
  border: 1px solid #ccc;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  padding: 20px;
  text-align: center;
  border-radius: 8px;
}

/* Image container */
.ns-service-image img {
  width: 100% !important;
  height: auto !important;
  margin: 0 auto 15px;
  display: block;
}

/* Title styling */
.ns-service-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0057B8;
}

/* Content styling */
.ns-service-content {
  font-size: 1rem;
  color: #333;
}

/* HOME PAGE - CORE SERVICES */
.ns-core-services {
    margin-bottom: 40px;
    padding: 20px 0;
    background-color: #f9f9f9; /* Optional */
}
.ns-service-link {
    display: block;
    text-align: center;
    color: inherit;
    text-decoration: none; /* Removes underline */
}

.ns-service-link:hover,
.ns-service-link:focus {
    text-decoration: none; /* Ensures no underline on hover/focus */
}

.ns-service-block img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 200px; /* Optional: limits vertical size */
    border-radius: 6px; /* Optional: adds rounded corners */
}
@media (max-width: 768px) {
    .ns-service-grid {
        flex-direction: column;
    }

    .ns-service-block {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
}


/* Responsive grid columns 
 * *****************************/
@media (min-width: 1200px) {
  .ns-service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .ns-service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .ns-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ns-service-image img {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .ns-service-image img {
    max-width: 200px;
  }
}
