/* FONTS */

@font-face {
    font-family: "Space Grotesk";
    src: url("../fonts/SpaceGrotesk-VariableFont_wght.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Instrument Serif";
    src: url("../fonts/InstrumentSerif-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Instrument Serif";
    src: url("../fonts/InstrumentSerif-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* VARS */

:root {
    --navbarHeight: 70px;
    --headerPlacementHeight: 0px;
    --primary: #105449;
    --black: #000000;
    --dark-grey: #39403A;
    --primary-green-tint-3: #E9F1EC;
    --secondary: #F6BE95;
    --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-heading: "Instrument Serif", Georgia, serif;
    --font-accent: "Space Grotesk", Arial, sans-serif;
    --ease-default: ease;
    --ease-out-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-overlay: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.2s;
    --duration-base: 0.3s;
    --duration-slow: 0.4s;
    --duration-media: 0.5s;
    --media-zoom: 1.04;
    --blur-glass: 12px;
    --shadow-panel: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    --shadow-overlay: 0 8px 40px rgba(0, 0, 0, 0.15);
    --shadow-hero: 0 0 11px rgba(0, 0, 0, 0.15);
    --shadow-slider: 0 2px 8px rgba(0, 0, 0, 0.14);
    --shadow-slider-hover: 0 4px 16px rgba(0, 0, 0, 0.18);
}

/* DEFAULTS */

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    font-family: var(--font-sans);
    color: var(--dark-grey);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* max-width: 1360px; */
}

@media (max-width:991px) {
    body {
        font-size: 16px;
    }
}

img,
object,
embed {
    max-width: 100%;
}

a:hover,
a:focus,
a:active {
    outline: none !important;
}

strong,
b {
    font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 400;
    line-height: 1.08;
    margin: 0;
}

h1,
.h1 {
    font-size: 97px;
}

h2,
.h2 {
    font-size: 64px;
    letter-spacing: -1%;
}

h3,
.h3 {
    font-size: 32px;
}

h4,
.h4,
h5,
.h5,
h6,
.h6 {
    font-size: 16px;
}

@media (max-width:991px) {

    h1,
    .h1 {
        font-size: 46px;
    }

    h2,
    .h2 {
        font-size: 36px;
    }

    h3,
    .h3 {
        font-size: 26px;
    }
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .3s ease;
}

textarea {
    resize: vertical;
}

img {
    max-width: 100%;
    height: auto;
}

picture {
    display: flex;
    height: 100%;
}

button {
    outline: none !important;
    background-color: transparent;
    cursor: pointer;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.container {
    /*position: relative;*/
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    padding: 0 32px;
}

.container-sm {
    max-width: 1200px;
}

@media (max-width:991px) {
    .container {
        padding: 0 24px;
    }
}

main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100%;
    margin: 0 auto;
    padding-top: var(--navbarHeight);
}

body.has-header-placement main {
    padding-top: 0;
}

.block-wrapper {
    max-width: 1390px;
    margin: 0 auto;
}

.grecaptcha-badge {
    display: none !important;
}

/* btns */

.btn {
    color: #fff;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    padding: 16px 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    border-radius: 8px;
    border: 0;
    transition: opacity .3s ease;
}

.btn:hover,
.btn:active,
.btn:focus-within {
    opacity: 0.8;
}

.btn-primary {
    background: var(--primary);
    transition: background .3s ease, color .3s ease, opacity .3s ease;
}

.btn-white {
    background: #fff;
    color: var(--primary);
    transition: background .3s ease, color .3s ease, opacity .3s ease;
}

.btn-light {
    background: #E9F1EC;
    color: var(--primary);
    transition: background .3s ease, color .3s ease, opacity .3s ease;
}

.btn-white:hover,
.btn-white:active,
.btn-white:focus-within,
.btn-light:hover,
.btn-light:active,
.btn-light:focus-within {
    background: var(--primary);
    color: #fff;
    opacity: 1;
}

.btn-underline {
    color: var(--primary);
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: 7%;
    text-underline-offset: 25%;
    text-underline-position: from-font;
}

.btn-secondary {
    background: var(--secondary);
}

.btn-wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

@media (max-width:479px) {
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* btns */

/* 404 */

.error-page {
    padding: 120px 0;
}

.error-page .error-page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

/* 404 */

/* nav sticky */

.navbar-default {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    -webkit-transition: top .3s ease, box-shadow .3s ease, background .3s ease;
    transition: top .3s ease, box-shadow .3s ease, background .3s ease;
    z-index: 1002;
}

body.admin-bar .navbar-default {
    top: 32px;
}

body.has-header-placement .navbar-default {
    position: sticky;
    top: 0;
    margin-bottom: -75px;
    transform: none;
    overflow-x: clip;
    -webkit-transition: box-shadow .3s ease, background .3s ease;
    transition: box-shadow .3s ease, background .3s ease;
}

body.has-header-placement .nav-primary {
    position: fixed;
    width: min(445px, calc(100vw - 64px));
    max-width: none;
}

body.has-header-placement.navbar-sticky .nav-wrapper-inner {
    padding: 22px 0;
}

.navbar-sticky .navbar-default {
    background: #fff;
}

.navbar-sticky .nav-wrapper-inner {
    padding: 22px 0;
}

/* nav sticky */

/* nav */

@media (min-width: 992px) {
    body.home:not(.navbar-sticky) .site-logo {
        display: none;
    }
}

.nav-wrapper-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding .3s ease;
    padding: 22px 0;
}

body.home .nav-wrapper-inner,
body.single-post .nav-wrapper-inner {
    border-bottom: 1px solid #fff;
}

.nav-wrapper .main-logo {
    transition: opacity .3s ease;
    position: relative;
    z-index: 9;
}

.nav-search-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 25%;
}

.hamburger-wrapper {
    width: 25%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 32px
}

.hamburger-topics {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    transition: color .3s ease;
}

.nav-search {
    display: flex;
    align-items: center;
    margin-right: 8px;
    cursor: pointer;
}

.nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 24px;
    border-left: 1px solid #fff;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    transition: color .3s ease, border .3s ease;
}

.nav-wrapper .main-logo img {
    transition: opacity .3s ease;
}

.nav-primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

@keyframes nav-primary-enter {
    0% {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }

    52% {
        opacity: 1;
        transform: translate3d(-14px, 0, 0);
    }

    72% {
        transform: translate3d(8px, 0, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes nav-primary-exit {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    100% {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
}

@keyframes nav-primary-exit-fade {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    35% {
        opacity: 0.55;
        transform: translate3d(30%, 0, 0);
    }

    100% {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
}

.nav-primary {
    position: absolute;
    left: auto;
    top: 32px;
    right: 32px;
    width: 100%;
    transform: translate3d(100%, 0, 0);
    background-color: var(--black);
    height: calc(100dvh - 64px);
    padding: 40px;
    background-color: var(--primary);
    color: #fff;
    max-width: 445px;
    opacity: 0;
    pointer-events: none;
    z-index: 103;
    border-radius: 9px;
    box-shadow: var(--shadow-panel);
}

.menu-nav-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
}

.menu-nav-wrapper .nav-upper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(117, 158, 145, 0.25);
}

.nav-primary.active {
    animation: nav-primary-enter .8s cubic-bezier(0.64, 1.25, 0.84, 1) both;
    opacity: 1;
    pointer-events: all;
}

.nav-primary.is-closing {
    animation: nav-primary-exit 0.35s ease both;
    opacity: 1;
    pointer-events: none;
}

.nav-primary.is-closing-fade {
    animation: nav-primary-exit-fade 0.45s ease both;
    opacity: 1;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .nav-primary.active {
        animation: none;
        transform: translate3d(0, 0, 0);
    }

    .nav-primary.is-closing,
    .nav-primary.is-closing-fade {
        animation: none;
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
}

.nav-toggle-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 5%;
    text-transform: uppercase;
    line-height: 1.5;
    color: #C6D7D0;
}

.menu-nav-wrapper ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#menuTopics ul {
    gap: 0px;
    margin-top: 45px;
}

#menu .menu-primary-container {
    padding-bottom: 40px;
}

#menu .menu-primary-container ul {
    gap: 0px;
}

#menu .menu-primary-container ul a,
#menuTopics ul a {
    font-size: 52px;
    font-weight: 400;
    line-height: 1.15;
    font-family: var(--font-heading);
}

