.blog-page,
.blog-post-page {
    background: linear-gradient(180deg, #fffdf9 0%, #f8fafc 100%);
}

.blog-hero {
    max-width: 960px;
    padding: 64px 0 26px;
    text-align: center;
}

.blog-hero h1,
.blog-post-hero h1 {
    margin: 0;
    color: var(--primary);
    font-size: clamp(2.3rem, 6vw, 4.7rem);
    line-height: 1.02;
}

.blog-hero > p:not(.eyebrow),
.blog-post-hero > p {
    max-width: 680px;
    margin: 16px auto 0;
    color: var(--muted);
    font-weight: 650;
    line-height: 1.7;
}

.blog-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) auto;
    gap: 10px;
    margin: 26px auto 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.blog-search input,
.blog-search select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--primary);
    font: inherit;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 0 56px;
}

.blog-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(16, 35, 63, 0.06);
}

.blog-card-cover {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--plexo-green-pale), var(--plexo-peach));
    color: var(--primary);
    font-size: 2.4rem;
    font-weight: 900;
    text-decoration: none;
}

.blog-card-cover img,
.blog-post-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.blog-card-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.blog-card-body small {
    color: var(--accent-strong);
    font-weight: 900;
}

.blog-card-body h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.18rem;
    line-height: 1.25;
}

.blog-card-body h2 a,
.blog-card-body div a {
    color: inherit;
    text-decoration: none;
}

.blog-card-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.blog-card-body div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.blog-card-body div a {
    color: var(--primary);
}

.blog-pagination,
.blog-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 0 56px;
}

.blog-pagination a {
    color: var(--primary);
    font-weight: 900;
}

.blog-empty {
    min-height: 260px;
    flex-direction: column;
    text-align: center;
}

.blog-post-container {
    max-width: 920px;
    padding: 34px 0 64px;
}

.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.blog-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.blog-post-hero {
    padding: 34px 0 22px;
    text-align: center;
}

.blog-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 22px auto 28px;
}

.blog-share a,
.blog-share button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid rgba(234, 216, 202, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(18, 55, 42, 0.06);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease;
}

.blog-share a::before,
.blog-share button::before {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--plexo-green-pale);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 1000;
    line-height: 1;
}

.blog-share a:hover,
.blog-share button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 26, 0.45);
    background: #ffffff;
    color: var(--accent-strong);
    box-shadow: 0 16px 30px rgba(18, 55, 42, 0.10);
}

.blog-share a[href*="whatsapp"]::before {
    content: "W";
    background: rgba(37, 211, 102, 0.14);
    color: #128c4a;
}

.blog-share a[href*="facebook"]::before {
    content: "f";
    background: rgba(24, 119, 242, 0.12);
    color: #1877f2;
}

.blog-share a[href*="twitter"]::before,
.blog-share a[href*="x.com"]::before {
    content: "X";
    background: rgba(0, 0, 0, 0.08);
    color: #111111;
}

.blog-share a[href*="linkedin"]::before {
    content: "in";
    background: rgba(10, 102, 194, 0.12);
    color: #0a66c2;
}

.blog-share button::before {
    content: "#";
    background: var(--plexo-peach);
    color: var(--accent-strong);
}

.blog-share button.is-copied {
    border-color: rgba(18, 55, 42, 0.25);
    background: var(--plexo-green-pale);
    color: var(--primary);
}

.blog-post-cover {
    aspect-ratio: 16 / 8;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--plexo-green-pale), var(--plexo-peach));
    color: var(--primary);
    font-size: 4rem;
    font-weight: 900;
    box-shadow: var(--shadow);
}

.blog-post-content {
    margin-top: 28px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.85;
}

.blog-post-content p {
    margin: 0 0 1.2em;
}

.blog-post-content p:last-child {
    margin-bottom: 0;
}

.blog-post-content h2,
.blog-post-content h3 {
    margin: 1.6em 0 0.65em;
    color: var(--primary);
    line-height: 1.2;
}

.blog-post-content h2 {
    font-size: clamp(1.55rem, 4vw, 2.1rem);
}

.blog-post-content h3 {
    font-size: clamp(1.25rem, 3vw, 1.55rem);
}

.blog-post-content a {
    color: var(--accent-strong);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-post-content blockquote {
    margin: 1.5em 0;
    padding: 14px 18px;
    border-left: 5px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: var(--plexo-peach);
    color: var(--primary);
    font-weight: 750;
}

.blog-post-content ul,
.blog-post-content ol {
    display: grid;
    gap: 8px;
    margin: 1em 0 1.35em;
    padding-left: 1.45em;
}

.blog-post-content strong,
.blog-post-content b {
    font-weight: 900;
}

.blog-post-content u {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-related {
    margin-top: 42px;
}

.blog-related-head {
    text-align: center;
}

.blog-related-head h2 {
    margin: 0;
    color: var(--primary);
}

.blog-related-grid {
    padding-bottom: 0;
}

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

@media (max-width: 640px) {
    .blog-search,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-body div,
    .blog-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-post-content {
        padding: 20px;
    }
}

@media (max-width: 560px) {
    .blog-share {
        flex-wrap: nowrap;
        justify-content: flex-start;
        max-width: calc(100vw - 32px);
        overflow-x: auto;
        padding: 0 2px 8px;
        scrollbar-width: none;
    }

    .blog-share::-webkit-scrollbar {
        display: none;
    }

    .blog-share a,
    .blog-share button {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 0 13px;
        font-size: 0.78rem;
    }
}
