/* General Styles */
.atb-searchbox,
.gtranslate_wrapper {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Search Toggle Button */
.atb-searchbox__switch {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
}

.atb-searchbox__switch strong {
    height: 100%;
    display: block;
    position: relative;
    font-weight: 400;
}

.atb-searchbox__switch strong::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    background-image: url('search-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin: auto;
    transition: filter 0.3s;
    filter: hue-rotate(0deg);
}

.atb-searchbox__switch:hover strong::before {
    filter: hue-rotate(250deg);
}

/* Search Overlay Sliding from Top */
.global-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background-color: #185e9a; /* Maintain your existing background color */
    transform: translateY(-100%);
    transition: transform 0.35s ease-in-out;
    z-index: 9999; /* Ensure it's above other elements */
    visibility: hidden;
}

.global-search-overlay.atb-searchbox--active {
    transform: translateY(0);
    visibility: visible;
}

/* Search Box Styling */
.atb-searchbox--standard {
    width: 100%;
    max-width: 100%; /* Full width */
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.atb-searchbox--standard #searchform {
    background-color: #185e9a;
    z-index: 2000;
    top: 44px; /* Adjust as needed */
    width: 100%;
    max-width: 322px;
    margin: 0 auto;
    padding: 10px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.35s ease-in-out, opacity 0.35s ease-in-out;
}

/* Initially Hidden */
.atb-searchbox--off #searchform {
    transform: translateY(-40px);
    opacity: 0;
    visibility: hidden;
}

/* Visible State */
.atb-searchbox--active #searchform {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}


.sr-only {
    visibility: hidden;
    }


.atb-searchbox--standard #global-searchform .atb-outer {
    width: 94.53125%;
    margin-left: auto;
    margin-right: auto;
    padding: 90px 3% 85px;
    }

#global-searchform .atb-outer,
#global-searchform .atb-inner {
    position: relative;
    }

#global-searchform .atb-inner {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    }

#global-searchform {
    margin-top: -1px;
    margin-left: auto;
    display: block;
    visibility: visible;
    opacity: 1;
    -moz-transform: translate(0px, 0px);
    -ms-transform: translate(0px, 0px);
    -webkit-transform: translate(0px, 0px);
    transform: translate(0px, 0px);
    -moz-transition: opacity .35s ease-in-out, -moz-transform .35s ease-in-out;
    -o-transition: opacity .35s ease-in-out, -o-transform .35s ease-in-out;
    -webkit-transition: opacity .35s ease-in-out, -webkit-transform .35s ease-in-out;
    transition: opacity .35s ease-in-out, transform .35s ease-in-out;
    background-color: #185e9a;
    z-index: 2000;
    margin-bottom: 0;
    padding: 10px 0;
    width: 100%;
    }





/* Close Button */
.close-search {
    width: 55px;
    height: 54px;
    position: absolute;
    cursor: pointer;
    padding: 9px;
    right: 0;
    top: 0;
    background-color: unset;
    background-image: unset;
    transition: all .25s ease-in-out;
    }

.close-search line {
    stroke: #A9DFBD;
    transition: all .25s ease-in-out;
    }

.close-search:hover line {
    stroke: #fff;
    }

/* Search Input */
#global-searchform #s {
    padding: 8px 20px;
    font-size: 36px;
    border-width: 2px;
    background-color: transparent;
    border-color: #fff;
    color: #fff;
    width: 100%;
    padding-right: 36px;
    box-sizing: border-box;
    font-family: "Podkova", serif;
    font-weight: 700;
    
    padding: 8px 20px;
    font-size: 36px;
    border-width: 2px;
}

/* Placeholder Styling */
#global-searchform input::placeholder,
#global-searchform textarea::placeholder {
    color: #fff;
    opacity: 1;
    font-family: Podkova, serif;
}

/* Search Form Actions */
.atb-form-actions {
    width: 60px;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    }

.atb-form-actions::before {
    content: "";
    display: block;
    width: 50px;
    height: 50px;
    background-image: url(search-icon.svg);
    background-size: contain;
    background-repeat: no-repeat;
    margin-top: -24px;
    position: absolute;
    left: -5px;
    top: 50%;
    z-index: 1;
    text-align: center;
    transition: filter 0.3s;
    }

.atb-form-actions:hover::before {
    filter: hue-rotate(250deg);
}

/* Submit Button */
#searchsubmit {
    width: 100%;
    height: 100%;
    border-width: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
    cursor: pointer;
    text-indent: -999px;
    overflow: hidden;
    background: transparent;
    width: 80px;
}

#s:focus {
    outline: 3px dotted #a9dfbd;
    outline-offset: 3px;
    }

#searchsubmit:focus {
    border-color: #aaa #bbb #bbb;
    outline: 3px dotted #a9dfbd;
    outline-offset: -7px;
    }

button.close-search:focus {
    outline: 3px dotted #a9dfbd;
    outline-offset: 3px;
    }

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
    .atb-searchbox__switch strong::before {
        top: 0;
        position: absolute;
        margin: 0 14px;
    }
}
.search-active {
    overflow: hidden !important;
}

.global-search-overlay {
   -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

@media screen and (max-width: 500px) {
    #global-searchform #s {
        font-size: 16px;
        }
    
    .atb-form-actions::before {
        width: 30px;
        height: 30px;
        margin-top: -16px;
        left: 20px;
        }
    }
