/* De Werven Podcast Feed - v1.1.8
   Rustige kaartstijl, dichter bij de agenda-opmaak. Afbeeldingen vierkant. */

.dw-podcast-wrap {
    max-width: 1180px;
    margin: 28px auto 42px auto;
    padding: 0 14px;
}

.dw-podcast-header {
    background: #ffffff;
    border-left: 7px solid #ff5b1a;
    border-radius: 15px;
    padding: 22px 28px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.dw-podcast-header h1 {
    margin: 0 0 8px 0;
    color: #12384c;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.12;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.dw-podcast-header p {
    margin: 0;
    color: #2f3238;
    font-size: 17px;
    line-height: 1.45;
}

.dw-podcast-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 26px 0;
}

.dw-podcast-tab {
    border: 0;
    background: #006995;
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 17px;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
    transition: background .15s ease, box-shadow .15s ease;
}

.dw-podcast-tab:hover,
.dw-podcast-tab:focus {
    background: #00577c;
    color: #ffffff;
}

.dw-podcast-tab.is-active {
    background: #ff5b1a;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 91, 26, .14);
}

.dw-podcast-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

.dw-podcast-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.055);
    border: 1px solid rgba(18, 56, 76, 0.055);
    min-width: 0;
}

.dw-podcast-card.is-hidden {
    display: none;
}

.dw-podcast-cover {
    position: relative;
    aspect-ratio: 1 / 1;
    height: auto;
    background: #edf1f3;
    overflow: hidden;
}

button.dw-podcast-cover {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    appearance: none;
}

.dw-podcast-cover-trigger:focus-visible {
    outline: 3px solid rgba(255, 91, 26, .55);
    outline-offset: -3px;
}

.dw-podcast-cover-trigger img {
    transition: transform .18s ease, filter .18s ease;
}

.dw-podcast-cover-trigger:hover img,
.dw-podcast-cover-trigger:focus-visible img {
    transform: scale(1.025);
    filter: brightness(.92);
}

.dw-podcast-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
    opacity: 0;
    transition: opacity .18s ease;
}

.dw-podcast-play-icon::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #ff5b1a;
}

.dw-podcast-cover-trigger:hover .dw-podcast-play-icon,
.dw-podcast-cover-trigger:focus-visible .dw-podcast-play-icon {
    opacity: 1;
}

.dw-podcast-cover img,
.dw-podcast-cover-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dw-podcast-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #12384c;
    font-size: 22px;
    font-weight: 850;
    background: linear-gradient(135deg, #dfe8ec, #ffffff);
}

.dw-podcast-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 30px);
    border-radius: 8px;
    padding: 8px 11px;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.05;
    font-weight: 850;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}

.dw-podcast-badge-series {
    display: none !important;
}

.dw-podcast-badge-duration {
    right: 14px;
    bottom: 14px;
    background: #006995;
}

.dw-podcast-content {
    padding: 20px 21px 23px 21px;
}

.dw-podcast-content h2 {
    margin: 0 0 12px 0;
    color: #151b28;
    font-size: 22px;
    line-height: 1.13;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.dw-podcast-date {
    margin-bottom: 14px;
    color: #ff5b1a;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 850;
}

.dw-podcast-desc {
    color: #3e4550;
    font-size: 16px;
    line-height: 1.38;
    margin: 0 0 22px 0;
}


.dw-podcast-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px 15px;
    align-items: center;
    margin-top: 4px;
}

.dw-podcast-open {
    display: inline-block;
    border: 0;
    background: transparent;
    color: #ff5b1a !important;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 850;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
}

.dw-podcast-open:hover,
.dw-podcast-open:focus {
    color: #d94a11 !important;
    text-decoration: underline;
}

.dw-podcast-new-window {
    display: inline-block;
    color: #006995 !important;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 850;
    text-decoration: none;
}

