html {
    overflow-y: scroll;
}

.blog-detail-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    padding: 10px 0;
}

.blog-detail-breadcrumb__list,
.blog-detail-breadcrumb .breadcrumb.blog-detail-breadcrumb__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
    list-style: none;
    background: transparent;
}

.blog-detail-breadcrumb__list > .breadcrumb-item,
.blog-detail-breadcrumb__list > li {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    max-width: none;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    white-space: nowrap;
}

.blog-detail-breadcrumb__list > .breadcrumb-item + .breadcrumb-item::before,
.blog-detail-breadcrumb__list > li + li::before {
    float: none !important;
    display: inline-block;
    padding: 0 8px;
    color: #9ca3af;
    content: "/\00a0";
    font-weight: 400;
}

.blog-detail-breadcrumb__list .breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
    line-height: 1.4;
}

.blog-detail-breadcrumb__list .breadcrumb-item a:hover {
    color: #c92127;
}

.blog-detail-breadcrumb__list .breadcrumb-item.active,
.blog-detail-breadcrumb__list > li.active {
    color: #1f2937;
    font-weight: 500;
    min-width: 0;
    max-width: min(420px, 48vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.blog-detail-main {
    padding-top: 28px;
    padding-bottom: 48px;
    background: #f5f6f8;
}

.blog-article {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-article__header {
    order: 1;
    padding: 28px 28px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.blog-article__title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: #1a1a2e;
    letter-spacing: -0.4px;
}

.blog-article__subtitle-wrap {
    margin: 0 0 16px;
}

.blog-article__subtitle {
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
    color: #4b5563;
}

.blog-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #6b7280;
}

.blog-article__meta-author-wrap {
    display: inline-flex;
}

.blog-article__meta-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #374151 !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s;
}

.blog-article__meta-author:hover {
    color: #c92127 !important;
}

.blog-article__meta-author:hover .blog-article__meta-name {
    color: #c92127;
}

.blog-article__meta-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef1f5;
    border: 1px solid #e8eaed;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.blog-article__meta-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-article__meta-author-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
}

.blog-article__meta-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #9ca3af;
}

.blog-article__meta-name {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.blog-article__meta-sep {
    display: none;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}

.blog-article__meta-date {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.blog-article__meta-date time {
    color: inherit;
}

.blog-article__hero-wrap {
    display: block;
    order: 2;
}

.blog-article__body {
    order: 4;
}

.blog-author-widget {
    order: 5;
}

.blog-article__hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef1f5;
    border-bottom: 1px solid #f0f0f0;
}

.blog-article__hero img,
.blog-article__hero picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    display: block;
}

/* Quick read — auto-generated summary */
.blog-quick-read {
    order: 3;
    margin: 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fffbeb 0%, #fff 55%);
    border-top: 1px solid #fde68a;
    border-bottom: 1px solid #fde68a;
    /* Reserve space before deferred CSS finishes — reduces CLS */
    contain: layout;
}

.blog-quick-read__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.blog-quick-read__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fef3c7;
    color: #d97706;
    font-size: 15px;
}

.blog-quick-read__title {
    margin: 0;
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
    letter-spacing: -0.1px;
}

.blog-quick-read__time {
    font-size: 11px;
    font-weight: 600;
    color: #b45309;
    background: #fef3c7;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.blog-quick-read__summary {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.65;
    color: #374151;
}

.blog-quick-read__bullets-wrap {
    margin-bottom: 14px;
}

.blog-quick-read__bullets-label {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
}

.blog-quick-read__bullets {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-quick-read__bullets li {
    position: relative;
    padding: 6px 0 6px 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
    border-bottom: 1px solid #fef3c7;
}

.blog-quick-read__bullets li:last-child {
    border-bottom: none;
}

.blog-quick-read__bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d81416;
}

.blog-quick-read__jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #d81416;
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
}

.blog-quick-read__jump:hover {
    color: #a81012;
}

.blog-quick-read__jump i {
    font-size: 14px;
    transition: transform 0.2s;
}

.blog-quick-read__jump:hover i {
    transform: translateY(2px);
}

.blog-article__body {
    padding: 28px;
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}

.blog-article__body > *:first-child {
    margin-top: 0;
}

.blog-article__body > *:last-child {
    margin-bottom: 0;
}

.blog-article__body h2,
.blog-article__body h3,
.blog-article__body h4 {
    color: #1a1a2e;
    font-weight: 700;
    line-height: 1.35;
    margin: 1.6em 0 0.75em;
}

