/* ==========================================================================
   Webinar Landing Page
   ========================================================================== */

/* --- Hero Section --- */
.webinar-hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--middle-blue) 100%);
    padding: 160px 20px 80px;
    color: var(--white);
}

.webinar-hero .content {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 60px;
    align-items: start;
}

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

.webinar-badge {
    background: var(--primary-yellow);
    color: var(--dark-text);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-block;
}

.webinar-date {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.webinar-hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--white);
    /* Balance wrapped lines so no single word orphans on the last line.
       Hard rule for Income Lab headlines — see feedback-never-orphan-words. */
    text-wrap: balance;
}

/* Same orphan-prevention on the hero subhead and the presenter section
   headings — any headline-class copy gets balanced wrapping. */
.webinar-hero__sub,
.webinar-learn h2,
.webinar-learn__item h3,
.webinar-presenter h2,
.webinar-presenter__bio h3,
.webinar-bottom-cta h2 {
    text-wrap: balance;
}

.webinar-hero__sub {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 560px;
}

/* Speakers */
.webinar-hero__speakers {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.webinar-speaker {
    display: flex;
    align-items: center;
    gap: 14px;
}

.webinar-speaker__photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.webinar-speaker__details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.webinar-speaker__details strong {
    font-size: 16px;
    color: var(--white);
}

.webinar-speaker__details span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Partner logos in hero */
.webinar-hero__logos {
    display: flex;
    align-items: center;
    gap: 16px;
}

.webinar-hero__logos img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* Justin's photo is already circular with transparent bg */
.webinar-speaker__photo--circular {
    object-fit: contain;
    object-position: center;
    background: rgba(255, 255, 255, 0.15);
}

/* Move Health logo is wider/taller, adjust */
.webinar-hero__logos img:last-child {
    height: 24px;
}

.webinar-hero__logos-divider {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Registration Form Card --- */
.webinar-hero__form {
    position: sticky;
    top: 140px;
}

.webinar-form-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.webinar-form-card__title {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 24px;
}

.webinar-form-card__details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.webinar-form-card__detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #374151;
}

.webinar-form-card__detail svg {
    flex-shrink: 0;
}

.webinar-form-card__btn {
    width: 100%;
    font-size: 18px;
    padding: 16px 24px;
    height: auto;
    border-radius: 8px;
}

.webinar-form-card__note {
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

/* --- What You'll Learn --- */
.webinar-learn {
    padding: 80px 20px;
    background: var(--white);
}

.webinar-learn h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 48px;
}

.webinar-learn__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.webinar-learn__item {
    text-align: center;
    padding: 24px 16px;
}

.webinar-learn__icon {
    width: 56px;
    height: 56px;
    background: #EEF2FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.webinar-learn__item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.webinar-learn__item p {
    font-size: 15px;
    line-height: 1.6;
    color: #5a6478;
}

/* --- Speakers Section --- */
.webinar-presenter {
    padding: 80px 20px;
    background: #f9fafb;
}

.webinar-presenter h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 40px;
}

.webinar-presenter__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.webinar-presenter__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.webinar-presenter__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    margin-bottom: 20px;
    border: 3px solid #EEF2FF;
}

.webinar-presenter__bio h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.webinar-presenter__role {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 14px;
}

.webinar-presenter__bio p {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 12px;
}

/* Justin's photo is already circular with transparent bg */
.webinar-presenter__photo--circular {
    object-fit: contain;
    object-position: center;
    border: none;
    background: #e8ecf4;
}

.webinar-presenter__company-logo {
    height: 32px;
    width: auto;
    margin-top: 8px;
}

/* IL logo is white SVG — invert for light backgrounds */
.webinar-presenter__company-logo--invert {
    filter: brightness(0) saturate(100%);
    opacity: 0.6;
}

.webinar-presenter__footnote {
    text-align: center;
    font-size: 14px;
    color: #5a6478;
    font-style: italic;
    margin-top: 32px;
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Inline Links --- */
.webinar-learn__item a,
.webinar-presenter__bio a,
.webinar-partner a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-decoration-color: rgba(21, 71, 188, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.webinar-learn__item a:hover,
.webinar-presenter__bio a:hover,
.webinar-partner a:hover {
    text-decoration-color: var(--primary-blue);
}

/* --- Related Resources --- */
.webinar-resources {
    padding: 80px 20px;
    background: #f9fafb;
}

.webinar-resources h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 8px;
}

.webinar-resources__sub {
    font-size: 15px;
    color: #5a6478;
    text-align: center;
    margin-bottom: 40px;
}

.webinar-resources__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.webinar-resource {
    background: var(--white);
    border-radius: 10px;
    padding: 28px 24px;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.webinar-resource:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-blue);
}

.webinar-resource__tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.webinar-resource h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.4;
    margin-bottom: 8px;
}

.webinar-resource p {
    font-size: 14px;
    line-height: 1.6;
    color: #5a6478;
    margin-top: auto;
}

/* --- Partners Section --- */
.webinar-partners {
    padding: 80px 20px;
    background: var(--white);
}

.webinar-partners h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 40px;
}

.webinar-partners__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.webinar-partner {
    text-align: center;
}

.webinar-partner img {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
}

.webinar-partner__logo--invert {
    filter: brightness(0) saturate(100%);
    opacity: 0.7;
}

.webinar-partner p {
    font-size: 15px;
    line-height: 1.6;
    color: #5a6478;
    max-width: 360px;
    margin: 0 auto;
}

/* --- Zoom Registration Form (embedded) --- */
.zoom-reg__fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.zoom-reg__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.zoom-reg__field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.zoom-reg__field input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    color: var(--dark-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.zoom-reg__field input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(21, 71, 188, 0.1);
    background: var(--white);
}

