/* WTS Mega Menu styles */
.wts-mega {
    --bg: #f8f5ff;
    --rail: #5b3abf;
    --rail2: #744fe0;
    --text: #000;
    --muted: #7c7792;
    --ring: #ccb8ff;
}

.wts-mega {
    position: relative;
    z-index: 50;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

.wts-mega__wrap {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    background: var(--bg);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 30px rgba(31, 16, 80, .15);
}


/* Panels 2–4 */
.wts-panels {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.wts-col.is-empty {
    display: none;
}

.wts-col[data-tier] {
    list-style: none;
    margin: 0;
    padding: 20px;
    background: #fff;

    border-radius: 12px;
    min-height: 580px;
    max-height: 680px;
}

.wts-col[data-tier][data-column="2"] {
    min-height: 580px;
    max-height: 680px;
}

.wts-col[data-tier] li {
    margin: 0;
    max-width: 205px;
}
.wts-col[data-tier] a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 400;
    font-size: 18px;
}

.wts-col a.btn {
    background: #522773;
    text-align: center;
    padding: 14px;
    justify-content: center;
    color: white;
    border-radius: 100px;
    margin-top: 10px;
}
.wts-col a.btn:hover {
    background: #964dce!important;
    color: white!important;
}
.wts-col .is-active a,
.wts-col[data-tier] a:hover, .wts-col[data-tier] a:focus-visible {
    background: #F6F6F6;
    color: #964DCE;
    outline: none;
}

.wts-caret {
    font-size: 18px;
    line-height: 1;
    opacity: .7;
}


/* Column 1 */
.wts-mega__wrap .wts-col--tier0 {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 580px;
    border: none;
    background: transparent;
    color: #fff;
    border-radius: 12px;
}

.wts-col--tier0 .wts-item + .wts-item {
    margin-top: 14px;
}

.wts-col--tier0 a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 12px 14px;
    border-radius: 10px;
}

.wts-col--tier0 a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.wts-col--tier0 .wts-item--tier0 .wts-desc {
    font-family: Lato;
    font-weight: 400;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 130%;
    color: #686868;

}

.wts-col--tier0 .wts-item--tier0.is-active > a {
    background: #522773;
    color: #E9CDFF;
}

.wts-col--tier0 .wts-item--tier0.is-active > a .wts-desc {
    color: #FFFFFF;

}

.wts-col--tier0 a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wts-heading {
    color: #964DCE;
    margin-bottom: 20px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 130%;

}

.wts-col--tier2 .wts-heading,
.wts-col--tier3 .wts-heading {
    opacity: 0;
}

.wts-col--tier0 .wts-txt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.wts-col--tier0 .wts-label {
    line-height: 1.15;
}

.wts-col--tier0 .wts-desc {
    font-size: 0.875rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, .9);
    font-weight: 500;
    opacity: .95;
}
.wts-col--tier0
.wts-caret {
    display: none !important;
}

/* list container inside each tier column */
/* обгортка для кількох списків у колонці */
.wts-col[data-tier] .wts-list-wrap {
    display: grid;
    grid-template-columns: 1fr; /* за замовчуванням одна колонка */
    column-gap: 10px;
}

.wts-col[data-tier] .wts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* обгортка для кількох списків у колонці */
.wts-col[data-tier] .wts-list-wrap {
    display: grid;
    grid-template-columns: 1fr; /* за замовчуванням одна колонка */
    column-gap: 20px;
}

.wts-col[data-tier] .wts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wts-col[data-tier] .wts-list li {
    break-inside: avoid;
}

/* коли є 2 списки — 2 колонки */
.wts-col[data-tier] .wts-list-wrap.cols-2 {
    grid-template-columns: repeat(2, minmax(205px, 205px));
}

.wts-col[data-tier] .wts-list-wrap.cols-3 {
    grid-template-columns: repeat(3, minmax(205px, 205px));
}

/* мобайл — завжди в одну колонку */
@media (max-width: 1024px) {
    .wts-col[data-tier] .wts-list-wrap {
        grid-template-columns: 1fr !important;
    }
}