/*--------------------------------------------------------
BRICKS THEME OVERRIDES
--------------------------------------------------------*/


/*--------------------------------------------------------
TYPOGRAPHY
--------------------------------------------------------*/
html {
    font-size: 62.5%;
}
.screenreader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
/*--------------------------------------------------------
LAYOUT
--------------------------------------------------------*/
.wp-block-group > *:first-child,
.wp-block-column > *:first-child
 {
    margin-top: 0;
}
.wp-block-group > *:last-child,
.wp-block-column > *:last-child
 {
    margin-bottom: 0;
}
/*--------------------------------------------------------
SPACING
--------------------------------------------------------*/

:root {
    --os-space-xxl: clamp(8rem, 3.824vw + 6.776rem, 12rem);
    --os-space-xl: clamp(3.6rem, 4.207vw + 2.254rem, 8rem);
    --os-space-l: clamp(2.4rem, 2.294vw + 1.666rem, 4.8rem);
    --os-space-m: clamp(1.6rem, 1.53vw + 1.111rem, 3.2rem);
    --os-space-s: clamp(0.8rem, 0.765vw + 0.555rem, 1.6rem);
    --os-space-xs: clamp(0.4rem, 0.382vw + 0.278rem, 0.8rem);
    --os-section-gutter: clamp(2rem, 3.442vw + 1.699rem, 6.4rem);
    --os-section-gap: clamp(8rem, 3.824vw + 6.776rem, 12rem);
    --os-grid-gap: var(--os-space-m);
}

.wp-block-columns {
    gap: clamp(3.6rem, 8.031vw + 1.03rem, 12rem);
}

/*--------------------------------------------------------
COLOURS
--------------------------------------------------------*/
:root {
    --os-primary-h: 45;
    --os-primary-s: 24%;
    --os-primary-l: 28%;
	--os-primary: hsl(var(--os-primary-h) var(--os-primary-s) var(--os-primary-l));
    --os-primary-light: hsl(var(--os-primary-h) var(--os-primary-s) calc(var(--os-primary-l) * 1.5) );
    --os-primary-ultra-light: hsl(var(--os-primary-h) var(--os-primary-s) calc(var(--os-primary-l) * 2) );
    --os-primary-dark: hsl(var(--os-primary-h) var(--os-primary-s) calc(var(--os-primary-l) * 0.5) );
    --os-primary-ultra-dark: hsl(var(--os-primary-h) var(--os-primary-s) calc(var(--os-primary-l) * 0.25) );
    --os-primary-hover: hsl(var(--os-primary-h) var(--os-primary-s) calc(var(--os-primary-l) * 1.5) );
    --os-secondary-h: 45;
    --os-secondary-s: 24%;
    --os-secondary-l: 28%;
	--os-secondary: hsl(var(--os-secondary-h) var(--os-secondary-s) var(--os-secondary-l));
    --os-secondary-light: hsl(var(--os-secondary-h) var(--os-secondary-s) calc(var(--os-secondary-l) * 1.5) );
    --os-secondary-ultra-light: hsl(var(--os-secondary-h) var(--os-secondary-s) calc(var(--os-secondary-l) * 2) );
    --os-secondary-dark: hsl(var(--os-secondary-h) var(--os-secondary-s) calc(var(--os-secondary-l) * 0.5) );
    --os-secondary-ultra-dark: hsl(var(--os-secondary-h) var(--os-secondary-s) calc(var(--os-secondary-l) * 0.25) );
    --os-secondary-hover: hsl(var(--os-secondary-h) var(--os-secondary-s) calc(var(--os-secondary-l) * 1.5) );
    --os-action-h: 83;
    --os-action-s: 67%;
    --os-action-l: 48%;
	--os-action: hsl(var(--os-action-h) var(--os-action-s) var(--os-action-l));
    --os-action-light: hsl(var(--os-action-h) var(--os-action-s) calc(var(--os-action-l) * 1.25) );
    --os-action-ultra-light: hsl(var(--os-action-h) var(--os-action-s) calc(var(--os-action-l) * 1.5) );
    --os-action-dark: hsl(var(--os-action-h) var(--os-action-s) calc(var(--os-action-l) * 0.5) );
    --os-action-ultra-dark: hsl(var(--os-action-h) var(--os-action-s) calc(var(--os-action-l) * 0.25) );
    --os-action-hover: hsl(var(--os-action-h) var(--os-action-s) calc(var(--os-action-l) * 1.5) );
    --os-base-h: 188;
    --os-base-s: 16%;
    --os-base-l: 29%;
	--os-base: hsl(var(--os-base-h) var(--os-base-s) var(--os-base-l));
    --os-base-light: hsl(var(--os-base-h) var(--os-base-s) calc(var(--os-base-l) * 2.5) );
    --os-base-ultra-light: hsl(var(--os-base-h) var(--os-base-s) calc(var(--os-base-l) * 3) );
    --os-base-dark: hsl(var(--os-base-h) var(--os-base-s) calc(var(--os-base-l) * 0.7) );
    --os-text-h: 188;
    --os-text-s: 16%;
    --os-text-l: 20%;
    --os-text: hsl(var(--os-text-h) var(--os-text-s) calc(var(--os-text-l) * 1.5) );
    --os-white-trans-20: rgba(255,255,255,0.2);
}
/*--------------------------------------------------------
CORNERS
--------------------------------------------------------*/
:root {
    --os-radius-l: clamp(2.4rem, 2.294vw + 1.666rem, 4.8rem);
    --os-radius-m: clamp(1.6rem, 1.53vw + 1.111rem, 3.2rem);
    --os-radius-s: clamp(0.8rem, 0.765vw + 0.555rem, 1.6rem);
    --os-radius-xs: clamp(0.6rem, 0.382vw + 0.478rem, 1rem);
}
/*--------------------------------------------------------
ANIMATION & EFFECTS
--------------------------------------------------------*/
:root {
    --os-transition: 0.3s;
}
:root {
    --os-box-shadow-l: 0.5rem 0.5rem 3rem rgba(0,0,0,0.2);
}

