/* ==================================
SERVICES GRID
================================== */

.services-grid-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.services-grid-section::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -180px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(20, 175, 195, .04);
}

.services-grid-section::after {
    content: "";
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(20, 175, 195, .05);
}

.services-grid-section .container {
    position: relative;
    z-index: 2;
}

/* ==================================
CARD
================================== */
.service-hover-card {

    position: relative;

    background: #fff;

    border-radius: var(--radius-lg);

    overflow: hidden;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);

}

.service-hover-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

/* Accent */
.service-hover-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: .35s;
    z-index: 5;
}

.service-hover-card:hover::before {
    transform: scaleX(1);
}

/* ==================================
IMAGE
================================== */
.service-image {
    position: relative;

    overflow: hidden;
}

.service-image img {
    width: 100%;

    display: block;

    transition: .7s;
}

.service-hover-card:hover img {
    transform: scale(1.08);
}

/* ==================================
OVERLAY
================================== */
.service-overlay {
    background: #fff;

    padding: 28px 30px;

    transition: .45s;
}

/* Title */
.service-overlay h3 {

    margin: 0;

    transition: .3s;
}

/* Hidden Content */
.service-overlay p,
.service-overlay .btn-theme-sm {
    max-height: 0;
    opacity: 0;

    overflow: hidden;

    visibility: hidden;

    transition: .35s ease;
}

.service-overlay p {
    margin: 20px 0;
    /* color: rgba(255, 255, 255, .88); */
    line-height: 1.8;
}

.service-overlay .btn-theme-sm {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Hover */
.service-hover-card:hover .service-overlay {
    padding-bottom: 35px;
}

.service-hover-card:hover .service-overlay p,
.service-hover-card:hover .service-overlay .btn-theme-sm {
    max-height: 300px;

    opacity: 1;

    visibility: visible;
}

/* ==================================
BUTTON
================================== */
.btn-theme-sm {
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-theme-sm:hover {
    background: #fff;
    color: var(--primary);
}

.btn-theme-sm i {
    transition: .3s;
}

.btn-theme-sm:hover i {
    transform: translateX(5px);
}

/* ==================================
RESPONSIVE
================================== */
@media(max-width:1199px) {
    .service-hover-card {
        height: 480px;
    }
}

@media(max-width:991px) {
    .service-hover-card {
        height: 430px;
    }
}

/* Mobile - Hover doesn't exist */
@media(max-width:767px) {
    .service-hover-card {
        height: auto;
        border-radius: var(--radius);
    }

    .service-image {
        height: 260px;
    }

    .service-overlay {
        position: relative;
        background: #fff;
        color: var(--secondary);
        padding: 25px;
    }

    .service-overlay h3 {
        color: var(--secondary);
    }

    .service-overlay p {
        color: var(--text);
    }

    .service-overlay p,
    .service-overlay .btn-theme-sm {
        max-height: 300px;

        opacity: 1;

        visibility: visible;
    }
}

@media(max-width:575px) {
    .service-image {
        height: 220px;
    }

    .service-overlay {
        padding: 20px;
    }

}