#vid-popover {
    display:flex;
    justify-content: center;
    align-items: center;
}
#vid-player2 {
    border: solid 4px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.page-template-product2 {
    --green: #396;
    --green-dk: #056B38;
    --orange: #f05a2a;
    --orange-dk: #b3467d;
    --white: #fff;
    --black: #333;
    --smoke-white: #f3f3f3;
    --gray-lt: #e2ede8;
    --gray: #eee;
    --gray-dk: #ddd;
    --gray-dk2: #ccc;
    --blue-dk: #192237;
    --yes: #0c0;
    --no: #c00;
    

    p:empty {
        display:none !important;
    }

    .product_callout2 {
        width: 100% !important;
        margin-left: 40px;
        padding-top: 20px;
    
        .head {
            background-color: transparent;
            font-size: 24px;
            border-bottom: solid 1px var(--gray-dk);
            margin-bottom: 10px;
        }
    
        a.prod {
            background-color: var(--gray);
            padding: 10px 15px;
            border-radius: 10px;
            color: var(--black);
            font-size: 16px;
            font-weight: 700;
            display: block; 
            padding-left: 45px;
            background-repeat: no-repeat;
            background-size: 25px auto;
            background-position: 10px 10px;
            text-decoration: none !important;
            border: solid 3.5px var(--white);
            p {
                max-height: 0px;
                transition: all 1s;
                overflow: hidden;
                margin: 0 !important;
                font-size: 12px;
                font-weight: normal !important;
            }
            &:hover {
                background-color: var(--gray-lt);
                p {
                    max-height: 500px;
                }
            }
            &.udc { background-image: url(/wp-content/uploads/icons/icon-udc-b.png); }
            &.dh { background-image: url(/wp-content/uploads/icons/icon-dh-b.png); }
            &.vis { background-image: url(/wp-content/uploads/icons/icon-vis-b.png); }
            &.dvcd { background-image: url(/wp-content/uploads/icons/icon-dvcd-b.png); }
            &.iot { background-image: url(/wp-content/uploads/icons/icon-iot-b.png); }
            &.alarm { background-image: url(/wp-content/uploads/icons/icon-alarm-b.png); }
            &.api { background-image: url(/wp-content/uploads/icons/icon-api-b.png); }
            &.net { background-image: url(/wp-content/uploads/icons/icon-net-b.png); }
    
            &.selected {
                border: solid 5px #000;
                background-color: var(--orange-dk);
                color: #000;
                font-weight: 700;
                filter: invert(1);
                -webkit-filter: invert(100%);
                border-left: none;
                p { display: none; }
            }
    
            &.download {
                transition: all 0.5s;
                background-color: var(--orange) !important;
                border: solid 1px var(--white);
                padding-left: 15px !important;
                color: var(--white) !important;
                font-weight: 400;
                font-size: 14px;
                margin-top: 10px;
                &:hover {
                    background-color: var(--white) !important;
                    color: var(--black) !important;
                    border: solid 1px var(--gray);
                }
            }
        }
    }

    h1 {
        font-weight: 700 !important;
    }
    h2 {
        color: var(--black) !important;
    }
    h3 {
        font-weight: 700;
        color: var(--black);
        font-size: 28px;
    }

    .section {
        .yt-container, .video-thumb2 {
            border: solid 5px var(--gray);
            border-radius: 10px;
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            width: 80%;
            margin: 40px 0;
            img {
                border-radius: 10px;
                width: 100%;
                pointer-events: none;
            }
            .yt-button {
                position: absolute;
                background: url(/wp-content/themes/oasv3/assets/images/vid-thumbs/YouTube_play.svg);
                top: 50%;
                left: 50%;
                width: 72px;
                height: 50px;
                background-size: cover;
                margin: -25px 0 0 -36px;
                background-repeat: no-repeat;
                padding: 0;
                pointer-events: none;
                z-index:999;
            }
            &.src {
                overflow: hidden;
                max-height: 450px;
                img {
                    object-fit: contain;
                }
            }
        }
        .video-thumb2 {
            width: 100%;
            margin: 0;
        }
        .vid-caption {
            padding: 0 10px 20px 10px;
            margin: 5px 0 0 0;
            .title {
                font-size: 16px;
                font-weight: 700;
                margin-bottom: 5px;
            }
            .subtitle {
                font-size: 12px;
                font-weight: 400;
            }
        }
        &.product_banner {
            background: linear-gradient(277.18deg, var(--green-dk) 0%, var(--green) 135.45%) !important;
            
            .btn {
                display: inline-block;
                margin: 10px 10px 0 0;
                border-radius: 5px;
                background-color: var(--orange);
                color: var(--white) !important;
                text-decoration: none;
                transition: background-color 0.2s;
                font-size: 14px;
                font-weight: bold;
                padding: 8px 18px !important;
                white-space: nowrap;
                box-shadow: -3px 3px 3px rgba(0, 0, 0, 0.2);
        
                &.demo {
                    background-color: var(--smoke-white) !important;
                    color: var(--black) !important;
                }
        
                &:hover {
                    background-color: var(--white) !important;
                    color: var(--black) !important;
                }
            }
            img {
                max-height:150px;
                width: auto !important;
            }
        }
        &.learn {
            position: relative;
            background-color: var(--blue-dk);
            padding: 80px 0 80px 0;
            color: var(--white);
            .learn-left {
                padding-right: 40px;
                h4 {
                    color: rgba(255,255,255,0.4);
                    font-weight: 400 !important;
                    margin-left: 20px !important;
                }
                .use-case {
                    background-color: var(--white);
                    padding: 20px 20px 10px 20px;
                    border-bottom: solid 1px var(--gray);
                    gap: 0;
                    position: relative;
                    h3 {
                        color: var(--green);
                        font-size: 18px;
                        font-weight: 700;
                        padding-bottom: 10px;
                        &::after {
                            content: "❯";
                            position: absolute;
                            top: 20px; right: 20px;
                            transition:all 0.1s;
                        }
                    }
                    p {
                        display:block;
                        overflow: hidden;
                        color: var(--black);
                        max-height: 0;
                        transition: all 0.5s;
                        margin: 0;
                        a {
                            display:block;
                            margin-top: 10px;
                            color: var(--orange) !important;
                            font-weight: 700;
                            font-size: 14px;
                        }
                    }
                    &:hover {
                        padding-bottom: 20px;
                        h3::after {
                            transform: rotate(90deg);
                        }
                        p {
                            max-height: 5000px;
                        }
                    }
                }
            }
            .learn-right {
                padding-left: 40px;
                h3 {
                    color: var(--white);
                    font-size: 24px;
                    line-height: 28px;
                    margin-top: 0 !important;
                    padding-top: 0 !important;
                }
                .exp-blocks {
                    display: flex;
                    flex-direction: row;
                    gap: 20px;
                    .exp {
                        padding-right: 20px;
                        flex-basis: 33%;
                        p {
                            font-size: 14px;
                        }
                        p.sub-head {
                            color: var(--orange);
                            font-weight: 700;
                            font-size: 18px;
                            line-height: 20px;
                        }
                    }
                }
                
            }
            &::before {
                content: "";
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 80px;
                background-image: url(/wp-content/themes/oasv3/assets/images/bkg/bots.webp);
                background-repeat: no-repeat;
                opacity: 0.5;
                background-size: cover;
            }
        }
        &.features, &.oas_features {
            h3 {
                font-size: 18px !important;
            }
            .wp-block-column  {
                border: solid 1px var(--gray);
                padding: 20px 20px 0 20px;
                border-radius: 10px;
                &.download {
                    font-size: 18px;
                    padding: 0;
                    a {
                        width: 100%;
                        height: 100%;
                        border-radius: 10px;
                        background-color: var(--orange);
                        color: var(--white) !important;
                        display: block;
                        padding: 20px;
                    }
                }
            }
        }
        &.features {
            .wp-block-column  {
                .wp-block-column  {
                    border: none !important;
                    padding: 0 !important;
                }
            }
        }
        &.oas_features {
            margin-top: 40px;
            h3 {
                font-size: 18px !important;
            }
            .wp-block-column  {
                border: none;
                padding: 0;
                .wp-block-column  {
                    border: solid 1px var(--gray) !important;
                    padding: 20px 20px 0 20px;
                    border-radius: 10px;
                }
            }
        }
        &.features2 {
            .wp-block-separator {
                border-top: none !important;
                width: 80%;
                margin-left: 0;
            }
            p {
                width: 90%;
            }
            margin-top: 100px;
            h3 {
                padding-top: 0;
            }
        }
        &.compare {
            padding: 80px 0;
            background-color: var(--gray);
            .wp-block-column {
                display:flex;
                gap: 120px;
                .block-left, .block-right {
                    flex-basis: 50%;
                }
            }
            h2 {
                color: var(--black) !important;
                font-weight: 700;
                text-align: left;
            }
            .controls a.btn {
                padding: 10px 20px;
                border-radius: 5px;
                white-space: nowrap;
                background-color: var(--orange);
                color: var(--white);
                font-weight: 700;
                transition: all 0.3s;
                font-size: 14px;
                &:hover {
                    background-color: var(--white) !important;
                    color: var(--black) !important;
                }
            }
            .table {
                display: flex;
                flex-direction: column;
                gap: 0px;
                .row {
                    display: flex;
                    flex-direction: row;
                    min-height: 50px;
                    gap: 0px;
                    border-bottom: solid 1px var(--gray-dk2);
                    justify-content: center;
                    align-items: center;
                    .feat, .c1, .c2 {
                        padding: 5px 10px 5px 10px;
                    }
                    .feat {
                        width: 50%;
                        font-size: 14px;
                        padding-left: 0;
                    }
                    .c1, .c2 {
                        width: 25%;
                    }
                    .c1 {
                        color: var(--yes);
                        text-align:center;
                        font-size: 20px;
                    }
                    .c2 {
                        color: var(--no);
                        text-align:center;
                        font-size: 20px;
                    }
                    &.h {
                        align-items: flex-end;
                        font-size: 14px;
                        line-height: 16px;
                        font-weight: 700;
                        border-bottom: none;
                        color: var(--black);
                        .feat, .c1, .c2 {
                            color: var(--black);
                            font-size: 14px;
                        }
                    }
                }
            }
        }
        &.faq {
            padding: 80px 0;
            background-color: var(--white);
            p.intro {
                max-width: 50%;
            }
            .controls {
                .btn {
                    background-color: var(--gray);
                    padding: 5px 15px;
                    display: inline-block;
                    text-decoration: none;
                    border-radius: 5px;
                    font-weight: 400;
                    margin-right: 10px;
                    margin-bottom: 10px;
                    color: var(--black);
                    i {
                        margin-right: 10px !important;
                    }
                    &.getting-started {
                        background-color: var(--green) !important;
                        color: var(--white) !important;
                    }
                    &.download {
                        background-color: var(--orange) !important;
                        color: var(--white) !important;
                    }
                }
            }
            .kb-links {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap !important;
                margin-top: 40px;
                .link {
                    flex: 1 0 20%;
                    padding: 20px;
                    background-color: #eee;
                    max-width: 23%;
                    display: flex;
                    flex-direction: column;
                    p {
                        flex: 1;
                    }
                }
            }
        }
        &.download {
            background-color: var(--blue-dk);
            color: var(--smoke-white);
            .btn {
                width: 180px !important;
                display: inline-block;
                margin: 10px 10px 0 0;
                border-radius: 5px;
                background-color: var(--orange);
                color: var(--white) !important;
                text-decoration: none;
                transition: background-color 0.2s;
                font-size: 14px;
                font-weight: bold;
                padding: 8px 18px !important;
                white-space: nowrap;
                box-shadow: -3px 3px 3px rgba(0, 0, 0, 0.2);

                &.demo {
                    background-color: var(--smoke-white) !important;
                    color: var(--black) !important;
                }
        
                &:hover {
                    background-color: var(--white) !important;
                    color: var(--black) !important;
                }
            }
        }
    }
    h3.features { padding-top: 0 !important; }
}