a {
    transition: var(--os-transition);
}
/* correct styles in editor */
a.os-button {
    text-decoration: none !important;
}

/* CLICKABLE PARENT */
.os-clickable-parent:not(a) {
    position: static;
}

.os-clickable-parent:not(a) a {
    position: static;
}

.os-clickable-parent:not(a)>a::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    cursor: pointer !important;
    display: flex;
    z-index: 2;
}

a.os-clickable-parent {
    position: static;
}

a.os-clickable-parent::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    cursor: pointer !important;
    display: flex;
}
a.os-arrow-link {
    color: white;
    text-decoration: none;
    font-family: var(--wp--preset--font-family--montserrat);
    font-weight: 300;
}
a.os-arrow-link::after {
    content: "";
    background-image: url('/wp-content/themes/ohso-base-theme/assets/img/arrow-icon.svg');
    background-repeat: no-repeat;
    display: inline-block;
    width: 1.8rem;
    height: 1.8rem;
    vertical-align: middle;
    margin-left: 0.8rem;
    transition: var(--os-transition);
}
a.os-arrow-link:hover::after {
    margin-left: 1.6rem;
}

/*--------------------------------------------------------
MODALS
--------------------------------------------------------*/
.os-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--os-base-dark);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: var(--os-section-padding);
}
.os-modal__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: var(--os-space-xl) 0 var(--os-space-xl) 0;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    padding: 8rem;
    box-sizing: border-box;
}
.os-modal__content {
    position: relative;
    display: flex;
    flex-direction: column;
}
.os-modal__content-scroll {
    overflow-y: scroll;
    max-height: 70vh;
    padding-right: 3rem;
}

.os-modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--wp--preset--color--action);
    border: none;
    background: none;
    font-size: clamp(2rem, 1.912vw + 1.388rem, 4rem);
    transition: var(--os-transition);
}
.os-modal__close:hover {
    color: var(--wp--preset--color--brand-red-hover);
}
.os-modal div::-webkit-scrollbar{
     width: 12px;
     /* Set a custom width for the scrollbar */
 }
 .os-modal div::-webkit-scrollbar-thumb {
     background-color: var(--wp--preset--color--action);
     border-radius: 6px;
 }
 .os-modal div::-webkit-scrollbar-track {
     background-color: #eee;
     border-radius: 6px;
 }
 @media screen and (max-width: 768px) {
    .os-modal__inner {
        padding: 5rem;
    }
    .os-modal__close {
        top: 16px;
        right: 16px;
    }
}
@media screen and (max-width: 480px) {
    .os-modal__inner {
        padding: 3.6rem;
        padding-top: 5rem;
    }
    .os-modal__close {
        top: 16px;
        right: 16px;
    }
}


