
.programs{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    background-color: #e6e6e6;
    padding: 3rem 0;
}

.programs h2{
    text-transform: capitalize;
}

.programs__flex__container{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.programs__flex__container > div{
    width: 100%;
    height: 400px;
    margin-inline: auto;
    position: relative;
    border: 1px solid rgba(10, 47, 94, 0.15);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--white-color);
    /* gap: 1rem; */
    cursor: pointer;
    text-transform: capitalize;
    /* box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.05); */
    transition: 0.2s ease-in-out;
}

.programs__flex__container > div:hover{
    background-color: var(--primary-color);
    color: var(--white-color);
    scale: 1.02;
    transition: 0.2s ease-in-out;
}

.programs__flex__container .program_image{
    width: 100%;
    height: 40%;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
}

.program_image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
    transition: 0.5s ease-in-out;
}

.programs__flex__container > div:hover img{
    scale: 1.08;
    transition: 0.5s ease-in-out;
}

.program_descript{
    height: 60%;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-grow: 0;
}

.now-open{
    position: absolute;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 0.5rem 1.5rem;
    text-transform: capitalize;
    left: 0;
    top: 2rem;
    font-weight: 500;
}

.prog_title{
    background-color: var(--white-shade);
    border-radius: 10px;
    /* width: 70%; */
    font-size: 0.75rem;
    display: flex;
    justify-content: left;
    align-items: center;
    font-weight: 500;
    text-transform: capitalize;
    margin-top: 1rem;
    /* padding: 0.2rem; */
    position: relative;
    justify-self: flex-end;
}

.programs__flex__container > div:hover .prog_title{
    background-color: #2167c3;
    width: 70%;
    padding: 0.2rem;
    justify-content: center;
    transition: 0.05s;
}

.programs__flex__container p{
    font-weight: 300;
    font-size: 0.9rem;
}

.program_descript h4{
    font-weight: 600;
    font-size: 1.05rem;
}

/* Tablet */
@media (min-width: 350px){
    .programs__flex__container > div{
        max-width: 17rem;
        flex-shrink: 0;
        height: 370px;
        
    }
}

@media (min-width: 600px){
    .programs__flex__container{
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    .programs__flex__container > div{
        max-width: 17rem;
        flex-shrink: 0;
        height: 400px;
        
    }
}

@media (min-width: 768px){
    .programs__flex__container > div{
        height: 400px;
    }
}

@media (min-width: 1000px){
    .programs{
        padding: 5rem 0;
    }

    .programs__flex__container > div{
        max-width: 19rem;
        height: 370px;
        
    }

    .programs__flex__container p{
        font-size: 0.95rem;
    }
}

@media (min-width: 1500px){
    .programs__flex__container > div{
        max-width: 17rem;
    }

    .programs__flex__container p{
        font-size: 0.85rem;
    }
}