/**
 * TP Dịch Vụ Related Services Styles
 * Styles for related services section on single dich-vu pages
 * 
 * @package Flatsome Child
 * @version 1.0.0
 */

/* Related Services Section */

.tp-sv-related-title {
  text-align: center;
  margin-bottom: 2.5rem;
  font-family: var(--font-primary);
  font-size: var(--font-size-3xl);
  font-weight: 600;
  color: var(--tp-gray-900);
  line-height: var(--line-height-tight);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-tight);
}

/* Grid Layout */
.tp-sv-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Service Card */
.tp-sv-card {
  background: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tp-sv-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Card Image */
.tp-sv-card-image {
  position: relative;
  width: 100%;
  height: 12rem;
  overflow: hidden;
}

.tp-sv-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tp-sv-card:hover .tp-sv-card-image img {
  transform: scale(1.05);
}

/* Card Content */
.tp-sv-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tp-sv-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.tp-sv-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tp-sv-card-title a:hover {
  color: #ef402a;
}

.tp-sv-card-excerpt {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Read More Link */
.tp-sv-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ef402a;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
}

.tp-sv-card-link:hover {
  color: #dc2626;
  transform: translateX(2px);
}

.tp-sv-card-link i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.tp-sv-card-link:hover i {
  transform: translateX(2px);
}

/* Responsive Design */

/* Tablet Landscape */
@media (max-width: 1024px) {
  .tp-sv-related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .tp-sv-card-image {
    height: 10rem;
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  .tp-sv-related {
    padding: 2.5rem 0;
  }

  .tp-sv-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .tp-sv-card-content {
    padding: 1.25rem;
  }

  .tp-sv-card-image {
    height: 9rem;
  }

  .tp-sv-card-title {
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .tp-sv-related-title {
    font-size: var(--font-size-2xl);
  }
  .tp-sv-related {
    padding: 2rem 0;
  }

  .tp-sv-related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tp-sv-card-content {
    padding: 1rem;
  }

  .tp-sv-card-image {
    height: 8rem;
  }

  .tp-sv-card-title {
    font-size: 0.975rem;
  }

  .tp-sv-card-excerpt {
    font-size: 0.825rem;
  }
}
