﻿
/* ========== Scoped styles: Quick Links only ========== */
.ql-sec {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 0;
    --ql-visible: 6; /* how many cards are visible (override inline if needed) */
    --ql-gap: 24px; /* space between cards */
    --ql-blue: #004aad; /* hover blue */
    --ql-card-bg: #fff;
    --ql-card-radius: 16px;
    --ql-shadow: 0 6px 20px rgba(0,0,0,.08);
    --ql-shadow-hover: 0 10px 24px rgba(0,0,0,.12);
    --ql-transition: 400ms ease;
}

.ql-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 5px;
}

.ql-track {
    display: flex;
    align-items: stretch;
    gap: var(--ql-gap);
    will-change: transform;
    transition: transform var(--ql-transition);
}

/* Each card takes exactly 1/visible width minus the total gaps,
           so exactly --ql-visible cards fit without partials */
.ql-card {
    flex: 0 0 calc( (100% - (var(--ql-visible) - 1) * var(--ql-gap)) / var(--ql-visible) );
    background: var(--ql-card-bg);
    border-radius: var(--ql-card-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
    margin: 0px;
}

    .ql-card:hover {
        @* transform: translateY(-4px);
        *@ box-shadow: var(--ql-shadow-hover);
        background: #004990;
    }

.ql-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin: 0 auto 12px;
    transition: filter .25s ease;
}

.ql-title {
    margin-top: 20px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
    color: #000;
    transition: color .25s ease;
}

.ql-card:hover .ql-title {
    color: #fff;
}

.ql-card:hover .ql-icon {
    filter: brightness(0) invert(1); /* make icon white on blue */
}

/* Arrow buttons */
.ql-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #d9d9d9;
    background: rgba(255,255,255,.95);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #444;
    transition: background-color .2s ease, box-shadow .2s ease;
    z-index: 2;
}

    .ql-btn:hover {
        background: #fff;
        box-shadow: 0 4px 14px rgba(0,0,0,.16);
    }

.ql-prev {
    left: -12px;
}

.ql-next {
    right: -12px;
}

#ql-quicklinks {
    --ql-visible: 6;
}
/* Default hidden */
.main-quick-links-sec {
    display: none;
}

@media (max-width: 578px) {
    .main-quick-links-sec {
        /*display: block !important;*/
        display: flex;
        align-items: center;
        background-color: #fff;
        border-radius: 46px;
        padding: 10px;
        margin-bottom: -6px;
    }

    #ql-quicklinks {
        display: none !important;
    }
}
@media (max-width:575px) {

    .mob-quick-links-sec h4.imp-service-title {
        margin-top: 0px;
    }

   
    .mob-quick-links-sec img.imp-service-img {
        height: 50px;
        width: auto;
    }
}