/* Post Navigation Block Styles */
.post-navigation-block {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    margin: 3rem 0;
    padding: 0;
}

.post-navigation-block:before {
    content: "";
    width: 1px;
    height: 100%;
    background: #D5D7DA;
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
}

@media all and (max-width: 768px) {
    .post-navigation-block:before {
        content: unset;
    }
}

.post-nav-item {
    flex: 1;
    max-width: 48%;
    padding: 0;
}

.post-nav-item:empty {
    display: none;
}

.post-nav-category {
    font-family: var(--fb-global-fb_customtypo_3eeo1--font-family);
    font-size: var(--fb-global-fb_customtypo_3eeo1--font-size);
    font-weight: var(--fb-global-fb_customtypo_3eeo1--font-weight);
    letter-spacing: var(--fb-global-fb_customtypo_3eeo1--font-letter-spacing);
    line-height: var(--fb-global-fb_customtypo_3eeo1--font-line-height);
    color: #414651;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.post-nav-title {
    margin: 0 0 24px 0;
    line-height: 0;
}

.post-nav-title a {
    font-family: var(--fb-global-h6--font-family);
    font-size: var(--fb-global-h6--font-size);
    font-weight: var(--fb-global-h6--font-weight);
    line-height: var(--fb-global-h6--font-line-height);
    color: #000000;
    margin-bottom: 24px;
}

.post-nav-title a:hover {
    color: #040DBF;
}

.post-nav-link {
    margin-top: auto;
}

.post-nav-link a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--wp--frontis--color--blue-500);
    font-family: var(--fb-global-fb_customtypo_9ow7d--font-family);
    font-size: var(--fb-global-fb_customtypo_9ow7d--font-size);
    font-weight: var(--fb-global-fb_customtypo_9ow7d--font-weight);
    line-height: var(--fb-global-fb_customtypo_9ow7d--font-line-height);
    transition: color 0.2s ease;
}

.post-nav-link a:hover {
    text-decoration: underline;
}

.post-nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.post-nav-next .post-nav-link svg {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-navigation-block {
        flex-direction: column;
        gap: 2rem;
    }

    .post-nav-item {
        max-width: 100%;
    }

    .post-nav-title {
        font-size: 1.25rem;
    }
}

/* Left alignment for previous post */
.post-nav-prev {
    text-align: left;
}

/* Right alignment for next post */
.post-nav-next {
    text-align: right;
}

/* When only one navigation item exists */
.post-navigation-block:has(.post-nav-item:only-child) {
    justify-content: flex-start;
}

.post-navigation-block:has(.post-nav-next:only-child) {
    justify-content: flex-end;
}

/* Admin preview styles */
.post-navigation-block-preview {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}