.nda-pe {
    --nda-pe-brand-blue: #0099cd;
    --nda-pe-gap: 24px;
    width: 100%;
}

.nda-pe-filters {
    margin: 0 0 24px;
}

.nda-pe-filter-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.nda-pe-filter-select {
    width: 100%;
    max-width: 360px;
    min-height: 50px;
    appearance: none;
    border: 1px solid #d5d9dc;
    border-radius: 8px;
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, #0099cd 50%), linear-gradient(135deg, #0099cd 50%, transparent 50%);
    background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: #1f2933;
    cursor: pointer;
    font: inherit;
    line-height: 1.3;
    padding: 12px 44px 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nda-pe-filter-select:hover,
.nda-pe-filter-select:focus {
    border-color: #d5d9dc;
    background-color: #f5f5f5;
    box-shadow: none;
}

.nda-pe-filter-select:disabled {
    cursor: wait;
    opacity: 0.65;
}


.nda-pe-search-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    border: 1px solid #d5d9dc;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: #1f2933;
    font: inherit;
    line-height: 1.3;
    padding: 12px 14px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.nda-pe-search-input:hover,
.nda-pe-search-input:focus {
    border-color: #d5d9dc;
    background-color: #f5f5f5;
    box-shadow: none;
    color: #1f2933;
}

.nda-pe-search-input:disabled {
    cursor: wait;
    opacity: 0.65;
}

.nda-pe-search-input::placeholder {
    color: #6b7280;
    opacity: 1;
}

.nda-pe-view-all-podcasts {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 8px;
    background: #0099cd;
    color: #fff !important;
    font: inherit;
    font-weight: 600;
    line-height: 1.3;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.nda-pe-view-all-podcasts:hover,
.nda-pe-view-all-podcasts:focus {
    background: #2ec3f6;
    color: #fff !important;
    text-decoration: none !important;
}

.nda-pe-view-all-podcasts:focus {
    box-shadow: 0 0 0 3px rgba(0, 153, 205, 0.2);
    outline: 0;
}

.nda-pe-load-more {
    appearance: none;
    border: 0;
    border-radius: 6px;
    background: #0099cd;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    padding: 12px 20px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nda-pe-load-more:hover,
.nda-pe-load-more:focus {
    background: #2ec3f6;
}

.nda-pe-load-more:focus {
    box-shadow: 0 0 0 3px rgba(0, 153, 205, 0.2);
    outline: 0;
}

.nda-pe-load-more:active {
    transform: translateY(1px);
}

.nda-pe-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--nda-pe-gap);
}

.nda-pe-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
}

.nda-pe-card__artwork {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f2f2f2;
}

.nda-pe-card__artwork img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nda-pe-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 18px;
}

.nda-pe-card__show,
.nda-pe-card__date {
    font-size: 1.2rem;
    opacity: 0.72;
}

.nda-pe-card__date {
    flex-grow: 1;
}

.nda-pe-card__title {
    margin: 8px 0;
    font-size: 1.4rem;
    line-height: 1.35;
}

.nda-pe-card__title a {
    color: inherit;
    text-decoration: none;
}

.nda-pe-card__title a:hover,
.nda-pe-card__title a:focus {
    text-decoration: underline;
}

.nda-pe-card__excerpt {
    margin-top: 12px;
}

.nda-pe-card__audio {
    display: block;
    width: 100%;
    margin-top: 16px;
}

.nda-pe-actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.nda-pe-status {
    min-height: 1.5em;
    margin-bottom: 12px;
}

.nda-pe.is-loading {
    opacity: 0.75;
}