#menu .menu-primary-container ul a:hover,
#menuTopics ul a:hover {
    color: #C6D7D0
}

.nav-lower {
    padding-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.nav-social {
    margin-top: auto;
    padding-top: 32px;
    border-top: 1px solid rgba(117, 158, 145, 0.25);
}

.nav-social ul {
    flex-direction: row;
    gap: 16px;
}

.nav-social a {
    display: flex;
    align-items: center;
}

.nav-social a svg path {
    fill: #C6D7D0;
}

.nav-social a:hover svg path {
    fill: #759E91;
}

.nav-lower ul {
    gap: 4px;
}

.nav-lower ul a {
    font-size: 16px;
    font-weight: 400;
    color: #C6D7D0;
}

.nav-lower ul a:hover {
    color: #759E91;
}

.nav-lower .powered-by {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #C6D7D0;
    font-size: 16px;
    font-weight: 400;
}

.nav-lower .powered-by a {
    display: flex;
    align-items: center;
}

.nav-wrapper .hamburger-mobile,
.nav-wrapper .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 99;
}

.nav-wrapper .bar {
    width: 23px;
    height: 2px;
    background-color: #fff;
    margin: 4px 0;
    transition: var(--duration-slow) var(--ease-default);
}

.nav-wrapper .hamburger-topics,
.nav-wrapper .hamburger-mobile,
.nav-wrapper .hamburger {
    display: flex;
    cursor: pointer;
}

.nav-close-btn {
    cursor: pointer;
}

#menu .nav-close-btn {
    position: absolute;
    top: 40px;
    right: 40px;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.nav-menu-wrapper {
    width: 100%;
    padding: 0;
}

.nav-menu-wrapper nav {
    transform: translateX(100%);
    transition: transform .3s ease;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 99;
    width: 100%;
}

.nav-menu-wrapper.active nav {
    transform: translateX(0);
}

.nav-wrapper .bar.active:nth-child(1) {
    transform: rotate(-45deg) translate(-3px, 4px);
}

.nav-wrapper .bar.active:nth-child(2) {
    transform: rotate(45deg) translate(-4px, -4px);
}

.nav-menu-wrapper {
    border-bottom: 0;
}

.menu-navigation-container {
    margin-top: auto;
    margin-bottom: auto;
}

.hamburger-mobile {
    display: none !important;
}

.nav-search svg path {
    transition: fill .3s ease;
}

body.no-hero .nav-search svg path,
.navbar-sticky .nav-search svg path {
    fill: var(--primary);
}

body.no-hero .nav-title,
.navbar-sticky .nav-title {
    border-left-color: var(--primary);
}

body.no-hero .nav-title,
body.no-hero .hamburger-topics,
.navbar-sticky .nav-title,
.navbar-sticky .hamburger-topics {
    color: var(--primary);
}

body.no-hero .nav-wrapper .bar,
.navbar-sticky .nav-wrapper .bar {
    background-color: var(--primary);
}

.logo-full path {
    fill: #fff;
    transition: fill .3s ease;
}

body.no-hero .logo-full path,
.navbar-sticky .logo-full path {
    fill: var(--primary);
}

/* nav */

@media (max-width:1199px) {
    .hamburger-mobile {
        display: flex !important;
    }

    .hamburger-topics,
    .hamburger {
        display: none !important;
    }

    .nav-title {
        border: 0;
        padding: 0;
    }

    .nav-lower .powered-by span,
    .nav-title span {
        display: none;
    }

    .nav-primary {
        top: 12px;
        bottom: 24px;
        right: 24px;
        width: calc(100% - 48px);
        height: calc(100dvh - 48px);
        padding: 24px;
    }

    body.has-header-placement .nav-primary {
        width: calc(100vw - 48px);
    }

    .nav-close-btn svg {
        width: 17px;
        height: auto;
    }

    .menu-nav-wrapper .nav-upper {
        border: 0;
        padding-bottom: 16px;
    }

    .nav-toggle-title {
        text-transform: none;
        letter-spacing: 0;
        font-weight: 400;
    }

    #menuMobile .menu-topics-container ul {
        gap: 0;
    }

    #menuMobile .menu-topics-container a {
        font-size: 44px;
        font-family: var(--font-heading);
        line-height: 1.16;
    }

    .mobile-nav-primary {
        padding: 24px 0;
        border-top: 1px solid rgba(117, 158, 145, 0.25);
        margin-top: 24px;
    }

    .mobile-nav-primary ul {
        gap: 6px;
    }

    .nav-lower {
        border: 0;
        padding: 0;
        padding-top: 24px;
    }

    .nav-lower ul a {
        color: #759E91;
    }
}

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

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

.headline {
    font-size: 13px;
    font-family: 'owners-xwide';
    letter-spacing: 10%;
    text-transform: uppercase;
    font-weight: 500;
}

.bg-beige {
    background-color: #EEE4DE;
}


/* footer */

footer {
    padding: 64px 0 0;
    background-color: var(--primary);
    color: #fff;
    border-top: 1px solid rgba(117, 158, 145, 0.25);
}

footer .footer-woodmark {
    opacity: 0.15;
    padding-top: 160px;
}

footer .footer-woodmark svg {
    width: 100%;
    height: auto;
}

footer .footer-upper-wrapper {
    padding-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

footer .footer-wrapper {
    width: 100%;
    display: flex;
    gap: 32px;
}

footer .footer-nav-col:nth-child(1) {
    width: calc(60% - 16px);
    display: flex;
    flex-wrap: wrap;
}

footer .footer-nav-col:nth-child(2) {
    width: calc(40% - 16px);
}

footer .footer-menu {
    width: 33.33333333%;
}

footer .footer-menu-title {
    font-family: var(--font-accent);
    font-weight: 700;
    letter-spacing: 5%;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 22px;
    color: #C6D7D0;
}

footer .footer-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

footer .footer-menu ul a {
    font-size: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

footer .footer-menu ul a svg path {
    transition: fill .3s ease;
}

footer .footer-menu ul a:hover {
    color: #759E91;
}

footer .footer-menu ul a:hover svg path {
    fill: #759E91;
}

footer .footer-text {
    width: 100%;
}

footer .footer-lower-wrapper {
    padding: 32px 0;
    border-top: 1px solid rgba(117, 158, 145, 0.25);
}

footer .footer-copy-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

footer .footer-copy,
footer .footer-copy-wrapper ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
}

footer .footer-copy-text {
    color: #C6D7D0;
}

footer .powered-by {
    display: flex;
    align-items: center;
    gap: 8px;
}

footer .powered-by a {
    display: flex;
    align-items: center;
}

footer .powered-by,
footer .footer-copy,
footer .footer-copy-wrapper ul a {
    color: #759E91;
    line-height: 1.5;
    font-size: 15px;
}

footer .footer-copy-wrapper ul a:hover {
    color: #fff;
}

footer .footer-cats {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

footer .footer-cats a {
    background-color: #fff;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 12px;
    transition: background .3s ease;
    font-family: var(--font-accent);
    font-size: 14px;
}

footer .footer-cats a img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

footer .footer-cats a:hover {
    background-color: #C6D7D0;
}

footer .footer-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 32px;
}

footer .footer-text .badge {
    padding: 4px 12px;
    font-weight: 400;
    letter-spacing: 3%;
    color: var(--primary);
    background-color: var(--secondary);
    border-radius: 999px;
    margin-left: 4px;
    font-family: var(--font-accent);
}

@media (max-width:991px) {
    footer {
        padding: 24px 0 0;
    }

    footer .footer-woodmark {
        order: 0;
        opacity: 1;
        padding: 54px 0 64px;
    }

    footer .footer-wrapper {
        order: 1;
        flex-wrap: wrap;
    }

    footer .footer-nav-col:nth-child(1) {
        padding-bottom: 80px;
        gap: 8px 0;
    }

    footer .footer-nav-col:nth-child(1),
    footer .footer-nav-col:nth-child(2) {
        width: 100%;
    }

    footer .footer-cats {
        justify-content: flex-start;
    }

    footer .footer-menu-title.title-social {
        display: none;
    }

    footer .footer-menu-title.title-social+ul span {
        display: none;
    }

    footer .footer-menu {
        width: 50%;
    }

    footer .footer-menu-title {
        margin-bottom: 12px;
    }

    footer .footer-text {
        margin-top: 8px;
    }

    footer .footer-menu:nth-child(3) {
        margin-top: 16px;
    }

    footer .footer-menu:nth-child(3) ul {
        flex-direction: row;
    }

    footer .footer-copy-wrapper {
        flex-direction: column;
        gap: 54px;
    }

    footer .footer-copy,
    footer .footer-copy-wrapper ul {
        flex-wrap: wrap;
    }

    footer .footer-copy span {
        display: none;
    }
}

/* footer */

section {
    position: relative;
}

.block-anchor {
    position: absolute;
    top: calc(var(--navbarHeight) * -1);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* theme */
.text-block {
    padding: 100px 0;
}

.text-block .block-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
    color: var(--primary);
}

.text-block .block-title p {
    max-width: 560px;
}

.text-block .btn-wrapper {
    margin-top: 26px;
}

.wp-block-group {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-end;
}

.wp-block-group {
    padding: 64px 0;
}

.wp-block-group.wp-block-group-is-layout-constrained {
    max-width: 740px;
    margin: 0 auto;
}

@media (max-width:1199px) {
    .text-block {
        padding: 96px 0;
    }

    .wp-block-group {
        padding: 48px 0;
    }
}

@media (max-width:768px) {
    .text-block {
        padding: 48px 0;
    }

    footer .footer-menu ul a {
        font-size: 16px;
    }
}

/* theme */

/* search */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform var(--duration-base) var(--ease-overlay);
    overflow: hidden;
    box-shadow: var(--shadow-overlay);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

@media (min-width: 992px) {
    .search-overlay {
        height: min(840px, 100dvh);
    }
}

.search-overlay.is-open {
    transform: translateY(0);
}

.search-overlay-outer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    height: 100%;
    box-sizing: border-box;
}

