/*
Theme Name: remora-biotech
Theme URI: 
Author: Optima Graphic Design Consultants Ltd.
Author URI: 
Description: 
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: remora-biotech
Tags: 
*/

/* General Styles */
.wp-site-blocks {
    position: relative;
}

:where(.wp-site-blocks) > * + * {
    margin-block-start: 0 !important;
}

body:not(.home) {
    .entry-content {
        @media (max-width: 768px) {
            padding-top: 50px !important;
        }
    }
}

.entry-content > div {
    margin-block-start: 0 !important;
}

.wp-block-button a,
p a,
li a,
button,
input[type="submit"] {
    transition: all 0.3s ease !important;
}

.desktop-hide {
    @media (min-width: 768px) {
        display: none;
    }
}

.mobile-hide {
    @media (max-width: 768px) {
        display: none;
    }
}

.mobile-order-1 {
    @media (max-width: 768px) {
        order: 1;
    }
}

.mobile-order-2 {
    @media (max-width: 768px) {
        order: 2;
    }
}

.mobile-order-3 {
    @media (max-width: 768px) {
        order: 3;
    }
}

.mobile-max-width {
    @media (max-width: 768px) {
        max-width: 100% !important;
    }
}

.mobile-reduce-standard-padding {
    @media (max-width: 768px) {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

.mobile-reduce-y-padding {
    @media (max-width: 768px) {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}

.wp-block-spacer[style="height:60px"] {
    @media (max-width: 768px) {
        height: 30px !important;
    }
}

.wp-block-spacer[style="height:80px"] {
    @media (max-width: 768px) {
        height: 40px !important;
    }
}

.wp-block-spacer[style="height:100px"] {
    @media (max-width: 768px) {
        height: 50px !important;
    }
}

.full-click-card {
    position: relative;

    a {
        text-decoration: none !important;

        &:after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 2;
        }
    }

    div {
        position: static !important;
    }
}


/* Navigation */
.home header, header.page-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.hide-mobile {
    @media (max-width: 992px) {
        display: none;
    }
}

.hide-desktop {
    @media (min-width: 992px) {
        display: none;
    }
}

html:not(.has-modal-open) {
    .menu-mobile {
        background-color: transparent !important;
    }
}

.wp-block-navigation__container.menu-mobile {
    @media (max-width: 992px) {
        padding-left: 9px !important;
    }
}

.wp-block-navigation__responsive-container-close {
    top: 16px !important;
    right: 8px !important;
}

.wp-block-navigation__submenu-container {
    border: none !important;
    left: 0 !important;
    right: auto !important;
    padding: 16px 8px !important;

    @media (max-width: 992px) {
        padding-top: 10px !important;
        padding-bottom: 0 !important;
    }
}

.wp-block-navigation-item:not(.nav-item-border, .nav-item-button) {
    .wp-block-navigation-item__content {
        text-decoration: underline !important;
        text-decoration-color: transparent !important;

        &:hover {
            color: #57317E !important;
            text-decoration-color: #57317E !important;
        }
    }
}

.wp-block-navigation-item.has-child {
    @media (max-width: 992px) {
        & > .wp-block-navigation-item__content {
            cursor: text !important;
            text-decoration: none !important;

            &:hover {
                color: #151632 !important;
                text-decoration: none !important;
            }
        }
    }
}


.nav-item-border a {
    border: 1px solid #151632;
    padding: 12px 24px !important;

    &:hover {
        background-color: #151632 !important;
        color: #fff !important;
    }
}

.nav-item-button a {
    background-color: #151632 !important;
    border: 1px solid #151632 !important;
    color: #fff !important;
    padding: 12px 24px !important;

    &:hover {
        background-color: transparent !important;
        color: #151632 !important;
    }
}


/* Headers & Heroes */
.homepage-hero {
    @media (max-width: 768px) {
        & > div {
            background-color: #E9E8EE !important;
            padding-top: 120px !important;
            padding-bottom: 45px !important;
        }

        background: none !important;
        padding-bottom: 0 !important;
    }
}

.hero-headings {
    @media (max-width: 768px) {
        .wp-block-group {
            margin-block-start: 8px !important;
            max-width: 100%;
            padding-left: 25px !important;
            padding-right: 25px !important;

            h1 {
                padding-left: 0 !important;
                text-align: start !important;
            }
        }
    }
}

.pages-header {
    @media (max-width: 768px) {
        padding-top: 150px !important;
        padding-bottom: 70px !important;
    }
}

.pages-header-minimal {
    @media (max-width: 768px) {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }
}

.contact-header {
    @media (max-width: 768px) {
        padding-top: 150px !important;
        padding-bottom: 0 !important;
    }
}

/* Footer */
footer {
    margin-top: 0;

    a {
        text-decoration-color: transparent;

        &:hover {
            text-decoration-color: #57317E;
        }
    }

    @media (max-width: 768px) {
        & > div {
            padding: 35px 25px !important;
        }

        .footer-contact, .footer-quick-links {
            p {
                font-size: 14px !important;
            }
        }

        .footer-links {
            align-items: start !important;
            flex-direction: column !important;
            justify-content: flex-start !important;
        }
    }
}


/* Blocks */
.wp-block-accordion-item.is-open h3 {
    background-color: #57317E !important;
}

.logo-slider {
    .cb-slide {
        height: 150px !important;
    }
}

.card-masonry-padding {
    @media (max-width: 768px) {
        padding-top: 200px !important;
    }
}

.mobile-cta-banner {
    @media (max-width: 768px) {
        background-position: 100% 0 !important;
        background-repeat: no-repeat !important;
        background-size: 150% !important;
        padding-top: 450px !important;
        padding-bottom: 60px !important;
    }

    @media (max-width: 576px) {
        background-position: 100% 0 !important;
        background-repeat: no-repeat !important;
        background-size: 150% !important;
        padding-top: 350px !important;
        padding-bottom: 60px !important;
    }
}


/* Forms */
.gform_wrapper {
    .gfield_label {
        font-weight: 400 !important;

        .gfield_required {
            font-size: 18px !important;
        }
    }

    .ginput_container {
        input {
            height: 48px !important;
        }

        &.ginput_container_consent {
            input {
                aspect-ratio: 1/1 !important;
                height: auto !important;
            }

            .gfield_consent_label a {
                font-weight: 500 !important;
            }
        }
    }

    .gfield_consent_description {
        border: 0 !important;
        padding: 0 !important;
    }

    .gform_button {
        background-color: #151632 !important;
        border: 1px solid #151632 !important;
        color: #fff !important;
        font-size: 18px !important;
        font-weight: 400 !important;
        line-height: 150% !important;
        padding: 12px 24px !important;

        &:hover {
            background-color: #fff !important;
            color: #151632 !important;
        }
    }

    .gform_required_legend {
        display: none !important;
    }
}

/* News/Search Archive */
.news-insight .taxonomy-category a, .single-news-insight .taxonomy-category a {
    pointer-events: none;
    text-decoration: none;
    color: inherit;
}

.page-template-news-archive .wp-block-query-filter__select {
    border: 0;
    border-bottom: 1px solid;
    padding: 10px;
    padding-left: 0;
    font-size: 18px;
    font-weight: 300;
    width: 300px;
    max-width: 100%;
}

.wp-block-query-pagination-numbers {
    display: flex;
}

.wp-block-query-pagination-numbers .page-numbers {
    width: 32px;
    font-size: 18px;
    text-decoration: none;
    text-align: center;
}

.wp-block-query-pagination-numbers .page-numbers.current {
    border-bottom: 3px solid #151632;
    font-weight: bold;
}

.page-template-news-archive .wp-block-post.type-news-insight,
.single-news-insight .wp-block-post.type-news-insight,
.search-results .wp-block-post {
    position: relative;
}

.page-template-news-archive .wp-block-post.type-news-insight:hover .wp-block-post-title a,
.single-news-insight .wp-block-post.type-news-insight:hover .wp-block-post-title a,
.search-results .wp-block-post:hover .wp-block-post-title a {
    text-decoration: underline;
}

.page-template-news-archive .wp-block-post.type-news-insight .wp-block-post-title a:after,
.single-news-insight .wp-block-post.type-news-insight .wp-block-post-title a:after,
.search-results .wp-block-post:hover .wp-block-post-title a:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wp-block-button.is-style-outline a:hover, .wp-block-button.is-style-outline a:focus, .wp-block-button.is-style-outline a:active, .wp-block-button.is-style-outline a:focus-visible {
    background-color: #151632;
    color: #fff;
    border-color: #151632;
}

/* Social Sharer Shortcode */
.custom-shortcode-social-links {
    display: flex;
    gap: 12px 11px;
    padding: 0;
    font-size: 24px;
}

.custom-shortcode-social-links li {
    list-style: none;
}

.custom-shortcode-social-links .wp-block-social-link a:hover, .custom-shortcode-social-links .wp-block-social-link a:focus, .custom-shortcode-social-links .wp-block-social-link a:active, .custom-shortcode-social-links .wp-block-social-link a:focus-visible {
    transform: scale(1.1);
}

.custom-shortcode-social-links .wp-block-social-link a {
    transition: all 0.3s ease;
    align-items: center;
    display: flex;
    line-height: 0;
}

.mobile-max-width .wp-block-search__inside-wrapper {
    @media (max-width: 768px) {
        max-width: 100% !important;
        width: 100% !important;
    }
}

header .wp-block-search {
    @media (max-width: 768px) {
        padding-left: 9px;
    }
}

header .wp-block-search__button.has-icon {
    padding: 10px;
    background-color: transparent;
    color: #151632;
    border: none;
}

header .wp-block-search.wp-block-search__searchfield-hidden input.wp-block-search__input {
    display: none;
}

header .wp-block-search:not(.wp-block-search__searchfield-hidden):before {
    @media (min-width: 768px) {
        content: '';
        display: block;
        margin: 10px;
        width: 24px;
        height: 24px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOSIgaGVpZ2h0PSIxOSIgdmlld0JveD0iMCAwIDE5IDE5IiBmaWxsPSJub25lIj4KPHBhdGggZD0iTTUuMjE1ODIgMC42NDAyODlDNy42NDA1NiAtMC4zNjE2MDIgMTAuMzk0NSAtMC4xODA2NDIgMTIuNjY2IDEuMTMzNDVIMTIuNjY1QzE0Ljc5NTIgMi4zNjQ0IDE2LjI3NTIgNC40NTgxNCAxNi43MzM0IDYuODU5MDRMMTYuODExNSA3LjM0MzQxVjcuMzQ0MzlDMTcuMTAyMSA5LjU2ODg0IDE2LjQ5MTQgMTEuNzk4NCAxNS4xNDk0IDEzLjU1NzNMMTQuODMyIDEzLjI0MDlMMTQuNDc5NSAxMy41OTM0TDE0LjQ5MTIgMTMuNjA1MUwxNC44NTk0IDEzLjkxODZDMTQuOTU5OCAxMy44MDEgMTUuMDU2IDEzLjY3OTcgMTUuMTQ5NCAxMy41NTczTDE4LjQ4MzQgMTYuODkwM0wxOC41OTQ3IDE3LjAxOTJDMTguODI4IDE3LjMzNDMgMTguODgyNyAxNy43NTI1IDE4LjcyOTUgMTguMTIxN0wxOC4yNjc2IDE3LjkzMjNMMTguNzI4NSAxOC4xMjM3QzE4LjU1MzggMTguNTQ1MyAxOC4xNDI4IDE4LjgyMiAxNy42ODQ2IDE4LjgyMVYxOC4zMjE5TDE3LjY4MjYg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LjA2NjA3VjQuMDY1MDlDMTEuNjUxNyAyLjkwNDU2IDEwLjA3NzUgMi4yNTQ4MyA4LjQzODQ4IDIuMjU4NDVIOC4zMzIwM0M4LjM2NzA3IDIuMjU3ODYgOC40MDIzOSAyLjI1NTU0IDguNDM3NSAyLjI1NTUyVjEuNzU4NDVMOC40Mzg0OCAxLjc1NzQ4VjEuNzU0NTVaIiBmaWxsPSIjMTUxNjMyIi8+Cjwvc3ZnPg==);
    }
}

header .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper {
    @media (min-width: 768px) {
        position: fixed;
        top: 25%;
        left: calc(50% - 200px);
        z-index: 999;
        width: 400px;
        max-width: 100%;
    }
}

header .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper input {
    @media (min-width: 768px) {
        border: white;
        padding: 10px 20px;
    }
}

header .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper input {
    @media (max-width: 768px) {
        background-color: transparent;
    }
}

header .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper button {
    @media (min-width: 768px) {
        background-color: white;
    }
}

header .wp-block-search.wp-block-search__searchfield-hidden .wp-block-search__label:before {
    @media (min-width: 768px) {
        content: none;
        background-color: rgba(0, 0, 0, 0);
    }
}

header .wp-block-search .wp-block-search__label {
    @media (min-width: 768px) {
        clip-path: unset;
        overflow: unset;
        font-size: 0;
    }
}

header .wp-block-search .wp-block-search__label:before {
    @media (min-width: 768px) {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        transition: all 0.3s ease;
    }
}
