#hospital{
    margin-top: 45px;
}

.hospital-area{
    text-align: left;
}

.hospital-area h2{
    margin-left: 6%;
}

.hospital-container{
    width: 100%; 
    text-align: center; 
}

.hospital__bottom{
    width: 100%;
    margin-top: 35px;
}

.hospital__bottom ul{
    list-style: none;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    margin: 0 auto;
    justify-content: center;
}

.hospital__bottom ul li {
    display: flex;
    width: 250px;
    height: 200px;
    align-items: center;
    justify-content: center;
    margin: 10px;
    border-radius: 20px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in-out;
}



.hospital__bottom ul li.has-bg:hover {
    box-shadow: 
        inset 4px 4px 10px rgba(255, 255, 255, 0.6),  
        inset -4px -4px 10px rgba(0, 0, 0, 0.2),  
        5px 5px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
    filter: brightness(1.2);
}



.hospital__bottom li a{
    display: block;
    width: 100%;
    height: 100%;
    text-decoration-line: none;
    color: #000000;
}

.hospital__list{
    display: flex;
    align-items: center;
    justify-content: center;
    /* height: 24%; */
    /* margin-top: 90px; */
    font-size: 18px;
    font-weight: bold;
    flex-wrap: wrap;
    position: absolute;
    bottom: 20px;
    /* margin: 0 auto; */
    width: 100%;
}

.hospital__list span{
    width: 100%;
    color: #ffffff;
}

.hospital__list span:nth-child(1){
    font-size: 15px;
}



.nav-cont{
    margin-left: 6%;
}

.nav-cont ul{
    text-align: left;
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-template-areas: 
    'a b c d e f g'
    'a h i j k l m';
    /* align-items: center; */
}

.nav-cont li{
    display: inline-block;
    margin-top: 15px;
    width: 100%;
}

.nav-cont li a{
    color: black;
    padding-bottom: 5px;
}

li a.active {
    color: #07c21f;
    border-bottom: 2px solid #07c21f;
}


.nav1{
    grid-area: a;
}
.nav2{
    grid-area: b;
}
.nav3{
    grid-area: c;
}
.nav4{
    grid-area: d;
}
.nav5{
    grid-area: e;
}
.nav6{
    grid-area: f;
}
.nav7{
    grid-area: g;
}
.nav8{
    grid-area: h;
}
.nav9{
    grid-area: i;
}
.nav10{
    grid-area: j;
}
.nav11{
    grid-area: k;
}
.nav12{
    grid-area: l;
}
.nav13{
    grid-area: m;
}




@media (max-width:1025px){
    .hospital-area h2{
        text-align: center;
        margin-bottom: 10px;
    }

    
    
}

@media (max-width:768px){

    .nav-cont{
        margin-left: 0;
    }

    .nav-cont ul{
        text-align: center;
    }

    #hospital{
        margin-top: 10px;
    }

    .nav-cont ul{
        margin-top: 15px;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        grid-template-areas: 
        'a b c ' 
        'd e f ' 
        'g h i ' 
        'j k l ';
        gap: 1px;

    }

    .nav-cont ul li a.active {
        color: #07c21f;
        font-weight: bold;
    }

    .nav-cont ul > li{
        margin-top: 0;
        border: 1px solid silver;
        height: 50px;
        line-height: 50px;
        margin:-1px;
        font-size: 17px;
    }

    .hospital__bottom ul li{
        width: 90%;
        height: 220px;
        background-size: 100% 100%;
        /* background-size: contain; */
    }

    .hospital__list span{
        display: none;
    }
}

@media (max-width:660px){

    .hospital__bottom ul li{
        height: 170px;
        /* background-size: contain; */
    }
}


@media (max-width:580px){

    .hospital__bottom ul li{
        height: 140px;
        /* background-size: contain; */
    }


    .hospital__list span{
        font-size: 8px;
    }
}

@media (max-width:480px){
    .hospital__bottom ul li{
        height: 120px;
        /* background-size: contain; */
    }
    .hospital__list{
        font-size: 16px;
    }

    .hospital__list span:nth-child(1){
        font-size: 10px;
    }
}

@media (max-width:460px){
    .hospital__bottom ul li{
        height: 115px;
        /* background-size: contain; */
    }
}

@media (max-width:440px){
    .hospital__bottom ul li{
        height: 110px;
        /* background-size: contain; */
    }
}

@media (max-width:420px){
    .hospital__bottom ul li{
        height: 105px;
        /* background-size: contain; */
    }
}

@media (max-width:400px){
    .hospital__bottom ul li{
        height: 100px;
        /* background-size: contain; */
    }
}

@media (max-width:380px){
    .hospital__bottom ul li{
        height: 95px;
        /* background-size: contain; */
    }
}

@media (max-width:360px){
    .hospital__bottom ul li{
        height: 90px;
        /* background-size: contain; */
    }
}

@media (max-width:340px){
    .hospital__bottom ul li{
        height: 85px;
        /* background-size: contain; */
    }
}




