.sf-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.sf-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.sf-card:hover {
    transform: translateY(-5px);
}

.sf-card-image {
    min-height: 200px;
    max-height: 250px;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

.sf-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sf-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 2;
    pointer-events: auto; 
}

.sf-icon-link {
    /*position: relative;*/
    display: block;
    z-index: 3; 
}

.sf-card-content {
    padding: 16px;
}

.sf-card-content h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.sf-card-content .sf-category {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 6px;
}

.sf-card-content .sf-date {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 12px;
}

.sf-video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.sf-video-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16/9;
    background: #000;
}

.sf-video-content iframe {
    width: 100%;
    height: 100%;
}

.sf-video-close {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.sf-video-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    pointer-events: none;
}

.sf-card-image {
    /*position: relative;*/
    display: block;
}

.sf-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 2;
    pointer-events: auto; 
}
