*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body, html{
    height: 100%;
    width: 100%;
}

main{
    height: 100%;
    width: 95%;
    margin: auto;
    /* background-color: red; */
}

nav{
    height: 3rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
nav h2{
    font-size: 30px;
    font-weight: 400;
}

nav ul{
    display: flex;
    gap: 1rem;
    
}
nav ul li{
    list-style: none;
}

.banner{
    width: 100%;
    position: relative;
    padding: 1rem 0;
}

.banner h1{
    font-weight: 500;
    text-align: center;
    position: absolute;
    color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(0% ,-50%);
}

.banner img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.heading h2{
    font-weight: 500;
    text-align: center;
    padding: 1rem 1rem;
}

.root{
    width: 100%;
     
}

.root .card{
    padding: 1rem 0;
    display: block;
    text-decoration: none;
    color: #000;
}

.root .card img{
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 2rem;
}

.root .card h3{
    text-align: center;
    font-weight: 500;
    
}

@media(min-width:1024px){
    

    main{
        height: 100%;
        width: 95%;
        margin: auto;
        /* background-color: red; */
    }
    
    nav{
        height: 3rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 1rem 0;
    }
    nav h2{
        font-size: 3rem;
        font-weight: 400;
    }
    
    nav ul{
        display: flex;
        gap: 2rem;
        
    }
    nav ul li{
        list-style: none;
        font-size: 1.5rem;
    }
    
    .banner{
        width: 100%;
        position: relative;
        padding: 1rem 0;
    }
    
    .banner h1{
        font-size: 4rem;
        font-weight: 500;
        text-align: center;
        position: absolute;
        color: #fff;
        top: 50%;
        left: 60%;
        transform: translate(0% ,-50%);
    }
    
    .banner img{
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    
    .heading h2{
        font-weight: 500;
        text-align: center;
        padding: 1rem 1rem;
        font-size: 2.5rem;
    }
    
    .root{
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4,1fr);
        gap: 1.5rem;
         
    }
    
    .root .card{
        padding: 1rem 0;
        display: block;
        text-decoration: none;
        color: #000;
    }
    
    .root .card img{
        width: 100%;
        aspect-ratio: 16/9;
        object-fit: cover;
        border-radius: 1rem;
    }
    
    .root .card h3{
        text-align: center;
        font-weight: 500;
        
    }
}