.from-blog {
    background: #fff;
}

.blogs-page {
    width: 100%;
    min-height: 100vh;
    background: #fff;
    padding: 24px 0 56px;
}

.blogs-container {
    max-width: 1480px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.blogs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    color: #111827;
    font-size: 15px;
    font-weight: 500;
}

.blogs-breadcrumb__home {
    width: 22px;
    height: 22px;
    border: 1px solid #dfe5ee;
    border-radius: 50%;
    color: #b8c0cc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    text-decoration: none;
    transition: 0.2s ease;
}

.blogs-breadcrumb__home:hover {
    color: #246bfd;
    border-color: #cbd5e1;
    text-decoration: none;
}

.blogs-breadcrumb__arrow {
    color: #b8c0cc;
    font-size: 11px;
}

.blogs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.blogs-header h1 {
    color: #0A0D14;
    font-size: 26px;
    line-height: 20px;
    font-weight: 600;
    margin: 0;
}

.blogs-header__right {
    width: 100%;
    max-width: 315px;
}

.blogs-search-form {
    width: 100%;
    margin: 0;
}

.blogs-search {
    width: 100%;
    padding: 12px 14px;
    box-shadow: 0px 1px 2px 0px #E4E5E73D;
    border: 1px solid var(--stroke-soft-200, #E2E4E9);
    border-radius: 40px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.22s ease;
}

.blogs-search:focus-within {
    border-color: #c4cedd;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.blogs-search i {
    color: #111827;
    font-size: 18px;
}

.blogs-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #111827;
    font-size: 16px;
    font-weight: 500;
}

.blogs-search input::placeholder {
    color: #0A0D14;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.blog-card {
    display: block;
    min-width: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #E2E4E9;
    border-radius: 20px;
    padding: 10px;
    overflow: hidden;
    transition: 0.22s ease;
}

.blog-card:hover {
    color: #111827;
    text-decoration: none;
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.blog-card__image {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
}

.blog-card__image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 82px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40.53%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.blog-card__image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.35s ease;
}

.blog-card:hover .blog-card__image > img {
    transform: scale(1.045);
}

.blog-card__author {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 28px);
}

.blog-card__author img {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-card__author span {
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card__body {
    padding: 14px 0 0;
}

.blog-card__title {
    color: #0A0D14;
    font-size: 15px;
    line-height: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__description {
    color: #0A0D14;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.blog-card__tags {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.blog-card__tags span {
    display:block;
    padding:8px 10px;
    border:1px solid #E2E4E9;
    font-size: 10px;
    line-height: 12px;
    color:#525866;
    font-weight:500;
    border-radius: 50%;
}

.blogs-pagination {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.blogs-pagination .pagination {
    display: flex;
    gap: 8px;
    margin: 0;
}

.blogs-pagination .page-link {
    min-width: 38px;
    height: 38px;
    border-radius: 12px !important;
    border: 1px solid #dce3ec;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.blogs-pagination .page-link:hover {
    background: #f8fafc;
    color: #111827;
}

.blogs-pagination .page-item.active .page-link {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.blogs-pagination .page-item.disabled .page-link {
    color: #a5adba;
    background: #f8fafc;
}

.home-blog-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-blog-card:hover {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 1399px) {
    .blogs-container {
        max-width: 1320px;
    }

    .blogs-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .blogs-container {
        max-width: 1140px;
    }

    .blogs-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .blog-card__image {
        height: 190px;
    }
}

@media (max-width: 991px) {
    .blogs-container {
        max-width: 960px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .blogs-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 28px;
    }

    .blogs-header__right {
        max-width: 100%;
    }

    .blogs-header h1 {
        font-size: 30px;
    }

    .blogs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .blog-card__image {
        height: 210px;
    }
}

@media (max-width: 767px) {
    .blogs-page {
        padding: 18px 0 42px;
    }

    .blogs-container {
        max-width: 720px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .blogs-breadcrumb {
        margin-bottom: 20px;
    }

    .blogs-header {
        margin-bottom: 24px;
    }

    .blogs-header h1 {
        font-size: 28px;
    }

    .blogs-search {
        height: 52px;
        padding: 0 18px;
    }

    .blogs-search input {
        font-size: 15px;
    }

    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .blog-card {
        border-radius: 20px;
        padding: 10px;
    }

    .blog-card__image {
        height: 220px;
    }

    .blog-card__title {
        min-height: auto;
        font-size: 18px;
    }

    .blog-card__description {
        min-height: auto;
    }
}

@media (max-width: 420px) {
    .blogs-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .blog-card__image {
        height: 200px;
    }

    .blog-card__tags span {
        max-width: 105px;
        padding: 0 12px;
        font-size: 12px;
    }
}