/**
 * Common Single Page styles
 * Styles for the common single page layout
 */

 .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    color: var(--lubinik-single-page-post-navigation-link-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--lubinik-single-page-post-navigation-link-color);
}

/* --------------------------------
 *  Post Navigation for single template
 * -------------------------------- */
 .single main#primary .navigation.post-navigation { /* Increased specificity */
    margin: var(--lubinik-spacing-lg) 0;
    padding: var(--lubinik-spacing-md) 0;
    border-top: 1px solid var(--lubinik-single-page-post-navigation-border-color);
    border-bottom: 1px solid var(--lubinik-single-page-post-navigation-border-color);
}

.single main#primary .navigation.post-navigation .nav-links { /* Increased specificity */
    display: flex;
    flex-direction: row; /* Explicitly set */
    justify-content: center; /* Center the links instead of space-between */
    align-items: flex-start; 
    width: 100%; /* Full width of parent */
    gap: 2rem; /* Add space between the links */
}

.single main#primary .navigation.post-navigation .nav-previous,
.single main#primary .navigation.post-navigation .nav-next { /* Increased specificity */
    flex-basis: auto; /* Let them take their natural width */
    max-width: 40%; /* Limit maximum width */
}

.single main#primary .navigation.post-navigation .nav-subtitle {
    display: block;
    font-size: var(--lubinik-font-size-base);
    color: var(--lubinik-single-page-post-navigation-text-muted-color);
    font-weight: var(--lubinik-font-weight-bold);
    margin-bottom: var(--lubinik-spacing-xs);
}

.single main#primary .navigation.post-navigation .nav-title {
    font-weight: bold;
    color: var(--lubinik-single-page-post-navigation-title-color);
}

.single main#primary .navigation.post-navigation a {
    text-decoration: none;
    display: block;
    background-color: var(--lubinik-single-page-post-navigation-bg-color);
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    border: 1px solid var(--lubinik-single-page-post-navigation-border-color);
    transition: all 0.3s ease;
}

.single main#primary .navigation.post-navigation a:hover {
    background-color: var(--lubinik-single-page-post-navigation-bg-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.single main#primary .navigation.post-navigation a:hover .nav-title,
.single main#primary .navigation.post-navigation a:hover .nav-subtitle {
    color: var(--lubinik-single-page-post-navigation-title-color);
}