/* ==========================================================================
   Home Hero Banner Video  (acf/home-hero-banner-video)
   Ported from .custom-agentic-ai-section in htmlblocks/home_page_aug_2025.php
   Every rule is scoped to .home-hero-banner-video so nothing leaks to other
   sections and the original hardcoded hero CSS is not affected.
   ========================================================================== */

.home-hero-banner-video {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    height: 600px;
    min-height: 93vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---------- Background video / overlay ---------- */
.home-hero-banner-video .hhbv-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.home-hero-banner-video .hhbv-overlay {
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: 1;
    pointer-events: none;
}
.home-hero-banner-video .hhbv-inner {
    position: relative;
    z-index: 2;
}

/* ---------- Heading ---------- */
.home-hero-banner-video .hhbv-heading {
    font-size: 44px;
    font-weight: 300;
    line-height: 56px;
    margin-bottom: 20px;
    font-family: "DM Sans", sans-serif;
    letter-spacing: 2px;
}
.home-hero-banner-video .gradient-text {
    background: linear-gradient(131deg, #544FF8 70.42%, #2EB6AE 102.7%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.home-hero-banner-video .brush-stroke-img {
    position: absolute;
    right: -30px;
}
.home-hero-banner-video .subtitle {
    color: rgba(77, 77, 77, 0.87);
    font-size: 24px !important;
    font-style: normal;
    font-weight: 500;
    line-height: 32px !important;
    margin: 40px 0 16px 0;
    opacity: 1;
    font-family: "DM Sans", sans-serif;
}

/* ---------- AiDE search input ---------- */
.home-hero-banner-video .challenge-input-container {
    position: relative;
    margin-top: 50px;
}
.home-hero-banner-video .challenge-input-container form {
    display: block;
    width: 100%;
}
.home-hero-banner-video .challenge-input-container input {
    width: 90%;
    padding: 20px;
    border: none;
    border-bottom: 2px solid transparent;
    background-color: #fff;
    font-size: 18px;
    outline: none;
}
.home-hero-banner-video .challenge-input-container input::placeholder {
    color: #767676;
    opacity: 1;
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    line-height: 32px;
}
.home-hero-banner-video .challenge-input-container input:-webkit-autofill,
.home-hero-banner-video .challenge-input-container input:-webkit-autofill:hover,
.home-hero-banner-video .challenge-input-container input:-webkit-autofill:focus,
.home-hero-banner-video .challenge-input-container input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 5000s ease-in-out 0s;
}
.home-hero-banner-video .challenge-input-container button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 5px;
    background-color: transparent;
}
.home-hero-banner-video .challenge-input-container button:focus:not(:focus-visible) {
    outline: none;
    background: none;
    border: none;
}

