.inoforest-post-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
    padding: 20px 0;
}

.inoforest-post-navigation .nav-item {
    flex: 1;
    max-width: 45%;
}

.inoforest-post-navigation .nav-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.inoforest-post-navigation .nav-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inoforest-post-navigation .nav-item a:hover {
    text-decoration: none;
}

.inoforest-post-navigation .nav-prev a {
    justify-content: flex-start;
}

.inoforest-post-navigation .nav-next a {
    justify-content: flex-end;
    text-align: end;
}

.inoforest-post-navigation .nav-icon,
.inoforest-post-navigation .nav-icon i,
.inoforest-post-navigation .nav-icon svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    transition: color 0.3s ease;
    width: 1em;
    height: 1em;
}

.inoforest-post-navigation .nav-label {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    transition: color 0.3s ease;
}

.inoforest-post-navigation .nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inoforest-post-navigation .nav-separator {
    width: 1px;
    height: 60px;
    background-color: #e0e0e0;
    border: none;
    margin: 0 20px;
    flex-shrink: 0;
}

.inoforest-post-navigation .nav-item:hover .nav-icon,
.inoforest-post-navigation .nav-item:hover .nav-icon i,
.inoforest-post-navigation .nav-item:hover .nav-icon svg {
    color: #007cba;
}

.inoforest-post-navigation .nav-item:hover .nav-label {
    color: #007cba;
}

.inoforest-post-navigation .nav-item:hover .nav-title {
    color: #007cba;
}

@media (max-width: 768px) {
    .inoforest-post-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .inoforest-post-navigation .nav-item {
        max-width: 100%;
    }
    
    .inoforest-post-navigation .nav-item a {
        justify-content: center;
        text-align: center;
    }
    
    .inoforest-post-navigation .nav-next a {
        text-align: center;
    }
    
    .inoforest-post-navigation .nav-separator {
        display: none;
    }
    
    .inoforest-post-navigation .nav-content {
        justify-content: center;
        text-align: center;
    }
    
    .inoforest-post-navigation .nav-title {
        -webkit-line-clamp: 1;
    }
}

/* ==========================================================================
   Cards style (nav_style = card, added 2026-10-26): two bordered cards side by
   side, label with arrow above the title (Travel26 blog-details.html design).
   Colours read the Design System with the design as fallback. Selectors are
   one step above the Classic rules above (an extra class or element) and one
   below the panel's own selectors, so Style controls still win.
   ========================================================================== */
.inoforest-post-navigation.inoforest-post-navigation--card {
    --ino-pn-primary: var(--inoforest-color-primary, #0b7a75);
    --ino-pn-accent: var(--inoforest-color-accent, #ff6a3d);
    --ino-pn-heading: var(--inoforest-color-heading, #0d1b2a);
    --ino-pn-border: var(--inoforest-color-border, #e5ebef);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch; /* both cards as tall as the longer title (the base layout centres them) */
    gap: 20px;
    margin: 0;
    padding: 0;
    text-align: start;
}

.inoforest-post-navigation--card .nav-item.nav-prev,
.inoforest-post-navigation--card .nav-item.nav-next {
    flex: none;
    max-width: none;
    min-width: 0;
}

/* A lone "next" card stays in the last column. */
.inoforest-post-navigation--card .nav-item.nav-next:first-child {
    grid-column: -2 / -1;
}

.inoforest-post-navigation--card .nav-item a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    box-sizing: border-box;
    height: 100%;
    padding: 22px 26px;
    color: inherit;
    text-align: start;
    background: transparent;
    border: 1px solid var(--ino-pn-border);
    border-radius: 24px;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

.inoforest-post-navigation--card .nav-item.nav-next a {
    align-items: flex-end;
    text-align: end;
}

.inoforest-post-navigation--card .nav-item a:hover,
.inoforest-post-navigation--card .nav-item a:focus-visible {
    color: inherit;
    border-color: var(--ino-pn-primary);
    box-shadow: 0 6px 20px rgba(13, 27, 42, 0.07);
}

.inoforest-post-navigation--card .nav-item a:focus-visible {
    outline: 2px solid var(--ino-pn-primary);
    outline-offset: 2px;
}

.inoforest-post-navigation--card a .nav-label,
.inoforest-post-navigation--card .nav-item:hover a .nav-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.75;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ino-pn-label, var(--ino-pn-accent));
}

.inoforest-post-navigation--card a .nav-icon,
.inoforest-post-navigation--card .nav-item:hover a .nav-icon {
    font-size: 1.2em;
    color: inherit;
    fill: currentColor;
}

/* The Classic style's Arrows → Gap margin does not apply to cards (Cards → Space between arrow and label). */
.inoforest-post-navigation.inoforest-post-navigation--card .nav-label .nav-icon,
.inoforest-post-navigation.inoforest-post-navigation--card .nav-label .nav-icon i,
.inoforest-post-navigation.inoforest-post-navigation--card .nav-label .nav-icon svg {
    margin: 0;
}

.inoforest-post-navigation--card a .nav-title {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    font-size: 1em;
    font-weight: 800;
    line-height: 1.4;
    color: var(--ino-pn-heading);
}

.inoforest-post-navigation--card .nav-item:hover a .nav-title,
.inoforest-post-navigation--card .nav-item a:focus-visible .nav-title {
    color: var(--ino-pn-primary);
}

@media (max-width: 767px) {
    /* The design's 15 px base font on phones. */
    .inoforest-post-navigation.inoforest-post-navigation--card {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inoforest-post-navigation--card .nav-item a {
        transition: none;
    }
}
