.main-qts {
    height: auto;
    text-align: center;
    padding: 3rem 0;
}

.main-bg {
    height: 74vh;
    text-align: center;
    padding: 80px 15em;
}

.main-bg, .main-qts {
    background: #5B3CD3;
    text-align: center;
}

.main-bg p {
    margin-bottom: 2rem;
}

h1 {
    font-size: 2rem;
    padding-bottom: 0.4rem;
}

.par {
    font-family: "Dancing Script", cursive;
    font-size: 1.3rem;
    color: #FFC107;
}

.main-qtt-par {
    font-size: 1.7rem;
    margin-bottom: 3rem;
}

.main-qts span {
    color: #F9F9F9;
}

.bg-carousel {
    /* padding: 3rem 13em; */
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.ca_ {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    background: #F9F9F9;
    color: #0E0E0E;
    padding: 3rem 5rem;
    border-radius: 0.5rem;
    transition: 300ms ease-out;
}

.ca_:hover {
    font-size: 1.2rem;
    background: #FFC107;
}

.qts-main_carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start; /* Align all cards to the top */
    justify-content: center;
    margin: 40px 70px;
    gap: 35px;
}

.qts-carousel {
    height: 360px; /* Set a fixed height */
    padding: 30px;
    color: #f9f9f9;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: space-between; /* Distribute space evenly */
    align-items: center; /* Center content */
    text-align: center;
    border-radius: 0.3rem;
    transition: 300ms ease;
    overflow: hidden; /* Hide overflow text */
}

.hm_ .qts-carousel {
    background: #CAAEFF;
    /* display: none; */

}

.qts-carousel:nth-child(-n+3) {
    background: rgb(161,12,189);
background: radial-gradient(circle, rgba(161,12,189,1) 18%, rgba(69,27,66,1) 100%);
}

.qts-carousel:nth-child(n+4) {
    background: #ffd1b5;
    color: #0E0E0E;
}

.qts-carousel:nth-child(n+4) h3 {
    color: #411182;
}

.qts-carousel:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.400);
    cursor: default;
}

.qts-carousel img {
    max-width: 40%;
    height: auto;
    object-fit: cover; /* Ensure the image fits well */
    margin-bottom: 15px;
    border-radius: 100%;
}

.qts-carousel p {
    font-size: 1rem;
    margin: 0.5rem 0;
    overflow: hidden; /* Hide extra text if needed */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
   

}

.qts-carousel h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #FFC107;

}

@media only screen and (max-device-width : 768px) {

    .qts-main_carousel {
        grid-template-columns: 1fr;

    }

    .qts-carousel {
        width: 320px;
        padding: 30px;
    }

    .main-qtt-par {
        font-size: 1.4rem;
       padding: 0 2rem;
    }

    .main-bg {
        height: auto;
        text-align: center;
        padding: 60px 2em;
    }

    .main-bg p {
        margin-top: 1rem;
    }
}