/* Dedicated styles for the resources page video grid */
.resources-page .videos-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.5rem !important;
    margin: 0 auto !important;
}

.resources-page .video-card,
.resources-page .video-thumbnail,
.resources-page .video-embed-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.resources-page .video-embed-container {
    padding-bottom: 34% !important; /* was 28% */
    min-height: 48px !important;    /* was 40px */
    max-height: 72px !important;    /* was 60px */
    position: relative;
    width: 100%;
    height: 0;
    border-radius: 4px 4px 0 0 !important;
    overflow: hidden;
    background: #000;
    margin-top: 0 !important;
}

.resources-page .video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    border-radius: 4px 4px 0 0 !important;
}

.resources-page .video-card {
    padding: 0.18rem 0.12rem 0.3rem 0.12rem !important; /* slightly more vertical padding */
}

.resources-page .video-card .video-content {
    padding: 0.08rem 0 0 0 !important;
}

.resources-page .video-card h3 {
    font-size: 0.85rem !important;
    margin: 0.08rem 0 0.05rem 0 !important;
    line-height: 1.1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resources-page .video-card p {
    font-size: 0.75rem !important;
    margin: 0 0 0.05rem 0 !important;
    line-height: 1.15 !important;
    max-height: 2.3em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1023px) {
    .resources-page .videos-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .resources-page .videos-grid { grid-template-columns: 1fr !important; }
} 