/* CSS for 'Member Resources */
.lsaps-member-resources {
    width: 90%;
    margin: 1.5rem auto;
    padding: 1rem 1.2rem;
    border: 2px solid #999;
    background-color: #f5f6fa;
}

.lsaps-resources-group ul {
    list-style: none;
    padding-left: 0;
}

.lsaps-resources-group li {
    margin-bottom: 0.3rem;
}

.lsaps-badge {
    margin-left: 0.5rem;
    font-size: 0.75em;
    background: #c0392b;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}

.lsaps-member-resources h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.lsaps-live-updates {
    background: #ffffff;
    padding: 0.6rem 0.8rem;
    border-left: 5px solid #c0392b;
}

/* Latest News grid */
.lsaps-latest-news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* News card (lifted from child-nav-card style) */
.lsaps-latest-news-grid .news-item {
    flex: 1 1 calc(33.333% - 20px);
    max-width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    box-sizing: border-box;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Subtle hover lift */
.lsaps-latest-news-grid .news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Make whole card clickable */
.lsaps-latest-news-grid .news-item a {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Square thumbnail */
.news-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-thumb-wrapper img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* Title & date */
.news-title {
    font-size: 1rem;
    margin: 20px 14px 0px !important;  
}

.news-date {
    font-size: 0.85rem;
    color: #666;
    margin: 0 14px 20px !important;    
}

/* Responsive */
@media (max-width: 1024px) {
    .lsaps-latest-news-grid .news-item {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 640px) {
    .lsaps-latest-news-grid .news-item {
        flex: 1 1 100%;
    }
}