/* Global Resets & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--sb-font-primary);
    font-size: var(--sb-font-size-base);
    line-height: var(--sb-line-height-base);
    color: var(--sb-color-text);
    background-color: var(--sb-color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--sb-spacing-4);
    color: var(--sb-color-black);
    /* Or dark blue depending on design */
}

a {
    color: var(--sb-color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

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

/* Container Utility */
.container {
    max-width: var(--sb-container-width);
    margin: 0 auto;
    padding: 0 var(--sb-container-padding);
    width: 100%;
}

/* Button Base Class */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--sb-radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    text-decoration: none !important;
}

.btn-primary {
    background-color: var(--sb-color-black);
    color: var(--sb-color-white);
}

.btn-primary:hover {
    background-color: var(--sb-color-primary);
    /* Use blue on hover? or dark gray */
    transform: translateY(-2px);
    box-shadow: var(--sb-shadow-md);
}

.btn-secondary {
    background-color: var(--sb-color-white);
    color: var(--sb-color-black);
    border: 1px solid var(--sb-color-border);
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: var(--sb-spacing-4);
}

.mb-8 {
    margin-bottom: var(--sb-spacing-8);
}

.py-12 {
    padding-top: var(--sb-spacing-12);
    padding-bottom: var(--sb-spacing-12);
}

/* Header Styles */
.site-header {
    background-color: var(--sb-color-white);
    border-bottom: 1px solid var(--sb-color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--sb-spacing-4) 0;
}

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

.site-branding a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 24px;
    color: var(--sb-color-black);
}

.main-navigation .primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--sb-spacing-6);
}

.main-navigation a {
    color: var(--sb-color-text);
    font-weight: 500;
    font-size: 16px;
    padding: 8px;
}

.main-navigation a:hover {
    color: var(--sb-color-primary);
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--sb-spacing-4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--sb-color-black);
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-slideout {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--sb-color-white);
    z-index: 1002;
    transition: right 0.3s ease;
    padding: 20px;
    box-shadow: var(--sb-shadow-lg);
}

.mobile-menu-slideout.active {
    right: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
    float: right;
    color: var(--sb-color-black);
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 40px 0 0 0;
    clear: both;
}

.mobile-nav-menu li {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--sb-color-border);
    padding-bottom: 15px;
}

.mobile-nav-menu a {
    color: var(--sb-color-text);
    font-size: 18px;
    font-weight: 600;
    display: block;
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
        /* Optional: hide CTA on mobile or keep */
    }
}

/* Footer Styles */
.site-footer-new {
    background-color: var(--sb-color-black);
    /* or dark blue */
    color: var(--sb-color-white);
    padding: var(--sb-spacing-10) 0 var(--sb-spacing-6);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    /* Brand | Nav */
    gap: var(--sb-spacing-8);
}

.footer-brand .footer-logo {
    display: block;
    margin-bottom: var(--sb-spacing-4);
    color: var(--sb-color-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
}

.footer-brand .footer-description {
    color: #9ca3af;
    /* Gray-400 equivalent */
    font-size: 14px;
    max-width: 300px;
}

/* Update existing footer nav styles */
.footer-navigation .footer-menu-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--sb-spacing-8);
}

.footer-section-title {
    color: var(--sb-color-white);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--sb-spacing-4);
    font-weight: 600;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-item {
    margin-bottom: var(--sb-spacing-2);
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--sb-color-white);
}

.footer-bottom {
    margin-top: var(--sb-spacing-10);
    padding-top: var(--sb-spacing-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Section Styles */
.section-hero-new {
    padding: var(--sb-spacing-10) 0;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sb-spacing-8);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #ebf5ff;
    /* Light blue */
    color: var(--sb-color-primary);
    border-radius: var(--sb-radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--sb-spacing-4);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: var(--sb-spacing-6);
    color: var(--sb-color-black);
    letter-spacing: -0.02em;
}

.hero-title .text-primary {
    color: var(--sb-color-primary);
}

.hero-lead {
    font-size: 18px;
    color: var(--sb-color-text-secondary);
    margin-bottom: var(--sb-spacing-8);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--sb-spacing-4);
    margin-bottom: var(--sb-spacing-8);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: var(--sb-spacing-4);
    font-size: 14px;
    font-weight: 500;
    color: var(--sb-color-text-secondary);
}

.trust-avatars {
    display: flex;
    margin-left: var(--sb-spacing-2);
}

.trust-avatars .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--sb-color-white);
    margin-left: -10px;
}

.trust-avatars .avatar:first-child {
    margin-left: 0;
}

.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    z-index: 10;
    border-radius: var(--sb-radius-lg);
    overflow: hidden;
    box-shadow: var(--sb-shadow-lg);
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.hero-blob {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background-color: var(--sb-color-primary);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
}

