/* ============================================================================
   Custom CSS for Knowledge Categories
   - Main category: /kien-thuc/
   - Sub categories: /ke-toan-tai-chinh/, /ke-toan-thue/, etc.
============================================================================ */

/* Font Face Declarations */
@font-face {
    font-family: 'Montserrat';
    src: url('/sites/library/fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat Medium';
    src: url('/sites/library/fonts/Montserrat-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat SemiBold';
    src: url('/sites/library/fonts/Montserrat-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat Bold';
    src: url('/sites/library/fonts/Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat Italic';
    src: url('/sites/library/fonts/Montserrat-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Global Variables */
.categories {
    --font-medium: 14px;
    --font-title: 16px;
    --font-big: 32px;
}
@media (min-width: 1100px) {
    .md-categories.container {
        width: 1200px;
    }
}
/* Header Styles */
a:hover, a:focus {
    color: #000;
    /* text-decoration: underline; */
}
.td-category-child {
    display: none;
}

.md-search-wrap-mob {
    display: none;
}

div#td-outer-wrap {
    overflow: visible;
}


.md-knowledge-header {
    color: white;
    padding-top: 66px;
    text-align: center;
    margin-bottom: 0;
}

.md-knowledge-header h1,
.md-knowledge-header-title {
    margin: 0;
    font-size: 36px;
    color: #0077C5;
    font-family: Montserrat Bold, Arial, sans-serif;
    line-height: 1.4;
}

.md-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Main Layout Wrapper */
.md-knowledge-wrapper {
    font-family: GoogleSans, Roboto, Arial, sans-serif;
    display: flex;
    /* max-width: 1200px; */
    margin: 0 auto;
    gap: 20px;
    background: white;
    margin-top: 70px;
}

/* Left Sidebar Navigation */
.md-knowledge-sidebar {
    width: 196px;
    background: #0488d1;
    flex-shrink: 0;
    border-radius: 12px;
    background: unset;
    overflow: visible;
    padding-bottom: 20px;
}

.md-knowledge-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #2782AE;
    position: sticky;
    top: 70px;
    border-radius: 12px;
    font-family: Montserrat;
}

.md-knowledge-nav-item {
    /* border-bottom: 1px solid rgba(255,255,255,0.1); */
    margin-left: 0;
}

.md-knowledge-nav-item a {
    display: block;
    padding: 10px 24px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.md-knowledge-nav-item:hover a,
.md-knowledge-nav-item.active a {
    background: rgba(255,255,255,0.1);
    text-decoration: none;
    color: white;
}

.md-knowledge-nav-item.active a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ffc107;
}

/* Main Content Area */
.md-knowledge-content {
    flex: 1;
    /* padding: 27px; */
    background: white;
    padding-top: 0;
    padding-bottom: 20px;
}

/* Section Titles */
.md-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* Search Box */
.md-search-box {
    position: relative;
    margin-bottom: 30px;
}

.md-search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
}

.md-search-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

/* Spotlight Section */

.spotlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

 

.chc-line {
    width: 40px;
    height: 3px;
    background: #0488d1;
    border-radius: 2px;
}

 

.spotlight__search {
    flex-shrink: 0;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}
.td-head-form-search-wrap {
    position: relative;
}

.td-head-form-search-wrap::before {
    position: absolute;
    display: block;
    content: "";
    background: url(/sites/sme/images/lookup.svg) no-repeat center center;
    background-size: 16px;
    height: 16px;
    width: 16px;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    margin-top: 0;
    opacity: 0.7;
    z-index: 2;
}

input#td-header-search {
    padding-left: 40px;
}

.search-box input:focus {
    border-color: #0488d1;
}

.search-box button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

 

 

.spotlight--right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Spotlight Post Styles */
.spotlight-post {
    color: inherit;
    display: flex;
}


.spotlight--left .spotlight-post {
    padding: 0;
    border: none;
}

.spotlight--left .spotlight-post:hover {
    transform: none;
    box-shadow: none;
}

 

.spotlight--left .spost__thumbnail {
    width: 100%;
    display: block;
    height: auto;
    overflow: hidden;
    border-radius: 6px 6px 0px 0px;
}

 

 

.spotlight--left .spost__thumbnail img {
    border-radius: 8px 8px 0 0;
    object-fit: cover;
    height: 238px;
}

.spost-content {
    flex: 1;
}

.spotlight--left .spost-content {
    color: #000;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, #ffffff 55.53%, #deebff 100%);
}

.spost__title {
    margin-bottom: 8px;
    /* font-weight: 600; */
    line-height: 1.3;
}

.spotlight--left .spost__title {
    font-size: 18px;
    color: #000;
}

.spotlight--right .spost__title {
    font-size: 14px;
    color: #333;
}

 

.spotlight--left .spost__excerpt {
    color: #000;
}



/* All Posts Section - Subcategories */
.md-all-posts-subcategories {
    margin-top: 40px;
}

.subcategory-section {
    margin-bottom: 60px;
}

.subcategory-section:last-child {
    margin-bottom: 0;
}

.subcategory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.subcategory-more .view-all-link {
    color: #0488d1;
    font-size: 16px;
    font-family: Montserrat medium, Arial, sans-serif;
}

.subcategory-more .view-all-link:hover {
    color: #0366a0;
}

.subcategory-more .view-all-link span {
    margin-left: 5px;
}

.subcategory-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 17px;
}

.subcategory-post-item {
    background: white;
    /* border: 1px solid #e9ecef; */
    border-radius: 8px;
    /* overflow: hidden; */
    /* transition: all 0.3s ease; */
    /* height: 120px; */
}

.post-item-thumb {
    /* width: 195px; */
    /* height: 111px; */
}

.spost__thumbnail {
    width: 220px;
    height: 120px;
}

.post-item-link {
    display: flex;
    /* text-decoration: none; */
    color: inherit;
    /* height: 100%; */
    gap: 16px;
}

 

.post-item-thumb img {
    /* width: 100%; */
    /* height: 100%; */
    object-fit: cover;
    /* transition: transform 0.3s ease; */
    width: 220px;
    height: 120px;
    border-radius: 6px;
}

 

.post-item-content {
    /* padding: 16px; */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-item-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 3px 0;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: Montserrat SemiBold;
    text-align: justify;
    margin-bottom: 8px;
}

.post-item-excerpt {
    font-size: 14px;
    /* color: #666; */
    line-height: 1.4;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: justify;
}

.post-item-meta {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.post-date {
    font-size: 12px;
    color: #999;
}

/* Pagination */
.md-pagination {
    margin-top: 30px;
    text-align: end;
}

.md-pagination a,
.md-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.md-pagination a:hover,
.md-pagination .current {
    background: #0488d1;
    color: white;
    border-color: #0488d1;
}

/* No Posts Message */
.md-no-posts {
    text-align: center;
    padding: 40px;
    color: #666;
}

.md-no-posts h3 {
    margin-bottom: 10px;
    color: #333;
}



.categories .td-container {
    width: 1170px;
    margin-right: 0;
}
/* ------------ */

.category-container .sidebar,
.subcat .sidebar {
    min-width: 270px;
    max-width: 270px;
    width: 270px;
    margin-right: 30px;
    margin-bottom: 24px;
    background: #f0f2f4;
    margin-top: 40px;
    border-radius: 6px;
    height: fit-content;
}

.sidebar .sc__title {
    font-family: Montserrat;
    font-size: var(--font-small);
    line-height: 21px;
    letter-spacing: 0em;
    text-align: left;
    color: #172b4d;
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar .sc-wrapper {
    margin: 8px 0;
}

.sc__button {
    border: none;
    padding: 0;
    transform: rotate(90deg);
    transform-origin: center center;
    transition: transform 0.2s ease;
    background: transparent;
}

.sc__button--up {
    transform: rotate(-90deg);
    transform-origin: center center;
}

.sc__button img {
    min-width: 16px;
    max-width: 16px;
}

.sc__title--child {
    padding-left: 24px;
    font-weight: 400;
    padding-right: 24px;
}

.sc__title.sc__title--child.active {
    background-color: #deebff;
}

.sc__title.sc__title--child.active a {
    color: #0065ff;
    font-weight: 500;
}

.sc__title.sc__title--child a {
    color: #172b4d;
}

.sc__title--parent {
    padding-left: 16px;
    padding-right: 8px;
}

.sc__title.sc__title--parent {
    font-weight: 600;
}

.sc__title.sc__title--parent a {
    text-transform: uppercase;
    color: #172b4d;
}

.sc__title.sc__title--parent.active {
    background-color: #deebff;
}

.sc__title.sc__title--parent.active a {
    color: #0065ff;
}

.sc__title:hover {
    background-color: #d1d3d4;
    cursor: pointer;
}

.sc-child.collapse.collapse--off {
    display: block;
}

/* ------------ */

.category-container .content-wrapper {
    flex-grow: 1;
}

.spotlight {
    /* margin: 40px 0; */
    display: block;
    margin-bottom: 40px;
}

/* Common Section Styles */
.newest-posts,
.category-wrapper,
.categories-post,
.category-post-container,
.explore {
    margin: 80px 0;
    display: block;
}

.category-header-content {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 30px;
}

.chc-line {
    width: 4px;
    height: 32px;
    border-radius: 4px;
    background-color: #0488d1;
}

.chc-text {
    font-family: Montserrat SemiBold, Arial, sans-serif;
    color: #0077C5;
    font-size: 30px;
}

.chc--cp {
    margin-bottom: 24px;
}

/* Spotlight */

.spotlight-content {
    display: flex;
    gap: 30px;
}

.spotlight--left,
.spotlight--right {
    /* flex: 1; */
}

.spotlight--left .spotlight-post {
    border-radius: 6px;
}

.spotlight--left .spost__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: Montserrat SemiBold;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 8px;
    /* text-align: justify; */
    font-weight: 600;
}

.spost__excerpt {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: justify;
}

.spotlight-post:hover .spost__title,
.spotlight-post:hover .spost__excerpt {
    opacity: 0.8;
}

.spotlight--left .spost__thumbnail {
}



.spotlight--right .spost__thumbnail img {
    object-fit: cover;
    object-position: top;
    width: 220px;
    height: 120px;
    border-radius: 12px;
}

.spotlight--left .spotlight-post {
    background: linear-gradient(180deg, #ffffff 55.53%, #deebff 100%);
    display: grid;
}

.spotlight--left .spost-content {
    padding: 16px;
    border-radius: 0px 0px 6px 6px;
}

.spm-item {
    font-family: Montserrat;
    font-size: var(--font-medium);
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0px;
    text-align: left;
    gap: 8px;
    display: flex;
}

.spm-text {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.emb-style .pvc_stats {
    margin-bottom: 0;
    padding: 0!important;
    display: flex;
    gap: 5px;
}

.emb-style .pvc_stats .pvc-stats-icon {
    background: url(/sites/amis/images/post/ic-view.svg) no-repeat center;
    width: 16px;
    height: 17px;
    display: flex;
}

.emb-style .pvc_stats span {
    display: flex;
    align-items: center;
    font-family: Montserrat, Arial, sans-serif;
    gap: 5px;
}

.emb-style .pvc_stats .pvc-stats-icon svg {
    display: none;
}

.spost-meta {
    display: flex;
    gap: 24px;
}

.spotlight--right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}



/* .spotlight--right .spotlight-post already has display: flex from parent .spotlight-post */
.spotlight--right .spotlight-post {
    gap: 16px;
}

.spotlight--right .spost__title {
    line-height: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: Montserrat SemiBold;
    margin-bottom: 8px;
    text-align: justify;
}

.categories .td-icon-views {
    background: url(/sites/amis/images/pages/knowledge-page/ic-view.svg) no-repeat
        center;
    width: 16px;
    height: 17px;
}

.categories .td-post-views {
    display: flex;
    align-items: center;
    gap: 8px;
}

.categories .td-icon-views::before {
    content: "";
}

.spotlight .search-box {
    border: 1px solid #2782AE;
    border-radius: 6px;
    position: relative;
    flex: 1;
    margin-left: 24px;
    width: 370px;
}

.spotlight .search-box .is-form-style::after {
    position: absolute;
    display: block;
    content: "";
    background: url("/sites/amis/images/post/lookup.svg") no-repeat
        center center;
    background-size: 24px;
    height: 24px;
    width: 24px;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    margin-top: 0;
    opacity: 0.7;
}

.spotlight .search-box .is-search-form .is-search-input {
    border-radius: 99px;
    display: block;
    width: 100%;
    padding: 10px 20px 10px 36px;
    border: 0;
    outline: none;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.15);
    font-size: var(--font-medium);
    font-weight: 400;
}

.spotlight .search-box .short-cut {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    opacity: 0.7;
    padding: 2px 12px;
    background-color: #f0f2f4;
    border-radius: 6px;
}

/* --------- */

/* Newest Post */

.newest-posts .category-header-content {
    margin-bottom: 24px;
}

.np-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.np-wrapper {
    display: flex;
    gap: 16px;
    width: 50%;
}

.np__thumbnail {
    height: 112px;
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.np__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 6px;
}

.np-container .row-wrapper {
    display: flex;
    gap: 30px;
}

.np__title {
    font-family: Montserrat;
    font-size: var(--font-medium);
    font-weight: 500;
    line-height: 21px;
    letter-spacing: 0px;
    text-align: left;
    color: #172b4d;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np__meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.npm-item {
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: Montserrat;
    font-size: var(--font-medium);
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0px;
    text-align: left;
    color: #172b4d;
}

/* ----------- */

/* ----------- */

.cp-container {
    width: 970px;
    padding: 0 35px;
}

.cp-wrapper {
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.16);
    border-radius: 6px;
    margin: 8px 15px;
    color: rgba(23, 43, 77, 1);
}

.cp-content {
    padding: 16px;
}

.cp__title {
    font-family: Montserrat;
    font-size: var(--font-title);
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: left;
    color: #172b4d;
    margin-top: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.cp__metainfo {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cp-meta__item {
    display: flex;
    padding: 4px 0px;
    gap: 8px;
    flex-shrink: 0;
}

.cp__img {
    max-height: 152px;
    height: 152px;
    overflow: hidden;
    display: block;
}

.cp__img img {
    height: 100%;
    object-fit: cover;
    object-position: left;
}

.cp__img img:hover {
    transform: scale(1.08, 1.08);
    transition: transform 0.2s ease;
}

.cp-author__name {
    font-family: Montserrat;
    font-size: var(--font-medium);
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0px;
    text-align: left;
    color: #172b4d;
    flex-shrink: inherit;
}

.cp-container .owl-prev {
    position: absolute;
    top: 50%;
    left: -4%;
    transform: translateY(-50%);
}

.cp-container .owl-next {
    position: absolute;
    top: 50%;
    right: -4%;
    transform: translateY(-50%);
}

.cp-container .owl-theme .owl-nav [class*="owl-"]:hover {
    background-color: transparent;
}
.owl-theme .owl-nav .cpc-owl-ic {
    width: 24px;
    height: 24px;
    object-fit: none;
    color: #fff;
    font-size: var(--font-medium);
    margin: 0px;
    padding: 0;
    background: transparent;
    border-radius: 0px;
}
.relevant-post__expand a {
    font-family: Montserrat;
    font-size: var(--font-medium);
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0px;
    text-align: left;
    color: rgba(0, 101, 255, 1);
}

.relevant-post__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
/* ----------- */

/* --------- */

.explore-content {
    display: flex;
    gap: 30px;
}
.explore-tag {
    position: relative;
    flex: 1;
}

.explore-tag a:hover {
    opacity: 0.9;
}

.explore-tag img {
    width: 100%;
    border-radius: 6px;
}

.et-content {
    position: absolute;
    bottom: 0px;
    padding: 12px;
    font-family: Montserrat;
    font-size: var(--font-title);
    line-height: 24px;
    letter-spacing: 0px;
    text-align: left;
    color: white;
    font-weight: 400;
}

.et-content .et__title {
    font-weight: 500;
    margin-bottom: 8px;
}

.explore-header .category-header-content {
    margin-bottom: 24px;
}

.et__expand {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.et__expand img {
    width: 16px;
    height: 16px;
}

.hide-ic {
    display: none;
}

/* ---------*/



/**
 * Newest Posts Slider
 * @author nmduc2
 * @date 2023-06-15
 * @description Style cho slider bÃƒÆ’Ã‚Â i viÃƒÂ¡Ã‚ÂºÃ‚Â¿t mÃƒÂ¡Ã‚Â»Ã¢â‚¬Âºi nhÃƒÂ¡Ã‚ÂºÃ‚Â¥t, hÃƒÂ¡Ã‚Â»Ã¢â‚¬â€ trÃƒÂ¡Ã‚Â»Ã‚Â£ cÃƒÂ¡Ã‚ÂºÃ‚Â£ desktop/tablet vÃƒÆ’Ã‚Â  mobile
 */
.newest-posts-slider-container {
    width: 100%;
    position: relative;
    margin-bottom: 24px;
}

.newest-posts-slider .owl-nav {
    position: absolute;
    top: 40%;
    width: 100%;
    transform: translateY(-50%);
}

.newest-posts-slider .owl-prev {
    position: absolute;
    left: -35px;
}

.newest-posts-slider .owl-next {
    position: absolute;
    right: -35px;
}

.newest-posts-slider .owl-theme .owl-nav [class*="owl-"]:hover {
    background-color: transparent;
}

.newest-posts-slider .owl-nav .np-owl-ic {
    width: 24px;
    height: 24px;
    object-fit: none;
    color: #fff;
    font-size: var(--font-medium);
    margin: 0px;
    padding: 0;
    background: transparent;
    border-radius: 0px;
}

.newest-slide {
    padding: 10px;
}

.newest-slide .row-wrapper {
    margin-bottom: 16px;
    display: flex;
    gap: 30px;
}

.newest-slide .row-wrapper:last-child {
    margin-bottom: 0;
}

.newest-slide .np-wrapper.empty {
    visibility: hidden;
}

/* Mobile slider styling */
.mobile-slider {
    display: none !important;
}

.newest-slide-mobile {
    padding: 10px;
}

.np-wrapper.mobile {
    width: 100%;
    background: linear-gradient(180deg, #ffffff 55.53%, #deebff 100%);
    border-radius: 6px;
    display: block;
}

.np-wrapper.mobile .np-left {
    width: 100%;
}

.np-wrapper.mobile .np__thumbnail {
    width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 6px 6px 0 0;
}

.np-wrapper.mobile .np-right {
    padding: 12px;
}

#newest-posts-slider {
 width: 870px;
}



.np-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.np-header .category-header-content {
    margin-bottom: 0;
}

.chc-more {
    display: flex;
    align-items: center;
}

.np-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0065ff;
    font-family: Montserrat;
    font-size: var(--font-medium);
    font-weight: 500;
    text-decoration: none;
}

.np-more-text {
    color: #0065ff;
}

.np-more img {
    height: 16px;
    width: 16px;
}

/** 
 * End Newest Posts Slider 
 * @author nmduc2
 */
.npm-item {
    width: 16px;
    height: 16px;
}

/* Responsive Design */
@media (max-width: 979px) {
    /* Font size adjustments */
    .categories {
        --font-medium: 13px;
        --font-title: 14px;
        --font-big: 24px;
    }
    
    /* Layout adjustments */
    .categories .td-container {
        width: auto;
    }
    
    .category-container .sidebar,
    .subcat .sidebar,
    .sidebar {
        display: none;
    }
    
    .category-container {
        margin: 0 auto;
        width: 100%;
        max-width: 970px;
        padding: 0 15px;
    }
    
    .categories .td-ss-main-content {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    /* Knowledge wrapper */
    .md-knowledge-wrapper {
        flex-direction: column;
        gap: 0;
        margin-top: 40px;
    }
    
    .md-knowledge-sidebar {
        width: 100%;
        min-height: auto;
        margin-bottom: 30px;
        display: none;
    }
    
    .md-knowledge-nav-list {
        position: static;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .md-knowledge-nav-item {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .md-knowledge-nav-item:last-child {
        border-bottom: none;
    }
    
    .md-knowledge-nav-item a {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .md-knowledge-content {
        padding: 0 15px 20px;
    }
    
    /* Header adjustments */
    .md-knowledge-header h1 {
        font-size: 1.4rem;
    }
    
    /* Spotlight section */
    .spotlight-header {
        flex-direction: column-reverse;
        gap: 15px;
        align-items: flex-start;
    }
    
    .spotlight-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .spotlight--right {
        flex-direction: column;
        overflow-x: auto;
        gap: 10px;
    }
    
    /* Search optimization */
    .spotlight .search-box,
    .spotlight__search {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        padding: 0;
        margin: 0;
    }
    
    .search-box {
        width: 100%;
        max-width: none;
    }
    
    .search-box input,
    .td-head-form-search-wrap input {
        padding: 12px 40px 12px 15px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    /* Pagination mobile optimization */
    .md-pagination {
        text-align: center;
        margin-top: 40px;
    }
    
    .md-pagination a,
    .md-pagination span {
        padding: 10px 14px;
        margin: 0 4px;
        font-size: 16px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Posts grid optimization */
    .subcategory-posts-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
        margin-top: 20px;
    }
    
    .subcategory-post-item {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        overflow: hidden;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .subcategory-post-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }
    
    .subcategory-header {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        margin-bottom: 24px;
    }
    
    /* Newest posts */
    .np-container .row-wrapper {
        flex-direction: column;
    }
    
    .np-wrapper {
        width: 100%;
        flex-wrap: wrap;
        background: linear-gradient(180deg, #ffffff 55.53%, #deebff 100%);
        border-radius: 6px;
    }
    
    .np__thumbnail {
        width: 100%;
        height: auto;
    }
    
    .np-left {
        width: 100%;
    }
    
    .np-right {
        padding: 0 12px 12px 12px;
    }
    
    .np__thumbnail img {
        border-radius: 6px 6px 0px 0px;
    }
    
    /* Meta info adjustments */
    .spost-meta {
        flex-direction: column;
        gap: 4px;
    }
    
    /* Common section margins */
    .newest-posts,
    .category-wrapper,
    .categories-post,
    .category-post-container,
    .explore {
        margin: 40px 0;
    }
    
    /* Explore section */
    .explore-content {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .explore-tag {
        position: relative;
        width: 50%;
        margin-bottom: 12px;
        max-width: 50%;
    }
    
    .et-content {
        padding: 24px;
    }
    
    .et__img {
        padding: 0 12px;
    }
    
    /* Slider adjustments */
    .newest-posts-slider .owl-nav {
        display: none;
    }
    
    .newest-posts-slider .owl-dots {
        margin-top: 16px;
    }
    
    .newest-slide .row-wrapper {
        flex-direction: column;
        gap: 16px;
    }
    
    .newest-slide .np-wrapper {
        width: 100%;
    }
    
    .desktop-tablet-slider {
        display: none !important;
    }
    
    .mobile-slider {
        display: block !important;
    }
    
    .newest-slide {
        padding: 0;
    }
    
    #newest-posts-slider {
        width: 100%;
    }
    
    /* Typography adjustments for mobile */
    .chc-text {
        font-size: 20px;
        line-height: 1.2;
    }
    
    .chc-line {
        /* width: 32px; */
        /* height: 3px; */
    }
    
    .md-section-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .md-knowledge-header-title {
        font-size: 24px !important;
        line-height: 1.3;
        padding: 0 15px;
    }
    
    .subcategory-section {
        margin-bottom: 40px;
    }
    
    .subcategory-post-item {
        height: auto;
        min-height: 100px;
    }
    
    .post-item-link {
        flex-direction: column;
    }
    
    .post-item-thumb {
        width: 100%;
        height: auto;
        min-height: 150px;
    }
    
    .post-item-thumb img {
        width: 100%;
        height: auto;
        min-height: 150px;
        object-fit: cover;
    }
    
    .post-item-content {
        padding: 16px 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 120px;
    }
    
    .post-item-title {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .post-item-excerpt {
        font-size: 14px;
        line-height: 1.5;
        -webkit-line-clamp: 3;
        color: #666;
    }
    
    /* Very small screen adjustments (Ã¢â€°Â¤480px) */
    .spotlight--right .spotlight-post {
        flex-direction: column;
        background: linear-gradient(180deg, #ffffff 55.53%, #deebff 100%);
        border-radius: 6px;
        margin-bottom: 12px;
    }
    
    .spost-content {
        padding: 12px;
    }
    
    .spotlight--right .spost__thumbnail {
        max-width: none;
        width: 100%;
        height: 180px;
        border-radius: 6px 6px 0 0;
    }
    
    .spotlight--right .spost__thumbnail img {
        border-radius: 6px 6px 0 0;
        width: auto;
        height: auto;
    }
    
    /* Explore section mobile optimization */
    .explore-content {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .explore-tag {
        flex: auto;
        position: relative;
        width: calc(50% - 4px);
        margin-bottom: 8px;
        max-width: calc(50% - 4px);
    }
    
    .explore-tag img {
        width: 100%;
        height: auto;
        min-height: 120px;
        object-fit: cover;
    }
    
    /* Ultra small screen final adjustments */
    .md-knowledge-content {
        padding: 15px;
    }
    
    .newest-posts,
    .category-wrapper,
    .categories-post,
    .category-post-container,
    .explore {
        margin: 20px 0;
    }
}
.categories#td-outer-wrap {
    padding: 0;
}