.search-overlay-outer .container {
    height: 100%;
}

.search-overlay-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.search-overlay-close {
    position: absolute;
    top: 22px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
}

.search-overlay-input-wrapper {
    width: 100%;
    padding: 100px 0;
    text-align: center;
}

.search-overlay-input-wrapper form {
    position: relative;
}

.search-overlay-input {
    width: 100%;
    border: 0;
    outline: none;
    font-size: 66px;
    font-weight: 400;
    line-height: 1.15;
    font-family: var(--font-heading);
    text-align: center;
    padding: 10px 40px 10px 0;
    letter-spacing: -1%;
    background: transparent;
    color: var(--primary);
    box-sizing: border-box;
}

.search-overlay-input::placeholder {
    color: var(--primary);
}

.search-overlay-submit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
}

.search-overlay-tiles {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    flex: 1;
    min-height: 0;
    border-top: 1px solid rgba(117, 158, 145, 0.25);
    background: #FFF;
    padding-top: 32px;
    margin-top: auto;
}

.search-tile {
    flex: 1;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    background: var(--primary);
    min-height: 200px;
}

.search-tile-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform var(--duration-media) var(--ease-out-soft);
}

.search-tile:hover .search-tile-bg {
    transform: scale(var(--media-zoom));
}

.search-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.00) 28.18%), linear-gradient(180deg, rgba(0, 0, 0, 0.00) 60%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 1;
}

.search-tile-label {
    position: absolute;
    bottom: 24px;
    left: 24px;
    color: #fff;
    font-size: 32px;
    font-weight: 400;
    z-index: 2;
    font-family: var(--font-heading);
}

@media (max-width:991px) {
    .search-overlay-tiles {
        display: none;
    }

    .search-overlay-input-wrapper {
        padding: 48px 0;
    }

    .search-overlay-input {
        font-size: 32px;
    }
}

/* search */

.ongage-newsletter-form .form-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
}

.newsletter-error-message,
.newsletter-success-message {
    display: none;
    width: 100%;
}

.newsletter-success-message {
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
}

.home-hero .newsletter-success-message {
    background: none;
    border-radius: none;
}

.newsletter-success-message .success-message-title {
    font-family: var(--font-heading);
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.newsletter-success-message p:not(.success-message-title) {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.newsletter-error-message--visible,
.newsletter-success-message--visible {
    display: block;
}

.newsletter-error-message {
    color: #ff0000;
}

/* Ongage Newsletter Form */
.ongage-newsletter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.ongage-newsletter-form .field-email {
    order: 1;
    flex: 1 1 auto;
}

.ongage-newsletter-form .field-email input[type="email"] {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    font-weight: 400;
    outline: none;
    box-sizing: border-box;
    opacity: 0.79;
    background: rgba(150, 150, 150, 0.60);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    color: #fff !important;
}

.newsletter-cta .field-email input[type="email"] {
    background: linear-gradient(180deg, rgba(217, 217, 217, 0.10) 0%, rgba(115, 115, 115, 0.10) 100%), #477A71;
}

.ongage-newsletter-form .field-email input[type="email"]::placeholder {
    color: #e9f1EC !important;
}

.ongage-newsletter-form .submit-container {
    order: 2;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
}

.ongage-newsletter-form .submit-container button[type="submit"] {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    height: 52px;
    padding: 0 16px;
    border: 2px solid transparent;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    font-family: var(--font-sans);
    white-space: nowrap;
    background-color: var(--primary) !important;
    color: #fff !important;
}

.newsletter-small .ongage-newsletter-form .submit-container button[type="submit"],
.newsletter-cta .ongage-newsletter-form .submit-container button[type="submit"] {
    background-color: var(--primary-green-tint-3) !important;
    color: var(--primary) !important;
}

.newsletter-small .ongage-newsletter-form .submit-container button[type="submit"]:hover,
.newsletter-cta .ongage-newsletter-form .submit-container button[type="submit"]:hover {
    background-color: #fff !important;
}

.ongage-newsletter-form.alt .submit-container button[type="submit"],
.ongage-newsletter-form--alt .submit-container button[type="submit"] {
    background-color: #e9f1EC !important;
    color: var(--primary) !important;
}

.ongage-newsletter-form.gated {
    margin-top: 12px;
}

.ongage-newsletter-form.gated .field-email input[type="email"] {
    background: #EBEFED !important;
    color: #105449 !important;
}

.ongage-newsletter-form.gated .field-email input[type="email"]::placeholder {
    color: #105449 !important;
}

/* Newsletter email autofill */
.ongage-newsletter-form .field-email input[type="email"]:-webkit-autofill,
.ongage-newsletter-form .field-email input[type="email"]:-webkit-autofill:hover,
.ongage-newsletter-form .field-email input[type="email"]:-webkit-autofill:focus,
.ongage-newsletter-form .field-email input[type="email"]:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgb(130, 136, 133) inset !important;
    box-shadow: 0 0 0 1000px rgb(130, 136, 133) inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    opacity: 1;
    transition: background-color 5000s ease-in-out 0s;
}

.newsletter-cta .field-email input[type="email"]:-webkit-autofill,
.newsletter-cta .field-email input[type="email"]:-webkit-autofill:hover,
.newsletter-cta .field-email input[type="email"]:-webkit-autofill:focus,
.newsletter-cta .field-email input[type="email"]:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #477A71 inset !important;
    box-shadow: 0 0 0 1000px #477A71 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    opacity: 1;
    transition: background-color 5000s ease-in-out 0s;
}

.ongage-newsletter-form.gated .field-email input[type="email"]:-webkit-autofill,
.ongage-newsletter-form.gated .field-email input[type="email"]:-webkit-autofill:hover,
.ongage-newsletter-form.gated .field-email input[type="email"]:-webkit-autofill:focus,
.ongage-newsletter-form.gated .field-email input[type="email"]:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #EBEFED inset !important;
    box-shadow: 0 0 0 1000px #EBEFED inset !important;
    -webkit-text-fill-color: #105449 !important;
    caret-color: #105449;
    opacity: 1;
    transition: background-color 5000s ease-in-out 0s;
}

