/**
 * ESP Blog Styles
 *
 * Single blog post and blog archive pages for Equipment Solutions Parts
 */

/* Base Font - Match site navigation */
.esp-single-post,
.esp-blog-archive {
    font-family: var(--esp-font-sans);
}

/* Body Background */
.esp-single-post {
    background-color: #f7f7f7;
}

/* ========================================
   SINGLE BLOG POST
   ======================================== */

/* Blog Post Main Container */
.esp-blog-post {
    min-height: calc(100vh - 400px);
}

/* Article Container */
.esp-blog-article {
    font-family: var(--esp-font-sans);
    padding-bottom: 3rem;
}

/* ========================================
   ARTICLE HEADER
   ======================================== */

.esp-blog-article__header {
    font-family: var(--esp-font-sans);
    background: #fff;
    padding: 2.5rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.esp-blog-article__header-inner {
    max-width: 48rem;
    margin: 0 auto;
}

/* Category Tags */
.esp-blog-article__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.esp-blog-article__category {
    display: inline-block;
    font-family: var(--esp-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #C9A227;
    background: rgba(201, 162, 39, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.esp-blog-article__category:hover {
    background: #C9A227;
    color: #fff;
}

/* Title */
.esp-blog-article__title {
    font-family: var(--esp-font-heading) !important;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    margin: 0 0 1rem;
}

/* Meta (date, reading time) */
.esp-blog-article__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--esp-font-sans);
    font-size: 0.9375rem;
    color: #6b7280;
}

.esp-blog-article__date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.esp-blog-article__reading-time {
    position: relative;
    padding-left: 1.5rem;
}

.esp-blog-article__reading-time::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #9ca3af;
    border-radius: 50%;
}

/* ========================================
   FEATURED IMAGE
   ======================================== */

.esp-blog-article__featured-image {
    background: #fff;
    padding: 0 0 2rem;
}

.esp-blog-article__featured-image .esp-container {
    max-width: 56rem;
    margin: 0 auto;
}

.esp-blog-article__image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========================================
   ARTICLE CONTENT
   ======================================== */

.esp-blog-article__content {
    padding: 3rem 0;
}

.esp-blog-article__content-inner {
    max-width: 48rem;
    margin: 0 auto;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 3rem;
}

/* Prose Typography */
.esp-blog-article__content h2 {
    font-family: var(--esp-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #C9A227;
}

.esp-blog-article__content h2:first-child {
    margin-top: 0;
}

.esp-blog-article__content h3 {
    font-family: var(--esp-font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 0.75rem;
}

.esp-blog-article__content h4 {
    font-family: var(--esp-font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 0.5rem;
}

.esp-blog-article__content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #4b5563;
    margin: 0 0 1.5rem;
}

.esp-blog-article__content p:last-child {
    margin-bottom: 0;
}

.esp-blog-article__content a {
    color: #C9A227;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.esp-blog-article__content a:hover {
    color: #b8931f;
}

/* Lists */
.esp-blog-article__content ul,
.esp-blog-article__content ol {
    margin: 0 0 1.5rem;
    padding-left: 1.75rem;
}

.esp-blog-article__content li {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.esp-blog-article__content li:last-child {
    margin-bottom: 0;
}

.esp-blog-article__content ul li {
    list-style-type: disc;
}

.esp-blog-article__content ol li {
    list-style-type: decimal;
}

/* Nested lists */
.esp-blog-article__content ul ul,
.esp-blog-article__content ol ol,
.esp-blog-article__content ul ol,
.esp-blog-article__content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Blockquotes */
.esp-blog-article__content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-left: 4px solid #C9A227;
    border-radius: 0 0.5rem 0.5rem 0;
}

.esp-blog-article__content blockquote p {
    font-size: 1.125rem;
    font-style: italic;
    color: #e5e7eb;
    margin: 0;
    line-height: 1.7;
}

.esp-blog-article__content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    font-style: normal;
    color: #C9A227;
}

/* Code Blocks */
.esp-blog-article__content code {
    font-family: 'SF Mono', Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: 0.9em;
    background: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    color: #374151;
}

.esp-blog-article__content pre {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #1f2937;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.esp-blog-article__content pre code {
    background: transparent;
    padding: 0;
    color: #e5e7eb;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Images in Content */
.esp-blog-article__content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0.5rem;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* First image in article (hero-style) */
.esp-blog-article__content section:first-child > div:first-child img,
.esp-blog-article__content > article > section:first-child > div:first-child img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

.esp-blog-article__content figure {
    margin: 2rem 0;
}

.esp-blog-article__content figure img {
    margin: 0;
}

.esp-blog-article__content figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    font-style: italic;
}

/* Tables */
.esp-blog-article__content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.esp-blog-article__content th,
.esp-blog-article__content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.esp-blog-article__content th {
    font-weight: 600;
    color: #1f2937;
    background: #f9fafb;
}

.esp-blog-article__content td {
    color: #4b5563;
}

/* Horizontal Rule */
.esp-blog-article__content hr {
    margin: 2.5rem 0;
    border: none;
    border-top: 2px solid #e5e7eb;
}

/* Strong/Bold */
.esp-blog-article__content strong {
    color: #1f2937;
    font-weight: 600;
}

/* ========================================
   ARTICLE FOOTER (Tags, Back Link)
   ======================================== */

.esp-blog-article__footer {
    background: #fff;
    border-top: 1px solid #e5e5e5;
}

.esp-blog-article__footer-inner {
    max-width: 48rem;
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tags */
.esp-blog-article__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.esp-blog-article__tags-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-right: 0.25rem;
}

.esp-blog-article__tag {
    display: inline-block;
    font-size: 0.8125rem;
    color: #4b5563;
    background: #f3f4f6;
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.esp-blog-article__tag:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Back to Blog Link */
.esp-blog-article__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #C9A227;
    text-decoration: none;
    transition: color 0.15s ease;
}

.esp-blog-article__back-link:hover {
    color: #b8931f;
}

.esp-blog-article__back-link svg {
    transition: transform 0.15s ease;
}

.esp-blog-article__back-link:hover svg {
    transform: translateX(-2px);
}

/* ========================================
   TROUBLESHOOTING CHAT SECTION
   ======================================== */

.esp-blog-troubleshoot-chat {
    margin: 2.5rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.esp-blog-troubleshoot-chat__intro {
    text-align: center;
    margin-bottom: 1.5rem;
}

.esp-blog-troubleshoot-chat__title {
    font-family: var(--esp-font-heading) !important;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem;
}

.esp-blog-troubleshoot-chat__desc {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .esp-blog-troubleshoot-chat {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }

    .esp-blog-troubleshoot-chat__title {
        font-size: 1.25rem;
    }

    .esp-blog-troubleshoot-chat__desc {
        font-size: 0.9375rem;
    }
}

/* ========================================
   MOBILE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .esp-blog-article__header {
        padding: 1.5rem 0;
    }

    .esp-blog-article__title {
        font-size: 1.75rem;
    }

    .esp-blog-article__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .esp-blog-article__reading-time {
        padding-left: 0;
    }

    .esp-blog-article__reading-time::before {
        display: none;
    }

    .esp-blog-article__featured-image {
        padding: 0 0 1.5rem;
    }

    .esp-blog-article__image {
        border-radius: 0;
    }

    .esp-blog-article__content {
        padding: 2rem 0;
    }

    .esp-blog-article__content-inner {
        padding: 1.5rem;
        border-radius: 0;
        margin: 0 -1rem;
    }

    .esp-blog-article__content h2 {
        font-size: 1.375rem;
        margin: 2rem 0 0.75rem;
    }

    .esp-blog-article__content h3 {
        font-size: 1.125rem;
    }

    .esp-blog-article__content p,
    .esp-blog-article__content li {
        font-size: 1rem;
    }

    .esp-blog-article__content blockquote {
        padding: 1rem 1.25rem;
        margin: 1.5rem 0;
    }

    .esp-blog-article__content blockquote p {
        font-size: 1rem;
    }

    .esp-blog-article__footer-inner {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .esp-blog-article__title {
        font-size: 1.5rem;
    }

    .esp-blog-article__categories {
        gap: 0.375rem;
    }

    .esp-blog-article__category {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ========================================
   INLINE STYLE OVERRIDES
   For content with embedded HTML/inline styles
   ======================================== */

/* Override inline h1 styles (content should not have h1) */
.esp-blog-article__content h1 {
    display: none !important;
}

/* Override inline h2 styles */
.esp-blog-article__content h2 {
    font-family: var(--esp-font-heading) !important;
    color: #1f2937 !important;
    font-size: 1.75rem !important;
    border-bottom: 2px solid #C9A227 !important;
    padding-bottom: 0.5rem !important;
    margin: 2.5rem 0 1rem !important;
}

/* Override inline h3 styles */
.esp-blog-article__content h3 {
    font-family: var(--esp-font-heading) !important;
    color: #374151 !important;
    font-size: 1.375rem !important;
    margin: 2rem 0 0.75rem !important;
}

/* Override inline paragraph styles */
.esp-blog-article__content p {
    font-size: 1.0625rem !important;
    line-height: 1.8 !important;
}

/* Override inline list styles */
.esp-blog-article__content ul {
    list-style-type: disc !important;
    padding-left: 1.75rem !important;
    margin-bottom: 1.5rem !important;
}

.esp-blog-article__content ul[style*="list-style-type: none"] {
    list-style-type: none !important;
    padding-left: 0 !important;
}

.esp-blog-article__content li {
    font-size: 1.0625rem !important;
    line-height: 1.8 !important;
    margin-bottom: 0.5rem !important;
}

/* Product callout boxes */
.esp-blog-article__content .product-callout {
    border: 2px solid #1f2937 !important;
    background: #fff !important;
    padding: 2rem !important;
    border-radius: 0.75rem !important;
    margin: 2.5rem 0 !important;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.esp-blog-article__content .product-callout h3 {
    color: #1f2937 !important;
    font-size: 1.5rem !important;
    margin: 0 0 0.75rem !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.esp-blog-article__content .product-callout p {
    margin-bottom: 1.25rem !important;
}

.esp-blog-article__content .product-callout .btn-primary,
.esp-blog-article__content .product-callout a[style*="background-color"] {
    background-color: #C9A227 !important;
    color: #fff !important;
    padding: 0.875rem 2rem !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: background-color 0.15s ease !important;
}

.esp-blog-article__content .product-callout .btn-primary:hover,
.esp-blog-article__content .product-callout a[style*="background-color"]:hover {
    background-color: #b8931f !important;
}

/* Warning/alert boxes */
.esp-blog-article__content div[style*="background-color: #fff3cd"] {
    background-color: #fef9e7 !important;
    border-left: 4px solid #C9A227 !important;
    padding: 1rem 1.25rem !important;
    border-radius: 0 0.5rem 0.5rem 0 !important;
    margin: 1.5rem 0 !important;
}

/* Info boxes with dark border */
.esp-blog-article__content div[style*="border-left: 5px solid #2c3e50"] {
    background-color: #f8fafc !important;
    border-left: 4px solid #1f2937 !important;
    padding: 1.25rem 1.5rem !important;
    border-radius: 0 0.5rem 0.5rem 0 !important;
}

/* ========================================
   ESP CONTAINER (ensure content is centered)
   ======================================== */

.esp-blog-article__content-inner {
    max-width: 48rem;
    margin: 0 auto;
    padding: 2.5rem 3rem;
}

/* Nested article from schema.org markup */
.esp-blog-article__content > article {
    width: 100%;
}

.esp-blog-article__content > article > section {
    margin-bottom: 2rem;
}

/* ========================================
   FLOATING CHAT NUDGE
   ======================================== */

.esp-blog-chat-nudge {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 320px;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #C9A227;
    padding: 1rem 1.25rem;
    cursor: pointer;
    opacity: 0;
    transform: translateX(120%);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: var(--esp-font-sans);
}

.esp-blog-chat-nudge--visible {
    opacity: 1;
    transform: translateX(0);
}

.esp-blog-chat-nudge--dismissing {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Close button */
.esp-blog-chat-nudge__close {
    position: absolute;
    top: 0.375rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.125rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.125rem 0.25rem;
    line-height: 1;
    transition: color 0.15s ease;
}

.esp-blog-chat-nudge__close:hover {
    color: #4b5563;
}

/* Icon */
.esp-blog-chat-nudge__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A227;
}

.esp-blog-chat-nudge__icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.esp-blog-chat-nudge--visible .esp-blog-chat-nudge__icon {
    animation: espNudgePulse 1.2s ease-in-out 3;
}

@keyframes espNudgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(201, 162, 39, 0.2); }
}

/* Content */
.esp-blog-chat-nudge__content {
    flex: 1;
    min-width: 0;
    padding-right: 0.75rem;
}

.esp-blog-chat-nudge__name {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #C9A227;
    margin-bottom: 0.25rem;
}

.esp-blog-chat-nudge__message {
    font-size: 0.875rem;
    line-height: 1.45;
    color: #374151;
    margin: 0;
}

/* Scroll-to highlight on chat section */
.esp-blog-troubleshoot-chat--highlighted {
    animation: espChatHighlight 1.5s ease-out;
}

@keyframes espChatHighlight {
    0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.5); }
    30% { box-shadow: 0 0 0 8px rgba(201, 162, 39, 0.3); }
    100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .esp-blog-chat-nudge {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        max-width: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .esp-header,
    .esp-footer,
    .esp-footer-cta,
    .esp-breadcrumbs,
    .esp-blog-article__back-link,
    .esp-blog-chat-nudge {
        display: none !important;
    }

    .esp-single-post {
        background: #fff;
    }

    .esp-blog-article__content-inner {
        box-shadow: none;
        padding: 0;
    }

    .esp-blog-article__content blockquote {
        background: #f9fafb;
        border-left-color: #374151;
    }

    .esp-blog-article__content blockquote p {
        color: #374151;
    }
}

/* ========================================
   BLOG ARCHIVE PAGE
   ======================================== */

/* Body Background */
.esp-blog-archive {
    background-color: #f7f7f7;
}

/* Main Container */
.esp-blog-archive-main {
    min-height: calc(100vh - 400px);
}

/* Archive Header */
.esp-blog-archive__header {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    padding: 3rem 0;
    text-align: center;
}

.esp-blog-archive__title {
    font-family: var(--esp-font-heading) !important;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
}

.esp-blog-archive__description {
    font-family: var(--esp-font-sans);
    font-size: 1.125rem;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Archive Content Container */
.esp-blog-archive__content {
    padding: 3rem 0;
}

/* Blog Grid */
.esp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Blog Card */
.esp-blog-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.esp-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Card Image */
.esp-blog-card__image-link {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.esp-blog-card:hover .esp-blog-card__image {
    transform: scale(1.05);
}

.esp-blog-card__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #9ca3af;
}

/* Card Content */
.esp-blog-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.esp-blog-card__categories {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #C9A227;
    margin-bottom: 0.5rem;
}

.esp-blog-card__title {
    font-family: var(--esp-font-heading) !important;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.esp-blog-card__title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.15s ease;
}

.esp-blog-card__title a:hover {
    color: #C9A227;
}

.esp-blog-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.esp-blog-card__reading-time {
    position: relative;
    padding-left: 1rem;
}

.esp-blog-card__reading-time::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    background: #9ca3af;
    border-radius: 50%;
}

.esp-blog-card__excerpt {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

.esp-blog-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #C9A227;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.15s ease;
}

.esp-blog-card__read-more:hover {
    color: #b8931f;
}

.esp-blog-card__read-more svg {
    transition: transform 0.15s ease;
}

.esp-blog-card__read-more:hover svg {
    transform: translateX(2px);
}

/* Pagination */
.esp-blog-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.esp-blog-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.esp-blog-pagination li {
    margin: 0;
}

.esp-blog-pagination a,
.esp-blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.esp-blog-pagination a {
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.esp-blog-pagination a:hover {
    background: #f9fafb;
    border-color: #C9A227;
    color: #C9A227;
}

.esp-blog-pagination .current {
    background: #C9A227;
    color: #fff;
    border: 1px solid #C9A227;
}

.esp-blog-pagination .prev,
.esp-blog-pagination .next {
    padding: 0 1rem;
}

/* Empty State */
.esp-blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.esp-blog-empty h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem;
}

.esp-blog-empty p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 1.5rem;
}

/* ========================================
   BLOG ARCHIVE RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .esp-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .esp-blog-archive__header {
        padding: 2rem 0;
    }

    .esp-blog-archive__title {
        font-size: 2rem;
    }

    .esp-blog-archive__description {
        font-size: 1rem;
    }

    .esp-blog-archive__content {
        padding: 2rem 0;
    }

    .esp-blog-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .esp-blog-card__content {
        padding: 1.25rem;
    }

    .esp-blog-card__title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .esp-blog-archive__header {
        padding: 1.5rem 0;
    }

    .esp-blog-archive__title {
        font-size: 1.5rem;
    }

    .esp-blog-card__excerpt {
        display: none;
    }
}
