/* ============================================
   BLOG POST — FindYourLocalJob
   Estilo editorial para artículos individuales
   Inspirado en diseño de revista/periódico digital
   ============================================ */

/* ── Body ── */
body.blog-post-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #1a1a2e;
}

/* ── Breadcrumb ── */
.blog-breadcrumb {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px 0;
    font-size: 0.82rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-breadcrumb a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-breadcrumb a:hover {
    color: #0077B5;
}

.blog-breadcrumb .separator {
    color: #ccc;
    font-size: 0.7rem;
}

.blog-breadcrumb .current {
    color: #666;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

/* ── Article Header ── */
.blog-post-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 0;
    text-align: center;
}

.blog-post-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    margin: 0 0 32px 0;
    letter-spacing: -0.5px;
}

/* ── Author Bar ── */
.blog-post-author-bar {
    max-width: 780px;
    margin: 0 auto;
    padding: 24px 24px 0;
}

.blog-post-author-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.blog-post-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-post-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-post-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-author-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0077B5, #00A0DC);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 700;
}

.blog-post-author-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-date {
    font-size: 0.88rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ── Article Body ── */
.blog-post-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 24px 0;
    text-align: justify;
}

.blog-post-body > p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin: 0 0 20px 0;
}

.blog-post-body > p:first-child {
    font-size: 1.12rem;
    color: #222;
}

.blog-post-body h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 48px 0 20px 0;
    line-height: 1.3;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.blog-post-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 36px 0 16px 0;
    line-height: 1.35;
}

.blog-post-body a {
    color: #0077B5;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.blog-post-body a:hover {
    color: #005885;
}

.cite-ref {
    font-size: 0.8em;
    vertical-align: super;
    line-height: 0;
    text-decoration: none;
    font-weight: 600;
}

.blog-post-sources li:target {
    background: rgba(0, 119, 181, 0.08);
    border-radius: 4px;
    padding: 2px 4px;
    margin-left: -4px;
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 0 0 24px 0;
    padding-left: 24px;
}

.blog-post-body li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 8px;
}

.blog-post-body strong {
    color: #1a1a2e;
    font-weight: 700;
}

/* Blockquote — editorial pull-quote style */
.blog-post-body blockquote {
    margin: 36px 0;
    padding: 24px 28px;
    background: #f8fafc;
    border-left: 4px solid #0077B5;
    border-radius: 0 12px 12px 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    font-style: italic;
}

.blog-post-body blockquote p {
    margin: 0 0 12px 0;
}

.blog-post-body blockquote p:last-child {
    margin: 0;
}

/* CTA inline block */
.blog-post-cta {
    margin: 48px 0;
    padding: 32px;
    background: linear-gradient(135deg, #e8f4fd, #d6ecf9);
    border-radius: 16px;
    text-align: center;
}

.blog-post-cta p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 16px 0;
}

.blog-post-cta a.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #0077B5, #005885);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 119, 181, 0.3);
}

.blog-post-cta a.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 119, 181, 0.4);
    color: white;
}

/* ── Sources / References ── */
.blog-post-sources {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-post-sources-inner {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #f0f0f0;
}

.blog-post-sources h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px 0;
}

.blog-post-sources ol {
    margin: 0;
    padding-left: 24px;
}

.blog-post-sources li {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 12px;
}

.blog-post-sources li a {
    color: #0077B5;
    text-decoration: none;
    word-break: break-all;
}

.blog-post-sources li a:hover {
    text-decoration: underline;
}

/* ── About the Author ── */
.blog-post-about-author {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 24px 0;
}

.blog-post-about-author-inner {
    text-align: center;
    padding: 40px 32px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
}

.blog-post-about-author h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-post-about-author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
}

.blog-post-about-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-about-author-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0077B5, #00A0DC);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
}

.blog-post-about-author p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #555;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Prev / Next Navigation ── */
.blog-post-nav {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 24px 0;
}

.blog-post-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid #e8e8e8;
}

.blog-post-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a2e;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s;
    max-width: 48%;
}

.blog-post-nav-link:hover {
    border-color: #0077B5;
    color: #0077B5;
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.1);
}

.blog-post-nav-link i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.blog-post-nav-link--disabled {
    opacity: 0.4;
    pointer-events: none;
}

.blog-post-nav-link--next {
    margin-left: auto;
    text-align: right;
}

.blog-post-nav-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.blog-post-nav-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Related Articles ── */
.blog-related-section {
    margin-top: 64px;
    padding: 64px 0 80px;
    background: #f5f5f5;
}

.blog-related-section .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-related-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin: 0 0 40px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.blog-related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border: 1px solid #eee;
}

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

.blog-related-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.blog-related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-related-card:hover .blog-related-card-image img,
.blog-related-card:hover .blog-related-card-placeholder {
    transform: scale(1.05);
}

.blog-related-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.4s;
}

.blog-related-card-body {
    padding: 16px;
}

.blog-related-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.35;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-related-card-excerpt {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-related-card-author {
    font-size: 0.75rem;
    color: #999;
}

/* ── Reading Progress Bar ── */
.blog-progress-bar {
    position: fixed;
    top: 56px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #0077B5, #00D4FF);
    z-index: 8999;
    transition: width 0.1s linear;
}

/* ── Share Buttons ── */
.blog-post-share {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-post-share-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.blog-post-share-btn:hover {
    background: #0077B5;
    color: white;
    transform: scale(1.1);
}

/* ── Blog Footer ── */
.blog-footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 0 0;
}

.blog-footer .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand .footer-logo img {
    height: 28px;
    width: 28px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #00D4FF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

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

@media (max-width: 768px) {
    .blog-post-title {
        font-size: 1.9rem;
    }

    .blog-post-body h2 {
        font-size: 1.4rem;
        margin-top: 36px;
    }

    .blog-post-body h3 {
        font-size: 1.15rem;
    }

    .blog-post-nav-inner {
        flex-direction: column;
    }

    .blog-post-nav-link {
        max-width: 100%;
    }

    .blog-post-nav-link--next {
        margin-left: 0;
    }

    .blog-related-grid {
        grid-template-columns: 1fr;
    }

    .blog-related-title {
        font-size: 1.3rem;
    }

    .blog-post-share {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .blog-breadcrumb {
        padding-top: 70px;
    }

    .blog-post-title {
        font-size: 1.6rem;
    }

    .blog-post-cta {
        padding: 24px 20px;
    }

    .blog-post-about-author-inner {
        padding: 28px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
