/**
 * Styles for the "Featured Webinar" component (Components/featured_webinar).
 * Scoped under .featured-webinar throughout — same structural conventions as
 * Components/featured_guide/style.css and Components/featured_article/style.css.
 */

.featured-webinar {
    padding: 40px 0;
}

.featured-webinar-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-dark-teal);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1em;
    margin-bottom: 10px;
}

.featured-webinar-eyebrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-light-teal);
    color: var(--color-dark-teal);
    flex-shrink: 0;
}

/* Live state: gradient green-to-white circle in place of the static icon,
   per the design spec ("When live: Gradient circle green to white in place
   of icon"), plus a soft pulse so "Live" reads as genuinely live. */
.featured-webinar-eyebrow--live {
    color: var(--color-dark-green, #1a7a4c);
}

.featured-webinar-live-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--color-green, #3ecf8e), #ffffff 130%);
    box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.55);
    animation: featured-webinar-pulse 2s infinite;
}

@keyframes featured-webinar-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(62, 207, 142, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0); }
}

/* Same override reasoning as .featured-guide-title/.featured-article-title:
   [id^=ModularPageBuilder] h2 (ModularPageBuilderBaseStyles.min.css) beats a
   bare class on specificity, so weight/spacing need !important to win. */
.featured-webinar-title {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    padding-bottom: 0 !important;
    margin-bottom: 6px;
}

/* The base [id^=ModularPageBuilder] a rule (Montserrat / 600 / line-height 1.5)
   otherwise wins on the link inside the heading, giving the wrong font and odd
   line spacing - the link inherits the heading's own type instead. */
.featured-webinar-title a {
    font-family: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.featured-webinar-title a {
    color: inherit;
    text-decoration: none;
}

.featured-webinar-title a:hover {
    text-decoration: underline;
}

.featured-webinar-presenter {
    font-style: italic;
    color: var(--color-grey-text, #666);
    margin-bottom: 14px !important;
}

.featured-webinar-covers-heading {
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

/* Fully self-contained checklist, same reasoning as
   .featured-guide-description: avoids fighting the site-wide ul/li cascade
   for spacing/icon alignment. */
.featured-webinar-covers {
    list-style: none;
    padding: 0 !important;
    margin: 0 0 20px;
}

.featured-webinar-covers-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
}

.featured-webinar-covers-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 4px;
    background: var(--color-green);
    color: var(--color-white);
    font-size: 0.6875em;
}

/*
 * No override here on purpose: .btn.basics.btn-teal (ModularPageBuilderBaseStyles.min.css)
 * is already display:inline-block + text-align:center, which centres this
 * button's text correctly (matching the site's existing "Request a Demo" pill).
 * A display:inline-flex override without justify-content:center — which this
 * used to have — silently breaks that centering, since flex items ignore
 * text-align and default to flex-start on the main axis. No icon in this CTA
 * (unlike Featured Guide's own .featured-guide-cta, which genuinely needs
 * flex for its icon+text gap), so there's nothing here that actually needs
 * flex layout at all.
 */

.featured-webinar-watch-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-dark-teal);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-decoration: none;
}

.featured-webinar-watch-link:hover {
    text-decoration: underline;
    color: var(--color-dark-teal);
}

.featured-webinar-image-link {
    position: relative;
    display: block;
}

.featured-webinar-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
}

/* Hover play button — not-live state only (see component.php), matching the
   design spec's "When not live, hover with play button" note. */
.featured-webinar-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-dark-teal);
    font-size: 1.25em;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.featured-webinar-image-link:hover .featured-webinar-play,
.featured-webinar-image-link:focus-visible .featured-webinar-play {
    opacity: 1;
}

@media (max-width: 991px) {
    .featured-webinar {
        padding: 30px 0;
    }
}
