﻿.blog-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    margin-bottom: 40px;
    margin-top: 80px;
}

.blog-title {
    color: #000;
    font: 600 32px/1 Inter, sans-serif;
    margin: 0;
}

.blog-container {
    display: flex;
    margin-top: 80px;
    width: 100%;
    align-items: start;
    gap: 40px;
    justify-content: start;
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .blog-container {
        max-width: 100%;
        margin-top: 40px;
        padding: 0 20px;
    }
}

.filter-sidebar {
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--stroke-ch-ch-thch-stroke-nht-2, #d0d5dd);
    display: flex;
    min-width: 240px;
    flex-direction: column;
    width: 290px;
    padding: 16px;
}

.filter-container {
    margin-bottom: 16px;
}

    .filter-container:last-child {
        margin-bottom: 0;
    }

.topic-header {
    border-radius: 8px;
    background-color: rgba(234, 236, 240, 1);
    display: flex;
    width: calc(100% - 24px);
    align-items: center;
    gap: 8px;
    color: var(--M3-black, #000);
    text-align: center;
    letter-spacing: 0.5px;
    justify-content: space-between;
    padding: 14px 12px;
    font: 600 16px Inter, sans-serif;
}

.topic-header {
    margin-top: 16px;
}

    .topic-header:first-child {
        margin-top: 0;
    }

.search-box {
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    border: 1px solid var(--Grey-gray-2, #919191);
    display: flex;
    margin-top: 16px;
    width: calc(100% - 24px);
    gap: 5px;
    overflow: hidden;
    color: var(--Grey-gray-2, #919191);
    text-align: center;
    letter-spacing: 0.18px;
    padding: 10px 12px;
    font: 600 14px/2 Inter, sans-serif;
}

    .search-box input {
        border: none;
        outline: none;
        width: 100%;
        padding: 5px;
    }

.filter-options {
    display: flex;
    margin-top: 0;
    width: 100%;
    flex-direction: column;
    justify-content: start;
}

.filter-option {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    justify-content: start;
    padding: 10px 0;
}

.checkbox {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: auto 0;
}

.checkbox-base {
    fill: var(--White, #fff);
    stroke-width: 1.2px;
    stroke: var(--stroke-ch-ch-thch-stroke-nht-1, #eaecf0);
    align-self: stretch;
    display: flex;
    min-height: 24px;
    width: 24px;
    margin: auto 0;
    border: 1px solid rgba(234, 236, 240, 1);
}

.option-text {
    color: var(--M3-black, #000);
    text-align: center;
    letter-spacing: 0.18px;
    align-self: stretch;
    margin: auto 0;
    font: 400 14px/2 Inter, sans-serif;
}

.blog-content {
    display: flex;
    min-width: 240px;
    flex-direction: column;
    justify-content: start;
    flex: 1;
    flex-basis: 32px;
}

.content-header {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
    flex-wrap: wrap;
    font-family: Inter, sans-serif;
    color: var(--M3-black, #000);
    font-weight: 600;
    margin-bottom: 10px;
}

.result-count {
    font-size: 16px;
    letter-spacing: 0.5px;
}

.display-options {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    letter-spacing: 0.18px;
    line-height: 2;
}

.display-button {
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 1px solid var(--stroke-ch-ch-thch-stroke-nht-2, #d0d5dd);
    display: flex;
    min-height: 40px;
    gap: 8px;
    overflow: hidden;
    padding: 8px 12px;
    background-color: transparent;
    cursor: pointer;
}

.topic-tags {
    display: flex;
    margin-top: 8px;
    min-height: 40px;
    width: 100%;
    align-items: center;
    gap: 12px;
    color: #000;
    text-align: center;
    letter-spacing: 0.5px;
    justify-content: start;
    flex-wrap: wrap;
    font: 400 16px Inter, sans-serif;
}

.tag {
    border-radius: 8px;
    background-color: rgba(234, 236, 240, 1);
    align-self: stretch;
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    justify-content: start;
    margin: auto 0;
    padding: 0 16px;
    cursor: pointer;
}

    .tag.active {
        background-color: rgba(255, 200, 3, 1);
        color: #000;
        font-weight: 600;
    }

    .tag .close {
        font-size: 21px;
        font-weight: 100;
        width: 20px;
        line-height: normal;
    }

.divider {
    background-color: rgba(217, 217, 217, 1);
    display: flex;
    height: 1px;
    margin-top: 8px;
    width: 100%;
}

.blog-grid {
    display: flex;
    margin-top: 16px;
    width: 100%;
    flex-direction: column;
    gap: 16px;
}

.blog-row {
    display: flex;
    width: 100%;
    align-items: start;
    gap: 24px;
    flex-wrap: wrap;
}

.blog-row {
    row-gap: 16px;
}

.blog-card {
    border: 1px solid var(--stroke-ch-ch-thch-stroke-nht-1, #eaecf0);
    background-color: #fff;
    display: flex;
    min-width: 240px;
    flex-direction: column;
    overflow: hidden;
    justify-content: start;
    flex-basis: 30%;
}

@media (max-width: 991px) {
    .blog-card {
        flex-basis: 48%;
    }
}

@media (max-width: 767px) {
    .blog-card {
        flex-basis: 100%;
    }
}

.card-image {
    aspect-ratio: 1.47;
    object-fit: contain;
    width: 100%;
}

.card-content {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
}

.card-title {
    margin-top: 0px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #000;
    letter-spacing: 0.5px;
    font: 700 16px/24px Inter, sans-serif;
    height: 50px;
}

/*Nội dung card-description chỉ cho tối đa 3 dòng*/
.card-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #000;
    letter-spacing: 0.18px;
    font: 400 14px/22px Inter, sans-serif;
    margin-top: 0px;
    margin-bottom: 12px;
    height: 65px;
}

.card-stats {
    display: flex;
    margin-top: 0px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.view-count {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--ch-nht-m-active-2, #4a5672);
    font: 600 14px/2 Inter, sans-serif;
}

.interaction-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-badge {
    top: -8px;
    left: 12px;
    border-radius: 100px;
    background: var(--M3-sys-light-error, #b3261e);
    color: #fff;
    text-align: center;
    letter-spacing: 0.5px;
    padding: 4px 4px;
    font: 500 11px / 1 Roboto, sans-serif;
}

.card-topic {
    display: flex;
    margin-top: 12px;
    align-items: center;
    gap: 4px;
    font: 14px/2 Inter, sans-serif;
}

.topic-label {
    color: #000;
    font-weight: 600;
}

.topic-value {
    color: #000;
    font-weight: 400;
    letter-spacing: 0.18px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* mobile */
@media (max-width: 1429px) {
    /* begin content body Mobile */

    .blog-section {
                margin-top: 40px;
    }

    .blog-container {
        padding: 0
    }

    .filter-sidebar {
        width: 100%;
    }

    .blog-title {
                font-size: 24px;
    }

    .blog-container-child {
        padding-left: 16px;
        padding-right: 16px;
        width: calc(100vw - 65px)
    }

    .topic-header {
        font-size: 14px;
    }

    .option-text {
        font-size: 12px;
    }

    .blog-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .result-count {
        font-size: 14px;
    }

    .content-header {
        margin-bottom: 0px;
    }

    .tag {
        font-size: 12px;
    }

    .blog-grid {
        margin-top: 8px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-description {
        font-size: 12px;
    }

    .view-count {
                font-size: 12px;
    }

    .topic-label {
                font-size: 12px;
    }

    .topic-value {
                font-size: 12px;
    }

    .card-title {
        height: fit-content;
    }

    .card-description {
        height: fit-content;
    }

    .pagination {
        font-size: 12px;
    }


    /* end content body Mobile
    */

}
