@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --heading-size: 2.25rem;
    --article-text-size: 1.25rem;
    --small-text: 0.875rem;
    
    --primary-color: #000000;
    --secondary-color: #4D5562;
    --thirdy-color: #D9D9D9;
    --bg-light: #F8FAFC;
    --hover-color: teal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, serif, sans-serif;
}

body {
    width: 100vw;
    min-height: 100vh;
}

.main {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    
    width: 100%;
}

.heading {
    width: 80%;
    max-width: 700px;
    padding: 2rem 1rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.heading h1 {
    font-size: var(--heading-size);
    text-align: center;
    line-height: 1.4;
}

.heading img {
    width: 200px;
}

.container {
    width: 100%;
    max-width: 880px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.article {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.article_img {
    width: 190px;
    height: 170px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px;
    display: inline-block;
    cursor: pointer;
}

.article_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article_img:hover img {
    transform: scale(1.2);
}

.article_content {
    width: 70%;
    padding: 1rem 2.2rem;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article_content h2 {
    font-size: var(--article-text-size);
    text-transform: capitalize;
}

.small-text {
    font-size: var(--small-text);
    font-weight: 500;
    color: var(--secondary-color);
}

.footer {
    text-align: center;
    padding: 1rem 2rem;
}

.author-info a {
    color: var(--hover-color);
    text-decoration: none;
}

/* media queries configuration for mobile */
@media (max-width: 450px) {
    .article {
        flex-direction: column;
    }

    .article_img {
        width: 100%;
        height: 200px;
        overflow: hidden;
    }

    .article_content {
        width: 100%;
        padding: 1rem;
    }
}