.posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
}

.posts-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.posts-header a {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 750;
    transition: color 0.1s ease-in-out;
    padding: 3px 6px;
    border-radius: 4px;
    text-decoration: none;
}

.posts-header a:hover {
    text-decoration: underline;
}

.posts-meta {
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.posts-topic a {
    color: #fff;
    background: #c20017;
}

.posts-keywords a {
    color: #fff;
    background: #036;
}

.posts-info {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 20px;
}

.publish-info {
    display: flex;
    gap: 20px;
}

.posts-info span {
    color: #4b78a7;
    font-weight: 800;
}

.posts-info small,
.posts-info time {
    position: relative;
}

.posts-info small::after,
.posts-info time::after {
    content: "";
    position: absolute;
    top: 5px;
    right: -13px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: #666;
}

button.action {
    border: none;
    outline: none;
    background-color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

button.action:hover {
    transform: scale(1.2);
}

.action .icon {
    width: 30px;
    height: 30px;
    /* filter: invert(1); */
}

.posts-title {
    text-align: center;
    font-weight: 1000;
    color: #003366;
}

.posts-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.posts-content {
    margin-top: 10px;
}

.posts-content p {
    line-height: 28px;
    margin: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 400;
    color: #333;
}

.posts-content h2 {
    font-size: 24px;
    line-height: 34px;
    color: #003366;
    font-weight: 900;
    margin: 20px 0;
}

.posts-content h3 {
    font-size: 20px;
    line-height: 30px;
    color: #003366;
    font-weight: 800;
    margin: 20px 0;
}

.embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 15px;
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

figure {
    padding: 0;
    margin: 20px 0;
}

figcaption {
    margin-top: 5px;
    display: block;
    text-align: center;
    font-style: italic;
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.posts-content img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ////////////////////////////////////////////////// */
.related {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background-color: #eff2f5;
    border-radius: 8px;
}

.related h2 span {
    color: #c20017;
}

.related-news {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
    margin-left: 5px;
}

.related-item {
    padding-left: 15px;
    padding-bottom: 20px;
    position: relative;
}

.related-item:first-child {
    margin-top: -2px;
}

.related-item:last-child {
    padding-bottom: 10px;
}

.related-item::before {
    content: "";
    position: absolute;
    top: 2px;
    left: -5px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background-color: #0066cc;
}

.related-item time {
    display: block;
    margin-bottom: 10px;
}

.posts-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
}

.related-item h2 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.badge {
    padding: 0px 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #c20017;
    transform: skew(-20deg);
    display: inline-block;
    transition: opacity 0.3s ease;
    border-radius: 4px;
    margin: 0 10px;
}

.badge span {
    display: inline-block;
    transform: skew(20deg);
}

/* ///////////////////////////////////////////////// */
.recommend {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.recommend-news {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 800px;
}

/* Responsive */
@media (max-width: 768px) {
    .action .icon {
        width: 34px;
        height: 34px;
    }

    .recommend-news {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    /* .posts-info {
        justify-content: space-between;
        gap: 5px;
        padding: 10px 0;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
    }

    .publish-info {
        align-items: start;
        flex-direction: column;
        gap: 5px;
    }

    .posts-info small::after {
        display: none;
    } */

    .related {
        padding: 15px;
    }

    .recommend-news {
        grid-template-columns: 1fr;
    }
}

@media print {
    body * {
        visibility: hidden;
    }

    .posts,
    .posts * {
        visibility: visible;
    }

    .action {
        display: none !important;
    }

    .posts {
        position: absolute;
        top: 0;
        left: 0;
        border-bottom: none;
    }
}
