/* ===== NEWS CATEGORY PAGE ===== */

.news-layout {
    padding: 24px 0 48px;
    background-color: #ffffff;
}

.news-category-page__header {
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.news-category-page__title {
    font-size: 26px;
    line-height: 1.3;
    margin: 0 0 8px;
    font-weight: 700;
    color: #2c1545;
}

.news-category-page__description {
    font-size: 14px;
    color: #666;
}

.news-category-page__toolbar {
    margin-top: 12px;
}

.news-category-page__sort {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.news-category-page__sort label {
    margin: 0;
}

/* LIST BÀI VIẾT */

.news-card {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.news-card__thumb {
    flex: 0 0 260px;
    max-width: 260px;
}

.news-card__thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.news-card__content {
    flex: 1 1 auto;
}

.news-card__title {
    font-size: 18px;
    margin: 0 0 6px;
    font-weight: 700;
}

.news-card__title a {
    color: #c60b23;
    text-decoration: none;
}

.news-card__title a:hover {
    text-decoration: underline;
}

.news-card__meta {
    font-size: 13px;
    color: #999999;
    margin-bottom: 6px;
}

.news-card__meta span + span {
    margin-left: 10px;
}

.news-card__meta i {
    margin-right: 4px;
}

.news-card__excerpt {
    font-size: 14px;
    color: #444444;
    margin: 0;
}

/* Pagination block */
.news-category-page__pagination {
    margin-top: 20px;
}

/* Sidebar */
.news-category-page__sidebar {
    margin-top: 20px;
}

/* Responsive */

@media (max-width: 991px) {
    .news-card {
        flex-direction: column;
    }

    .news-card__thumb {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .news-category-page__sort {
        margin-top: 8px;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .news-category-page__title {
        font-size: 22px;
    }

    .news-layout {
        padding-top: 16px;
    }
}
/* ===== NEWS DETAIL PAGE ===== */

.news-detail-page__header {
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.news-detail-page__title {
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 8px;
    font-weight: 700;
    color: #2c1545;
}

.news-detail-page__meta {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.news-detail-page__meta span + span {
    margin-left: 10px;
}

.news-detail-page__meta i {
    margin-right: 4px;
}

.news-detail__sapo {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    font-weight: 600;
}

/* body bài viết từ $description */
.news-detail__body {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.news-detail__body p {
    margin: 0 0 14px;
}

.news-detail__body h2,
.news-detail__body h3,
.news-detail__body h4 {
    margin-top: 24px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #2c1545;
}

.news-detail__body h2 { font-size: 22px; }
.news-detail__body h3 { font-size: 18px; }
.news-detail__body h4 { font-size: 16px; }

.news-detail__body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 18px auto;
}

/* Tags */
.news-detail__tags {
    margin-top: 20px;
    font-size: 14px;
}

.news-detail__tags-label {
    font-weight: 600;
    margin-right: 4px;
}

.news-detail__tag {
    color: #c60b23;
    text-decoration: none;
}

.news-detail__tag:hover {
    text-decoration: underline;
}

/* Related posts */
.news-detail__related {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.news-detail__related-title {
    font-size: 18px;
    margin: 0 0 10px;
    font-weight: 700;
}

.news-detail__related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-detail__related-item {
    margin-bottom: 6px;
}

.news-detail__related-item a {
    color: #333;
    text-decoration: none;
}

.news-detail__related-item a:hover {
    color: #c60b23;
}

.news-detail__related-item i {
    margin-right: 4px;
}

/* ===== COMMENT FORM (NEWS) ===== */

.news-detail__comments {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.news-detail__comments-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}

.news-comment-form {
    max-width: 760px;
}

.news-comment-form__list {
    margin-bottom: 10px;
    font-size: 14px;
}

/* Đường kẻ mảnh hơn */
.news-comment-form__divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 10px 0 16px;
}

/* List field */
.form-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.form-list__item {
    margin-bottom: 14px;
}

/* Label */
.form-list label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 14px;
}

/* Input + textarea */
.news-comment-form__input,
.news-comment-form__textarea,
.form-list .input-text {
    width: 100%;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 8px 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.news-comment-form__textarea {
    min-height: 140px;
    resize: vertical;
}

/* Captcha */
.news-comment-form__captcha {
    margin-top: 6px;
}

/* Nút gửi */
.news-comment-form__actions {
    margin-top: 8px;
}

.news-comment-form__submit {
    min-width: 120px;
    padding: 8px 18px;
    background-color: #c60b23;
    border-color: #c60b23;
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
}

.news-comment-form__submit:hover,
.news-comment-form__submit:focus {
    background-color: #a4081d;
    border-color: #a4081d;
    color: #fff;
}


/* Responsive */
@media (max-width: 767px) {
    .news-detail-page__title {
        font-size: 22px;
    }

    .news-detail__sapo {
        font-size: 14px;
    }
}


