/* Video Component Styles */

@font-face {
    font-family: interface;
    src: url(https://use.typekit.net/af/2837a6/00000000000000003b9ae112/27/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3) format("woff2"),
         url(https://use.typekit.net/af/2837a6/00000000000000003b9ae112/27/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3) format("woff"),
         url(https://use.typekit.net/af/2837a6/00000000000000003b9ae112/27/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3) format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.video-component {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    background: #000;
}

.video-component .video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 500px;
    min-height: 320px;
}

.video-component .background-video,
.video-component .video-fallback-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-component .video-fallback-image {
    display: none;
    background-image: url('https://via.placeholder.com/1280x720.png?text=Forum+Preview');
    background-size: cover;
    background-position: center;
}

.video-component .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 16px;
    background:rgb(63 63 63 / 78%);
}

.video-component .video-overlay-content {
    max-width: 760px;
    margin: 0 auto;
    color: #ffffff;
}

.video-component .video-overlay-content h1 {
    font-size: clamp(3rem, 4vw, 6.4rem);
    line-height: 1.05;
    margin-bottom: 16px;
    color: #ffffff;
}

.video-component .video-overlay-content p {
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.6;
    margin-bottom: 22px;
    color: #f5f5f5;
}

.video-component .video-cta-button,
.video-component .video-cta-button--alt,
.video-component .video-toggle-button {
    font-family: interface, Arial, sans-serif;
}

.video-component .video-cta-button {
    color: #fff;
    border: 2px solid #fdfeff;
    border-radius: 8px;
    transition: background 0.2s ease;
    padding: 10px 15px;
    font-size: 18px !important;
    font-style: normal;
    line-height: 21px;
    float: left;
    text-decoration: none !important;
    font-weight: 400;
}

.video-component .video-cta-button:hover {
    background: #e15d00;
}

.video-component .video-cta-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.video-component .video-cta-button--alt {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.15);
}

.video-component .video-cta-button--alt:hover {
    background: rgba(255,255,255,0.06);
}

.video-component .video-toggle-button {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    z-index: 10;
}

.video-component .video-toggle-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.video-component .video-toggle-button:focus-visible,
.video-component .video-cta-button:focus-visible,
.video-component .video-cta-button--alt:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.9);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.18);
}

.video-component .video-toggle-button i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 767px) {
    .video-component {
        max-height: none;
        min-height: 320px;
    }

    .video-component .background-video {
        display: none;
    }

    .video-component .video-fallback-image {
        display: block;
    }

    .video-component .video-overlay {
        background: rgba(0, 0, 0, 0.55);
        padding: 24px 14px;
    }

    .video-component .video-toggle-button {
        display: none;
    }
}