@media (max-width: 992px) {
    .section-hero-new {
        padding: var(--sb-spacing-6) 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-title {
        font-size: 42px;
    }
}

/* Stats Section Styles */
.section-stats-new {
    padding: var(--sb-spacing-8) 0;
    background-color: var(--sb-color-white);
    border-bottom: 1px solid var(--sb-color-border);
}

.stats-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sb-spacing-8);
    text-align: center;
}

.stat-card {
    padding: var(--sb-spacing-4);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--sb-color-black);
    line-height: 1;
    margin-bottom: var(--sb-spacing-2);
}

.stat-label {
    font-size: 16px;
    color: var(--sb-color-text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sb-spacing-4);
    }

    .stat-number {
        font-size: 36px;
    }
}

/* Services Section Styles */
.section-services-new {
    padding: var(--sb-spacing-10) 0;
    background-color: #f9fafb;
}

.section-title {
    font-size: 36px;
    margin-bottom: var(--sb-spacing-4);
    color: var(--sb-color-black);
}

.section-desc {
    color: var(--sb-color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sb-spacing-6);
    margin-top: var(--sb-spacing-8);
}

.service-card-new {
    background: var(--sb-color-white);
    border-radius: var(--sb-radius-lg);
    overflow: hidden;
    box-shadow: var(--sb-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--sb-color-border);
}

.service-card-new:hover {
    transform: translateY(-5px);
    box-shadow: var(--sb-shadow-lg);
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.service-image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: #eee;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-new:hover .service-img {
    transform: scale(1.05);
}

.service-img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e5e7eb;
}

.service-price-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: var(--sb-radius-full);
    font-weight: 700;
    font-size: 14px;
    color: var(--sb-color-black);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-content {
    padding: var(--sb-spacing-5);
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--sb-spacing-3);
    color: var(--sb-color-black);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.service-seller {
    display: flex;
    align-items: center;
    gap: 8px;
}

.seller-avatar,
.seller-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-avatar-placeholder {
    background-color: #ccc;
}

.seller-name {
    font-size: 13px;
    color: var(--sb-color-text-secondary);
    font-weight: 500;
}

.service-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sb-color-black);
}

.service-rating .star {
    color: #fbbf24;
}

/* Testimonials Section Styles */
.section-testimonials-new {
    padding: var(--sb-spacing-10) 0;
    background-color: var(--sb-color-white);
}

.testimonials-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sb-spacing-6);
    margin-top: var(--sb-spacing-8);
}

.testimonial-card-new {
    padding: var(--sb-spacing-6);
    background: #f9fafb;
    border-radius: var(--sb-radius-lg);
    border: 1px solid var(--sb-color-border);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 18px;
    margin-bottom: var(--sb-spacing-4);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--sb-color-text);
    margin-bottom: var(--sb-spacing-6);
    font-style: italic;
}

.testimonial-author-new {
    display: flex;
    align-items: center;
    gap: var(--sb-spacing-3);
}

.author-avatar-placeholder {
    width: 40px;
    height: 40px;
    background-color: var(--sb-color-primary);
    color: var(--sb-color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--sb-color-black);
}

.author-role {
    font-size: 14px;
    color: var(--sb-color-text-secondary);
}

/* Blog Section Styles */
.section-blog-new {
    padding: var(--sb-spacing-10) 0;
    background-color: var(--sb-color-white);
}

.blog-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sb-spacing-8);
    margin-top: var(--sb-spacing-8);
}

