﻿.blog-page {
    position: relative;
    padding: 56px 0 88px;
    background: radial-gradient(circle at top center, rgba(21, 90, 150, 0.18) 0%, rgba(4, 28, 54, 0) 42%), linear-gradient(180deg, #061a34 0%, #041c36 100%);
}

.blog-shell {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.blog-hero {
    max-width: none;
    margin: 0 0 8px;
}

    .blog-hero .section-kicker {
        display: inline-block;
        margin-bottom: 10px;
        color: #bc8871;
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.22em;
        text-transform: uppercase;
    }

    .blog-hero h1 {
        margin: 0;
        color: #ffffff;
        font-size: clamp(2.6rem, 5vw, 4.2rem);
        line-height: 1.02;
        letter-spacing: -0.035em;
        max-width: none;
        text-wrap: nowrap;
    }

.blog-page-title-single-line {
    white-space: nowrap;
    overflow: visible;
}

.blog-subtitle {
    margin: 14px 0 0;
    max-width: 920px;
    color: #b8c7d9;
    font-size: 1.18rem;
    line-height: 1.65;
    text-wrap: balance;
}

/* MAIN TWO-COLUMN LAYOUT */
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
}

.blog-main {
    min-width: 0;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 24px;
    align-self: start;
    margin-top: -118px;
}

/* SIDEBAR CARD */
.blog-sidebar-card {
    padding: 20px 20px 18px;
    border: 1px solid rgba(184, 199, 217, 0.14);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(22, 59, 94, 0.72) 0%, rgba(7, 37, 68, 0.92) 100%);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

/* AUTHOR CARD */
.blog-author-card {
    text-align: left;
}

/* NEW: wrapper for image + LinkedIn badge */
.blog-author-image-wrapper {
    position: relative;
    display: inline-block;
}

.blog-author-image {
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 0 0 16px;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* NEW: LinkedIn badge overlay */
.linkedin-badge {
    position: absolute;
    right: 10px;
    bottom: 26px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    transition: transform .15s ease, opacity .15s ease;
    text-decoration: none;
}

    .linkedin-badge svg {
        width: 18px;
        height: 18px;
    }

.blog-author-image-wrapper:hover .linkedin-badge {
    transform: scale(1.08);
}

/* Improve spacing inside author card */
.blog-author-card h2 {
    margin-top: 4px;
}

.blog-author-card p {
    margin-bottom: 12px;
}

    .blog-author-card p:last-child {
        margin-bottom: 0;
    }

.blog-sidebar-card h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.blog-sidebar-card p {
    margin: 0;
    color: #b8c7d9;
    font-size: 0.97rem;
    line-height: 1.7;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}

.blog-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(184, 199, 217, 0.18);
    background: rgba(7, 37, 68, 0.6);
    color: #b8c7d9;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    line-height: 1;
    transition: all 160ms ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

    .blog-pill:hover {
        border-color: rgba(188, 136, 113, 0.5);
        background: rgba(12, 47, 84, 0.78);
        color: #ffffff;
        transform: translateY(-1px);
    }

    .blog-pill.active {
        background: rgba(188, 136, 113, 0.2);
        border-color: rgba(188, 136, 113, 0.6);
        color: #f0cab9;
        box-shadow: 0 0 0 1px rgba(188, 136, 113, 0.08);
    }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.blog-card {
    height: 100%;
}

.blog-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 28px 24px;
    border: 1px solid rgba(184, 199, 217, 0.14);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(22, 59, 94, 0.78) 0%, rgba(7, 37, 68, 0.94) 100%);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.blog-card:hover .blog-card-inner {
    transform: translateY(-4px);
    border-color: rgba(188, 136, 113, 0.38);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(188, 136, 113, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-bottom: 14px;
}

.blog-date {
    color: #b8c7d9;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.blog-category {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(188, 136, 113, 0.14);
    border: 1px solid rgba(188, 136, 113, 0.28);
    color: #f0cab9;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.blog-title {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 2vw, 1.95rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

    .blog-title,
    .blog-title a {
        color: #ffffff;
        text-decoration: none;
    }

        .blog-title a:hover {
            color: #d7e5f7;
        }

.blog-excerpt {
    margin: 0;
    color: #b8c7d9;
    font-size: 1.02rem;
    line-height: 1.65;
    flex: 1 1 auto;
}

.blog-actions {
    margin-top: 20px;
    padding-top: 2px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 180ms ease, transform 180ms ease;
}

    .blog-read-more:hover {
        color: #f0cab9;
        transform: translateX(2px);
    }

.blog-empty {
    display: flex;
    justify-content: center;
}

.blog-empty-card {
    width: min(680px, 100%);
    padding: 40px 32px;
    border-radius: 24px;
    border: 1px solid rgba(184, 199, 217, 0.14);
    background: linear-gradient(180deg, rgba(22, 59, 94, 0.72) 0%, rgba(7, 37, 68, 0.92) 100%);
    text-align: center;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

    .blog-empty-card h2 {
        margin: 0 0 10px;
        color: #ffffff;
        font-size: 1.75rem;
    }

    .blog-empty-card p {
        margin: 0;
        color: #b8c7d9;
        line-height: 1.65;
    }

/* RESPONSIVE */
@media (max-width: 1180px) {
    .blog-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 28px;
    }

    .blog-hero h1 {
        font-size: clamp(2.3rem, 4.8vw, 3.8rem);
    }

    .blog-sidebar {
        margin-top: -96px;
    }
}

@media (max-width: 980px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        order: 2;
        top: auto;
        margin-top: 0;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-shell {
        width: min(100%, calc(100% - 32px));
    }

    .blog-card-inner {
        padding: 24px 22px 22px;
    }

    .blog-hero {
        max-width: 100%;
    }

        .blog-hero h1,
        .blog-page-title-single-line {
            white-space: normal;
            text-wrap: balance;
        }

    .blog-subtitle {
        max-width: 100%;
    }

    .blog-author-image {
        max-width: 220px;
    }
}

@media (max-width: 640px) {
    .blog-page {
        padding: 42px 0 64px;
    }

    .blog-hero {
        margin-bottom: 24px;
    }

        .blog-hero h1 {
            font-size: clamp(2.2rem, 10vw, 3rem);
            line-height: 1.04;
        }

    .blog-subtitle {
        font-size: 1.05rem;
    }

    .blog-filters {
        gap: 8px;
        margin: 0 0 20px;
    }

    .blog-pill {
        min-height: 36px;
        padding: 7px 12px;
        font-size: 0.76rem;
    }

    .blog-title {
        font-size: 1.4rem;
    }

    .blog-excerpt {
        font-size: 0.98rem;
    }

    .blog-sidebar-card {
        padding: 18px;
    }

    .blog-author-image {
        max-width: 100%;
    }
}