@media only screen and (min-width: 1168px) {
    .nda-pe-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media only screen and (min-width: 768px) and (max-width: 1167px) {
    .nda-pe-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 766px) {
    .nda-pe-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.nda-pe-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: flex-start;
}

.nda-pe-filter-group {
    flex: 1 1 260px;
    max-width: 360px;
}

.nda-pe-filter-group--search {
    flex-basis: 300px;
}

.podcast-contain.nda-podcast-colour-ready,
.podcast-title-desc.nda-podcast-colour-ready {
    background-color: var(--nda-podcast-header-background) !important;
}

.podcast-title-desc.nda-podcast-colour-ready {
    color: var(--nda-podcast-header-colour) !important;
}

.podcast-title-desc.nda-podcast-colour-ready,
.podcast-title-desc.nda-podcast-colour-ready h1,
.podcast-title-desc.nda-podcast-colour-ready h2,
.podcast-title-desc.nda-podcast-colour-ready h3,
.podcast-title-desc.nda-podcast-colour-ready h4,
.podcast-title-desc.nda-podcast-colour-ready h5,
.podcast-title-desc.nda-podcast-colour-ready h6,
.podcast-title-desc.nda-podcast-colour-ready p,
.podcast-title-desc.nda-podcast-colour-ready a,
.podcast-title-desc.nda-podcast-colour-ready li {
    color: var(--nda-podcast-header-colour) !important;
}


/* Enhanced Select2 or SelectWoo filters. Search is deliberately disabled. */
.nda-pe .select2-container {
    display: block;
    width: 100% !important;
    max-width: 360px;
    font: inherit;
}

.nda-pe .select2-container .select2-selection--single {
    height: 50px;
    border: 1px solid #d5d9dc;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nda-pe .select2-container .select2-selection--single:hover,
.nda-pe .select2-container--focus .select2-selection--single,
.nda-pe .select2-container--open .select2-selection--single {
    border-color: #d5d9dc;
    background: #f5f5f5;
    color: #1f2933 !important;
    box-shadow: none;
}

.nda-pe .select2-container .select2-selection--single .select2-selection__rendered {
    height: 48px;
    padding: 0 44px 0 14px;
    color: #1f2933;
    line-height: 48px;
}

.nda-pe .select2-container .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: 10px;
    width: 30px;
    height: 48px;
}

.nda-pe .select2-container .select2-selection--single .select2-selection__arrow b {
    width: 8px;
    height: 8px;
    margin: -6px 0 0 -5px;
    border: 0;
    border-right: 2px solid #0099cd;
    border-bottom: 2px solid #0099cd;
    transform: rotate(45deg);
}

.nda-pe .select2-container--open .select2-selection--single .select2-selection__arrow b {
    margin-top: -2px;
    transform: rotate(225deg);
}

.select2-container .nda-pe-select2-dropdown,
.nda-pe-select2-dropdown {
    overflow: hidden;
    margin-top: 6px;
    border: 1px solid #d5d9dc;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.nda-pe-select2-dropdown .select2-results__options {
    max-height: 320px;
    padding: 6px;
}

.nda-pe-select2-dropdown .select2-results__option {
    margin: 0;
    padding: 10px 12px;
    border-radius: 5px;
    color: #1f2933;
    line-height: 1.35;
}

.nda-pe-select2-dropdown .select2-results__option--highlighted[aria-selected],
.nda-pe-select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
    background: #f5f5f5;
    color: #1f2933;
}

.nda-pe-select2-dropdown .select2-results__option[aria-selected="true"],
.nda-pe-select2-dropdown .select2-results__option--selected {
    background: #f5f5f5;
    color: #1f2933;
}

.nda-pe-select2-dropdown .select2-results__option[aria-selected="true"].select2-results__option--highlighted,
.nda-pe-select2-dropdown .select2-results__option--selected.select2-results__option--highlighted {
    background: #f5f5f5;
    color: #1f2933;
}

.nda-pe-select2-dropdown .select2-search--dropdown,
.select2-container .select2-search--dropdown {
    display: none !important;
}

.nda-pe .select2-container--disabled .select2-selection--single {
    cursor: wait;
    opacity: 0.65;
}


/* Built-in styled filter dropdowns. The native select remains available to scripts but is visually hidden. */
.nda-pe-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.nda-pe-styled-select {
    position: relative;
    width: 100%;
    max-width: 360px;
}

.nda-pe-styled-select__button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 50px;
    padding: 0 48px 0 14px;
    border: 1px solid #d5d9dc;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: #1f2933;
    font: inherit;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nda-pe-styled-select__button::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid #0099cd;
    border-bottom: 2px solid #0099cd;
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin-top 0.2s ease;
}

.nda-pe-styled-select__button:hover,
.nda-pe-styled-select__button:focus,
.nda-pe-styled-select.is-open .nda-pe-styled-select__button {
    border-color: #d5d9dc;
    background: #f5f5f5;
    box-shadow: none;
}

.nda-pe-styled-select.is-open .nda-pe-styled-select__button::after {
    margin-top: -2px;
    transform: rotate(225deg);
}

.nda-pe-styled-select__button:hover .nda-pe-styled-select__value,
.nda-pe-styled-select__button:focus .nda-pe-styled-select__value,
.nda-pe-styled-select.is-open .nda-pe-styled-select__value {
    color: #1f2933 !important;
}

.nda-pe-styled-select__value {
    display: block;
    white-space: nowrap;
}

.nda-pe-styled-select__options {
    position: absolute;
    z-index: 99999;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #d5d9dc;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.nda-pe-styled-select__option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #1f2933;
    font: inherit;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.nda-pe-styled-select__option:hover,
.nda-pe-styled-select__option:focus {
    background: #f5f5f5;
    color: #1f2933;
    outline: 0;
}

.nda-pe-styled-select__option.is-selected {
    background: #f5f5f5;
    color: #1f2933;
    font-weight: 600;
}

.nda-pe-styled-select__option.is-selected:hover,
.nda-pe-styled-select__option.is-selected:focus {
    background: #f5f5f5;
    color: #1f2933;
}

.nda-pe-styled-select.is-disabled {
    opacity: 0.65;
}

.nda-pe-styled-select.is-disabled .nda-pe-styled-select__button {
    cursor: wait;
}

@media only screen and (max-width: 766px) {
    .nda-pe-filter-group,
    .nda-pe-styled-select {
        width: 100%;
        max-width: 100%;
    }

    .nda-pe-filter-group {
        flex: 1 1 100%;
    }
}
