body {
    margin-left: 0;
}


@media (min-width: 981px) {
    body:has(#leftSideMenu) {
        margin-left: 260px !important;
    }
}

.cosmosLeftMenu,
.cosmosMobileMenu,
.cosmosHomeMenu {
    ul {
        list-style: none !important;
        margin: 0 !important;
        /* margin-top: 40px !important; */
        padding: 0 !important;

        &>li {
            margin: 0;
            padding: 0;
            display: block;
            margin-top: 5px;
            padding-bottom: 5px;
            border-bottom: 1px solid #fff;
            position: relative;

            &>a {
                display: block;
                margin: 0;
                padding: 0;
                color: #fff;
                text-transform: uppercase;
                font-weight: 700;
                letter-spacing: 2px;
                font-size: 14px;
            }

            .submenu-toggle {
                position: absolute;
                top: 3px;
                right: -3px;
                width: 20px;
                height: 20px;
                margin: 0;
                padding: 0;
                background: none;
                border: none;
                color: #fff;
                fill: #ffffff;
                /* white color */
                font-size: 20px;
                font-weight: normal;
                font-family: monospace;
                cursor: pointer;

                .submenu-icon {
                    display: inline-block;
                    transition: transform 0.5s ease;
                }

                .submenu-icon.submenu-open-icon {
                    transform: rotate(135deg);
                }

                /* Show/hide submenu */
                .menu-item-has-children>.sub-menu {
                    display: none;
                }

                .menu-item-has-children.submenu-open>.sub-menu {
                    display: block;
                }
            }

            &>ul {
                display: block;
                overflow: hidden;
                height: auto;
                max-height: 0;
                transition: max-height 500ms ease;

                li {
                    border-bottom: none;
                    padding-bottom: 0;
                    margin-top: 0;

                    a {
                        text-transform: none;
                        letter-spacing: 0px;
                        font-weight: normal;
                    }
                }
            }

        }

        &>li.submenu-open {
            &>ul {
                display: block !important;
                max-height: 100px;
            }
        }
    }
}

.cosmosLeftMenu,
.cosmosHomeMenu {
    padding-left: 15px;
    padding-right: 15px;
}

#homeMenuWrapper {
    left: -260px;
    transition: all 500ms ease-in-out;
}

#homeMenuWrapper.active {
    left: 0;
}


@media (max-width: 500px) {
    #homeMenuWrapper {
        width: 100vw;
        left: -100vw;

        .et_pb_row {
            /* padding: 10px !important; */
            margin: 0 !important;
            padding: 0 !important;
            padding-left: 10px !important;
            padding-right: 10px !important;
            width: 100%;
            display: block;

            .et_pb_column {
                width: 100%;
            }
        }
    }

    #homeLogo {
        width: 150px;
    }

    #pageLogo {
        width: 150px;
    }

    #homeMenuTrigger {
        /* left: 45px; */
        left: 15px;

        .et-pb-icon {
            font-size: 45px !important;
        }
    }

}

#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 500ms ease;
}

#mobileMenu.active {
    max-height: 500px;
    /* must be bigger than content */
}

.cosmosMobileMenu ul {

    li {}
}

@media (max-width: 500px) {
    #hamburgerPage {
        left: -20px;
    }
}

.et_pb_video_box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.background-video {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden !important;
    z-index: -1 !important;
    /* behind page content */
}

.background-video video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: auto !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    transform: translate(-50%, -50%) !important;
}

.background-video-mobile {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden !important;
    z-index: -1 !important;
    /* behind page content */
}

.background-video-mobile video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: auto !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    transform: translate(-50%, -50%) !important;
}

.background-video {
    display: block;
}

.background-video-mobile {
    display: none;
}


@media (max-width: 500px) {
    .background-video {
        display: none;
    }

    .background-video-mobile {
        display: block;
    }
}


/* BLURB 
*
*   Text bellow image in blurb 
*
*/

.et_pb_main_blurb_image {
    margin-bottom: 0px !important;
    display: block !important;
}

.et_pb_blurb_description {
    p {
        font-style: italic;
        color: #909090 !important;
    }
}

.single-post h2,
.single-post h3 {
    text-transform: uppercase !important;
}

.page h1,
.page h2,
.page h3 {
    text-transform: uppercase !important;
}

.page h2{
    font-weight: 700;
}
.page h3 {
    font-weight: 400;
    font-size: 18px;
}

.page h1 {
  text-transform: uppercase;
  font-size: 30px !important;
  color: #3c3c3b !important;
  font-weight: 600;
  line-height: 150%;
}

.single-post {

    ol {
        padding-left: 20px;
        /* Remove default padding */
        margin-left: 20px;
    }

    ol li {
        list-style-position: outside;
        padding-left: 10px;
        /* Space for the number */
        /* text-indent: -1.5em; */
        /* Pulls text back to align */
    }
}


/* Simple Float Solution - Image Left, Text Right */
.et_pb_post {
    overflow: hidden !important;
    background: #fff !important;
    margin-bottom: 50px !important;
    padding-bottom: 50px !important;
    border-bottom: 1px solid #d0d0d0;
    h2 {
        text-transform: uppercase !important;
        color: #6e8cb1;
        line-height: 130%;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 1px;
        position: relative;
        top: -20px;
    } 
}

