/**
 * MemberPress Course Explorer — base styles.
 *
 * All visual parts are overridable from the Elementor Style tab; these rules
 * only provide a sane default appearance.
 */

.lx-cexp [hidden] {
        display: none !important;
}

/* Toolbar ---------------------------------------------------------------- */

.lx-cexp__toolbar {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: space-between;
        margin-bottom: 24px;
        position: relative;
        width: 100%;
}

.lx-cexp__terms {
        align-items: var(--lx-cexp-terms-cross-align, var(--lx-cexp-terms-align-items, center));
        display: flex;
        flex-direction: var(--lx-cexp-terms-direction, row);
        flex: 1 1 auto;
        flex-wrap: var(--lx-cexp-terms-wrap, nowrap);
        gap: 10px;
        justify-content: var(--lx-cexp-terms-justify-content, flex-start);
        margin-right: auto;
        max-width: 100%;
        min-width: 0;
        overflow-x: var(--lx-cexp-terms-overflow-x, auto);
        overflow-y: var(--lx-cexp-terms-overflow-y, hidden);
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
}

.lx-cexp__terms::-webkit-scrollbar {
        display: none;
}

.lx-cexp__term {
        appearance: none;
        background-color: #f4f6fa;
        border: 1px solid #d7dee8;
        border-radius: 999px;
        color: #35405a;
        cursor: pointer;
        display: inline-flex;
        flex: 0 0 auto;
        font-size: 14px;
        line-height: 1.4;
        padding: 8px 18px;
        transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
        white-space: var(--lx-cexp-term-white-space, nowrap);
}

.lx-cexp__term:hover {
        background-color: #e9effb;
        border-color: #b9c8ee;
}

.lx-cexp__term.is-active {
        background-color: #2f6bf6;
        border-color: #2f6bf6;
        color: #ffffff;
}

.lx-cexp__actions {
        align-items: center;
        display: flex;
        flex: 0 1 auto;
        flex-wrap: wrap;
        gap: 10px;
        margin-left: auto;
}

/* Search box ------------------------------------------------------------- */

.lx-cexp__search {
        position: relative;
        width: 260px;
}

.lx-cexp__search-input {
        appearance: none;
        background-color: #ffffff;
        border: 1px solid #d7dee8;
        border-radius: 10px;
        box-sizing: border-box;
        color: #35405a;
        font-size: 14px;
        height: 40px;
        line-height: 1.4;
        outline: none;
        padding: 0 38px 0 14px;
        transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
        width: 100%;
}

.lx-cexp__search-input:focus {
        border-color: #2f6bf6;
        box-shadow: 0 0 0 3px rgba(47, 107, 246, .14);
}

.lx-cexp__search-icon {
        background-color: #8a94a6;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E");
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-size: contain;
        mask-size: contain;
        height: 16px;
        pointer-events: none;
        position: absolute;
        right: 13px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
}

/* Filter button + dropdown ------------------------------------------------ */

/* The dropdown panel is anchored to the toolbar so it spans the full widget
   width by default; the "Panel Width" style control can override it. */

.lx-cexp__filter {
        position: relative;
}

.lx-cexp__filter-btn {
        align-items: center;
        appearance: none;
        background-color: #f4f6fa;
        border: 1px solid #d7dee8;
        border-radius: 10px;
        color: #35405a;
        cursor: pointer;
        display: inline-flex;
        font-size: 14px;
        line-height: 1.4;
        padding: 9px 18px;
        transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
        white-space: nowrap;
}

.lx-cexp__filter-btn:hover {
        background-color: #e9effb;
        border-color: #b9c8ee;
}

.lx-cexp__filter-btn-icon {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        line-height: 1;
        margin-left: 0;
        margin-right: var(--lx-cexp-icon-gap, 8px);
}

.lx-cexp__filter-btn.is-icon-after .lx-cexp__filter-btn-icon {
        margin-left: var(--lx-cexp-icon-gap, 8px);
        margin-right: 0;
}

.lx-cexp__filter-btn-icon svg {
        fill: currentColor;
        height: 1em;
        width: 1em;
}

.lx-cexp__filter-caret {
        background-color: currentColor;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-size: contain;
        mask-size: contain;
        height: 12px;
        margin-left: 8px;
        opacity: .7;
        transition: transform .18s ease;
        width: 12px;
}

.lx-cexp.is-filter-open .lx-cexp__filter-caret {
        transform: rotate(180deg);
}