.blog-card-new {
    background: var(--sb-color-white);
    border-radius: var(--sb-radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-card-new:hover {
    transform: translateY(-5px);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #eee;
    border-radius: var(--sb-radius-lg);
    margin-bottom: var(--sb-spacing-4);
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card-new:hover .blog-img {
    transform: scale(1.05);
}

.blog-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb;
    color: #9ca3af;
    font-weight: 700;
}

/* Breadcrumbs */
.breadcrumb {
    padding: var(--sb-spacing-4) 0;
    margin-bottom: var(--sb-spacing-4);
    font-size: 14px;
    color: var(--sb-color-text-secondary);
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #d1d5db;
}

.breadcrumb-item a {
    color: var(--sb-color-text-secondary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--sb-color-primary);
    text-decoration: underline;
}

.breadcrumb-item.current {
    color: var(--sb-color-text);
    font-weight: 500;
}

/* Navigation Tweaks */
.main-navigation a {
    padding: 8px 12px;
    /* Reduced from just 8px to give more side breathing room but less vertical? No, actually increase side padding */
    font-size: 15px;
    /* Slightly smaller to fit more items */
}

.main-navigation .primary-menu {
    gap: var(--sb-spacing-4);
    /* Reduced gap from 6 */
}

.seller-badge svg,
.service-icon svg,
.stat-icon svg,
.request-stat svg,
.buyer-verification svg,
.buyer-location svg,
.buyer-cta svg,
.request-cta svg,
.requests-cta svg,
.buyers-cta svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.seller-badge svg,
.service-icon svg,
.stat-icon svg {
    width: 100%;
    height: 100%;
    margin-right: 0;
}

/* Improved Placeholders */
.product-img-placeholder,
.service-image-wrapper {
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.product-img-placeholder::after,
.service-image-wrapper::after {
    content: "Image Not Available";
    font-size: 12px;
    font-weight: 500;
}

.product-img-placeholder::before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></svg>') no-repeat center;
    margin-bottom: 8px;
}

.blog-date {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: var(--sb-radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--sb-color-black);
}

.blog-content {
    padding: var(--sb-spacing-2);
}

.blog-category {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--sb-color-primary);
    font-weight: 700;
    margin-bottom: var(--sb-spacing-2);
    letter-spacing: 0.5px;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--sb-spacing-2);
    color: var(--sb-color-black);
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 16px;
    color: var(--sb-color-text-secondary);
    margin-bottom: var(--sb-spacing-4);
    line-height: 1.6;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--sb-color-primary);
    display: inline-flex;
    align-items: center;
}

/* Sellers Section Styles */
.section-sellers-new {
    padding: var(--sb-spacing-10) 0;
    background-color: #f9fafb;
}

.sellers-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sb-spacing-8);
    margin-top: var(--sb-spacing-8);
}

.seller-card-new {
    background: var(--sb-color-white);
    border-radius: var(--sb-radius-lg);
    border: 1px solid var(--sb-color-border);
    padding: var(--sb-spacing-6);
    text-align: center;
    transition: transform 0.3s ease;
}

.seller-card-new:hover {
    transform: translateY(-5px);
    box-shadow: var(--sb-shadow-lg);
}

.seller-header-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--sb-spacing-4);
}

.seller-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: var(--sb-spacing-4);
    position: relative;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #9ca3af;
    font-weight: 700;
}

.seller-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.verified-badge {
    position: absolute;
    bottom: 0px;
    right: 0px;
    background-color: #10b981;
    /* Green */
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid white;
}

.seller-name-new {
    font-size: 18px;
    font-weight: 700;
    color: var(--sb-color-black);
    margin-bottom: var(--sb-spacing-1);
}

.seller-location-new {
    font-size: 14px;
    color: var(--sb-color-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.location-icon {
    font-size: 12px;
}

.seller-bio-new {
    font-size: 14px;
    color: var(--sb-color-text-secondary);
    margin-bottom: var(--sb-spacing-6);
    line-height: 1.5;
    height: 4.5em;
    /* Limit height roughly */
    overflow: hidden;
}

.seller-actions-new {
    margin-top: auto;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Products Section Styles */
.section-products-new {
    padding: var(--sb-spacing-10) 0;
    background-color: var(--sb-color-white);
}

.products-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--sb-spacing-6);
    margin-top: var(--sb-spacing-8);
}

.product-card-new {
    background: var(--sb-color-white);
    border-radius: var(--sb-radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--sb-color-border);
}

.product-card-new:hover {
    transform: translateY(-5px);
    box-shadow: var(--sb-shadow-md);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f3f4f6;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-new:hover .product-img {
    transform: scale(1.05);
}

.product-img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e5e7eb;
}

.product-price-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: var(--sb-radius-sm);
    font-weight: 700;
    font-size: 14px;
    color: var(--sb-color-black);
}

.sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: var(--sb-radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-content {
    padding: var(--sb-spacing-4);
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--sb-spacing-2);
    color: var(--sb-color-black);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    /* Limit height */
}

.product-rating {
    font-size: 13px;
    color: var(--sb-color-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-rating .star {
    color: #fbbf24;
}

/* =========================================
   12. Requests Section
   ========================================= */
.requests-section {
    padding: var(--sb-spacing-16) 0;
    background-color: var(--sb-color-background-alt);
    position: relative;
    overflow: hidden;
}

.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--sb-spacing-8);
}

.request-card {
    background: var(--sb-color-background);
    border: 1px solid var(--sb-color-border);
    border-radius: var(--sb-radius-lg);
    padding: var(--sb-spacing-6);
    transition: all var(--sb-transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.request-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sb-shadow-lg);
    border-color: var(--sb-color-primary-200);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sb-spacing-4);
}

.request-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sb-color-primary);
    background: var(--sb-color-primary-50);
    padding: 4px 8px;
    border-radius: var(--sb-radius-sm);
}