/* ---------- Animated progress bar ---------- */
.home-hero-banner-video .progress-bar {
    height: 8px;
    width: 100%;
    margin: 0 0 10px 0;
    background: linear-gradient(45deg, #2EB6AE, #4FACF8, #544FF8);
    background-size: 600% 100%;
    animation: hhbv-gradient 1.4s linear infinite;
    animation-direction: alternate;
    border-radius: 431px;
}
@keyframes hhbv-gradient {
    0%   { background-position: 0%; }
    100% { background-position: 100%; }
}

/* ---------- "View sample" + "Try this" row ---------- */
.home-hero-banner-video .example-div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #1C1C1C;
    font-weight: 400;
    line-height: 20px;
    font-family: "DM Sans", sans-serif;
}
.home-hero-banner-video .example-div .v-sample {
    display: flex;
    align-items: center;
    width: 190px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 6px;
    padding: 12px 10px;
    gap: 8px;
    transition: all 0.4s ease;
}
.home-hero-banner-video .example-div .v-sample:hover {
    background: #F9F9F9;
}
.home-hero-banner-video .example-div .banner-play-btn a {
    display: flex;
    justify-content: center;
    width: 44px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 4px;
    background: linear-gradient(125deg, #000 10.14%, #1C1C1C 117.54%);
}
.home-hero-banner-video .example-div .v-sample:hover .banner-play-btn a {
    background: linear-gradient(125deg, #544FF8 10.14%, #2EB6AE 117.54%);
}
.home-hero-banner-video .example-div .v-sample .fe-text {
    color: #1C1C1C;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    transition: all 0.4s ease;
}
.home-hero-banner-video .example-div .v-sample .fe-text .pn-text {
    display: none;
}
.home-hero-banner-video .example-div .v-sample:hover .fe-text .pn-text {
    display: block;
}
.home-hero-banner-video .example-div .v-sample:hover .fe-text .vs-text {
    display: none;
}
.home-hero-banner-video .example-div .trythis {
    border-left: 1.5px solid #D9D9D9;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    height: 40px;
}
.home-hero-banner-video .example-div .try-text {
    padding: 5px 0 0 16px;
    color: #767676;
    opacity: 1;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 12px;
    width: 100%;
}

/* Rotating prompts */
.home-hero-banner-video .hhbv-animate-text {
    height: 30px;
    padding-left: 16px;
    width: 100%;
}
.home-hero-banner-video .hhbv-animate-text span {
    display: none;
}
.home-hero-banner-video .hhbv-animate-text span.text-in {
    display: block;
    animation: hhbv-textIn .8s ease-in-out;
    cursor: pointer;
}
.home-hero-banner-video .hhbv-animate-text span.text-out {
    animation: hhbv-textOut .8s ease-in-out;
}
@keyframes hhbv-textIn {
    0%   { transform: translateY(80%); opacity: 0; }
    100% { transform: translateY(0%);  opacity: 1; }
}
@keyframes hhbv-textOut {
    0%   { transform: translateY(0%);   opacity: 1; }
    100% { transform: translateY(-50%); opacity: 0; }
}

/* ---------- Sample video popup ---------- */
.home-hero-banner-video .videopopup-section .modal .btn-close {
    background: url(https://d3c1oqqjmboadt.cloudfront.net/wp-content/uploads/2025/08/popup-closed-btn.svg) no-repeat;
    position: absolute;
    z-index: 1;
    right: -32px;
    top: -10px;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border-radius: 0;
    color: #000;
    opacity: 1;
}
.home-hero-banner-video .videopopup-section .modal-content {
    background: #000;
}

/* YouTube click-to-play facade */
.home-hero-banner-video .hhbv-yt-facade {
    background: #000;
    overflow: hidden;
}
.home-hero-banner-video .hhbv-yt-btn {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.home-hero-banner-video .hhbv-yt-btn img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-hero-banner-video .hhbv-yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .65);
    transition: background-color .2s ease;
}
.home-hero-banner-video .hhbv-yt-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -12px 0 0 -7px;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
}
.home-hero-banner-video .hhbv-yt-btn:hover .hhbv-yt-play,
.home-hero-banner-video .hhbv-yt-btn:focus-visible .hhbv-yt-play {
    background: rgba(0, 0, 0, .9);
}
.home-hero-banner-video .hhbv-yt-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .home-hero-banner-video .progress-bar { animation: none; }
    .home-hero-banner-video .hhbv-animate-text span.text-in,
    .home-hero-banner-video .hhbv-animate-text span.text-out { animation: none; }
}

/* ==========================================================================
   Responsive (same breakpoints as home_page_aug_2025.php)
   ========================================================================== */
@media (max-width: 1200px) {
    .home-hero-banner-video .example-div {
        font-size: 12px;
    }
    .home-hero-banner-video .challenge-input-container input::placeholder {
        font-size: 14px;
    }
}

@media (max-width: 1199.98px) {
    .home-hero-banner-video .hhbv-heading {
        font-size: 38px;
    }
}

@media (max-width: 991.98px) {
    .home-hero-banner-video .hhbv-heading {
        font-size: 40px;
        line-height: 48px;
    }
    .home-hero-banner-video .brush-stroke-img {
        left: 0;
    }
    .home-hero-banner-video .hhbv-animate-text {
        height: 50px;
    }
    .home-hero-banner-video .example-div {
        line-height: 16px;
    }
    .home-hero-banner-video .subtitle {
        font-size: 19px !important;
        line-height: 24px !important;
    }
}

@media (max-width: 767.98px) {
    .home-hero-banner-video .example-div {
        font-size: 8px;
    }
    .home-hero-banner-video .challenge-input-container {
        margin-top: 16px;
    }
    .home-hero-banner-video .challenge-input-container input {
        line-height: 10px;
        font-size: 14px;
        width: 85%;
    }
    .home-hero-banner-video .challenge-input-container input::placeholder {
        font-size: 10px;
        text-wrap: wrap;
        line-height: 14px !important;
    }
    .home-hero-banner-video .brush-stroke-img {
        position: absolute;
        left: 0;
    }
    .home-hero-banner-video .videopopup-section .modal-content {
        width: 92%;
    }
}

@media (max-width: 575.98px) {
    .home-hero-banner-video .example-div {
        font-size: 12px;
        line-height: 16px;
        flex-wrap: wrap;
    }
    .home-hero-banner-video .example-div .v-sample .fe-text {
        width: 100%;
    }
    .home-hero-banner-video .example-div .trythis {
        height: 52px;
        border-left: 0;
        width: 100%;
    }
}
