 @media (min-width: 600px) and (max-width: 1024px) {

html,
body {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

}

html,
body {
/* overflow-x: hidden !important; */
max-width: 100% !important;
}

* {
/* max-width: 100%; */
}

img,
video,
iframe,
embed,
object {
max-width: 100% !important;
height: auto;
}

/* Fix sections/containers that may exceed viewport */
.container,
.container-fluid {
padding-left: 15px !important;
padding-right: 15px !important;
/* Prevent horizontal scroll while allowing tooltips to show outside */
overflow-x: hidden;
overflow-y: visible;
}

.start-copilot-button {
background-color: #0563c5 !important;
}

.start-copilot-button:hover {
background-color: #2c96ee !important;
}

/* Video Player Styles */
.banner-video-wrapper {
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}

.main-video-container {
position: relative;
width: 100%;
max-width: 800px;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
cursor: pointer;
background: #000;
}

.main-video-container img {
width: 100%;
height: auto;
display: block;
aspect-ratio: 16/9;
object-fit: cover;
}

.video-play-overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.3);
display: flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.main-video-container:hover .video-play-overlay {
background: rgba(0, 0, 0, 0.5);
}

.play-btn-circle {
width: 70px;
height: 70px;
background: rgba(255, 255, 255, 0.95);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.3s ease;
}

.main-video-container:hover .play-btn-circle {
transform: scale(1.1);
}

.play-btn-circle svg {
width: 30px;
height: 30px;
fill: #4353A3;
margin-left: 5px;
}

/* Thumbnail Carousel */
.video-carousel-wrapper {
margin-top: 15px;
width: 100%;
max-width: 600px;
}

.video-carousel {
display: flex;
gap: 10px;
justify-content: center;
}

.carousel-thumb {
position: relative;
width: 120px;
height: 68px;
border-radius: 8px;
overflow: visible;
cursor: pointer;
border: 3px solid transparent;
transition: all 0.3s ease;
flex-shrink: 0;
}

.carousel-thumb:hover {
border-color: #4353A3;
transform: translateY(-3px);
}

.carousel-thumb.active {
border-color: #f31220;
}

.carousel-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}

.carousel-thumb .thumb-overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.2);
display: flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.carousel-thumb:hover .thumb-overlay {
background: rgba(0, 0, 0, 0.4);
}

.thumb-overlay svg {
width: 24px;
height: 24px;
fill: #fff;
}

/* Thumbnail hover info tooltip */
.thumb-info-tooltip {
position: absolute;
left: 50%;
bottom: 110%;
transform: translateX(-50%) translateY(10px);
background: rgba(15, 23, 42, 0.95);
color: #ffffff;
padding: 8px 10px;
border-radius: 8px;
width: 230px;
font-size: 11px;
line-height: 1.3;
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease, transform 0.25s ease;
z-index: 10;
/* box-shadow: 0 8px 20px rgba(15, 23, 42, 0.45); */
}

.thumb-info-tooltip::after {
content: '';
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border-width: 6px;
border-style: solid;
border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

.thumb-info-tooltip h5 {
margin: 0 0 4px 0;
font-size: 12px;
font-weight: 600;
}

.thumb-info-tooltip p {
margin: 0;
font-size: 11px;
opacity: 0.9;
}

.carousel-thumb:hover .thumb-info-tooltip {
opacity: 1;
transform: translateX(-50%) translateY(0);
}

/* Video Modal */
.video-modal-overlay {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.9);
z-index: 9999;
display: none;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
}

.video-modal-overlay.active {
display: flex;
opacity: 1;
}



.video-modal-overlay.active .video-modal {
transform: scale(1);
}

.video-modal-header {
padding: 1rem 1.5rem;
border-bottom: 1px solid #E2E8F0;
display: flex;
justify-content: space-between;
align-items: center;
}

.video-modal-title {
font-size: 1.25rem;
font-weight: 700;
color: #4353A3;
margin: 0;
}