.request-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--sb-color-text);
    margin-bottom: var(--sb-spacing-3);
    line-height: 1.4;
}

.request-description {
    font-size: 14px;
    color: var(--sb-color-text-secondary);
    margin-bottom: var(--sb-spacing-5);
    line-height: 1.6;
    /* Removed flex-grow from description, moved to content wrapper */
}

/* New: Content wrapper grows to fill card */
.request-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.request-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    /* Pushes meta to bottom of content area */
    padding-top: var(--sb-spacing-4);
    border-top: 1px solid var(--sb-color-border);
    margin-bottom: var(--sb-spacing-4);
}

.request-user {
    display: flex;
    align-items: center;
    gap: var(--sb-spacing-3);
    overflow: hidden;
    /* Ensure masking container works */
}

.request-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sb-color-background-alt);
    flex-shrink: 0;
    /* Prevent avatar from shrinking */
}

.request-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.request-user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--sb-color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    /* Limit width to prevent breaking layout */
}

.request-stats {
    display: flex;
    gap: var(--sb-spacing-3);
    font-size: 12px;
    color: var(--sb-color-text-secondary);
    flex-shrink: 0;
    /* Stats shouldn't shrink if possible, user name should truncate first */
    margin-left: auto;
    /* Push to right */
}

.request-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.request-skills {
    margin-bottom: var(--sb-spacing-5);
}

.request-skills-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--sb-color-text);
    margin-bottom: var(--sb-spacing-2);
}

.request-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sb-spacing-2);
}

.request-skill-tag {
    font-size: 11px;
    color: var(--sb-color-text-secondary);
    background: var(--sb-color-background-alt);
    padding: 2px 8px;
    border-radius: var(--sb-radius-full);
}

.request-cta .btn {
    width: 100%;
    justify-content: center;
}

/* =========================================
   13. Buyers Section
   ========================================= */
.buyers-section {
    padding: var(--sb-spacing-16) 0;
    background-color: var(--sb-color-background);
    position: relative;
}

.buyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sb-spacing-8);
}

.buyer-card {
    background: var(--sb-color-background);
    border: 1px solid var(--sb-color-border);
    border-radius: var(--sb-radius-lg);
    padding: var(--sb-spacing-6);
    transition: all var(--sb-transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.buyer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sb-shadow-lg);
    border-color: var(--sb-color-primary-200);
}

.buyer-header {
    position: relative;
    margin-bottom: var(--sb-spacing-4);
}

.buyer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sb-color-background-alt);
    border: 3px solid var(--sb-color-background);
    box-shadow: var(--sb-shadow-md);
    margin: 0 auto;
}

.buyer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.buyer-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sb-color-primary-100), var(--sb-color-primary-200));
    color: var(--sb-color-primary-700);
    font-weight: 700;
    font-size: 24px;
}

.buyer-verification {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: var(--sb-color-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--sb-color-background);
    font-size: 12px;
}

.buyer-info {
    margin-bottom: var(--sb-spacing-4);
    width: 100%;
}

.buyer-name {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--sb-color-text);
    margin-bottom: var(--sb-spacing-1);
}

.buyer-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    color: var(--sb-color-text-secondary);
    margin-bottom: var(--sb-spacing-2);
}

.buyer-role {
    font-size: 12px;
    font-weight: 500;
    color: var(--sb-color-primary);
    background: var(--sb-color-primary-50);
    padding: 2px 8px;
    border-radius: var(--sb-radius-full);
}

.buyer-content {
    margin-bottom: var(--sb-spacing-5);
    width: 100%;
}

.buyer-bio {
    font-size: 14px;
    color: var(--sb-color-text-secondary);
    margin-bottom: var(--sb-spacing-4);
    line-height: 1.5;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.buyer-interests-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--sb-color-text);
    margin-bottom: var(--sb-spacing-2);
    text-align: left;
}

.buyer-interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sb-spacing-2);
    justify-content: center;
}

.buyer-interest-tag {
    font-size: 11px;
    color: var(--sb-color-text-secondary);
    background: var(--sb-color-background-alt);
    padding: 2px 8px;
    border-radius: var(--sb-radius-full);
}

.buyer-cta {
    margin-top: auto;
    width: 100%;
}

.buyer-cta .btn {
    width: 100%;
    justify-content: center;
}

/* Call to Action Buttons for Sections */
.requests-cta,
.buyers-cta {
    text-align: center;
    margin-top: var(--sb-spacing-10);
}

@media (max-width: 768px) {

    .requests-grid,
    .buyers-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   14. Blog & Archive Layout
   ========================================= */
.blog .content-area,
.archive .content-area,
.search .content-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sb-spacing-8);
    margin-top: var(--sb-spacing-8);
}