@media screen and (min-width: 1920px) {
    #vid-player2 {
        width: 1024px !important;
        height: 578px !important;
    }
}
@media screen and (max-width: 1919px) {
    #vid-player2 {
        width: 1024px !important;
        height: 578px !important;
    }
    .page-template-product2 {
        .yt-container {
            &.src {
                max-height: 350px !important;
            }
        }
    }
}
@media screen and (max-width: 1297px) {
    #vid-player2 {
        width: 1024px !important;
        height: 578px !important;
    }
    .page-template-product2 {
        .yt-container {
            &.src {
                max-height: 300px !important;
            }
        }
    }
}
@media screen and (max-width: 1080px) {
    #vid-player2 {
        width: 600px !important;
        height: 341px !important;
    }
    .page-template-product2 {
        .yt-container {
            &.src {
                max-height: 280px !important;
            }
        }
    }
}
@media screen and (max-width: 768px) {
    #vid-player2 {
        width: 600px !important;
        height: 341px !important;
    }
    .page-template-product2 {
        .section {
            &.product_banner {
                .img {
                    display: none;
                }
            }
            &.learn {
                .learn-right {
                    padding:0 10px !important;
                }
            }
            &.compare {
                .compare {
                    flex-direction: column;
                    gap: 20px;
                }
            }
            &.faq {
                .intro {
                    max-width: unset !important;
                }
                .controls {
                    .btn {
                        margin-bottom: 10px;
                    }
                }
                .link {
                    max-width: 46% !important;
                }
            }
        }
        .product_callout2 {
            margin: -50px 0 40px 0;
        }
        .yt-container {
            &.src {
                max-height: 240px !important;
            }
        }
    }
}

@media screen and (max-width: 480px) {
    #vid-player2 {
        width: 400px !important;
        height: 230px !important;
    }
    .page-template-product2 {
        .section {
            &.learn {
                .exp-blocks {
                    flex-direction: column !important;
                }
            }
            &.faq {
                .link {
                    max-width: 100% !important;
                }
            }
        }
    }
}