:root {
    --blue: #2d2d72;
    --yellow: #f5bf23;
    --black: #111;
    --white: #fff;
    --light-color: #585757;
    --light-bg: #eee;
    --box-shadow: 0 0.5rem 1rem rgba(0,0,0,.1);
    --border: .1rem solid rgba(0,0,0,.3);
}

/*==========================================================================================
                                OUR SERVICES SECTION STARTS
===========================================================================================*/
.services-section {
    text-align: center;
}
.services-section .animate {
    transform: scale(.7);
    opacity: 0;
    transition: 1s;
}

.services-section.show-animate .animate {
    transform: scale(1);
    opacity: 1;
}

#services .heading {
    display: inline-block;
    margin: 2rem 0;
    width: auto;
    font-size: 3rem;
    color: var(--black);
    text-transform: capitalize;
    padding-left: 1rem;
    border-left: 1rem solid var(--blue);
}

#services .heading-subtitle {
    max-width: 100%;
    font-size: 1.6rem;
    color: #555;
    margin: 0 auto;
    margin-bottom: 30px;
}

#services .services-container {
    padding-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

#services .services-container .service-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow-x: hidden;
    overflow-y: scroll;
}

.service-card img {
    width: 100%;
    height: 40%;
    object-fit: cover;
    object-position: center;
}

.service-card .service-title {
    font-size: 2rem;
    padding: 0px 16px;
    color: var(--blue);
}

.service-card .service-description {
    font-size: 1.4rem;
    padding: 0px 16px;
    color: var(--light-color);
}

.service-card .sub-services {
    padding-top: 30px;
    text-align: left;
}

.service-card .sub-services .sub-service {
    border-top: 1px solid rgb(226, 224, 224);
    padding: 10px 16px;
    cursor: pointer;
    position: relative;
    color: var(--black);
    font-size: small;
    transition: background 0.2s;
}

.service-card .sub-services .sub-service:hover {
    background: #f0f0f0;
}

.sub-service .arrow {
    position: absolute;
    right: 10px;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sub-services .expanded-content {
    color: var(--blue);
}

/* Desktop screens */
@media (min-width: 1024px) {
    #services .heading-subtitle {
        max-width: 800px;
    }
}

@media (max-width: 991px) {
    #services .heading-subtitle {
        max-width: 800px;
        font-size: 1.4rem;
    }
}
            