#category-wrapper {}

#category-wrapper .category-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

#category-wrapper .category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#category-wrapper .category-banner_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(255 255 255 / 40%), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

#category-wrapper .category-banner_info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #fff;
    text-align: center;
}

#category-wrapper .category-banner_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

#category-wrapper .category-banner_meta {
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#category-wrapper .category-banner_meta .dot {
    font-size: 18px;
    line-height: 1;
    color: #ccc;
}

#category-wrapper .breadcrumb-wrapper {
    background-color: #f8f9fa;
    padding: 12px 0;
    font-size: 14px;
    margin-bottom: 20px;
}

#category-wrapper .breadcrumb-wrapper .breadcrumb {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    background: none;
}

#category-wrapper .breadcrumb-wrapper .breadcrumb .breadcrumb-item {
    color: #666;
}

#category-wrapper .breadcrumb-wrapper .breadcrumb .breadcrumb-item a {
    color: var(--primary-color, #1e88e5);
    text-decoration: none;
    transition: color 0.2s ease;
}

#category-wrapper .breadcrumb-wrapper .breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-color-hover, #1565c0);
}

/* DESCRIPTION */
#category-wrapper .description {}
#category-wrapper .services-wrapper {
    margin-top: 30px;
}

#category-wrapper .services-wrapper .services-list_item {
    border: 1px solid var(--border-color, #ddd);
    border-radius: var(--border-radius, 8px);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#category-wrapper .services-wrapper .services-list_item:hover {
    box-shadow: var(--box-shadow, 0 2px 8px rgba(0, 0, 0, 0.08));
}

#category-wrapper .services-wrapper .services-list_item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

#category-wrapper .services-wrapper .item-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #f0f0f0;
    overflow: hidden;
    flex-shrink: 0;
}

#category-wrapper .services-wrapper .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

#category-wrapper .services-wrapper .services-list_item:hover .item-image img {
    transform: scale(1.05);
}

#category-wrapper .services-wrapper .item-description {
    padding: 12px;
    font-size: 14px;
    color: var(--text-color, #333);
    line-height: 1.5;
    flex-grow: 1;
}

#category-wrapper .social-share {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

#category-wrapper .social-share .social-share_label {
    font-weight: bold;
    color: var(--heading-color, #111);
}

#category-wrapper .social-share .social-share_item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

#category-wrapper .social-share .social-share_item.facebook {
    background-color: #3b5998;
}

#category-wrapper .social-share .social-share_item.facebook:hover {
    background-color: #2d4373;
}

#category-wrapper .social-share .social-share_item.twitter {
    background-color: #1da1f2;
}

#category-wrapper .social-share .social-share_item.twitter:hover {
    background-color: #0d95e8;
}

#category-wrapper .social-share .social-share_item.linkedin {
    background-color: #0077b5;
}

#category-wrapper .social-share .social-share_item.linkedin:hover {
    background-color: #005983;
}

/* SIDEBAR */
#category-wrapper .sidebar {
    border-radius: var(--border-radius, 8px);
    padding: 16px;
    text-align: center;
}

#category-wrapper .sidebar .sidebar-item {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #ddd);
}
#category-wrapper .sidebar .sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
#category-wrapper .sidebar .sidebar-item_title {
}

#category-wrapper .sidebar .sidebar-item_list {
    list-style: none;
}

#category-wrapper .sidebar .sidebar-item_list .list-item {
    text-align: left;
    border-bottom: 1px solid #ededed;
    padding-bottom: 10px;
    padding-left: 20px;
}
#category-wrapper .sidebar .sidebar-item_list .list-item:hover {
    background-color: var(--primary);
}

#category-wrapper .sidebar .sidebar-item_list .list-item:hover .list-item_link {
    color: #ffffff;
}
#category-wrapper .sidebar .sidebar-item_list .list-item_link {}

#category-wrapper .sidebar .contact-form {}

.sidebar-navigation {
    background-color: #fff;
    box-shadow: var(--box-shadow, 0 2px 8px rgba(0,0,0,0.08));
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--primary-color);
}

.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    position: relative;
    border-bottom: 1.5px solid var(--primary-color);
}

.sidebar-title span {
    display: inline-block;
    background-color: var(--primary-color, #1e88e5);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 16px;
    position: relative;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 12px 16px;
}

.sidebar-menu > li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.sidebar-menu > li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    color: var(--text-color, #111);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-menu a:hover {
    color: var(--primary-color-hover, #1565c0);
}

/* Submenu nếu có */
.submenu {
    padding-left: 16px;
    margin-top: 6px;
}

.submenu li {
    padding: 6px 0;
}
/* Optional: căn chỉnh nút + input cho đẹp hơn */
.sidebar-search-form .form-control {
    font-size: 14px;
    border-radius: 6px 0 0 6px;
    padding: 8px 12px;
}

.sidebar-search-form .btn {
    border-radius: 0 6px 6px 0;
    padding: 6px 12px;
    font-size: 14px;
}
/* === Sidebar Post Item === */
.sidebar-post {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.sidebar-post:last-child {
    border-bottom: none;
}

/* Link bao toàn bộ, canh hàng ngang */
.sidebar-post-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
}

/* Thumbnail */
.sidebar-post-thumb {
    flex: 0 0 80px;        /* cố định 80×60 */
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* Tiêu đề */
.sidebar-post-title {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-color, #111);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.sidebar-post-link:hover .sidebar-post-title {
    color: var(--primary-color-hover, #1565c0);
}
