.services-main-container {
  padding: 50px 20px;
  text-align: center;
  max-width: 1200px;
  margin: auto;
}

.services-main-heading {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #1e266d;
  font-weight: 700;
  line-height: 1.3;
}

.services-main-intro {
  font-size: 1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.services-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.services-main-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #f1f3f4;
}

.services-main-card h3 {
  font-size: 1.3rem;
  margin: 15px 0 10px 0;
  color: #333;
  font-weight: 600;
  line-height: 1.4;
}

.services-main-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 15px;
}

.services-main-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.services-main-icon {
  font-size: 2rem;
  color: #0077b6;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
}

/* Button styling */
.services-main-btn {
  margin-top: auto;
  background-color: #0077b6;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  text-align: center;
}

.services-main-btn:hover {
  background-color: #005f8c;
  color: #fff;
  text-decoration: none;
}

/* Scroll Animation */
.services-main-animate-up {
  animation: services-main-fadeUp 0.8s ease forwards;
}

.services-main-icon i {
  font-size: 2rem;
  color: #0077b6;
}


@keyframes services-main-fadeUp {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .services-main-container {
      padding: 30px 15px;
  }
  
  .services-main-heading {
      font-size: 1.6rem;
  }
  
  .services-main-intro {
      font-size: 0.9rem;
      margin-bottom: 30px;
  }
  
  .services-main-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  
  .services-main-card {
      padding: 20px;
  }
  
  .services-main-card h3 {
      font-size: 1.2rem;
  }
  
  .services-main-card p {
      font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .services-main-heading {
      font-size: 1.4rem;
  }
  
  .services-main-card {
      padding: 15px;
  }
  
  .services-main-icon {
      height: 50px;
  }
  
  .services-main-icon i {
      width: 35px;
      height: 35px;
  }
}