/* BLOG CARDS CONTAINER */
#blog-cards-container {
    background-color: rgba(0, 0, 0, 0.051);
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    margin: 12px auto;
    padding: clamp(16px, 5%, 24px);
    width: clamp(100px, 95%, 900px);
}

/* BLOG CARD */
.blog-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.196);
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    margin: 8px auto;
    margin-bottom: 20px;
    overflow: wrap;
    padding: clamp(8px, 3%, 24px);
    width: clamp(50px, 90%, 420px);
}
.blog-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* BLOG COVER IMAGE */
.blog-image {
    margin: 8px auto;
    height: clamp(50px, 60%, 400px);
    width: clamp(50px, 100%, 640px);
}
.blog-image img {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.262);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.233);
    max-width: 100%;
    max-height: 100%;
}

/* BLOG TITLE */
.blog-title {
    font-weight: bold;
    margin-bottom: 6px;
    margin-top: 8px;
    padding: 0px 6px;
    text-align: center;
    max-width: 100%;
}
.blog-title a {
    color: #0b273a;
    font-size: clamp(1.2em, 2vw, 1.5em);
    text-decoration: none;
}
.blog-title a:hover {
    color: rgba(25, 31, 72, 0.743);
    cursor: pointer;
    text-decoration: underline;
}

/* BLOG SUMMARY */
.blog-summary {
    color: rgba(5, 19, 63, 0.464);
    font-size: clamp(0.95em, 1.5vw, 1.1em);
    margin-bottom: clamp(4px, 2%, 8px);
    margin-top: 6px;
    overflow: wrap;
    padding: 0px 2px;
    width: 80%;
    max-width: 90%;
}

.blog-description-container {
    display: flex;
    flex-direction: column;
    margin: auto;
    margin-bottom: 16px;
    width: 100%;
}

/* AUTHOR AND PUBLISH DATE */
.blog-author-container {
    align-items: center;
    display: flex;
    flex-direction: row;
    margin-bottom: 6px;
}

.blog-author img {
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.286);
    height: 78px;
    max-width: 100%;
    margin-left: 10px;
    margin-bottom: 14px;
    margin-top: 12px;
    object-fit: cover;
}

.blog-author-name {
    color: rgba(4, 5, 50, 0.943);
    font-size: 1.3em;
    font-weight: bold;
    margin-left: 15px;
}

.blog-publish-container {
    margin-left: 12px;
}

.blog-publish-date {
    color: rgba(0, 0, 0, 0.421);
    font-size: 1.1em;
    margin-left: 15px;
}

/* TAGS */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 2%, 24px);
}
.tag {
    background-color: #e2e2e2;
    border-radius: 5px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.237);
    color: #27272c9a;
    font-size: 0.99em;
    overflow: wrap;
    padding: 5px 10px;
}


/* TABLET */
@media
    only screen
    and (min-width: 680px) 
{
    #blog-cards-container {
        flex-direction: column;
        width: clamp(100px, 87%, 900px);
    }

    .blog-card {
        width: clamp(200px, 68%, 560px);
    }

    .blog-summary {
        font-size: clamp(1em, 1.2vw, 1.1em);
        width: clamp(70%, 90%, 100%);
    }

    .blog-image img {
        height: 100%;
        width: 100%;
    }
}


/* DESKTOP */
@media
    only screen
    and (min-width: 980px)
{
    #blog-cards-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-content: stretch;
        width: clamp(50px, 87%, 1000px);
    }

    .blog-card {
        flex-direction: row;
        height: fit-content;
        margin-bottom: 16px;
        width: clamp(300px, 54%, 840px);
    }

    .blog-image img {
        height: 100%;
        width: 100%;
    }

    .blog-title {
        font-size: clamp(1.1em, 2vw, 1.2em);
        text-align: left;
    }

    .blog-summary {
        font-size: clamp(0.8em, 1.3vw, 1.1em);
        width: clamp(60%, 94%, 100%);
    }
}