/* Remove bullets if present */
.blog .content-area ul,
.archive .content-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Ensure images in excerpt cards fill container */
.excerpt-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Interactive effect for cards */
.excerpt-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.excerpt-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sb-shadow-lg) !important;
    /* Override inline styles if needed */
}

.excerpt-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.excerpt-card .card-body p {
    flex-grow: 1;
}

/* Pagination Styling */
.strongbody-pagination {
    grid-column: 1 / -1;
    /* Span full width */
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

/* =========================================
   15. Breadcrumbs
   ========================================= */
.breadcrumb {
    margin-bottom: var(--sb-spacing-6);
    font-size: 14px;
    color: var(--sb-color-text-secondary);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--sb-color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--sb-color-primary);
}

.breadcrumb-separator {
    margin: 0 4px;
    color: var(--sb-color-border);
}

.breadcrumb-item.current {
    color: var(--sb-color-text);
    font-weight: 500;
}

/* =========================================
   16. Single Post Improvements
   ========================================= */
.single-post-content {
    background: var(--sb-color-white);
    padding: var(--sb-spacing-8);
    border-radius: var(--sb-radius-lg);
    box-shadow: var(--sb-shadow-sm);
    margin-bottom: var(--sb-spacing-8);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sb-spacing-4);
    font-size: 14px;
    color: var(--sb-color-text-secondary);
    margin-bottom: var(--sb-spacing-4);
}

.post-categories a {
    color: var(--sb-color-primary);
    text-decoration: none;
    font-weight: 500;
}

/* =========================================
   17. Custom Blog Page (page-blog.php)
   ========================================= */

/* Latest Articles Section */
.article-list {
    list-style: none;
    /* Remove bullets */
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sb-spacing-6);
}

.article-list__item {
    display: flex;
    gap: var(--sb-spacing-4);
    align-items: center;
    border-bottom: 1px solid var(--sb-color-border);
    padding-bottom: var(--sb-spacing-4);
}

.article-list__item:last-child {
    border-bottom: none;
}

.article-list__thumb {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    border-radius: var(--sb-radius-sm);
    overflow: hidden;
    position: relative;
}

.article-list__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Most Read Section */
.most-read-list {
    display: flex;
    flex-direction: column;
    gap: var(--sb-spacing-3);
}

.most-read-card {
    padding: var(--sb-spacing-4);
    background: var(--sb-color-background-alt);
    border-radius: var(--sb-radius-sm);
    text-decoration: none;
    color: var(--sb-color-text);
    font-weight: 500;
    transition: background 0.2s;
}

.most-read-card:hover {
    background: var(--sb-color-border);
}

/* Blog Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sb-spacing-8);
    margin-top: var(--sb-spacing-8);
}

.blog-card {
    background: var(--sb-color-white);
    border-radius: var(--sb-radius-lg);
    overflow: hidden;
    box-shadow: var(--sb-shadow-sm);
    /* Define default shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--sb-color-border);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sb-shadow-lg);
}

.article-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-image__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .article-image__img {
    transform: scale(1.05);
    /* Zoom effect */
}

.article-content {
    padding: var(--sb-spacing-5);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-category {
    margin-bottom: var(--sb-spacing-3);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 var(--sb-spacing-3);
    line-height: 1.4;
}

.article-title a {
    color: var(--sb-color-text);
    text-decoration: none;
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--sb-color-text-secondary);
    margin-bottom: var(--sb-spacing-4);
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--sb-color-text-tertiary);
    margin-top: auto;
    padding-top: var(--sb-spacing-4);
    border-top: 1px solid var(--sb-color-border);
}

/* Pagination */
.blog-pagination {
    margin-top: var(--sb-spacing-10);
    display: flex;
    justify-content: center;
}

.blog-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: var(--sb-spacing-2);
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    /* Flexible width for text */
    height: 40px;
    /* Fixed height */
    border-radius: 20px;
    /* Pill shape */
    background: var(--sb-color-background-alt);
    color: var(--sb-color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
    /* Prevent text wrapping */
}

/* Specific style for numbers (optional, can just use pills) */
.blog-pagination .page-numbers:not(.next):not(.prev):not(.dots) {
    min-width: 40px;
    /* Ensure numbers are uniform */
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--sb-color-primary);
    color: #fff;
}

.blog-pagination .dots {
    background: transparent;
    color: var(--sb-color-text-tertiary);
}

/* =========================================
   18. Post Navigation (Single)
   ========================================= */
