* {
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

/* Hero section */
.hero {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===============================
     BLOG BASE (MOBILE FIRST)
================================= */

.blog-container {
    padding-top: 20px;
}

/* ================= FEATURED ARTICLE ================= */

.featured-wrapper {
    border-radius: 16px;
    overflow: hidden;
}

/* Featured article image */
.featured-image {
    height: 220px;
    object-fit: cover;
}

/* Dark overlay gradient on featured image */
.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
}

/* Featured article text content */
.featured-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
}

/* "Featured" badge label */
.featured-badge {
    background: #3cb043;
    padding: 6px 12px;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

/* Featured article title */
.featured-title {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Featured article author name */
.featured-author {
    font-size: 1.6rem;
    color: #90ee90;
}

/* ===============================
     BROWSE SECTION
=============================== */

.browse-topic {
    margin-top: 45px;
}

.browse-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 25px;
}

/* ===============================
     TOPIC CARDS
=============================== */

.topic-card {
    text-decoration: none;
    display: block;
}

/* Topic card image container with hover effect */
.topic-image-wrapper {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Topic card image */
.topic-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

/* Semi-transparent overlay on topic card */
.topic-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    transition: background 0.3s ease;
}

/* Topic title text on card */
.topic-text {
    position: absolute;
    bottom: 14px;
    left: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

/* =====================================
     TABLET AND ABOVE (768px+)
===================================== */
@media (min-width: 768px) {

    .featured-image {
        height: 360px;
    }

    .featured-title {
        font-size: 26px;
    }

    .browse-title {
        font-size: 22px;
    }

    .topic-image {
        height: 220px;
    }
}

/* =====================================
     LARGE SCREENS (1200px+)
===================================== */
@media (min-width: 1200px) {

    .featured-image {
        height: 430px;
    }

    .featured-title {
        font-size: 32px;
    }

    /* Lift card up on hover */
    .topic-image-wrapper:hover {
        transform: translateY(-4px);
    }

    /* Lighten overlay on hover */
    .topic-image-wrapper:hover .topic-overlay {
        background: rgba(0,0,0,0.25);
    }
}