.dw-podcast-new-window:hover,
.dw-podcast-new-window:focus {
    color: #00577c !important;
    text-decoration: underline;
}

.dw-podcast-player {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(18, 56, 76, 0.10);
}

.dw-podcast-player audio {
    display: block;
    width: 100%;
    margin: 0 0 12px 0;
}

.dw-podcast-link {
    display: inline-block;
    color: #006995 !important;
    background: transparent;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    padding: 0;
}

.dw-podcast-link:hover,
.dw-podcast-link:focus {
    color: #00577c !important;
    text-decoration: underline;
}

.dw-podcast-error {
    max-width: 1180px;
    margin: 24px auto;
    padding: 16px 20px;
    background: #fff3f3;
    border-left: 5px solid #c00;
    border-radius: 10px;
}

@media (max-width: 1120px) {
    .dw-podcast-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 820px) {
    .dw-podcast-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }


    .dw-podcast-content h2 {
        font-size: 21px;
    }
}

@media (max-width: 560px) {
    .dw-podcast-wrap {
        margin-top: 18px;
        padding: 0 12px;
    }

    .dw-podcast-header {
        padding: 20px 20px;
        border-radius: 14px;
    }

    .dw-podcast-header h1 {
        font-size: 28px;
    }

    .dw-podcast-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }

    .dw-podcast-tab {
        padding: 10px 14px;
        font-size: 13px;
    }

    .dw-podcast-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    .dw-podcast-content {
        padding: 19px 20px 22px 20px;
    }

    .dw-podcast-content h2 {
        font-size: 22px;
    }
}


/* Nieuw scherm / luistervenster
   Dit is bewust géén browser-tab, maar een volledig luisterscherm over de pagina. */
.dw-podcast-new-window {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.dw-podcast-modal[hidden] {
    display: none !important;
}

.dw-podcast-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: #ffffff;
}

.dw-podcast-modal-backdrop {
    position: absolute;
    inset: 0;
    background: #ffffff;
}

.dw-podcast-modal-panel {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    overflow-y: auto;
    box-shadow: none;
    border-radius: 0;
}

.dw-podcast-modal-close {
    position: fixed;
    top: 22px;
    right: 24px;
    z-index: 4;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: #ff5b1a;
    color: #ffffff;
    font-size: 38px;
    line-height: 46px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(255, 91, 26, .25);
}

.dw-podcast-modal-close:hover,
.dw-podcast-modal-close:focus {
    background: #e84d12;
}

.dw-podcast-modal-inner {
    min-height: 100vh;
    width: min(1180px, calc(100% - 56px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 54px;
    align-items: center;
    padding: 64px 0;
}

.dw-podcast-modal-cover-wrap {
    background: #edf1f3;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .12);
    aspect-ratio: 1 / 1;
}

.dw-podcast-modal-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dw-podcast-modal-content {
    padding: 0 72px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dw-podcast-modal-date {
    color: #ff5b1a;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 850;
    margin-bottom: 14px;
}

.dw-podcast-modal-title {
    margin: 0 0 32px 0;
    color: #151b28;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.dw-podcast-modal-audio {
    display: block;
    width: 100%;
    min-height: 48px;
}

.dw-podcast-modal-is-open {
    overflow: hidden;
}

@media (max-width: 860px) {
    .dw-podcast-modal-panel {
        padding-top: 72px;
    }

    .dw-podcast-modal-inner {
        min-height: auto;
        width: min(640px, calc(100% - 32px));
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 0 32px 0;
    }

    .dw-podcast-modal-content {
        padding: 0;
    }

    .dw-podcast-modal-title {
        font-size: clamp(28px, 8vw, 42px);
        margin-bottom: 22px;
    }

    .dw-podcast-modal-date {
        font-size: 18px;
    }

    .dw-podcast-modal-close {
        top: 14px;
        right: 14px;
        width: 44px;
        height: 44px;
        font-size: 34px;
        line-height: 40px;
    }
}