.post-navigation {
    margin-top: var(--sb-spacing-10) !important;
    /* Override inline styles */
    border-top: 1px solid var(--sb-color-border);
    padding-top: var(--sb-spacing-8);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: var(--sb-spacing-6);
}

.nav-previous,
.nav-next {
    width: 48%;
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    padding: var(--sb-spacing-5);
    background: var(--sb-color-background-alt);
    border-radius: var(--sb-radius-lg);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
    height: 100%;
}

.post-navigation a:hover {
    transform: translateY(-3px);
    background: var(--sb-color-border);
}

.nav-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sb-color-text-secondary);
    margin-bottom: var(--sb-spacing-2);
    font-weight: 600;
}

.nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sb-color-text);
    line-height: 1.4;
}

/* =========================================
   18. REFINED PAGINATION & POST NAVIGATION (FIX)
   ========================================= */

/* Pagination Fix */
.blog-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: var(--sb-spacing-2);
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 40px;
    border-radius: 20px;
    background: var(--sb-color-background-alt);
    color: var(--sb-color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 40px;
    width: auto !important;
    /* Force auto width to prevent text overlap */
}

/* Ensure numbers look like circles/pills */
.blog-pagination .page-numbers:not(.next):not(.prev) {
    width: 40px !important;
    padding: 0;
    border-radius: 50%;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--sb-color-primary);
    color: #fff;
}

/* Post Navigation (Single) Fix */
.post-navigation {
    margin-top: 60px !important;
    border-top: 1px solid var(--sb-color-border);
    padding-top: 40px;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    width: 48%;
    flex-grow: 1;
}

.nav-previous a,
.nav-next a {
    display: flex !important;
    flex-direction: column;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    border: 1px solid transparent;
}

.nav-previous a:hover,
.nav-next a:hover {
    transform: translateY(-3px);
    background: #fff;
    border-color: var(--sb-color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 700;
    display: block !important;
}

.nav-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    display: block !important;
}

/* =========================================
   19. CRITICAL FIXES (Featured & Pagination)
   ========================================= */

/* --- Featured Article Styling --- */
.featured-article {
    margin-bottom: var(--sb-spacing-10);
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Image wider than content */
    gap: 0;
    background: var(--sb-color-white);
    border-radius: var(--sb-radius-lg);
    overflow: hidden;
    box-shadow: var(--sb-shadow-md);
    border: 1px solid var(--sb-color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sb-shadow-xl);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    /* Ensure height */
    overflow: hidden;
}

.featured-image__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-card:hover .featured-image__img {
    transform: scale(1.05);
}

.featured-content {
    padding: var(--sb-spacing-8) var(--sb-spacing-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.featured-content .chips {
    margin-bottom: var(--sb-spacing-4);
    display: flex;
    gap: var(--sb-spacing-2);
}

.chip {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.chip--category {
    background: var(--sb-color-primary-light);
    color: var(--sb-color-primary);
}

.chip--featured {
    background: #000;
    color: #fff;
}

.featured-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: var(--sb-spacing-4);
    font-weight: 800;
}

.featured-title a {
    color: var(--sb-color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-title a:hover {
    color: var(--sb-color-primary);
}

.featured-excerpt {
    color: var(--sb-color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--sb-spacing-6);
}

.featured-meta {
    display: flex;
    gap: var(--sb-spacing-4);
    font-size: 13px;
    color: var(--sb-color-text-tertiary);
    font-weight: 500;
    margin-bottom: var(--sb-spacing-6);
    padding-bottom: var(--sb-spacing-6);
    border-bottom: 1px solid var(--sb-color-border);
}

.featured-content .read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--sb-color-primary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.featured-content .read-more:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 250px;
        max-height: 350px;
    }
}

/* --- Pagination FIX --- */

/* 1. Reset the container UL style */
.blog-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: auto !important;
    /* Force auto width */
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 40px auto 0 !important;
}

/* 2. Target ONLY the items (A and SPAN tags) inside */
.blog-pagination ul.page-numbers a.page-numbers,
.blog-pagination ul.page-numbers span.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-width: 44px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--sb-color-border);
    color: var(--sb-color-text);
    font-weight: 600;
    text-decoration: none;
    border-radius: 50%;
    /* Default circle for numbers */
    transition: all 0.2s ease;
}

/* 3. Style Active State */
.blog-pagination ul.page-numbers span.page-numbers.current {
    background: var(--sb-color-primary);
    border-color: var(--sb-color-primary);
    color: #fff;
}

/* 4. Style Next/Prev Buttons (Pill Shape) */
.blog-pagination ul.page-numbers a.next,
.blog-pagination ul.page-numbers a.prev {
    width: auto;
    padding: 0 24px;
    border-radius: 99px;
    /* Pill */
}

