﻿/*start grid card*/

.information-right {
    background-color: #ffffff;
    position: sticky;
    top: 90px;
}

.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-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;
    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;
}

/*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;
}

.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;
}

/*end grid card*/

.blog-detail-container {
    margin-top: 30px;
    width: 100%;
    padding: 10px 0px;
}

.blog-detail-title {
    color: #000;
    font: 600 32px / 1 Inter, sans-serif;
}

.blog-detail-short-description {
    color: #667085;
    font: 400 16px / 1.5 Inter, sans-serif;
    margin-top: 10px;
    display: flex;
}

.blog-detail-description img {
    max-width: 100%;
    height: auto !important;
}

.blog-detail-description iframe {
    max-width: 100%;
}

.blog-detail-description table {
    max-width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .blog-detail-child {
        padding: 16px;
    }

    .information-right {
        position: unset;
        top: unset;
    }
}
