﻿/* Container for the 3-column row */
div.resource-hero-row {
    display: flex;
    flex-wrap: wrap; 
    gap: 24px;            
    justify-content: center; 
    margin: 25px 0;
    width: 100%; 
}

/* Individual card styling */
div.resource-hero-card {
    flex: 1 1 calc(33.333% - 24px); 
    min-width: 280px; 
    max-width: 380px;     
    background-color: #FAFAFA; 
    border: 1px solid #E1E1E1; 
    border-radius: 6px;
    padding: 20px 16px;        
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

div.resource-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Ensure images scale down to fit the smaller cards */
div.resource-hero-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #E1E1E1; 
    margin-bottom: 12px;
    display: block; 
    margin-left: auto;
    margin-right: auto;
}

/* Card title styling */
p.resource-hero-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #323232; 
    margin: 5px 0 10px 0;
    line-height: 1.3;
}

/* Description text styling inside the card */
div.resource-hero-card p:not(.resource-hero-title) {
    font-size: 0.85rem; 
    line-height: 1.4;   
    color: #484848;     
    margin: 0 0 16px 0;          
}

/* Prevent the top status badges from stretching horizontally */
div.resource-hero-card .new-badge,
div.resource-hero-card .updated-badge,
div.resource-hero-card .timely-badge {
    align-self: center; 
    width: max-content; 
    margin-bottom: 12px; 
}