/* MODERN SERVICES SECTION STYLE - IMAGE VERSION */
.home-services {
    position: relative;
    padding: 40px 0 20px 0;
    background-color: #f9fbfd;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* GRID LAYOUT */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* CARD DESIGN */
.service-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden; /* Quan trọng để ảnh không tràn khi zoom */
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* THUMBNAIL STYLE */
.service-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-thumbnail img {
    transform: scale(1.1);
}

.service-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* Nội dung bên trong Card */
.card-content {
    padding: 25px 30px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* HEADER: TITLE */
.card-header {
    margin-bottom: 15px;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
    line-height: 1.4;
    min-height: 3.6em; /* Đảm bảo chiều cao tiêu đề đồng nhất (2 dòng) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.service-card:hover .service-title a {
    color: var(--primary-color);
}

/* PRICE TAG */
.price-tag {
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}

.price-label {
    font-size: 0.85rem;
    color: #888;
}

.price-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #e63946;
}

/* FEATURES LIST */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.service-features li {
    font-size: 0.9rem;
    color: #636e72;
    margin-bottom: 8px;
    padding-left: 22px;
    position: relative;
}

.service-features li:before {
    content: '\f058'; /* FontAwesome check circle */
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 1px;
    color: #00b894;
    font-size: 14px;
}

/* BUTTONS */
.card-footer {
    margin-top: auto; /* Đẩy xuống đáy card */
    display: flex;
    justify-content: center; /* Căn giữa nút theo chiều ngang */
    padding-top: 10px;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 85%; /* Độ rộng nút cân đối (không quá dài, không quá ngắn) */
    padding: 12px 20px;
    background: #f8f9fa;
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    margin: 0 auto; /* Đảm bảo cân bằng 2 bên */
}

.service-card:hover .btn-detail {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb, 0, 82, 204), 0.3);
}

.btn-detail i {
    margin-left: 10px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-detail:hover i {
    transform: translateX(5px);
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-bottom: 20px;
    }
    
    .service-thumbnail {
        height: 200px;
    }

    .btn-detail {
        width: 90%; /* Trên mobile cho nút rộng hơn một chút để dễ bấm */
    }
}

/* FOOTER BUTTON "XEM TẤT CẢ" - RE-DESIGNED */
.services-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    padding-top: 0;
    clear: both;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 45px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 100px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 2px solid var(--primary-color);
}

.btn-view-all i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-view-all:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.btn-view-all:hover i {
    transform: translateX(8px);
}
