
/* ==========================================
   ZIOSOFT - STICKY APPLICATION NAVIGATION
   ========================================== */

/* Normal navigation appearance */
.zs-sticky-app-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: transparent;
    padding: 8px 0;
    isolation: isolate;

    transition: background-color 0.25s ease,
                padding 0.25s ease;
}

/* Offset for logged-in WordPress admin bar */
body.admin-bar .zs-sticky-app-nav {
    top: 32px;
}

/* ==========================================
   STICKY STATE
   ========================================== */

/* Compact toolbar appearance */
.zs-sticky-app-nav.zs-is-stuck {
    background-color: #071A40;
    padding-top: 0;
    padding-bottom: 0;
}

/* Full-width dark background and shadow */
.zs-sticky-app-nav.zs-is-stuck::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);

    background-color: #071A40;

    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.85);

    z-index: -1;
    pointer-events: none;
}

/* ==========================================
   HEXAGON IMAGE SIZING
   ========================================== */

/* Smooth resizing */
.zs-sticky-app-nav .elementor-widget-image img {
    transition: width 0.25s ease;
}

/* Reduce icons to 45px when sticky */
.zs-sticky-app-nav.zs-is-stuck
.elementor-widget-image img {
    width: 45px !important;
}

/* ==========================================
   STICKY HEXAGON SPACING
   ========================================== */

/* Narrow columns while sticky */
.zs-sticky-app-nav.zs-is-stuck
.elementor-column {
    width: 55px !important;
    flex: 0 0 55px !important;
}

/* Keep hexagons grouped on the left */
.zs-sticky-app-nav.zs-is-stuck
.elementor-container {
    justify-content: flex-start;
}

/* 
/* ==========================================
   APPLICATION ANCHOR OFFSETS
   ========================================== */

/* Prevent sticky navigation from covering
   the first row of product buttons */
#cardiac,
#all-around,
#neurology,
#dental,
#respiratory-chest,
#abdominal,
#orthopedics {
    scroll-margin-top: 80px;
}

/* Additional clearance for WordPress admin bar */
body.admin-bar #cardiac,
body.admin-bar #all-around,
body.admin-bar #neurology,
body.admin-bar #dental,
body.admin-bar #respiratory-chest,
body.admin-bar #abdominal,
body.admin-bar #orthopedics {
    scroll-margin-top: 112px;
}


/* Smooth resizing of hexagon columns */
.zs-sticky-app-nav .elementor-column {
    transition: width 0.3s ease,
                flex-basis 0.3s ease;
}

/* Smooth image resizing */
.zs-sticky-app-nav .elementor-widget-image img {
    transition: width 0.3s ease-in-out;
}

/* Prevent scroll-position adjustments during sticky resizing */
.zs-sticky-parent {
    overflow-anchor: none;
}

/* ==========================================
   ZIOSOFT - MOBILE APPLICATION NAVIGATION
   ========================================== */

@media (max-width: 767px) {

    /* Four application columns per row */
    .zs-sticky-app-nav .elementor-column,
    .zs-sticky-app-nav.zs-is-stuck .elementor-column {
        width: 25% !important;
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }

    /* Allow the eight icons to form two rows */
    .zs-sticky-app-nav .elementor-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    /* Maintain identical icon sizes in both states */
    .zs-sticky-app-nav .elementor-widget-image img,
    .zs-sticky-app-nav.zs-is-stuck .elementor-widget-image img {
        width: 70px !important;
        max-width: 100%;
        height: auto;
        transition: none !important;
    }

    /* Compact sticky navigation */
    .zs-sticky-app-nav.zs-is-stuck {
        padding-top: 4px;
        padding-bottom: 4px;
    }

}

/* Remove admin-bar offset when the bar is hidden on mobile */
@media (max-width: 600px) {
    body.admin-bar .zs-sticky-app-nav {
        top: 0;
    }
}

/* Ziosoft clinical product popup - responsive video */

.zs-popup-video {
    width: 100%;
}

.zs-popup-video iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* Ziosoft popup close button - mobile */
@media (max-width: 767px) {
    .jet-popup__close-button {
        transform: translate(-35px, 4px) !important;
    }
}


/* Ziosoft solid light-blue bullets */
ul.zs-blue-bullets {
    list-style-type: disc !important;
}

ul.zs-blue-bullets li {
    list-style-type: disc !important;
}

ul.zs-blue-bullets li::marker {
    content: "•  ";
    color: #00A5DE;
}
/* Align bullet text with paragraph text */
ul.zs-blue-bullets {
    padding-left: 20px !important;
    margin-left: 0 !important;
}

/* Ziosoft homepage feature icon glow */
.zs-hex-glow img {
    filter: drop-shadow(0 0 8px rgba(150, 210, 255, 0.85));
}

/* Hide clinical background image on mobile */
@media (max-width: 767px) {
    .zs-hide-mobile-bg {
        background-image: none !important;
    }
}

/* ==========================================
   ZIOSOFT HOMEPAGE CARD HOVER EFFECT
   ========================================== */

/* Smooth transition */
.zs-card-hover {
    transition: box-shadow 0.3s ease,
                transform 0.3s ease;
}

/* Cyan offset shadow on hover */
.zs-card-hover:hover {
    box-shadow: 12px 12px 0 #00A5DE;
    transform: translateY(-3px);
}

/* ==========================================
   ZIOSOFT CONTINUOUS CLINICAL IMAGE GALLERY
   ========================================== */

.zs-clinical-marquee {
    width: 100%;
    overflow: hidden;
    background: #000;
}

.zs-clinical-track {
    display: flex;
    width: max-content;
    animation: zs-clinical-scroll 35s linear infinite;
}

.zs-clinical-group {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
    padding-right: 12px;
}

.zs-clinical-group img {
    display: block;
    width: auto;
    height: 250px;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
}

/* Move by exactly one image sequence */
@keyframes zs-clinical-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Pause movement on mouseover */
.zs-clinical-marquee:hover .zs-clinical-track {
    animation-play-state: paused;
}

/* Mobile sizing */
@media (max-width: 767px) {
    .zs-clinical-group img {
        height: 160px;
    }

    .zs-clinical-track {
        animation-duration: 25s;
    }
}

/* Accessibility: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .zs-clinical-track {
        animation: none;
    }

    .zs-clinical-marquee {
        overflow-x: auto;
    }
}

/* Ziosoft homepage feature heading alignment */
.zs-feature-heading {
    min-height: 76px;
}

/* Ziosoft homepage mobile hero video */
@media (max-width: 767px) {

    .zs-mobile-hero-video .elementor-wrapper {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        padding-bottom: 0 !important;
        overflow: hidden;
    }

    .zs-mobile-hero-video video {
        position: absolute !important;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
}

/* Consistent mobile height for homepage gradient bars */
@media (max-width: 767px) {
    .zs-gradient-bar {
        height: 40px !important;
        min-height: 40px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .zs-gradient-bar .elementor-container {
        width: 100%;
        align-items: center;
    }

    .zs-gradient-bar .elementor-icon-wrapper {
        line-height: 1 !important;
    }
}

/* Ziosoft promotional notification bar */
#wpfront-notification-bar {
    background: #080E32 !important;
    background-image: none !important;
    color: #FFFFFF !important;
}

#wpfront-notification-bar .wpfront-message {
    color: #FFFFFF !important;
}

#wpfront-notification-bar .wpfront-button {
    background: #00A5DE !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border: none !important;
}

#wpfront-notification-bar .wpfront-button:hover {
    background: #008DBD !important;
}
