@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&family=Cambo&family=Figtree:ital,wght@0,300..900;1,300..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Jost:ital,wght@0,100..900;1,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Outfit:wght@100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Public+Sans:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Schibsted+Grotesk:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --gray-950: hsl(0, 0%, 7%);
    --gray-500: hsl(0, 0%, 42%);
    --yellow: hsl(47, 88%, 63%);
    --white: hsl(0, 0%, 100%);
}

* {
    box-sizing: border-box;
}

html {
    display: flex;
    flex-direction: column;
}

body, html {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background-color: var(--yellow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    font-family: Figtree;
}

.container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto 0;
}

.blogcard {
    flex-direction: column;
    display: flex;
    gap: 24px;
    border: 1px solid black;
    background-color: var(--white);
    filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, 100%));
    min-height: 300px;
    transition: filter ease-out 240ms;
    padding: 24px;
    width: 327px;
    border-radius: 10px;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 173px;
    gap: 12px;
}
.content *{
    margin: 0;
}

img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
}

.learning {
    margin: 0;
    background-color: var(--yellow);
    padding: 4px 12px;
    display: flex;
    align-items: center;
    border-radius: 4px;
}

.learning p {
    font-size: 12px;
    line-height: 150%;
    font-weight: 800;
    color: var(--gray-950);
}

.published {
    font-weight: 500;
    font-size: 12px;
    line-height: 150%;
    color: var(--gray-950);
}

.title {
    font-weight: 800;
    font-size: 20px;
    line-height: 150%;
    color: var(--gray-950);
    transition: color ease-in 100ms;
}

.para {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 150%;
    font-weight: 500;
}
.author {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
}
.author img {
    width: 32px;
    height: 32px;
}
.author p {
    margin: 0;
    text-align: right;
    font-weight: 800;
    font-size: 14px;
}

.blogcard.effected:hover .title {
    color: hsl(47, 88%, 63%);
}
.blogcard.effected:hover {
    filter: drop-shadow(16px 16px rgba(0,0,0,1));
}

@media (min-width: 1440px) {
    .blogcard {
        width: 384px;
    }
    .content {
        height: fit-content;
    }
    .learning p {
        font-size: 14px;
    }
    .published {
        font-size: 14px;
    }
    .title {
        font-size: 24px;
    }
    .para { 
        font-size: 16px;
    }
    .author p {
        font-size: 14px;
    }

}