.video-modal-close {
background: none;
border: none;
cursor: pointer;
padding: 0.5rem;
border-radius: 50%;
transition: background-color 0.2s ease;
font-size: 1.5rem;
color: #64748B;
line-height: 1;
}

.video-modal-close:hover {
background-color: #F1F5F9;
}



.video-modal-body iframe {
width: 100%;
height: 100%;
border: none;
}



.video-nav-btn {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
background: #4353A3;
color: #ffffff;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 0.875rem;
font-weight: 500;
transition: all 0.2s ease;
}

.video-nav-btn:hover:not(:disabled) {
background: #3a4791;
}

.video-nav-btn:disabled {
background: #CBD5E1;
cursor: not-allowed;
}

.video-counter {
font-size: 0.875rem;
color: #64748B;
font-weight: 500;
}

@media (max-width: 768px) {
.video-carousel {
    gap: 8px;
}

.carousel-thumb {
    width: 90px;
    height: 51px;
}

.play-btn-circle {
    width: 50px;
    height: 50px;
}

.play-btn-circle svg {
    width: 22px;
    height: 22px;
}
}

@media (max-width: 767px) {
.home-banner {
    overflow: hidden !important;
}

.home-banner .row {
    flex-direction: column !important;
    margin: 0 !important;
}

.col-sm-8,
.col-sm-4 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.banner-video-wrapper {
    padding: 10px !important;
}

.video-carousel-wrapper {
    max-width: 100% !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.video-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.video-carousel {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 12px;
}

/* Fix thumb tooltips going off screen */
.thumb-info-tooltip {
    /* width: 160px !important; */
    font-size: 10px !important;
}

/* Fix modal on mobile */
.video-modal-body {
    aspect-ratio: 16 / 9 !important;
}

.video-modal {
    width: 98% !important;
}

/* Fix tables */
table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
}

/* Fix any fixed-width elements */
[style*="width:"] {
    max-width: 100% !important;
}

center {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Nav fix */
nav .container {
    overflow: visible;
}

/* Fix col-sm-4 margin */
.col-sm-4 {
    margin-top: 0 !important;
}

/* Video carousel: stack as cards with visible title & description */
.video-carousel-wrapper {
    max-width: 100% !important;
    padding: 0 10px !important;
}

.video-carousel {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

.carousel-thumb {
    width: 40vw !important;
    flex: 0 0 40vw !important;
    max-width: none;
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    border-radius: 12px;
    margin-bottom: 0;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(148, 163, 184, 0.5);
    overflow: hidden;
    background: #ffffff;
    scroll-snap-align: start;
}

.thumb-overlay {
    display: none !important;
}

.carousel-thumb img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    flex-shrink: 0;
}

.thumb-info-tooltip {
    position: static !important;
    left: auto;
    bottom: auto;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto;
    background: transparent;
    color: #0f172a;
    width: 100% !important;
    margin: 0;
    padding: 8px 6px;
    box-shadow: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Only show small title on mobile cards */
.thumb-info-tooltip h5 {
    font-size: 10px !important;
    line-height: 1.2;
    font-weight: 600;
}

.thumb-info-tooltip p {
    display: none !important;
}

.thumb-info-tooltip::after {
    display: none;
}

.carousel-thumb:hover .thumb-info-tooltip {
    opacity: 1;
    transform: none;
}

/* Completely hide the trial-banner section (product cards/corousel) on mobile */
.trial-banner {
    display: none !important;
}

/* Always show video info overlay below video on mobile */
.main-video-container .video-info-overlay {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    background-color: #a6e4f8d9 !important;
    color: #3a4791 !important;
    z-index: 2;
    padding: 14px 18px;
    font-size: 1rem;
    line-height: 1.3;
}

.main-video-container:hover .video-info-overlay {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
}

/* Main video hover info overlay */
.video-info-overlay {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 14px 18px;
/* background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.0)); */
background-color: #a6e4f8d9;
color: #ffffff;
opacity: 0;
transform: translateY(18px);
transition: opacity 0.3s ease, transform 0.3s ease;
pointer-events: none;
}

.video-info-overlay h3 {
margin: 0 0 4px 0;
font-size: 1rem;
font-weight: 600;
}

.video-info-overlay p {
margin: 0;
font-size: 0.8rem;
line-height: 1.3;
opacity: 0.9;
}

.main-video-container:hover .video-info-overlay {
opacity: 1;
transform: translateY(0);
}

@media (min-width: 576px) {
.col-sm-8 {
    flex: 0 0 auto;
    width: 62%;
}
}

@media (min-width: 576px) {
.col-sm-4 {
    flex: 0 0 auto;
    width: 33.33333%;
    margin-top: 3rem;
}
}



.video-modal {
background: #ffffff;
border-radius: 16px;
max-width: 100vw;
width: 95%;
max-height: 95vh;
overflow: hidden;
position: relative;
transform: scale(0.9);
transition: transform 0.3s ease;
display: flex;
flex-direction: column;
}

.video-modal-footer {
padding: 1rem 1.5rem;
border-top: 1px solid #E2E8F0;
display: flex;
justify-content: space-evenly;
align-items: center;
}
@media (max-width: 767px) {
    .col-sm-4 {
        margin-top: 30px !important;
    }
}

 .navbar-demo-btn {
            cursor: pointer;
            background-color: #ee363e;
            border: none;
            padding: 8px 20px;
            border-radius: 8px;
            transition: all 0.3s ease-in-out;
        }

        .navbar-demo-btn:hover {
            background-color: #5c47de;
            transform: translateY(-2px);
        }

        .navbar-demo-btn .b-m-text {
            font-size: 14px;
        }

@media (max-width: 640px) {
            .navbar {
                padding: 0.5rem 1rem;
            }

            .navbar-logo {
                height: 35px;
            }

            .navbar-demo-btn {
                padding: 6px 12px;
            }

            .navbar-demo-btn .b-m-text {
                font-size: 12px;
            }

            .video-modal-footer {
                /* flex-direction: column; */
                gap: 1rem;
            }

            .pagination-container {
                padding: 0 1.5rem;
                flex-wrap: wrap;
            }
        }

 .b-m-container {
            display: flex;
            align-items: center;
            justify-content: center;
            /* -webkit-mask-image: linear-gradient(-75deg,
                    rgb(0 0 0) 30%,
                    #000 50%,
                    rgba(0, 0, 0, 0.2) 70%);
           */
            -webkit-mask-size: 200%;
            animation: shine 2s infinite;
            transition: 0.35s;
        }

        @keyframes shine {
            0% {
                -webkit-mask-position: 160%;
            }

            100% {
                -webkit-mask-position: -50%;
            }
        }

        .b-m-text {
            text-transform: uppercase;
            font-size: 20px;
            color: #fff;
            font-weight: 100;
            margin-right: 10px;
            font-family: "Franklin Gothic Medium", sans-serif;
        }

        .b-m-icon {
            width: 14px;
            height: 14px;
            transition: all 0.3s ease-in-out;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .b-m-icon svg {
            fill: #fff;
        }
@media (max-width: 767px) {
            .video-modal-body {
                aspect-ratio: 9 / 16 !important;
                max-height: 78vh;
            }

            .video-modal {
                width: min(92vw, 380px) !important;
                max-width: 380px !important;
                margin: 0 auto;
            }
            .video-modal-header,
            .video-modal-footer {
                padding: 0.75rem 1rem;
            }

            .video-modal-title {
                font-size: 1rem;
            }

            .video-modal-body iframe {
                width: 100%;
                height: 100%;
            }

            .video-nav-btn {
                padding: 0.45rem 0.75rem;
                font-size: 0.8rem;
            }

            .video-counter {
                font-size: 0.8rem;
            }
        }

.video-modal-body {
            position: relative;
            background: #000;
            aspect-ratio: 25 / 9;
            display: flex;
            align-items: center;
            justify-content: center;
        }
 @media (max-width: 380px) {
    .video-modal-body {
        aspect-ratio: 9 / 16 !important;
        max-height: 70vh;
    }