/*BLOG HOME*/

/*cards*/
.blog-home-post-image {
    min-width: 30%;
}

.wp-block-post:nth-child(3n + 1) figure {
    border-right: 6px solid var(--primary-md);
}
.wp-block-post:nth-child(3n + 2) figure {
    border-right: 6px solid var(--primary-lt);
}
.wp-block-post:nth-child(3n) figure {
    border-right: 6px solid var(--accent-1);
}

.blog-home-post-content {
    width: 100%;
}
.post-date-link a {
    display: block;
    width: 100%;

    text-decoration: none;
}

.blog-home-post {
    align-items: stretch;
}
.blog-home-post-content {
    justify-content: center;
}

.blog-home-post .wp-block-post-excerpt__more-link {
    display: none;
}

a.blog-home-post-read-more {
    transition: all 0.2s ease;
}
a.blog-home-post-read-more:hover {
    color: var(--primary-btn-text) !important;
    background-color: var(--primary-lt) !important;

    transition: all 0.2s ease;
}

.post-title-link a {
    display: block;
    width: 100%;

    transition: all 0.2s ease;
}
.post-title-link a:hover {
    color: var(--primary-lt);

    transition: all 0.2s ease;
}

/*pagination*/
nav.wp-block-query-pagination a {
    text-decoration: none;
}
nav.wp-block-query-pagination a span span {
    padding: 10px;
    background: var(--primary-dk);
    border-radius: 10px;
}
nav.wp-block-query-pagination a span span::after {
    color: var(--white);
    opacity: 1 !important;
    text-decoration: none;
}

.wp-block-query-pagination-numbers {
    display: flex;
    gap: 10px;
}
.wp-block-query-pagination-numbers .page-numbers {
    padding: 10px 15px;
    background: var(--primary-dk);
    border: 2px solid var(--primary-dk);
    border-radius: 10px;
    color: var(--white);
}
.wp-block-query-pagination-numbers .page-numbers.current {
    background: var(--white);
    border: 2px solid var(--accent-1);
    color: var(--primary-dk);
}

.wp-block-post > .wp-block-group .wp-block-group:nth-child(2) h2 {
    letter-spacing: var(--letter-spacing-lg) !important;
}

/*BLOG SINGLE*/

.single-post .wp-block-post-featured-image img {
    height: 50vh;
    object-fit: cover;
}

.single-post h2 {
    margin: 20px 0 10px !important;
    letter-spacing: var(--letter-spacing-lg) !important;
    color: var(--camp-md);
}
.single-post h3 {
    margin: 10px 0 5px !important;
    letter-spacing: var(--letter-spacing-lg) !important;
    color: var(--camp-md);
}

/*toc*/
.single-post-row {
    align-items: start;
}

.js-toc {
    top: 170px;
    min-width: 25%;
}
.js-toc.is-hidden {
    display: none !important;
}

.single-post .js-toc h2 {
    letter-spacing: var(--letter-spacing-sm) !important;
}

h2.single-post-toc-header {
    margin: 10px 0 10px 0 !important;
    color: var(--white);
}

.wp-block-post-content h2,
.wp-block-post-content h3 {
    scroll-margin-top: 80px;
}

ol.toc-list,
ol.toc-sublist {
    margin: 0;
    list-style: none;
}

nav.toc-nav {
    margin: 15px 0 !important;
}

ol.toc-list {
    padding: 0;
}
ol.toc-sublist {
    padding-left: 15px;
}

li.toc-item {
    margin-bottom: 8px;
}
.toc-sublist li.toc-item {
    margin: 3px 0;
}

li.toc-item a {
    text-decoration: none;
    color: var(--white);

    transition: all 0.2s ease;
}
li.toc-item a:hover {
    color: var(--primary-lt);

    transition: all 0.2s ease;
}
li.toc-item.toc-h2 a {
    font-size: 20px;
}
li.toc-item.toc-h3 a {
    font-size: 18px;
}

/*post nav buttons*/
.post-navigation-link-previous,
.post-navigation-link-next {
    border-radius: 8px;
}
.post-navigation-link-previous a,
.post-navigation-link-next a {
    display: block;
    font-size: 18px;
    font-weight: 700;
    padding-top: 16px;
    padding-right: 32px;
    padding-bottom: 16px;
    padding-left: 32px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
}

/*mobile*/

@media (max-width: 768px) {
    /*BLOG HOME*/
    .wp-block-post > .wp-block-group {
        gap: 0;
    }
    .wp-block-post > .wp-block-group > .wp-block-group:nth-child(1) {
        display: none;
    }
    .wp-block-post > .wp-block-group > .wp-block-group.blog-home-post-content:nth-child(1) {
        display: block;
    }
    .wp-block-post > .wp-block-group > .wp-block-group:nth-child(2) {
        padding: 20px 30px !important;
    }

    .wp-block-post > .wp-block-group > .wp-block-group:nth-child(2) h2 {
        margin-top: 10px;
        font-size: 35px;
    }

    /*BLOG SINGLE*/

    /*text*/
    .single-post .wp-block-post-title {
        font-size: 50px;
    }
    .single-post h2 {
        font-size: 40px;
    }
    .single-post h3 {
        font-size: 32px;
    }

    /*toc*/
    .single-post-row {
        flex-direction: column-reverse;
    }

    .js-toc {
        position: relative;
        top: 0;

        flex-basis: 100%;
        width: 100%;
    }
}
