/* Restores native position:sticky, which body{overflow-x:hidden} in header.css disables site-wide */
body {
    overflow-x: visible;
}

/* ===== Reading progress bar (article pages) ===== */
.blog-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: #E3F9FF;
    z-index: 900;
    transition: top .2s ease;
}

.blog-reading-progress-fill {
    height: 100%;
    width: 0%;
    background: #1BB1AF;
}

/* ===== Blog Breadcrumb ===== */
.blog-breadcrumb-section {
    padding: 130px 0 0;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #8a8a8a;
}

.blog-breadcrumb a {
    color: #006380;
    display: inline-flex;
    align-items: center;
}

.blog-breadcrumb .sep {
    color: #c7c7c7;
}

.blog-breadcrumb .current {
    color: #8a8a8a;
}

/* ===== Blog Hero ===== */
.blog-hero-section {
    padding: 130px 0 20px;
}

.blog-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 36px;
    color: #016481;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.blog-hero-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70%;
    height: 8px;
    background: #006380;
    border-radius: 4px;
    z-index: -1;
}

/* ===== Category Filter Bar ===== */
.blog-filter-section {
    padding: 10px 0 30px;
}

.blog-category-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.blog-cat-btn {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #006380;
    background: #f2f7f8;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 22px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.blog-cat-btn:hover {
    background: #e2eef1;
}

.blog-cat-btn.active {
    background: #006380;
    color: #fff;
}

/* ===== Blog List / Grid ===== */
.blog-list-section {
    padding: 20px 0 60px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* ---- Media block ---- */
.blog-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2eef1;
}

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

.blog-card-ribbon {
    position: absolute;
    top: 14px;
    left: -32px;
    background: #ffb703;
    color: #1c1b1f;
    font-family: 'Lato', sans-serif;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 4px 36px;
    transform: rotate(-45deg);
    z-index: 1;
}

/* ---- Inline icons (self-contained, no external icon font needed) ---- */
.blog-icon {
    width: 13px;
    height: 13px;
    fill: currentColor;
    vertical-align: -2px;
}

.blog-card-body {
    padding: 18px 20px 20px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 10px;
}

.blog-card-category {
    color: #006380;
}

.blog-card-category-clickable {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color .15s ease;
}

.blog-card-category-clickable:hover {
    text-decoration-color: currentColor;
}

.blog-card-readtime {
    text-transform: none;
    font-weight: 400;
    color: #8a8a8a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.35;
    color: #1c1b1f;
    margin-bottom: 8px;
}

.blog-card-excerpt {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #616161;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-divider {
    height: 1px;
    background: #ececec;
    margin: 16px 0 14px;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-card-author-clickable {
    cursor: pointer;
    border-radius: 8px;
    transition: opacity .15s ease;
}

.blog-card-author-clickable:hover {
    opacity: 0.7;
}

.blog-card-author-clickable:hover .blog-card-author-name {
    text-decoration: underline;
}

.blog-post-author-link {
    transition: opacity .15s ease;
}

.blog-post-author-link:hover {
    opacity: 0.75;
}

.blog-post-author-link:hover .blog-card-author-name {
    text-decoration: underline;
}

.blog-card-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #e2eef1;
    color: #006380;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-avatar-img {
    object-fit: cover;
}

.blog-card-author-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.blog-card-author-name {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #1c1b1f;
}

.blog-card-author-role {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    color: #8a8a8a;
}

.blog-card-date {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    color: #8a8a8a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.blog-empty-state {
    text-align: center;
    padding: 60px 0;
    font-family: 'Lato', sans-serif;
    color: #8a8a8a;
    font-size: 16px;
}

/* ===== Blog Post (Article) ===== */
.blog-post-section {
    padding: 20px 0 70px;
}

.blog-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-post {
    min-width: 0;
}

.blog-post-sidebar {
    display: block;
}

.blog-post-sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-sidebar-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 20px;
    align-self: start;
}

.blog-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #003b4c;
    margin: 0 0 14px;
}

.blog-sidebar-icon {
    width: 18px;
    height: 18px;
    fill: #006380;
    flex: 0 0 auto;
}

.blog-sidebar-toc {
    list-style: disc;
    margin: 0;
    padding-left: 18px;
}

.blog-sidebar-toc li {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 8px;
}

