
/* Single Post */
.single-post-container {
    --container: 700px !important;
}
body.single-post h1.entry-title {
    font-size: var(--wp--preset--font-size--large);
    line-height: 1.25em;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    text-wrap: balance;
}
@media (max-width: 960px) {
    body.single-post h1.entry-title {
        font-size: 30px;
    }
}
body.single-post .entry-content h2 {
    font-size: 24px;
    line-height: 1.3em;
    margin-top: 30px;
    text-wrap: balance;
}
body.single-post .entry-content h3 {
    font-size: 20px;
    line-height: 1.4em;
    margin-top: 30px;
    text-wrap: balance;
}
body.single-post .entry-content p {
    font-size: 18px;
    line-height: 1.5em;
}


/* Author */
.author-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-photo {
    flex-shrink: 0;
    position: relative;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    background: linear-gradient(to bottom right, #01B7E1, #3873FF);
}
.author-photo > img {
    position: absolute;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    height: calc(100% - 4px);
    width: calc(100% - 4px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to bottom, #ffffff, rgb(255 255 255 / 65%));
}
.author-name {
    margin-bottom: 3px;
    font-weight: 400;
}
.post-meta {
    display: flex;
    white-space: nowrap;
    flex-wrap: wrap;
    column-gap: 5px;
    font-size: var(--wp--preset--font-size--small);
}
.post-meta a {
    font-weight: 400;
}


/* Actions Bar */
body.single > .wrapper {
    overflow: initial !important;
}
body.single .author-badge {
    margin-bottom: 1.5em;
}
body.single .actions-bar {
    border-bottom: 1px solid var(--custom-2);
    margin-bottom: 2em;
    position: sticky;
    top: 0;
    background-color: var(--nv-site-bg);
    z-index: 3;
}
.actions-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--custom-2);
    padding: 15px 0;
    justify-content: flex-end;
}
.actions-bar .read-time {
    flex: 1;
    color: var(--custom-4);
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.2em;
    cursor: default;
}
.actions-bar .icon {
    width: 24px;
    display: block;
    opacity: 0.4;
}
.actions-bar > div > .icon:hover {
    cursor: pointer;
    opacity: 1;
}



/* Audio player */
.audio-player {
    display: block;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}
