@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;600;800&display=swap');

:root{
    --primary-color: hsl(47, 88%, 63%);
    --neutral-black: hsl(0, 0%, 7%);
    --neutral-grey: hsl(0, 0%, 50%);
    --neutral-white: hsl(0, 0%, 100%);
    --font-family: 'Figtree', sans-serif;
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

/* Full page yellow background */
body {
    background-color: #f5d144; /* yellow */
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

.blog-preview{
    background-color: white;
    width: 320px; /* Fixed card width */
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

/* Card image */
.image-container {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden; /* Keeps rounded corners if desired */
}

.card-image {
    width: 100%; /* Make sure image stretches only to the padded width */
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}



/* Learning tag */
.tag {
    background-color: #fdd835;
    color: black;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin: 8px 0;
}

/* Date text */
.published {
    font-size: 12px;
    color: #666;
    margin: 4px 0;
}

/* Title */
.card-title {
    color: black;
    margin: 8px 0;
    font-size: 18px;
}

/* Description */
.description {
    font-size: 14px;
    color: #555;
}

/* Author section */
.author {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
}

.author span {
    font-size: 14px;
    font-weight: bold;
}