/*--------------------------------------------------------
FORMS
--------------------------------------------------------*/
.ff-default .ff-el-form-control {
    padding: 2rem;
    border-color: var(--wp--preset--color--action);
    font-family: var(--wp--preset--font-family--montserrat);
}
form.frm-fluent-form .ff-btn-submit {
    background-color: var(--wp--preset--color--action) !important;
    color: var(--wp--preset--color--base-dark) !important;
    font-family: var(--wp--preset--font-family--montserrat);
    border-radius: 9999px;
    padding: 1.2rem 3.2rem;
    transition: var(--os-transition);
}
form.frm-fluent-form .ff-btn-submit:hover {
    background-color: var(--wp--preset--color--action-light) !important;
    transform: translateY(-3px);
    opacity: 1;
}
/*--------------------------------------------------------
HEADER
--------------------------------------------------------*/
.wp-site-blocks header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    padding: 50px 0 75px 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}
.wp-site-blocks header .wp-block-site-logo img {
    width: 200px;
    height: auto;
}
nav.main-menu-container {
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 16px;
}
nav.main-menu-container a {
    text-decoration: none;
    color: white;
}
nav.main-menu-container a:hover {
    color: var(--wp--preset--color--action);
}
nav.main-menu-container ul {
    list-style: none;
    padding-left: 0;
}
nav.main-menu-container > ul {
    display: flex;
    gap: 50px;
}
nav.main-menu-container > ul li {
    margin-bottom: 0;
    padding-bottom: 0;
}
nav.main-menu-container > ul > li.menu-item-has-children > a {
    display: flex;
    gap: 10px;
    align-items: center;
}
nav.main-menu-container > ul > li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    height: 10px;
    width: 10px;
    background-image: url('../img/nav-arrow.svg');
    background-repeat: no-repeat;
    background-position: center right;
    transform: rotate(90deg);
    transition: var(--os-transition);
}
nav.main-menu-container > ul > li.menu-item-has-children:hover > a::after {
    transform: rotate(-90deg);
}
nav.main-menu-container > ul > li {
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
}
nav.main-menu-container > ul > li > ul {
    position: absolute;
    top: -9999px;
    background-color: var(--wp--preset--color--base);
    border-radius: 10px;
}
nav.main-menu-container > ul > li:hover > ul {
    top: 30px;
}
nav.main-menu-container > ul > li > ul > li {
    padding: 24px 16px;
    min-width: 250px;
    border-bottom: 1px solid var(--wp--preset--color--base-dark);
}
nav.main-menu-container > ul > li > ul > li:last-child {
    border-bottom: none;
}
.menu-toggle-wrapper {
    display: none;
}