.audio-player.visible {
    opacity: 1;
    max-height: 160px;
}
.audio-player .audio-player__container {
    border-top: 1px solid rgba(83, 138, 239, .2);
    background: linear-gradient(180deg, rgba(224, 230, 248, .4) 0%, rgba(255, 255, 255, .4) 100%);
    padding: 16px;
    border-radius: 32px;
    margin-bottom: 1rem;
}
.audio-player .audio-player__wrapper {
    display: flex;
    box-shadow: 0 100px 80px #0511440d;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}
.audio-player .play {
    padding: 0;
    flex-basis: 20%;
    min-width: 80px;
    background-color: transparent !important;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.audio-player__body {
    width: 100%;
    padding: 1rem 1rem 1rem 0;
}
.audio-player .wave {
    min-height: 36px;
}
.audio-player .controls {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    column-gap: 1rem;
}
.audio-player .volume {
    display: flex;
    align-items: center;
    gap: 7px;
}
.audio-player .volume img {
    cursor: pointer;
}
.audio-player .timecode {
    white-space: nowrap;
}
@media (min-width: 576px) {
    .audio-player .wave {
        margin-bottom: 1rem;
    }
}
@media (max-width: 575px) {
    .audio-player .volume {
        display: none;
    }
    .audio-player .controls {
        justify-content: end;
    }
}


/* Share Tooltip */
.share-tooltip > a {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: var(--custom-4);
}
.share-tooltip > .social-share {
    margin-top: 15px;
}
.share-tooltip .copy-link {
    border-bottom: 1px solid var(--custom-2);
    padding-bottom: 12px;
}
.share-tooltip > a:hover img {
    opacity: 1;
}
.share-tooltip > a:hover {
    color: var(--nv-text-color);
}


/* Bookmarks */
.bookmark.bookmarked .icon {
    opacity: 1;
}
.bookmark.bookmarked svg.icon [fill="currentColor"] {
    fill: white;
}
.bookmark.bookmarked svg.icon [fill="white"] {
    fill: var(--nv-secondary-accent);
}


/* Post Template Views */
article > .share-tooltip {
    display: none;
}
article .post-content-inner > a {
    display: block;
    color: var(--nv-text-color);
}
article .article-content-col {
    position: relative;
}
article .post-content-inner > a:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
article .post-content-inner .actions-bar > .bookmark,
article .post-content-inner .actions-bar > .share,
article .post-content-inner .author-badge a {
    z-index: 1;
    position: relative;
}
article .post-content-inner .author-photo {
    width: 32px;
    height: 32px;
}
article .post-content-inner .author-badge {
    gap: 7px;
    margin-bottom: 1em;
}
article .post-excerpt,
article .blog-entry-title {
    text-wrap: balance;
}


/* Post Card */
article.layout-card .nv-post-thumbnail-wrap {
    position: relative;
    flex-shrink: 0;
}
article.layout-card .nv-post-thumbnail-wrap img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
article.layout-card .article-content-col {
    overflow: visible !important;
    position: relative;
    --borderradius: 16px;
    --cardbgcolor: rgb(255, 255, 255);
    --cardboxshadow: rgba(27, 27, 27, 0.04) 0px 8px 16px 0px, rgba(27, 27, 27, 0.04) 0px 2px 8px 0px;
    transform: translateY(0);
    transition: transform 200ms ease-in-out;
    will-change: transform;
}

article.layout-card .article-content-col:hover,
article.layout-card .article-content-col.tippy-active {
    transform: translateY(-8px);
    --cardboxshadow: rgba(27, 27, 27, 0.02) 0px 2px 32px 0px, rgba(27, 27, 27, 0.12) 0px 16px 32px 0px;
}
article.layout-card .post-content-inner {
    padding: 0 1.5em;
}
article.layout-card .post-content-inner .post-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}


/* Post landscape card */
@media (min-width: 576px) {
    article.landscape .article-content-col .content {
        flex-direction: row-reverse;
        justify-content: space-between;
    }
}
article.landscape .nv-post-thumbnail-wrap {
    margin-bottom: 0;
    overflow: hidden;
    border-top-right-radius: var(--borderradius);
    border-bottom-right-radius: var(--borderradius);
    flex-basis: 230px;
}
article.landscape .post-content-inner .post-excerpt {
    -webkit-line-clamp: 2;
}
article.landscape .post-content-inner {
    padding-top: 1.5em;
    width: 100%;
}


/* Post portrait card */
article.type-post.portrait .post-content-inner {
    display: grid;
    grid-auto-rows: 1fr auto auto;
    height: 100%;
}
article.type-post.portrait .nv-post-thumbnail-wrap {
    overflow: hidden;
    border-top-right-radius: var(--borderradius);
    border-top-left-radius: var(--borderradius);
    flex-basis: 200px;
}
article.type-post.portrait .post-content-inner .post-excerpt {
    -webkit-line-clamp: 3;
}


/* Post small */
article.small .post-content-inner .author-badge {
    margin-bottom: 7px;
}
article.small .post-content-inner .blog-entry-title {
    --fontsize: 18px;
    --lineheight: 1.4em;
    margin-bottom: 7px;
}
article.small .post-content-inner .date {
    font-size: var(--wp--preset--font-size--small);
}


/* type-page card */
article.type-page.layout-card .article-content-col {
    --cardbgcolor: linear-gradient(60deg, rgb(70 115 255) 0%, rgb(92 179 221) 100%);
    min-height: 200px
}
article.type-page.layout-card .article-content-col > .content {
    align-items: center;
    justify-content: center;
}
article.type-page.layout-card .article-content-col > .content > a {
    color: var(--nv-text-dark-bg);
    text-align: center;
}
article.type-page.layout-card .article-content-col > .content > a:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}


