/* CSS for Service Layout Add-on */

/* Font Awesome Icons */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css");

/* Icon service */
.icon-service i {
    display: inline-block !important;
    font-size: 20px;
    color: #fff;
    text-align: center;
    vertical-align: middle;
}

/* Hiệu ứng zoom ảnh khi hover */
.service-img {
    overflow: hidden;
    height: 100%;
}

.service-img img {
    transition: transform 0.5s ease;
    object-fit: cover;
    height: 100%;
}

.service-link:hover .service-img img {
    transform: scale(1.1);
}

/* Layout chính */
.service-container {
    max-width: 1029px;
    margin: 0 auto;
}

.service-parent {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: repeat(3, 1fr);
    height: 563px;
}

.service-div1 {
    grid-row: span 3;
    grid-column: 1;
}

.service-div2 {
    grid-column: 2;
    grid-row: 1;
}

.service-div3 {
    grid-column: 2;
    grid-row: 2;
}

.service-div4 {
    grid-column: 2;
    grid-row: 3;
}

.box-service {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.service-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(33, 147, 184, 0.80);
    color: white;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-div2 .service-title {
    background: rgba(1, 85, 146, 0.92);
}

.service-div3 .service-title {
    background: rgba(0, 41, 54, 0.80);
}

.service-div4 .service-title {
    background: rgba(20, 101, 128, 0.80);
}

.service-title h2 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
}

a.service-link {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.service-link:hover .service-title {
    background: rgba(0,0,0,0.8);
}

/* Thêm các icon mặc định */
.icon-service .fa-star:before {
    content: "\f005";
}
.icon-service .fa-code:before {
    content: "\f121";
}
.icon-service .fa-paint-brush:before {
    content: "\f1fc";
}
.icon-service .fa-bullhorn:before {
    content: "\f0a1";
}
.service-content {
    cursor: pointer;
}

.service-parent>div:not(.service-div1) .service-content {
    padding: 0 15px 15px;
}
.service-parent>div:not(.service-div1) .service-content span.icon-service {
    display: none;
}
.service-parent>div:not(.service-div1) .service-content h3 {
    display: inline-block;
}
.service-parent>div:not(.service-div1) .service-content a.read-more {
    display: none;
}
/* Responsive */
@media (max-width: 768px) {
    .service-parent {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    
    .service-div1, .service-div2, .service-div3, .service-div4 {
        grid-column: 1;
        grid-row: auto;
    }
    
    .box-service {
        margin-bottom: 15px;
        height: 250px;
    }

} 