/*
Theme Name: Grant Theme
Theme URI: https://kancelariagrant.pl
Description: Nowoczesny, elegancki motyw dla Kancelarii Grant
Version: 2.0.0
Author: Adam Dolata - Calmfox
Author URI: https://calmfox.pl
Text Domain: grant-theme
*/

/* Modern Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

:root {
    /* Colors */
    --primary-dark: #333232;
    --primary-red: #ee443f;
    --accent-dark-red: #c93833;
    --accent-light-red: #ff5a54;
    --gray: #6c6b6b;
    --light-gray: #f5f5f5;
    --border: #e8e8e8;
    --white: #ffffff;
    --off-white: #fafafa;
    
    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --container: 1200px;
    --gap: clamp(60px, 8vw, 120px);
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--primary-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--accent-dark-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 var(--border);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    display: block;
}

.site-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* Navigation with Submenu */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

.main-navigation > ul > li {
    position: relative;
}

.main-navigation a {
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 0;
    display: block;
}

.main-navigation > ul > li > a {
    position: relative;
}

.main-navigation > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.main-navigation > ul > li:hover > a,
.main-navigation > ul > li.current-menu-item > a {
    color: var(--primary-red);
}

.main-navigation > ul > li:hover > a::after,
.main-navigation > ul > li.current-menu-item > a::after {
    width: 100%;
}

/* Submenu */
.main-navigation ul ul {
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    background: var(--white);
    min-width: 240px;
    padding: 20px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
    gap: 0;
}

.main-navigation ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    padding: 0;
}

.main-navigation ul ul a {
    padding: 12px 25px;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.main-navigation ul ul a::after {
    display: none;
}

.main-navigation ul ul a:hover {
    background: var(--light-gray);
    border-left-color: var(--primary-red);
    padding-left: 30px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-dark);
    font-size: 24px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--accent-dark-red);
    border-color: var(--accent-dark-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(238, 68, 63, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary-red);
}

.btn-outline:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* Sections */
.section {
    padding: var(--gap) 0;
}

.section-light {
    background: var(--off-white);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(238, 68, 63, 0.1);
    color: var(--primary-red);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
}

/* Hero */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--hero-bg, url('https://picsum.photos/1000/1000?grayscale')) center/cover;
    opacity: 0.08;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    padding: 60px 0;
}

.hero-title {
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    text-align: center;
}

.stat-item {
    padding: 40px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 15px;
    line-height: 1;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--gray);
    font-weight: 500;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    border-color: var(--primary-red);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-light-red));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.service-card p {
    margin-bottom: 30px;
    line-height: 1.8;
}

.service-link {
    color: var(--primary-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    gap: 15px;
}

/* Content Layouts */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 80px;
    margin-top: 60px;
}