/* type-partner card */
article.type-partner.layout-card a {
    --linkdeco: none;
}
article.type-partner.layout-card .post-content-inner {
    padding-bottom: 10px;
    padding-top: 25px;
    text-wrap: balance;
}
article.type-partner.layout-card .partner-subtitle {
    display: block;
    margin-bottom: 12px;
}
article.type-partner.layout-card .article-content-col {
    --cardbgcolor: var(--nv-light-bg);
}
article.type-partner.layout-card .partner-description {
    color: var(--custom-4);
}
.nv-partner-logo-wrap {
    position: relative;
    min-height: 65px;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.nv-partner-logo-wrap svg {
    display: inline-block;
    max-height: 100%;
}
@media (max-width: 700px) {
    article.type-partner.layout-card {
        --postwidth: 100%;
    }
}


/* Archive Filter */
.filter-container {
    position: relative;
    padding-top: 120px;
    padding-bottom: 200px;
    background: linear-gradient(60deg, rgb(70 115 255) 0%, rgb(92 179 221) 100%);
    color: var(--nv-text-dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.filter-container > .container {
    position: relative;
    z-index: 1;
    padding-top: 4em;
    padding-bottom: 4em;
}
.filter-container h1 {
    font-size: var(--wp--preset--font-size--large);
    font-weight: 300;
    margin-bottom: 25px;
    text-wrap: balance;
}
.filter-cover {
    position: absolute;
    width: 100%;
    height: 150px;
    left: 0;
    bottom: 0;
    object-fit: contain;
}
@media (min-width: 1280px) {
    .filter-container {
        min-height: 60vh;
    }    
}
@media (max-width: 1279px) {
    .filter-cover {
        height: 100px;
    }
    .filter-container {
        padding-bottom: 100px;
    }
}
@media (max-width: 575px) {
    .filter-cover {
        height: 50px;
    }
    .filter-container {
        padding-top: 70px;
        padding-bottom: 30px;
    }
}
.waves > use {
    /* Increased base duration from 50s */
    animation: move-forever 100s cubic-bezier(.55, .5, .45, .5) infinite;
}
.waves > use:nth-child(1) {
    animation-delay: -4s;
    /* Increased duration from 14s */
    animation-duration: 28s;
}
.waves > use:nth-child(2) {
    animation-delay: -6s;
    /* Increased duration from 20s */
    animation-duration: 40s;
}
.waves > use:nth-child(3) {
    animation-delay: -8s;
    /* Increased duration from 26s */
    animation-duration: 52s;
}
.waves > use:nth-child(4) {
    animation-delay: -10s;
    /* Increased duration from 40s */
    animation-duration: 80s;
}
@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% { 
        transform: translate3d(85px, 0, 0);
    }
}

.search-input {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}
.search-input input[type="text"] {
    padding-left: 50px;
    padding-right: 25px;
    width: 100%;
    font-size: 16px;
    height: 60px;
    border-radius: 30px;
    border: 2px solid rgba(27, 27, 27, 0.16);
}
.filter-fields {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1em;
}
.filter-toggle {
    cursor: pointer;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 400;
    letter-spacing: .5px;
    font-size: 18px;
}

/* Search icons animation */
.search-input .magnifier-icon {
    position: absolute;
    left: 18px;
    transition: opacity 0.3s ease, transform 0.5s ease;
    opacity: 1;
    transform: scale(1);
    transform-origin: center;
}
.search-input .spinner-icon {
    position: absolute;
    left: 18px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
    transform-origin: center;
}
.search-input .spinner-icon svg {
    display: block;
    animation: rotate 0.7s linear infinite;
}
.search-input .spinner-icon svg .path {
    stroke-linecap: round;
    stroke-dasharray: 80;
    stroke-dashoffset: 0;
}
@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}
.search-input.searching .magnifier-icon {
    opacity: 0;
    transform: scale(0.5);
}
.search-input.searching .spinner-icon {
    opacity: 1;
    transform: scale(1);
}


/* Live search results */
.filter-results-wrapper > .posts-wrapper:empty {
    margin-bottom: 0;
}
.filter-results-wrapper > .results-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2em;
    margin-bottom: 3em;
}
.filter-results-wrapper .results-message > p {
    margin-bottom: 0;
}
.filter-results-wrapper .results-message > p.success strong {
    font-weight: 500;
}
.filter-results-wrapper.has-results ~ .posts-wrapper {
    display: none;
}


