/* FlipBox 3D - Apenas estilização visual */

/* Cores diferentes para cada card */
.services-row .col-md-3:nth-child(1) .employee-hover {
    background: linear-gradient(135deg, #dc143c 0%, #b8102f 100%) !important;
}

.services-row .col-md-3:nth-child(2) .employee-hover {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%) !important;
}

.services-row .col-md-3:nth-child(3) .employee-hover {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%) !important;
}

.services-row .col-md-3:nth-child(4) .employee-hover {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%) !important;
}

.employee .default img {
    width: 100%;
    max-width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.employee .default h4 {
    font-size: 20px;
    color: #2c3e50;
    font-weight: 700;
    margin: 12px 0 8px 0;
    line-height: 1.3;
}

.employee .default p {
    font-size: 14px;
    font-weight: 600;
    color: #dc143c;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.employee .employee-hover h4 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.employee .employee-hover p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    opacity: 0.95;
}

.employee .employee-hover .contact-info {
    font-weight: 700;
    margin: 15px 0;
    font-size: 16px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    letter-spacing: 0.5px;
}

.employee .employee-hover .btn {
    border: 2px solid white;
    background: white;
    color: #dc143c;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.employee .employee-hover .btn:hover {
    background: #dc143c;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Layout helper */
.services-row {
    display: flex !important; /* MUDADO para flex como no teste */
    flex-wrap: wrap !important;
    gap: 30px !important; /* Espaço natural entre cards */
    margin: 0 !important;
    padding: 40px 15px !important;
    overflow: visible !important;
}

.services-row .col-md-3,
.services-row .col-sm-6,
.services-row .col-xs-12 {
    flex: 0 1 calc(25% - 23px) !important; /* 25% menos o gap */
    max-width: calc(25% - 23px) !important;
    padding: 0 !important; /* Remove padding - gap já dá o espaço */
    overflow: visible !important;
}

@media (max-width: 991px) {
    .services-row .col-sm-6 {
        flex: 0 1 calc(50% - 15px) !important;
        max-width: calc(50% - 15px) !important;
    }
}

@media (max-width: 767px) {
    .services-row .col-xs-12 {
        flex: 0 1 100% !important;
        max-width: 100% !important;
    }
}

/* Responsividade */
@media (max-width: 1199px) {
    .employee.rotation {
        height: 340px;
    }
}

@media (max-width: 991px) {
    .employee.rotation {
        height: 320px;
    }
    
    .employee .default img {
        height: 120px;
    }
    
    .employee .employee-hover h4 {
        font-size: 20px;
    }
    
    .employee .employee-hover p {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .services-row .col-md-3 {
        padding-bottom: 25px;
    }

    .employee.rotation {
        height: 300px;
    }

    .employee .default img {
        height: 110px;
        max-width: 180px;
    }
    
    .employee .default h4 {
        font-size: 18px;
    }
    
    .employee .employee-hover h4 {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .employee.rotation {
        height: 280px;
    }
    
    .employee .employee-hover {
        padding: 20px 15px;
    }
    
    .employee .employee-hover h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .employee .employee-hover p {
        font-size: 12px;
    }
    
    .employee .employee-hover .contact-info {
        font-size: 14px;
        margin: 10px 0;
    }
    
    .employee .employee-hover .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}