.ongage-newsletter-form .field-email input[type="email"]:autofill,
.newsletter-cta .field-email input[type="email"]:autofill,
.newsletter-cta .wpforms-field-email input[type="email"]:autofill,
.newsletter-small .wpforms-field-email input[type="email"]:autofill,
.ongage-newsletter-form.gated .field-email input[type="email"]:autofill {
    box-shadow: 0 0 0 1000px rgb(130, 136, 133) inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    opacity: 1;
}

.newsletter-cta .field-email input[type="email"]:autofill {
    box-shadow: 0 0 0 1000px #477A71 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
}

.ongage-newsletter-form.gated .field-email input[type="email"]:autofill {
    box-shadow: 0 0 0 1000px #EBEFED inset !important;
    -webkit-text-fill-color: #105449 !important;
    caret-color: #105449;
}

.ongage-newsletter-form.gated .field-checkbox label,
.ongage-newsletter-form.gated .field-checkbox label a {
    color: #105449 !important;
}

.ongage-newsletter-form.gated .field-checkbox label::before {
    border-color: #105449 !important;
}

.ongage-newsletter-form.gated .field-checkbox label::after {
    border-color: #105449 !important;
}

.ongage-newsletter-form .field-checkbox {
    order: 3;
    flex: 0 0 100%;
    margin-top: 16px !important;
}

.ongage-newsletter-form .field-checkbox fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.ongage-newsletter-form .field-checkbox ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ongage-newsletter-form .field-checkbox li {
    position: relative;
}

.ongage-newsletter-form .field-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 18px;
    height: 18px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.ongage-newsletter-form .field-checkbox label {
    display: block;
    padding-inline-start: 24px !important;
    position: relative;
    cursor: pointer;
    margin: 0;
    font-size: 16px;
    color: #E9F1EC;
    font-family: var(--font-sans);
}

.ongage-newsletter-form .field-checkbox label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 3px;
    box-sizing: border-box;
}

.ongage-newsletter-form .field-checkbox label::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: translateY(-65%) rotate(45deg);
    opacity: 0;
}

.ongage-newsletter-form .field-checkbox input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

.ongage-newsletter-form .field-checkbox label a {
    text-decoration: underline;
    color: inherit;
}

@media (max-width: 768px) {
    .ongage-newsletter-form {
        gap: 16px;
    }

    .ongage-newsletter-form .field-email {
        flex: 0 0 100%;
    }

    .ongage-newsletter-form .field-email input[type="email"] {
        border-radius: 4px 4px 0 0;
    }

    .ongage-newsletter-form .submit-container {
        flex: 0 0 100%;
    }

    .ongage-newsletter-form .submit-container button[type="submit"] {
        width: 100% !important;
        border-radius: 0px 0px 4px 4px;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

/* wpforms */


.wpforms-container,
.gform_wrapper {
    margin: 0 !important;
}

.wpforms-field-container,
.gform_fields {
    display: flex;
    flex-direction: column;
    gap: 16px !important;
}

.wpforms-container .wpforms-field,
.wp-core-ui div.wpforms-container .wpforms-field,
.gform_wrapper .gfield {
    padding: 0 !important;
}

div.wpforms-container-full input[type="submit"],
div.wpforms-container-full button[type="submit"],
div.wpforms-container-full .wpforms-page-button,
.wp-core-ui div.wpforms-container-full input[type="submit"],
.wp-core-ui div.wpforms-container-full button[type="submit"],
.wp-core-ui div.wpforms-container-full .wpforms-page-button,
.gform_wrapper input[type="submit"],
.gform_wrapper button[type="submit"],
.gform_wrapper .gform_button,
.gform_wrapper .gform_next_button,
.gform_wrapper .gform_previous_button {
    margin: 24px auto 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px !important;
    padding: 16px !important;
    min-width: 202px;
    text-align: center;
    background-color: #105449 !important;
    color: #fff !important;
    border-radius: 8px !important;
}

div.wpforms-container-full input[type="date"],
div.wpforms-container-full input[type="datetime"],
div.wpforms-container-full input[type="datetime-local"],
div.wpforms-container-full input[type="email"],
div.wpforms-container-full input[type="month"],
div.wpforms-container-full input[type="number"],
div.wpforms-container-full input[type="password"],
div.wpforms-container-full input[type="range"],
div.wpforms-container-full input[type="search"],
div.wpforms-container-full input[type="tel"],
div.wpforms-container-full input[type="text"],
div.wpforms-container-full input[type="time"],
div.wpforms-container-full input[type="url"],
div.wpforms-container-full input[type="week"],
div.wpforms-container-full select,
div.wpforms-container-full textarea,
.wp-core-ui div.wpforms-container-full input[type="date"],
.wp-core-ui div.wpforms-container-full input[type="datetime"],
.wp-core-ui div.wpforms-container-full input[type="datetime-local"],
.wp-core-ui div.wpforms-container-full input[type="email"],
.wp-core-ui div.wpforms-container-full input[type="month"],
.wp-core-ui div.wpforms-container-full input[type="number"],
.wp-core-ui div.wpforms-container-full input[type="password"],
.wp-core-ui div.wpforms-container-full input[type="range"],
.wp-core-ui div.wpforms-container-full input[type="search"],
.wp-core-ui div.wpforms-container-full input[type="tel"],
.wp-core-ui div.wpforms-container-full input[type="text"],
.wp-core-ui div.wpforms-container-full input[type="time"],
.wp-core-ui div.wpforms-container-full input[type="url"],
.wp-core-ui div.wpforms-container-full input[type="week"],
.wp-core-ui div.wpforms-container-full select,
.wp-core-ui div.wpforms-container-full textarea,
div.wpforms-container-full select,
.wp-core-ui div.wpforms-container-full select,
.gform_wrapper input[type="date"],
.gform_wrapper input[type="datetime"],
.gform_wrapper input[type="datetime-local"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="month"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="password"],
.gform_wrapper input[type="range"],
.gform_wrapper input[type="search"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="text"],
.gform_wrapper input[type="time"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="week"],
.gform_wrapper select,
.gform_wrapper textarea {
    font-size: 16px !important;
    color: var(--primary) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.25) !important;
    height: 50px !important;
}

div.wpforms-container-full textarea,
.wp-core-ui div.wpforms-container-full textarea,
.gform_wrapper textarea {
    height: auto !important;
    min-height: 100px;
}

div.wpforms-container-full input::placeholder,
.wp-core-ui div.wpforms-container-full input::placeholder,
div.wpforms-container-full textarea::placeholder,
.wp-core-ui div.wpforms-container-full textarea::placeholder,
.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder {
    color: #A5A5A5 !important;
    opacity: 1; /* Firefox */
}

/* wpforms */

/* home.php */

.posts-blog {
    padding: 100px 0 160px;
}

.posts-blog .block-wrapper {
    text-align: center;
    margin-bottom: 64px;
}

.posts-blog .block-content.content-tabs {
    border-top: 1px solid #C6D7D0;
    padding-top: 24px;
}

.posts-blog .block-title {
    margin-bottom: 8px;
}

.posts-blog .block-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--primary);
    max-width: 720px;
    margin: 0 auto;
}

/* Newsletter single page header uses same styles as posts-blog,
   but with no bottom padding */
.posts-newsletters {
    padding: 0;
    padding-bottom: 32px;
}

.posts-newsletters .block-wrapper {
    text-align: center;
    margin-bottom: 0px;
}

.posts-newsletters .block-content.content-tabs {
    border-top: 1px solid #C6D7D0;
    padding-top: 24px;
}

.posts-newsletters .block-title {
    margin-bottom: 8px;
}

.posts-newsletters .block-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--primary);
    max-width: 720px;
    margin: 0 auto;
}

.posts-blog__cats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    list-style-type: none;
    padding: 0;
    margin: 32px auto 0;
    max-width: 609px;
}

.posts-blog__cats a {
    background-color: #E9F1EC;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 12px;
    text-decoration: none;
    transition: background .3s ease, color .3s ease;
    font-family: var(--font-accent);
    font-size: 14px;
}

.posts-blog__cat-icon {
    display: flex;
    align-items: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.posts-blog__cat-icon img,
.posts-blog__cat-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter .3s ease;
}

