.programs table {
    overflow: visible;
    border-radius: 20px;

}
.programs {
    padding-top: 232px;
    margin-top: -156px;
    background: radial-gradient(198.13% 90.64% at 12.47% 29.59%, rgb(195, 218, 249) 0%, rgb(232, 234, 255) 100%);
}

.programs table,
.programs th,
.programs td {
    border: none;
}

.programs table{
    border-collapse: collapse;
}

.programs table tbody {
    padding: 30px 40px;
}

.programs tr td a {
    padding: 14px 8px;
}

.programs tr td {
    padding: 0px;
}

.programs .order-num {
    color: #2F27CE;
}

/* Загальні стилі для таблиці */
.programs-table {
    border-collapse: unset!important;
    width: 100%;
}

.programs-table thead .programs-table__header:first-child {
    border-radius: 20px 0 0 0;
}

.programs-table thead .programs-table__header:last-child {
    border-radius: 0 20px 0 0;
}

.programs-table .programs-table__row:last-child .programs-table__cell:first-child {
    border-radius: 0 0 0 20px;
}

.programs-table .programs-table__row:last-child .table-cell-status {
    border-radius: 0 0 20px 0;
}

.programs-table__row:hover .table-cell-status {
    border-radius: 0!important;
}

.programs-table th,
.programs-table td {
    border: none; /* Прибирає всі границі таблиці */
    padding: 8px;
    text-align: left;
}

.programs-table__row {
    position: relative;
}

td.programs-table__absolute-btn-bg {
    position: absolute;
    right: -68px;
    top: -1px;
    opacity: 0;
    border: 1.5px solid #e1cfff!important;
    border-radius: 0 20px 20px 0;
    background: #E6F0FF;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.programs-table__cell {
    background: #FFF;
}

.programs-table__row:hover .programs-table__cell {
    background: #E6F0FF;
}

.programs-table__row:hover td.programs-table__absolute-btn-bg {
    opacity: 1;
}

.programs-table__absolute-btn {
    border: 1px solid #D4C4FC;
    border-radius: 100px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D4C4FC;
}


.table-row-limited td{
    background: #E6F0FF;
}

.table-cell-status a{
    color: #00bb32!important;
    font-weight: 700;
    background: none!important;
    background-clip: unset!important;
    -webkit-background-clip: unset!important;
    -webkit-text-fill-color: unset!important;
}

.table-row-limited td * {
    background: linear-gradient(137deg, #459cf8 0%, #2f78fb 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.table-row-sold-out td {
    background: #E0E0E0;
}

.table-row-sold-out::after {
    background: #ABC9F6;
}

.table-row-sold-out .table-cell-status a{
    color: #FF1B1F!important;
}


.programs-table__row::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0px;
    width: calc(100%);
    height: 1.5px;
    background: #E1CFFF;
}

tbody .programs-table__row:last-child::after {
    display: none;
}

.programs thead {
    background: #ABC9F6;
    border-radius: 20px 20px 0px 0px;
}

.programs thead th {
    padding: 17px 8px;
    border: 0;
}

.programs-table tr:first-child th:first-child {
    padding-left: 20px;
}

.programs-table tr:first-child th:last-child {
    padding-right: 20px;
}

.programs-table tbody tr td:first-child {
    padding-left: 20px;
}

body .programs-table .programs-table__cell {
    font-size: 15px;
    color: #FFFFFF;
    position: relative;
}


.programs-table tbody {
    background: transparent;
}

.status-title {
    display: none;
}

.programs-table__header span {
    font-size: 16px;
    color: #0F1419;
}

.programs-table {
    border-collapse: collapse;
    width: 100%;
    border: none;
}

.programs-table th,
.programs-table td {
    border: none;
}

.programs .programs-table__cell a {
    color: #333333;
    font-size: 15px;
    display: flex;
}

.programs-table__row:hover .programs-table__cell a {
    color: #2F78FB;
    transition: all ease 0.3s;
}

.programs-table__row:hover {
    background: #E6F0FF;
    transition: all ease 0.3s;
}

.programs-table__cell img {
    width: 20px;
    height: 20px;
    display: inline-flex;
    margin-right: 5px;
}

.programs-table__row .programs-table__cell:first-child a{
    flex-direction: column;
}

.programs-table__row .programs-table__cell:first-child{
    min-width: 220px;
}

.without-mt.programs{
    margin-top: 0;
}

.programs-table__sort {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #ABC9F6;
    padding: 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    justify-content: space-between;
    position: sticky;
    top: 100px;
    z-index: 3;
}

.programs-table__sort-title {
    color: #312946;
    font-weight: 500;
    font-size: 24px;
}

