/* HLBT-WEB-01 Rev7L: neutral canvas, editorial cards, selective brand red. */
.hlbt-bto-reference .hlbt-blog-page{padding-top:clamp(55px,6vw,95px);}
.hlbt-bto-reference .hlbt-blog-page .page-intro{margin-bottom:30px;}
.hlbt-bto-reference .hlbt-blog-category-filter{
    display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 22px;padding:0;
}
.hlbt-bto-reference .hlbt-blog-filter{
    border:1px solid #d1d4da;background:#fff;color:#373c45;
    display:inline-flex;align-items:center;gap:10px;justify-content:space-between;
    border-radius:99px;padding:10px 13px 10px 17px;
    font-size:13px;font-weight:700;line-height:1.25;min-height:43px;
    transition:background .15s,border-color .15s,box-shadow .15s;
}
.hlbt-bto-reference .hlbt-blog-filter:hover{
    color:#ad1230;background:#fff8fa;border-color:#ad1230;
}
.hlbt-bto-reference .hlbt-blog-filter.is-selected{
    background:#b5122b;border-color:#b5122b;color:#fff;box-shadow:0 5px 15px rgba(181,18,43,.15);
}
.hlbt-bto-reference .hlbt-blog-count{
    min-width:27px;height:25px;border-radius:100px;padding:3px 7px;
    display:inline-grid;place-items:center;line-height:1;
    background:#eceef1;color:#454b56;font-size:12px;font-weight:800;
}
.hlbt-bto-reference .hlbt-blog-filter.is-selected .hlbt-blog-count{
    color:#ad1230;background:#fff;
}
.hlbt-bto-reference .hlbt-blog-filter:focus-visible{
    outline:3px solid #b5122b;outline-offset:3px;
}
.hlbt-bto-reference .hlbt-blog-results{
    color:#717680;font-size:13px;line-height:1.5;margin-bottom:24px;
}
.hlbt-bto-reference .hlbt-blog-post-grid{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;align-items:stretch;
}
.hlbt-bto-reference .hlbt-blog-post-card{
    display:flex;flex-direction:column;height:100%;overflow:hidden;
    border-radius:18px;background:#fff;color:#292d36;
    border:1px solid #dadde2;box-shadow:0 10px 26px rgba(38,43,52,.06);
    transition:transform .2s,box-shadow .2s,border-color .2s;
}
.hlbt-bto-reference .hlbt-blog-post-card:hover{
    transform:translateY(-3px);border-color:#c4b0b5;
    box-shadow:0 18px 35px rgba(38,43,52,.11);
}
.hlbt-bto-reference .hlbt-blog-post-card .blog-preview-image{
    aspect-ratio:16/10;height:auto;width:100%;flex:0 0 auto;
    background:#eaecf0;overflow:hidden;margin:0;
}
.hlbt-bto-reference .hlbt-blog-post-card .blog-preview-image img{
    width:100%;height:100%;object-fit:cover;object-position:center;
    transition:transform .35s ease;
}
.hlbt-bto-reference .hlbt-blog-post-card:hover .blog-preview-image img{transform:scale(1.035);}
.hlbt-bto-reference .hlbt-blog-card-content{
    display:flex;flex-direction:column;align-items:stretch;flex:1;
    padding:23px 25px 26px;min-height:220px;text-align:left;
}
.hlbt-bto-reference .hlbt-blog-post-card .hlbt-blog-card-category{
    color:#b5122b;font-size:11px;font-weight:800;letter-spacing:.10em;
    line-height:1.35;text-transform:uppercase;margin:0 0 11px;overflow-wrap:anywhere;
}
.hlbt-bto-reference .hlbt-blog-post-card .hlbt-blog-card-title{
    color:#282c35;font-size:clamp(21px,1.65vw,25px);font-weight:800;
    line-height:1.3;margin:0 0 12px;letter-spacing:-.015em;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
    line-clamp:2;overflow:hidden;overflow-wrap:anywhere;
}
.hlbt-bto-reference .hlbt-blog-post-card .hlbt-blog-card-summary{
    color:#636a74;font-size:14px;line-height:1.7;margin:0 0 24px;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
    line-clamp:3;overflow:hidden;overflow-wrap:anywhere;
}
.hlbt-bto-reference .hlbt-blog-post-card .hlbt-blog-read-more{
    display:inline-flex;align-items:center;gap:9px;align-self:flex-start;
    color:#a9112c;font-size:12px;font-weight:850;letter-spacing:.07em;
    margin-top:auto;padding-top:13px;border-top:1px solid #eceef1;
}
.hlbt-bto-reference .hlbt-blog-empty{border-radius:15px;}
.hlbt-bto-reference .hlbt-blog-all-link{color:#b5122b;font-weight:800;text-decoration:underline;}
/* Blog editor and category manager use the same light Admin input colors. */
.bto-admin .hlbt-blog-category-help{display:inline-block;margin-top:7px;color:#a9112c;font-size:12px;font-weight:750;}
.bto-admin .hlbt-blog-admin-categories{padding:30px;}
.bto-admin .hlbt-admin-categories-heading{font-size:21px;font-weight:800;color:#292d36;margin-bottom:15px;}
.bto-admin .hlbt-category-add-form{display:flex;gap:12px;align-items:center;flex-wrap:wrap;}
.bto-admin .hlbt-category-add-form .form-control{flex:1;min-width:220px;max-width:520px;}
.bto-admin .hlbt-admin-categories-hint{font-size:12px;color:#727986;margin:12px 0 24px;}
.bto-admin .hlbt-blog-category-admin-list{display:grid;gap:12px;}
.bto-admin .hlbt-blog-category-admin-row{
    border:1px solid #e0e2e7;border-radius:12px;padding:15px;
    display:grid;grid-template-columns:minmax(0,1.5fr) minmax(165px,.7fr) auto;
    gap:18px;align-items:center;
}
.bto-admin .hlbt-blog-category-rename{display:flex;gap:9px;min-width:0;}
.bto-admin .hlbt-blog-category-rename .form-control{min-width:0;flex:1;}
.bto-admin .hlbt-blog-category-admin-stats{display:flex;flex-direction:column;gap:4px;color:#414752;font-size:13px;}
.bto-admin .hlbt-blog-category-admin-stats small{color:#818794;font-size:12px;}
.bto-admin .hlbt-blog-admin-categories .form-control,
.bto-admin #hlbt-blog-editor-page .form-select{color:#292d36!important;background:#fff!important;border:1px solid #c9cdd5!important;}
.bto-admin .hlbt-blog-admin-categories .form-control:focus,
.bto-admin #hlbt-blog-editor-page .form-select:focus{
    border-color:#b5122b!important;box-shadow:0 0 0 3px rgba(181,18,43,.13)!important;
}
@media(max-width:990px){
  .hlbt-bto-reference .hlbt-blog-post-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .bto-admin .hlbt-blog-category-admin-row{grid-template-columns:1fr auto;}
  .bto-admin .hlbt-blog-category-rename{grid-column:1/-1;}
}
@media(max-width:650px){
  .hlbt-bto-reference .hlbt-blog-post-grid{grid-template-columns:1fr;gap:20px;}
  .hlbt-bto-reference .hlbt-blog-filter{font-size:12px;padding:9px 11px;}
  .hlbt-bto-reference .hlbt-blog-card-content{padding:20px 21px 24px;}
  .bto-admin .hlbt-blog-category-admin-row{grid-template-columns:1fr;gap:12px;}
  .bto-admin .hlbt-blog-category-rename{grid-column:auto;}
}

/* Rev7M: nút quản lý Danh mục Blog đồng bộ kích thước với Viết bài mới.
   Nền xám than – chữ trắng, đỏ chỉ giữ cho hành động Viết bài mới. */
.bto-admin .admin-page-head a.primary-admin-button.hlbt-blog-category-action {
    background-color:#575D68;
    border-color:#575D68;
    color:#FFFFFF !important;
    text-decoration:none;
}
.bto-admin .admin-page-head a.primary-admin-button.hlbt-blog-category-action:hover {
    background-color:#414751;
    border-color:#414751;
    color:#FFFFFF !important;
    text-decoration:none;
}
.bto-admin .admin-page-head a.primary-admin-button.hlbt-blog-category-action:focus-visible {
    outline:3px solid #B5122B;
    outline-offset:3px;
}
