/* === Reset === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.widget-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #222;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.widget-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #0073e6; /* Or your brand primary colour */
    margin: 0.5rem auto 0;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.widget-title:hover::after {
    width: 80px;
}

/* === Container === */
.latest-articles-widget {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 1rem;
    font-family: system-ui, sans-serif;
}

/* === Section Heading === */
.latest-articles-widget h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #111;
}

/* === Grid Layout === */
.latest-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .latest-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === Card === */
.latest-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.latest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* === Thumbnail === */
.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* === Content Area === */
.card-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #222;
    transition: color 0.3s ease;
}

.card-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-top: auto;
}