/* 5. Hover Effects */
.blog-pagination ul.page-numbers a.page-numbers:hover {
    border-color: var(--sb-color-primary);
    color: var(--sb-color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* =========================================
   20. FINAL PAGINATION OVERRIDE (High Specificity)
   ========================================= */
html body .post-type-archive .blog-pagination ul.page-numbers,
html body .blog .blog-pagination ul.page-numbers,
html body .archive .blog-pagination ul.page-numbers,
html body .search .blog-pagination ul.page-numbers,
html body .blog-pagination ul.page-numbers {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    height: auto !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

/* =========================================
   21. FINAL PAGINATION OVERRIDE (MAXIMUM Specificity)
   ========================================= */
/* Chaining .page-numbers 3 times to beat specificity 0.4.0 */
.blog-pagination ul.page-numbers.page-numbers.page-numbers {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    height: auto !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 40px auto 0 !important;
}

/* Ensure list items reset too */
.blog-pagination ul.page-numbers.page-numbers.page-numbers li {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
}

/* -------------------------------------------------------------------------
 * SINGLE POST REDESIGN (News Style)
 * ------------------------------------------------------------------------- */

/* 1. Single Hero Section */
.single-hero {
    background-color: #f7fafc;
    /* Light gray background */
    padding: var(--sb-spacing-8) 0 var(--sb-spacing-10);
    margin-bottom: var(--sb-spacing-8);
    border-bottom: 1px solid var(--sb-color-border);
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto var(--sb-spacing-8);
    text-align: center;
}

.post-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sb-spacing-3);
    margin-bottom: var(--sb-spacing-4);
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 600;
}

.post-cat-badge {
    color: var(--sb-color-primary);
    background-color: rgba(229, 62, 62, 0.1);
    padding: 2px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.post-cat-badge:hover {
    background-color: var(--sb-color-primary);
    color: white;
    text-decoration: none;
}

.post-date {
    color: var(--sb-color-text-secondary);
}

.post-title-large {
    font-size: 2.5rem;
    /* ~40px */
    line-height: 1.2;
    margin-bottom: var(--sb-spacing-6);
    color: var(--sb-color-black);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .post-title-large {
        font-size: 3.5rem;
        /* ~56px */
    }
}

.post-author-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sb-spacing-3);
}

.post-author-meta .avatar {
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.author-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    font-size: 14px;
}

.author-name {
    font-weight: 700;
    color: var(--sb-color-black);
}

.read-time {
    color: var(--sb-color-text-secondary);
    font-size: 13px;
}

.post-featured-image {
    width: 100%;
    border-radius: var(--sb-radius-lg);
    overflow: hidden;
    box-shadow: var(--sb-shadow-lg);
    margin-bottom: -60px;
    /* Overlap effect if desired, or simpler: */
    /* margin-bottom: 0; */
}

.post-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 600px;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--sb-color-text-secondary);
    text-align: center;
    padding: 8px 0;
    font-style: italic;
}

/* 2. Layout Grid */
.single-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sb-spacing-8);
    margin-top: var(--sb-spacing-8);
}

@media (min-width: 992px) {
    .single-content-grid {
        grid-template-columns: minmax(0, 2fr) 300px;
        /* Content takes remaining space, sidebar fixed 300px */
        align-items: start;
    }
}

/* Main Article Column */
.post-article {
    min-width: 0;
    /* Prevent grid blowout */
}

/* 3. Gutenberg Block Styles (.post-content-body) */
.post-content-body {
    font-family: 'Merriweather', serif;
    /* Or system serif for reading */
    font-size: 18px;
    line-height: 1.8;
    color: #2d3748;
    /* Darker gray for readability */
}

/* Paragraphs */
.post-content-body p {
    margin-bottom: 1.5em;
}

/* Dropcap for first paragraph */
.post-content-body>p:first-of-type::first-letter {
    font-size: 3.5em;
    line-height: 0.8;
    font-weight: 700;
    float: left;
    margin-right: 0.15em;
    color: var(--sb-color-primary);
    font-family: var(--sb-font-primary);
}

/* Headings */
.post-content-body h2 {
    font-family: var(--sb-font-primary);
    font-size: 28px;
    font-weight: 800;
    margin-top: 2em;
    margin-bottom: 0.75em;
    color: var(--sb-color-black);
    position: relative;
}

