.service-block {
    padding: 5rem 0;
    transition: all .5s ease;
    position: relative;
    z-index: 1
}

.service-block.bg-white {
    background: var(--cream-white)
}

.service-block.bg-dark {
    background-color: var(--emerald-primary) !important
}

.service-image {
    position: relative;
    text-align: center
}

.service-image img {
    width: 80%;
    transition: transform .3s ease;
    animation: fly 10s linear infinite;
    border-radius: 25px;
}

.service-image:hover img {
    transform: translateY(-5px)
}

.service-content {
    padding: 2rem
}

.service-content h2 {
    color: var(--emerald-primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700
}

.bg-dark .service-content h2,
.bg-dark .service-content p,
.bg-dark h3 {
    color: var(--cream-white)
}

.service-content p {
    text-align: justify;
    color: var(--emerald-medium);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 2rem
}

.sub-services-wrapper {
    padding: 2rem 0;
    position: relative
}

.sub-services-slider {
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    margin: 0 auto
}

.sub-service-card {
    overflow: hidden;
    transition: transform .3s ease;
    height: 100%
}

.sub-service-card:hover {
    transform: translateY(-5px)
}

.bg-dark .sub-service-content h4 {
    color: var(--cream-white);
    font-size: 1.25rem;
    margin-bottom: 1rem
}

.bg-dark .sub-service-content p {
    color: var(--cream-white);
    line-height: 1.6;
    margin-bottom: 0
}

.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background: var(--emerald-primary) !important;
    border-radius: 50%;
    color: var(--cream-white) !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 1 !important
}

.swiper-button-prev {
    left: -50px
}

.swiper-button-next {
    right: -50px
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px
}

.bg-dark .swiper-button-next,
.bg-dark .swiper-button-prev {
    background: var(--cream-white);
    color: var(--emerald-primary)
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--emerald-dark);
    color: var(--cream-white)
}

.bg-dark .swiper-button-next:hover,
.bg-dark .swiper-button-prev:hover {
    background: rgba(255, 255, 255, .8)
}

@media (max-width:1200px) {
    .sub-services-slider {
        max-width: 85%
    }
}

@media (max-width:991px) {
    .service-block {
        padding: 3rem 0
    }

    .service-content {
        padding: 1.5rem 0;
        text-align: center
    }

    .service-content h2 {
        font-size: 2rem
    }
}

@media (max-width:768px) {
    .sub-services-slider {
        max-width: 100%;
        padding: 10px 50px
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px
    }

    .swiper-button-prev {
        left: 0
    }

    .swiper-button-next {
        right: 0
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 9999
}

.service-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.7);
    background: var(--cream-white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(var(--dark-blue-rgb), .3)
}

.service-popup-image {
    position: relative
}

.service-popup-image img {
    max-width: 100%;
    max-height: 350px;
    margin: 0 auto;
    text-align: center
}

.service-popup-next,
.service-popup-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    color: var(--emerald-primary);
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(var(--dark-blue-rgb), .2);
    z-index: 10
}

.service-popup-prev {
    left: 0
}

.service-popup-next {
    right: 0
}

.service-popup-next:hover,
.service-popup-prev:hover {
    background: var(--cream-white)
}

.service-popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible
}

.service-popup-content-wrapper {
    padding: 0
}

.service-popup-title {
    font-size: 1.75rem;
    margin: 1.5rem 0 1.5rem 0;
    color: var(--emerald-primary);
    font-weight: 600;
    padding-top: 20px;
    border-top: 1px solid #80808026
}

.service-popup-content {
    line-height: 1.6;
    color: var(--emerald-medium);
    text-align: justify;
    margin-bottom: 1.5rem
}

.service-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, .9);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: .5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .3s ease;
    z-index: 10001;
    box-shadow: 0 2px 5px rgba(var(--dark-blue-rgb), .2)
}

.service-popup-close:hover {
    background-color: var(--cream-white);
    transform: scale(1.1)
}

.service-popup::-webkit-scrollbar {
    width: 8px
}

.service-popup::-webkit-scrollbar-track {
    background: var(--cream-light);
    border-radius: 4px
}

.service-popup::-webkit-scrollbar-thumb {
    background: var(--emerald-medium);
    border-radius: 4px
}

.service-popup::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-dark)
}

@media (max-width:768px) {
    .service-popup {
        width: 95%;
        padding: .5rem
    }

    .service-popup-title {
        font-size: 1.5rem;
        text-align: center
    }

    .service-popup-content-wrapper {
        padding: 0 .5rem
    }

    .service-popup-image img {
        max-width: 80%;
        height: auto;
        margin: 0 auto;
        text-align: center
    }

    .service-popup-close {
        top: .5rem;
        right: .5rem;
        width: 35px;
        height: 35px;
        color: var(--emerald-primary)
    }
}

@supports (-webkit-touch-callout:none) {
    .service-popup {
        -webkit-overflow-scrolling: touch
    }
}