/* Webinars listing and single webinar (November 2026).
   Loaded only on page-template/webinars.php and single-webinar.php (see inc/webinars.php).
   Uses the theme's own fonts, colours and radii; the compiled app.css / app-new.css stay untouched. */

/* ---------- Listing ---------- */

.webinars_list {
    padding-block: clamp(40px, 4vw, 80px) clamp(80px, 8vw, 160px);
}

.webinars_list .container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.webinar_row {
    display: grid;
    grid-template-columns: minmax(0, 34%) minmax(0, 1fr) auto;
    gap: clamp(20px, 2.2vw, 44px);
    align-items: center;
    background: #fff;
    border: 1px solid #EBF1FE;
    border-radius: 24px;
    padding: clamp(16px, 1.25vw, 24px);
    box-shadow: 0 10px 30px rgba(0, 57, 219, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.webinar_row:hover {
    box-shadow: 0 16px 40px rgba(0, 57, 219, 0.12);
    transform: translateY(-2px);
}

.webinar_row_thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #EBF1FE, #DBEEF7);
}

.webinar_row_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.webinar_row:hover .webinar_row_thumb img {
    transform: scale(1.03);
}

.webinar_row_play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0039DB;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    /* The thumbnails carry their own title text, so the play badge only shows on hover. */
    opacity: 0;
    transition: opacity 0.25s ease;
}

.webinar_row:hover .webinar_row_play {
    opacity: 1;
}

.webinar_row_play svg {
    margin-left: 3px;
}

.webinar_tag {
    display: inline-block;
    background: #EBF1FE;
    color: #0039DB;
    font-family: "AssistantSemiBold", sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 1000px;
}

.webinar_row_body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.webinars_list h2.webinar_row_title {
    text-align: left;
    width: auto;
    margin: 4px 0 0;
    font-family: "GothamRegular", sans-serif;
    font-weight: 400;
    font-size: clamp(22px, 1.5625vw, 32px);
    line-height: 1.25;
    color: #0039DB;
}

.webinar_row_title a {
    color: inherit;
}

.webinar_row_date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin: 0;
    font-family: "AssistantSemiBold", sans-serif;
    font-size: 16px;
    color: #4BAAD7;
}

.webinar_presenter {
    font-family: "AssistantRegular", sans-serif;
    font-size: 16px;
    color: #4F5B71;
}

.webinar_row_date time + .webinar_presenter::before {
    content: "\00B7";
    margin-right: 10px;
    color: #4BAAD7;
}

.webinar_row_text {
    margin: 0;
    font-family: "AssistantRegular", sans-serif;
    font-size: clamp(16px, 1.0417vw, 20px);
    line-height: 1.5;
    color: #505050;
}

/* "Open" and "All webinars" are the theme's .line-btn pills, with the label centred: the theme
   keeps room for its hover arrow on the right, which pushes the label off-centre, so here the
   hidden arrow takes no space and the side padding is equal. */
.webinar_row_open,
.webinar_back {
    justify-content: center;
    gap: 0;
    padding-inline: 1.5625vw;
}

.webinar_row_open {
    margin-top: 4px;
}

.webinar_row_open svg {
    margin-left: 0;
}

.webinar_row_open:hover svg {
    margin-left: 8px;
}

@media (max-width: 1900px) {
    .webinar_row_open,
    .webinar_back {
        padding-inline: 30px;
    }
}

@media (max-width: 1680px) {
    .webinar_row_open,
    .webinar_back {
        padding-inline: 27px;
    }
}

@media (max-width: 768px) {
    .webinar_row_open,
    .webinar_back {
        padding-inline: 18px;
    }
}

.webinar_row_action {
    align-self: stretch;
    display: flex;
    align-items: center;
    border-left: 2px solid #4BAAD7;
    padding-inline: clamp(20px, 2.2vw, 44px) clamp(8px, 1vw, 20px);
}

.webinar_replay {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    font-family: "AssistantSemiBold", sans-serif;
    font-size: clamp(16px, 1.0417vw, 20px);
    color: #0039DB;
}

.webinar_replay_icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(101deg, #0039DB -40.1%, #4BAAD7 93.12%);
    color: #fff;
    transition: transform 0.25s ease;
}

.webinar_replay_icon svg {
    width: 12px;
    height: 14px;
    margin-left: 2px;
}

.webinar_replay:hover .webinar_replay_icon {
    transform: scale(1.08);
}

.webinars_pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-family: "AssistantSemiBold", sans-serif;
}

.webinars_pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding-inline: 12px;
    border-radius: 1000px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0039DB;
    border: 1.5px solid #EBF1FE;
}

.webinars_pagination .page-numbers.current {
    background: #0039DB;
    border-color: #0039DB;
    color: #fff;
}

/* ---------- Single webinar ---------- */

.webinar_hero .webinar_hero_title {
    position: relative;
    z-index: 1;
    max-width: 70%;
    margin-top: 0.78125vw;
    text-align: left;
    font-family: "GothamRegular", sans-serif;
    font-weight: 400;
    font-size: 2.8125vw;
    letter-spacing: -0.1125vw;
    line-height: 1.15;
    color: #0039DB;
}