/* Float image left */
.et_pb_post > a.entry-featured-image-url {
    float: left !important;
    width: 40% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.et_pb_post > a.entry-featured-image-url img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: transform 0.5s ease !important;
}

.et_pb_post:hover > a.entry-featured-image-url img {
}

/* Float text content right */
.et_pb_post > .entry-title,
.et_pb_post > .post-meta,
.et_pb_post > .post-content {
    float: left !important;
    width: 60% !important;
    padding: 20px 25px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Stack them vertically */
.et_pb_post > .entry-title {
    padding-bottom: 10px !important;
}

.et_pb_post > .post-meta {
    padding-top: 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #eee !important;
}

.et_pb_post > .post-content {
    padding-top: 20px !important;
    padding-bottom: 25px !important;
}

/* Ensure read more is below text */
.et_pb_post > .post-content .post-content-inner {
    margin-bottom: 20px !important;
    color: #666 !important;
    line-height: 120% !important;
}

.et_pb_post > .post-content .more-link {
    display: inline-block !important;
    /* background-color: #2ea3f2 !important; */
    color: #6e8cb1 !important;
    padding: 6px 30px !important;
    border: 2px solid #6e8cb1 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 2px !important;
    text-align: center !important;
    margin-top: 0px !important;
}

.et_pb_post > .post-content .more-link:hover {
    /* background-color: #1e8bc3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 3px 8px rgba(46, 163, 242, 0.3) !important; */
}

/* Clear the float */
.et_pb_post:after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* Responsive */
@media (max-width: 768px) {
    .et_pb_post > a.entry-featured-image-url,
    .et_pb_post > .entry-title,
    .et_pb_post > .post-meta,
    .et_pb_post > .post-content {
        float: none !important;
        width: 100% !important;
    }
    
    .et_pb_post > a.entry-featured-image-url {
        height: 200px !important;
    }
    
    .et_pb_post > a.entry-featured-image-url img {
        height: 200px !important;
        object-fit: cover !important;
    }
}

.et_pb_blurb .et_pb_image_wrap {
    aspect-ratio: 100 / 60; /* Directly sets the ratio */
    width: 100%;
    overflow: hidden;
    display: block;
}

.et_pb_blurb .et_pb_image_wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* .n2-ss-slider {
    border: 5px solid #f00;
} */
.n2-ss-slider {
    max-height: 100vh;
}
.n2-ss-slider * {
    max-height: 100vh;
}
.n2-ss-slider .n2-ss-slide-background {
    max-height: 100vh;
}
.n2-ss-slider .n2-ss-slide-background-image img {
    max-height: 100vh;
    object-fit: contain; /* Scales image to fit without cropping */
}


.et_pb_video_box:has(iframe) {
    height: auto;
}

.et_pb_accordion h5 {
    text-transform: uppercase;
}

.et_pb_accordion .et_pb_toggle {
    margin-bottom: 5px !important;
}

body:not(.wp-admin)  .et_pb_accordion.et_pb_module {
    /* display: none; */
}


/* LIGHTBOX ====================================== */

.litebox-text {
    font-weight: 200 !important;
    font-style: normal !important;
    color: #a0a0a0 !important;
    b {
        color: inherit !important;
        font-weight: 200 !important;
    }
}

.litebox-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
}

/* LIGHTBOX ANIMATION ========================================================= */


.litebox-content {
    animation: fadeZoom 1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes fadeZoom {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    20%  {
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Completely disable text animations in lightbox */
.litebox-text {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Remove the text animation classes from your JS */
.litebox-text.changing,
.litebox-text.fade-in,
.litebox-text.slide-in {
    animation: none !important;
    transition: none !important;
}

/* Also remove from text container */
.litebox-container .litebox-text {
    animation: none !important;
}


/* SEARCH FAQ ======================================== */

/* Search box styles */
.search-section {
    margin: 30px 0 40px 0;
    margin: 0 !important;
    position: relative;
    max-width: 600px;
}

#search-field {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 3px;
    font-size: 16px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

#search-field:focus {
    border-color: #2ea3f2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.1);
}

#search-field::placeholder {
    color: #999;
    font-style: italic;
}

#clear-button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-120%);
    font-size: 24px;
    color: #999;
    cursor: pointer;
    display: none;
    line-height: 1;
    padding: 0 5px;
}

#clear-button:hover {
    color: #333;
}

#result-display {
    margin-top: 10px;
    color: #2ea3f2;
    font-size: 14px;
    font-weight: 500;
    padding-left: 5px;
}

/* Accordion styling */
.et_pb_accordion {
    margin-bottom: 30px;
    transition: opacity 0.2s ease;
}

.et_pb_toggle {
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.et_pb_toggle_title {
    padding: 15px 20px;
    background: #f8f8f8;
    cursor: pointer;
    font-weight: 500;
}

.et_pb_toggle_content {
    padding: 20px;
    background: white;
}

/* Hide empty accordions */
.et_pb_accordion:not(:has(.et_pb_toggle:visible)) {
    display: none !important;
}

/* Animation for search results */
.et_pb_toggle {
    transition: all 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .search-section {
        max-width: 100%;
        padding: 0 15px;
    }
    
    #search-field {
        padding: 12px 40px 12px 15px;
        font-size: 15px;
    }
}
