body.pagina-blog {
    background:
        radial-gradient(circle at top right, rgba(31, 119, 219, 0.16), transparent 22%),
        radial-gradient(circle at 18% 14%, rgba(245, 139, 0, 0.12), transparent 20%),
        radial-gradient(circle at bottom left, rgba(37, 164, 91, 0.14), transparent 28%),
        linear-gradient(180deg, #f6f2ea 0%, #eef3f2 100%);
}

.blog-shell {
    display: grid;
    gap: 22px;
    margin-top: 16px;
}

.blog-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 20px;
    align-items: stretch;
}

.blog-hero-copy,
.blog-search-card,
.blog-section-card,
.blog-featured-card,
.blog-post-card,
.blog-post-hero,
.blog-related-card {
    background: rgba(255, 252, 248, 0.96);
    border: 1px solid rgba(221, 212, 198, 0.88);
    border-radius: 28px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.blog-hero-copy::before,
.blog-search-card::before,
.blog-section-card::before,
.blog-featured-card::before,
.blog-post-card::before,
.blog-post-hero::before,
.blog-related-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1767c4 0 28%, #f58b00 28% 55%, #25a45b 55% 80%, #dd4646 80% 100%);
}

.blog-hero-copy {
    padding: 34px;
    background:
        radial-gradient(circle at top right, rgba(23, 103, 196, 0.10), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.97) 48%, rgba(255, 248, 239, 0.98) 100%);
}

.blog-hero-copy h1,
.blog-post-hero h1 {
    margin: 10px 0 14px 0;
    font-size: clamp(34px, 4.7vw, 58px);
    line-height: 0.98;
}

.blog-search-card,
.blog-section-card,
.blog-post-hero,
.blog-post-card,
.blog-related-card {
    padding: 24px;
}

.blog-search-card {
    background:
        radial-gradient(circle at top left, rgba(245, 139, 0, 0.10), transparent 24%),
        linear-gradient(180deg, rgba(255, 252, 248, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

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

.blog-featured-card {
    padding: 24px;
    background: linear-gradient(180deg, #fff9ef 0%, #ffffff 100%);
}

.blog-featured-card h2,
.blog-section-head h2,
.blog-post-card h3,
.blog-related-card h3,
.blog-section-card h2,
.blog-section-card h3 {
    margin: 0 0 10px 0;
}

.blog-meta-tag {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1767c4, #2b8ed8);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.blog-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.blog-category-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(18, 69, 89, 0.08);
}

.blog-category-tab.is-active {
    background: linear-gradient(135deg, #1767c4, #3aa7b8);
    color: #fff;
    border-color: transparent;
}

.blog-hero-copy .eyebrow,
.blog-section-card .eyebrow,
.blog-post-hero .eyebrow,
.blog-related-card .eyebrow {
    background: rgba(245, 139, 0, 0.14);
    color: #b96100;
}

.blog-share-inline a,
.blog-share-grid a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(23, 103, 196, 0.08);
    color: #1767c4;
}

.blog-share-inline a:nth-child(2),
.blog-share-grid a:nth-child(2) {
    background: rgba(37, 164, 91, 0.10);
    color: #1e8a4b;
}

.blog-share-inline a:nth-child(3),
.blog-share-grid a:nth-child(3) {
    background: rgba(245, 139, 0, 0.12);
    color: #cb6d00;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    gap: 22px;
    align-items: start;
}

.blog-layout-post {
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
}

.blog-post-detail-page {
    display: grid;
    gap: 22px;
}

.blog-post-feature-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border-radius: 30px;
    border: 1px solid rgba(221, 212, 198, 0.88);
    box-shadow: var(--shadow);
    background: #1d2f35;
}

.blog-post-feature-backdrop {
    position: absolute;
    inset: 0;
    background-image: var(--blog-hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: blur(5px);
    opacity: 0.72;
}

.blog-post-feature-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 28, 33, 0.38) 0%, rgba(11, 28, 33, 0.72) 100%);
}

.blog-post-feature-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    align-content: end;
    min-height: 360px;
    padding: 34px;
    color: #fff;
}

.blog-post-feature-content .blog-back-link,
.blog-post-feature-content .blog-post-summary,
.blog-post-feature-content .blog-post-meta {
    color: rgba(255, 255, 255, 0.92);
}

.blog-post-feature-content .blog-post-meta span {
    border-right-color: rgba(255, 255, 255, 0.26);
}

.blog-post-feature-content .chip {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.blog-post-single-column {
    width: min(920px, 100%);
    justify-self: center;
}

.blog-main-column,
.blog-sidebar,
.blog-post-list,
.blog-sidebar-events,
.blog-rich-text,
.blog-related-grid {
    display: grid;
    gap: 18px;
}

.blog-post-card {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 255, 0.96) 55%, rgba(255, 249, 241, 0.98) 100%);
}

.blog-post-image-wrap {
    display: block;
}

.blog-post-image,
.blog-post-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(221, 212, 198, 0.88);
    background: #f5f4ef;
}

.blog-post-cover {
    height: auto;
    max-height: 420px;
}

.blog-post-body {
    display: grid;
    gap: 12px;
    align-content: start;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.blog-post-meta span {
    padding-right: 10px;
    border-right: 1px solid rgba(93, 107, 109, 0.25);
}

.blog-post-meta span:last-child {
    padding-right: 0;
    border-right: 0;
}

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

.blog-share-inline,
.blog-share-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-share-inline a {
    color: var(--brand-900);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-sidebar-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
}

.blog-mini-event {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(23, 103, 196, 0.14);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(244, 249, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.blog-back-link {
    color: var(--brand-900);
    font-weight: 700;
}

.blog-post-summary {
    font-size: 18px;
    color: var(--muted);
}

.blog-sidebar-list a,
.blog-post-card h3 a,
.blog-back-link {
    transition: color 0.18s ease;
}

.blog-sidebar-list a:hover,
.blog-post-card h3 a:hover,
.blog-back-link:hover {
    color: var(--accent-blue);
}

.blog-post-article {
    display: grid;
    gap: 18px;
}

.blog-gallery-section {
    width: min(920px, 100%);
    justify-self: center;
}

.blog-gallery-stack {
    display: grid;
    gap: 18px;
}

.blog-gallery-item {
    margin: 0;
    display: grid;
    gap: 10px;
}

.blog-gallery-image {
    width: 100%;
    border-radius: 22px;
    border: 1px solid rgba(221, 212, 198, 0.88);
    background: #f5f4ef;
    box-shadow: var(--shadow);
}

.blog-gallery-item figcaption {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.blog-rich-text p {
    margin: 0;
    line-height: 1.75;
    font-size: 17px;
}

.blog-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-empty-state {
    text-align: center;
}

.blog-empty-state .eyebrow {
    justify-self: center;
}

@media (max-width: 1080px) {
    .blog-hero,
    .blog-layout,
    .blog-layout-post,
    .blog-featured-strip,
    .blog-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .blog-post-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .blog-hero-copy h1,
    .blog-post-hero h1 {
        font-size: clamp(27px, 9vw, 36px);
        overflow-wrap: anywhere;
    }

    .blog-hero,
    .blog-post-card,
    .blog-post-hero {
        border-radius: 20px;
    }
}