.blog-article__body h2 {
    font-size: 22px;
}

.blog-article__body h3 {
    font-size: 19px;
}

.blog-article__body h4 {
    font-size: 17px;
}

.blog-article__body p {
    margin: 0 0 1.1em;
}

.blog-article__body a {
    color: #d81416;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-article__body a:hover {
    color: #a81012;
}

.blog-article__body ul,
.blog-article__body ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

.blog-article__body li {
    margin-bottom: 0.45em;
}

.blog-article__body blockquote {
    margin: 1.5em 0;
    padding: 16px 20px;
    border-left: 4px solid #d81416;
    background: #fafbfc;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
    font-style: italic;
}

.blog-article__body table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    font-size: 14px;
    overflow-x: auto;
    display: block;
}

.blog-article__body th,
.blog-article__body td {
    padding: 10px 14px;
    border: 1px solid #e8eaed;
    text-align: left;
}

.blog-article__body th {
    background: #f9fafb;
    font-weight: 600;
    color: #1f2937;
}

.blog-article__body iframe,
.blog-article__body video {
    max-width: 100%;
    border-radius: 8px;
    margin: 1em 0;
}

/* Follow / social CTA — replaces legacy CMS "Join us" block */
.blog-social-cta {
    margin: 32px 0 8px;
    padding: 0 28px 8px;
    min-height: 220px;
    contain: layout style;
}

.blog-social-cta__inner {
    position: relative;
    padding: 24px 24px 22px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(201, 33, 39, 0.06) 0%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e8eaed;
    overflow: hidden;
}

.blog-social-cta__inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #c92127;
}

.blog-social-cta__eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c92127;
}

.blog-social-cta__title {
    margin: 0 0 8px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em;
    color: #12263a !important;
}

.blog-social-cta__sub {
    margin: 0 0 18px !important;
    max-width: 38rem;
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #5b6472 !important;
}

.blog-social-cta__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 18px;
    border-radius: 10px;
    background: #128c7e;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(18, 140, 126, 0.28);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.blog-social-cta__whatsapp:hover,
.blog-social-cta__whatsapp:focus {
    background: #0f766a;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(18, 140, 126, 0.34);
}

.blog-social-cta__wa-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
}

.blog-social-cta__networks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.blog-social-cta__item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: 0 !important;
}

.blog-social-cta__item::before {
    content: none !important;
}

