/* more here */
.widget-author .thumb img {
    height: 150px;
    width: 150px;
    border-radius: 50%;
    display: inline-block;
    border: var(--tp-common-white-solid);
}
.tp-megamenu-list .menu-sub-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    display: inline-block;
    margin: 5px;
    border: var(--tp-common-white-solid);
}
.tp-award-list-wrap .menu-sub-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 20px;
    display: inline-block;
    margin: 5px;
    border: var(--tp-common-white-solid);
}
.tp-megamenu-list .num-stroke{
    font-size: 2rem;
    font-weight: 900;
    color: #F5F7F5;
    background-color: #796e6e;
}
.num-badge{
    width: 42px;
    height: 42px;
    font-size: 2rem;
    font-weight: 900;
    border-radius: 50%;
    background: #796e6e;
    color: #F5F7F5;
    display: inline-flex;
    align-items: center;
    justify-content: center;

}
.tp-megamenu-list .ribbon{
    position: relative;
    color: #F5F7F5;
    padding:6px 14px;
    font-weight:700;
    background-color: #796e6e;
    border-radius: 5px !important;
    overflow: hidden; /* quan trọng nếu có bg */
}
ul.result-list-item li {
    border-radius: 5px !important;
    overflow: hidden; /* quan trọng nếu có bg */
    display: block;
}
.tp-custom-btn {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    height: 50px;
    line-height: 50px;
    padding: 0 45px;
    display: inline-block;
    text-transform: uppercase;
    color: var(--tp-common-white);
    font-family: var(--tp-ff-marcellus), 'Marcellus', serif;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px !important;
}
.liko-dark-active .tp-thumb img {
    border: 1px solid rgba(245, 247, 245, 0.14);
}
.liko-white-active .tp-thumb img {
    border: 1px solid rgba(121, 110, 110, 0.45);
}
.tp-thumb {
    height: 100%;
    overflow: hidden;
}
.tp-thumb img {
    height: 371px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px !important;
    width: 100%;
    transition: all 0.3s ease;
}
.tp-thumb:hover img {
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px !important;
}
/************************** for post ****************************************/
.news-thumb {
    width: 70px;
    flex-shrink: 0;
    overflow: hidden;
}
.news-thumb img {
    object-fit: cover;
}
.news-item:not(:last-child) {
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.news-link, .title-link {
    line-height: 1.3;
    transition: color .2s ease;
}
.title-news {
    margin: 0;
}
.title-news a {
    display: block;
    font-size: 1.25rem;        /* ~20px */
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    text-decoration: none;
    /* truncate 2 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s ease;
}
.img-wrap {
    height: 180px;              /* FIXED HEIGHT */
    overflow: hidden;           /* IMPORTANT: hides zoom overflow */
    position: relative;
}
.img-wrap img{
    width: 100%;
    height: 100%;
    object-fit: cover;          /* Keeps aspect ratio */
    transition: transform 0.4s ease;
}
.single-category-inner {
    height: 180px;              /* FIXED HEIGHT */
    overflow: hidden;           /* IMPORTANT: hides zoom overflow */
    position: relative;
}
/* Zoom effect */
.img-wrap:hover img , .single-category-inner:hover img {
    object-fit: cover;     /* quan trọng */
    transition: transform .3s ease;
    transform: scale(1.1);
}
.news-thumb:hover img, .title-news:hover img {
    transform: scale(1.1) rotate(-1deg);
}
.title-news a:hover, .news-link:hover, .title-link:hover {
    color: #ffc107; /* vàng nhẹ, đẹp trên overlay */
}
.content {
    margin: .25rem 0 0;
}
.content a {
    display: block;
    font-size: .95rem;          /* ~15px */
    line-height: 1.5;
    color: #444;
    text-decoration: none;
    /* truncate 3 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s ease;
}
.content a:hover {
    color: #0d6efd;
}
.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 55px;
    height: 25px;
    width: 25px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    z-index: 10000;
    opacity: 1;
    visibility: hidden;
    -webkit-transform: translateY(45px);
    transform: translateY(45px);
    -webkit-transition: all 300ms linear;
    transition: all 300ms linear;
}
.scroll-top:after {
    /*content: "\f062"; */
    font-family: var(--icon-font), serif;
    font-weight: 900;
    position: absolute;
    text-align: center;
    line-height: 25px;
    font-size: 10px;
    color: var(--theme-color);
    left: 0;
    top: 0;
    height: 25px;
    width: 25px;
    cursor: pointer;
    display: block;
    z-index: 1;
    border: 2px solid var(--theme-color);
    -webkit-box-shadow: none;
    box-shadow: none;
    border-radius: 50%;
}
.scroll-top svg {
    color: var(--theme-color);
    border-radius: 50%;
    background: var(--gray-color);
    transform: scale(0.7);
}
.scroll-top svg path {
    fill: none;
}
.scroll-top .progress-circle path {
    stroke: var(--theme-color);
    stroke-width: 20px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 400ms linear;
    transition: all 400ms linear;
}
.scroll-top.show {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}
.media-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    pointer-events: auto;
}
.media-box::after {
    content: ""; position: absolute; inset: 0; background: linear-gradient( to bottom, rgba(0, 0, 0, .05), rgba(0, 0, 0, .55));
}
.media-box iframe, .media-box video
{
    width: 100%;
    height: 100%;
    pointer-events: auto;
    display: block;
}
.play-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.play-btn:hover {
    background: rgba(0,0,0,0.85);
    transform: translate(-50%, -50%) scale(1.1);
}
.media-content { z-index: 2; }
.video-list a:hover { color: #0d6efd; }
/* Force horizontal layout */
.media {
    display: flex;
    align-items: center;
    gap: 3px;
}
/* Left image */
.media-left {
    position: relative;
    flex: 0 0 90px;      /* fixed width */
}    /* Thumbnail */
.media-left img {
    width: 90px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}    /* Play icon */
.play-btn-small {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 26px;
    height: 26px;
    background: rgba(0,0,0,.7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}    /* Right text */
.media-body {
    flex: 1;
}    /* Title styling */
.media-body .title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    /* limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Desktop mặc định */
.pagination .page-link {
    padding: 8px 14px;
    font-size: 15px;
    min-width: 40px;
    text-align: center;
}

/* Mobile */
@media (max-width: 576px) {
    .pagination {
        gap: 4px;
    }
    .pagination .page-item {
        margin: 0;
    }
    .pagination-gutter .page-link, .pagination .page-link {
        padding: 4px 8px;
        font-size: 13px;
        min-width: 30px;
    }
    .pagination-gutter .page-link {
        border-radius: 4px;
    }
}

@media (max-width: 991px) {
    .media {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .media-left img {
        width: 90px;
        height: 24px;
        object-fit: cover;
        border-radius: 4px;
        display: block;
    }    /* Play icon */
}
.pagination-gutter .page-item {
    margin: 0 4px;
}
.pagination-gutter .page-link {
    border-radius: 8px;
}
.pagination-gutter .page-item.active .page-link {
    background-color: var(--theme-color);
    border-color: 1px solid var(--theme-color);
}
.pagination-gutter .page-link {
    color: var(--black-color);
}
.page-link {
    transition: all .2s ease;
}
.text-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* số dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.text-clamp.expanded {
    -webkit-line-clamp: unset;
}
.comment-actions .btn-action.active {
    color: #0d6efd;
    font-weight: 600;
}
.btn-more {
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 13px;
    cursor: pointer;
}
@media (max-width: 576px) {
    .comment-footer {
        flex-wrap: wrap;
    }
    .btn-more {
        margin-top: 6px;
    }
}
.nav-tabs .nav-link {
    font-weight: 500;
}
.nav-tabs .nav-link.active {
    border-bottom: 2px solid #0d6efd;
}
.tab-pane img {
    cursor: pointer;
    transition: transform .2s ease;
}
.tab-pane img:hover {
    transform: scale(1.03);
}
.img-box {
    width: 100%;
    height: 180px;          /* desktop height */
    overflow: hidden;
    border-radius: 10px;
}
.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* quan trọng */
    transition: transform .3s ease;
}
.img-box:hover img {
    transform: scale(1.05);
}
@media (max-width: 576px) {
    .img-box {
        height: 140px;
    }
}
.object-fit-cover {
    object-fit: cover;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}
.box {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    border-radius: 4px;
}
.box-1 { background:#e53935; }
.box-2 { background:#1e88e5; }
.box-3 { background:#ffffff; color:#000; border:1px solid #ddd; }
.box-4 { background:#000; }
.box-5 { background:#4caf50; }
.box-6 { background:#fbc02d; color:#000; }
.box-7 { background: #796e6e; color: #ffffff; }
.box-8 { background: #f4fb2d; color:#000; }
.box-9 { background: #837f75; color: #ffffff; }
.box-10 { background: #c29e47; color:#000; }
.box-11 { background: #9b7310; color:#000; }
.box-12 { background: #b4aa90; color:#000; }
.speed-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
}
.speed-bar .label {
    width: 45px;
    font-size: 12px;
    color: #6c757d;
}
.speed-bar .bar {
    flex: 1;
    height: 7px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}
.speed-bar .fill {
    height: 100%;
}
.speed-bar .value {
    width: 28px;
    font-size: 12px;
    text-align: right;
}
.text-1-line {
    display: -webkit-box;
    -webkit-line-clamp: 1; /* số dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.text-1-line.expanded {
    -webkit-line-clamp: unset;
}
.blockquote-wrap {
    border-left: 4px solid var(--bs-primary);
    padding-left: 1rem;
}
.blockquote {
    font-size: 1.05rem;
    color: #555;
}
.blockquote-card {
    background: var(--bs-light);
    border-left: 5px solid var(--bs-primary);
    padding: 1.25rem 1.5rem;
    border-radius: .75rem;
}
.is-hidden {
    display: none;
}