/* =========================================
   MODERN SERVICE CARDS DESIGN
   ========================================= */

.service-card {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  background: #fff;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.service-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px 20px 20px;
  background: linear-gradient(to top, rgba(0, 15, 40, 0.95) 0%, rgba(0, 15, 40, 0.8) 50%, rgba(0, 15, 40, 0) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
}

.service-icon {
  font-size: 2.2rem;
  color: transparent; /* Transparent inside */
  -webkit-text-stroke: 1.5px var(--accent); /* Cyan outline */
  margin-bottom: 10px;
  display: block;
}

.service-card-content h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-card-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.learn-more {
  align-self: flex-end;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}

.learn-more::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.service-card:hover .learn-more::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* MOBILE RESPONSIVE RULES */
@media (max-width: 991px) {
  /* Fix container width if needed */
  .tm-gallery {
    margin-bottom: 3rem !important;
  }
}

@media (max-width: 767px) {
  .service-card-img {
    aspect-ratio: 16 / 9;
  }
  
  .service-card-content h3 {
    font-size: 1.15rem;
  }
  
  .service-card-content p {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }
}
