
/* =========================================================
   V4.1 — Dynamic frontend pages style restoration
   ========================================================= */
.dynamic-page-hero{
  position:relative;
  min-height:390px;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:url("campus.jpg") center/cover no-repeat;
}
.dynamic-page-hero__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(4,27,63,.96),rgba(7,55,118,.76),rgba(7,55,118,.34));
}
.dynamic-page-hero__content{
  position:relative;
  z-index:1;
  padding-block:72px;
  color:#fff;
}
.dynamic-page-hero__eyebrow{
  display:inline-block;
  margin-bottom:10px;
  color:#acd3ff;
  font-size:12px;
  font-weight:800;
}
.dynamic-page-hero h1{
  margin:0 0 12px;
  font-size:clamp(39px,5vw,66px);
  line-height:1.25;
}
.dynamic-page-hero p{
  max-width:720px;
  margin:0;
  color:#e5f0ff;
  font-size:15px;
  line-height:1.9;
}
.dynamic-page-hero__breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:23px;
  font-size:11px;
}
.dynamic-page-hero__breadcrumb a{color:#fff;text-decoration:none}
.dynamic-page-hero__breadcrumb strong{color:#acd3ff}

.department-grid--page{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  padding-block:70px;
}
.department-grid--page .department-card{
  min-height:300px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:28px;
  border:1px solid #dfe8f3;
  border-radius:21px;
  background:#fff;
  box-shadow:0 15px 38px rgba(5,37,81,.08);
}
.department-card__icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  margin-bottom:18px;
  border-radius:15px;
  background:#eaf3ff;
  color:#126fd6;
  font-size:22px;
}
.department-grid--page .department-card h3{
  margin:0 0 9px;
  color:#082f68;
  font-size:21px;
  line-height:1.55;
}
.department-grid--page .department-card p{
  flex:1;
  margin:0 0 14px;
  color:#66758a;
  font-size:13px;
  line-height:1.85;
}
.department-grid--page .department-card small{
  display:block;
  margin-bottom:14px;
  color:#8996a6;
}
.department-grid--page .department-card a{
  color:#126fd6;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}

.news-grid--page{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  padding-block:70px;
}
.news-grid--page .news-card{
  overflow:hidden;
  border:1px solid #dfe8f3;
  border-radius:20px;
  background:#fff;
  box-shadow:0 15px 38px rgba(5,37,81,.08);
}
.news-card__image{
  position:relative;
  height:230px;
  display:block;
  overflow:hidden;
  background:#eaf1f9;
}
.news-card__image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}
.news-card:hover .news-card__image img{transform:scale(1.05)}
.news-card__image>span{
  position:absolute;
  top:14px;
  right:14px;
  min-height:29px;
  display:inline-flex;
  align-items:center;
  padding:0 10px;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#126fd6;
  font-size:10px;
  font-weight:900;
}
.media-placeholder{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#dcecff,#9ebfe5);
  color:#082f68;
  font-weight:900;
}
.news-card__body{padding:21px}
.news-card__body time{color:#8996a6;font-size:10px}
.news-card__body h3{
  margin:7px 0 9px;
  font-size:18px;
  line-height:1.6;
}
.news-card__body h3 a{color:#082f68;text-decoration:none}
.news-card__body p{
  margin:0 0 14px;
  color:#66758a;
  font-size:12.5px;
  line-height:1.8;
}
.text-link{color:#126fd6;font-size:11px;font-weight:800;text-decoration:none}
.pagination{
  display:flex;
  justify-content:center;
  padding-bottom:65px;
}
.pagination nav{width:100%}
.empty-state{
  grid-column:1/-1;
  padding:50px 25px;
  border:1px dashed #cbd9e8;
  border-radius:18px;
  background:#fff;
  color:#66758a;
  text-align:center;
}

@media(max-width:980px){
  .department-grid--page,.news-grid--page{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .dynamic-page-hero{min-height:330px}
  .department-grid--page,.news-grid--page{grid-template-columns:1fr;padding-block:50px}
}


/* =========================================================
   V4.2 — Default imagery for dynamic content
   ========================================================= */
.department-card--with-image{
  padding:0 !important;
  overflow:hidden;
}
.department-card__media{
  position:relative;
  width:100%;
  height:230px;
  display:block;
  overflow:hidden;
  background:#eaf1f9;
}
.department-card__media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 45%,rgba(3,24,54,.55));
}
.department-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s ease;
}
.department-card--with-image:hover .department-card__media img{
  transform:scale(1.06);
}
.department-card__media span{
  position:absolute;
  z-index:2;
  top:14px;
  left:14px;
  min-width:42px;
  height:32px;
  display:grid;
  place-items:center;
  padding-inline:9px;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#082f68;
  font-size:10px;
  font-weight:900;
}
.department-card__body{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:23px;
}
.department-card__body h3{
  margin:0 0 9px;
  color:#082f68;
  font-size:20px;
  line-height:1.55;
}
.department-card__body p{
  flex:1;
  margin:0 0 14px;
  color:#66758a;
  font-size:12.5px;
  line-height:1.85;
}
.department-card__body small{
  display:block;
  margin-bottom:14px;
  color:#8996a6;
}
.department-card__body>a{
  color:#126fd6;
  font-size:11px;
  font-weight:800;
  text-decoration:none;
}
.article{
  max-width:920px;
  padding:30px;
  border:1px solid #e1eaf4;
  border-radius:22px;
  background:#fff;
  box-shadow:0 18px 45px rgba(5,37,81,.08);
}
.article__cover,
.detail-cover{
  width:100%;
  display:block;
  object-fit:cover;
  border-radius:18px;
}
.article__cover{height:min(520px,58vw);margin-bottom:25px}
.detail-cover{height:430px;margin-bottom:24px}
.article__lead{
  color:#17304f;
  font-size:17px;
  font-weight:700;
  line-height:2;
}
.article__body{
  color:#5f6f84;
  font-size:15px;
  line-height:2.1;
}
.detail-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:26px;
  align-items:start;
  padding-block:70px;
}
.detail-content,
.detail-sidebar .info-card{
  padding:25px;
  border:1px solid #e1eaf4;
  border-radius:20px;
  background:#fff;
  box-shadow:0 14px 34px rgba(5,37,81,.07);
}
.detail-content h2,
.detail-sidebar h3{color:#082f68}
.detail-content p,
.detail-sidebar p{color:#66758a;line-height:1.9}
@media(max-width:850px){
  .detail-layout{grid-template-columns:1fr}
  .detail-cover{height:320px}
}
