/* Intro Section */
.services-intro {
    text-align: center; 
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
}

.services-intro p {
    color: #555;
    font-size: 1.1rem;
}

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

/* --- SERVICE CARD --- */
.service-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Hover Effect */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #e64a19; 
}

/* --- QUAN TRỌNG: STYLE CHO ICON --- */
.icon-box {
    text-align: center;
    padding: 25px 0 10px 0; 
    font-size: 3.5rem;      
    color: #e64a19;         
    transition: color 0.3s;
}

.service-card:hover .icon-box {
    color: #d84315; 
}

/* Ảnh Dịch Vụ */
.service-card img {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    border-bottom: 1px solid #eee;
    margin-top: 10px;
}

/* Nội dung Card */
.card-body {
    padding: 20px;
    text-align: center;
}

.card-body h3 {
    color: #0056b3;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-body p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- RESPONSIVE --- */

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

/* Mobile: 1 cột */
@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* --- MODAL STYLES --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); 
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto; 
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #e64a19;
}

/* Modal Body Styles */
.modal-body {
    text-align: center;
}

.modal-body img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-body h2 {
    color: #0056b3;
    margin-bottom: 15px;
}

.modal-body #modalDesc {
    text-align: left;
    line-height: 1.8;
    color: #333;
} 