.posts-blog__cats a:hover,
.posts-blog__cats .is-active a {
    background-color: var(--primary);
    color: #fff;
}

.posts-blog__cats a:hover .posts-blog__cat-icon img,
.posts-blog__cats a:hover .posts-blog__cat-icon svg,
.posts-blog__cats .is-active a .posts-blog__cat-icon img,
.posts-blog__cats .is-active a .posts-blog__cat-icon svg {
    filter: brightness(0) invert(1);
}

.content-tabs.style-4 .posts-grid {
    display: grid;
    align-items: flex-start;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card-single {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    gap: 24px;
}

.card-single .post-thumb {
    width: 100%;
    aspect-ratio: 326 / 361;
    overflow: hidden;
    position: relative;
}

.card-single .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 326 / 361;
}

.card-single .post-video {
    position: relative;
    width: 100%;
    aspect-ratio: 326 / 449;
}

.card-single .post-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 326 / 449;
}

.card-single .post-video::before,
.card-single .post-thumb::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .15) 100%), linear-gradient(180deg, rgba(0, 0, 0, .26) 0%, rgba(0, 0, 0, 0) 28.18%);
    z-index: 1;
}

.card-single.has-video {
    position: relative;
}

.card-single.has-video .post-data {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    justify-content: flex-end;
    padding: 24px;
    aspect-ratio: 326 / 449;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 2;
}

.card-single.has-video .post-title {
    color: #fff;
}

.card-single .post-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.card-single .post-title {
    margin: 0;
    color: var(--black);
    font-size: 32px;
}

.card-single .post-cat {
    display: flex;
    align-items: center;
}

.card-single .post-category {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-family: var(--font-accent);
    border-radius: 999px;
    background: #E9F1EC;
    font-size: 14px;
    padding: 4px 12px;
    letter-spacing: 3%;
}

.card-single.has-video .post-category {
    color: #fff;
    background: rgba(233, 241, 236, 0.25);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
}

.card-single .category-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.card-single.has-video .post-category .category-icon {
    filter: brightness(0) invert(1);
}

.card-single .post-title,
.card-single .post-category,
.article-card .article-card__title,
.article-card .article-cat-pill,
.editor-picks .post-title,
.editor-picks .post-category {
    transition: color var(--duration-media) var(--ease-out-soft);
}

.card-single:not(.has-video):hover .post-title,
.card-single:not(.has-video):hover .post-category,
.article-card:hover .article-card__title,
.article-card:hover .article-cat-pill,
.editor-picks a:not(.card-large):hover .post-title,
.editor-picks a:not(.card-large):hover .post-category {
    color: var(--primary);
}

/*.card-single.has-video:hover .post-category .category-icon,
.article-card--small:hover .article-cat-pill__icon {
    filter: none;
}*/

.posts-blog__pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    width: 100%;
}

.posts-blog__pagination-pages {
    display: flex;
    align-items: center;
    gap: 12px;
}

.posts-blog__pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--font-accent);
    font-size: 14px;
    font-weight: 400;
    color: var(--primary);
    background-color: #E9F1EC;
    transition: background .3s ease, color .3s ease;
}

.posts-blog__pagination-page:hover,
.posts-blog__pagination-page.is-active {
    background-color: var(--primary);
    color: #fff;
}

.posts-blog__pagination-dots {
    font-family: var(--font-accent);
    font-size: 14px;
    color: var(--primary);
    padding: 0 4px;
}

.post-type-archive-newsletter .card-single .post-data{
    gap: 10px;
}
/* Newsletter archive: style the post date like the category pill in editor picks/cards */
.post-type-archive-newsletter .card-single .post-date,
/* Search results: apply same styling to newsletter cards */
.search-results .card-single.is-newsletter .post-date {
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-family: var(--font-accent);
    border-radius: 999px;
    background: #E9F1EC;
    font-size: 14px;
    padding: 4px 12px;
    letter-spacing: 3%;
}

.posts-blog__pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    text-decoration: none;
    flex-shrink: 0;
}

.posts-blog__pagination-arrow:hover svg path {
    fill: var(--primary);
}

.posts-blog__pagination-arrow.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

@media (max-width: 1440px) {
    .posts-blog {
        padding: 64px 0 96px;
    }

    .posts-blog .block-wrapper {
        margin-bottom: 48px;
    }
}

@media (max-width: 1199px) {
    .content-tabs.style-4 .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .posts-blog {
        padding: 32px 0;
    }

    .posts-blog .block-wrapper {
        margin-bottom: 32px;
    }

    .card-single .post-title {
        font-size: 26px;
    }
}