.main-content {
    min-width: 0;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.post-thumbnail {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
    background: var(--light-gray);
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.post-title a {
    color: var(--primary-dark);
}

.post-title a:hover {
    color: var(--primary-red);
}

.post-excerpt {
    margin-bottom: 20px;
    line-height: 1.7;
}

.read-more {
    color: var(--primary-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 80px 0;
    flex-wrap: wrap;
}

.pagination-number,
.pagination-prev,
.pagination-next,
.pagination a,
.pagination span {
    min-width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-number:hover,
.pagination-prev:hover,
.pagination-next:hover,
.pagination a:hover {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.pagination-number.current,
.pagination span.current {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.pagination-dots {
    padding: 0 8px;
    color: var(--gray);
}

/* Sidebar */
.sidebar .widget {
    background: var(--white);
    padding: 35px;
    border-radius: 16px;
    margin-bottom: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.sidebar .widget-title {
    font-size: 1.25rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-red);
    color: var(--primary-dark);
}

.sidebar .widget ul {
    list-style: none;
}

.sidebar .widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget a {
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

.sidebar .widget a:hover {
    color: var(--primary-red);
    padding-left: 10px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(238, 68, 63, 0.1);
}

.search-submit {
    padding: 14px 28px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: var(--accent-dark-red);
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.site-footer .widget-title {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-red);
}

.site-footer .widget ul {
    list-style: none;
}

.site-footer .widget ul li {
    margin-bottom: 12px;
}

.site-footer .widget a {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.site-footer .widget a:hover {
    color: var(--white);
    padding-left: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: rgba(255,255,255,0.8);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--off-white);
    padding: 20px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.breadcrumbs a {
    color: var(--gray);
}

.breadcrumbs a:hover {
    color: var(--primary-red);
}

.breadcrumbs .separator {
    margin: 0 12px;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --gap: 60px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --gap: 40px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .main-navigation.active {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .main-navigation > ul > li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    .main-navigation a {
        padding: 15px 0;
    }
    
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 10px 0 10px 20px;
        background: var(--light-gray);
        margin-top: 10px;
        border-radius: 8px;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Additional Styles for Templates */
.entry-content {
    line-height: 1.9;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.75rem;
    color: var(--gray);
}

.entry-content img {
    border-radius: 12px;
    margin: 2rem 0;
}

.entry-content a {
    color: var(--primary-red);
    font-weight: 600;
}

.entry-content a:hover {
    text-decoration: underline;
}

/* Widget Tag Cloud */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget_tag_cloud .tagcloud a {
    padding: 6px 14px;
    background: var(--light-gray);
    border-radius: 6px;
    font-size: 14px !important;
    transition: all 0.3s ease;
}

.widget_tag_cloud .tagcloud a:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* Widget Calendar */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget_calendar caption {
    padding: 12px;
    font-weight: 600;
}

.widget_calendar th,
.widget_calendar td {
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.widget_calendar a {
    font-weight: 600;
    color: var(--primary-red);
}

/* Recent Posts Widget */
.widget_recent_entries ul li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.widget_recent_entries ul li:last-child {
    border-bottom: none;
}

.widget_recent_entries .post-date {
    display: block;
    font-size: 13px;
    color: var(--gray);
    margin-top: 5px;
}

/* Categories Widget */
.widget_categories select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
}

/* Meta Widget */
.widget_meta ul li a::before {
    content: '→ ';
    color: var(--primary-red);
}

/* Professional SVG Icons */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.icon-phone::before,
.icon-email::before,
.icon-location::before,
.icon-time::before,
.icon-check::before,
.icon-arrow::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-phone::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E");
}

.icon-email::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E");
}

.icon-location::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E");
}

.icon-time::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

.icon-check::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

.icon-arrow::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}

/* Service Icons - Single Color */
.service-icon {
    background: linear-gradient(135deg, var(--primary-red), var(--accent-light-red));
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 50%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
}

.service-icon.icon-legal::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 6l3 1m0 0l-3 9a5.002 5.002 0 006.001 0M6 7l3 9M6 7l6-2m6 2l3-1m-3 1l-3 9a5.002 5.002 0 006.001 0M18 7l3 9m-3-9l-6-2m0-2v2m0 16V5m0 16H9m3 0h3'/%3E%3C/svg%3E");
}

.service-icon.icon-accounting::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 7h6m0 10v-3m-3 3h.01M9 17h.01M9 14h.01M12 14h.01M15 11h.01M12 11h.01M9 11h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z'/%3E%3C/svg%3E");
}

.service-icon.icon-succession::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4'/%3E%3C/svg%3E");
}

/* Footer Logo Styling */
.footer-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo a {
    display: inline-block;
}

/* WordPress Native Pagination Fix */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 80px 0;
    flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
    min-width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.nav-links span.current {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.nav-links .dots {
    padding: 0 8px;
    color: var(--gray);
    border: none;
    background: transparent;
}

/* Fix for .pagination-numbers wrapper */
.pagination-numbers {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pagination-number.current {
    pointer-events: none;
}