.lx-cexp__filter-panel {
        background-color: #ffffff;
        border: 1px solid #e2e8f2;
        border-radius: 12px;
        box-shadow: 0 14px 34px rgba(30, 42, 66, .14);
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 4px;
        left: 0;
        max-width: 100vw;
        min-width: 240px;
        overflow: auto;
        padding: 8px;
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
        width: max-content;
        z-index: 90;
}

.lx-cexp__filter-option {
        align-items: flex-start;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        flex: 0 0 auto;
        gap: 9px;
        max-width: 100%;
        padding: 8px 10px;
        transition: background-color .15s ease, color .15s ease;
        white-space: normal;
        word-break: break-word;
}

.lx-cexp__filter-option:hover {
        background-color: #f2f5fa;
}

.lx-cexp__filter-option.is-checked {
        color: #2f6bf6;
        font-weight: 600;
}

.lx-cexp__filter-checkbox {
        accent-color: #2f6bf6;
        cursor: pointer;
        flex: 0 0 auto;
        height: 15px;
        margin: 2px 0 0;
        width: 15px;
}

.lx-cexp__filter-option-label {
        flex: 1 1 auto;
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
}

/* Results area ------------------------------------------------------------ */

.lx-cexp__results {
        position: relative;
}

.lx-cexp__results.is-loading {
        pointer-events: none;
}

.lx-cexp__results.is-loading::after {
        animation: lx-cexp-spin .8s linear infinite;
        border: 3px solid rgba(47, 107, 246, .18);
        border-radius: 50%;
        border-top-color: #2f6bf6;
        content: "";
        height: 32px;
        left: 50%;
        margin: -16px 0 0 -16px;
        position: absolute;
        top: 50%;
        width: 32px;
        z-index: 5;
}

.lx-cexp__results.is-loading .lx-cexp__grid {
        opacity: .45;
        transition: opacity .18s ease;
}

@keyframes lx-cexp-spin {
        to {
                transform: rotate(360deg);
        }
}

.lx-cexp__grid {
        column-gap: 24px;
        display: grid;
        grid-template-columns: repeat(var(--lx-cexp-cols, 3), minmax(0, 1fr));
        row-gap: 24px;
}

.lx-cexp__group {
        grid-column: 1 / -1;
        margin: 0 0 40px;
        min-width: 0;
}

.lx-cexp__group:last-child {
        margin-bottom: 0;
}

.lx-cexp__group-title {
        color: #1f2937;
        font-size: 28px;
        font-weight: 700;
        line-height: 1.2;
        margin: 0 0 20px;
}

.lx-cexp__group-grid {
        column-gap: 24px;
        display: grid;
        grid-template-columns: repeat(var(--lx-cexp-cols, 3), minmax(0, 1fr));
        row-gap: 24px;
}

.lx-cexp__item {
        display: flex;
        flex-direction: column;
        min-width: 0;
}

.lx-cexp__template {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-width: 0;
        width: 100%;
}

.lx-cexp__notice {
        background-color: #fdf6e3;
        border: 1px solid #ecd9a0;
        border-radius: 8px;
        color: #8a6d1f;
        font-size: 14px;
        padding: 14px 18px;
}

.lx-cexp__empty {
        color: #6b7280;
        font-size: 15px;
        padding: 42px 10px;
        text-align: center;
}

/* Pagination -------------------------------------------------------------- */

.lx-cexp__pagination {
        display: flex;
        justify-content: center;
        margin-top: 32px;
}

.lx-cexp__pagination-list {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
}

.lx-cexp__page-btn {
        align-items: center;
        appearance: none;
        background-color: #ffffff;
        border: 1px solid #d7dee8;
        border-radius: 9px;
        box-sizing: border-box;
        color: #35405a;
        cursor: pointer;
        display: inline-flex;
        font-size: 14px;
        justify-content: center;
        line-height: 1;
        min-width: 38px;
        padding: 11px 12px;
        transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.lx-cexp__page-btn svg {
        display: block;
}

.lx-cexp__page-btn:not(.is-current):hover {
        background-color: #eef3ff;
        border-color: #b9c8ee;
        color: #2f6bf6;
}

.lx-cexp__page-btn.is-current {
        background-color: #2f6bf6;
        border-color: #2f6bf6;
        color: #ffffff;
        cursor: default;
        font-weight: 600;
}

.lx-cexp__page-dots {
        color: #8a94a6;
        padding: 0 2px;
}

/* Small screens ----------------------------------------------------------- */

@media (max-width: 767px) {
        .lx-cexp__actions {
                width: 100%;
        }

        .lx-cexp__search {
                flex: 1 1 auto;
                width: auto;
        }
}
