/* Blog index */
.blog-page {
    padding: 2.5rem 0 5rem;
}

.blog-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.75rem;
}

.blog-page-title {
    font-size: 2.563rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgb(11, 12, 13);
    margin-bottom: 0.5rem;
}

.blog-page-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    color: rgb(99, 108, 119);
    margin: 0;
}

/* Search */
.blog-search {
    position: relative;
    flex-shrink: 0;
    width: 280px;
}

.blog-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: rgb(99, 108, 119);
    pointer-events: none;
}

.blog-search-input {
    width: 100%;
    border: 1px solid rgb(225, 231, 239);
    border-radius: 0.625rem;
    padding: 0.688rem 1rem 0.688rem 2.625rem;
    font-size: 0.938rem;
    font-weight: 500;
    color: rgb(11, 12, 13);
    background-color: rgb(255, 255, 255);
}

.blog-search-input::placeholder {
    color: rgb(99, 108, 119);
    font-weight: 400;
}

.blog-search-input:focus {
    border-color: rgb(39, 57, 196);
    outline: none;
}

/* Category filters */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 2.5rem;
}

.blog-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.125rem;
    border: 1px solid rgb(225, 231, 239);
    border-radius: 100px;
    background-color: rgb(255, 255, 255);
    color: rgb(11, 12, 13);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.blog-filter-pill:hover {
    border-color: rgb(39, 57, 196);
    color: rgb(39, 57, 196);
}

.blog-filter-pill.active {
    background-color: rgb(39, 57, 196);
    border-color: rgb(39, 57, 196);
    color: rgb(255, 255, 255);
}

/* Article cards */
.post-card-img {
    display: block;
    overflow: hidden;
    border-radius: 0.875rem;
    margin-bottom: 1rem;
}

.post-card-img img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease-in-out;
}

.post-card:hover .post-card-img img {
    transform: scale(1.04);
}

.post-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.813rem;
    font-weight: 500;
    color: rgb(99, 108, 119);
    margin-bottom: 0.5rem;
}

.post-card-category {
    color: rgb(39, 57, 196);
    text-decoration: none;
    font-weight: 500;
}

.post-card-category:hover {
    text-decoration: underline;
}

.post-card-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: rgb(178, 186, 196);
    flex-shrink: 0;
}

.post-card-title {
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 600;
    margin: 0;
}

.post-card-title a {
    color: rgb(11, 12, 13);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.post-card:hover .post-card-title a {
    color: rgb(39, 57, 196);
}

/* Empty state */
.blog-empty {
    padding: 4rem 1rem;
    text-align: center;
}

.blog-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgb(11, 12, 13);
    margin-bottom: 0.5rem;
}

.blog-empty-text {
    font-size: 0.938rem;
    color: rgb(99, 108, 119);
    max-width: 30rem;
    margin: 0 auto;
}

/* Pagination */
.blog-pager-wrap {
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
}

.blog-pager {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-pager-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.75rem;
    border: 1px solid rgb(225, 231, 239);
    border-radius: 0.625rem;
    background-color: rgb(255, 255, 255);
    color: rgb(11, 12, 13);
    font-size: 0.938rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

a.blog-pager-link:hover {
    border-color: rgb(39, 57, 196);
    color: rgb(39, 57, 196);
}

.blog-pager-item.active .blog-pager-link {
    background-color: rgb(39, 57, 196);
    border-color: rgb(39, 57, 196);
    color: rgb(255, 255, 255);
}

.blog-pager-item.disabled .blog-pager-link {
    color: rgb(178, 186, 196);
}

.blog-pager-link.blog-pager-dots {
    border-color: transparent;
    color: rgb(99, 108, 119);
}

/* Newsletter */
.blog-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background-color: rgb(248, 248, 255);
    border-radius: 1rem;
    padding: 2.25rem 2.5rem;
    margin-top: 4.5rem;
}

.blog-newsletter-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgb(11, 12, 13);
    margin-bottom: 0.375rem;
}

.blog-newsletter-text {
    font-size: 0.875rem;
    color: rgb(99, 108, 119);
    margin: 0;
}

.blog-newsletter-form {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-shrink: 0;
}

.blog-newsletter-input {
    width: 300px;
    border: 1px solid rgb(225, 231, 239);
    border-radius: 0.625rem;
    padding: 0.75rem 1rem;
    font-size: 0.938rem;
    color: rgb(11, 12, 13);
    background-color: rgb(255, 255, 255);
}

.blog-newsletter-input::placeholder {
    color: rgb(99, 108, 119);
}

.blog-newsletter-input:focus {
    border-color: rgb(39, 57, 196);
    outline: none;
}

.blog-newsletter-error {
    display: block;
    font-size: 0.813rem;
    color: rgb(196, 39, 39);
    margin-top: 0.375rem;
}

.blog-newsletter-btn {
    white-space: nowrap;
}

/* Post page */
.post-page {
    padding: 2rem 0 4rem;
}