.blog-sidebar-toc li:last-child {
    margin-bottom: 0;
}

.blog-sidebar-product {
    padding: 0;
    overflow: hidden;
    position: relative;
    top: auto;
}

.blog-sidebar-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d64510;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 1;
}

/* .blog-sidebar-product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #f2f7f8;
} */

.blog-sidebar-product-body {
    padding: 18px;
}

.blog-sidebar-product-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #1c1b1f;
    margin: 0 0 8px;
}

.blog-sidebar-product-desc {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: #666;
    margin: 0 0 16px;
}

.blog-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #003b4c;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 14px;
    border-radius: 8px;
    text-align: center;
    transition: background 0.2s ease;
}

.blog-sidebar-btn:hover {
    background: #006380;
    color: #fff;
}

.blog-sidebar-btn-icon {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.blog-post-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: #e2eef1;
    margin-bottom: 28px;
}

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

.blog-post-header {
    margin-bottom: 24px;
}

.blog-post-category {
    display: inline-block;
    background: #e2eef1;
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 14px;
    font-size: 12px;
}

.blog-post-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 34px;
    line-height: 1.3;
    color: #003b4c;
    margin-bottom: 20px;
}

.blog-post-authorbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding-top: 18px;
    padding-bottom: 18px;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

.blog-post-body {
    padding-top: 30px;
    font-family: 'Lato', sans-serif;
}

.blog-post-paragraph {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 20px;
}

.blog-post-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #003b4c;
    margin: 32px 0 16px;
}

.blog-post-list {
    margin: 0 0 20px;
    padding-left: 20px;
}

.blog-post-list li {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 8px;
}

.blog-post-heading-1 {
    font-size: 28px;
}

.blog-post-heading-3 {
    font-size: 18px;
}

.blog-post-list-ordered {
    list-style: decimal;
}

.blog-post-list-nested {
    list-style: circle;
    margin-left: 22px;
}

.blog-post-tasklist {
    list-style: none;
    padding-left: 0;
}

.blog-post-task {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.blog-post-task input[type="checkbox"] {
    margin-top: 6px;
    accent-color: #006380;
}

.blog-post-quote {
    margin: 24px 0;
    padding: 14px 20px;
    border-left: 4px solid #1BB1AF;
    background: #f4fbfb;
    font-size: 16px;
    line-height: 1.75;
    color: #245b66;
    font-style: italic;
}

.blog-post-codeblock {
    margin: 24px 0;
    padding: 18px 20px;
    background: #f4f8f9;
    color: #16323d;
    border: 1px solid #dde6e9;
    border-radius: 10px;
    overflow-x: auto;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 14px;
    line-height: 1.6;
}

.blog-post-body code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    background: #eef6f6;
    color: #006380;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-post-hr {
    margin: 32px 0;
    border: none;
    border-top: 1px solid #e0e6e8;
}

.blog-post-figure {
    margin: 24px 0;
}

.blog-post-embed {
    margin: 24px 0;
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    background: #0f2b33;
}

.blog-post-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.blog-post-embed-spotify,
.blog-post-embed-apple-podcast {
    padding-top: 232px;
    background: none;
}

.blog-post-inline-img {
    max-width: 100%;
    border-radius: 10px;
}

.blog-post-table-wrap {
    margin: 24px 0;
    overflow-x: auto;
}

.blog-post-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.blog-post-table th,
.blog-post-table td {
    padding: 10px 14px;
    border: 1px solid #e0e6e8;
    text-align: left;
}

.blog-post-table th {
    background: #f4fbfb;
    color: #003b4c;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.blog-post-body mark {
    background: #fff1a8;
    color: #333;
    padding: 0 2px;
}

.blog-post-back {
    margin-top: 30px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-post-layout {
        grid-template-columns: 1fr;
    }

    .blog-post-sidebar-sticky {
        position: static;
        top: auto;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .blog-sidebar-card {
        flex: 1 1 260px;
    }
}

@media (max-width: 767px) {
    .blog-breadcrumb-section {
        padding: 100px 0 0;
    }

    .blog-hero-section {
        padding: 100px 0 20px;
    }

    .blog-hero-title {
        font-size: 30px;
    }

    .blog-post-title {
        font-size: 26px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-cat-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}
