﻿
picture img{
   /* display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;*/
}

.imp-service-box {
    background-color: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 30px;
    position: relative;
    height: 200px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.imp-service-title {
    margin-top: 90px;
    color: #004990;
    font-size: 18px;
    font-weight: 600;
}

.circle-sec {
    position: absolute;
    left: 0;
    right: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 15px solid #E9F1EC;
    top: -50px;
    margin: auto;
    transition: 0.3s;
    z-index: 2;
}

.circle-sec-outer {
    position: absolute;
    left: 0;
    right: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #fff;
    border: 15px solid #E9F1EC;
    top: -50px;
    margin: auto;
    z-index: 1;
}

.circle-sec-hover-border {
    position: absolute;
    left: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    top: -35px;
    margin: auto;
    z-index: 4;
    transition: 0.3s;
}

.circle-sec-hover-border-outer {
    position: absolute;
    left: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 8px solid #E9F1EC;
    top: -35px;
    margin: auto;
    z-index: 3;
    transition: 0.3s;
}

.circle-sec-hover-border::before,
.circle-sec-hover-border::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid transparent;
    top: -10px;
    left: 0;
}

/* Fixed full-circle hover animation */
/*.flip-card-inner:hover .circle-sec-hover-border::before {
    border-color: #009C39 transparent transparent transparent;
    transform: rotate(0deg);
    animation: borderSpinBefore 0.6s linear forwards;
}

.flip-card-inner:hover .circle-sec-hover-border::after {
    border-color: transparent #009C39 transparent transparent;
    transform: rotate(0deg);
    animation: borderSpinAfter 0.6s linear 0.3s forwards;
}*/

@keyframes borderSpinBefore {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(180deg);
    }
}

@keyframes borderSpinAfter {
    0% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hover effects */
.flip-card-inner:hover .circle-sec {
    transform: translateY(-10px);
    background-color: #004990;
}

    .flip-card-inner:hover .circle-sec img {
        filter: brightness(0) invert(1);
    }

.flip-card-inner:hover .imp-service-box {
    background-color: #004990;
}

.flip-card-inner:hover .imp-service-title {
    color: #fff;
}

.flip-card-inner:hover .circle-sec-hover-border-outer {
    transform: translateY(-10px);
}

.imp-service-img {
    padding: 10px;
    height: 80px;
    width: auto !important;
}

.flip-card {
    height: 200px;
    margin-top: 60px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
}

#mR-quicklinks {
    display: flex;
    align-items: center;
    position: relative;
}

.mR-wrapper {
    overflow: hidden;
    flex: 1;
}

.mR-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: var(--mR-gap, 20px);
}

.mR-card {
    flex: 0 0 calc(100% / var(--mR-visible, 6) - var(--mR-gap, 20px));
}

.mR-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: #004990;
    transition: 0.3s;
    position: absolute;
    z-index: 4;
}

    .mR-btn:hover {
        color: #009C39;
    }


#mR-quicklinks .owl-next {
    right: 0px;
}



/* ===== Base styles for picture and img ===== */
picture.d-inline-block.mb-3,
picture.d-inline-block.mb-3 img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover; /* Prevents distortion */
}

/* Optional: give some spacing */
picture.d-inline-block.mb-3 {
    margin-bottom: 1rem;
}

/* ===== Responsive tweaks ===== */

/* Small devices (max-width: 605px) */
@media (max-width: 605px) {
    picture .d-inline-block.mb-3, picture.d-inline-block.mb-3 img {
        width: 100%;
        height: auto;
    }
}

/* Tablets (606px to 991px) */
@media (min-width: 606px) and (max-width: 991px) {
    picture .d-inline-block.mb-3, picture.d-inline-block.mb-3 img {
        width: 100%;
        height: auto;
    }
}

/* Large devices (992px and above) */
@media (min-width: 992px) {
    picture .d-inline-block.mb-3, picture.d-inline-block.mb-3 img {
        width: auto; /* Let the container control width */
        height: auto;
    }
}
/* Default hidden */
#mob-request-sec {
    display: none;
}

@media (max-width: 578px) {
    #mob-request-sec {
        display: block !important;
    }

    #mR-quicklinks {
        display: none !important;
    }
}



@media (max-width:575px) {

    #mob-request-sec a.req-sec h4.imp-service-title {
        margin-top: 0px;
    }

    #mob-request-sec img.imp-service-img {
        height: auto;
    }

    .mob-quick-links-sec h4.imp-service-title {
        margin-top: 0px;
    }

    #mob-request-sec img.imp-service-img {
        height: 50px;
        width: auto;
    }

    .mob-quick-links-sec img.imp-service-img {
        height: 50px;
        width: auto;
    }
}