.programs-table__sort-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.programs-sort-btn {
    border-radius: 100px;
    padding: 14px 30px;
    background: #E6F0FF;
    display: flex;
    max-width: fit-content;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 20px;
    color: #0F1419;
    border: 0;
    outline: 0;
    box-shadow: none;
    cursor: pointer;
}

.programs-sort-btn.active {
    background: #D4C4FC;
}

body.no-x-scroll {
    overflow-x: clip;
}



@media screen and (max-width: 1200px) {

    td.programs-table__absolute-btn-bg {
        display: none!important;
    }

    .programs-table__row {
        border-radius: 20px;
    }

    .programs-table tbody tr:first-child td:first-child {
        padding-left: 20px;
        padding-top: 36px;
    }

    .programs-table__row::after {
        left: 20px;
        width: calc(100% - 40px);
    }

    .programs-table__sort-buttons {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .programs-table__sort-buttons.open {
        max-height: 500px;
        opacity: 1;
    }

    .programs-table__sort-title {
        cursor: pointer;
        position: relative;
        text-align: center;
        width: 100%;
        font-size: 20px;
    }

    .programs-table__sort-title::after {
        content: "";
        position: absolute;
        right: 0px;
        transition: transform 0.3s;
        background: center/ contain no-repeat url("/wp-content/uploads/2025/10/acc-arrow-3.svg");
        width: 24px;
        height: 24px;
        top: 2px;
    }

    .programs-table__sort-title.active::after {
        transform: rotate(180deg);
    }

    .programs-table__sort-buttons {
        position: absolute;
        top: 45px;
    }

    .programs-table__sort-buttons.open {
        position: absolute;
        border-radius: 0px 0px 20px 20px;
        background: #ABC9F6;
        padding: 20px;

        width: 100%
    }

    .programs-table__sort.wrap-open {
        border-radius: 20px 20px 0px 0px ;
        transition: all ease 0.3s;

    }

    .programs-table__sort {
        gap: 0px;
        transition: all ease 0.3s;
    }
}

.programs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

/* Загальні стилі для заголовків і комірок */
.programs-table th,
.programs-table td {
    text-align: left;
}

.programs_block_title h1{
    font-size: 90px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1;
    color: #1E1E1E;
}

.programs_block_title strong{
    font-weight: 700;
}

.programs_block_text {
    margin-bottom: 24px;
    font-size: 24px;
    text-align: center;
    color: #312946;
}

.programs-table__btn {
    display: none!important;
}

@media (max-width: 1200px) {
    .programs-table thead {
        display: none;
    }

    .programs-table tbody tr {
        display: block;
        margin-bottom: 10px;
        padding: 20px 20px 30px 20px;
        background: #fff;
    }

    .programs-table td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #ddd;
        position: relative;
    }

    .programs tr td a {
        padding: 0;
    }

    .programs-table td:last-child {
        border-bottom: none;
    }

    .programs-table td::before {
        content: attr(data-title);
        font-weight: 500;
        color: #0F1419;
    }

    .programs-table__cell-flag img {
        max-width: 40px;
        height: auto;
    }

    .programs_block_title h1{
        font-size: 40px;
        margin-bottom: 12px;
    }

    .programs_block_text {
        margin-bottom: 30px;
        font-size: 20px;
    }

    .programs-table__header span {
        font-size: 15px;
    }

    body .programs-table .programs-table__cell {
        border: 0;
    }

    .programs-table__row::after {
        background: #ABC9F6;
    }

    .programs-table tbody tr:first-child td:first-child {
        padding-left: 0px;
        padding-top: 0px;
    }

    .programs-table tbody tr td {
        padding: 8px 0px;
    }

    .programs-table tbody tr td:last-child {
        flex-wrap: wrap;
    }

    .programs-table tbody tr td:first-child {
        padding-left: 0px;
    }

    .programs .programs-table__cell a {
        text-align: right;
        margin-left: 20px;
        flex-direction: row-reverse;
    }

    .programs-table__cell img {
        margin-right: 0px;
        margin-left: 5px;
    }

    .programs_block_text {
        line-height: 140%;
    }

    .programs tr td .programs-table__btn {
        flex-basis: 100%;
        display: flex!important;
        align-items: center;
        justify-content: center;
        margin-left: auto!important;
        margin-right: auto;
        margin-top: 20px;
        background: #D4C4FC;
        padding: 10px;
        border-radius: 50px;
        font-size: 16px;
        color: #1E1E1E;
        font-weight: 500;
    }

    .programs-table tbody tr td:last-child {
        padding-right: 0px;
    }

    tbody .programs-table__row:last-child {
        padding-bottom: 20px;
        margin: 0;
    }

    .programs-table__sort {
        flex-direction: column;
        align-items: center;
    }

    .programs-table__sort-buttons {
        justify-content: center;
    }

    .programs-sort-btn {
        padding: 14px 20px;
        font-size: 18px;
    }
}