.post-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.813rem;
    font-weight: 500;
    color: rgb(99, 108, 119);
    margin-bottom: 2rem;
    min-width: 0;
}

.post-breadcrumbs svg {
    flex-shrink: 0;
    color: rgb(178, 186, 196);
}

.post-breadcrumbs a {
    color: rgb(99, 108, 119);
    text-decoration: none;
    white-space: nowrap;
}

.post-breadcrumbs a:hover {
    color: rgb(39, 57, 196);
}

.post-breadcrumbs-current {
    color: rgb(11, 12, 13);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-head-category {
    display: inline-block;
    color: rgb(39, 57, 196);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.post-head-category:hover {
    text-decoration: underline;
}

.post-head-title {
    font-size: 2.563rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgb(11, 12, 13);
    margin-bottom: 1.25rem;
}

.post-head-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(99, 108, 119);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgb(225, 231, 239);
    margin-bottom: 1.75rem;
}

.post-head-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.post-head-name {
    color: rgb(11, 12, 13);
}

.post-hero-img {
    overflow: hidden;
    border-radius: 0.875rem;
    margin-bottom: 2.25rem;
}

.post-hero-img img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    object-position: center;
}

/* Post content */
.post-body h1 {
    font-size: 1.625rem;
    line-height: 1.3;
    font-weight: 600;
    color: rgb(11, 12, 13);
    margin: 2.25rem 0 1rem;
    scroll-margin-top: 6rem;
}

.post-body h2,
.post-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgb(11, 12, 13);
    margin: 1.75rem 0 0.75rem;
    scroll-margin-top: 6rem;
}

/* Table of contents */
.post-toc {
    background-color: rgb(248, 248, 255);
    border-radius: 0.875rem;
    padding: 1.375rem 1.5rem;
    margin-bottom: 1.75rem;
}

.post-toc-title {
    display: block;
    color: rgb(39, 57, 196);
    font-size: 0.938rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
}

.post-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.post-toc-link {
    display: block;
    padding: 0.313rem 0 0.313rem 0.875rem;
    border-left: 2px solid transparent;
    color: rgb(99, 108, 119);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.post-toc-link:hover {
    color: rgb(39, 57, 196);
}

.post-toc-link.active {
    border-left-color: rgb(39, 57, 196);
    color: rgb(11, 12, 13);
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 2.5rem;
}

.post-share {
    margin-bottom: 1.75rem;
}

.post-share-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(99, 108, 119);
    margin-bottom: 0.75rem;
}

.post-share-buttons {
    display: flex;
    gap: 0.625rem;
}

.post-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgb(225, 231, 239);
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
    color: rgb(63, 71, 81);
    padding: 0;
    transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.post-share-btn:hover {
    border-color: rgb(39, 57, 196);
    color: rgb(39, 57, 196);
}

.post-share-feedback {
    display: block;
    font-size: 0.813rem;
    font-weight: 500;
    color: rgb(39, 57, 196);
    margin-top: 0.5rem;
    min-height: 1.25rem;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.post-share-feedback.show {
    opacity: 1;
}

.post-side-card {
    border: 1px solid rgb(225, 231, 239);
    border-radius: 0.875rem;
    padding: 1.5rem;
    background-color: rgb(255, 255, 255);
}

.post-side-card-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: rgb(11, 12, 13);
    margin-bottom: 0.375rem;
}

.post-side-card-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgb(99, 108, 119);
    margin-bottom: 1rem;
}

.post-side-card-input {
    width: 100%;
}

/* Tags */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(225, 231, 239);
    margin-top: 2.5rem;
}

.post-tags-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(99, 108, 119);
    margin-right: 0.375rem;
}

.post-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.375rem 0.875rem;
    border: 1px solid rgb(225, 231, 239);
    border-radius: 100px;
    background-color: rgb(255, 255, 255);
    color: rgb(63, 71, 81);
    font-size: 0.813rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.post-tag span {
    color: rgb(112, 213, 96);
}

.post-tag:hover {
    border-color: rgb(39, 57, 196);
    color: rgb(39, 57, 196);
}

/* Related posts */
.post-related {
    background-color: rgb(248, 248, 255);
    padding: 4rem 0 4.5rem;
}

.post-related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.post-related-title {
    font-size: 1.625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgb(11, 12, 13);
    margin: 0;
}

.post-related-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: rgb(39, 57, 196);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.post-related-more:hover {
    color: rgb(28, 41, 143);
}

/* Responsive */
@media (max-width: 991.98px) {
    .blog-page {
        padding-top: 1.5rem;
    }

    .blog-page-head {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .blog-search {
        width: 100%;
    }

    .blog-newsletter {
        flex-direction: column;
        align-items: stretch;
        padding: 1.75rem 1.5rem;
    }

    .blog-newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-newsletter-input {
        width: 100%;
    }

    .post-page {
        padding-top: 1.25rem;
    }

    .post-head-title {
        font-size: 1.875rem;
    }
}
