/* Rebuilt Service Area Styles */
.rebuilt-service-area {
    /* Background handled by data-background attribute */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
}

.rebuilt-service-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Hover Effect - Lift and Shadow */
.rebuilt-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Colorful Bottom Border on Hover */
.rebuilt-service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B, #FFD54F);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.rebuilt-service-card:hover::after {
    transform: scaleX(1);
}

/* Icon Container */
.rebuild-service-icon {
    width: 80px;
    height: 80px;
    background-color: #F7F9FA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.rebuilt-service-card:hover .rebuild-service-icon {
    background-color: #edf2f7;
    transform: scale(1.1);
}

.rebuild-service-icon img {
    max-width: 50px;
    max-height: 50px;
}

/* Typography */
.rebuilt-service-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #2D3436;
    margin-bottom: 12px;
}

.rebuilt-service-text {
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    color: #636E72;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Mobile Specific Adjustments */
@media (max-width: 991px) {
    .rebuilt-service-area {
        padding: 60px 0;
    }

    /* Ensure space between columns when they stack */
    .rebuilt-service-col {
        margin-bottom: 30px;
    }

    /* Last child should have extra space to avoid back-to-top button overlap */
    .rebuilt-service-col:last-child {
        margin-bottom: 50px;
    }
}