/* Our Libraries — remove top icon and use library name banner */
.our-library-card{
  padding-top:0 !important;
}
.our-library-name-banner{
  margin:0 -22px 22px;
  padding:19px 22px 18px;
  background:linear-gradient(135deg,#0f1e4a 0%,#173a78 100%);
  border-bottom:4px solid #e58a00;
}
.our-library-card:nth-child(2) .our-library-name-banner{
  background:linear-gradient(135deg,#12285f 0%,#245092 100%);
}
.our-library-card:nth-child(3) .our-library-name-banner{
  background:linear-gradient(135deg,#172d65 0%,#2e5ba1 100%);
}
.our-library-card:nth-child(4) .our-library-name-banner{
  background:linear-gradient(135deg,#0b1a42 0%,#214478 100%);
}
.our-library-campus-label{
  display:block;
  color:#ffc66b;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.09em;
  margin-bottom:5px;
}
.our-library-name-banner strong{
  display:block;
  color:#fff;
  font-size:20px;
  line-height:1.2;
}
.our-library-btn{
  border:0;
  cursor:pointer;
}

/* Popup */
.library-details-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.library-details-modal.open{
  display:flex;
}
.library-details-backdrop{
  position:absolute;
  inset:0;
  background:rgba(4,12,32,.72);
  backdrop-filter:blur(5px);
}
.library-details-dialog{
  position:relative;
  z-index:2;
  width:min(760px,100%);
  max-height:88vh;
  overflow:auto;
  background:#fff;
  border-radius:22px;
  box-shadow:0 30px 80px rgba(0,0,0,.28);
  animation:libraryModalIn .28s ease both;
}
@keyframes libraryModalIn{
  from{opacity:0;transform:translateY(18px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.library-details-close{
  position:absolute;
  top:16px;
  right:16px;
  z-index:3;
  width:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:50%;
  background:rgba(255,255,255,.10);
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.library-details-header{
  padding:30px 64px 26px 30px;
  background:linear-gradient(135deg,#0f1e4a,#173a78);
  border-bottom:4px solid #e58a00;
}
.library-details-header span{
  display:block;
  color:#ffc66b;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.09em;
  margin-bottom:5px;
}
.library-details-header h3{
  margin:0;
  color:#fff;
  font-size:28px;
}
.library-details-body{
  padding:28px 30px 30px;
}
.library-details-body > p{
  margin:0 0 24px;
  color:#5f6b7d;
  line-height:1.7;
  font-size:14px;
}
.library-details-grid{
  display:grid;
  grid-template-columns:1.25fr .95fr;
  gap:24px;
}
.library-detail-block{
  padding:20px;
  border:1px solid #e5e9f0;
  border-radius:16px;
  background:#f8fafc;
}
.library-detail-block h4{
  margin:0 0 14px;
  color:#0f1e4a;
  font-size:15px;
}
.library-service-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.library-service-item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 10px;
  border-radius:10px;
  background:#fff;
  border:1px solid #e7ebf1;
  color:#536075;
  font-size:12px;
}
.library-service-item i{
  color:#e58a00;
}
.library-contact-list{
  display:grid;
  gap:12px;
}
.library-contact-list div{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:#5a6578;
  font-size:12px;
  line-height:1.5;
}
.library-contact-list i{
  width:15px;
  margin-top:2px;
  color:#e58a00;
  text-align:center;
}
body.library-modal-open{
  overflow:hidden;
}
@media(max-width:680px){
  .library-details-grid{grid-template-columns:1fr}
  .library-service-list{grid-template-columns:1fr}
  .library-details-header{padding:26px 58px 22px 22px}
  .library-details-header h3{font-size:23px}
  .library-details-body{padding:22px}
}