@media (max-width: 575px) {
    .content-tabs.style-4 .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* home.php */

/* search.php */

.search-results {
    padding: 0 0 120px;
}

.search-results__header {
    padding: 120px 0;
}

.search-results__header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-results__form {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.search-results__input-wrap {
    display: inline-grid;
    font-size: 97px;
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -1%;
    min-width: 60px;
}

.search-results__input-wrap::after {
    content: attr(data-value);
    visibility: hidden;
    white-space: pre;
    grid-area: 1/1;
}

.search-results__input {
    grid-area: 1/1;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    font-size: 97px;
    line-height: 1.12;
    letter-spacing: -1%;
    font-weight: 400;
    font-family: var(--font-heading);
    color: var(--primary);
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    text-align: center;
}

.search-results__input::-webkit-search-cancel-button,
.search-results__input::-webkit-search-decoration {
    -webkit-appearance: none;
}

.search-results__input::placeholder {
    color: var(--primary);
    opacity: 0.4;
}

.search-results__clear {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    transition: opacity .3s ease;
}

.search-results__clear:hover {
    opacity: 0.6;
}

.search-results__tabs {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: center;
    width: max-content;
    min-width: 100%;
    margin: 0 auto;
}

.search-results__tab {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 12px 50px;
    gap: 4px;
    border: 1px solid #D0D5DD;
    background: transparent;
    color: #87A9A4;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease;
    border-top: 1px solid #E9F1EC;
    border-right: 1px solid #E9F1EC;
    border-left: 1px solid #E9F1EC;
    background: #fff;
    border-radius: 0;
    border-bottom: 0;
}

.search-results__tab:hover {
    color: var(--primary);
}

.search-results__tab.is-active {
    color: var(--primary);
    font-weight: 700;
    border-top: 3px solid var(--primary);
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;

}

.search-results__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: flex-start;
}

.search-results__no-results {
    font-size: 18px;
    color: var(--primary);
    padding: 48px 0;
}

.search-results__tabs-wrapper {
    margin-bottom: 32px;
    border-bottom: 1px solid #E9F1EC;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1440px) {
    .search-results {
        padding: 48px 0 96px;
    }
}

@media (max-width: 1199px) {
    .search-results__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-results__input-wrap,
    .search-results__input {
        font-size: 30px;
        letter-spacing: -1%;
    }

    .search-results__tab {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 991px) {
    .search-results {
        padding: 32px 0 64px;
    }

    .search-results__header {
        margin-bottom: 32px;
        padding-bottom: 24px;
        padding-top: 32px;
    }

    .search-results__input-wrap,
    .search-results__input {
        font-size: 54px;
        letter-spacing: -1%;
    }

    .search-results__tab {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 575px) {
    .search-results__grid {
        grid-template-columns: 1fr;
    }
}

/* search.php */

/* single.php */

body.single .related-posts {
    padding: 132px 0;
}

body.single .related-posts h2 {
    border-bottom: 1px solid #C6D7D0;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

@media (max-width:1199px) {
    body.single .related-posts {
        padding: 96px 0;
    }
}

@media (max-width:991px) {
    body.single .related-posts {
        padding: 48px 0;
    }
}

/* ================================
   SINGLE POST — new design
   ================================ */

/* --- Hero --- */

.single-hero {
    background: var(--primary);
    padding: 160px 0 50px;
}

body.has-header-placement .single-hero {
    margin-top: calc(-1 * var(--navbarHeight) + 75px);
}

.single-hero__inner {
    max-width: 878px;
    margin: 0 auto;
}

.single-hero__title-wrap {
    margin-bottom: 32px;
}

.single-hero__title {
    font-family: var(--font-heading);
    font-size: 88px;
    font-weight: 400;
    font-style: normal;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -1%;
    margin: 0;
}

.single-hero__meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.single-hero__meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-hero__sponsor {
    background: #fff;
    border: 1px solid #e9f1ec;
    border-radius: 8px;
    box-shadow: var(--shadow-hero);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 131px;
    overflow: hidden;
    flex-shrink: 0;
}

.single-hero__sponsor-header {
    background: var(--primary);
    width: 100%;
    padding: 8px;
    text-align: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.single-hero__sponsor-body {
    padding: 28px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.single-hero__sponsor-logo {
    max-height: 36px;
    width: auto;
    display: block;
}

.single-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e9f1ec;
    color: var(--primary);
    border-radius: 999px;
    padding: 4px 12px;
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 3%;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.single-cat-pill__icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.single-hero-fullbleed .single-cat-pill__icon {
    filter: brightness(0) invert(1);
}

.single-hero__author {
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -1%;
    margin: 0;
}

.single-hero__author a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single-hero__author strong {
    font-weight: 700;
    letter-spacing: 1%;
}

/* --- Hero Video (inside hero) --- */

.single-hero--has-video {
    padding-bottom: 0;
}

.single-hero__video-wrap {
    margin-top: 50px;
    width: 100%;
    overflow: hidden;
}

.single-hero__video {
    width: 100%;
    height: 560px;
    object-fit: cover;
    display: block;
}

@media (max-width: 1199px) {
    .single-hero__video {
        height: 440px;
    }

    .single-hero__sponsor-body {
        padding: 16px 12px;
    }
}

@media (max-width: 991px) {
    .single-hero__video {
        height: 320px;
    }
}

@media (max-width: 575px) {
    .single-hero__video {
        height: 240px;
    }
}

/* --- Hero Image --- */

.single-hero-image{
    max-width: 1104px;
    margin: 0 auto;
}

.single-hero-image-wrapper {
    position: relative;
    background: #fff;
    border-top: 1px solid var(--primary);
}

.single-hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 357px;
    background: var(--primary);
    pointer-events: none;
}

.single-hero-image__img {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    height: 683px;
    object-fit: cover;
    object-position: top;
}

.single-hero-image__caption {
    position: relative;
    z-index: 1;
    font-size: 15px;
    font-weight: 400;
    color: #759e91;
    line-height: 1.46;
    padding-top: 8px;
    margin: 0;
}

/* --- Single placements (header / sidebar embeds) --- */

.single-placement {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.single-placement-wrap--header {
    position: relative;
    z-index: 1;
    width: 100%;
}

.single-placement--header {
    background-color: #D1D1D1;
    margin-bottom: 0;
    padding: 50px 0;
}

.single-placement--sidebar {
    margin-top: 16px;
}

.single-placement iframe,
.single-placement img {
    max-width: 100%;
    height: auto;
}

/* --- Article Content --- */

.single-article {
    background: #fff;
    padding: 50px 0 100px;
}

.single-article__wrap {
    max-width: 1066px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.single-article__inner {
    flex: 0 0 616px;
    min-width: 0;
}

.single-article__sidebar {
    flex: 0 0 300px;
    width: 300px;
    position: sticky;
    top: calc(var(--navbarHeight) + 20px);
}

body.admin-bar .single-article__sidebar {
    top: calc(var(--navbarHeight) + 32px + 20px);
}

@media screen and (max-width: 600px) {
    body.admin-bar .single-article__sidebar {
        top: calc(var(--navbarHeight) + 46px + 20px);
    }
}

/* --- Sidebar Share --- */

.sidebar-share {
    margin-bottom: 16px;
    position: relative;
}

.sidebar-share__btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    position: relative;
}

.sidebar-share__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #F9F8F6;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    height: 46px;
}

.sidebar-share__btn:hover {
    background: #e4e4e0;
}

.sidebar-share__icon--close {
    display: none;
}

.sidebar-share--open .sidebar-share__icon--share {
    display: none;
}

.sidebar-share--open .sidebar-share__icon--close {
    display: inline-flex;
}

.sidebar-share__dropdown {
    display: none;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: calc(50% - 4px);
    z-index: 10;
    background: #E9F1EC;
}

.sidebar-share__dropdown.is-open {
    display: flex;
}

.sidebar-share__social {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid #C6D7D0;
    transition: background 0.2s;
}

.sidebar-share__social:last-child {
    border-bottom: none;
}

.sidebar-share__social:hover {
    background: rgba(16, 84, 73, 0.07);
}

button.sidebar-share__social {
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

/* --- Sidebar Medical Review --- */

.sidebar-medical {
    background: #F9F8F6;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-medical__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    color: var(--primary);
}

.sidebar-medical__title {
    font-family: var(--font-accent);
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
}

.sidebar-medical__divider {
    height: 1px;
    background: #E9F1EC;
}

.sidebar-medical__body {
    padding: 24px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark-grey);
}

.sidebar-medical__body p {
    margin: 0;
}

.sidebar-medical__name {
    color: var(--primary);
    font-weight: 700;
}

/* --- Author Archive --- */

.author-archive {
    padding: 80px 0 160px;
}

.author-archive__profile {
    display: grid;
    grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    max-width: 888px;
    margin: 0 auto 64px;
}

.author-archive__avatar {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
}

.author-archive__name {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: clamp(32px, 6vw, 54px);
    font-weight: 400;
    line-height: 1.05;
    color: var(--primary);
}

.author-archive__title {
    margin: 0 0 24px;
    font-family: var(--font-accent);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--primary);
}

.author-archive__content {
    min-width: 0;
}

.author-archive__bio {
    max-width: 560px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary);
}

.author-archive__bio p {
    margin: 0;
}

.author-archive__bio p + p {
    margin-top: 12px;
}

.author-archive__social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    width: 100%;
    max-width: 560px;
}

.author-archive__social li {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.author-archive__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #F9F8F6;
    border-radius: 8px;
    color: var(--primary);
    text-decoration: none;
    transition: background 0.2s;
}

.author-archive__social a:hover {
    background: #E9F1EC;
}

.author-archive__social svg {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.author-archive__social svg path {
    fill: currentColor;
}

.author-archive .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.author-archive__posts {
    border-top: 1px solid #C6D7D0;
    padding-top: 24px;
}

@media (max-width: 991px) {
    .author-archive {
        padding: 48px 0 100px;
    }

    .author-archive__profile {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 560px;
    }
}

/* --- Author Box --- */

.author-box-divider {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid #C6D7D0;
}

.author-box {
    padding: 32px 40px;
    background: #F9F8F6;
    border-radius: 8px;
    text-align: center;
}

.author-box__byline {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--primary);
}

.author-box__byline strong {
    font-family: var(--font-accent);
    font-weight: 700;
}

.author-box__byline a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.author-box__excerpt {
    display: none;
    margin: 8px auto 0;
    max-width: 520px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--dark-grey);
}

@media (min-width: 769px) {
    .author-box__excerpt {
        display: block;
    }
}

.author-box__social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.author-box__social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.author-box__social a:hover {
    opacity: 0.7;
}

.author-box__social svg path {
    fill: var(--primary);
}

/* --- Related Posts --- */

.single-related {
    background: #fff;
    padding: 80px 32px 132px;
}

.single-related__inner {
    max-width: 1376px;
    margin: 0 auto;
}

.single-related__heading {
    font-family: var(--font-heading);
    font-size: 71px;
    font-weight: 400;
    font-style: normal;
    color: var(--primary);
    line-height: 1.5;
    letter-spacing: -1%;
    margin: 0 0 24px;
    white-space: nowrap;
}

.single-related__liner {
    height: 1px;
    background: #c6d7d0;
    margin-bottom: 24px;
}

.single-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

.single-related__grid > * {
    min-width: 0;
}

.single-related .card-single {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    gap: 24px;
}

.single-related .card-single .post-thumb {
    width: 100%;
    aspect-ratio: 326 / 361;
    overflow: hidden;
    position: relative;
}

.single-related .card-single .post-video::before,
.single-related .card-single .post-thumb::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.00) 28.18%);
}

