    .conference-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
        gap: 30px;
    }

    .conf-card {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .conf-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

    .conf-image-wrapper {
        position: relative;
        width: 100%;
        overflow: hidden;
        aspect-ratio: 16 / 9;
        background-color: #f0f0f0;
        height: auto;
    }

    .conf-image-wrapper img {
        width: 100%;
        height: auto; 
        display: block; 
        object-fit: contain; 
        transition: transform 0.5s ease;
        opacity: 0;
    }
    
    .conf-image-wrapper img[src] {
    opacity: 1;
}
    
    .conf-card:hover .conf-image-wrapper img {
        transform: scale(1.05);
    }
    
    @media (min-width: 992px) {
    .conf-image-wrapper {
        height: 220px;
    }
    .conf-image-wrapper img {
        height: 100%;
        object-fit: cover; 
    }
}

@media (max-width: 768px) {
    .conf-image-wrapper {
        height: auto; 
    }
    .conf-image-wrapper img {
        object-fit: contain;
    }
}

@media (max-width: 600px) {
    .conf-image-wrapper {
        aspect-ratio: auto; 
        min-height: 180px;
    }
}

    .no-banner {
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 50px;
        color: #ccc;
    }

    .date-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        background: #fff;
        padding: 8px 12px;
        border-radius: 8px;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        line-height: 1.1;
        min-width: 60px;
    }
    .date-badge .day {
        display: block;
        font-size: 1.4em;
        font-weight: bold;
        color: var(--accent-hover);
    }
    .date-badge .month {
        display: block;
        font-size: 0.8em;
        text-transform: uppercase;
        color: var(--accent-hover);
    }

    .format-badge {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: rgba(0,0,0,0.6);
        color: #fff;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 0.85em;
        backdrop-filter: blur(4px);
    }

    .conf-content {
        padding: 20px;
        display: flex;
        flex-direction: column;
        flex-grow: 1; 
    }

    .conf-title {
        font-size: 1.2em;
        margin: 0 0 10px;
        color: #333;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex-grow: 1;
    }

    .conf-meta {
        margin-bottom: 20px;
        font-size: 0.9em;
        color: #666;
    }
    .text-red { color: #590707; margin-right: 5px; }

    .conf-actions {
        display: flex;
        gap: 10px;
        margin-top: auto; 
    }

    .btn-action-conf {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 45px;
        border-radius: 6px;
        text-decoration: none;
        transition: background 0.2s;
        font-weight: 600;
        border: none;
        cursor: pointer;
    }

    .btn-view {
        width: 50px;
        background-color: #f0f2f5;
        color: var(--accent-color);
        font-size: 1.2em;
    }
    .btn-view:hover {
        background-color: var(--accent-color);
        color: #fff;
    }

    /* Кнопка "Реєстрація" */
    .btn-register-conf {
        flex-grow: 1; 
        background-color: #2F353B; 
        color: #fff;
        padding: 0 20px;
    }
    .btn-register-conf:hover {
        background-color: var(--accent-hover);
    }
    .btn-register-conf i { margin-left: 8px; }
    
    @media (max-width: 600px) {
        .conference-grid {
            grid-template-columns: 1fr; /* Одна колонка на мобільному */
        }
    }