@use '../../utils' as *;

/*----------------------------------------*/
/*  4.3 Admission css
/*----------------------------------------*/

.rs-admission{
    &-one{
        .rs-admission-wrapper{
            display: grid;
            grid-template-columns: repeat(3,1fr);
            gap: 30px;
            margin-top: 35px;
            @media #{$md}{
                grid-template-columns: repeat(2,1fr);
            }
            @media #{$sm}{
                grid-template-columns: repeat(1,1fr);
            }
        }
        .rs-admission-item {
            border-radius: 12px;
            background: var(--rs-white);
            padding-top: 28px;
            padding-bottom: 12px;
            padding-inline: 12px;
            text-align: center;
            box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.06);
            display: flex;
            flex-direction: column;
            &:hover{
                .rs-admission-thumb{
                    img{
                        transform: scale3d(1.1, 1.1, 1);
                    }
                }
            }
        }
        .rs-admission-thumb{
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            height: 100%;
            img{
                width: 100%;
                transition: all 0.8s ease;
                transform: scale(1.02);
                height: 100%;
                object-fit: cover;
                object-position: top center;
            }
        }
        .rs-admission-content{
            margin-bottom: -25px;
        }
        .rs-admission-title{
            color: var(--rs-title-tertiary);
        }
        .rs-admission-desc {
            padding-inline: 20px;
            margin-top: 10px;
            @media #{$xl}{
                padding-inline: 10px;
                font-size: 15px;
            }
        }
    }
    &-two{
        .rs-admission-wrapper{
            background: var(--rs-white);
            border-radius: 12px;
            padding: 30px;
            display: grid;
            grid-template-columns:auto 530px;
            gap: 30px 50px;
            align-items: center;
            @media #{$lg}{
                grid-template-columns: auto 400px;
                gap: 30px 30px;
                align-items: start;
            }
            @media #{$md}{
                grid-template-columns: repeat(1,1fr);
            }
            @media #{$xs}{
                padding: 20px;
            }
        }
        .rs-admission-thumb{
            @media #{$lg}{
                position: sticky;
                top: 110px;
            }
            @media #{$md}{
                position: relative;
                top: unset;
            }
            img{
                width: 100%;
                border-radius: 8px;
            }
        }
        .rs-admission-desc{
            margin-top: 20px;
            margin-bottom: 30px;
            max-width: 622px;
        }
    }
}