@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');
* {
    margin: 0;
    padding: 0;
    max-width: 100vw;
}

:root {
    --dark: #012d6c;
}

body {
    font-family: 'Lato', sans-serif;
}

.container {
    height: 100vh;
    width: 100%;
    background-color: #def2f1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container h1 {
    color: var(--dark);
    font-size: 56px;
    letter-spacing: 2px;
    margin-bottom: 30px;
    padding-top: 5%;
}

#home {
    position: fixed;
    right: 10px;
    top: 10px;
    border: none;
    padding: 2%;
    background-color: #020024;
    width: 10vw;
    height: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: white;
    font-size: large;
}

#home:hover {
    scale: 1.05;
}

@media screen and (max-width: 528px) {
    #home {
        right: 0;
        left: 10px;
        width: 20vw;
    }    
}

.blogs__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    place-items: center;
    gap: 5vw;
    width: 90%;
    height: 100%;
    padding: 1rem;
}

.post {
    background-color: #ffffff;
    height: 75%;
    width: 75%;
    display: flex;
    flex-direction: column;
    margin: 0 2rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--dark);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border-radius: 8px;
}

.post:hover {
    transform: translateY(-2.5%);
    /* box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; */
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
    transition: 1s ease-in-out;
}

.post img {
    height: 50%;
    width: 100%;
    object-fit: cover;
    border: 1px solid #012d6c;
}

.post small {
    margin: 10px 0;
    padding: 3px 10px;
    background-color: var(--dark);
    border-radius: 10px;
    color: #def2f1;
    width: fit-content;
}

.post .description {
    margin: 10px 0;
    height: 30%;
}

.post .more {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #012d6c;
}

.more p {
    font-size: 16px;
    text-transform: uppercase;
}

.more i {
    font-size: 25px;
}

@media screen and (max-width: 512px) {
    .container {
        height: 300vh;
    }
    .blogs__container {
        flex-direction: column;
    }
    .post {
        margin-top: 100px;
    }
}