.zoom-reg__field input::placeholder {
    color: #9ca3af;
}

.zoom-reg__field select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    color: var(--dark-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.zoom-reg__field select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(21, 71, 188, 0.1);
    background-color: var(--white);
}

.zoom-reg__field select:invalid {
    color: #9ca3af;
}

.zoom-reg__submit {
    width: 100%;
    font-size: 18px;
    padding: 16px 24px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.zoom-reg__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.zoom-reg__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    gap: 16px;
}

.zoom-reg__success-msg {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-text);
    line-height: 1.5;
}

.zoom-reg__error {
    margin-top: 12px;
}

.zoom-reg__error-msg {
    font-size: 14px;
    color: #dc2626;
    text-align: center;
    line-height: 1.4;
}

/* Bottom CTA form variant (white text labels on dark bg) */
.webinar-bottom-cta .zoom-reg__field label {
    color: rgba(255, 255, 255, 0.9);
}

.webinar-bottom-cta .zoom-reg__field input {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
}

.webinar-bottom-cta .zoom-reg__error-msg {
    color: #fca5a5;
}

.webinar-bottom-cta .zoom-reg__success-msg {
    color: var(--white);
}

.webinar-bottom-cta .zoom-reg__success svg {
    stroke: var(--white);
}

.webinar-bottom-cta .zoom-reg {
    max-width: 480px;
    margin: 0 auto;
}

/* --- Bottom CTA --- */
.webinar-bottom-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--middle-blue) 100%);
    text-align: center;
    color: var(--white);
}

.webinar-bottom-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.webinar-bottom-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
}

.webinar-bottom-cta .btn {
    margin: 0 auto;
    font-size: 18px;
    padding: 16px 40px;
    height: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 1280px) {
    .webinar-hero .content {
        grid-template-columns: 1fr 400px;
        gap: 40px;
    }
}

@media screen and (max-width: 1024px) {
    .webinar-hero .content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .webinar-hero__form {
        position: static;
        max-width: 500px;
    }

    .webinar-hero h1 {
        font-size: 34px;
    }

    .webinar-learn__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .webinar-resources__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .webinar-presenter__cards {
        grid-template-columns: 1fr 1fr;
    }

    /* Center the third card when wrapping to 2-col */
    .webinar-presenter__card:last-child {
        grid-column: 1 / -1;
        max-width: 340px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 767px) {
    .webinar-hero {
        padding: 130px 20px 60px;
    }

    .webinar-hero h1 {
        font-size: 28px;
    }

    .webinar-hero__sub {
        font-size: 16px;
    }

    .webinar-hero__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .webinar-form-card {
        padding: 24px 20px;
    }

    .webinar-learn {
        padding: 60px 20px;
    }

    .webinar-learn__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .webinar-resources__grid {
        grid-template-columns: 1fr;
    }

    .webinar-learn h2 {
        font-size: 26px;
    }

    .webinar-presenter__cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .webinar-presenter__card {
        padding: 32px 24px;
    }

    .webinar-partners__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .webinar-bottom-cta h2 {
        font-size: 26px;
    }
}

@media screen and (max-width: 540px) {
    .webinar-hero h1 {
        font-size: 24px;
    }

    .webinar-hero__form {
        max-width: 100%;
    }

    .zoom-reg__row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Penny webinar: slim single-line announcement ribbon.
   padding-top binds to the theme's --il-nav-total-height variable, which
   the header auto-updates:
     - default: --il-banner-height (40) + --il-header-height (64) = 104px
     - body.il-banner-dismissed: --il-header-height (64) = 64px
   The + 4px gives a tight visual gap between nav and text in every state,
   including admin-bar and any future nav-height changes, with no JS.
   ============================================ */
.webinar-penny-announce {
    background: var(--primary-yellow, #FFA000);
    padding-top: calc(var(--il-nav-total-height, 104px) + 4px);
    padding-right: 20px;
    padding-bottom: 4px;
    padding-left: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(11, 31, 74, 0.1);
}

.webinar-penny-announce__mobile-only { display: none; }

.webinar-penny-announce__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.webinar-penny-announce__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: #0B1F4A;
    border-radius: 999px;
    padding: 4px 11px;
    white-space: nowrap;
}

.webinar-penny-announce__headline {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    color: #0B1F4A;
    font-weight: 500;
}

.webinar-penny-announce__headline strong {
    font-weight: 800;
}

@media screen and (max-width: 720px) {
    .webinar-penny-announce {
        padding-right: 16px;
        padding-bottom: 4px;
        padding-left: 16px;
    }
    .webinar-penny-announce__inner {
        gap: 10px;
        flex-wrap: nowrap;
    }
    .webinar-penny-announce__headline {
        font-size: 13px;
    }
    .webinar-penny-announce__desktop-only { display: none; }
    .webinar-penny-announce__mobile-only { display: inline; }
}

/* Hero padding reduced on this template since the banner already provides
   the visual clearance below the fixed site chrome. */
body.page-template-page-webinar-penny-php .webinar-hero {
    padding-top: 48px;
}

/* ============================================
   Penny speaker avatar (span wrapping SVG)
   ============================================ */
.webinar-speaker__photo--penny {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: transparent;
    border: none;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(169, 30, 116, 0.28);
}

.webinar-speaker__photo--penny svg {
    width: 52px;
    height: 52px;
    display: block;
}

.webinar-presenter__photo--penny {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: transparent;
    border: none;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(169, 30, 116, 0.25);
}

.webinar-presenter__photo--penny svg {
    width: 120px;
    height: 120px;
    display: block;
}

.webinar-presenter__card--penny {
    background: linear-gradient(180deg, #ffffff 0%, #fdf5fb 100%);
    border: 1px solid rgba(169, 30, 116, 0.15);
}
