/* Специфика страницы списка конкурсов. Общие стили — в public-base.css */

.public-contests__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.public-contest-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    border: 1px solid #D2D2D2;
    border-radius: 6px;
    background: #FFF;
    text-decoration: none;
    transition: box-shadow .2s ease-in-out;
}

.public-contest-card:hover {
    box-shadow: 0 4px 16px rgba(16, 24, 32, .08);
}

.public-contest-card__image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 100px;
    border-radius: 6px;
    /* Заглушка без фото — тот же градиент, что в слайдере конкурсов на главной */
    background: linear-gradient(135deg, #2D3648 0%, #575C89 100%);
    color: #FFF;
    font-family: Inter, sans-serif;
    font-size: 32px;
    font-weight: 700;
    overflow: hidden;
}

.public-contest-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-contest-card__info {
    flex-grow: 1;
    min-width: 0;
}

.public-contest-card__name {
    display: block;
    color: #101820;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.public-contest-card__dates {
    display: block;
    margin-top: 2px;
    color: #575C89;
    font-size: 13px;
}

.public-contest-card__description {
    margin: 8px 0 0;
    color: #101820;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .public-contest-card {
        flex-direction: column;
        align-items: stretch;
    }

    .public-contest-card__image {
        width: 100%;
        height: 160px;
    }
}
