.sContest__body .item__card {
    background: #EEF3F6;

    padding: 24px;
    border-radius: 8px;
    border: 1px solid #DADADA;

    margin-bottom: 20px;
}

.sContest__body .item__card.active {
    background: #ffffff;
}

.sContest__body .item__card:hover {
    cursor: pointer;
}

.sContest__body .item__card .item__article {
    display: none;
}

.sContest__body .item__card.active .item__article {
    display: block;
}

.badge {
    border-radius: 4px;
    margin: 4px;

    display: inline-block;
}

.badge.bg-primary {
    --bs-bg-opacity: 1;
    background-color: #C2DCFB !important;
    padding: 4px 6px 3px 6px;
    color: #2B2B2B;
}

.item__operator {
    max-width: 183px;
    max-height: 183px;
    width: 183px;
    height: 183px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.item__additional {
    color: #1972DB;
    font-family: Nunito Sans;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.item__additional a {
    word-wrap: break-word;
}

.select2-selection.select2-selection--multiple {
    min-height: 52px !important;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff !important;
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
    border: 1px solid #dadada !important;
    border-radius: 8px !important;
    color: #5a5a5a;
    display: block;
    font-size: .9999999995rem;
    font-weight: 400;
    line-height: 1.5;
    padding: .8333333333rem 2.4rem .8333333333rem .8rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    width: 100%;

}

.custom-multi-select-wrap .select2-selection:before {
    margin-top: 10px;
}

/* ── Contest filter row ─────────────────────────────────────────────────── */

.contest-filter-row {
    flex-wrap: wrap;
}

.contest-sort-select {
    min-height: 56px;
    border-radius: 8px;
    font-size: 14px;
    padding: 10px 36px 10px 12px;
    border-color: #dadada;
}

.contest-show-btn {
    min-height: 56px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

/* Filter group (custom dropdown) */
.filter-group {
    position: relative;
    min-width: 160px;
}

.filter-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #dadada;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    background: #fff;
    user-select: none;
    min-height: 56px;
    transition: border-color 0.15s;
}

.filter-group__header:hover,
.filter-group__header.is-active {
    border-color: #1972db;
}

.filter-group.is-open .filter-group__header {
    border-color: #1972db;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.filter-group__text {
    flex: 1;
    overflow: hidden;
}

.filter-group__label {
    font-size: 11px;
    color: #888;
    line-height: 1;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-group__value {
    font-size: 14px;
    color: #222;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-group__arrow {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.filter-group.is-open .filter-group__arrow {
    transform: rotate(180deg);
}

.filter-group__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: 320px;
    z-index: 1050;
    background: #fff;
    border: 1px solid #dadada;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
}

.filter-group.is-open .filter-group__dropdown {
    display: flex;
}

.filter-group__search-box {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.filter-group__search-input {
    width: 100%;
    border: 1px solid #dadada;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    outline: none;
    background: #f9f9f9;
    color: #333;
}

.filter-group__search-input:focus {
    border-color: #1972db;
    background: #fff;
}

.filter-group__items {
    max-height: 280px;
    overflow-y: auto;
    padding: 4px 0;
}

.filter-group__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.1s;
    list-style: none;
    margin: 0;
}

.filter-group__item:hover {
    background: #f0f6ff;
}

.filter-group__item input[type=checkbox] {
    display: none;
}

.filter-checkbox-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #bbb;
    border-radius: 3px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.filter-group__item.is-checked .filter-checkbox-icon {
    background: #1972db;
    border-color: #1972db;
}

.filter-group__item.is-checked .filter-checkbox-icon::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.js-filter-all-option .filter-checkbox-icon {
    border-color: transparent;
    background: none;
}

.filter-group__reset {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-top: 1px solid #eee;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #1972db;
    cursor: pointer;
    text-align: center;
    transition: background 0.1s;
}

.filter-group__reset:hover {
    background: #f0f6ff;
}

@media (max-width: 768px) {
    .filter-group {
        flex: 0 0 100%;
    }
    .filter-group__dropdown {
        max-width: 100%;
    }
    .contest-show-btn {
        width: 100%;
    }
}