/* ============================================
   Category & Archive Page Styles
   ============================================ */

/* Banner */
.ty-banner-1 {
    overflow: hidden;
    line-height: 0;
    text-align: center;
    width: 100%;
}

.ty-banner-1 img {
    visibility: hidden;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.ty-banner-1 img.show {
    visibility: visible;
}

/* Main Layout */
.blk-main {
    width: 100%;
    margin: 0 auto;
    padding: 40px 0;
    box-sizing: border-box;
}

.blk {
    margin-bottom: 25px;
}

.blk.plc {
    margin-bottom: 20px;
}

.blk-xs {
    width: 27.5%; /* 330px / 1200px */
    float: left;
    box-sizing: border-box;
}

.blk-sm {
    width: 70%; /* 780px / 1200px */
    float: right;
    box-sizing: border-box;
}

.way-sm {
    width: 68.33%; /* 820px / 1200px */
    float: right;
    box-sizing: border-box;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

/* Breadcrumb */
.p12-curmbs-1 {
    height: 60px;
    line-height: 60px;
    padding-left: 26px;
    background: url('../images/site.png') no-repeat left center;
    font-size: 14px;
    color: #999;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.p12-curmbs-1 a {
    color: #999;
}

.p12-curmbs-1 a:hover {
    color: var(--primary-color);
}

.p12-curmbs-1 b {
    border-left: 10px solid #ea5404;
    font-weight: normal;
    padding-left: 8px;
}

.p12-curmbs-1 i {
    font-style: normal;
}

.p12-curmbs-1 span {
    padding: 0 5px;
}

/* Sidebar Category */
.new_ctg {
    padding: 40px 25px 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: var(--white);
}

.new_ctg h3 {
    font-size: 20px;
    color: #333;
    line-height: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.new_ctg ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.new_ctg li {
    
    position: relative;
    border-bottom: 1px solid #e5e5e5;
    font-size: 16px;
    color: #333;
    background: url('../images/case_jia.png') no-repeat left 20px;
    padding: 15px 0;
}

.new_ctg li a {
    display: block;
    padding-left: 26px;
    color: #333;
}

.new_ctg li:last-child {
    border: 0;
}

.new_ctg li.sidenavcur:after,
.new_ctg li:hover:after {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: calc(100% + 25px);
    height: 2px;
    content: "";
    background: #ea5404;
}

.new_ctg li:hover a {
    color: var(--primary-color);
}

/* News List (xwlb) */
.xwlb {
    width: 100%;
}

.xwlb_con {
    width: 100%;
}

.xwlb_con dl {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    overflow: hidden;
}

.xwlb_con dl:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.xwlb_con dt {
    float: left;
    width: 25.64%; /* 200px / 780px */
    margin-right: 2.56%; /* 20px / 780px */
    overflow: hidden;
    box-sizing: border-box;
}

.xwlb_con dt img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.xwlb_con dt:hover img {
    transform: scale(1.05);
}

.xwlb_con dd {
    overflow: hidden;
}

.xwlb_con dd h4 {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 18px;
    line-height: 24px;
    font-weight: normal;
}

.xwlb_con dd h4 a {
    color: #333;
    transition: color 0.3s ease;
}

.xwlb_con dd h4 a:hover {
    color: var(--primary-color);
}

.xwlb_con dd p {
    font-size: 14px;
    color: #666;
    line-height: 24px;
    margin: 0 0 10px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.xwlb_con dd i {
    font-style: normal;
    font-size: 14px;
    color: #999;
    display: block;
    padding-left: 20px;
    background: url('../images/date_ic.png') no-repeat left center;
    background-size: 16px 16px;
}

/* Tags */
.new_tag {
    margin-top: 20px;
    padding: 40px 25px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: var(--white);
    display:none;
}

.new_tag a {
    display: inline-block;
    padding: 5px 15px;
    margin: 5px 5px 5px 0;
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    text-decoration: none;
}

.new_tag a:hover {
    color: var(--white);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Pagination */
.p12-pagination-1 {
    margin-top: 40px;
    text-align: center;
}

.p12-pagination-1.g {
    margin-top: 0;
}

.p12-pagination-1.blk {
    margin-bottom: 25px;
}

.p12-pagination-1-main {
    display: inline-block;
}

.p12-pagination-1-main a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #e5e5e5;
    color: #666;
    background: var(--white);
    transition: var(--transition);
}

.p12-pagination-1-main a:hover,
.p12-pagination-1-main a.page_curr,
.p12-pagination-1-main a.page-numbers.current,
.p12-pagination-1-main span.page-numbers.current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* WordPress pagination styles */
.p12-pagination-1-main .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #e5e5e5;
    color: #666;
    background: var(--white);
    transition: var(--transition);
    text-decoration: none;
}

.p12-pagination-1-main .page-numbers:hover,
.p12-pagination-1-main .page-numbers.current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.p12-pagination-1-main .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.p12-pagination-1-main .page-numbers.dots:hover {
    background: transparent;
    color: #666;
}

.p12-pagination-1-main .page_next,
.p12-pagination-1-main .page_last {
    padding: 8px 20px;
}

/* Video Grid Template Styles */
.zxlb-3n-ts-01 {
    width: 100%;
}

.zxlb-3n-ts-01-list {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 0.8%;
    overflow: hidden;
}

.zxlb-3n-ts-01-list dl {
    width: 48%;
    border: 1px solid #dedede;
    background: #fff;
    float: left;
    margin: 0 4% 15px 0;
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.3s ease;
}

.zxlb-3n-ts-01-list dl:nth-child(2n) {
    margin-right: 0;
}

.zxlb-3n-ts-01-list dt {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.zxlb-3n-ts-01-list dt div {
    width: 100%;
    height: 248px;
    position: relative;
    overflow: hidden;
}

.zxlb-3n-ts-01-list dt iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.zxlb-3n-ts-01-list dd {
    padding: 6px 20px;
    margin: 0;
}

.zxlb-3n-ts-01-list dd h4 {
    height: 45px;
    font-weight: normal;
    font-size: 18px;
    color: #4b4b4b;
    line-height: 45px;
    overflow: hidden;
    text-align: center;
    margin: 0;
    padding: 0;
}

.zxlb-3n-ts-01-list dd h4 a {
    display: block;
    height: 45px;
    color: #4b4b4b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zxlb-3n-ts-01-list dl:hover {
    border-color: #1c2087;
}

.zxlb-3n-ts-01-list dl:hover h4 a {
    color: #1c2087;
}

/* Case Studies Template Styles - Moved to category-cases.css */

/* News Archive Page Styles - Moved to news-archive.css */

/* ============================================
   Category Page Responsive Styles
   ============================================ */

@media (max-width: 1199.98px) {
    .blk-main {
        padding: 40px 0px;
    }
    
    .p12-curmbs-1 {
        padding-left: 26px;
        padding-right: 20px;
    }
    
    .blk-xs {
        width: 30%;
    }
    
    .blk-sm {
        width: 68%;
    }
    .xwlb_con dd h4 a{
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .xwlb_con dt {
        width: 28%;
        margin-right: 3%;
    }
}
@media (max-width: 1199.98px) {
    .zxlb-3n-ts-01-list dl {
        width: 48%;
        margin-right: 4%;
    }
    
    .zxlb-3n-ts-01-list dl:nth-child(2n) {
        margin-right: 0;
    }
}

@media (max-width: 1024px) {
    .xwlb_con dt{
        width: 35%;
    }
    
    .zxlb-3n-ts-01-list dt div {
        height: 220px;
    }
}

@media (max-width: 991.98px) {
    .blk-xs{
        display: none;
    }
    
    .zxlb-3n-ts-01-list {
        padding-left: 0;
    }
    
    .zxlb-3n-ts-01-list dl {
        width: 48%;
        margin-right: 4%;
    }
    
    .zxlb-3n-ts-01-list dl:nth-child(2n) {
        margin-right: 0;
    }
    
    .zxlb-3n-ts-01-list dt div {
        height: 200px;
    }
    
    .zxlb-3n-ts-01-list dd h4 {
        font-size: 16px;
        height: 40px;
        line-height: 40px;
    }
    .blk-main {
        padding: 20px 0px;
    }
    
    .blk-sm {
        width: 100%;
        float: none;
        margin-bottom: 30px;
    }
    
    .blk-xs {
        width: 100%;
        float: none;
    }
    
    .xwlb_con dt {
        width: 30%;
        margin-right: 3%;
    }
    
    .xwlb_con dd h4 {
        font-size: 16px;
    }
    
    .xwlb_con dd p {
        font-size: 13px;
        line-height: 20px;
    }
    
    .new_ctg {
        margin-bottom: 30px;
    }
    
    .new_tag {
        margin-bottom: 0;
    }
}
@media (max-width: 603px) {
    .zxlb-3n-ts-01-list dl{
        width: 100%;
        margin-right: 0;
    }
    .zxlb-3n-ts-01-list dt div{
        height: 260px;
    }
}
@media (max-width: 575.98px) {
    .blk-main {
        padding: 15px 0px;
    }
    
    .p12-curmbs-1 {
        padding: 0 10px;
        font-size: 12px;
        height: 50px;
        line-height: 50px;
        padding-left: 24px;
    }
    
    .xwlb_con dl {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .xwlb_con dt {
        width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .xwlb_con dd {
        overflow: visible;
    }
    
    .xwlb_con dd h4 {
        font-size: 15px;
        line-height: 22px;
    }
    
    .xwlb_con dd p {
        font-size: 12px;
        line-height: 18px;
    }
    
    .new_ctg {
        padding: 20px 15px 10px;
    }
    
    .new_ctg li {
        height: 60px;
        line-height: 60px;
        font-size: 14px;
    }
    
    .new_tag {
        padding: 20px 15px;
    }
    
    .new_tag a {
        font-size: 12px;
        padding: 4px 10px;
        margin: 3px 3px 3px 0;
    }
    
    .p12-pagination-1-main a,
    .p12-pagination-1-main .page-numbers {
        padding: 6px 12px;
        font-size: 13px;
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .zxlb-3n-ts-01-list dl {
        margin-bottom: 15px;
    }
    
    .zxlb-3n-ts-01-list dt div {
        height: 200px;
    }
    
    .zxlb-3n-ts-01-list dd {
        padding: 6px 12px;
    }
    
    .zxlb-3n-ts-01-list dd h4 {
        font-size: 14px;
        line-height: 20px;
        min-height: 40px;
    }
    
    .blk-main {
        padding: 10px 0px;
    }
    
    .p12-curmbs-1 {
        font-size: 11px;
        height: 45px;
        line-height: 45px;
        padding-left: 20px;
        background-size: 14px 14px;
    }
    
    .xwlb_con dd h4 {
        font-size: 14px;
        line-height: 20px;
    }
    
    .xwlb_con dd p {
        font-size: 11px;
        line-height: 16px;
    }
    
    .new_ctg h3 {
        font-size: 18px;
    }
    
    .new_ctg li {
        height: 50px;
        line-height: 50px;
        font-size: 13px;
    }
    
    .p12-pagination-1-main a,
    .p12-pagination-1-main .page-numbers {
        padding: 5px 10px;
        font-size: 12px;
        margin: 0 2px;
    }
}

