/* Font family Figtree */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

* {
    margin: 0px;
    padding: 0px;
    font-family: "Figtree", sans-serif;
}

/* outside the blog card / body  */
.outside-box {
    background-color: hsl(47, 88%, 63%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* blog card styling */
.blog-card {
    background-color: hsl(0, 0%, 100%);
    border-radius: 10px;
    padding: 1.2rem;
    width: 350px;
    border: 1px solid hsl(0, 0%, 7%);
    box-shadow: 5px 5px hsl(0, 0%, 7%);
}

/* blog card section all child & anscestor styling */
.blog-card {

    > * {
        padding-bottom: 1rem;
        color: hsl(0, 0%, 7%);
    }
     .blog-image {
        width: 100%;
        border-radius: 10px;
    }
     .blog-text {
        background-color: hsl(47, 88%, 63%);
        display: inline;
        padding: 0.3rem 0.7rem;
        border-radius: 3px;
        font-size: 1rem;
        font-weight: 900;
    }
    > .blog-date {
        font-size: 0.95rem;
        font-weight: 600;
    }
    > .blog-heading {
        font-size: 1.45rem;
        font-weight: 900;
    }
    > .blog-para {
        color: hsl(0, 0%, 42%);
        font-size: 1rem;
    }
    > .blog-author {
        padding: 0px;
    }
}

/* author section for blog author image and name */
.blog-author {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 900;

    > div {
        padding-right: 0.5rem;
    }
     .author-image {
        height: 25px;
        width: 25px;
        border-radius: 50%;
    }
}

/* author */
.author > p {
    font-size: 0.8rem;
    padding-top: 1rem;
    > a {
        text-decoration: none;
    }
}

/* mouse hover & pointer effect */
.blog-heading:hover {
    color: hsl(47, 88%, 63%);
    cursor: pointer;
}

@media (max-width:450px) {
    .blog-card {
        width: 80%;
    }
}
