/* Speed2 Theme - Main Stylesheet - Optimized for Performance */

/* ============================================
   1. RESET & BASE STYLES
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family, 'Poppins'), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1A1A1A;
    background: #FFFFFF;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #1B4B5A;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary, #E4002B);
}

/* ============================================
   2. TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #1A1A1A;
}

h1 { font-size: var(--h1-font-size, 2.5em); font-weight: 700; }
h2 { font-size: var(--h2-font-size, 2em); font-weight: 600; }
h3 { font-size: var(--h3-font-size, 1.75em); font-weight: 500; }
h4 { font-size: var(--h4-font-size, 1.5em); font-weight: 400; }
h5 { font-size: var(--h5-font-size, 1.25em); font-weight: 300; }
h6 { font-size: 1em; font-weight: 300; }

p {
    margin-bottom: 1rem;
    font-size: 16px;
}

strong {
    font-weight: 600;
}

/* ============================================
   3. LAYOUT & GRID SYSTEM
============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-1, .col-2, .col-3, .col-4 {
    padding: 0 15px;
    margin-bottom: 30px;
}

.col-1 { flex: 0 0 100%; max-width: 100%; }
.col-2 { flex: 0 0 50%; max-width: 50%; }
.col-3 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-4 { flex: 0 0 25%; max-width: 25%; }

/* ============================================
   4. HEADER & TOP BAR - Stałe wysokości dla CLS
============================================ */
.top-bar {
    background: var(--topbar-bg, #FFFFFF);
    padding: 0;
    border-bottom: 1px solid #F5F5F5;
    min-height: var(--topbar-height, 90px);
    display: flex;
    align-items: center;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.logo-container {
    flex: 0 0 auto;
}

.logo-container a {
    display: block;
}

.logo {
    max-width: 350px;
    min-width: 300px;
    height: auto;
    max-height: 120px;
    aspect-ratio: auto 350 / 145;
}

.contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info a {
    color: var(--topbar-text-color, #1A1A1A);
    font-size: var(--topbar-font-size, 14px);
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--color-primary, #E4002B);
}

/* ============================================
   5. NAVIGATION - Stała wysokość
============================================ */
.main-nav {
    background: var(--nav-bg, #E4002B);
    min-height: var(--nav-height, 50px);
    position: relative;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--nav-height, 50px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.main-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: var(--nav-text-color, #FFFFFF);
    font-weight: 500;
    font-size: var(--nav-font-size, 15px);
    transition: background 0.3s ease;
    height: var(--nav-height, 50px);
}

.main-menu > li > a:hover,
.main-menu > li.active > a {
    background: rgba(0, 0, 0, 0.2);
    color: var(--nav-text-color, #FFFFFF);
}

/* Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--submenu-bg, #FFFFFF);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.main-menu > li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    color: var(--submenu-link-color, #1A1A1A);
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
}

.submenu li a:hover {
    background: #F5F5F5;
    color: var(--color-primary, #E4002B);
}

/* ============================================
   6. HERO SECTION - Stałe wymiary
============================================ */
.hero {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #1A1A1A;
    height: 500px;
    min-height: 500px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    aspect-ratio: 16 / 9;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    color: #FFFFFF;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content h1 {
    color: #FFFFFF;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

/* ============================================
   7. SECTIONS
============================================ */
.section {
    padding: 60px 0;
    min-height: 200px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section.bg-light { background: #F5F5F5; }
.section.bg-white { background: #FFFFFF; }
.section.bg-dark {
    background: #1A1A1A;
    color: #FFFFFF;
}

.section.bg-dark h1, .section.bg-dark h2, .section.bg-dark h3,
.section.bg-dark h4, .section.bg-dark h5, .section.bg-dark h6 {
    color: #FFFFFF;
}

/* ============================================
   8. CARDS & COMPONENTS
============================================ */
.card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.card-header {
    background: #F5F5F5;
    padding: 15px 20px;
    font-weight: 600;
    font-size: var(--card-header-font-size, 1.25em);
    color: #1A1A1A;
}

.card-body {
    padding: 20px;
    flex: 1;
}

.card-footer {
    padding: 15px 20px;
    background: #F5F5F5;
    border-top: 1px solid #E0E0E0;
}

/* ============================================
   9. TILES
============================================ */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tile {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #F5F5F5;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 200px;
}

.tile:hover {
    border-color: var(--color-primary, #E4002B);
    box-shadow: 0 4px 12px rgba(228, 0, 43, 0.2);
}

.tile-icon {
    font-size: 3rem;
    color: var(--color-primary, #E4002B);
    margin-bottom: 1rem;
}

.tile h3 {
    color: #1A1A1A;
    margin-bottom: 1rem;
}

/* ============================================
   10. BUTTONS
============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: var(--font-family, 'Poppins'), sans-serif;
    line-height: 1.5;
    will-change: transform;
}

.btn-primary {
    background: var(--button-bg, #E4002B);
    color: var(--button-text-color, #FFFFFF);
}

.btn-primary:hover {
    background: var(--button-bg-hover, #B30022);
    color: var(--button-text-color, #FFFFFF);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(228, 0, 43, 0.3);
}

.btn-secondary {
    background: #1A1A1A;
    color: #FFFFFF;
}

.btn-secondary:hover {
    background: #333333;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* ============================================
   11. FOOTER - Stała struktura
============================================ */
.footer {
    background: var(--footer-bg, #1A1A1A);
    color: var(--footer-text-color, #FFFFFF);
    padding: 50px 0 20px;
    margin-top: 0;
    min-height: 300px;
}

.footer a {
    color: var(--footer-link-color, #FFFFFF) !important;
}

.footer a:hover {
    color: var(--color-primary, #E4002B) !important;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--footer-text-color, #FFFFFF);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a,
.footer-menu li a {
    color: var(--footer-link-color, #FFFFFF) !important;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-menu a:hover,
.footer-menu li a:hover {
    color: var(--color-primary, #E4002B) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* ============================================
   12. WORDPRESS SPECIFIC
============================================ */
.wp-block-image img {
    height: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress post/page content */
.entry-content {
    margin-bottom: 2rem;
    margin-left: 10px;
    margin-right: 10px;
}

.entry-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-thumbnail {
    margin-bottom: 2rem;
}

/* ============================================
   13. UTILITY CLASSES
============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* ============================================
   14. RESPONSIVE DESIGN
============================================ */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.25rem; }
    .col-2, .col-3, .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero {
        min-height: 400px;
        height: auto;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg, #E4002B);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }
    
    .main-menu.active {
        max-height: 2000px;
    }
    
    .main-menu > li {
        width: 100%;
    }
    
    .col-2, .col-3, .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 15px;
    }
}

/* ============================================
   15. PERFORMANCE OPTIMIZATIONS
============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    .main-nav, .footer, .btn {
        display: none;
    }
}


/* ============================================
   SIDEBAR & WIDGETS
============================================ */
.widget {
    background: #FFFFFF;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary, #E4002B);
    color: #1A1A1A;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #F5F5F5;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #1A1A1A;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--color-primary, #E4002B);
}

.header-widget {
    display: inline-block;
    margin-right: 15px;
}

.footer-widget h3 {
    color: var(--footer-text-color, #FFFFFF);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: var(--footer-link-color, #FFFFFF);
}

.footer-widget a:hover {
    color: var(--color-primary, #E4002B);
}

@media (max-width: 768px) {
    .col-main, .col-sidebar {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
    }
    
    /* Author Bio - Mobile Layout */
    .author-bio {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        padding: 1.5rem !important;
        gap: 1rem !important;
    }
    
    .author-avatar {
        flex: none !important;
        margin-bottom: 0.5rem;
    }
    
    .author-avatar img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .author-info {
        flex: none !important;
    }
    
    .author-info h3 {
        font-size: 1.25rem !important;
    }
    
    .author-social {
        justify-content: center !important;
    }
}


/* ============================================
   CONTENT LISTS - OL & UL
============================================ */
.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content ul ul,
.entry-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.entry-content ul ol,
.entry-content ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}


/* ============================================
   BREADCRUMBS
============================================ */
.breadcrumbs {
    background: #F5F5F5;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid #E0E0E0;
}

.breadcrumbs-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
}

.breadcrumbs-list li:not(:last-child)::after {
    content: var(--breadcrumb-separator, '›');
    margin-left: 8px;
    color: #666;
}

.breadcrumbs-list a {
    color: #1B4B5A;
    transition: color 0.3s ease;
}

.breadcrumbs-list a:hover {
    color: var(--color-primary, #E4002B);
}

.breadcrumbs-list .current {
    color: #666;
}

.breadcrumbs-list .current span {
    color: #666;
}


/* ============================================
   SUBMENU / DROPDOWN FIX
============================================ */
.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--submenu-bg, #FFFFFF);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.main-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .sub-menu li {
    width: 100%;
}

.main-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--submenu-link-color, #1A1A1A);
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
}

.main-menu .sub-menu li a:hover {
    background: #F5F5F5;
    color: var(--color-primary, #E4002B);
}

@media (max-width: 768px) {
    .main-menu .sub-menu {
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }
    
    .main-menu li.active > .sub-menu {
        max-height: 1000px;
    }
    
    .main-menu .sub-menu li a {
        color: #FFFFFF;
        padding: 12px 20px 12px 35px;
    }
    
    .main-menu .sub-menu li a:hover {
        background: rgba(0, 0, 0, 0.3);
        color: #FFFFFF;
    }
}


/* ============================================
   AUTHOR BIO
============================================ */
.author-bio .avatar,
.author-bio .avatar-circle {
    border-radius: 50% !important;
    width: 120px !important;
    height: 120px !important;
    display: block !important;
}

.author-social a {
    color: #1B4B5A;
    transition: color 0.3s ease;
}

.author-social a:hover {
    color: var(--color-primary, #E4002B);
}


/* ============================================
   TABLES
============================================ */
.entry-content table,
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
}

.entry-content table thead,
table thead {
    background: var(--nav-bg, #E4002B);
    color: #FFFFFF;
}

.entry-content table th,
table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.entry-content table td,
table td {
    padding: 15px;
    border-bottom: 1px solid #F5F5F5;
    color: #1A1A1A;
}

.entry-content table tbody tr:hover,
table tbody tr:hover {
    background: #F5F5F5;
}

.entry-content table.table-striped tbody tr:nth-child(odd),
table.table-striped tbody tr:nth-child(odd) {
    background: #FAFAFA;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* ============================================
   ACCORDION / FAQ
============================================ */
.accordion {
    margin-bottom: 2rem;
}

.accordion-item {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.accordion-button {
    width: 100%;
    background: #F5F5F5;
    color: #1A1A1A;
    padding: 18px 20px;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    font-family: inherit;
}

.accordion-button:hover {
    background: #E8E8E8;
}

.accordion-button::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-button.active::after {
    content: '−';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #FFFFFF;
}

.accordion-content.active {
    max-height: 2000px;
}

.accordion-content-inner {
    padding: 20px;
    color: #1A1A1A;
}

.accordion-content-inner p:last-child {
    margin-bottom: 0;
}


/* FIX: Accordion visibility */
.accordion-content {
    display: none !important;
    max-height: none !important;
}

.accordion-content.active {
    display: block !important;
}


/* ============================================
   PAGINATION
============================================ */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-numbers li {
    margin: 0;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
    display: inline-block;
    padding: 10px 16px;
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    color: #1A1A1A;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 44px;
    text-align: center;
}

.pagination .page-numbers a:hover {
    background: var(--button-bg, #E4002B);
    border-color: var(--button-bg, #E4002B);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(228, 0, 43, 0.3);
}

.pagination .page-numbers .current {
    background: var(--button-bg, #E4002B);
    border-color: var(--button-bg, #E4002B);
    color: #FFFFFF;
    font-weight: 600;
}

.pagination .page-numbers .dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.pagination .page-numbers .dots:hover {
    background: transparent;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.pagination .page-numbers .prev,
.pagination .page-numbers .next {
    font-weight: 600;
}

/* Mobile Pagination */
@media (max-width: 768px) {
    .pagination .page-numbers {
        gap: 6px;
    }
    
    .pagination .page-numbers a,
    .pagination .page-numbers span {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 38px;
    }
}

/* ============================================
   FAQ ACCORDION STYLES (Schema.org compatible)
============================================ */
.faq-accordion {
    margin: 2rem 0;
}

.faq-accordion [itemtype="https://schema.org/Question"] {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-accordion [itemtype="https://schema.org/Question"]:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-accordion [itemprop="name"] {
    margin: 0;
    padding: 1.25rem 3rem 1.25rem 1.5rem;
    font-size: 1.1em;
    font-weight: 600;
    color: #1A1A1A;
    cursor: pointer;
    user-select: none;
    position: relative;
    background: #f8f9fa;
    transition: background-color 0.3s ease;
}

.faq-accordion [itemprop="name"]:hover {
    background: #e9ecef;
}

.faq-accordion [itemprop="name"]::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    font-weight: 400;
    color: var(--color-primary, #E4002B);
    transition: transform 0.3s ease;
}

.faq-accordion [itemtype="https://schema.org/Question"].active [itemprop="name"]::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-accordion [itemtype="https://schema.org/Question"].active [itemprop="name"] {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.faq-accordion [itemprop="acceptedAnswer"] {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #fff;
}

.faq-accordion [itemtype="https://schema.org/Question"].active [itemprop="acceptedAnswer"] {
    max-height: 1000px;
    padding: 1.5rem;
}

.faq-accordion [itemprop="acceptedAnswer"] [itemprop="text"] {
    margin: 0;
    line-height: 1.7;
    color: #333;
}

.faq-accordion [itemprop="acceptedAnswer"] [itemprop="text"] p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faq-accordion [itemprop="name"] {
        padding: 1rem 2.5rem 1rem 1rem;
        font-size: 1em;
    }
    
    .faq-accordion [itemprop="name"]::after {
        right: 1rem;
        font-size: 1.3em;
    }
    
    .faq-accordion [itemtype="https://schema.org/Question"].active [itemprop="acceptedAnswer"] {
        padding: 1rem;
    }
}

/* ============================================
   RANDOM POST WIDGET STYLES
============================================ */
.widget_random_post .random-post-widget {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.widget_random_post .random-post-widget:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.widget_random_post .random-post-thumbnail {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.widget_random_post .random-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.widget_random_post .random-post-thumbnail:hover img {
    transform: scale(1.05);
}

.widget_random_post .random-post-content {
    padding: 1.25rem;
}

.widget_random_post .random-post-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.4;
}

.widget_random_post .random-post-title a {
    color: #1A1A1A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget_random_post .random-post-title a:hover {
    color: var(--color-primary, #E4002B);
}

.widget_random_post .random-post-date {
    margin-bottom: 0.75rem;
    font-size: 0.875em;
    color: #666;
}

.widget_random_post .random-post-date time {
    display: inline-block;
}

.widget_random_post .random-post-excerpt {
    margin-bottom: 1rem;
    font-size: 0.9375em;
    line-height: 1.6;
    color: #555;
}

.widget_random_post .random-post-link {
    margin-top: 1rem;
}

.widget_random_post .random-post-link .read-more-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--button-bg, #E4002B);
    color: var(--button-text-color, #FFFFFF);
    font-size: 0.9em;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.widget_random_post .random-post-link .read-more-btn:hover {
    background: var(--button-bg-hover, #B30022);
    transform: translateX(3px);
}

.widget_random_post .widget-title {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary, #E4002B);
    font-size: 1.25em;
    font-weight: 600;
    color: #1A1A1A;
}

@media (max-width: 768px) {
    .widget_random_post .random-post-content {
        padding: 1rem;
    }
    .widget_random_post .random-post-title {
        font-size: 1.1em;
    }
    .widget_random_post .random-post-link .read-more-btn {
        padding: 0.45rem 1rem;
        font-size: 0.875em;
    }
}

.footer-widget.widget_random_post .random-post-widget {
    background: rgba(255,255,255,0.05);
    box-shadow: none;
}

.footer-widget.widget_random_post .random-post-widget:hover {
    background: rgba(255,255,255,0.08);
    transform: none;
    box-shadow: none;
}

.footer-widget.widget_random_post .random-post-title a {
    color: var(--footer-link-color, #FFFFFF);
}

.footer-widget.widget_random_post .random-post-title a:hover {
    color: #FFF;
    opacity: 0.8;
}

.footer-widget.widget_random_post .random-post-date,
.footer-widget.widget_random_post .random-post-excerpt {
    color: rgba(255,255,255,0.8);
}

.footer-widget.widget_random_post .widget-title {
    color: var(--footer-text-color, #FFFFFF);
    border-bottom-color: rgba(255,255,255,0.3);
}
