.brandcore-service-cards-wrapper {
    width: 100%;
    margin: 0 auto;
}

.brandcore-service-grid-header {
    text-align: center;
    margin-bottom: 50px;
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
}

.brandcore-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.brandcore-service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.brandcore-service-card-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.brandcore-service-card-image {
    width: 100%;
    /* height is controlled by Elementor widget settings */
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

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

.brandcore-service-card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 40px);
    padding: 15px 20px;
    background: linear-gradient(180deg, #2BB673 0%, #0072BC 100%);
    display: flex;
    align-items: center;
    margin-left: 40px;
    border-top-left-radius: 20px;
    min-height: 70px;
    box-sizing: border-box;
}

.brandcore-service-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;    
}

.brandcore-service-card-description {
    padding: 25px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    flex-grow: 1;
}

@media (max-width: 1024px) {
    .brandcore-service-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    
    .brandcore-service-card-title-overlay {
        margin-left: 30px;
        width: calc(100% - 30px);
        padding: 12px 15px;
        min-height: 60px;
    }

    .brandcore-service-card-title {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .brandcore-service-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .brandcore-service-grid-header {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .brandcore-service-card-title-overlay {
        margin-left: 20px;
        width: calc(100% - 20px);
        padding: 10px 15px;
        min-height: 55px;
        border-top-left-radius: 15px;
    }

    .brandcore-service-card-title {
        font-size: 14px;
    }

    .brandcore-service-card-description {
        padding: 20px 15px;
        font-size: 14px;
    }
}