/* Filter form */
#post-filter-form label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    padding: 7px 10px;
    box-shadow: 0 0 0 0.07em var(--custom-2);
    border-radius: 32px;
}
#post-filter-form .topics-wrapper label {
    margin-bottom: 12px;
}
#post-filter-form label input[type="checkbox"]:checked {
    border-color: var(--nv-primary-accent);
}
#post-filter-form .filter-row > div {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 2em;
}
#post-filter-form .topics-wrapper > .topic-group {
    flex-basis: calc(33.33% - 0.67em); /* rounded to 0.67 */
}
@media (max-width: 959px) {
    #post-filter-form .topics-wrapper > .topic-group {
        flex-basis: calc(50% - 1em);
    }    
}
@media (max-width: 600px) {
    #post-filter-form .topics-wrapper > .topic-group {
        flex-basis: auto;
    }    
}
#post-filter-form .filter-row > div strong {
    margin-bottom: 1em;
    display: block;
}
#post-filter-form h3 {
    margin-bottom: 20px;
}
#post-filter-form .wp-block-buttons {
    gap: 1.5em;
    white-space: nowrap;    
}
@media (min-width: 576px) {
    #post-filter-form {
        padding-bottom: 4em;
    }
    #post-filter-form .wp-block-buttons {
        padding: 1.5em 2em;
        flex-wrap: nowrap;
        background-color: var(--nv-light-bg);
        justify-content: center;
        border-top-right-radius: 32px;
        border-top-left-radius: 32px;
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }
}
@media (max-width: 575px) {
    #post-filter-form .wp-block-buttons > * {
        flex: 1;
        text-align: center;
    }
}
a.clear-all {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--nv-text-color) !important;
}


/* Active filters */
.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
}
.active-filters > .filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px 7px 13px;
    box-shadow: 0 0 0 0.07em var(--custom-2);
    border-radius: 32px;
}
.active-filters > .filter-tag svg {
    display: block;
    fill: var(--nv-site-bg);
    background-color: var(--nv-c-2);
    border-radius: 50%;
}
.active-filters a.clear-all {
    font-weight: 400;
}


/* Number pagination */
ul.page-numbers {
    justify-content: center;
    gap: 1em;
}
.nv-index-posts > ul.page-numbers > li > * {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    padding: 0;
    height: 45px;
    width: 45px;
    font-weight: 400;
    margin: 0;
}
.nv-index-posts > ul.page-numbers > li > .next,
.nv-index-posts > ul.page-numbers > li > .prev {
    width: auto;
    padding: 0 25px;
}



/* Sign Popup */
.sign-popup {
    text-align: center;
    --formfieldfontsize: var(--wp--preset--font-size--medium);
    text-wrap: balance;
}
.sign-popup .tingle-modal-box {
    max-width: 670px;
}
.sign-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 3rem auto;
}
.sign-options .wp-block-button__link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 18px;
}
.sign-options .wp-block-button__link:after {
    content: "";
    display: block;
}
.sign-options .wp-block-button__link:after,
.sign-options .wp-block-button__link > img {
    width: 22px;
}
.toggle-sign {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.toggle-sign span {
    color: var(--nv-secondary-accent);
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.tingle-modal p.legal {
    font-size: var(--wp--preset--font-size--small);
    font-weight: 400;
    color: var(--custom-4);
    margin-top: 2rem;
}
.tingle-modal p.legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sign-popup form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
    margin-top: 50px;
    margin-bottom: 35px;
}
.sign-popup form .floating-label-field {
    max-width: 330px;
    width: 100%;
}
.sign-popup form .floating-label-field label {
    right: 0; /* centered */
    font-size: var(--wp--preset--font-size--medium);
}
.sign-popup form input {
    text-align: center;
    width: 100%;
    border-image: linear-gradient(to right, transparent, var(--formfieldbordercolor), transparent);
    border-image-slice: 1;
}


#google-sign-up,
#google-sign-in,
#facebook-sign-up,
#facebook-sign-in {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(100%);
}
