body {
    background: #F5F2F2
}

.institute {
    padding: 90px 0 100px 0
}

.institute .wrap {
    width: 1440px;
    margin: auto
}

/* .institute .wrap .text {
    font-weight: 400;
    font-size: 18px;
    color: #333333;
    line-height: 36px;
    text-indent: 36px
} */

.institute .wrap .text p{
    font-weight: 400;
    font-size: 18px;
    color: #333333;
    line-height: 36px;
    text-indent: 36px
}


.institute .wrap .grid {
    display: grid;
    margin: 61px 0 0 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px
}

.institute .wrap .grid .item {
    width: 100%;
    height: 170px;
    background: #fff;
    padding: 33px 34px;
    cursor: pointer;
    border-left: 4px solid var(--color);
    position: relative;
    z-index: 1
}

.institute .wrap .grid .item:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--color);
    z-index: -1;
    opacity: 0;
    transition: .4s ease
}

.institute .wrap .grid .item:hover:after {
    opacity: 1
}

.institute .wrap .grid .item:hover h1,
.institute .wrap .grid .item:hover h5,
.institute .wrap .grid .item:hover p {
    color: #fff
}

.institute .wrap .grid .item:nth-child(3n+1) {
    --color: #C8161D
}

.institute .wrap .grid .item:nth-child(3n+2) {
    --color: #DC661C
}

.institute .wrap .grid .item:nth-child(3n+3) {
    --color: #EBA011
}

.institute .wrap .grid .item h1 {
    font-weight: 400;
    font-size: 24px;
    color: #800000;
    margin: 0 0 30px;
    transition: .4s ease
}

.institute .wrap .grid .item h5 {
    font-weight: 400;
    font-size: 18px;
    color: #111111;
    margin: 0 0 10px;
    transition: .4s ease
}

.institute .wrap .grid .item p {
    font-weight: 400;
    font-size: 14px;
    color: #444444;
    transition: .4s ease
}


@media screen and (max-width: 1920px) {
    .institute {
        padding: 4.6875vw 0 5.20833333vw 0;
      }
      .institute .wrap {
        width: 75vw;
      }
      .institute .wrap .text p {
        font-size: 0.9375vw;
        line-height: 1.875vw;
        text-indent: 1.875vw;
      }
      .institute .wrap .grid {
        margin: 3.17708333vw 0 0 0;
        gap: 1.5625vw;
      }
      .institute .wrap .grid .item {
        height: 8.85416667vw;
        padding: 1.71875vw 1.77083333vw;
        border-left: 0.20833333vw solid var(--color);
      }
      .institute .wrap .grid .item h1 {
        font-size: 1.25vw;
        margin: 0 0 1.5625vw;
      }
      .institute .wrap .grid .item h5 {
        font-size: 0.9375vw;
        margin: 0 0 0.52083333vw;
      }
      .institute .wrap .grid .item p {
        font-size: 0.72916667vw;
      }      
}

@media screen and (max-width: 1024px) {
    .institute .wrap{
        width: 90%;
    }
    .institute .wrap .text p{
        font-size: 14px;
        line-height: 1.6;
    }
    .institute .wrap .grid .item h1{
        font-size: 16px;
        margin-bottom:20px;
    }
    .institute .wrap .grid .item h5{
        font-size: 14px;
        margin-bottom: 10px;
    }
    .institute .wrap .grid .item p{
        font-size: 12px;
    }
    .institute .wrap .grid .item{
        height: auto;
        padding: 20px;
        border-left-width:3px ;
    }
    .institute .wrap .grid{
        margin-top: 40px;
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .institute .wrap .grid{
        grid-template-columns: repeat(1, 1fr);
    }
}