/* ═══════════════════════════════════════════
   BLOG SECTION — Premium Einvits Design
   ═══════════════════════════════════════════ */

/* ── Reading Progress Bar ──────────────────── */
.reading-progress-bar {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    z-index: 1029;
    transition: width .15s linear;
    border-radius: 0 2px 2px 0;
}

/* ── Blog page hero extra spacing ──────────── */
.blog-page .page-hero {
    padding-top: calc(var(--nav-h) + 64px);
}
@media (max-width: 768px) {
    .blog-page .page-hero {
        padding-top: calc(var(--nav-h) + 48px);
    }
}
@media (max-width: 480px) {
    .blog-page .page-hero {
        padding-top: calc(var(--nav-h) + 36px);
    }
}

/* ── Breadcrumbs ───────────────────────────── */
.blog-breadcrumbs {
    padding: calc(var(--nav-h) + 32px) 64px 32px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
}

.breadcrumb-list a {
    text-decoration: none;
    color: var(--muted);
    transition: color .2s;
}

.breadcrumb-list a:hover {
    color: var(--gold);
}

.bc-sep {
    color: var(--border2);
    font-size: 11px;
}

.bc-current {
    color: var(--gold);
    font-weight: 600;
}

/* ── Toolbar (Search + Category Pills) ─────── */
.blog-toolbar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1.5px solid var(--border2);
    border-radius: 100px;
    padding: 10px 20px;
    max-width: 420px;
    transition: var(--tr);
}

.blog-search-form:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 168, 76, .1);
}

.blog-search-form svg {
    flex-shrink: 0;
    color: var(--muted);
}

.blog-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--ink);
    width: 100%;
    font-family: inherit;
}

.blog-search-input::placeholder {
    color: rgba(44, 24, 16, .3);
}

.blog-categories-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: var(--brown);
    background: rgba(201, 168, 76, .08);
    border: 1px solid rgba(201, 168, 76, .15);
    transition: var(--tr);
    white-space: nowrap;
}

.blog-pill:hover,
.blog-pill.active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

.pill-count {
    font-size: 10px;
    background: rgba(0, 0, 0, .1);
    padding: 1px 7px;
    border-radius: 100px;
    font-weight: 700;
}

.blog-pill.active .pill-count {
    background: rgba(255, 255, 255, .25);
}

/* ── Blog Card Grid ────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    transition: transform .3s ease, box-shadow .3s ease;
}

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

.blog-card-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.06);
}

.blog-card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(26, 18, 9, .75);
    backdrop-filter: blur(8px);
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.meta-dot {
    color: var(--border2);
}

.blog-card-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--deep);
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .5px;
    transition: letter-spacing .2s;
}

.blog-card:hover .blog-card-link {
    letter-spacing: 1.5px;
}

/* ── Empty State ───────────────────────────── */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
}

.blog-empty svg {
    margin: 0 auto 20px;
}

.blog-empty h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--deep);
    margin-bottom: 8px;
}

.blog-empty p {
    color: var(--muted);
    margin-bottom: 24px;
}

/* ── Pagination ────────────────────────────── */
.blog-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.blog-pagination nav {
    display: flex;
}

.blog-pagination .pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--brown);
    background: white;
    border: 1px solid var(--border2);
    transition: var(--tr);
}

.blog-pagination .page-item .page-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.blog-pagination .page-item.active .page-link {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

.blog-pagination .page-item.disabled .page-link {
    opacity: .4;
    pointer-events: none;
}

/* ── CTA Banner ────────────────────────────── */
.blog-cta-banner {
    background: var(--deep);
    border-radius: 24px;
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-cta-banner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, .12) 0, transparent 70%);
    pointer-events: none;
}

.blog-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 165, 152, .08) 0, transparent 70%);
    pointer-events: none;
}

.blog-cta-content {
    position: relative;
    z-index: 1;
}

.blog-cta-content h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: var(--cream);
    margin-bottom: 12px;
    line-height: 1.2;
}

.blog-cta-content p {
    color: rgba(253, 248, 243, .5);
    font-size: 15px;
    margin-bottom: 28px;
    font-weight: 300;
}

/* ═══ SINGLE ARTICLE STYLES ═══════════════════ */

.blog-article {
    padding: 0 64px 64px;
}

.blog-article-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.blog-article-category {
    display: inline-block;
    background: rgba(201, 168, 76, .12);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 100px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: var(--tr);
}

.blog-article-category:hover {
    background: var(--gold);
    color: white;
}

.blog-article-title {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    color: var(--deep);
    line-height: 1.15;
    margin-bottom: 20px;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
}

.blog-article-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.blog-tag {
    font-size: 12px;
    color: var(--gold);
    background: rgba(201, 168, 76, .08);
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 600;
}

.blog-article-hero-img {
    max-width: 900px;
    margin: 0 auto 48px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.blog-article-hero-img img {
    width: 100%;
    display: block;
}

/* ── Article Content Prose Styles ──────────── */
.blog-article-content {
    max-width: 740px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.85;
    color: var(--ink);
}

.blog-article-content h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--deep);
    margin: 48px 0 16px;
    line-height: 1.25;
}

.blog-article-content h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--deep);
    margin: 36px 0 12px;
    line-height: 1.3;
}

.blog-article-content p {
    margin-bottom: 20px;
}

.blog-article-content a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
}

.blog-article-content a:hover {
    color: var(--gold-dark);
}

.blog-article-content ul,
.blog-article-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.blog-article-content ul {
    list-style: disc;
}

.blog-article-content ol {
    list-style: decimal;
}

.blog-article-content li {
    margin-bottom: 8px;
}

.blog-article-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 16px 24px;
    margin: 32px 0;
    background: rgba(201, 168, 76, .06);
    border-radius: 0 12px 12px 0;
    color: var(--brown);
    font-style: italic;
}

.blog-article-content img {
    border-radius: 16px;
    margin: 28px 0;
    box-shadow: var(--shadow-sm);
}

.blog-article-content pre {
    background: var(--deep);
    color: var(--cream);
    padding: 20px 24px;
    border-radius: 14px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    margin: 24px 0;
}

.blog-article-content code {
    background: rgba(201, 168, 76, .1);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--gold-dark);
}

.blog-article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    border-radius: 0;
}

/* ── Social Sharing ────────────────────────── */
.blog-share {
    max-width: 740px;
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-share-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-share-links {
    display: flex;
    gap: 10px;
}

.blog-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(201, 168, 76, .08);
    border: 1px solid rgba(201, 168, 76, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--tr);
}

.blog-share-btn:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* ── Related Posts ─────────────────────────── */
.blog-related {
    border-top: 1px solid var(--border);
}

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

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

@media (max-width: 768px) {
    .blog-breadcrumbs {
        padding: 0 20px 24px;
    }

    .blog-article {
        padding: 0 20px 40px;
    }

    .blog-cta-banner {
        padding: 40px 24px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-img-wrap {
        aspect-ratio: 16/9;
    }

    .blog-card-body {
        padding: 18px;
    }

    .blog-article-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .blog-article-content {
        font-size: 15px;
    }

    .blog-article-content h2 {
        font-size: 22px;
    }

    .blog-article-content h3 {
        font-size: 18px;
    }

    .blog-search-form {
        max-width: 100%;
    }

    .blog-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .blog-card-title {
        font-size: 16px;
    }

    .blog-article-hero-img {
        border-radius: 14px;
    }
}
