﻿@media (max-width: 768px) {

    body {
        margin: 0;
        background: #ffffff;
    }


    .nav-menu-wrapper {
        display: none !important;
    }


    .mobile-section {
        display: flex;
        flex-direction: column;
        margin-bottom: 0;

    }

    .mobile-section:last-child {
        margin-bottom: 80px;
    }


    .section-media {
        width: 100%;
        height: 48vh;
        min-height: 280px;
        overflow: hidden;
        position: relative;
        background: #f3f4f6;
    }

    .section-media img,
    .section-media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


    .section-media:empty {
        display: none;
        height: 0;
        min-height: 0;
    }


    .hero-video {
        position: relative;
        z-index: 1;
    }


    .hero-mobile .section-media {
        height: 55vh;
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        overflow: hidden;
    }

    .hero-mobile .section-media video {
        width: 100%;
        height: 100%;
        object-fit: contain;

        object-position: center;
    }


    .section-content {
        background: #ffffff;
        padding: 28px 22px 0;

        text-align: center;
    }

    .section-content h1,
    .section-content h2 {
        font-size: 30px;
        line-height: 1.2;
        font-weight: 800;
        margin-bottom: 16px;
        color: #0b1320;
    }

    .section-content p,
    .section-content .text-block-4,
    .section-content .healthcare-text {
        font-size: 16px;
        line-height: 1.65;
        color: #4b5563;
        margin-bottom: 0;

    }

    .section-content .text-block-5 {
        font-size: 14px;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .section-content small,
    .section-content .hero-credit {
        font-size: 13px;
        color: #6b7280;
        margin-top: 20px;
        display: block;
    }


    .hero-mobile .section-content,
    .hero-content {
        padding: 220px 22px 40px;

    }


    .hero-buttons {
        display: flex;
        flex-direction: row;

        gap: 12px;
        justify-content: center;
        margin: 28px 0 20px;
        width: 100%;
    }

    .hero-buttons .button,
    .hero-buttons .btn-primary,
    .hero-buttons .primary {
        background: var(--primary-color);
        color: #fff;
        padding: 16px 28px;
        border-radius: 12px;
        border: none;
        font-size: 15px;
        font-weight: 600;
        flex: 1;

        text-decoration: none;
        display: inline-block;
        text-align: center;
        max-width: 180px;
    }

    .hero-buttons .button-outline,
    .hero-buttons .btn-outline,
    .hero-buttons .secondary {
        border: 2px solid var(--primary-color);
        background: transparent;
        color: var(--primary-color);
        padding: 16px 28px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        flex: 1;

        text-decoration: none;
        display: inline-block;
        text-align: center;
        max-width: 180px;
    }


    section {
        scroll-margin-top: 80px;
    }


    .mobile-section .section-media,
    .mobile-section .section-content {
        display: flex;
        flex-direction: column;
    }

    .mobile-section .w-layout-blockcontainer,
    .mobile-section .background-video-2,
    .mobile-section .w-background-video {
        display: none !important;
    }


    .hero-mobile .scroll-down-link,
    .hero-mobile .flex-block-4 {
        display: none;
    }


    .faq-section {
        margin-bottom: 0 !important;

    }


    .trusted-section {
        padding: 24px 22px;
        background: #f9fafb;
    }




    .solution-section,
    #solution,
    .section-solution,
    .section-900px {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }


    .faq-section,
    #faq {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }


    .section-media:empty {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }


    .w-layout-blockcontainer {
        margin-bottom: 0 !important;
    }


    .mobile-section {
        margin-bottom: 0 !important;
    }


    .section {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .section.faq-section {
        padding-top: 0 !important;
    }


    .mobile-menu-panel {
        position: fixed;
        top: 70px;
        right: 16px;
        width: 240px;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
        padding: 18px 16px;

        opacity: 0;
        transform: translateY(-10px) scale(0.98);
        pointer-events: none;
        transition: all 0.25s ease;

        z-index: 2000;
    }

    .mobile-menu-panel.open {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .menu-links {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 18px;
    }

    .menu-links a {
        font-size: 15px;
        font-weight: 600;
        color: #0b1320;
        text-decoration: none;
        padding: 8px 12px;
        border-radius: 8px;
        transition: background 0.2s;
        text-align: center !important;

        display: block !important;

    }

    .menu-links a:hover {
        background: #f3f4f6;
    }

    .menu-cta {
        display: block;
        text-align: center;
        background: var(--primary-color);
        color: #fff;
        padding: 12px 0;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
    }

    /* Target second, third, and fourth sections for centered video layout */
    .mobile-section:nth-of-type(2) .section-media,
    .mobile-section:nth-of-type(3) .section-media,
    .mobile-section:nth-of-type(4) .section-media {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        background: #ffffff;
    }

    .mobile-section:nth-of-type(2) .section-media video,
    .mobile-section:nth-of-type(3) .section-media video,
    .mobile-section:nth-of-type(4) .section-media video {
        width: 100%;
        max-width: 720px;
        /* keeps it clean like your design */
        height: auto;
        object-fit: contain;
        border-radius: 12px;
        /* optional – looks modern */
    }

    .mobile-section:nth-of-type(2) .section-content,
    .mobile-section:nth-of-type(3) .section-content,
    .mobile-section:nth-of-type(4) .section-content {
        text-align: center;
        max-width: 680px;
        margin: 0 auto;
        padding-top: 28px;
    }
}


@media (min-width: 769px) {

    .mobile-section .section-media,
    .mobile-section .section-content {
        display: none;
    }


    .mobile-menu-panel {
        display: none !important;
    }
}