/* ─── Blog-Specific Navbar Override ─── */

.blog-page .page-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem 2rem;
    background: rgba(248, 244, 240, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Offset content for fixed navbar */
.blog-page main {
    padding-top: 60px;
}

.blog-page .page-nav.scrolled {
    background: rgba(248, 244, 240, 0.92);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.blog-page .nav-pill {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    gap: 0;
}

.blog-page .nav-logo-link {
    margin-right: 2.5rem;
}

.blog-page .nav-logo {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.blog-page .nav-logo-link:hover .nav-logo {
    transform: scale(1.08);
}

.blog-page .nav-link {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-dim);
    margin-right: 1.8rem;
    padding: 0.3rem 0;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.01em;
}

.blog-page .nav-link:hover {
    color: var(--text);
    opacity: 1;
}

.blog-page .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--olive);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

.blog-page .nav-link:hover::after {
    transform: scaleX(1);
}

.blog-page .nav-link.active {
    color: var(--text);
    font-weight: 500;
}

.blog-page .nav-link.active::after {
    transform: scaleX(1);
    background: var(--olive);
}

.blog-page .nav-cta {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--text);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.blog-page .nav-cta:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.blog-page .nav-hamburger {
    margin-left: auto;
}

/* ─── Premium Blog Hero (listing page) ─── */

.blog-hero {
    padding: 5rem 2rem 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-family: var(--serif);
    font-size: 4rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 1.4rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.blog-hero p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto;
}

/* ─── Blog Grid ─── */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #EAE5DD;
    transition: transform 0.5s ease;
}

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

.blog-card-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 1;
    background: var(--white);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

.blog-tag {
    color: var(--olive);
}

.blog-card h3 {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.blog-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-read-more {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    transition: gap 0.3s;
}

.blog-read-more:hover {
    gap: 0.6rem;
}

/* ─── Full-Width Article Hero Image ─── */

.article-hero-full {
    width: 100%;
    position: relative;
    overflow: hidden;
    max-height: 55vh;
    min-height: 300px;
}

.article-hero-full img {
    width: 100%;
    height: 55vh;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.article-hero-full::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
    pointer-events: none;
}

/* ─── Article Header (below hero image) ─── */

.article-header {
    padding: 3rem 2rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* ─── Article Meta ─── */

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ─── Premium Article Title ─── */

.article-title {
    font-family: var(--serif);
    font-size: 3.6rem;
    font-weight: 400;
    line-height: 1.12;
    margin-bottom: 1.2rem;
    color: var(--text);
    letter-spacing: -0.025em;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.article-title-accent {
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--olive), var(--olive-light));
    border-radius: 2px;
    margin: 0 auto 2rem;
}

/* ─── Author ─── */

.article-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(107, 99, 68, 0.15);
}

.author-info {
    text-align: left;
}

.author-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.author-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─── Glassmorphism Sharing Box ─── */

.article-share {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 4rem;
    float: left;
    margin-left: -5rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 1rem 0.6rem;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--text);
    transition: background 0.3s, color 0.3s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

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

/* ─── Article Content ─── */

.article-content {
    max-width: 680px;
    margin: 0 auto;
    font-family: var(--sans);
    font-size: 1.15rem;
    line-height: 1.85;
    color: #333;
    padding: 0 2rem 5rem;
}

.article-content p {
    margin-bottom: 2rem;
}

.article-content h2 {
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 400;
    margin: 3.5rem 0 1.5rem;
    color: var(--text);
}

.article-content h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 500;
    margin: 2.5rem 0 1rem;
    color: var(--text);
}

.article-content blockquote {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.6;
    margin: 3rem 0;
    padding-left: 2rem;
    border-left: 3px solid var(--olive);
    color: var(--olive);
}

.article-content img {
    border-radius: 8px;
    margin: 3rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ─── Related Articles ─── */

.related-articles {
    background: var(--white);
    padding: 5rem 2rem;
    border-top: 1px solid var(--border);
}

.related-articles h2 {
    text-align: center;
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: var(--text);
}

/* ─── Responsive ─── */

@media (max-width: 900px) {
    .article-share {
        position: static;
        flex-direction: row;
        float: none;
        margin: 0 auto 3rem;
        justify-content: center;
        background: transparent;
        box-shadow: none;
        border: none;
        backdrop-filter: none;
    }

    .article-hero-full {
        max-height: 40vh;
        min-height: 220px;
    }

    .article-hero-full img {
        height: 40vh;
        min-height: 220px;
    }

    .article-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .blog-page .page-nav {
        padding: 0.8rem 1rem;
    }

    .blog-page .nav-link {
        display: none;
    }

    .blog-page .nav-cta {
        display: none;
    }

    .blog-page .nav-hamburger {
        display: flex !important;
    }

    .blog-hero {
        padding: 8rem 1.5rem 3rem;
    }

    .blog-hero h1 {
        font-size: 2.6rem;
    }

    .article-header {
        padding: 0 1.5rem 1.5rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-hero-full {
        max-height: 35vh;
        min-height: 180px;
    }

    .article-hero-full img {
        height: 35vh;
        min-height: 180px;
    }
}