.blog-social-cta__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #1f2937 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.blog-social-cta__link:hover,
.blog-social-cta__link:focus {
    border-color: var(--cta-color, #c92127);
    color: var(--cta-color, #c92127) !important;
    background: #fff;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.blog-social-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--cta-color, #c92127) 12%, #fff);
    color: var(--cta-color, #c92127);
}

.blog-social-cta__label {
    line-height: 1;
}

.blog-article .blog-author-widget {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid #f0f0f0;
}

@media (max-width: 767px) {
    .blog-social-cta {
        margin: 24px 0 4px;
        padding: 0 18px 4px;
    }

    .blog-social-cta__inner {
        padding: 20px 18px 18px;
        border-radius: 12px;
    }

    .blog-social-cta__title {
        font-size: 18px !important;
    }

    .blog-social-cta__whatsapp {
        width: 100%;
        justify-content: center;
    }

    .blog-social-cta__networks {
        gap: 8px;
    }

    .blog-social-cta__link {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        min-width: calc(50% - 8px);
    }
}

@media (max-width: 991px) {
    .blog-detail-main {
        padding-top: 20px;
        padding-bottom: 36px;
    }

    .blog-article__title {
        font-size: 24px;
    }

    .blog-article__subtitle {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .blog-detail-breadcrumb__list .breadcrumb-item.active,
    .blog-detail-breadcrumb__list > li.active {
        max-width: min(200px, 42vw);
    }

    .blog-article {
        border-radius: 10px;
    }

    .blog-article__header {
        padding: 20px 18px 16px;
    }

    .blog-article__title {
        font-size: 22px;
    }

    .blog-article__meta {
        gap: 10px;
        padding-top: 14px;
    }

    .blog-article__meta-date {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        background: transparent;
        padding: 0;
        font-weight: 500;
        color: #6b7280;
    }

    .blog-article__meta-date::before {
        content: "";
        display: inline-block;
        width: 3px;
        height: 3px;
        margin-right: 8px;
        border-radius: 50%;
        background: #d1d5db;
        vertical-align: middle;
    }

    .blog-article__body {
        padding: 20px 18px;
        font-size: 15px;
    }

    .blog-article__body h2 {
        font-size: 20px;
    }
}

/* Blog / News detail — Recent Posts sidebar */
.blog-recent-widget {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.blog-recent-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.blog-recent-widget__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.2px;
}

.blog-recent-widget__view-all {
    font-size: 12px;
    font-weight: 600;
    color: #d81416;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.blog-recent-widget__view-all:hover {
    color: #a81012;
    text-decoration: underline;
}

.blog-recent-widget__list {
    padding: 8px 0;
}

.blog-recent-card {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 14px 18px;
    text-decoration: none !important;
    color: inherit;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.blog-recent-card:last-child {
    border-bottom: none;
}

.blog-recent-card:hover {
    background-color: #f9fafb;
}

.blog-recent-card:hover .blog-recent-card__title {
    color: #d81416;
}

.blog-recent-card:hover .blog-recent-card__cta {
    color: #d81416;
}

.blog-recent-card__thumb {
    flex-shrink: 0;
    width: 88px;
    height: 66px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef1f5;
    border: 1px solid #e8eaed;
    contain: strict;
}

.blog-recent-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.blog-recent-card:hover .blog-recent-card__thumb img {
    transform: scale(1.05);
}

.blog-recent-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-recent-card__title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.blog-recent-card__cta {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.2px;
    transition: color 0.2s;
}

.blog-recent-card__cta i {
    font-size: 12px;
    margin-left: 2px;
    transition: transform 0.2s;
}

.blog-recent-card:hover .blog-recent-card__cta i {
    transform: translateX(3px);
}

.blog-sticky-right .side-bar {
    padding-top: 0;
}

.blog-sticky-right .blog-recent-widget {
    /* sticky sidebar shifts during scroll lab → CLS; keep in normal flow */
    position: static;
    top: auto;
}

@media (max-width: 991px) {
    .blog-sticky-right {
        margin-top: 32px;
    }

    .blog-sticky-right .blog-recent-widget {
        position: static;
        top: auto;
    }

    .blog-recent-widget__header {
        padding: 16px;
    }

    .blog-recent-card {
        padding: 12px 16px;
    }

    .blog-recent-card__thumb {
        width: 96px;
        height: 72px;
    }

    .blog-recent-card__title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 767px) {
    .blog-recent-widget {
        border-radius: 10px;
    }
}

/* About the Author */
.blog-article-content img,
.blog-article__body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 1.2em 0;
}

.blog-author-widget {
    margin: 0;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.blog-author-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.blog-author-widget__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.2px;
}

.blog-author-widget__profile-link {
    font-size: 12px;
    font-weight: 600;
    color: #d81416;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.blog-author-widget__profile-link:hover {
    color: #a81012;
    text-decoration: underline;
}

.blog-author-widget__body {
    padding: 20px;
}

.blog-author-widget__card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.blog-author-widget__avatar-wrap {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e8eaed, 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #eef1f5;
}

.blog-author-widget__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-author-widget__info {
    flex: 1;
    min-width: 0;
}

.blog-author-widget__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.blog-author-widget__name {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.blog-author-widget__name a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-author-widget__name a:hover {
    color: #d81416;
}

.blog-author-widget__bio {
    font-size: 14px;
    line-height: 1.65;
    color: #4b5563;
    margin-bottom: 16px;
}

.blog-author-widget__bio p {
    margin: 0 0 10px;
}

.blog-author-widget__bio p:last-child {
    margin-bottom: 0;
}

.blog-author-widget__social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #0a66c2 !important;
    background: #f0f7ff;
    border: 1px solid #cfe3f7;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}

.blog-author-widget__social:hover {
    background: #e0efff;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.blog-author-widget__social i {
    font-size: 16px;
}

@media (max-width: 767px) {
    .blog-author-widget {
        border-radius: 0;
    }

    .blog-author-widget__header {
        padding: 16px;
    }

    .blog-author-widget__body {
        padding: 16px;
    }

    .blog-author-widget__card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .blog-author-widget__avatar-wrap {
        width: 88px;
        height: 88px;
    }

    .blog-author-widget__name {
        font-size: 18px;
    }

    .blog-author-widget__bio {
        font-size: 14px;
        text-align: left;
    }
}
