/* Webinare "Aktuelle Themen und Termine" event cards — Figma 3709-4962.
 * Scoped to the DE (85338) + EN (263093) Webinare pages. Styles the namespaced
 * .webinar-ev-card* markup emitted by CardSliderMobile (auto webinar branch):
 * light-blue top with a wave transition into a white footer holding two pill
 * buttons, plus the "Alle Beiträge" button below the slider. */

/* Card width → Figma ~385.33px. The slider (count_3) computes slide width from
 * the swiper container; .slider-mobile-items-wrapper carries a 32px right gutter
 * that shrank the container (→376px cards) and left the row asymmetric. Drop the
 * gutter so cards fill the panel symmetrically at ~385px. */
body:is(.page-id-85338, .page-id-263093) section.webinare-slider-jtl-section .slider-mobile-items-wrapper {
    padding-right: 4px !important;
}

body:is(.page-id-85338, .page-id-263093) .webinar-ev-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(11, 27, 69, .08);
}
/* Fixed card height 410px (Figma). Must out-specify the plugin's
 * `…swiper-wrapper .swiper-slide { height:auto !important }` (0,3,1). */
body:is(.page-id-85338, .page-id-263093) section.webinare-slider-jtl-section .swiper-slide.webinar-ev-card {
    height: 410px !important;
}

/* ---- blue top ---- */
body:is(.page-id-85338, .page-id-263093) .webinar-ev-card__top {
    position: relative;
    flex: 1 1 auto;
    background: #89d2ff;
    padding: 24px 24px 48px;
    overflow: hidden;
}
body:is(.page-id-85338, .page-id-263093) .webinar-ev-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
body:is(.page-id-85338, .page-id-263093) .webinar-ev-card__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
}
body:is(.page-id-85338, .page-id-263093) .webinar-ev-card__wave svg {
    display: block;
    width: 100%;
    height: 68px;
}

/* ---- badge ---- */
body:is(.page-id-85338, .page-id-263093) .webinar-ev-card__badge {
    display: inline-flex;
    align-items: center;
    background: #2722f8;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 28px;
}

/* ---- title / date / speaker ---- */
body:is(.page-id-85338, .page-id-263093) .webinar-ev-card__title {
    margin: 0;
    font-family: Inter, sans-serif !important;
    font-weight: 600;
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: -0.4px;
    color: #0b1b45 !important;
    -webkit-text-fill-color: #0b1b45;
}
body:is(.page-id-85338, .page-id-263093) .webinar-ev-card__date {
    margin: 0;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    text-transform: uppercase;
    color: #2722f8 !important;
    -webkit-text-fill-color: #2722f8;
}
body:is(.page-id-85338, .page-id-263093) .webinar-ev-card__speaker {
    margin: 8px 0 0;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #0b1b45 !important;
    -webkit-text-fill-color: #0b1b45;
}

/* ---- white footer + buttons ---- */
body:is(.page-id-85338, .page-id-263093) .webinar-ev-card__actions {
    position: relative;
    z-index: 2;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 24px 24px;
}
/* Both card buttons use the canonical ProductButtonWithIcon component
 * (.product-button-group__button--with-icon + is-primary-neg / base secondary),
 * so their fill, border, radius and hover come from the widget's own style.css —
 * no button styling is defined here. Keep them from stretching full-width in the
 * flex row and cap the label size so both fit the ~385px card. */
body:is(.page-id-85338, .page-id-263093) .webinar-ev-card__actions .product-button-group__button--with-icon {
    flex: 0 0 auto;
    font-size: 14px;
    padding: 10px 16px;
}

/* ============================================================
 * Navy decorated container — Figma 3709-4962 frame
 * (div.decorated-container-inner: navy bg, 46px radius, white text).
 * This page ships the `no-decorate` / `whithout-decor` opt-out variant
 * (Light Sand panel, dark text — JP-471). Re-enable the decorated navy
 * look, scoped to the two Webinare pages only. Loaded after
 * custom-clone.css so these win the !important ties by source order.
 * ============================================================ */

/* Panel background → navy */
body:is(.page-id-85338, .page-id-263093) section.webinare-slider-jtl-section .decorated-container-inner,
body:is(.page-id-85338, .page-id-263093) section.webinare-slider-jtl-section .decorated-container-wrapper,
body:is(.page-id-85338, .page-id-263093) section.webinare-slider-jtl-section .decorated-container-inner > .decorated-container-wrapper,
body:is(.page-id-85338, .page-id-263093) section.webinare-slider-jtl-section .decorated-container-wrapper .decorated-container {
    background-color: #0b1b45 !important;
    border-radius: 46px !important;
}

/* Eyebrow → light blue. Must out-specify TWO competing !important rules that
 * paint it Tech Blue for the old panel: jp-469's
 * `body.page-id-85338 …inner .wrapper .over-title` (0,5,2) and the base
 * `#content section.orange.black .over-title` ID rule (1,3,2). Prefix with
 * `#content` + the full inner/wrapper chain → (1,5,2) wins both. */
body:is(.page-id-85338, .page-id-263093) #content section.webinare-slider-jtl-section .decorated-container-inner .decorated-container-wrapper .decorated-container-heading__over-title,
body:is(.page-id-85338, .page-id-263093) #content section.webinare-slider-jtl-section .decorated-container-inner .decorated-container-wrapper .decorated-container-heading__over-title * {
    color: #89d2ff !important;
    -webkit-text-fill-color: #89d2ff !important;
    background: none !important;
    background-image: none !important;
}

/* Heading + description → white */
body:is(.page-id-85338, .page-id-263093) section.webinare-slider-jtl-section .decorated-container-heading__title,
body:is(.page-id-85338, .page-id-263093) section.webinare-slider-jtl-section .decorated-container-heading__title *,
body:is(.page-id-85338, .page-id-263093) section.webinare-slider-jtl-section h2,
body:is(.page-id-85338, .page-id-263093) section.webinare-slider-jtl-section .decorated-container-heading__description {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    background-image: none !important;
}

/* Calendar-subscribe block (.mt-5.mb-5.white.text-tertiary) → white text + white
 * links. Matches jp-469-hilfecenter-webinare.css's compound specificity (0,6,2)
 * so this later-loaded file wins; that file colored the block navy + links Tech
 * Blue for the old Light-Sand panel, invisible on the navy panel. */
body:is(.page-id-85338, .page-id-263093) section.webinare-slider-jtl-section .mt-5.mb-5.white.text-tertiary,
body:is(.page-id-85338, .page-id-263093) section.webinare-slider-jtl-section .mt-5.mb-5.white.text-tertiary :is(h1,h2,h3,h4,h5,h6,p,span,strong,li) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
body:is(.page-id-85338, .page-id-263093) section.webinare-slider-jtl-section .mt-5.mb-5.white.text-tertiary a {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: underline !important;
}