.post-content-body h3 {
    font-family: var(--sb-font-primary);
    font-size: 22px;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* Lists */
.post-content-body ul,
.post-content-body ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.post-content-body ul li {
    list-style-type: disc;
    margin-bottom: 0.5em;
    padding-left: 0.5em;
}

.post-content-body ol li {
    list-style-type: decimal;
    margin-bottom: 0.5em;
    padding-left: 0.5em;
}

/* Blockquotes */
.post-content-body blockquote {
    background-color: #fff5f5;
    /* Light red/primary tint */
    border-left: 4px solid var(--sb-color-primary);
    margin: 2em 0;
    padding: 1.5em 2em;
    font-style: italic;
    font-family: var(--sb-font-primary);
    font-size: 1.1em;
    color: var(--sb-color-black);
    border-radius: 0 var(--sb-radius-lg) var(--sb-radius-lg) 0;
}

.post-content-body blockquote cite {
    display: block;
    margin-top: 1em;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--sb-color-text-secondary);
    font-style: normal;
}

/* Images */
.post-content-body figure {
    margin: 2em 0;
}

.post-content-body img {
    border-radius: var(--sb-radius-md);
    box-shadow: var(--sb-shadow-md);
}

.post-content-body figcaption {
    font-size: 14px;
    color: var(--sb-color-text-secondary);
    text-align: center;
    margin-top: 8px;
}

/* 4. Post Footer Elements */
.post-end-footer {
    border-top: 1px solid var(--sb-color-border);
    margin-top: var(--sb-spacing-8);
    padding-top: var(--sb-spacing-6);
}

.post-tags-list a {
    display: inline-block;
    background: #f7fafc;
    padding: 4px 12px;
    border-radius: 4px;
    color: var(--sb-color-text-secondary);
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.post-tags-list a:hover {
    background: var(--sb-color-black);
    color: white;
    text-decoration: none;
}

.post-share-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--sb-spacing-6);
    flex-wrap: wrap;
    gap: var(--sb-spacing-4);
}

.share-label {
    font-weight: 700;
    color: var(--sb-color-black);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

/* Author Bio Box */
.author-bio-box {
    background-color: #f9fafb;
    border: 1px solid var(--sb-color-border);
    border-radius: var(--sb-radius-lg);
    padding: var(--sb-spacing-6);
    display: flex;
    gap: var(--sb-spacing-6);
    margin-top: var(--sb-spacing-8);
    align-items: center;
}

.bio-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.bio-title {
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 18px;
}

.bio-desc {
    font-size: 14px;
    color: var(--sb-color-text-secondary);
    margin-bottom: 12px;
}

.bio-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--sb-color-primary);
}

@media (max-width: 600px) {
    .author-bio-box {
        flex-direction: column;
        text-align: center;
    }
}

/* 5. Sidebar Styles */
.post-sidebar {
    /* Fixed width handled by grid */
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
    /* Offset for header */
}

.sidebar-widget {
    background: white;
    border: 1px solid var(--sb-color-border);
    border-radius: var(--sb-radius-lg);
    padding: var(--sb-spacing-6);
    margin-bottom: var(--sb-spacing-6);
    box-shadow: var(--sb-shadow-sm);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--sb-spacing-4);
    padding-bottom: var(--sb-spacing-2);
    border-bottom: 2px solid var(--sb-color-primary);
    display: inline-block;
}

/* TOC Widget */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: var(--sb-color-text);
    font-size: 14px;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--sb-color-primary);
    padding-left: 4px;
}

/* Latest Posts Widget */
.widget-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: start;
}

.widget-post-item:last-child {
    margin-bottom: 0;
}

.widget-post-thumb img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.widget-post-title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
    margin-top: 0;
}

.widget-post-title a {
    color: var(--sb-color-black);
    font-weight: 600;
}

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

.widget-post-date {
    font-size: 12px;
    color: #9ca3af;
}

/* CTA Widget */
.cta-box {
    text-align: center;
}

.cta-box h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.cta-box p {
    font-size: 14px;
    color: var(--sb-color-text-secondary);
    margin-bottom: 16px;
}

.btn-full {
    width: 100%;
}

/* 6. Related Posts Section (Bottom) */
.related-posts-section {
    background-color: #f7fafc;
    padding: var(--sb-spacing-10) 0;
    margin-top: var(--sb-spacing-12);
}

.section-heading {
    text-align: center;
    font-size: 24px;
    margin-bottom: var(--sb-spacing-8);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sb-spacing-6);
}

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.related-card {
    background: white;
    padding: var(--sb-spacing-6);
    border-radius: var(--sb-radius-lg);
    box-shadow: var(--sb-shadow-sm);
    text-decoration: none !important;
    transition: transform 0.2s;
    border: 1px solid var(--sb-color-border);
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sb-shadow-md);
}

.nav-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sb-color-text-secondary);
    font-weight: 700;
    margin-bottom: 8px;
}

.related-card h4 {
    font-size: 18px;
    color: var(--sb-color-black);
    margin: 0;
}

.related-card:hover h4 {
    color: var(--sb-color-primary);
}