/* =======================================================================================================
 * CSS cho Dịch vụ con Shortcode
 * Thiết kế lưới 3-2-1 cột, card bo góc, hover zoom ảnh và hiệu ứng Skeleton shimmer.
 * ======================================================================================================= */

.vdw-services-container {
    width: 100%;
    margin: 20px 0;
    position: relative;
}

/* Lưới dịch vụ */
.vdw-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Card Dịch vụ */
.vdw-service-card {
    background: #f4f6f8;
    /* Nền xám nhạt nhẹ giống hình minh họa */
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.vdw-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* Wrapper hình ảnh (Tỷ lệ 3:2) */
.vdw-service-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 62%;
    /* Gần tỷ lệ trong hình mẫu */
    overflow: hidden;
    background-color: #eaeaea;
}

.vdw-service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.vdw-service-card:hover .vdw-service-image {
    transform: scale(1.06);
    /* Zoom nhẹ */
}

/* Thông tin dịch vụ */
.vdw-service-info {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vdw-service-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f294a;
    /* Xanh đậm sang trọng */
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* Giới hạn tối đa 2 dòng tiêu đề */
    overflow: hidden;
    transition: color 0.25s ease;
}

.vdw-service-card:hover .vdw-service-title {
    color: var(--primary-color, #00ACEC);
    /* Đổi màu thương hiệu khi hover card */
}

.vdw-service-price {
    font-size: 14px;
    color: #8c9ba5;
    /* Chữ xám nhạt */
    margin: 0;
    font-weight: 500;
    margin-top: auto;
    /* Đẩy giá xuống đáy card nếu tiêu đề ngắn */
}

/* Hiệu ứng Skeleton Loading */
.vdw-services-skeleton {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.skeleton-card {
    background: #f4f6f8;
    border-radius: 14px;
    overflow: hidden;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.skeleton-image {
    width: 100%;
    height: 170px;
}

.skeleton-text-wrapper {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.skeleton-title {
    height: 18px;
    width: 80%;
    border-radius: 4px;
}

.skeleton-price {
    height: 14px;
    width: 45%;
    border-radius: 4px;
    margin-top: auto;
}

/* Hiệu ứng nhấp nháy (Shimmer Animation) */
.shimmer {
    background: #e2e8f0;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer-animation 1.5s infinite;
}

@keyframes shimmer-animation {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive */
@media (max-width: 850px) {

    .vdw-services-grid,
    .vdw-services-skeleton {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .vdw-service-title {
        font-size: 16px;
    }

    .vdw-service-info {
        padding: 16px 20px;
    }
}

@media (max-width: 549px) {

    .vdw-services-grid,
    .vdw-services-skeleton {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}