/*
Theme Name: MaloneyJa Professional
Theme URI: https://maloneyja.com
Author: MaloneyJa
Author URI: https://maloneyja.com
Description: A professional WordPress theme with hero slider, project portfolio, blog, and contact features. Mobile-first responsive design with performance optimization and accessibility compliance.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maloneyja-professional
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, portfolio, blog, responsive-layout

This theme, like WordPress, is licensed under the GPL.
*/

/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
    outline: 0;
}

.sticky {
    display: block;
}

.gallery-caption {
    display: block;
}

.bypostauthor {
    display: block;
}

/* ==========================================================================
   Enhanced Pagination Styles
   ========================================================================== */

.post-pagination.enhanced-pagination {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid #e5e5e5;
    border-bottom: 2px solid #e5e5e5;
}

.enhanced-pagination .pagination-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

/* Progress Bar */
.pagination-progress {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.pagination-progress .progress-bar {
    height: 100%;
    background: var(--primary-color, #333);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Page Info */
.pagination-info {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation Controls */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Previous/Next Buttons */
.pagination-prev,
.pagination-next {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 110px;
    justify-content: center;
}

.pagination-prev:hover,
.pagination-next:hover {
    background: var(--primary-color, #333);
    border-color: var(--primary-color, #333);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pagination-prev.disabled,
.pagination-next.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-prev svg,
.pagination-next svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Page Numbers */
.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 2px solid transparent;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-number:hover {
    background: #f5f5f5;
    color: var(--primary-color, #333);
}

.page-number.current {
    background: var(--primary-color, #333);
    color: #fff;
    cursor: default;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pagination-controls {
        flex-wrap: wrap;
    }
    
    .pagination-numbers {
        order: 3;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e5e5e5;
    }
    
    .pagination-prev,
    .pagination-next {
        flex: 1;
        min-width: auto;
    }
    
    .pagination-prev span,
    .pagination-next span {
        display: none;
    }
    
    .pagination-prev svg,
    .pagination-next svg {
        width: 20px;
        height: 20px;
    }
}

/* Default wp_link_pages styling (fallback) */
.page-links {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e5e5e5;
    font-weight: 500;
}

.page-links a,
.page-links > span {
    margin: 0 0.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-decoration: none;
}

.page-links a:hover {
    background: var(--primary-color, #333);
    border-color: var(--primary-color, #333);
    color: #fff;
}

.page-links > span:not(.page-links-title) {
    background: var(--primary-color, #333);
    border-color: var(--primary-color, #333);
    color: #fff;
}