/**
 * Revolution Slider Display Fix
 */

/* Ensure Revolution Slider is visible */
#rev_slider_1_1_wrapper,
#rev_slider_1_1 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure fullscreen container works */
.rev_slider_wrapper.fullscreen-container {
    width: 100% !important;
    position: relative !important;
    height: 100vh !important;
}

/* Fix z-index issues */
#rev_slider_1_1_wrapper {
    z-index: 1;
}

/* For onepage layout: ensure home section appears first */
body.home #content > div {
    display: flex !important;
    flex-direction: column !important;
}

/* Ensure the home section with Revolution Slider appears first */
body.home .page-wrapper#home {
    order: -999 !important; /* Force to top */
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* All other page sections come after */
body.home .page-wrapper:not(#home) {
    order: 1 !important;
}

/* Remove any top margin/padding from content area on home */
body.home #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Make header transparent and position it over the slider */
body.home #header,
body.home .header-wrapper {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: transparent !important;
}

/* Ensure slider is full height from top */
body.home .rev_slider_wrapper.fullscreen-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Style header for transparent overlay */
body.home .navbar,
body.home .navbar-nav {
    background: transparent !important;
}

body.home .navbar a,
body.home .navbar-nav a,
body.home .navbar-nav > li > a {
    color: #ffffff !important;
}

body.home .navbar-brand img {
    filter: brightness(0) invert(1);
}

/* Hide any extraneous content that might appear */
body.home .w-section:has(.ct-simple-slider) {
    display: none !important;
}