.categories {
    --font-medium: 14px;
    --font-title: 16px;
    --font-big: 32px;
}

.categories#td-outer-wrap {
    padding: 0;
}

.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;
}

.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;
}

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

.chc-text {
    font-family: Montserrat SemiBold, Arial, sans-serif;
    color: #0065ff;
    font-size: var(--font-big);
}

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

/* Spotlight */

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

.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: var(--font-title);
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: left;
    margin-bottom: 8px;
}

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

.spost__title a {
    color: #172b4d;
    opacity: 1;
}

.spotlight--left .spost__thumbnail {
    max-height: 264px;
    overflow: hidden;
    border-radius: 6px 6px 0px 0px;
}

.spost__thumbnail {
    display: block;
}

.spost__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

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

.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: 16px;
}

.spotlight--right .spost__thumbnail {
	width: 220px;
	height: 120px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    gap: 16px;
}

.spotlight--right .spotlight-post {
    display: flex;
    gap: 16px;
}

.spotlight--right .spost__title {
    
    font-size: var(--font-medium);
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0px;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: Montserrat SemiBold;
    margin-bottom: 8px;
}

.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 #0065ff;
    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;
}

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

@media (max-width: 1170px) {
    .categories .td-container {
        width: auto;
    }
    .category-container .sidebar {
        display: none;
    }
    .category-container {
        margin: 0 auto;
        width: 970px;
    }
    .categories .td-ss-main-content {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
	.sidebar {
		display: none;
	}
}

@media (min-width: 1200px) {
    .categories .container {
        width: 1200px;
    }
}

@media (max-width: 1024px) {
    .spost-meta {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 980px) {
    .categories {
        --font-medium: 13px;
        --font-title: 14px;
        --font-big: 24px;
    }

    .spotlight-content {
        flex-direction: column;
    }
    .np-container .row-wrapper {
        flex-direction: column;
    }
    .np-wrapper {
        width: 100%;
    }
    .spotlight-header {
        gap: 24px;
    }
    .spotlight-header .search-box {
        margin-left: 0;
    }
    .newest-posts,
    .category-wrapper,
    .categories-post,
    .category-post-container,
    .explore {
        margin: 40px 0;
    }
}

@media (max-width: 750px) {
	.explore-tag {
        position: relative;
        width: 50%;
        margin-bottom: 12px;
		max-width: 50%;
    }
	.explore-content {
        gap: 8px;
        flex-wrap: wrap;
		justify-content: center;
    }
}

@media (max-width: 420px) {
    .spotlight .search-box,
    .spotlight__search {
        width: 100%;
    }
    .spotlight--right .spotlight-post {
        flex-direction: column;
        background: linear-gradient(180deg, #ffffff 55.53%, #deebff 100%);
        border-radius: 6px;
    }
    .spost-content {
        padding: 8px;
    }
    .spost-meta {
        flex-direction: row;
        gap: 12px;
    }
    .np-wrapper {
        flex-wrap: wrap;
        background: linear-gradient(180deg, #ffffff 55.53%, #deebff 100%);
        border-radius: 6px;
    }
    .spotlight--right .spost__thumbnail {
        max-width: none;
		width: 100%;
		height: 180px;
    }
    .et-content {
        padding: 24px;
    }
    .et__img {
        padding: 0 12px;
    }
    .explore-content {
        gap: 0px;
        flex-wrap: wrap;
		justify-content: center;
    }
    .explore-tag {
        flex: auto;
        position: relative;
        width: 50%;
        margin-bottom: 12px;
		max-width: 50%;
    }
    .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;
    }
    .newest-posts,
    .category-wrapper,
    .categories-post,
    .category-post-container,
    .explore {
        margin: 20px 0;
    }
}

/**
 * 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: 50%;
    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;
}

/* Media queries for newest-posts-slider */
@media (max-width: 980px) {
    .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%;
    }
}

@media (max-width: 767px) {
    .desktop-tablet-slider {
        display: none !important;
    }
    
    .mobile-slider {
        display: block !important;
    }
    
    .newest-slide {
        padding: 0;
    }
    #newest-posts-slider {
        width: 100%;
    }
       
}

@media (max-width: 420px) {
    .newest-slide {
        padding: 0;
    }
}
.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;
}

.newest-posts-slider .owl-nav {
    top: 40%;
}