.webinar_single {
    padding-block: clamp(40px, 4vw, 80px);
}

.webinar_player {
    max-width: 1100px;
    margin: 0 auto clamp(32px, 3vw, 56px);
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    background: #0b1736;
    box-shadow: 0 20px 50px rgba(0, 57, 219, 0.15);
    scroll-margin-top: 140px;
}

.webinar_player video,
.webinar_player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.webinar_single_body {
    max-width: 860px;
    margin: 0 auto;
}

.webinar_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.webinar_meta time {
    font-family: "AssistantSemiBold", sans-serif;
    font-size: 16px;
    color: #4BAAD7;
}

.webinar_meta time + .webinar_presenter::before {
    content: "\00B7";
    margin-right: 16px;
    color: #4BAAD7;
}

.webinar_single .webinar_text {
    padding: 0; /* the theme's .text adds 20px / 40px */
}

.webinar_text {
    font-family: "AssistantRegular", sans-serif;
    font-size: clamp(16px, 1.0417vw, 20px);
    line-height: 1.6;
    color: #505050;
}

.webinar_text p {
    margin: 0 0 1em;
}

.webinar_text h2,
.webinar_text h3 {
    width: auto;
    margin: 1.5em 0 0.5em;
    text-align: left;
    font-family: "GothamRegular", sans-serif;
    font-weight: 400;
    color: #0039DB;
}

.webinar_text h2 {
    font-size: clamp(24px, 1.6vw, 32px);
}

.webinar_text h3 {
    font-size: clamp(20px, 1.25vw, 24px);
}

.webinar_text ul,
.webinar_text ol {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

.webinar_text ul {
    list-style: disc;
}

.webinar_text ol {
    list-style: decimal;
}

.webinar_text li {
    margin-bottom: 0.4em;
}

.webinar_text a {
    color: #0039DB;
}

.webinar_share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #EBF1FE;
}

.webinar_share_label {
    margin: 0 8px 0 0;
    font-family: "GothamRegular", sans-serif;
    color: #4F5B71;
}

.webinar_share_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid #0039DB;
    border-radius: 1000px;
    font-family: "AssistantSemiBold", sans-serif;
    font-size: 16px;
    color: #0039DB;
    transition: background 0.25s ease, color 0.25s ease;
}

.webinar_share_btn:hover {
    background: #0039DB;
    color: #fff;
}

/* "All webinars" is a .line-btn with its back arrow always shown on the left. */
.webinar_back {
    margin-top: 32px;
}

.webinar_back svg {
    max-width: none;
    opacity: 1;
    transform: none;
    margin: 0 8px 0 0;
}

/* "See it in action" band */
.webinar_cta {
    padding-block: 0 clamp(80px, 8vw, 160px);
}

/* Button sits under the text, left-aligned with it, like the site's other CTA bands. */
.webinar_cta_inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(20px, 1.6vw, 32px);
    padding: clamp(32px, 3.2vw, 60px);
    border-radius: 32px;
    background: linear-gradient(101deg, #0039DB -40.1%, #4BAAD7 93.12%);
    color: #fff;
}

.webinar_cta .subtitle {
    margin-bottom: 8px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #C0F8FF;
}

.webinar_cta h2 {
    width: auto;
    margin: 0 0 12px;
    text-align: left;
    font-family: "GothamRegular", sans-serif;
    font-weight: 400;
    font-size: clamp(26px, 2.2vw, 42px);
    color: #fff;
}

.webinar_cta .text {
    max-width: 640px;
    margin: 0;
    padding: 0;
    font-size: clamp(16px, 1.0417vw, 20px);
    color: rgba(255, 255, 255, 0.85);
}

.webinar_cta_btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 1000px;
    background: #fff;
    font-family: "AssistantSemiBold", sans-serif;
    font-size: 18px;
    white-space: nowrap;
    color: #0039DB;
    transition: transform 0.25s ease;
}

.webinar_cta_btn:hover {
    transform: translateY(-2px);
}

/* ---------- Responsive (breakpoints match the theme's) ---------- */

@media (max-width: 1680px) {
    .webinar_hero .webinar_hero_title {
        font-size: 45px;
        letter-spacing: -1.5px;
    }
}

@media (max-width: 942px) {
    /* The footer newsletter box is pulled up ~123px on small screens; leave room for it. */
    .webinars_list,
    .webinar_cta {
        padding-bottom: 180px;
    }

    .webinar_hero .webinar_hero_title {
        max-width: 100%;
        font-size: 34px;
        letter-spacing: -1px;
    }

    .webinar_row {
        grid-template-columns: 1fr;
    }

    /* Date and presenter stack on small screens, so no separator dot. */
    .webinar_row_date time + .webinar_presenter::before,
    .webinar_meta time + .webinar_presenter::before {
        content: none;
    }

    .webinar_row_date {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .webinar_row_action {
        border-left: 0;
        border-top: 2px solid #EBF1FE;
        padding: 16px 0 4px;
    }
}
