/* Existing njupt appearance; corrections for current widget contracts. */
.njupt-empty{display:flex!important;align-items:center;justify-content:center;min-height:160px;width:100%;color:#666;grid-column:1/-1;text-align:center}
.col_nav li:not(.title){padding-left:calc(var(--njupt-level,0)*12px)}
.detailsbox .info{display:flex;justify-content:flex-start;gap:8px 20px;flex-wrap:wrap}.detailsbox .info .date{margin-left:0}
.njupt-course-grid{display:grid!important;grid-template-columns:repeat(var(--njupt-cols,3),minmax(0,1fr));gap:24px}.njupt-course-grid::before,.njupt-course-grid::after{display:none!important}.njupt-course-grid>.item{width:auto!important;margin:0!important;min-width:0}
@media(max-width:900px){.njupt-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.njupt-course-grid{grid-template-columns:minmax(0,1fr)}}

.njupt-news-placeholder{display:flex;width:100%;height:100%;align-items:center;justify-content:center;padding:32px;text-align:center;color:#fff;background:#467fb9;font-size:20px;line-height:1.8}

.expNews_area.news_body .right .noticeList .time{box-sizing:border-box;width:max-content;flex:0 0 auto;overflow:hidden}.expNews_area.news_body .right .noticeList .time .top{width:100%}.njupt-date{font-size:12px;display:block;padding:0 8px;line-height:28px;white-space:nowrap}.news_body .noticeList h4{flex:1;min-width:0;width:auto!important}

/* njupt center cards and current-widget grids: keep the existing blue identity. */
.njupt-center-grid{display:grid;grid-template-columns:repeat(var(--njupt-center-cols,2),minmax(0,1fr));gap:24px;margin-top:24px}
.njupt-center-grid::before,.njupt-center-grid::after{display:none!important}
.njupt-centers .njupt-center-grid>.item{display:flex;flex-direction:column;width:auto;height:auto;min-width:0;margin:0;border:1px solid #e4e9ef;border-radius:4px;overflow:hidden;background:#fff}
.njupt-centers .njupt-center-grid>.item>.img{display:block;width:100%;height:auto;aspect-ratio:16/9;overflow:hidden;background:#edf2f8}
.njupt-centers .njupt-center-grid>.item>.img img{display:block;width:100%;height:100%;object-fit:cover}
.njupt-centers .exp-title{position:static;padding:16px 20px 0;font-size:19px;line-height:1.5;font-weight:600;color:#333;background:none;text-align:left}
.njupt-centers .exp-content{padding:0 20px;color:#666;font-size:14px;line-height:25px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-height:50px;min-height:50px;margin:8px 0 20px}
.njupt-centers .item:hover .exp-title{color:#3b7abd}
.njupt-course-grid .item>.img{display:block;width:100%;height:auto!important;aspect-ratio:16/10;overflow:hidden}
.njupt-course-grid .item>.img img{display:block;width:100%;height:100%;object-fit:cover}
.njupt-course-grid .item h4{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.njupt-center-news>.content.flex{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;align-items:start}
.njupt-center-news.expNews-body .left,.njupt-center-news.expNews-body .right{width:auto;height:auto;min-width:0;margin:0;overflow:visible}
.njupt-center-news.expNews-body .noticeList li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;height:auto;line-height:1.7;padding:16px 0;border-bottom:1px dashed #dcdcdc}
.njupt-center-news.expNews-body .noticeList h4{width:auto;min-width:0;margin:0;font-size:14px;line-height:1.7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.njupt-center-news.expNews-body .noticeList h4 a{font-size:14px;color:#666}
.njupt-center-news .noticeList time{font-size:12px;white-space:nowrap;color:#999}
.njupt-center-news .noticeList .njupt-empty{display:flex;min-height:128px}
.njupt-center-home .course_area .expCourse-main>.title-icon{margin-bottom:24px}
.njupt-center-home .teacher_area .title-icon{margin-bottom:8px}
@media(max-width:600px){.njupt-center-grid,.njupt-center-news>.content.flex{grid-template-columns:minmax(0,1fr)}}

/* Current and legacy Yii pager markup share njupt's button treatment. */
.pageBody :is(.ui-pagination,.pagination){display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;width:100%;height:auto;min-height:36px;clear:both;padding:0;margin:32px 0 0;list-style:none;background:none;text-align:center;box-sizing:border-box}
.pageBody :is(.ui-pagination,.pagination)>li{display:block;float:none;position:static;width:auto;height:auto;line-height:1.5;margin:0;padding:0;border:0;background:none;font-size:14px;color:#555}
.pageBody :is(.ui-pagination,.pagination)>li>:is(a,span){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:36px;height:36px;margin:0;padding:0 12px;border:1px solid #d9e2ec;border-radius:4px;background:#fff;color:#555;line-height:1;font-size:14px;text-decoration:none}
.pageBody :is(.ui-pagination,.pagination)>li>a:hover{border-color:#3b7abd;color:#3b7abd;background:#f1f6fc}
.pageBody :is(.ui-pagination,.pagination)>li>a:focus-visible{outline:2px solid #3b7abd;outline-offset:2px}
.pageBody :is(.ui-pagination,.pagination)>:is(.is-active,.active,.current)>:is(a,span){background:#3b7abd;border-color:#3b7abd;color:#fff}
.pageBody :is(.ui-pagination,.pagination)>:is(.is-disabled,.disabled)>:is(a,span){background:#f5f7fa;border-color:#e5e9ef;color:#a4acb7;cursor:default}

.njupt-course-grid>.item{height:auto!important;min-height:0;float:none;display:flex;flex-direction:column}.njupt-course-grid .item .info{margin-top:auto}

#expCenterClassList{display:block}#expCenterClassList>.course_area{width:100%}