.single-related .card-single .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 326 / 361;
    transition: transform var(--duration-media) var(--ease-out-soft);
}

.single-related .card-single:hover .post-thumb img {
    transform: scale(var(--media-zoom));
}

.single-related .post-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.single-related .post-title {
    margin: 0;
    color: var(--black);
}

.single-related .post-excerpt {
    margin: 0;
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-related .post-cat {
    display: flex;
    align-items: center;
}

.single-related .post-category {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-family: var(--font-accent);
    border-radius: 999px;
    background: #E9F1EC;
    font-size: 14px;
    padding: 4px 12px;
    letter-spacing: 3%;
}

.single-related .card-single.has-video .post-category {
    color: #fff;
    background: rgba(233, 241, 236, 0.25);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
}

.single-related .category-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.single-related .card-single.has-video .post-category .category-icon {
    filter: brightness(0) invert(1);
}

.single-related .card-single.has-video {
    position: relative;
}

.single-related .post-video {
    position: relative;
    width: 100%;
}

.single-related .post-video img,
.single-related .post-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-related .post-video,
.single-related .post-video video,
.single-related .card-single.has-video .post-data {
    aspect-ratio: 326 / 449;
}

.single-related .card-single.has-video .post-data {
    position: absolute;
    inset: 0;
    justify-content: flex-end;
    padding: 24px;
    z-index: 2;
}

.single-related .card-single.has-video .post-title {
    color: #fff;
}

/* --- Responsive --- */

@media (max-width: 1400px) {
    .single-hero {
        padding: 140px 160px 50px;
    }

    .single-hero__title {
        font-size: 72px;
    }
}

@media (max-width: 1199px) {
    .single-hero {
        padding: 120px 80px 40px;
    }

    .single-hero__title {
        font-size: 56px;
    }

    .single-hero__title-wrap {
        margin-bottom: 80px;
    }

    .single-hero-image {
        padding: 0 80px;
    }

    .single-hero-image__img {
        height: 500px;
    }

    .single-hero-image::before {
        height: 280px;
    }

    .single-related__heading {
        font-size: 52px;
    }

    .single-related__grid {
        display: flex;
        flex-direction: row;
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        align-items: stretch;
        margin-right: -32px;
        padding-right: 32px;
        scrollbar-width: none;
    }

    .single-related__grid::-webkit-scrollbar {
        display: none;
    }

    .single-related__grid > .card-single {
        flex: 0 0 min(280px, 78vw);
        scroll-snap-align: start;
        min-width: 0;
        align-self: stretch;
    }

    .single-related__grid > .card-single.has-video {
        flex: 0 0 min(300px, 85vw);
    }

    .single-related .card-single.has-video .post-video,
    .single-related .card-single.has-video .post-data {
        aspect-ratio: auto;
    }

    .single-related .card-single.has-video .post-video {
        flex: 1;
        height: 100%;
        min-height: 100%;
    }

    .single-article__wrap {
        padding: 0 40px;
        gap: 16px;
    }

    .single-article__inner {
        flex: 1 1 0;
        min-width: 0;
    }

    .single-article__sidebar {
        flex: 0 0 260px;
        width: 260px;
    }
}

@media (max-width: 991px) {
    .single-hero {
        padding: 120px 0 36px;
    }

    .single-article {
        padding: 60px 0 20px;
    }

    .single-hero__title-wrap {
        margin-bottom: 24px;
    }

    .single-hero__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .single-hero__meta-left {
        flex-wrap: wrap;
    }

    .single-hero__title {
        font-size: 44px;
    }

    .single-hero-image {
        padding: 0;
    }

    .single-hero-image__img {
        height: 380px;
    }

    .single-hero-image::before {
        height: 220px;
    }

    .single-related__heading {
        font-size: 40px;
        white-space: normal;
    }

    .single-related .post-excerpt {
        display: none;
    }

    .single-related__grid {
        margin-right: -24px;
        padding-right: 24px;
    }

    .single-article__wrap {
        flex-direction: column;
        padding: 0 40px;
        gap: 16px;
    }

    .single-article__inner {
        flex: none;
        width: 100%;
    }

    .single-article__sidebar {
        flex: none;
        width: 100%;
        position: static;
    }

    .sidebar-share__btns {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .single-hero {
        padding: 100px 0 30px;
    }

    .single-hero__title-wrap {
        margin-bottom: 16px;
    }

    .single-hero__title {
        font-size: 32px;
    }

    .single-hero-image {
        padding: 0 0 16px;
    }

    .single-hero-image__img {
        height: 260px;
    }

    .single-hero-image::before {
        height: 160px;
    }

    .single-related {
        padding: 48px 16px 64px;
    }

    .single-related__heading {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .single-related__liner {
        display: none;
    }

    .single-related__grid {
        margin-right: -16px;
        scroll-snap-type: x mandatory;
    }

    .single-related__grid > .card-single,
    .single-related__grid > .card-single.has-video {
        flex: 0 0 100%;
    }

    .single-article__wrap {
        padding: 0 20px;
        gap: 16px;
    }
}

/* --- Hero Fullbleed (template 2) --- */

.single-hero-fullbleed {
    position: relative;
    height: calc(100vh - var(--headerPlacementHeight));
    min-height: 800px;
    max-height: 1200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.admin-bar .single-hero-fullbleed {
    min-height: calc(844px + var(--navbarHeight) + 32px);
    margin-top: calc(-1 * var(--navbarHeight) - 32px);
}

@media screen and (max-width: 600px) {
    body.admin-bar .single-hero-fullbleed {
        min-height: calc(500px + var(--navbarHeight) + 46px);
        margin-top: calc(-1 * var(--navbarHeight) - 46px);
    }
}

.single-hero-fullbleed__bg {
    position: absolute;
    inset: 0;
}

.single-hero-fullbleed__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-hero-fullbleed::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0) 21.14%),
        linear-gradient(115deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 43.38%, rgba(0, 0, 0, 0) 53.93%),
        linear-gradient(90deg, rgba(21, 21, 21, 0.35) 0%, rgba(21, 21, 21, 0.35) 100%);
    pointer-events: none;
    z-index: 1;
}

.single-hero-fullbleed .container {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.single-hero-fullbleed__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex: 1;
    gap: 24px;
    padding-top: calc(var(--navbarHeight) + 64px);
    padding-bottom: 56px;
}

body.admin-bar .single-hero-fullbleed__inner {
    padding-top: calc(var(--navbarHeight) + 64px);
}

@media screen and (max-width: 600px) {
    body.admin-bar .single-hero-fullbleed__inner {
        padding-top: calc(var(--navbarHeight) + 46px + 64px);
    }
}

.single-hero-fullbleed__text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    max-width: 740px;
}

.single-hero-fullbleed__title {
    font-family: var(--font-heading);
    font-size: 78px;
    font-weight: 400;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -1%;
    margin: 0;
}

.single-hero-fullbleed__meta {
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -1%;
    margin: 0;
}

.single-hero-fullbleed__meta a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 2px;
}

.single-hero-fullbleed__meta strong {
    font-weight: 700;
    letter-spacing: 1%;
}

.single-hero-fullbleed__right {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-shrink: 0;
    align-self: flex-end;
}

.single-hero-fullbleed__sponsor {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-hero);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 131px;
    overflow: hidden;
}

.single-hero-fullbleed__sponsor-header {
    background: var(--primary);
    width: 100%;
    padding: 8px;
    text-align: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    border-bottom: 2px dashed #fff;
}

