/* ==========================================================================
   BLOG
   Preview of latest articles on landing page with link to /blog subpage.
   Mobile: cards stacked vertically. Desktop: cards side by side.
   ========================================================================== */

/* Section: pink background, centered content */
.blog {
    background-color: var(--color-pink-accent);
    padding: var(--space-xl) var(--space-sm);
    text-align: center;
}

/* Title: space below */
.blog__title {
    margin-bottom: var(--space-xs);
}

/* Subtitle: space below */
.blog__subtitle {
    margin-bottom: var(--space-lg);
}

/* Cards container: vertical stack on mobile */
.blog__cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

/* Card: light pink background, left-aligned text */
.blog__card {
    background-color: var(--color-pink-light);
    padding: var(--space-md);
    text-align: left;
    transition: box-shadow 0.3s ease;
}

.blog__card:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

.blog__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin-bottom: var(--space-lg);
}

/* .blog__image:hover {
    background-color: rgba(255, 255, 255, 0.3);   
} */


/* Card title */
.blog__card-title {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

/* Date: small caption text */
.blog__date {
    display: block;
    font-size: var(--text-caption);
    margin-bottom: var(--space-xs);
}

/* Article preview text */
.blog__text {
    font-size: var(--text-body-small);
    font-weight: 400;
    line-height: var(--lh-body);
}

/* Button: dark background, light text */
.blog__button {
    display: inline-block;
    padding: 10px;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 500;
}

/* Hover: button text changes to pink accent */
.blog__button:hover {
    color: var(--color-pink-accent);
}

/* ==========================================================================
   DESKTOP (768px+): cards side by side
   ========================================================================== */

@media (min-width: 768px) {
    .blog {
        padding: var(--space-2xl);
    }

    /* Cards: horizontal row */
    .blog__cards {
        flex-direction: row;
        max-width: var(--max-width);
        margin: 0 auto var(--space-lg);
    }

    /* Each card takes equal width */
    .blog__card {
        flex: 1;
    }
}