body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #333;
}

.services {
  padding: 10px 20px;
  background-color: #fff;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0);
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 600; /* Light weight */
  padding-top: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: #f4f4f4;
  padding: 15px 20px;
  border-left: 8px solid #004f9b;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s ease;
  height: auto;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #004f9b;
  padding-bottom: 5px;
  border-bottom: 2px solid #004f9b;
  display: inline-block;
  width: fit-content;
  font-weight: 600; /* Light weight */
}

.service-card p {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.4;
  color: #555;
}

/* Custom black rectangular button - smaller size */
.cta-button {
  align-self: flex-start;
  margin-top: auto;
  padding: 4px 16px;
  border: 2px solid black;
  background-color: white;
  color: black;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: black;
  color: white;
}

/* Unique left border colors for each card */
.color-1 { border-left-color: #004f9b; }
.color-2 { border-left-color: #e67e22; }
.color-3 { border-left-color: #27ae60; }
.color-4 { border-left-color: #8e44ad; }
.color-5 { border-left-color: #c0392b; }
.color-6 { border-left-color: #16a085; }
.color-7 { border-left-color: #d35400; }
.color-8 { border-left-color: #2c3e50; }
.color-9 { border-left-color: #2980b9; }
.color-10 { border-left-color: #7f8c8d; }

.cta-contact {
  background: #f39c12;
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  font-size: 1.2rem;
  cursor: pointer;
  text-align: center;
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-contact:hover {
  background-color: #e67e22;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns on medium screens */
    overflow: hidden;
  }

  .services h2 {
    font-size: 2rem; /* Slightly smaller font size */
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr; /* Single column on small screens */
    overflow: hidden;
  }

  .services h2 {
    font-size: 1.4rem; /* Further reduce font size */
  }

  .service-card {
    padding: 12px 15px; /* Reduce padding */
  }

  .cta-button {
    font-size: 0.9rem; /* Smaller button size */
    padding: 6px 18px; /* Smaller padding for button */
  }

  .cta-contact {
    font-size: 1rem; /* Adjust font size for contact button */
    padding: 12px 15px; /* Adjust padding */
  }
}
