/* ============================================
   DỊCH VỤ NỔI BẬT - CARD STYLES
   ============================================ */

.dichvunoibat-wrapper {
    max-width: 300px;
    margin: 0 auto;
}

.dichvunoibat-card {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.dichvunoibat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.dichvunoibat-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.dichvunoibat-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to top, rgba(255, 142, 35, 0.7), transparent);
    transition: height 0.3s ease;
}

.dichvunoibat-card:hover .dichvunoibat-image {
    transform: scale(1.05);
}

.dichvunoibat-card:hover .dichvunoibat-image::after {
    height: 60%;
}

.dichvunoibat-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px 5px 30px;
    z-index: 2;
}

.dichvunoibat-title {
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    margin: 0 0 10px 0;
    line-height: 1.2;
}

/* Container cho 3 danh mục */
.dichvunoibat-categories {
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

/* Khi hover vào card - chuyển sang xếp dọc */
.dichvunoibat-card:hover .dichvunoibat-categories {
    flex-direction: column;
    gap: 12 px;
    max-width: 300px;
}

/* Nút danh mục */
.dichvunoibat-category-btn {
    display: inline-block;
    background: #0033cc;
    color: white;
    padding: 5px 10px;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    white-space: nowrap;
    flex: 0 0 auto;
}

/* Khi hover vào card - nút rộng hơn */
.dichvunoibat-card:hover .dichvunoibat-category-btn {
    width: 100%;
    min-width: 220px;
    padding: 14px 24px;
    font-size: 19px;
}

/* Hover vào nút riêng lẻ */
.dichvunoibat-category-btn:hover {
    background: #0055ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    color: #FF8E23;
    text-decoration: none;
}

/* Responsive - Mobile với 2 trạng thái như desktop */
@media (max-width: 768px) {
    .dichvunoibat-card {
        height: 350px;
    }

    .dichvunoibat-title {
        font-size: 20px;
    }

    .dichvunoibat-content {
        padding: 25px 15px 20px;
    }

    /* Chưa hover - 3 nút nằm ngang */
    .dichvunoibat-categories {
        flex-direction: row;
        gap: 5px;
    }

    .dichvunoibat-category-btn {
        font-size: 10px;
        padding: 8px 12px;
        flex: 0 0 auto;
        width: auto;
    }

    /* Khi hover/touch - chuyển sang dọc */
    .dichvunoibat-card:hover .dichvunoibat-categories,
    .dichvunoibat-card:active .dichvunoibat-categories {
        flex-direction: column;
        gap: 10px;
        max-width: 250px;
    }

    .dichvunoibat-card:hover .dichvunoibat-category-btn,
    .dichvunoibat-card:active .dichvunoibat-category-btn {
        width: 100%;
        max-width: 200px;
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Gradient overlay trên mobile */
    .dichvunoibat-image::after {
        height: 25%;
    }

    .dichvunoibat-card:hover .dichvunoibat-image::after,
    .dichvunoibat-card:active .dichvunoibat-image::after {
        height: 65%;
    }
}
