/* Custom WP-PageNavi Styling for DLSLAB.com */

.wp-pagenavi {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 20px 0;
}

.wp-pagenavi a, .wp-pagenavi span {
    display: inline-block;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #005daa; /* DLSLAB Blue */
    background: #F8F9FA; /* Light gray background */
    border: 2px solid #005daa;
    padding: 8px 12px;
    border-radius: 4px;
    min-width: 40px; /* Ensures easy tapping on mobile */
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.wp-pagenavi a:hover, .wp-pagenavi span.current {
    background: #005daa;
    color: #FFFFFF;
    border-color: #005daa;
    transform: scale(1.09); /* Slight enlargement */
}

.wp-pagenavi span.current {
    font-weight: 700;
    background: #005daa;
    color: #FFFFFF;
    cursor: default;
}

.wp-pagenavi a.previouspostslink, 
.wp-pagenavi a.nextpostslink {
    font-weight: 700;
}

.wp-pagenavi a.previouspostslink:hover, 
.wp-pagenavi a.nextpostslink:hover {
    background: #002F66; /* Darker blue on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wp-pagenavi {
        flex-wrap: wrap;
    }
    
    .wp-pagenavi a, .wp-pagenavi span {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 35px;
    }
}