.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    background: #0a2a50;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s, visibility 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #fff;  /* Change color to white */
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scroll-to-top a {
    display: inline-block;
    width: 100%;
    height: 100%;
    line-height: 40px;
}

.wp-block-caxton-divider, .caxton-shape-divider {
    position: relative;
    z-index: 1; /* Ensure this is lower than the navbar's z-index */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Ensuring the modal is open by default and not hidden */
body .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: block !important;
}

/* Hide the responsive container when it's not marked as always shown, and it's not a menu */
body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none !important;
}

@media (min-width: 960px) {
    /* Hide the modal for larger screens when it is not marked as always shown */
    body .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none !important;
    }

    /* Show the responsive container on larger screens when it's not hidden by default and is a menu */
    body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: block !important;
    }
}

@media (max-width: 1024px) {
    .wp-block-spacer {
        max-width: 10px !important;
    }
}