@media screen and (max-width: 768px) {
    /* Hide the menu by default */
    .main-menu-container {
        display: none;
    }
    .menu-toggle-wrapper {
        display: block;
    }
    /* Menu toggle button styling */
    .menu-toggle {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        position: relative;
        z-index: 9999;
    }
    .menu-toggle p {
        display: none;
    }
    /* Style the SVG icon */
    .menu-toggle .bar {
        width: 30px; /* Adjust size */
        height: 2px;
        background-color: #fff; /* Change color */
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }
    .menu-toggle .bar {
        transform-origin: 50% 50%; /* Ensures rotation happens from the center */
    }
    .menu-toggle .bar-bottom {
        background-color: var(--wp--preset--color--action);
        width: 20px;
    }
    /* When menu is active, animate the bars into an "X" */
    .menu-toggle.mobile-active {
        gap: 0;
    }
    .menu-toggle.mobile-active .bar-middle {
        opacity: 0; /* Hide middle bar */
    }
    .menu-toggle.mobile-active .bar-top {
        transform: translateY(2px) rotate(45deg);
    }
    .menu-toggle.mobile-active .bar-bottom {
        transform: translateY(-2px) rotate(-45deg);
        width: 30px;
    }
    .main-menu-container.mobile-active {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 480px;
        max-width: 75%;
        height: calc(100dvh - 200px);
        overflow: hidden;
        overflow-y: scroll;
        background: rgba(62, 83, 86, 0.9);
        padding: 150px 50px 50px 50px;

    }
    nav.main-menu-container.mobile-active > ul {
        flex-direction: column;
        font-size: 20px;
    }
    nav.main-menu-container.mobile-active > ul > li {
        height: auto;
        border-left: 3px solid var(--wp--preset--color--action);
        padding-left: 20px;
    }
    nav.main-menu-container.mobile-active > ul > li > ul {
        position: static;
        background: none;
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
        font-size: 16px;
    }
    nav.main-menu-container.mobile-active > ul > li > ul > li {
        border: none;
        padding: 0 0 0 25px;
    }
    nav.main-menu-container > ul > li.menu-item-has-children > a::after {
        display: none;
    }
    nav.main-menu-container > ul > li {
        flex-direction: column;
        align-items: flex-start;
    }
}
/*--------------------------------------------------------
FOOTER
--------------------------------------------------------*/
footer,
footer h2,
footer h3
{
    color: white;
}
footer {
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 1.6rem;
}
.footer__container {
    width: var(--wp--style--global--wide-size);
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}
.footer__container > p {
    display: none;
}
footer h3 {
    font-size: var(--wp--preset--font-size--heading-small);
    margin-top: 0;
}
footer .footer__container a {
    color: var(--wp--preset--color--action-light);
    text-decoration: none;
}
footer a:hover {
    color: var(--wp--preset--color--action-ultra-light);
    text-decoration: none;
}
.footer__logo {
    width: 225px;
    max-width: 75%;
}
footer address {
    font-style: normal;
    line-height: 1.5;
}
.footer__menus {
    display: flex;
    gap: var(--os-space-xl);
    justify-content: flex-end;
}
.footer__menus ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: var(--wp--preset--font-family--montserrat)
}
.footer__menus ul a {
    color: white;
}
.footer__menus ul a:hover {
    color: var(--wp--preset--color--action-light);
}
.footer__lower p {
    text-align: center;
    line-height: 1.5;
    color: var(--wp--preset--color--base-light);
    font-family: var(--wp--preset--font-family--montserrat);
}
.footer__lower a {
    text-decoration: none;
}
@media screen and (max-width: 768px) {
    .footer__container {
        flex-direction: column;
    }
    .footer__menus {
        justify-content: flex-start;
        margin-top: var(--os-space-l);
    }
    .footer__lower p {
        margin-top: var(--os-space-l);
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .footer__lower > span {
        display: block;
    }
    .footer__lower-2 {
        display: none;
    }
}
@media screen and (max-width: 480px) {
    .footer__menus {
        flex-direction: column;
    }
}

/*--------------------------------------------------------
ARCHIVE (NEWS) home.html template
--------------------------------------------------------*/
.os-news-single-wrapper {
    margin-top: -250px;
    z-index: 1;
}
.os-news-single-inner-wrapper {
    padding: var(--wp--preset--spacing--large);
    background-color: white;
    max-width: 960px !important;
}
.news-page .wp-block-post-template {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--grid-gap);
}
.news-page .wp-block-post .wp-block-columns {
    border-bottom: 1px solid var(--wp--preset--color--action-light);
    padding-bottom: var(--wp--preset--spacing--grid-gap);
}
.news-page .wp-block-post img {
    border-radius: var(--os-radius-s);
    width: 100%;
    height: auto;
}
.news-page .wp-block-post-title {
    margin-top: 0;
}
.news-page .wp-block-post-featured-image img {
    border-radius: var(--os-radius-s);
}
.os-prev-next-wrapper {
    align-items: flex-start !important;
}
.news-page .wp-block-post-navigation-link {
    max-width: 40%;
    display: flex;
}
.news-page .wp-block-post-navigation-link a {
    color: var(--wp--preset--color--action);
    text-decoration: none;
}
.news-page .wp-block-post-navigation-link a:hover {
    color: var(--wp--preset--color--action-dark);
}
.wp-block-post-navigation-link__arrow-previous,
.wp-block-post-navigation-link__arrow-next {
    color: var(--wp--preset--color--action-light);
    font-size: 2.4rem;
}
.post-navigation-link-next {
    text-align: right;
}
@media screen and (max-width: 480px) {
    .os-prev-next-wrapper {
        margin-top: 2rem;
        flex-direction: column;
        gap: 2rem;
    }
    .news-page .wp-block-post-navigation-link {
        max-width: 100%;
    }
}

/*--------------------------------------------------------
PAGINATION
--------------------------------------------------------*/
.wp-block-query-pagination {
    margin-top: var(--wp--preset--spacing--grid-gap);
}
.wp-block-query-pagination a.page-numbers,
.wp-block-query-pagination a.wp-block-query-pagination-next
{
    padding: 1rem 1.6rem;
    border-radius: var(--os-radius-xs);
    background-color: var(--wp--preset--color--action);
    color: var(--wp--preset--color--base);
    text-decoration: none;
}
.wp-block-query-pagination a.page-numbers:hover,
.wp-block-query-pagination a.wp-block-query-pagination-next:hover 
{
    background-color: var(--wp--preset--color--action-light);
}
.wp-block-query-pagination .page-numbers.current {
    padding: 1rem 1.6rem;
    border-radius: var(--os-radius-xs);
    background-color: var(--wp--preset--color--base);
    color: white;
}
/*--------------------------------------------------------
SCRIPTLESS SOCIAL SHARING
--------------------------------------------------------*/
.scriptlesssocialsharing {
    margin-top: 12px !important;
}
.scriptlesssocialsharing__heading {
    font-size: var(--wp--preset--font-size--medium);
    margin-bottom: var(--wp--preset--spacing--small);
}
.scriptlesssocialsharing__buttons {
    display: flex;
}
.scriptlesssocialsharing__buttons  a {
    color: var(--wp--preset--color--primary);
}
.scriptlesssocialsharing .button {
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem !important;
    transition: 0.3s;
    background-color: var(--wp--preset--color--action);
}
.scriptlesssocialsharing .button:hover {
    transform: translateY(-2px);
    background-color: var(--wp--preset--color--action-light);
}