.single-hero-fullbleed__sponsor-body {
    padding: 28px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.single-hero-fullbleed__sponsor-logo {
    max-height: 36px;
    width: auto;
    display: block;
}

.single-cat-pill--glass {
    background: rgba(233, 241, 236, 0.25);
    color: #fff;
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
}

@media (max-width: 1199px) {
    .single-hero-fullbleed__inner {
        padding-top: calc(var(--navbarHeight) + 48px);
        padding-bottom: 48px;
    }

    .single-hero-fullbleed__title {
        font-size: 60px;
    }
}

@media (max-width: 991px) {
    .single-hero-fullbleed {
        min-height: calc(600px + var(--navbarHeight));
    }

    .single-hero-fullbleed__inner {
        padding-top: calc(var(--navbarHeight) + 32px);
        padding-bottom: 40px;
        flex-wrap: wrap;
    }

    .single-hero-fullbleed__text {
        justify-content: start;
        max-width: 100%;
    }

    .single-hero-fullbleed__title {
        font-size: 44px;
        margin-bottom: 16px;
    }

    .single-hero-fullbleed__right {
        width: 100%;
        flex-direction: row-reverse;
        justify-content: space-between;
    }
}

@media (max-width: 575px) {
    .single-hero-fullbleed {
        min-height: calc(520px + var(--navbarHeight));
    }

    .single-hero-fullbleed__inner {
        padding-top: calc(var(--navbarHeight) + 24px);
        padding-bottom: 32px;
    }

    .single-hero-fullbleed__title {
        font-size: 32px;
    }
}

/* --- Hero Fullbleed end --- */

.single-article__inner,
.single-article__content-partial{
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 17px;
    font-family: var(--font-sans);
    letter-spacing: 0;
}

.wp-block-post-content strong,
.single-article__inner strong,
.wp-block-post-content b,
.single-article__inner b {
    font-weight: 700;
}

.wp-block-post-content p:empty,
.single-article__inner p:empty {
    display: none;
}

.page .main p a,
.single .wp-block-post-content a,
.single-article__inner a {
    text-decoration: underline;
    color: var(--primary);
}

.page .main p a:hover,
.single .wp-block-post-content a:hover,
.single-article__inner a:hover {
    opacity: 0.8;
}

.wp-block-post-content ul,
.single-article__inner ul,
.wp-block-post-content ol,
.single-article__inner ol {
    margin: 0;
    padding-left: 16px;
    color: var(--dark-grey);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wp-block-post-content li::marker,
.single-article__inner li::marker {
    color: var(--primary);
}

.wp-block-post-content blockquote,
.single-article__inner blockquote,
.quote blockquote {
    padding: 54px 32px 54px 90px;
    border-left: solid 4px;
    color: var(--dark-grey);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 54px;
}

.wp-block-post-content .wp-block-embed__wrapper blockquote,
.single-article__inner .wp-block-embed__wrapper blockquote {
    padding: 0;
    border: 0;
    color: inherit;
}

.wp-block-post-content blockquote.has-secondary-6-background-color,
.single-article__inner blockquote.has-secondary-6-background-color,
.quote blockquote.has-secondary-6-background-color {
    border-left-color: var(--secondary)
}

.wp-block-post-content blockquote.has-secondary-7-background-color,
.single-article__inner blockquote.has-secondary-7-background-color,
.quote blockquote.has-secondary-7-background-color {
    border-left-color: var(--primary)
}

.wp-block-post-content hr,
.single-article__inner hr {
    width: 100%;
    border-top-width: 1px;
}

.wp-block-image :where(figcaption) {
    color: #759E91;
    font-size: 15px;
    margin-top: 8px;
    margin-bottom: 0;
}

.wp-block-post-content h1,
.single-article__inner h1,
.wp-block-post-content h2,
.single-article__inner h2,
.wp-block-post-content h3,
.single-article__inner h3,
.wp-block-post-content h4,
.single-article__inner h4,
.wp-block-post-content h5,
.single-article__inner h5,
.wp-block-post-content h6,
.single-article__inner h6 {
    font-weight: 400;
    line-height: 1.08;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    margin-top: 16px;
}

.wp-block-post-content h1,
.single-article__inner h1 {
    font-size: 62px;
    letter-spacing: -1%;
}

.wp-block-post-content h2,
.single-article__inner h2 {
    font-size: 46px;
    letter-spacing: -1%;
}

.wp-block-post-content h3,
.single-article__inner h3 {
    font-size: 40px;
    letter-spacing: -1%;
}

.wp-block-post-content h4,
.single-article__inner h4 {
    font-size: 36px;
    letter-spacing: -1%;
}

.wp-block-post-content h5,
.single-article__inner h5 {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 3%;
    font-weight: 700;
    line-height: 1.5;
    font-family: var(--font-accent);
}

.wp-block-post-content h6,
.single-article__inner h6 {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 3%;
    font-weight: 700;
    line-height: 1.5;
    font-family: var(--font-accent);
}

.wp-block-post-content.is-root-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Gated newsletter (inline paywall) --- */

.single-article__inner .newsletter-cta-gated,
.wp-block-post-content .newsletter-cta-gated {
    position: relative;
    z-index: 2;
    margin-top: -300px;
    margin-bottom: 40px;
    padding-top: 300px;
}

.single-article__inner .newsletter-cta-gated .newsletter-cta__form-title,
.wp-block-post-content .newsletter-cta-gated .newsletter-cta__form-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    color: var(--primary);
}

.single-article__inner .newsletter-cta-gated .newsletter-cta__form-title::before,
.wp-block-post-content .newsletter-cta-gated .newsletter-cta__form-title::before {
    content: '';
    flex-shrink: 0;
    width: 17px;
    height: 21px;
    background: url("data:image/svg+xml,%3Csvg width='17' height='21' viewBox='0 0 17 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.31689 8.55376H2.67628V3.16766C2.67628 1.42297 4.07958 0 5.80015 0H11.1998C12.9194 0 14.3237 1.42297 14.3237 3.16766V8.55376C15.1012 8.55376 15.7181 8.62129 16.3214 9.24787C16.7405 9.67486 17 10.2607 17 10.9032V18.6506C17 19.2951 16.7395 19.8819 16.3184 20.3089L16.3194 20.3099C15.8993 20.7359 15.3205 21 14.6831 21H2.31694C1.04488 21 0 19.9405 0 18.6506V10.9032C0 9.61327 1.04483 8.55376 2.31689 8.55376ZM4.69748 8.55376H12.3025V3.16766C12.3025 2.55497 11.804 2.04956 11.1998 2.04956H5.80018C5.19596 2.04956 4.69753 2.554 4.69753 3.16766L4.69748 8.55376Z' fill='%23105449'/%3E%3C/svg%3E") no-repeat center / contain;
}

.single-article__inner .newsletter-cta-gated p {
    color: var(--primary);
}

.single-article__inner .newsletter-cta-gated::before,
.wp-block-post-content .newsletter-cta-gated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 80%);
    pointer-events: none;
}

@media (max-width:1199px) {

    .wp-block-post-content blockquote,
    .single-article__inner blockquote,
    .quote blockquote {
        padding: 24px;
        border-width: 3px;
        gap: 24px;
    }

    .wp-block-post-content h1,
    .single-article__inner h1 {
        font-size: 42px;
    }

    .wp-block-post-content h2,
    .single-article__inner h2 {
        font-size: 38px;
    }

    .wp-block-post-content h3,
    .single-article__inner h3 {
        font-size: 32px;
    }

    .wp-block-post-content h4,
    .single-article__inner h4 {
        font-size: 24px;
    }

    .wp-block-post-content h5,
    .single-article__inner h5 {
        font-size: 20px;
    }

    .wp-block-post-content h6,
    .single-article__inner h6 {
        font-size: 16px;
    }

}

@media (max-width: 991px) {
    .text-block h1 {
        font-size: 54px;
    }

    .wp-block-post-content h1,
    .single-article__inner h1,
    .wp-block-post-content h2,
    .single-article__inner h2,
    .wp-block-post-content h3,
    .single-article__inner h3,
    .wp-block-post-content h4,
    .single-article__inner h4,
    .wp-block-post-content h5,
    .single-article__inner h5,
    .wp-block-post-content h6,
    .single-article__inner h6 {
        margin-bottom: 0px;
        margin-top: 8px;
    }
}

/* Infinite Scroll */
#infinite-posts-container {
    width: 100%;
}

#infinite-posts-container .infinite-post:not(:first-child) .single-hero {
    padding-top: 100px;
}

@media (max-width: 575px) {
    #infinite-posts-container .infinite-post:not(:first-child) .single-hero {
        padding-top: 40px;
    }
}

.load-more-wrap {
    text-align: center;
    margin: 40px 0;
    display: none;
}

.load-more-btn {
    background: #105449;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.load-more-btn:hover {
    opacity: 0.9;
}
