/* refactor-index-03.css */
/* Small visual accents for major homepage sections */
.section-head h2,
.subsection-title h3,
.column-head h3{
  display:flex;
  align-items:center;
  gap:10px;
}
.section-head h2::before,
.subsection-title h3::before,
.column-head h3::before{
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:inline-grid;
  place-items:center;
  border-radius:9px;
  background:#fff5e6;
  color:#e58a00;
  font-size:15px;
  box-shadow:inset 0 0 0 1px #f3dfbd;
}

/* Section-specific icons */
#arrivals .section-head h2::before{content:"\f02d";}              /* book */
#browse-subject .section-head h2::before{content:"\f02e";}       /* bookmark */
#library-resources .section-head h2::before{content:"\f1c0";}    /* database */
#our-libraries .section-head h2::before{content:"\f19c";}        /* institution */
#blog .section-head h2::before{content:"\f1ea";}                 /* newspaper */
#library-gallery .section-head h2::before{content:"\f03e";}      /* image */
#collections .section-head h2::before{content:"\f02d";}

/* Give service/quick cards a consistent small icon treatment */
.quick-card > i,
.service-card > i,
.resource-card > i{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#fff6e8;
  color:#e58a00;
  font-size:19px;
  margin-bottom:10px;
}

/* Our Libraries card campus marker */
.library-card-body > span::before{
  content:"\f3c5";
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  margin-right:6px;
  color:#e58a00;
}

/* Blog category marker */
.image-blog-body > span::before{
  content:"\f02d";
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  margin-right:6px;
}

/* Gallery overlay campus marker */
.gallery-overlay > span::before{
  content:"\f3c5";
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  margin-right:6px;
}

@media(max-width:650px){
  .section-head h2::before,
  .subsection-title h3::before,
  .column-head h3::before{
    width:30px;height:30px;flex-basis:30px;font-size:13px;
  }
}

/* refactor-index-04.css */
.modern-header{
  background:#fff;
  border-bottom:1px solid #e7ebf0;
  box-shadow:0 4px 18px rgba(15,30,74,.05);
}
.modern-header .nav-wrap{
  min-height:82px;
  justify-content:space-between;
}
.brand-image-style{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.brand-seal{
  width:165px;
  height:54px;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.brand-seal img{
  width:100%;
  height:auto;
  object-fit:contain;
  filter:none;
}
.brand-divider{
  width:1px;
  height:48px;
  background:#d6dce5;
}
.library-word{
  color:var(--navy);
  font-family:Georgia,"Times New Roman",serif;
  font-size:27px;
  font-weight:700;
  letter-spacing:.02em;
}
.hamburger-btn{
  width:46px;
  height:46px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:10px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  cursor:pointer;
  box-shadow:0 4px 13px rgba(15,30,74,.05);
}
.hamburger-btn span{
  width:22px;
  height:2px;
  background:var(--navy);
  border-radius:2px;
}
.hamburger-btn:hover{
  background:var(--cream);
  border-color:#edc477;
}
.hamburger-menu{
  position:fixed;
  top:0;
  right:-380px;
  width:min(360px,88vw);
  height:100vh;
  z-index:200;
  background:#fff;
  box-shadow:-18px 0 45px rgba(15,30,74,.16);
  transition:right .3s ease;
  display:flex;
  flex-direction:column;
}
.hamburger-menu.open{right:0}
.hamburger-menu-head{
  background:linear-gradient(135deg,var(--navy-dark),var(--navy));
  color:#fff;
  min-height:78px;
  padding:0 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.hamburger-menu-head strong{
  font-size:20px;
}
.hamburger-menu-head button{
  border:0;
  background:transparent;
  color:#fff;
  font-size:32px;
  line-height:1;
  cursor:pointer;
}
.hamburger-menu-body{
  padding:16px;
  overflow:auto;
  flex:1;
}
.hamburger-menu-body a{
  display:block;
  padding:13px 14px;
  color:var(--navy);
  border-radius:9px;
  font-weight:600;
  border-bottom:1px solid #f0f2f6;
}
.hamburger-menu-body a:hover{
  background:var(--cream);
  color:var(--orange-dark);
}
.hamburger-menu-foot{
  padding:16px;
  border-top:1px solid var(--border);
}
.menu-login{
  display:block;
  text-align:center;
  background:var(--orange);
  color:#fff;
  padding:12px;
  border-radius:9px;
  font-weight:700;
}
.menu-backdrop{
  position:fixed;
  inset:0;
  background:rgba(3,12,32,.45);
  z-index:190;
  opacity:0;
  pointer-events:none;
  transition:.3s ease;
}
.menu-backdrop.show{
  opacity:1;
  pointer-events:auto;
}
@media(max-width:720px){
  .topbar-links a:not(:last-child){display:none}
  .brand-seal{width:135px}
  .library-word{font-size:22px}
  .brand-divider{height:40px}
}

/* refactor-index-05.css */
.arrival-carousel{position:relative}
.carousel-viewport{overflow:hidden}
.carousel-track{display:flex;gap:18px;transition:transform .45s ease}
.carousel-item{flex:0 0 calc((100% - 54px)/4)}
.carousel-btn{
  position:absolute;top:43%;z-index:4;width:42px;height:42px;border-radius:50%;
  border:0;background:var(--navy);color:#fff;font-size:28px;line-height:1;
  box-shadow:0 8px 20px rgba(15,30,74,.18);cursor:pointer
}
.carousel-btn:hover{background:var(--orange)}
.carousel-btn.prev{left:-16px}.carousel-btn.next{right:-16px}
.carousel-dots{display:flex;justify-content:center;gap:7px;margin-top:18px}
.carousel-dot{width:8px;height:8px;border-radius:50%;border:0;background:#cfd5df;padding:0;cursor:pointer}
.carousel-dot.active{background:var(--orange);transform:scale(1.25)}
@media(max-width:1000px){.carousel-item{flex-basis:calc((100% - 18px)/2)}}
@media(max-width:620px){
  .carousel-item{flex-basis:100%}
  .carousel-btn.prev{left:4px}.carousel-btn.next{right:4px}
}

/* refactor-index-06.css */
.subject-visual-section{
  background:linear-gradient(180deg,#f8f9fc 0%,#fff 100%);
}
.subject-visual-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.subject-visual-card{
  min-height:92px;
  display:grid;
  grid-template-columns:78px 1fr 28px;
  align-items:center;
  gap:14px;
  padding:13px 14px;
  background:#fff;
  border:1px solid #dfe5ee;
  border-radius:14px;
  box-shadow:0 5px 16px rgba(15,30,74,.045);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease;
  color:var(--navy);
}
.subject-visual-card:hover{
  transform:translateY(-3px);
  border-color:#edc477;
  box-shadow:0 10px 25px rgba(15,30,74,.09);
  background:#fffdf9;
}
.subject-icon-wrap{
  width:70px;
  height:64px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:
    radial-gradient(circle at 70% 20%,rgba(229,138,0,.17),transparent 38%),
    linear-gradient(145deg,#f7f9fd,#edf2f8);
  color:var(--navy);
  font-size:31px;
  border:1px solid #e4e9f0;
}
.subject-visual-card:hover .subject-icon-wrap{
  color:var(--orange);
  background:linear-gradient(145deg,#fff8ed,#f9efe0);
}
.subject-name{
  font-weight:700;
  line-height:1.2;
  font-size:15px;
}
.subject-arrow{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1.5px solid var(--orange);
  color:var(--orange);
  font-size:19px;
  font-weight:700;
  line-height:1;
}
.subject-visual-card:hover .subject-arrow{
  background:var(--orange);
  color:#fff;
}
@media(max-width:1050px){
  .subject-visual-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:820px){
  .subject-visual-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:540px){
  .subject-visual-grid{grid-template-columns:1fr}
  .subject-visual-card{min-height:82px;grid-template-columns:64px 1fr 26px}
  .subject-icon-wrap{width:58px;height:54px;font-size:26px}
}

/* refactor-index-07.css */
.discovery-section{
  background:linear-gradient(180deg,#f8f9fc 0%,#ffffff 100%);
}
.subject-cloud{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.subject-cloud a{
  position:relative;
  padding:14px 16px 14px 42px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:11px;
  color:var(--navy);
  font-weight:600;
  font-size:14px;
  box-shadow:0 4px 14px rgba(15,30,74,.035);
  transition:.2s ease;
}
.subject-cloud a::before{
  content:"";
  position:absolute;
  left:16px;
  top:50%;
  width:9px;
  height:9px;
  transform:translateY(-50%);
  border-radius:50%;
  background:var(--orange);
  box-shadow:0 0 0 5px rgba(229,138,0,.09);
}
.subject-cloud a:hover{
  transform:translateY(-2px);
  border-color:#edc477;
  background:var(--cream);
  color:var(--orange-dark);
  box-shadow:0 9px 22px rgba(15,30,74,.08);
}

.resource-hub-section{
  background:#fff;
}
.resource-accordion-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px 16px;
}
.resource-accordion-grid details{
  background:#fff;
  border:1px solid var(--border);
  border-radius:11px;
  overflow:hidden;
  box-shadow:0 4px 14px rgba(15,30,74,.035);
}
.resource-accordion-grid summary{
  list-style:none;
  cursor:pointer;
  padding:14px 17px;
  color:var(--navy);
  font-size:14px;
  font-weight:700;
  position:relative;
  background:#fbfcfe;
}
.resource-accordion-grid summary::-webkit-details-marker{display:none}
.resource-accordion-grid summary::after{
  content:"+";
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-52%);
  color:var(--orange-dark);
  font-size:18px;
  transition:.2s ease;
}
.resource-accordion-grid details[open] summary{
  background:var(--navy);
  color:#fff;
}
.resource-accordion-grid details[open] summary::after{
  transform:translateY(-48%) rotate(180deg);
  color:#ffd18a;
}
.resource-detail{
  padding:13px 16px 15px;
  border-top:1px solid var(--border);
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
}
.resource-detail a{
  color:var(--blue);
  font-size:13px;
  font-weight:600;
}
.resource-detail a:hover{color:var(--orange-dark)}

@media(max-width:1000px){
  .subject-cloud{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  .subject-cloud,
  .resource-accordion-grid{grid-template-columns:1fr}
}

/* refactor-index-08.css */
.testimonials-section{
  overflow:hidden;
}
.testimonial-carousel{
  position:relative;
}
.testimonial-viewport{
  overflow:hidden;
  width:100%;
}
.testimonial-track{
  display:flex;
  gap:18px;
  transition:transform .5s ease;
  will-change:transform;
}
.testimonial-card{
  flex:0 0 calc((100% - 36px)/3);
}
.quote-mark{
  font-family:inherit;
  font-size:inherit;
  line-height:1;
  margin-bottom:14px;
}
.quote-mark i{
  font-size:34px;
  color:var(--orange);
}
.testimonial-btn{
  display:grid;
  place-items:center;
  padding:0;
  line-height:1;
}
.testimonial-btn i{
  font-size:15px;
  color:#fff;
}
.testimonial-dot{
  cursor:pointer;
}
@media(max-width:1000px){
  .testimonial-card{flex-basis:calc((100% - 18px)/2)}
}
@media(max-width:650px){
  .testimonial-card{flex-basis:100%}
}

/* refactor-index-09.css */
.subject-arrow{
  font-size:0;
}
.subject-arrow i{
  font-size:10px;
  line-height:1;
}
.carousel-btn,
.image-blog-btn,
.side-carousel-btn,
.libraries-btn,
.testimonial-btn{
  display:grid;
  place-items:center;
  line-height:1;
  padding:0;
}
.carousel-btn i,
.image-blog-btn i,
.side-carousel-btn i,
.libraries-btn i,
.testimonial-btn i{
  font-size:13px;
  line-height:1;
  color:#fff;
}
.quote-mark{
  font-family:inherit !important;
  font-size:inherit !important;
  line-height:1 !important;
}
.quote-mark i{
  font-size:34px;
  color:var(--orange);
}

/* refactor-index-10.css */
.video-banner-slider{
  position:relative;
  height:540px;
  min-height:540px;
  overflow:hidden;
  background:#091433;
}
.banner-slide{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  opacity:0;
  visibility:hidden;
  transition:opacity .85s ease, visibility .85s ease;
}
.banner-slide.active{
  opacity:1;
  visibility:visible;
  z-index:2;
}
.banner-image,
.banner-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
.banner-image{background-size:cover;background-position:center}
.banner-image-1{
  background-image:url("https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1900&q=85");
}
.banner-image-2{
  background-image:url("https://images.unsplash.com/photo-1495446815901-a7297e633e8d?auto=format&fit=crop&w=1900&q=85");
}
.banner-video{
  object-fit:cover;
  object-position:center;
  background:#091433;
}
.banner-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(5,17,48,.96) 0%,rgba(10,30,70,.82) 48%,rgba(10,30,70,.42) 100%);
}
.video-overlay{
  background:linear-gradient(90deg,rgba(5,17,48,.90) 0%,rgba(10,30,70,.65) 50%,rgba(10,30,70,.25) 100%);
}
.banner-content{
  position:relative;
  z-index:3;
  padding-top:68px;
  padding-bottom:105px;
}
.banner-arrow{
  position:absolute;
  z-index:8;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.34);
  border-radius:50%;
  background:rgba(8,22,54,.48);
  color:#fff;
  cursor:pointer;
  backdrop-filter:blur(6px);
  transition:.2s ease;
}
.banner-arrow:hover{
  background:var(--orange);
  border-color:var(--orange);
}
.banner-arrow i{font-size:14px;color:#fff}
.banner-prev{left:22px}
.banner-next{right:22px}
.banner-dots{
  position:absolute;
  z-index:8;
  left:50%;
  bottom:72px;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
}
.banner-dot{
  width:9px;
  height:9px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.48);
  cursor:pointer;
  transition:.2s ease;
}
.banner-dot.active{
  width:25px;
  border-radius:8px;
  background:var(--orange);
}
@media(max-width:760px){
  .video-banner-slider{height:570px;min-height:570px}
  .banner-content{padding:55px 30px 115px}
  .banner-prev{left:8px}
  .banner-next{right:8px}
  .banner-dots{bottom:88px}
}
@media(prefers-reduced-motion:reduce){
  .banner-slide{transition:none}
}

/* refactor-index-11.css */
.search-tab-panel{display:block}
.search-tab-panel[hidden]{display:none!important}
.search-bottom-row{
  /*margin-top:12px;*/
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.search-bottom-row .search-meta{margin-top:0}
.advanced-search-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  color:var(--navy);
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  padding:6px 0;
  border-bottom:2px solid var(--orange);
}
.advanced-search-link:hover{color:var(--orange-dark)}
.advanced-search-link i{font-size:11px}
.search-row .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.summon-search-row{
  grid-template-columns:58px 1fr auto;
}
.summon-search-icon{
  height:52px;
  border:1px solid #d9e0e9;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:#f7f8fb;
  color:var(--navy);
  font-size:19px;
}
@media(max-width:720px){
  .search-tabs{flex-wrap:wrap}
  .search-tab{flex:1 1 180px}
  .search-row,
  .summon-search-row{
    grid-template-columns:1fr;
  }
  .summon-search-icon{display:none}
  .search-bottom-row{
    align-items:flex-start;
    flex-direction:column;
    gap:7px;
  }
  .advanced-search-link{align-self:flex-start}
}

/* refactor-index-12.css */
#browse-subject.subject-carousel-section{
  overflow:hidden;
  background:linear-gradient(180deg,#fff 0%,#f8fafd 100%);
}
#browse-subject .subject-carousel-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
}
#browse-subject .subject-carousel-controls{
  display:flex;
  gap:9px;
  flex:0 0 auto;
  padding-bottom:4px;
}
#browse-subject .subject-carousel-btn{
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid #dce3ec;
  background:#fff;
  color:#0f1e4a;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(15,30,74,.07);
  transition:.2s ease;
}
#browse-subject .subject-carousel-btn:hover{
  background:#0f1e4a;
  color:#fff;
  border-color:#0f1e4a;
  transform:translateY(-2px);
}
#browse-subject .subject-carousel-fullwidth{
  width:100vw;
  margin-left:calc(50% - 50vw);
  position:relative;
  margin-top:26px;
}
#browse-subject .subject-carousel-fullwidth::before,
#browse-subject .subject-carousel-fullwidth::after{
  content:"";
  position:absolute;
  top:0;
  bottom:8px;
  width:72px;
  z-index:3;
  pointer-events:none;
}
#browse-subject .subject-carousel-fullwidth::before{
  left:0;
  background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,0) 100%);
}
#browse-subject .subject-carousel-fullwidth::after{
  right:0;
  background:linear-gradient(270deg,#fff 0%,rgba(255,255,255,0) 100%);
}
#browse-subject .subject-carousel-track{
  display:flex;
  gap:14px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding:4px max(42px,calc((100vw - 1180px)/2)) 18px;
  scrollbar-width:none;
  -ms-overflow-style:none;
  cursor:grab;
}
#browse-subject .subject-carousel-track::-webkit-scrollbar{display:none}
#browse-subject .subject-carousel-track.dragging{
  cursor:grabbing;
  scroll-behavior:auto;
  scroll-snap-type:none;
  user-select:none;
}
#browse-subject .subject-visual-card{
  flex:0 0 clamp(245px,22vw,300px);
  min-height:84px;
  scroll-snap-align:start;
  margin:0;
}
#browse-subject .subject-carousel-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:4px;
}
#browse-subject .subject-carousel-progress{
  position:relative;
  height:3px;
  background:#e9edf3;
  border-radius:99px;
  overflow:hidden;
  flex:1;
  max-width:360px;
}
#browse-subject .subject-carousel-progress span{
  position:absolute;
  inset:0 auto 0 0;
  width:16%;
  border-radius:99px;
  background:#e58a00;
  transition:width .15s ease;
}
#browse-subject .subject-carousel-hint{
  color:#7a8392;
  font-size:12px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:7px;
}
#browse-subject .subject-carousel-hint i{color:#e58a00}
@media(max-width:820px){
  #browse-subject .subject-carousel-head{align-items:flex-start}
  #browse-subject .subject-carousel-track{padding-left:20px;padding-right:20px}
  #browse-subject .subject-visual-card{flex-basis:260px}
  #browse-subject .subject-carousel-fullwidth::before,
  #browse-subject .subject-carousel-fullwidth::after{width:24px}
}
@media(max-width:580px){
  #browse-subject .subject-carousel-controls{display:none}
  #browse-subject .subject-visual-card{flex-basis:82vw;max-width:310px}
  #browse-subject .subject-carousel-footer{display:block}
  #browse-subject .subject-carousel-progress{max-width:none}
  #browse-subject .subject-carousel-hint{margin-top:10px}
}

/* refactor-index-13.css */
/* Browse by Subject: horizontal carousel arranged in exactly 3 rows */
#browse-subject .subject-carousel-track{
  display:grid !important;
  grid-auto-flow:column;
  grid-template-rows:repeat(3,84px);
  grid-auto-columns:clamp(245px,22vw,300px);
  gap:14px;
  align-items:stretch;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
}

#browse-subject .subject-visual-card{
  width:100% !important;
  height:84px;
  min-height:84px;
  flex:none !important;
  scroll-snap-align:start;
}

@media(max-width:820px){
  #browse-subject .subject-carousel-track{
    grid-auto-columns:260px;
  }
}

@media(max-width:580px){
  #browse-subject .subject-carousel-track{
    grid-auto-columns:82vw;
  }
}

/* refactor-index-14.css */
/* Centered, contained 3-row Browse by Subject carousel */
#browse-subject .subject-carousel-fullwidth{
  width:auto !important;
  max-width:1180px;
  margin:26px auto 0 !important;
  padding:0 58px;
  position:relative;
}

#browse-subject .subject-carousel-fullwidth::before,
#browse-subject .subject-carousel-fullwidth::after{
  display:none !important;
}

#browse-subject .subject-carousel-track{
  display:grid !important;
  grid-auto-flow:column;
  grid-template-rows:repeat(3,84px);
  grid-auto-columns:270px;
  gap:14px;
  width:100%;
  padding:4px 0 16px !important;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

#browse-subject .subject-carousel-track::-webkit-scrollbar{
  display:none;
}

#browse-subject .subject-visual-card{
  width:270px !important;
  height:84px;
  min-height:84px;
  margin:0 !important;
  flex:none !important;
  scroll-snap-align:start;
}

/* Put scroll buttons beside the carousel instead of the heading */
#browse-subject .subject-carousel-controls{
  position:absolute;
  left:0;
  right:0;
  top:50%;
  transform:translateY(-50%);
  display:flex !important;
  justify-content:space-between;
  pointer-events:none;
  z-index:8;
  padding:0 4px;
}

#browse-subject .subject-carousel-btn{
  pointer-events:auto;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid #dce3ec;
  background:#fff;
  color:#0f1e4a;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(15,30,74,.12);
}

#browse-subject .subject-carousel-btn:hover{
  background:#0f1e4a;
  color:#fff;
  border-color:#0f1e4a;
}

#browse-subject .subject-carousel-head .subject-carousel-controls{
  display:none !important;
}

#browse-subject .subject-carousel-footer{
  max-width:1064px;
  margin:8px auto 0;
}

@media(max-width:900px){
  #browse-subject .subject-carousel-fullwidth{
    max-width:100%;
    margin-left:20px !important;
    margin-right:20px !important;
    padding:0 50px;
  }
  #browse-subject .subject-carousel-track{
    grid-auto-columns:250px;
  }
  #browse-subject .subject-visual-card{
    width:250px !important;
  }
}

@media(max-width:580px){
  #browse-subject .subject-carousel-fullwidth{
    margin-left:12px !important;
    margin-right:12px !important;
    padding:0 42px;
  }
  #browse-subject .subject-carousel-track{
    grid-auto-columns:78vw;
  }
  #browse-subject .subject-visual-card{
    width:78vw !important;
    max-width:290px;
  }
  #browse-subject .subject-carousel-btn{
    width:36px;
    height:36px;
  }
}

/* refactor-index-15.css */
/* Match Browse by Subject width with the normal page sections above */
#browse-subject .subject-carousel-fullwidth{
  width:100% !important;
  max-width:1180px !important;
  margin:20px auto 0 !important;
  padding:0 !important;
}

/* Place BOTH arrows together at the top-left of the carousel */
#browse-subject .subject-carousel-side-controls{
  position:relative !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  transform:none !important;
  width:auto !important;
  display:flex !important;
  justify-content:flex-start !important;
  gap:8px !important;
  padding:0 !important;
  margin:0 0 12px 0 !important;
  pointer-events:auto !important;
}

/* Prevent the old absolute side-arrow layout */
#browse-subject .subject-carousel-side-controls .subject-carousel-btn{
  position:relative !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  transform:none !important;
  width:40px;
  height:40px;
}

/* Carousel itself uses exactly the same contained width */
#browse-subject .subject-carousel-track{
  width:100% !important;
  box-sizing:border-box;
  padding-left:0 !important;
  padding-right:0 !important;
}

/* Footer/progress aligns to the same section width */
#browse-subject .subject-carousel-footer{
  width:100%;
  max-width:1180px !important;
  margin:8px auto 0 !important;
}

@media(max-width:1220px){
  #browse-subject .subject-carousel-fullwidth,
  #browse-subject .subject-carousel-footer{
    width:calc(100% - 40px) !important;
  }
}

@media(max-width:580px){
  #browse-subject .subject-carousel-fullwidth,
  #browse-subject .subject-carousel-footer{
    width:calc(100% - 24px) !important;
  }
  #browse-subject .subject-carousel-side-controls .subject-carousel-btn{
    width:36px;
    height:36px;
  }
}

/* refactor-index-16.css */
/* Keep carousel width aligned exactly with the section container */
#browse-subject .subject-carousel-fullwidth{
  width:100% !important;
  max-width:1180px !important;
  margin:18px auto 0 !important;
  padding:0 !important;
  overflow:hidden;
}

/* Move both navigation buttons to the TOP-RIGHT */
#browse-subject .subject-carousel-side-controls{
  position:relative !important;
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center;
  gap:8px !important;
  width:100% !important;
  margin:0 0 12px 0 !important;
  padding:0 !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  transform:none !important;
  pointer-events:auto !important;
}

#browse-subject .subject-carousel-side-controls .subject-carousel-btn{
  position:relative !important;
  width:40px !important;
  height:40px !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  transform:none !important;
}

/* Remove the bottom progress bar and scroll-help text */
#browse-subject .subject-carousel-footer{
  display:none !important;
}

/* Exactly 4 subject cells visible across the section width */
#browse-subject .subject-carousel-track{
  display:grid !important;
  grid-auto-flow:column !important;
  grid-template-rows:repeat(3,84px) !important;
  grid-auto-columns:calc((100% - 42px) / 4) !important;
  gap:14px !important;
  width:100% !important;
  box-sizing:border-box !important;
  padding:4px 0 10px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
}

#browse-subject .subject-visual-card{
  width:100% !important;
  max-width:none !important;
  height:84px !important;
  min-height:84px !important;
  box-sizing:border-box !important;
  margin:0 !important;
  flex:none !important;
  scroll-snap-align:start;
}

/* Tablet: exactly 2 cards visible */
@media(max-width:900px){
  #browse-subject .subject-carousel-fullwidth{
    width:calc(100% - 40px) !important;
  }

  #browse-subject .subject-carousel-track{
    grid-auto-columns:calc((100% - 14px) / 2) !important;
  }
}

/* Mobile: exactly 1 card visible */
@media(max-width:580px){
  #browse-subject .subject-carousel-fullwidth{
    width:calc(100% - 24px) !important;
  }

  #browse-subject .subject-carousel-track{
    grid-auto-columns:100% !important;
  }

  #browse-subject .subject-carousel-side-controls .subject-carousel-btn{
    width:36px !important;
    height:36px !important;
  }
}

/* refactor-index-17.css */
/* Curated section: small left column + larger right column */
#curated .curated-grid,
#curated .curated-columns,
#curated .curated-layout,
#curated .curated-wrap{
  display:grid !important;
  grid-template-columns:minmax(300px, 0.8fr) minmax(0, 1.7fr) !important;
  gap:22px !important;
  align-items:stretch !important;
  
}

/* Fallback for direct child cards when the wrapper uses another class */
#curated > .container > div:last-child{
  display:grid !important;
  grid-template-columns:minmax(300px, 0.8fr) minmax(0, 1.7fr) !important;
  gap:22px !important;
  align-items:stretch !important;
margin-top:10px;

}

/* Left: Notice Board - compact */
#curated .notice-panel,
#curated .notice-board,
#curated .notice-card,
#curated .curated-left,
#curated .curated-column:first-child,
#curated > .container > div:last-child > :first-child{
  min-width:0 !important;
  width:100% !important;
}

/* Right: Librarian's Pick - wider */
#curated .pick-panel,
#curated .librarian-pick,
#curated .recommended-panel,
#curated .curated-right,
#curated .curated-column:last-child,
#curated > .container > div:last-child > :last-child{
  min-width:0 !important;
  width:100% !important;
}

/* Compact notice carousel content */
#curated .notice-panel .curated-slide,
#curated .notice-board .curated-slide,
#curated .curated-column:first-child .curated-slide,
#curated > .container > div:last-child > :first-child .curated-slide{
  grid-template-columns:minmax(120px, .85fr) minmax(0, 1fr) !important;
}

/* Give Librarian's Pick more room */
#curated .pick-panel .curated-slide,
#curated .librarian-pick .curated-slide,
#curated .recommended-panel .curated-slide,
#curated .curated-column:last-child .curated-slide,
#curated > .container > div:last-child > :last-child .curated-slide{
  grid-template-columns:minmax(170px, .75fr) minmax(0, 1.65fr) !important;
}

/* Keep both cards visually balanced */
#curated .curated-card,
#curated .notice-panel,
#curated .pick-panel,
#curated .librarian-pick,
#curated .notice-board{
  height:100% !important;
}

/* Tablet/mobile */
@media(max-width:900px){
  #curated .curated-grid,
  #curated .curated-columns,
  #curated .curated-layout,
  #curated .curated-wrap,
  #curated > .container > div:last-child{
    grid-template-columns:1fr !important;
  }
}

/* refactor-index-18.css */
/* Notice Board: image only */
#curated .notice-column .side-carousel-viewport{
  overflow:hidden !important;
  border-radius:14px;
  background:#fff;
}

#curated .notice-column .notice-image-slide{
  display:block !important;
  width:100% !important;
  min-width:100% !important;
  padding:0 !important;
  margin:0 !important;
  background:#fff !important;
  border:0 !important;
  overflow:hidden !important;
}

#curated .notice-column .notice-board-image{
  display:block;
  width:100%;
  height:100%;
  min-height:330px;
  max-height:430px;
  object-fit:contain;
  object-position:center;
  margin:0;
  padding:0;
  background:#fff;
}

/* Only one notice is present, so navigation is not needed */
#curated .notice-column .notice-side-prev,
#curated .notice-column .notice-side-next,
#curated .notice-column #noticeSideDots{
  display:none !important;
}

/* Remove any reserved carousel padding around the image */
#curated .notice-column .single-card-carousel{
  padding:0 !important;
}

@media(max-width:900px){
  #curated .notice-column .notice-board-image{
    min-height:300px;
    max-height:420px;
  }
}

/* refactor-index-19.css */
/* Three image-only posters in the Notice Board carousel */
#curated .notice-column .notice-image-slide{
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:100% !important;
  min-width:100% !important;
  height:430px !important;
  padding:0 !important;
  margin:0 !important;
  background:#fff !important;
  overflow:hidden !important;
}

#curated .notice-column .notice-board-image{
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:center !important;
  background:#fff;
}

/* Restore carousel navigation now that there are multiple posters */
#curated .notice-column .notice-side-prev,
#curated .notice-column .notice-side-next{
  display:grid !important;
}

#curated .notice-column #noticeSideDots{
  display:flex !important;
}

/* Keep all posters within the exact same visual box */
#curated .notice-column .side-carousel-viewport{
  height:430px !important;
  overflow:hidden !important;
  background:#fff;
}

@media(max-width:900px){
  #curated .notice-column .notice-image-slide,
  #curated .notice-column .side-carousel-viewport{
    height:400px !important;
  }
}

@media(max-width:600px){
  #curated .notice-column .notice-image-slide,
  #curated .notice-column .side-carousel-viewport{
    height:360px !important;
  }
}

/* refactor-index-20.css */
#curated .librarian-pick-slide{
  display:grid !important;
  grid-template-columns:minmax(170px,.72fr) minmax(0,1.65fr) !important;
  gap:28px !important;
  align-items:center !important;
  min-width:100% !important;
  width:100% !important;
  padding:28px 34px !important;
  background:#fff !important;
  border-radius:16px;
  box-sizing:border-box;
}
#curated .pick-book-cover-wrap{
  height:280px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f7f7f7;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
#curated .pick-book-cover{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
  background:#fff;
}
#curated .pick-book-copy{min-width:0}
#curated .pick-sequence{
  margin-bottom:10px;
  color:#e58a00;
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  line-height:1.4;
}
#curated .pick-sequence span{margin:0 4px;color:#a5adba}
#curated .pick-book-copy h3{
  margin:0;
  color:#0f1e4a;
  font-size:24px;
  line-height:1.22;
}
#curated .pick-author{
  margin-top:7px;
  color:#6f7785;
  font-size:13px;
  font-weight:700;
}
#curated .pick-book-copy p{
  margin:16px 0 18px;
  color:#566174;
  font-size:14px;
  line-height:1.7;
}
#curated .pick-catalogue-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#0f1e4a;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  border-bottom:2px solid #e58a00;
  padding-bottom:4px;
}
#curated .pick-catalogue-link:hover{color:#e58a00}
@media(max-width:900px){
  #curated .librarian-pick-slide{
    grid-template-columns:150px minmax(0,1fr) !important;
    gap:20px !important;
    padding:22px !important;
  }
  #curated .pick-book-cover-wrap{height:240px}
}
@media(max-width:600px){
  #curated .librarian-pick-slide{grid-template-columns:1fr !important}
  #curated .pick-book-cover-wrap{
    width:180px;
    height:270px;
    margin:0 auto;
  }
}

/* refactor-index-21.css */
#arrivals .new-arrival-book-card{
  flex:0 0 calc((100% - 72px)/5);
  min-width:0;
  background:#fff;
  border:1px solid #e5e9f0;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(15,30,74,.07);
  transition:transform .25s ease, box-shadow .25s ease;
}
#arrivals .new-arrival-book-card:hover{
  transform:translateY(-5px);
  box-shadow:0 14px 30px rgba(15,30,74,.13);
}
#arrivals .new-arrival-cover{
  height:285px;
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f7f9fc;
}
#arrivals .new-arrival-cover img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
#arrivals .new-arrival-info{
  padding:14px 15px 16px;
  border-top:3px solid #e58a00;
}
#arrivals .new-arrival-info h3{
  margin:0;
  color:#0f1e4a;
  font-size:15px;
  line-height:1.35;
  font-weight:800;
}
#arrivals .new-arrival-info p{
  margin:7px 0 0;
  color:#6d7685;
  font-size:12px;
  line-height:1.45;
}
@media(max-width:1100px){
  #arrivals .new-arrival-book-card{flex-basis:calc((100% - 48px)/4)}
}
@media(max-width:850px){
  #arrivals .new-arrival-book-card{flex-basis:calc((100% - 32px)/3)}
}
@media(max-width:620px){
  #arrivals .new-arrival-book-card{flex-basis:calc((100% - 16px)/2)}
  #arrivals .new-arrival-cover{height:250px}
}
@media(max-width:420px){
  #arrivals .new-arrival-book-card{flex-basis:82%}
}

/* refactor-index-22.css */
/* Library name directly below each New Arrival cover */
#arrivals .new-arrival-library{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:8px 14px;
  background:#0f1e4a;
  color:#fff;
  font-size:11px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.01em;
}

#arrivals .new-arrival-library i{
  color:#e58a00;
  font-size:11px;
  flex:0 0 auto;
}

/* Orange divider moves below library label */
#arrivals .new-arrival-info{
  border-top:3px solid #e58a00 !important;
}

/* refactor-index-23.css */
/* Remove old strip treatment completely */
#arrivals .new-arrival-library{
  display:none !important;
}

/* Library/date metadata below author, matching reference */
#arrivals .new-arrival-meta{
  margin-top:13px;
  padding-top:11px;
  border-top:1px solid #e1e6ed;
  color:#8a96a8;
  font-size:11px;
  line-height:1.35;
  font-weight:700;
}

#arrivals .new-arrival-meta span{
  margin:0 3px;
  color:#aab2bf;
}

/* Keep title/author area clean */
#arrivals .new-arrival-info{
  border-top:0 !important;
  padding-top:14px !important;
}

/* refactor-index-24.css */
/* Library name as footer of the book image */
#arrivals .new-arrival-cover{
  position:relative !important;
  overflow:hidden !important;
  padding-bottom:42px !important;
}

#arrivals .new-arrival-image-footer{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  background:#f7f9fc;
  border-top:1px solid #dfe5ed;
  color:#7c899b;
  font-size:11px;
  line-height:1.25;
  font-weight:800;
  text-align:center;
}

/* Remove any previous date/library metadata below author */
#arrivals .new-arrival-meta{
  display:none !important;
}

/* refactor-index-25.css */
/* Restore full image area; library name is no longer inside image */
#arrivals .new-arrival-cover{
  padding-bottom:14px !important;
}

/* Hide obsolete image footer if any remains */
#arrivals .new-arrival-image-footer{
  display:none !important;
}

/* Library footer below author */
#arrivals .new-arrival-card-footer{
  margin-top:13px;
  padding-top:10px;
  border-top:1px solid #e1e6ed;
  color:#8390a2;
  font-size:11px;
  line-height:1.3;
  font-weight:700;
}

/* Keep footer aligned toward bottom on cards with different title lengths */
#arrivals .new-arrival-info{
  display:flex;
  flex-direction:column;
  flex:1;
}

#arrivals .new-arrival-card-footer{
  margin-top:auto;
  padding-top:10px;
  margin-bottom:0;
}

/* refactor-index-26.css */
/* Footer below author - match supplied reference, without date */
#arrivals .new-arrival-book-card{
  display:flex !important;
  flex-direction:column !important;
  border:1px solid #efc36c !important;
  border-radius:0 0 18px 18px !important;
}

#arrivals .new-arrival-info{
  display:flex !important;
  flex-direction:column !important;
  flex:1 !important;
  padding:14px 16px 0 !important;
  background:#fff !important;
}

/* Author stays above footer */
#arrivals .new-arrival-info > p{
  margin-bottom:14px !important;
}

/* Footer exactly at bottom of card */
#arrivals .new-arrival-card-footer{
  margin-top:auto !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding:12px 0 14px !important;
  border-top:1px solid #dfe4eb !important;
  background:#fff !important;
  color:#8794a6 !important;
  font-size:11px !important;
  line-height:1.3 !important;
  font-weight:700 !important;
  text-align:left !important;
}

/* No date or separator dot */
#arrivals .new-arrival-meta{
  display:none !important;
}

/* refactor-index-27.css */
/* Put library statistics over the bottom of the hero/banner */
.hero,
.hero-section,
#hero{
  position:relative !important;
}

/* Statistics bar overlays the hero image */
.stats-section,
.library-stats,
#stats{
  position:relative !important;
  z-index:12 !important;
  margin-top:-118px !important;
  background:rgba(7,35,76,.92) !important;
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
  border-top:1px solid rgba(255,255,255,.12);
}

/* Keep statistics readable over banner */
.stats-section .container,
.library-stats .container,
#stats .container{
  position:relative;
  z-index:2;
}

.stats-section .stat-number,
.library-stats .stat-number,
#stats .stat-number,
.stats-section strong,
.library-stats strong,
#stats strong{
  color:#fff !important;
}

.stats-section .stat-label,
.library-stats .stat-label,
#stats .stat-label,
.stats-section p,
.library-stats p,
#stats p{
  color:rgba(255,255,255,.9) !important;
}

/* Give hero content enough bottom space so stats don't cover buttons/text */
.hero-content,
#hero .hero-content,
.hero-section .hero-content{
  padding-bottom:145px !important;
}

/* Mobile/tablet: keep stats below hero instead of obscuring content */
@media(max-width:800px){
  .stats-section,
  .library-stats,
  #stats{
    margin-top:0 !important;
    background:#082c59 !important;
  }

  .hero-content,
  #hero .hero-content,
  .hero-section .hero-content{
    padding-bottom:55px !important;
  }
}

/* refactor-index-28.css */
/* 3 x 2 statistics cards over the banner */
.video-banner-slider{
  position:relative !important;
}

.hero-stats-overlay{
  position:absolute;
  z-index:9;
  top:50%;
  right:max(42px,calc((100vw - 1180px)/2));
  transform:translateY(-50%);
  width:min(500px,42vw);
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.hero-stat-card{
  min-height:96px;
  padding:16px 10px 14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.55);
  border-radius:16px;
  box-shadow:0 10px 26px rgba(0,0,0,.16);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}

.hero-stat-card strong{
  display:block;
  color:#0f1e4a;
  font-size:clamp(21px,2vw,29px);
  line-height:1;
  font-weight:900;
  letter-spacing:-.025em;
}

.hero-stat-card span{
  display:block;
  margin-top:10px;
  color:#52647d;
  font-size:12px;
  line-height:1.2;
  font-weight:600;
}

/* Keep hero text on the left so the cards do not overlap it */
.video-banner-slider .banner-content{
  padding-right:min(540px,44vw) !important;
}

.video-banner-slider .banner-content h1{
  max-width:620px !important;
}

.video-banner-slider .banner-content p{
  max-width:600px !important;
}

/* Keep dots centered below everything */
.video-banner-slider .banner-dots{
  z-index:11 !important;
}

/* Tablet: stats become a bottom overlay with 3 columns */
@media(max-width:1050px){
  .hero-stats-overlay{
    top:auto;
    bottom:58px;
    left:50%;
    right:auto;
    transform:translateX(-50%);
    width:calc(100% - 80px);
    max-width:760px;
    gap:10px;
  }

  .hero-stat-card{
    min-height:76px;
    padding:11px 8px;
    border-radius:12px;
  }

  .hero-stat-card strong{
    font-size:20px;
  }

  .hero-stat-card span{
    margin-top:6px;
    font-size:11px;
  }

  .video-banner-slider .banner-content{
    padding-right:30px !important;
    padding-bottom:235px !important;
  }

  .video-banner-slider .banner-dots{
    bottom:25px !important;
  }
}

/* Mobile: 2 columns, still over the lower banner area */
@media(max-width:620px){
  .video-banner-slider{
    height:760px !important;
    min-height:760px !important;
  }

  .hero-stats-overlay{
    width:calc(100% - 32px);
    grid-template-columns:repeat(2,minmax(0,1fr));
    bottom:55px;
  }

  .hero-stat-card{
    min-height:68px;
  }

  .hero-stat-card strong{
    font-size:18px;
  }

  .video-banner-slider .banner-content{
    padding:42px 24px 315px !important;
  }

  .video-banner-slider .banner-dots{
    bottom:22px !important;
  }
}

/* refactor-index-29.css */
/* Transparent glass-style statistics cards */
.hero-stat-card{
  position:relative;
  overflow:hidden;
  background:rgba(255,255,255,.12) !important;
  border:1px solid rgba(255,255,255,.26) !important;
  box-shadow:0 10px 28px rgba(0,0,0,.16) !important;
  backdrop-filter:blur(10px) saturate(125%) !important;
  -webkit-backdrop-filter:blur(10px) saturate(125%) !important;
  transition:
    transform .32s ease,
    background .32s ease,
    border-color .32s ease,
    box-shadow .32s ease !important;
  animation:heroStatFadeUp .7s ease both;
}

/* Staggered entrance */
.hero-stat-card:nth-child(1){animation-delay:.08s}
.hero-stat-card:nth-child(2){animation-delay:.16s}
.hero-stat-card:nth-child(3){animation-delay:.24s}
.hero-stat-card:nth-child(4){animation-delay:.32s}
.hero-stat-card:nth-child(5){animation-delay:.40s}
.hero-stat-card:nth-child(6){animation-delay:.48s}

/* Subtle moving highlight */
.hero-stat-card::before{
  content:"";
  position:absolute;
  top:-30%;
  left:-80%;
  width:55%;
  height:160%;
  transform:rotate(18deg);
  background:linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.18),
    transparent
  );
  animation:heroStatShine 6s ease-in-out infinite;
  pointer-events:none;
}

/* Orange accent glow */
.hero-stat-card::after{
  content:"";
  position:absolute;
  left:18%;
  right:18%;
  bottom:0;
  height:2px;
  background:linear-gradient(
    90deg,
    transparent,
    rgba(229,138,0,.95),
    transparent
  );
  opacity:.9;
}

.hero-stat-card strong{
  position:relative;
  z-index:2;
  color:#fff !important;
  text-shadow:0 2px 8px rgba(0,0,0,.25);
}

.hero-stat-card span{
  position:relative;
  z-index:2;
  color:rgba(255,255,255,.88) !important;
  text-shadow:0 1px 4px rgba(0,0,0,.18);
}

/* Hover interaction */
@media (hover:hover) and (pointer:fine){
  .hero-stat-card:hover{
    transform:translateY(-6px) scale(1.02);
    background:rgba(255,255,255,.20) !important;
    border-color:rgba(229,138,0,.75) !important;
    box-shadow:0 16px 36px rgba(0,0,0,.22) !important;
  }
}

@keyframes heroStatFadeUp{
  from{
    opacity:0;
    transform:translateY(18px) scale(.97);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@keyframes heroStatShine{
  0%,72%{left:-80%}
  100%{left:135%}
}

/* Gentle floating effect for the whole stats group */
.hero-stats-overlay{
  animation:heroStatsFloat 5.5s ease-in-out infinite;
}

@keyframes heroStatsFloat{
  0%,100%{transform:translateY(-50%)}
  50%{transform:translateY(calc(-50% - 4px))}
}

@media(max-width:1050px){
  .hero-stats-overlay{
    animation:heroStatsFloatTablet 5.5s ease-in-out infinite;
  }

  @keyframes heroStatsFloatTablet{
    0%,100%{transform:translateX(-50%) translateY(0)}
    50%{transform:translateX(-50%) translateY(-3px)}
  }
}

@media(prefers-reduced-motion:reduce){
  .hero-stat-card,
  .hero-stat-card::before,
  .hero-stats-overlay{
    animation:none !important;
    transition:none !important;
  }
}

/* refactor-index-30.css */
/* ===== Important Links: footer looping carousel ===== */
.important-links-footer{
  background:#f7f9fc;
  border-top:1px solid #e4e9f1;
  border-bottom:1px solid #e4e9f1;
  padding:30px 0 26px;
  overflow:hidden;
}
.important-links-footer .il-wrap{
  width:min(1180px,calc(100% - 36px));
  margin:0 auto;
}
.important-links-footer .il-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:-10px;
}
.important-links-footer .il-kicker{
  display:block;
  color:#e58a00;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.13em;
  margin-bottom:4px;
}
.important-links-footer h2{
  margin:0;
  color:#0f1e4a;
  font-size:24px;
  line-height:1.15;
}
.important-links-footer .il-subtitle{
  margin:5px 0 0;
  color:#7a8798;
  font-size:11px;
}
.important-links-footer .il-controls{
  display:flex;
  gap:7px;
}
.important-links-footer .il-arrow{
  width:35px;height:35px;
  border:1px solid #d9e0e9;
  border-radius:50%;
  background:#fff;
  color:#0f1e4a;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:.2s ease;
}
.important-links-footer .il-arrow:hover{
  border-color:#e58a00;
  background:#0f1e4a;
  color:#fff;
}
.important-links-footer .il-viewport{
  overflow:hidden;
  position:relative;
}
.important-links-footer .il-viewport::before,
.important-links-footer .il-viewport::after{
  content:"";
  position:absolute;
  top:0;bottom:0;
  width:42px;
  z-index:2;
  pointer-events:none;
}
.important-links-footer .il-viewport::before{
  left:0;
  background:linear-gradient(90deg,#f7f9fc,transparent);
}
.important-links-footer .il-viewport::after{
  right:0;
  background:linear-gradient(270deg,#f7f9fc,transparent);
}
.important-links-footer .il-track{
  display:flex;
  gap:11px;
  width:max-content;
  will-change:transform;
  animation:importantLinksLoop 38s linear infinite;
}
.important-links-footer .il-viewport:hover .il-track{
  animation-play-state:paused;
}
.important-links-footer .il-item{
  flex:0 0 176px;
  min-height:68px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid #dfe5ed;
  border-radius:12px;
  background:#fff;
  color:#0f1e4a;
  text-decoration:none;
  box-shadow:0 4px 14px rgba(15,30,74,.045);
  transition:.22s ease;
}
.important-links-footer .il-item:hover{
  transform:translateY(-3px);
  border-color:#e58a00;
  box-shadow:0 9px 22px rgba(15,30,74,.10);
}
.important-links-footer .il-icon{
  flex:0 0 38px;
  width:38px;height:38px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#f2f5fa;
  color:#0f1e4a;
  border:1px solid #e0e6ee;
  font-size:15px;
}
.important-links-footer .il-item:hover .il-icon{
  background:#0f1e4a;
  border-color:#0f1e4a;
  color:#fff;
}
.important-links-footer .il-text{
  min-width:0;
}
.important-links-footer .il-text strong{
  display:block;
  font-size:11px;
  line-height:1.22;
  white-space:normal;
}
.important-links-footer .il-text small{
  display:block;
  margin-top:3px;
  color:#8b96a7;
  font-size:8.7px;
}
.important-links-footer .il-out{
  margin-left:auto;
  color:#e58a00;
  font-size:9px;
  opacity:.85;
}
@keyframes importantLinksLoop{
  from{transform:translateX(0)}
  to{transform:translateX(calc(-50% - 5.5px))}
}
@media(max-width:700px){
  .important-links-footer{
    padding:24px 0 22px;
  }
  .important-links-footer .il-wrap{
    width:min(100% - 24px,1180px);
  }
  .important-links-footer h2{font-size:20px}
  .important-links-footer .il-subtitle{display:none}
  .important-links-footer .il-item{
    flex-basis:154px;
    min-height:62px;
  }
  .important-links-footer .il-icon{
    width:34px;height:34px;flex-basis:34px;
  }
}
@media(prefers-reduced-motion:reduce){
  .important-links-footer .il-track{animation:none}
}

/* refactor-index-31.css */
@media (min-width:901px){
  .pick-book-cover,.librarian-pick-cover,
  .pick-column .pick-slide img,.pick-column .librarian-pick-slide img{
    width:245px!important; min-width:245px!important; max-width:245px!important;
    height:350px!important; object-fit:contain!important; object-position:center!important;
  }
}
@media (max-width:900px){
  .pick-book-cover,.librarian-pick-cover,
  .pick-column .pick-slide img,.pick-column .librarian-pick-slide img{
    width:min(245px,70vw)!important; height:auto!important; max-height:350px!important;
    object-fit:contain!important;
  }
}

/* refactor-index-32.css */
/* =========================================================
   Librarian's Pick
   - white content area fills the blue column
   - book cover uses the same 430px visual height as Notice Board
   - image + text stay vertically aligned
   ========================================================= */

@media (min-width:901px){

  #curated .pick-column{
    display:flex !important;
    flex-direction:column !important;
  }

  #curated .pick-column .column-head{
    flex:0 0 auto;
  }

  #curated .pick-column .single-card-carousel{
    flex:1 1 auto;
    display:flex !important;
    align-items:stretch !important;
    min-height:430px !important;
  }

  #curated .pick-column .side-carousel-viewport{
    width:100% !important;
    height:430px !important;
    min-height:430px !important;
    border-radius:16px !important;
    background:#fff !important;
  }

  #curated .pick-column .side-carousel-track{
    height:100% !important;
    align-items:stretch !important;
  }

  #curated .librarian-pick-slide{
    height:430px !important;
    min-height:430px !important;
    width:100% !important;
    min-width:100% !important;

    display:grid !important;
    grid-template-columns:minmax(255px,285px) minmax(0,1fr) !important;
    gap:30px !important;
    align-items:stretch !important;

    padding:22px 28px !important;
    box-sizing:border-box !important;
    background:#fff !important;
    border-radius:16px !important;
  }

  /* Image area uses the full height of the white reading panel */
  #curated .pick-book-cover-wrap{
    width:100% !important;
    height:100% !important;
    min-height:386px !important;
    max-height:none !important;
    margin:0 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    background:#f7f7f7 !important;
    border-radius:10px !important;
    overflow:hidden !important;
    box-shadow:0 8px 22px rgba(15,30,74,.12) !important;
  }

  #curated .pick-book-cover{
    width:100% !important;
    height:100% !important;
    min-width:0 !important;
    max-width:none !important;
    max-height:none !important;

    display:block !important;
    object-fit:contain !important;
    object-position:center !important;
    background:#fff !important;
  }

  /* Text occupies and centers within full panel height */
  #curated .pick-book-copy{
    height:100% !important;
    min-width:0 !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:flex-start !important;
    padding:12px 4px !important;
    box-sizing:border-box !important;
  }

  #curated .pick-book-copy h3{
    font-size:25px !important;
    line-height:1.2 !important;
  }

  #curated .pick-book-copy p{
    margin:18px 0 22px !important;
    line-height:1.72 !important;
  }

  /* Keep dots inside the blue card without reducing white panel height */
  #curated .pick-column .side-dots{
    flex:0 0 auto;
    margin-top:14px !important;
  }
}

/* Tablet */
@media (max-width:900px) and (min-width:601px){
  #curated .pick-column .side-carousel-viewport,
  #curated .librarian-pick-slide{
    height:400px !important;
    min-height:400px !important;
  }

  #curated .librarian-pick-slide{
    grid-template-columns:220px minmax(0,1fr) !important;
    gap:22px !important;
    padding:20px !important;
    align-items:stretch !important;
  }

  #curated .pick-book-cover-wrap{
    height:100% !important;
    min-height:360px !important;
  }

  #curated .pick-book-cover{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
  }

  #curated .pick-book-copy{
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
  }
}

/* Mobile: preserve readable stacked layout */
@media (max-width:600px){
  #curated .pick-column .side-carousel-viewport{
    height:auto !important;
    min-height:0 !important;
  }

  #curated .librarian-pick-slide{
    height:auto !important;
    min-height:0 !important;
    grid-template-columns:1fr !important;
    padding:20px !important;
  }

  #curated .pick-book-cover-wrap{
    width:min(260px,78vw) !important;
    height:360px !important;
    min-height:360px !important;
    margin:0 auto !important;
  }

  #curated .pick-book-cover{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
  }
}

/* refactor-index-33.css */
/* =========================================================
   FINAL SECTION BACKGROUNDS
   ========================================================= */

/* Everything you need, one click away */
.quick-access-section{
  background:
    radial-gradient(circle at 12% 15%,rgba(229,138,0,.10),transparent 28%),
    linear-gradient(180deg,#fffaf2 0%,#fff 100%) !important;
  border-top:1px solid #f1e5cf;
  border-bottom:1px solid #f1e5cf;
}

/* Notice Board & Librarian's Pick */
#curated{
  background:
    radial-gradient(circle at 88% 12%,rgba(15,30,74,.07),transparent 30%),
    linear-gradient(180deg,#f3f6fb 0%,#ffffff 100%) !important;
}

/* Latest Notices card/heading */
#curated .notice-column{
  background:#ffffff !important;
  border:1px solid #dfe6ef !important;
  border-radius:18px !important;
  padding:18px !important;
  box-shadow:0 10px 28px rgba(15,30,74,.07) !important;
}

#curated .notice-column .column-head{
  margin:-18px -18px 16px !important;
  padding:16px 18px !important;
  background:linear-gradient(135deg,#0f1e4a,#173a78) !important;
  border-radius:18px 18px 0 0 !important;
}

#curated .notice-column .column-head h3{
  color:#fff !important;
}

#curated .notice-column .column-label{
  color:#ffc66b !important;
}

#curated .notice-column .column-head .link-arrow{
  color:#fff !important;
}

/* Browse by Subject */
#browse-subject{
  background:
    radial-gradient(circle at 10% 12%,rgba(229,138,0,.08),transparent 28%),
    linear-gradient(180deg,#f8f9fc 0%,#eef3f9 100%) !important;
  overflow:hidden !important;
}

/* =========================================================
   SEARCH BOX — restore old-page placement and appearance
   ========================================================= */
.search-zone{
  position:relative !important;
  z-index:20 !important;
  margin-top:-58px !important;
  margin-bottom:18px !important;
}

.search-zone .search-panel{
  background:#fff !important;
  border:1px solid #e0e6ee !important;
  border-radius:18px !important;
  box-shadow:0 18px 45px rgba(15,30,74,.16) !important;
  padding:22px !important;
}

.search-zone .search-tabs{
  margin-bottom:15px !important;
}

.search-zone .search-row{
 /* display:grid !important;*/
  grid-template-columns:180px minmax(0,1fr) auto !important;
  gap:10px !important;
  align-items:center !important;
}

.search-zone .summon-search-row{
  grid-template-columns:58px minmax(0,1fr) auto !important;
}

.search-zone .search-row input,
.search-zone .search-row select,
.search-zone .summon-search-icon{
  height:52px !important;
}

@media(max-width:720px){
  .search-zone{
    margin-top:-42px !important;
  }
  .search-zone .search-row,
  .search-zone .summon-search-row{
    grid-template-columns:1fr !important;
  }
  .search-zone .summon-search-icon{
    display:none !important;
  }
}

/* =========================================================
   BROWSE BY SUBJECT — robust 3-row carousel
   ========================================================= */
#browse-subject .container{
  width:min(1180px,calc(100% - 32px)) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

#browse-subject .subject-carousel-head{
  display:flex !important;
  align-items:flex-end !important;
  justify-content:space-between !important;
  gap:24px !important;
}

/* Hide the duplicate controls in the heading; use the top-right set below */
#browse-subject .subject-carousel-head > .subject-carousel-controls{
  display:none !important;
}

#browse-subject .subject-carousel-fullwidth{
  width:min(1180px,calc(100% - 32px)) !important;
  max-width:1180px !important;
  margin:18px auto 0 !important;
  padding:0 !important;
  overflow:visible !important;
}

#browse-subject .subject-carousel-side-controls{
  position:static !important;
  width:100% !important;
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  gap:8px !important;
  margin:0 0 12px !important;
  padding:0 !important;
  transform:none !important;
  pointer-events:auto !important;
}

#browse-subject .subject-carousel-side-controls .subject-carousel-btn{
  position:static !important;
  width:40px !important;
  height:40px !important;
  flex:0 0 40px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:50% !important;
  border:1px solid #d8e0e9 !important;
  background:#fff !important;
  color:#0f1e4a !important;
  box-shadow:0 6px 18px rgba(15,30,74,.08) !important;
  transform:none !important;
}

#browse-subject .subject-carousel-side-controls .subject-carousel-btn:hover{
  background:#0f1e4a !important;
  border-color:#0f1e4a !important;
  color:#fff !important;
}

/* 4 visible columns x 3 rows */
#browse-subject .subject-carousel-track{
  display:grid !important;
  grid-auto-flow:column !important;
  grid-template-rows:repeat(3,84px) !important;
  grid-auto-columns:calc((100% - 42px)/4) !important;
  gap:14px !important;
  width:100% !important;
  padding:4px 0 10px !important;
  margin:0 !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scroll-snap-type:x mandatory !important;
  scroll-behavior:smooth !important;
  scrollbar-width:none !important;
  -ms-overflow-style:none !important;
  cursor:grab;
}

#browse-subject .subject-carousel-track::-webkit-scrollbar{
  display:none !important;
}

#browse-subject .subject-carousel-track.dragging{
  cursor:grabbing !important;
  scroll-behavior:auto !important;
  scroll-snap-type:none !important;
}

#browse-subject .subject-visual-card{
  width:100% !important;
  height:84px !important;
  min-height:84px !important;
  max-width:none !important;
  margin:0 !important;
  padding:12px 13px !important;
  display:grid !important;
  grid-template-columns:68px minmax(0,1fr) 24px !important;
  gap:12px !important;
  align-items:center !important;
  box-sizing:border-box !important;
  scroll-snap-align:start !important;
}

#browse-subject .subject-icon-wrap{
  width:60px !important;
  height:58px !important;
}

#browse-subject .subject-carousel-footer{
  display:none !important;
}

@media(max-width:900px){
  #browse-subject .subject-carousel-track{
    grid-auto-columns:calc((100% - 14px)/2) !important;
  }
}

@media(max-width:580px){
  #browse-subject .subject-carousel-fullwidth{
    width:calc(100% - 24px) !important;
  }

  #browse-subject .subject-carousel-track{
    grid-auto-columns:100% !important;
  }

  #browse-subject .subject-visual-card{
    grid-template-columns:60px minmax(0,1fr) 24px !important;
  }

  #browse-subject .subject-icon-wrap{
    width:54px !important;
    height:52px !important;
  }
}

/* refactor-index-34.css */
/* =========================================================
   LIBRARY GALLERY — FULL WIDTH CAMPUS CAROUSEL
   One large image + six smaller images per campus
   ========================================================= */
.campus-gallery-section{
  position:relative;
  overflow:hidden;
  padding:82px 0 72px !important;
  background:
    radial-gradient(circle at 8% 15%,rgba(229,138,0,.15),transparent 28%),
    radial-gradient(circle at 92% 82%,rgba(51,92,170,.25),transparent 32%),
    linear-gradient(135deg,#07132f 0%,#0f1e4a 52%,#173a78 100%) !important;
  color:#fff;
}
.campus-gallery-section::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),transparent 95%);
  pointer-events:none;
}
.campus-gallery-bg-orb{
  position:absolute;
  border-radius:50%;
  filter:blur(2px);
  border:1px solid rgba(255,255,255,.08);
  pointer-events:none;
  animation:campusGalleryOrb 9s ease-in-out infinite;
}
.campus-gallery-bg-orb.orb-one{
  width:340px;height:340px;right:-120px;top:-80px;
  box-shadow:0 0 0 60px rgba(255,255,255,.025),0 0 0 120px rgba(255,255,255,.018);
}
.campus-gallery-bg-orb.orb-two{
  width:220px;height:220px;left:-90px;bottom:-70px;
  animation-delay:-3s;
}
@keyframes campusGalleryOrb{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(0,-12px,0) scale(1.03)}
}

.campus-gallery-header{
  position:relative;
  z-index:3;
}
.campus-gallery-section .section-head{
  margin-bottom:18px;
}
.campus-gallery-section .kicker{
  color:#ffc66b !important;
}
.campus-gallery-section h2{
  color:#fff !important;
}
.campus-gallery-section .section-copy{
  color:rgba(255,255,255,.72) !important;
  max-width:720px;
}
.campus-gallery-section .section-head h2::before{
  background:rgba(255,255,255,.10) !important;
  color:#ffc66b !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16) !important;
}

.campus-gallery-controls{
  display:flex;
  align-items:center;
  gap:9px;
  flex:0 0 auto;
}
.campus-gallery-btn{
  width:44px;height:44px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.08);
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  backdrop-filter:blur(8px);
  transition:.25s ease;
}
.campus-gallery-btn:hover{
  background:#e58a00;
  border-color:#e58a00;
  transform:translateY(-2px);
}

.campus-gallery-tabs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:5px 0 12px;
  scrollbar-width:none;
}
.campus-gallery-tabs::-webkit-scrollbar{display:none}
.campus-gallery-tab{
  flex:0 0 auto;
  padding:9px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.76);
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:.22s ease;
}
.campus-gallery-tab:hover{
  color:#fff;
  border-color:rgba(229,138,0,.75);
}
.campus-gallery-tab.active{
  background:#e58a00;
  border-color:#e58a00;
  color:#fff;
  box-shadow:0 8px 22px rgba(0,0,0,.18);
}

.campus-gallery-stage{
  position:relative;
  z-index:3;
  width:100%;
  margin-top:8px;
  overflow:hidden;
}
.campus-gallery-track{
  display:flex;
  transition:transform .8s cubic-bezier(.22,.75,.18,1);
  will-change:transform;
}
.campus-gallery-slide{
  flex:0 0 100%;
  width:100%;
  padding:18px max(24px,calc((100vw - 1180px)/2));
  opacity:.42;
  transform:scale(.985);
  transition:opacity .7s ease,transform .7s ease;
}
.campus-gallery-slide.active{
  opacity:1;
  transform:scale(1);
}

.campus-gallery-copy{
  width:min(1180px,100%);
  margin:0 auto 16px;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:30px;
}
.campus-gallery-campus{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#ffc66b;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.09em;
}
.campus-gallery-copy h3{
  margin:6px 0 2px;
  color:#fff;
  font-size:clamp(24px,3vw,38px);
  line-height:1.1;
}
.campus-gallery-copy p{
  margin:0;
  max-width:690px;
  color:rgba(255,255,255,.68);
  font-size:13px;
  line-height:1.6;
}
.campus-gallery-count{
  color:rgba(255,255,255,.42);
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.campus-gallery-count span{
  color:#ffc66b;
  font-size:27px;
}

.campus-gallery-mosaic{
  width:min(1380px,calc(100vw - 36px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1.52fr) minmax(420px,.92fr);
  gap:14px;
  height:560px;
}
.campus-gallery-main,
.campus-gallery-small{
  position:relative;
  margin:0;
  overflow:hidden;
  border-radius:18px;
  background:#0a1637;
  box-shadow:0 14px 34px rgba(0,0,0,.22);
}
.campus-gallery-main{
  height:100%;
}
.campus-gallery-main::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 45%,rgba(3,12,32,.84) 100%);
}
.campus-gallery-main img,
.campus-gallery-small img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transform:scale(1.025);
  transition:transform .8s cubic-bezier(.22,.75,.18,1),filter .35s ease;
}
.campus-gallery-slide.active .campus-gallery-main img{
  animation:campusGalleryKenBurns 8s ease-in-out both;
}
@keyframes campusGalleryKenBurns{
  from{transform:scale(1.03)}
  to{transform:scale(1.095)}
}
.campus-gallery-main:hover img,
.campus-gallery-small:hover img{
  transform:scale(1.10);
}
.campus-gallery-small:hover img{
  filter:brightness(1.08);
}
.campus-gallery-main figcaption{
  position:absolute;
  z-index:2;
  left:28px;
  right:28px;
  bottom:24px;
}
.campus-gallery-main figcaption span{
  display:block;
  color:#ffc66b;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.campus-gallery-main figcaption strong{
  display:block;
  color:#fff;
  font-size:29px;
  margin-top:4px;
}

.campus-gallery-small-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(3,minmax(0,1fr));
  gap:14px;
  min-width:0;
  min-height:0;
}
.campus-gallery-small{
  min-width:0;
  min-height:0;
}
.campus-gallery-small::after{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:inherit;
  pointer-events:none;
}
.campus-gallery-slide.active .campus-gallery-small{
  animation:campusGalleryCardIn .6s ease both;
}
.campus-gallery-slide.active .campus-gallery-small:nth-child(1){animation-delay:.05s}
.campus-gallery-slide.active .campus-gallery-small:nth-child(2){animation-delay:.10s}
.campus-gallery-slide.active .campus-gallery-small:nth-child(3){animation-delay:.15s}
.campus-gallery-slide.active .campus-gallery-small:nth-child(4){animation-delay:.20s}
.campus-gallery-slide.active .campus-gallery-small:nth-child(5){animation-delay:.25s}
.campus-gallery-slide.active .campus-gallery-small:nth-child(6){animation-delay:.30s}
@keyframes campusGalleryCardIn{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:translateY(0)}
}

.campus-gallery-footer{
  position:relative;
  z-index:3;
  margin-top:18px;
  display:flex;
  align-items:center;
  gap:18px;
}
.campus-gallery-progress{
  height:3px;
  flex:1;
  background:rgba(255,255,255,.14);
  border-radius:99px;
  overflow:hidden;
}
.campus-gallery-progress span{
  display:block;
  height:100%;
  width:20%;
  border-radius:99px;
  background:linear-gradient(90deg,#e58a00,#ffc66b);
  transition:width .45s ease;
}
.campus-gallery-dots{
  display:flex;
  align-items:center;
  gap:7px;
}
.campus-gallery-dot{
  width:8px;height:8px;
  border:0;
  padding:0;
  border-radius:50%;
  background:rgba(255,255,255,.28);
  cursor:pointer;
  transition:.2s ease;
}
.campus-gallery-dot.active{
  width:24px;
  border-radius:8px;
  background:#e58a00;
}

@media(max-width:1050px){
  .campus-gallery-mosaic{
    grid-template-columns:minmax(0,1.25fr) minmax(330px,.9fr);
    height:500px;
  }
}
@media(max-width:820px){
  .campus-gallery-section{padding:64px 0 58px !important}
  .campus-gallery-slide{
    padding-left:20px;
    padding-right:20px;
  }
  .campus-gallery-mosaic{
    width:100%;
    grid-template-columns:1fr;
    height:auto;
  }
  .campus-gallery-main{
    height:390px;
  }
  .campus-gallery-small-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:repeat(2,145px);
  }
}
@media(max-width:580px){
  .campus-gallery-section .section-head{
    align-items:flex-start;
  }
  .campus-gallery-copy{
    align-items:flex-start;
    flex-direction:column;
    gap:9px;
  }
  .campus-gallery-count{display:none}
  .campus-gallery-main{
    height:320px;
    border-radius:14px;
  }
  .campus-gallery-small-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:repeat(3,125px);
    gap:9px;
  }
  .campus-gallery-small{
    border-radius:12px;
  }
  .campus-gallery-main figcaption{
    left:18px;right:18px;bottom:17px;
  }
  .campus-gallery-main figcaption strong{
    font-size:22px;
  }
  .campus-gallery-footer{
    gap:10px;
  }
}
@media(prefers-reduced-motion:reduce){
  .campus-gallery-track,
  .campus-gallery-slide,
  .campus-gallery-main img,
  .campus-gallery-small,
  .campus-gallery-bg-orb{
    transition:none !important;
    animation:none !important;
  }
}

/* refactor-index-35.css */
/* ==============================
   OUR LIBRARIES — 4 CARD GRID
   ============================== */
.our-libraries-section{
  background:#fff !important;
}
.our-library-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
}
.our-library-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:360px;
  padding:26px 22px 0;
  border:1px solid #e2e7ef;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(15,30,74,.07);
  overflow:hidden;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.our-library-card:hover{
  transform:translateY(-5px);
  border-color:rgba(229,138,0,.45);
  box-shadow:0 18px 38px rgba(15,30,74,.12);
}
.our-library-icon{
  width:50px;
  height:50px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#f5f7fb;
  color:#0f1e4a;
  font-size:20px;
  margin-bottom:18px;
}
.our-library-card h3{
  margin:0 0 4px;
  color:#0f1e4a;
  font-size:20px;
}
.our-library-subtitle{
  color:#e58a00;
  font-size:13px;
  font-weight:800;
  margin-bottom:12px;
}
.our-library-card p{
  margin:0 0 20px;
  color:#687386;
  font-size:13px;
  line-height:1.65;
}
.our-library-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  padding:10px 14px;
  border-radius:10px;
  background:#0f1e4a;
  color:#fff !important;
  font-size:12px;
  font-weight:800;
  margin-top:auto;
  margin-bottom:18px;
  transition:.22s ease;
}
.our-library-btn:hover{
  background:#e58a00;
  transform:translateX(2px);
}
.our-library-contact{
  margin:0 -22px;
  padding:15px 22px 17px;
  background:#f7f9fc;
  border-top:1px solid #e7ebf1;
  display:grid;
  gap:8px;
}
.our-library-contact div{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  color:#5f6a7c;
  font-size:12px;
}
.our-library-contact i{
  color:#e58a00;
  width:14px;
  text-align:center;
}
.our-library-contact span{
  overflow-wrap:anywhere;
}

@media(max-width:1050px){
  .our-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .our-library-grid{grid-template-columns:1fr}
  .our-library-card{min-height:330px}
}

/* ==============================
   TESTIMONIALS — REMOVE BACKGROUND
   ============================== */
#testimonials.testimonials-clean-bg{
  background:transparent !important;
  background-image:none !important;
}

/* ==============================
   GALLERY — TRUE FULL WIDTH
   NO DOTS / NO PROGRESS LINE
   ============================== */
#library-gallery .campus-gallery-stage{
  width:100vw !important;
  max-width:none !important;
  margin-left:calc(50% - 50vw) !important;
  margin-right:calc(50% - 50vw) !important;
}
#library-gallery .campus-gallery-slide{
  padding-left:max(18px,calc((100vw - 1380px)/2)) !important;
  padding-right:max(18px,calc((100vw - 1380px)/2)) !important;
}
#library-gallery .campus-gallery-mosaic{
  width:100% !important;
  max-width:1380px !important;
}
#library-gallery .campus-gallery-footer,
#library-gallery .campus-gallery-progress,
#library-gallery .campus-gallery-dots{
  display:none !important;
}

/* refactor-index-36.css */
/* Library Gallery cleanup: no campus selector buttons or campus description */
#library-gallery .campus-gallery-tabs,
#library-gallery .campus-gallery-copy{
  display:none !important;
}

#library-gallery .campus-gallery-stage{
  margin-top:24px !important;
}

/* Image descriptions appear only on hover/focus */
#library-gallery .campus-gallery-main,
#library-gallery .campus-gallery-small{
  position:relative !important;
}

#library-gallery .gallery-image-description{
  position:absolute;
  z-index:5;
  left:0;
  right:0;
  bottom:0;
  min-height:62px;
  padding:18px 20px;
  display:flex;
  align-items:flex-end;
  background:linear-gradient(180deg,transparent 0%,rgba(4,12,32,.90) 100%);
  color:#fff;
  opacity:0;
  transform:translateY(14px);
  transition:opacity .3s ease,transform .3s ease;
  pointer-events:none;
}

#library-gallery .gallery-image-description span{
  position:relative;
  padding-left:13px;
  font-size:14px;
  font-weight:800;
  letter-spacing:.01em;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
}

#library-gallery .gallery-image-description span::before{
  content:"";
  position:absolute;
  left:0;
  top:3px;
  bottom:3px;
  width:3px;
  border-radius:4px;
  background:#e58a00;
}

#library-gallery .campus-gallery-main:hover .gallery-image-description,
#library-gallery .campus-gallery-small:hover .gallery-image-description,
#library-gallery .campus-gallery-main:focus-within .gallery-image-description,
#library-gallery .campus-gallery-small:focus-within .gallery-image-description{
  opacity:1;
  transform:translateY(0);
}

/* Keep image zoom subtle while description appears */
#library-gallery .campus-gallery-main:hover img,
#library-gallery .campus-gallery-small:hover img{
  transform:scale(1.07) !important;
}

@media(max-width:820px){
  /* Touch devices have no reliable hover, so keep labels visible */
  #library-gallery .gallery-image-description{
    opacity:1;
    transform:none;
    min-height:48px;
    padding:12px 14px;
  }
  #library-gallery .gallery-image-description span{
    font-size:12px;
  }
}

/* refactor-index-37.css */
/* Big Library Gallery image: old-page caption, always visible */
#library-gallery .campus-gallery-main-caption{
  position:absolute !important;
  z-index:6 !important;
  left:28px !important;
  right:28px !important;
  bottom:24px !important;
  display:block !important;
  opacity:1 !important;
  transform:none !important;
  pointer-events:none !important;
}

#library-gallery .campus-gallery-main-caption span{
  display:block !important;
  color:#ffc66b !important;
  font-size:10px !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  letter-spacing:.10em !important;
  margin-bottom:4px !important;
}

#library-gallery .campus-gallery-main-caption strong{
  display:block !important;
  color:#fff !important;
  font-size:29px !important;
  line-height:1.15 !important;
  font-weight:800 !important;
  text-shadow:0 3px 12px rgba(0,0,0,.48) !important;
}

/* Permanent dark gradient behind the main caption */
#library-gallery .campus-gallery-main::after{
  content:"" !important;
  position:absolute !important;
  z-index:2 !important;
  inset:0 !important;
  background:linear-gradient(180deg,transparent 45%,rgba(3,12,32,.86) 100%) !important;
  pointer-events:none !important;
}

/* Small images retain mouse-hover descriptions */
#library-gallery .campus-gallery-small .gallery-image-description{
  z-index:6 !important;
}

@media(max-width:580px){
  #library-gallery .campus-gallery-main-caption{
    left:18px !important;
    right:18px !important;
    bottom:17px !important;
  }
  #library-gallery .campus-gallery-main-caption strong{
    font-size:22px !important;
  }
}

/* refactor-index-38.css */
/* 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}
}

/* refactor-index-39.css */
/* =========================================================
   OUR LIBRARIES — FULL WIDTH
   ========================================================= */
#our-libraries{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
  background:#fff !important;
}

#our-libraries > .container{
  width:100% !important;
  max-width:none !important;
  padding-left:clamp(24px,4vw,70px) !important;
  padding-right:clamp(24px,4vw,70px) !important;
}

#our-libraries .our-library-grid{
  width:100% !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:18px !important;
}

#our-libraries .our-library-card{
  position:relative !important;
  min-width:0 !important;
}

/* Old visible Know More button is gone */
#our-libraries .our-library-btn{
  display:none !important;
}

/* Hover-only Know More area */
#our-libraries .our-library-hover-more{
  width:calc(100% + 44px);
  margin:auto -22px 0;
  min-height:54px;
  border:0;
  border-top:1px solid #e6eaf0;
  background:linear-gradient(135deg,#0f1e4a,#173a78);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;

  opacity:0;
  max-height:0;
  min-height:0;
  padding:0;
  overflow:hidden;
  transform:translateY(12px);
  transition:
    opacity .28s ease,
    transform .28s ease,
    max-height .28s ease,
    min-height .28s ease,
    padding .28s ease;
}

#our-libraries .our-library-card:hover .our-library-hover-more,
#our-libraries .our-library-card:focus-within .our-library-hover-more{
  opacity:1;
  max-height:54px;
  min-height:54px;
  padding:0 16px;
  transform:translateY(0);
}

#our-libraries .our-library-hover-more i{
  transition:transform .2s ease;
}

#our-libraries .our-library-hover-more:hover{
  background:#e58a00;
}

#our-libraries .our-library-hover-more:hover i{
  transform:translateX(4px);
}

/* Keep contact details directly below the hover action */
#our-libraries .our-library-contact{
  margin-top:0 !important;
}

@media(max-width:1050px){
  #our-libraries .our-library-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:620px){
  #our-libraries > .container{
    padding-left:18px !important;
    padding-right:18px !important;
  }

  #our-libraries .our-library-grid{
    grid-template-columns:1fr !important;
  }

  /* Touch devices cannot depend on hover */
  #our-libraries .our-library-hover-more{
    opacity:1;
    max-height:52px;
    min-height:52px;
    padding:0 16px;
    transform:none;
  }
}

/* =========================================================
   FREQUENTLY ASKED QUESTIONS — DISTINCT BACKGROUND
   ========================================================= */
#faq.faq-distinct-background{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 8% 15%,rgba(229,138,0,.10),transparent 27%),
    radial-gradient(circle at 92% 85%,rgba(15,30,74,.08),transparent 30%),
    linear-gradient(180deg,#f4f7fb 0%,#eef3f8 100%) !important;
  border-top:1px solid #e4e9f0;
  border-bottom:1px solid #e4e9f0;
}

#faq.faq-distinct-background::before{
  content:"";
  position:absolute;
  width:270px;
  height:270px;
  border-radius:50%;
  right:-120px;
  top:-110px;
  border:1px solid rgba(15,30,74,.06);
  box-shadow:
    0 0 0 45px rgba(15,30,74,.025),
    0 0 0 90px rgba(15,30,74,.018);
  pointer-events:none;
}

#faq.faq-distinct-background > .container{
  position:relative;
  z-index:2;
}

#faq.faq-distinct-background .faq-item,
#faq.faq-distinct-background details{
  background:#fff !important;
}

/* refactor-index-40.css */
/* Small library image below each library name */
#our-libraries .our-library-card-image{
  margin:0 -22px 0;
  height:145px;
  overflow:hidden;
  background:#eef2f7;
  border-bottom:1px solid #e4e9f0;
}
#our-libraries .our-library-card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .45s ease;
}
#our-libraries .our-library-card:hover .our-library-card-image img{
  transform:scale(1.055);
}

/* Gallery-style Know More popup */
.library-gallery-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
}
.library-gallery-modal.open{display:flex}
.library-gallery-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(3,10,28,.82);
  backdrop-filter:blur(6px);
}
.library-gallery-modal-dialog{
  position:relative;
  z-index:2;
  width:min(1180px,96vw);
  max-height:92vh;
  overflow:auto;
  border-radius:24px;
  background:#0f1e4a;
  box-shadow:0 30px 90px rgba(0,0,0,.38);
  animation:libraryPopupIn .32s ease both;
}
@keyframes libraryPopupIn{
  from{opacity:0;transform:translateY(18px) scale(.985)}
  to{opacity:1;transform:none}
}
.library-gallery-modal-close{
  position:absolute;
  z-index:10;
  top:16px;
  right:16px;
  width:42px;height:42px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
}
.library-popup-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:26px;
  padding:30px 68px 22px 30px;
  color:#fff;
  background:linear-gradient(135deg,#07132f,#173a78);
  border-bottom:4px solid #e58a00;
}
.library-popup-header span{
  display:block;
  color:#ffc66b;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.09em;
}
.library-popup-header h3{
  margin:5px 0 5px;
  color:#fff;
  font-size:30px;
}
.library-popup-header p{
  margin:0;
  max-width:720px;
  color:rgba(255,255,255,.72);
  font-size:13px;
  line-height:1.6;
}
.library-popup-staff-btn{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:11px 15px;
  border-radius:11px;
  background:#e58a00;
  color:#fff !important;
  font-size:12px;
  font-weight:800;
}
.library-popup-gallery{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(390px,.95fr);
  gap:12px;
  height:500px;
  padding:18px;
  background:#0a1637;
}
.library-popup-main,
.library-popup-small{
  position:relative;
  margin:0;
  overflow:hidden;
  border-radius:16px;
  background:#091433;
}
.library-popup-main img,
.library-popup-small img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  transition:transform .5s ease;
}
.library-popup-main:hover img,
.library-popup-small:hover img{transform:scale(1.06)}
.library-popup-main::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 48%,rgba(3,10,28,.88) 100%);
  pointer-events:none;
}
.library-popup-main-caption{
  position:absolute;
  z-index:3;
  left:24px;
  bottom:20px;
}
.library-popup-main-caption span{
  display:block;
  color:#ffc66b;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.09em;
}
.library-popup-main-caption strong{
  display:block;
  color:#fff;
  margin-top:3px;
  font-size:27px;
}
.library-popup-small-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(3,minmax(0,1fr));
  gap:12px;
}
.library-popup-image-caption{
  position:absolute;
  left:0;right:0;bottom:0;
  padding:20px 12px 10px;
  background:linear-gradient(180deg,transparent,rgba(3,10,28,.86));
  color:#fff;
  font-size:11px;
  font-weight:800;
  opacity:0;
  transform:translateY(8px);
  transition:.25s ease;
}
.library-popup-small:hover .library-popup-image-caption{
  opacity:1;
  transform:none;
}
.library-popup-info{
  display:grid;
  grid-template-columns:1.4fr .8fr;
  gap:14px;
  padding:18px;
  background:#fff;
}
.library-popup-info-card{
  padding:18px;
  border:1px solid #e6eaf0;
  border-radius:15px;
  background:#f8fafc;
}
.library-popup-info-card h4{
  margin:0 0 13px;
  color:#0f1e4a;
  font-size:15px;
}
.library-popup-services{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.library-popup-services span{
  padding:9px 10px;
  border:1px solid #e6eaf0;
  border-radius:9px;
  background:#fff;
  color:#5d6879;
  font-size:11px;
}
.library-popup-services i,
.library-popup-contact i{color:#e58a00;margin-right:6px}
.library-popup-contact{
  display:grid;
  gap:10px;
  color:#5d6879;
  font-size:12px;
}
body.library-modal-open{overflow:hidden}

/* FAQ: one-open accordion with + / − */
#faq details{
  overflow:hidden;
}
#faq details summary{
  position:relative;
  padding-right:52px !important;
  list-style:none;
  cursor:pointer;
}
#faq details summary::-webkit-details-marker{display:none}
#faq .faq-toggle-icon{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  width:30px;height:30px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#0f1e4a;
  color:#fff;
  font-size:20px;
  line-height:1;
  font-weight:400;
  transition:.2s ease;
}
#faq details[open] .faq-toggle-icon{
  background:#e58a00;
  transform:translateY(-50%) rotate(180deg);
}
#faq details[open] .faq-toggle-icon::before{content:"−"}
#faq details[open] .faq-toggle-icon{font-size:0}
#faq details[open] .faq-toggle-icon::before{font-size:20px}
#faq details:not([open]) .faq-toggle-icon::before{content:"+"}
#faq details:not([open]) .faq-toggle-icon{font-size:0}
#faq details:not([open]) .faq-toggle-icon::before{font-size:20px}

@media(max-width:820px){
  .library-popup-header{align-items:flex-start;flex-direction:column}
  .library-popup-gallery{
    height:auto;
    grid-template-columns:1fr;
  }
  .library-popup-main{height:350px}
  .library-popup-small-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:repeat(2,120px);
  }
  .library-popup-info{grid-template-columns:1fr}
  .library-popup-services{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  #our-libraries .our-library-card-image{height:165px}
  .library-gallery-modal{padding:8px}
  .library-gallery-modal-dialog{border-radius:16px}
  .library-popup-header{padding:24px 54px 20px 20px}
  .library-popup-header h3{font-size:24px}
  .library-popup-main{height:300px}
  .library-popup-small-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:repeat(3,110px);
  }
  .library-popup-services{grid-template-columns:1fr}
  .library-popup-image-caption{
    opacity:1;
    transform:none;
  }
}

/* refactor-index-41.css */
/* Important Links — uploaded official icons in equal visual size */
.important-links-footer .il-item{
  min-height:92px !important;
  align-items:center !important;
}
.important-links-footer .il-icon{
  width:56px !important;
  height:56px !important;
  min-width:56px !important;
  flex:0 0 56px !important;
  padding:5px !important;
  border-radius:12px !important;
  display:grid !important;
  place-items:center !important;
  overflow:hidden !important;
  background:#fff !important;
  border:1px solid #e1e7ef !important;
  box-shadow:0 4px 12px rgba(15,30,74,.07) !important;
}
.important-links-footer .il-logo{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:46px !important;
  max-height:46px !important;
  object-fit:contain !important;
  object-position:center !important;
  border-radius:4px !important;
}
@media(max-width:620px){
  .important-links-footer .il-icon{
    width:50px !important;height:50px !important;
    min-width:50px !important;flex-basis:50px !important;
  }
  .important-links-footer .il-logo{
    max-width:41px !important;max-height:41px !important;
  }
}

/* refactor-index-42.css */
/* =========================================================
   OUR LIBRARIES
   - no white gap between library name and image
   - Know More overlays the image on hover
   ========================================================= */

/* Header and image touch each other */
#our-libraries .our-library-name-banner{
  margin:0 -22px 0 !important;
  border-bottom:0 !important;
  padding-bottom:18px !important;
}

#our-libraries .our-library-card-image{
  position:relative !important;
  margin:0 -22px 18px !important;
  height:165px !important;
  border-top:0 !important;
  border-bottom:1px solid #e4e9f0 !important;
  overflow:hidden !important;
}

#our-libraries .our-library-card-image img{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
}

/* Remove any space introduced by adjacent elements */
#our-libraries .our-library-name-banner + .our-library-card-image{
  margin-top:0 !important;
}

/* Know More is an overlay on top of the library image */
#our-libraries .our-library-hover-more{
  position:absolute !important;
  z-index:5 !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  max-height:none !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:9px !important;

  background:rgba(7,19,47,.68) !important;
  color:#fff !important;
  font-size:13px !important;
  font-weight:800 !important;
  cursor:pointer !important;

  opacity:0 !important;
  transform:none !important;
  transition:opacity .28s ease,background .28s ease !important;
}

/* Small button-style treatment in the centre */
#our-libraries .our-library-hover-more span{
  display:inline-flex !important;
  align-items:center !important;
  padding:11px 16px !important;
  border-radius:10px !important;
  background:#e58a00 !important;
  box-shadow:0 8px 22px rgba(0,0,0,.20) !important;
}

#our-libraries .our-library-hover-more i{
  margin-left:-2px !important;
  padding:12px 13px !important;
  border-radius:10px !important;
  background:#e58a00 !important;
  transition:transform .2s ease !important;
}

/* Show overlay only when the library image/card is hovered */
#our-libraries .our-library-card:hover .our-library-hover-more,
#our-libraries .our-library-card-image:hover .our-library-hover-more,
#our-libraries .our-library-hover-more:focus{
  opacity:1 !important;
  max-height:none !important;
  min-height:0 !important;
  padding:0 !important;
}

#our-libraries .our-library-hover-more:hover{
  background:rgba(7,19,47,.78) !important;
}

#our-libraries .our-library-hover-more:hover i{
  transform:translateX(4px) !important;
}

/* Keep image zoom behind overlay */
#our-libraries .our-library-card:hover .our-library-card-image img{
  transform:scale(1.055) !important;
}

/* Contact area remains normal below card content */
#our-libraries .our-library-contact{
  margin-top:auto !important;
}

/* Touch/mobile: make the image overlay accessible */
@media(max-width:620px){
  #our-libraries .our-library-card-image{
    height:180px !important;
  }

  #our-libraries .our-library-hover-more{
    opacity:1 !important;
    align-items:flex-end !important;
    justify-content:flex-end !important;
    padding:12px !important;
    background:linear-gradient(180deg,transparent 45%,rgba(7,19,47,.72) 100%) !important;
  }

  #our-libraries .our-library-hover-more span{
    padding:9px 12px !important;
  }

  #our-libraries .our-library-hover-more i{
    padding:10px 11px !important;
  }
}

/* refactor-index-43.css */
/* =========================================================
   FAQ FINAL FIX
   - remove Ask a Librarian button
   - each FAQ expands independently
   - the FAQ beside it stays collapsed at normal height
   ========================================================= */

#faq .section-head{
  align-items:flex-start !important;
}

/* Critical: prevent CSS Grid from stretching both cards in a row */
#faq .faq-grid{
  align-items:start !important;
  grid-auto-rows:auto !important;
}

/* Each details element keeps only its own content height */
#faq .faq-item,
#faq details{
  align-self:start !important;
  height:auto !important;
  min-height:0 !important;
}

/* Closed FAQ remains compact even when the neighbouring item is open */
#faq details:not([open]){
  height:auto !important;
}

#faq details:not([open]) .faq-answer{
  display:none !important;
}

/* Only the clicked/open FAQ shows its answer */
#faq details[open] .faq-answer{
  display:block !important;
}

/* Keep a clean compact header */
#faq .faq-item > summary,
#faq details > summary{
  min-height:58px !important;
  box-sizing:border-box !important;
}

/* Remove any fixed/stretch height inherited from older FAQ styles */
#faq .faq-item,
#faq .faq-item[open]{
  max-height:none !important;
}

/* In two-column desktop layout, each card remains top-aligned */
@media(min-width:721px){
  #faq .faq-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px 18px !important;
  }
}

/* Mobile remains one column */
@media(max-width:720px){
  #faq .faq-grid{
    grid-template-columns:1fr !important;
  }
}

/* refactor-index-44.css */
/* =========================================================
   IMPORTANT LINKS — SMOOTH CONTINUOUS SCROLL / NO SHAKING
   ========================================================= */
.important-links-footer .il-viewport{
  overflow:hidden !important;
  position:relative !important;
  width:100% !important;
}

.important-links-footer .il-track{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:stretch !important;
  gap:14px !important;
  width:max-content !important;
  max-width:none !important;

  /* JS controls transform; disable competing CSS animations */
  animation:none !important;
  transition:none !important;
  scroll-behavior:auto !important;
  will-change:transform !important;
  transform:translate3d(0,0,0);
  backface-visibility:hidden;
  perspective:1000px;
}

.important-links-footer .il-item{
  flex:0 0 190px !important;
  width:190px !important;
  min-width:190px !important;
  box-sizing:border-box !important;
  transform:translateZ(0);
}

/* Pause visually without changing layout */
.important-links-footer .il-track.il-paused{
  will-change:auto !important;
}

@media(max-width:720px){
  .important-links-footer .il-item{
    flex-basis:176px !important;
    width:176px !important;
    min-width:176px !important;
  }
}

@media(prefers-reduced-motion:reduce){
  .important-links-footer .il-track{
    transform:none !important;
  }
  .important-links-footer .il-viewport{
    overflow-x:auto !important;
    scrollbar-width:none;
  }
  .important-links-footer .il-viewport::-webkit-scrollbar{
    display:none;
  }
}

/* refactor-index-45.css */
/* =========================================================
   OUR LIBRARIES — OLD-PAGE STYLE POPUP
   Right: timings + address
   Staff: below gallery
   ========================================================= */
.old-library-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
}
.old-library-modal.show{display:block}
.old-library-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,15,38,.74);
  backdrop-filter:blur(5px);
}
.old-library-modal-dialog{
  position:relative;
  z-index:2;
  width:min(1020px,calc(100% - 30px));
  max-height:92vh;
  overflow:auto;
  margin:4vh auto;
  background:#fff;
  border-radius:18px;
  box-shadow:0 25px 70px rgba(0,0,0,.30);
}
.old-library-modal-close{
  position:absolute;
  right:14px;
  top:14px;
  z-index:8;
  width:40px;
  height:40px;
  border:0;
  border-radius:50%;
  background:rgba(9,20,51,.88);
  color:#fff;
  cursor:pointer;
  font-size:18px;
}
.old-library-modal-cover{
  height:260px;
  position:relative;
  overflow:hidden;
  border-radius:18px 18px 0 0;
}
.old-library-modal-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.old-library-modal-cover::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 25%,rgba(5,18,49,.90) 100%);
}
.old-library-modal-cover-overlay{
  position:absolute;
  z-index:3;
  left:30px;
  right:30px;
  bottom:25px;
}
.old-library-modal-cover-overlay span{
  display:block;
  color:#ffc66b;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.09em;
}
.old-library-modal-cover-overlay h2{
  margin:5px 0 0;
  color:#fff;
  font-size:32px;
}
.old-library-modal-content{
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:26px;
  padding:28px;
}
.old-library-main > h3{
  margin:0 0 16px;
  color:#0f1e4a;
  font-size:19px;
}
.old-library-main > p{
  margin:0;
  color:#68758a;
  line-height:1.75;
  font-size:14px;
}
.old-library-features{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}
.old-library-feature{
  padding:12px 13px;
  border:1px solid #dfe5ed;
  border-radius:9px;
  background:#fafbfe;
  color:#0f1e4a;
  font-size:12px;
  font-weight:700;
}
.old-library-gallery-wrap{
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid #dfe5ed;
}
.old-library-section-title{
  margin-bottom:12px;
  color:#0f1e4a;
  font-size:17px;
  font-weight:800;
}
.old-library-gallery{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.old-library-gallery figure{
  position:relative;
  height:112px;
  margin:0;
  overflow:hidden;
  border-radius:9px;
  border:1px solid #dfe5ed;
  background:#eef2f6;
}
.old-library-gallery img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .25s ease;
}
.old-library-gallery figure:hover img{transform:scale(1.05)}
.old-library-gallery figcaption{
  position:absolute;
  left:0;right:0;bottom:0;
  padding:18px 9px 8px;
  background:linear-gradient(180deg,transparent,rgba(5,18,49,.82));
  color:#fff;
  font-size:10px;
  font-weight:700;
  opacity:0;
  transition:.22s ease;
}
.old-library-gallery figure:hover figcaption{opacity:1}

/* Right-side information replaces old Library Staff panel */
.old-library-side{
  display:grid;
  align-content:start;
  gap:16px;
}
.old-library-side-card{
  padding:18px;
  border:1px solid #dfe5ed;
  border-radius:13px;
  background:#f7f8fb;
}
.old-library-side-title{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:14px;
  color:#0f1e4a;
  font-size:16px;
  font-weight:800;
}
.old-library-side-title i{color:#e58a00}
.old-library-hours{
  display:grid;
  gap:0;
}
.old-library-hour{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid #dde3eb;
  font-size:11px;
}
.old-library-hour:last-child{border-bottom:0}
.old-library-hour strong{
  color:#0f1e4a;
  font-weight:700;
}
.old-library-hour span{
  color:#68758a;
  text-align:right;
}
.old-library-address{
  margin:0;
  color:#68758a;
  font-size:12px;
  line-height:1.7;
}

/* Library Staff is now BELOW Gallery */
.old-library-staff-wrap{
  margin-top:25px;
  padding-top:20px;
  border-top:1px solid #dfe5ed;
}
.old-library-staff-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:18px;
  margin-bottom:13px;
}
.old-library-staff-head span{
  display:block;
  color:#e58a00;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.old-library-staff-head h3{
  margin:3px 0 0;
  color:#0f1e4a;
  font-size:17px;
}
.old-library-staff-head a{
  color:#0f1e4a;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.old-library-staff-head a:hover{color:#e58a00}
.old-library-staff-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.old-library-staff-member{
  display:grid;
  grid-template-columns:50px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:12px;
  border:1px solid #e0e5ed;
  border-radius:11px;
  background:#f8fafc;
}
.old-library-staff-photo{
  width:50px;
  height:50px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid #fff;
  box-shadow:0 4px 12px rgba(15,30,74,.14);
}
.old-library-staff-info strong{
  display:block;
  color:#0f1e4a;
  font-size:12px;
}
.old-library-staff-info span{
  display:block;
  margin:2px 0;
  color:#d67600;
  font-size:10px;
}
.old-library-staff-info small{
  color:#7b8798;
  font-size:9px;
}

body.library-modal-open{overflow:hidden}

@media(max-width:780px){
  .old-library-modal-dialog{margin:2vh auto;max-height:96vh}
  .old-library-modal-cover{height:215px}
  .old-library-modal-content{grid-template-columns:1fr}
  .old-library-features{grid-template-columns:1fr}
  .old-library-side{grid-template-columns:1fr 1fr}
  .old-library-staff-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .old-library-modal-content{padding:20px}
  .old-library-modal-cover-overlay{left:20px;right:20px;bottom:19px}
  .old-library-modal-cover-overlay h2{font-size:25px}
  .old-library-gallery{grid-template-columns:1fr}
  .old-library-gallery figure{height:150px}
  .old-library-side{grid-template-columns:1fr}
  .old-library-staff-head{align-items:flex-start;flex-direction:column}
}

/* refactor-index-46.css */
/* Latest Notices — subtle CHRIST blue border */
#curated .notice-card,
#curated .notice-panel,
#curated .notice-board,
#curated .notice-wrap,
#curated .notices-card{
  border:1px solid #d5deef !important;
  box-shadow:0 8px 24px rgba(15,30,74,.06) !important;
}

/* Do not add the blue border to Recommended Reading */
#curated .reading-card,
#curated .recommended-reading,
#curated .reading-panel{
  border-color:inherit;
}

/* refactor-index-47.css */
/* Our Libraries — match the width/alignment of the other page sections */
#our-libraries{
  width:auto !important;
  max-width:none !important;
  margin:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

#our-libraries > .container{
  width:92% !important;
  max-width:1180px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

#our-libraries .our-library-grid{
  width:100% !important;
}

@media(max-width:720px){
  #our-libraries > .container{
    width:calc(100% - 36px) !important;
  }
}

/* refactor-index-48.css */
.view-all-arrivals-trigger{
  border:0;
  background:transparent;
  color:#0f1e4a;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  padding:0;
}
.view-all-arrivals-trigger:hover{color:#e58a00}

.new-arrivals-library-popup{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.new-arrivals-library-popup.open{display:flex}
.new-arrivals-popup-backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,15,38,.72);
  backdrop-filter:blur(5px);
}
.new-arrivals-popup-dialog{
  position:relative;
  z-index:2;
  width:min(620px,100%);
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.28);
  animation:newArrivalsPopupIn .25s ease both;
}
@keyframes newArrivalsPopupIn{
  from{opacity:0;transform:translateY(16px) scale(.985)}
  to{opacity:1;transform:none}
}
.new-arrivals-popup-close{
  position:absolute;
  top:14px;
  right:14px;
  width:38px;height:38px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
}
.new-arrivals-popup-head{
  padding:27px 62px 22px 25px;
  background:linear-gradient(135deg,#0f1e4a,#173a78);
  border-bottom:4px solid #e58a00;
  color:#fff;
}
.new-arrivals-popup-head span{
  color:#ffc66b;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.new-arrivals-popup-head h3{
  margin:5px 0 4px;
  font-size:26px;
}
.new-arrivals-popup-head p{
  margin:0;
  color:rgba(255,255,255,.7);
  font-size:12px;
}
.new-arrivals-popup-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  padding:20px;
}
.new-arrivals-library-option{
  display:grid;
  grid-template-columns:50px minmax(0,1fr) 18px;
  gap:12px;
  align-items:center;
  padding:14px;
  border:1px solid #e0e6ef;
  border-radius:13px;
  background:#f8fafc;
  color:#0f1e4a !important;
  text-decoration:none;
  transition:.22s ease;
}
.new-arrivals-library-option:hover{
  border-color:#e58a00;
  transform:translateY(-2px);
  box-shadow:0 9px 22px rgba(15,30,74,.08);
}
.new-arrivals-library-icon{
  width:50px;height:50px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#fff4e3;
  color:#e58a00;
  font-size:18px;
}
.new-arrivals-library-option strong{
  display:block;
  font-size:13px;
}
.new-arrivals-library-option small{
  display:block;
  margin-top:3px;
  color:#78859a;
  font-size:10px;
}
.new-arrivals-library-option > i{
  color:#0f1e4a;
  font-size:12px;
}
body.new-arrivals-popup-open{overflow:hidden}
@media(max-width:580px){
  .new-arrivals-popup-grid{grid-template-columns:1fr}
}

/* refactor-index-49.css */
/* =========================================================
   NEW ARRIVALS — STABLE CONTINUOUS LOOP
   ========================================================= */
#newArrivalsContinuousViewport{
  overflow:hidden !important;
  width:100% !important;
  position:relative !important;
}

#newArrivalsContinuousTrack{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:18px !important;
  width:max-content !important;
  max-width:none !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
  will-change:auto !important;
}

#newArrivalsContinuousTrack > *{
  flex:0 0 222px !important;
  width:222px !important;
  min-width:222px !important;
  box-sizing:border-box !important;
}

@media(max-width:900px){
  #newArrivalsContinuousTrack > *{
    flex-basis:210px !important;
    width:210px !important;
    min-width:210px !important;
  }
}
@media(max-width:620px){
  #newArrivalsContinuousTrack > *{
    flex-basis:78vw !important;
    width:78vw !important;
    min-width:78vw !important;
  }
}

/* Library-selection options remain styled as cards even though buttons */
.new-arrivals-library-option{
  width:100%;
  border:1px solid #e0e6ef;
  text-align:left;
  cursor:pointer;
}

/* =========================================================
   NEW ARRIVALS DESTINATION PAGE POPUP
   ========================================================= */
.new-arrivals-page-popup{
  position:fixed;
  inset:0;
  z-index:10000000000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
}
.new-arrivals-page-popup.open{display:flex}
.new-arrivals-page-backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,15,38,.82);
  backdrop-filter:blur(6px);
}
.new-arrivals-page-dialog{
  position:relative;
  z-index:2;
  width:min(1180px,96vw);
  height:min(82vh,820px);
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 30px 90px rgba(0,0,0,.35);
  animation:newArrivalsPageIn .28s ease both;
}
@keyframes newArrivalsPageIn{
  from{opacity:0;transform:translateY(18px) scale(.985)}
  to{opacity:1;transform:none}
}
.new-arrivals-page-close{
  position:absolute;
  z-index:5;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:#0f1e4a;
  color:#fff;
  cursor:pointer;
  box-shadow:0 5px 15px rgba(0,0,0,.18);
}
#newArrivalsPageFrame{
  width:100%;
  height:100%;
  border:0;
  display:block;
  background:#fff;
}
body.new-arrivals-page-open{overflow:hidden}

/* refactor-index-50.css */
/* =========================================================
   NEW ARRIVALS — SCROLL SAME AS LIBRARY BLOG
   ========================================================= */
#arrivals #newArrivalsBlogStyleViewport{
  position:relative !important;
  overflow:hidden !important;
  width:100% !important;
}

#arrivals #newArrivalsBlogStyleTrack{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:18px !important;
  width:auto !important;
  max-width:none !important;
  transform:none !important;
  transition:none !important;
  animation:none !important;
  scroll-behavior:smooth !important;
}

/* 4 cards visible on desktop, matching the Blog carousel rhythm */
#arrivals #newArrivalsBlogStyleTrack > *{
  flex:0 0 calc((100% - 54px)/4) !important;
  width:calc((100% - 54px)/4) !important;
  min-width:calc((100% - 54px)/4) !important;
  box-sizing:border-box !important;
}

/* Arrow placement like Library Blog */
#arrivals #newArrivalsBlogPrev,
#arrivals #newArrivalsBlogNext{
  position:absolute !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  z-index:30 !important;
  width:42px !important;
  height:42px !important;
  border-radius:50% !important;
  display:grid !important;
  place-items:center !important;
  pointer-events:auto !important;
  cursor:pointer !important;
}

#arrivals #newArrivalsBlogPrev{
  left:-16px !important;
}

#arrivals #newArrivalsBlogNext{
  right:-16px !important;
}

@media(max-width:1000px){
  #arrivals #newArrivalsBlogStyleTrack > *{
    flex-basis:calc((100% - 36px)/3) !important;
    width:calc((100% - 36px)/3) !important;
    min-width:calc((100% - 36px)/3) !important;
  }
}

@media(max-width:760px){
  #arrivals #newArrivalsBlogStyleTrack > *{
    flex-basis:calc((100% - 18px)/2) !important;
    width:calc((100% - 18px)/2) !important;
    min-width:calc((100% - 18px)/2) !important;
  }
  #arrivals #newArrivalsBlogPrev{left:4px !important}
  #arrivals #newArrivalsBlogNext{right:4px !important}
}

@media(max-width:520px){
  #arrivals #newArrivalsBlogStyleTrack > *{
    flex-basis:84% !important;
    width:84% !important;
    min-width:84% !important;
  }
}

/* refactor-index-51.css */
/* Menu ordered to follow page section flow */
.nav-drawer a,
.menu-drawer a,
.drawer a{
  scroll-margin-top:90px;
}

/* refactor-index-52.css */
#hamburgerMenu .hamburger-menu-foot{
  background:#fff;
}
#hamburgerMenu .menu-library-address{
  margin-top:14px;
  padding:14px 12px 2px;
  border-top:1px solid #e6eaf0;
  color:#66748a;
}
#hamburgerMenu .menu-address-title{
  display:flex;
  align-items:flex-start;
  gap:8px;
  color:#0f1e4a;
  font-size:12px;
  line-height:1.4;
}
#hamburgerMenu .menu-address-title i{
  color:#e58a00;
  margin-top:2px;
}
#hamburgerMenu .menu-library-address p{
  margin:7px 0 0 20px;
  font-size:11px;
  line-height:1.65;
  color:#6c788c;
}

/* refactor-index-53.css */
/* =========================================================
   HAMBURGER MENU — 8 ITEMS VISIBLE + SCROLL
   Footer/login/address always fully visible
   ========================================================= */

#hamburgerMenu.menu-eight-visible-layout{
  display:flex !important;
  flex-direction:column !important;
  height:100vh !important;
  max-height:100vh !important;
  overflow:hidden !important;
}

/* Keep the menu title/header fixed */
#hamburgerMenu .hamburger-menu-head{
  flex:0 0 auto !important;
}

/*
  Show about 8 menu rows before scrolling.
  Each item is ~51px high including spacing/border.
*/
#hamburgerMenu .menu-eight-scroll-area{
  flex:0 0 auto !important;
  max-height:408px !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding-right:6px !important;
  scrollbar-width:thin !important;
  scrollbar-color:#8a8f98 transparent !important;
}

/* Chrome/Edge scrollbar */
#hamburgerMenu .menu-eight-scroll-area::-webkit-scrollbar{
  width:7px !important;
}
#hamburgerMenu .menu-eight-scroll-area::-webkit-scrollbar-track{
  background:transparent !important;
}
#hamburgerMenu .menu-eight-scroll-area::-webkit-scrollbar-thumb{
  background:#92979f !important;
  border-radius:10px !important;
}

/* Keep menu item heights consistent */
#hamburgerMenu .menu-eight-scroll-area > a{
  min-height:50px !important;
  display:flex !important;
  align-items:center !important;
  padding:0 14px !important;
  margin:0 !important;
  border-bottom:1px solid #edf0f4 !important;
}

/* Footer does not scroll */
#hamburgerMenu .menu-fixed-footer{
  flex:1 1 auto !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  background:#fff !important;
  border-top:1px solid #e4e8ee !important;
  padding:16px 16px 14px !important;
  overflow:visible !important;
}

/* Library Login button */
#hamburgerMenu .menu-fixed-footer > a,
#hamburgerMenu .menu-fixed-footer .library-login{
  flex:0 0 auto !important;
  margin:0 0 14px !important;
}

/* Address — fully visible */
#hamburgerMenu .menu-library-address{
  flex:0 0 auto !important;
  margin:0 !important;
  padding:14px 10px 4px !important;
  border-top:1px solid #e6eaf0 !important;
  color:#66748a !important;
  background:#fff !important;
}

#hamburgerMenu .menu-address-title{
  display:flex !important;
  align-items:flex-start !important;
  gap:8px !important;
  color:#0f1e4a !important;
  font-size:12px !important;
  line-height:1.4 !important;
}

#hamburgerMenu .menu-address-title i{
  color:#e58a00 !important;
  margin-top:2px !important;
  flex:0 0 auto !important;
}

#hamburgerMenu .menu-library-address p{
  margin:7px 0 0 20px !important;
  font-size:11px !important;
  line-height:1.55 !important;
  color:#6c788c !important;
}

/* Avoid floating Ask a Librarian button covering the address */
#hamburgerMenu ~ #askLibrarianFab,
#askLibrarianFab{
  z-index:9000 !important;
}

/* On shorter screens, reduce menu viewport slightly but preserve footer */
@media(max-height:760px){
  #hamburgerMenu .menu-eight-scroll-area{
    max-height:360px !important;
  }
}

@media(max-height:680px){
  #hamburgerMenu .menu-eight-scroll-area{
    max-height:310px !important;
  }
}

/* Mobile drawer width remains unchanged; only behavior is fixed */
@media(max-width:480px){
  #hamburgerMenu .menu-eight-scroll-area > a{
    min-height:48px !important;
  }
}

/* refactor-index-54.css */
.full-staff-popup{
  position:fixed;
  inset:0;
  z-index:100000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.full-staff-popup.is-open{display:flex}
.full-staff-popup-backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,15,38,.82);
  backdrop-filter:blur(6px);
}
.full-staff-popup-dialog{
  position:relative;
  z-index:2;
  width:min(1280px,96vw);
  height:min(88vh,900px);
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 30px 90px rgba(0,0,0,.34);
  animation:fullStaffPopupIn .25s ease both;
}
@keyframes fullStaffPopupIn{
  from{opacity:0;transform:translateY(16px) scale(.985)}
  to{opacity:1;transform:none}
}
.full-staff-popup-close{
  position:absolute;
  top:14px;
  right:14px;
  z-index:5;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:#0f1e4a;
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}
.full-staff-popup-close:hover{background:#e58a00}
#fullStaffPopupFrame{
  width:100%;
  height:100%;
  border:0;
  display:block;
  background:#fff;
}
body.full-staff-popup-open{overflow:hidden}
@media(max-width:700px){
  .full-staff-popup{padding:10px}
  .full-staff-popup-dialog{
    width:100%;
    height:94vh;
    border-radius:14px;
  }
}

/* refactor-index-55.css */
/* =========================================================
   BROWSE BY SUBJECT — SEARCH + ARROWS SAME LINE
   ========================================================= */
#browse-subject .subject-search-control-row{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;
  width:100% !important;
  margin:0 0 14px !important;
}

#browse-subject .subject-search-wrap{
  width:min(520px,calc(100% - 110px)) !important;
  margin:0 !important;
  min-width:260px;
}

#browse-subject .subject-search-box{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
  height:42px;
  background:#fff;
  border:1px solid #d8e0e9;
  border-radius:11px;
  box-shadow:0 6px 18px rgba(15,30,74,.06);
  transition:.2s ease;
}
#browse-subject .subject-search-box:focus-within{
  border-color:#e58a00;
  box-shadow:0 0 0 3px rgba(229,138,0,.10),0 6px 18px rgba(15,30,74,.06);
}
#browse-subject .subject-search-box > i{
  margin-left:15px;
  color:#e58a00;
  font-size:14px;
}
#browse-subject #subjectSearchInput{
  flex:1;
  min-width:0;
  height:100%;
  border:0;
  outline:0;
  background:transparent;
  padding:0 42px 0 11px;
  color:#0f1e4a;
  font-size:14px;
  font-weight:600;
}
#browse-subject #subjectSearchInput::placeholder{
  color:#8a96a7;
  font-weight:500;
}
#browse-subject #subjectSearchClear{
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  width:30px;
  height:30px;
  border:0;
  border-radius:50%;
  background:#f2f4f8;
  color:#0f1e4a;
  display:none;
  place-items:center;
  cursor:pointer;
}
#browse-subject #subjectSearchClear:hover{
  background:#0f1e4a;
  color:#fff;
}
#browse-subject .subject-search-status{
  position:absolute;
  margin-top:4px;
  font-size:11px;
  color:#6f7c90;
}

/* Arrow buttons remain on the same line at right */
#browse-subject .subject-search-control-row .subject-carousel-side-controls{
  position:static !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  gap:8px !important;
  justify-content:flex-end !important;
  flex:0 0 auto !important;
}

/* Search does NOT rearrange cards. It highlights the match in-place. */
#browse-subject .subject-visual-card.subject-search-match{
  position:relative;
  border:2px solid #e58a00 !important;
  background:#fff8ed !important;
  box-shadow:0 10px 28px rgba(229,138,0,.18) !important;
  transform:translateY(-2px);
}
#browse-subject .subject-visual-card.subject-search-match .subject-icon-wrap{
  background:#fff1d7 !important;
  color:#e58a00 !important;
  border-color:#f0c36f !important;
}
#browse-subject .subject-visual-card.subject-search-match .subject-name{
  color:#0f1e4a !important;
  font-weight:900 !important;
}
#browse-subject .subject-visual-card.subject-search-match .subject-arrow{
  background:#e58a00 !important;
  color:#fff !important;
}

/* Actual matching text highlight */
#browse-subject .subject-name mark.subject-match-mark{
  padding:1px 3px;
  border-radius:4px;
  background:#ffe0a6;
  color:#0f1e4a;
  font-weight:900;
}

/* Dim non-matches slightly so the found item is obvious */
#browse-subject.subject-searching .subject-visual-card:not(.subject-search-match){
  opacity:.40;
  filter:saturate(.65);
  transition:opacity .2s ease,filter .2s ease;
}

@media(max-width:650px){
  #browse-subject .subject-search-control-row{
    gap:10px !important;
  }
  #browse-subject .subject-search-wrap{
    width:calc(100% - 88px) !important;
    min-width:0;
  }
  #browse-subject .subject-search-box{
    height:38px;
  }
  #browse-subject .subject-search-control-row .subject-carousel-btn{
    width:38px !important;
    height:38px !important;
    flex-basis:38px !important;
  }
}

/* refactor-index-56.css */
#library-resources{
  --navy:#0f1e4a;
  --blue:#1f5fae;
  --orange:#d98600;
  --ink:#172033;
  --muted:#6b7280;
  --line:#e5e9f0;
  --soft:#f5f7fb;
  --white:#fff;
  --shadow:0 12px 30px rgba(15,30,74,.10);
}






.lr-section{
  padding:58px 22px 76px;
  background:
    radial-gradient(circle at top right,rgba(31,95,174,.09),transparent 30%),
    linear-gradient(180deg,#fff 0%,#f8faff 100%);
}
.lr-wrap{max-width:1280px;margin:auto}
.lr-kicker{display:inline-flex;align-items:center;gap:8px;color:var(--orange);font-weight:800;
  letter-spacing:.08em;font-size:13px;text-transform:uppercase}
.lr-kicker:before{content:"";width:32px;height:3px;border-radius:4px;background:var(--orange)}
.lr-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:8px 0 22px}
.lr-title{margin:0;font-size:40px;line-height:1.05;color:var(--navy);font-weight:800}
.lr-sub{margin:9px 0 0;color:var(--muted);max-width:700px}
.lr-count{background:var(--navy);color:#fff;border-radius:16px;padding:15px 20px;min-width:165px;
  box-shadow:var(--shadow);text-align:center}
.lr-count strong{font-size:28px;display:block;line-height:1}
.lr-count span{font-size:12px;opacity:.8}

.subject-cloud{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 20px;margin-bottom:20px;
 box-shadow:0 7px 22px rgba(15,30,74,.05);animation:rise .55s ease both}
.subject-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
.subject-head h3{margin:0;color:var(--navy);font-size:17px}
.subject-head span{font-size:12px;color:var(--muted)}
.subject-chips{display:flex;gap:8px;flex-wrap:wrap}
.subject-chip{border:1px solid #dfe5ee;background:#f7f9fc;color:#49566d;border-radius:999px;
 padding:7px 12px;font:700 12px "Heebo";cursor:pointer;transition:.22s ease}
.subject-chip:hover{transform:translateY(-2px);background:#fff7e8;border-color:#efc574;color:#8d5600}
.subject-chip.active{background:var(--orange);border-color:var(--orange);color:#fff}

.lr-tools{display:flex;gap:12px;margin-bottom:15px}
.lr-search{position:relative;flex:1}
.lr-search svg{position:absolute;left:17px;top:50%;transform:translateY(-50%);opacity:.45}
.lr-search input{width:100%;height:52px;border:1px solid var(--line);border-radius:14px;padding:0 16px 0 48px;
 font:500 15px "Heebo";outline:none;background:#fff;box-shadow:0 4px 14px rgba(15,30,74,.04)}
.lr-search input:focus{border-color:#9db7db;box-shadow:0 0 0 4px rgba(31,95,174,.08)}
.clear-filter{height:52px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:0 18px;
 color:var(--navy);font:800 13px "Heebo";cursor:pointer}

.lr-shell{display:grid;grid-template-columns:300px 1fr;gap:20px;align-items:stretch}
.lr-resource-panel{height:640px}
.lr-sidebar{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;
 box-shadow:0 8px 24px rgba(15,30,74,.06);animation:rise .55s .08s ease both}
.lr-side-title{font-size:12px;color:#8a93a3;text-transform:uppercase;letter-spacing:.08em;font-weight:800;
 margin:3px 8px 12px}
.lr-cat{width:100%;border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;
 gap:12px;padding:10px 11px;border-radius:13px;color:#263248;font:700 14px "Heebo";cursor:pointer;
 transition:.22s ease;margin:4px 0}
.lr-cat:hover{background:#f3f6fb;color:var(--navy);transform:translateX(4px)}
.lr-cat.active{background:linear-gradient(135deg,var(--navy),#183b7a);color:#fff;box-shadow:0 8px 18px rgba(15,30,74,.18)}
.cat-left{display:flex;align-items:center;gap:10px}
.cat-icon{width:32px;height:32px;border-radius:10px;background:#eef3fa;display:grid;place-items:center;
 color:var(--blue);font-size:11px;font-weight:900;transition:.22s ease}
.lr-cat.active .cat-icon{background:rgba(255,255,255,.14);color:#fff}
.num{min-width:29px;height:24px;padding:0 8px;border-radius:20px;display:grid;place-items:center;
 background:#edf1f7;color:#536079;font-size:11px}
.lr-cat.active .num{background:rgba(255,255,255,.16);color:#fff}

.lr-resource-panel{overflow:auto;padding:2px 8px 10px 2px;scrollbar-width:thin;scrollbar-color:#c8d2e1 transparent}
.lr-resource-panel::-webkit-scrollbar{width:8px}
.lr-resource-panel::-webkit-scrollbar-thumb{background:#c8d2e1;border-radius:10px}
.lr-resource-panel::-webkit-scrollbar-track{background:transparent}
.lr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.lr-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px;min-height:178px;
 display:flex;flex-direction:column;box-shadow:0 4px 16px rgba(15,30,74,.035);
 transition:transform .23s ease,box-shadow .23s ease,border-color .23s ease;animation:cardIn .45s ease both}
.lr-card:hover{transform:translateY(-5px) scale(1.012);border-color:#c9d3e1;box-shadow:0 16px 30px rgba(15,30,74,.12)}
.lr-card:hover .item-icon{transform:rotate(-6deg) scale(1.08);background:var(--navy);color:#fff}
.lr-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.item-icon{width:43px;height:43px;border-radius:13px;background:#eff4fb;color:var(--blue);
 display:grid;place-items:center;font-size:12px;font-weight:900;transition:.25s ease}
.tag{background:#fff7e8;color:#9a5a00;border-radius:20px;padding:5px 9px;font-size:10px;font-weight:800;
 text-transform:uppercase;letter-spacing:.04em;max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lr-card h4{font-size:16px;color:var(--navy);margin:14px 0 4px}
.lr-card p{font-size:12.5px;color:var(--muted);line-height:1.45;margin:0 0 13px;
 display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lr-actions{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px}
.lr-open{text-decoration:none;color:var(--blue);font-weight:800;font-size:12.5px}
.lr-info{border:0;background:#f3f5f8;color:#48556b;border-radius:9px;padding:7px 10px;
 font:700 11px "Heebo";cursor:pointer;transition:.2s}
.lr-info:hover{background:var(--orange);color:#fff}
.lr-empty{display:none;background:#fff;border:1px dashed #ccd4e1;border-radius:18px;padding:36px;text-align:center;color:var(--muted)}

.lr-modal{position:fixed;inset:0;background:rgba(8,18,44,.55);display:none;align-items:center;justify-content:center;
 padding:20px;z-index:9999}
.lr-modal.show{display:flex}
.lr-dialog{width:min(620px,100%);background:#fff;border-radius:20px;box-shadow:0 30px 90px rgba(0,0,0,.28);overflow:hidden;
 animation:pop .22s ease}
.lr-dialog-head{background:var(--navy);color:#fff;padding:21px 24px;display:flex;justify-content:space-between;gap:20px}
.lr-dialog-head h3{margin:0;font-size:21px}
.lr-close{border:0;background:rgba(255,255,255,.12);color:#fff;width:34px;height:34px;border-radius:9px;font-size:20px;cursor:pointer}
.lr-dialog- .lr-dialog-body p{color:#566174;line-height:1.65;margin-top:0}
.lr-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.lr-meta div{background:#f6f8fb;border-radius:12px;padding:12px}
.lr-meta b{display:block;color:var(--navy);font-size:12px;margin-bottom:3px}
.lr-meta span{font-size:13px;color:#687386}
.lr-dialog-foot{padding:0 24px 24px}
.lr-dialog-foot a{display:inline-block;background:var(--orange);color:#fff;text-decoration:none;border-radius:11px;padding:10px 15px;font-weight:800}


.cat-icon i{font-size:14px}
.item-icon i{font-size:18px}
.lr-card:nth-child(4n+1) .item-icon{background:#eef4ff}
.lr-card:nth-child(4n+2) .item-icon{background:#fff6e8;color:#a76100}
.lr-card:nth-child(4n+3) .item-icon{background:#eef9f5;color:#25785d}
.lr-card:nth-child(4n+4) .item-icon{background:#f6f0ff;color:#6b4ba5}


.resource-desc{
  font-size:12.5px;color:var(--muted);line-height:1.5;margin:0 0 13px;
  display:block;overflow:visible;
}
.inline-details{
  border:0;background:transparent;color:var(--blue);padding:0 0 0 5px;
  font:800 12px "Heebo";cursor:pointer;text-decoration:underline;
}
.inline-details:hover{color:var(--orange)}
.details-page{
  position:fixed;inset:0;background:#f7f9fc;z-index:10000;display:none;overflow:auto;
}
.details-page.show{display:block;animation:fadePage .2s ease}
.details-page-inner{max-width:900px;margin:0 auto;padding:42px 20px 70px}
.details-back{
  border:0;background:#fff;color:var(--navy);border:1px solid var(--line);border-radius:12px;
  padding:10px 15px;font:800 13px "Heebo";cursor:pointer;margin-bottom:20px;
}
.details-sheet{
  background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;
  box-shadow:0 18px 45px rgba(15,30,74,.09);
}
.details-sheet h2{margin:0 0 8px;color:var(--navy);font-size:30px}
.details-sheet .details-badge{
  display:inline-block;background:#fff7e8;color:#9a5a00;border-radius:999px;
  padding:6px 10px;font-size:11px;font-weight:800;text-transform:uppercase;margin-bottom:18px;
}
.details-sheet p{font-size:16px;line-height:1.8;color:#4e5a70;margin:0}
.details-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}
.details-meta-grid div{background:#f6f8fb;border-radius:14px;padding:14px}
.details-meta-grid b{display:block;color:var(--navy);font-size:12px;margin-bottom:4px}
.details-meta-grid span{color:#657087;font-size:13px}
@keyframes fadePage{from{opacity:0}to{opacity:1}}
@media(max-width:560px){.details-meta-grid{grid-template-columns:1fr}.details-sheet{padding:22px}}


.lr-sidebar{
  height:max-content !important;
  align-self:start;
  padding-bottom:12px;
}
.lr-cat:last-child{margin-bottom:0}


.title-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1;
}
.title-wrap h4{
  margin:0;
  font-size:16px;
  line-height:1.25;
  color:var(--navy);
}
.lr-card-top{align-items:center}
.lr-actions{justify-content:flex-start}

/* Desktop hover popup */
.lr-card{
  position:relative;
  overflow:visible;
}
.resource-hover-popup{
  position:absolute;
  left:22px;
  right:22px;
  bottom:calc(100% - 10px);
  z-index:200;
  background:#fff;
  border:1px solid #dfe5ee;
  border-radius:16px;
  box-shadow:0 20px 50px rgba(15,30,74,.20);
  opacity:0;
  visibility:hidden;
  transform:translateY(10px) scale(.985);
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
  pointer-events:none;
}
.lr-card:hover .resource-hover-popup,
.lr-card.popup-open .resource-hover-popup{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.popup-caret{
  position:absolute;
  bottom:-8px;
  left:34px;
  width:16px;
  height:16px;
  background:#fff;
  transform:rotate(45deg);
  border-right:1px solid #dfe5ee;
  border-bottom:1px solid #dfe5ee;
}
.popup-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  padding:15px 16px 12px;
  background:linear-gradient(135deg,var(--navy),#183b7a);
  border-radius:16px 16px 0 0;
  color:#fff;
}
.popup-label{
  display:inline-block;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#ffd28a;
  margin-bottom:3px;
}
.popup-head h5{
  margin:0;
  font-size:15px;
  line-height:1.3;
  color:#fff;
}
.popup-close{
  display:none;
  border:0;
  background:rgba(255,255,255,.14);
  color:#fff;
  width:30px;
  height:30px;
  border-radius:8px;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
.popup-
.popup-body p{
  margin:0 0 10px;
  font-size:12.5px;
  line-height:1.58;
  color:#596477;
}
.popup-meta{
  border-top:1px solid #edf0f4;
  padding-top:9px;
  font-size:11.5px;
  color:#738097;
}
.popup-meta strong{color:var(--navy)}

/* Keep popup from being clipped by the resource scroller */
.lr-resource-panel{
  overflow-y:auto;
  overflow-x:visible;
  padding-top:150px;
  margin-top:-150px;
}

/* Mobile/tablet: tap card opens centered/bottom popup instead of hover */
@media (max-width:780px), (hover:none){
  .resource-hover-popup{
    position:fixed;
    left:14px;
    right:14px;
    bottom:14px;
    top:auto;
    z-index:10001;
    max-height:72vh;
    overflow:auto;
    border-radius:18px;
    transform:translateY(24px);
    opacity:0;
    visibility:hidden;
    box-shadow:0 24px 70px rgba(0,0,0,.28);
  }
  .lr-card:hover .resource-hover-popup{
    opacity:0;
    visibility:hidden;
    transform:translateY(24px);
  }
  .lr-card.popup-open .resource-hover-popup{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
  }
  .popup-caret{display:none}
  .popup-close{display:block}
  .popup-head{position:sticky;top:0;z-index:2}
  .lr-card.popup-open:after{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(8,18,44,.52);
    z-index:10000;
  }
  .lr-card.popup-open .resource-hover-popup{z-index:10002}
}

@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes cardIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes pop{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}

@media(max-width:1020px){
 .lr-shell{grid-template-columns:260px 1fr}
 .lr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:780px){
 .lr-head{display:block} .lr-count{display:none}
 .lr-shell{grid-template-columns:1fr}
 .lr-sidebar{height:auto;display:flex;overflow-x:auto;gap:6px;border-radius:15px}
 .lr-side-title{display:none} .lr-cat{width:auto;white-space:nowrap;margin:0}
 .lr-resource-panel{height:620px}
}
@media(max-width:560px){
 .lr-section{padding:42px 13px 60px} .lr-title{font-size:31px}
 .lr-grid{grid-template-columns:1fr} .clear-filter{display:none}
 .subject-head{display:block} .subject-head span{display:block;margin-top:4px}
 .lr-resource-panel{height:650px}
}

/* ===== v8 clean layout overrides ===== */

/* Prevent the resource scroller from overlapping the subject/search section */
.lr-shell{
  align-items:start;
}
.lr-resource-panel{
  position:relative;
  height:640px;
  margin:0 !important;
  padding:0 8px 12px 0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scrollbar-width:thin;
  scrollbar-color:#c8d2e1 #f3f6fa;
}
.lr-resource-panel::-webkit-scrollbar{width:8px}
.lr-resource-panel::-webkit-scrollbar-track{
  background:#f3f6fa;
  border-radius:12px;
}
.lr-resource-panel::-webkit-scrollbar-thumb{
  background:#c8d2e1;
  border-radius:12px;
}
.lr-resource-panel::-webkit-scrollbar-thumb:hover{background:#aebcd0}

.lr-sidebar{
  height:max-content !important;
  align-self:start;
  position:relative;
  top:0;
  margin:0;
}

/* Two-column cards */
.lr-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:15px;
}

/* Title stays next to the icon */
.title-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1;
}
.title-wrap h4{
  margin:0 !important;
  color:var(--navy);
  font-size:16px;
  line-height:1.25;
}
.lr-card-top{align-items:center}

/* Description + More details */
.resource-desc{
  margin:12px 0 10px !important;
  color:var(--muted);
  font-size:12.8px;
  line-height:1.52;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.more-details-link{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--blue);
  text-decoration:none;
  font-size:12.5px;
  font-weight:800;
  margin:0 0 11px;
  cursor:pointer;
}
.more-details-link:hover{
  color:var(--orange);
  text-decoration:underline;
}
.lr-actions{
  margin-top:auto;
  justify-content:flex-start;
}

/* Details modal */
.resource-details-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(8,18,44,.58);
}
.resource-details-modal.show{display:flex}
.resource-details-dialog{
  width:min(680px,100%);
  max-height:86vh;
  overflow:auto;
  background:#fff;
  border-radius:20px;
  box-shadow:0 30px 90px rgba(0,0,0,.28);
  animation:detailsPop .2s ease;
}
.resource-details-head{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  padding:20px 22px;
  background:linear-gradient(135deg,var(--navy),#183b7a);
  color:#fff;
  border-radius:20px 20px 0 0;
}
.resource-details-head h3{
  margin:0;
  font-size:21px;
  line-height:1.3;
}
.resource-details-close{
  flex:0 0 auto;
  border:0;
  width:34px;
  height:34px;
  border-radius:9px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:20px;
  cursor:pointer;
}
.resource-details-
.resource-details-body p{
  margin:0;
  color:#566174;
  font-size:14.5px;
  line-height:1.75;
}
.resource-details-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:18px;
}
.resource-details-meta div{
  background:#f6f8fb;
  border-radius:12px;
  padding:12px;
}
.resource-details-meta b{
  display:block;
  color:var(--navy);
  font-size:11.5px;
  margin-bottom:3px;
}
.resource-details-meta span{
  color:#6a7588;
  font-size:12.5px;
}
@keyframes detailsPop{
  from{opacity:0;transform:translateY(10px) scale(.98)}
  to{opacity:1;transform:none}
}

/* Ensure no hover popup appears */
.resource-hover-popup,
.hover-popup{
  display:none !important;
}

/* Responsive */
@media(max-width:900px){
  .lr-shell{grid-template-columns:240px 1fr}
}
@media(max-width:780px){
  .lr-shell{grid-template-columns:1fr}
  .lr-sidebar{
    display:flex;
    overflow-x:auto;
    gap:6px;
    border-radius:15px;
    padding:10px;
  }
  .lr-side-title{display:none}
  .lr-cat{
    width:auto;
    min-width:max-content;
    margin:0;
  }
  .lr-resource-panel{
    height:620px;
    padding-right:5px !important;
  }
}
@media(max-width:620px){
  .lr-grid{grid-template-columns:1fr !important}
  .lr-resource-panel{height:650px}
  .resource-details-meta{grid-template-columns:1fr}
  .resource-details-modal{padding:10px}
  .resource-details-dialog{max-height:90vh}
}


/* v9: "More details" appears directly after the description text */
.more-details-link{display:none !important}

.resource-desc{
  display:block !important;
  -webkit-line-clamp:unset !important;
  overflow:visible !important;
  margin:12px 0 10px !important;
  color:var(--muted);
  font-size:12.8px;
  line-height:1.52;
}

.more-details-inline{
  display:inline;
  margin-left:4px;
  color:var(--blue);
  text-decoration:none;
  font-size:12.5px;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
}
.more-details-inline:hover{
  color:var(--orange);
  text-decoration:underline;
}

/* Keep card text compact: visually show preview text, then inline More details */
.resource-desc{
  position:relative;
}


/* v10 compact two-sentence preview */
.resource-desc{
  margin:12px 0 10px !important;
  font-size:12.8px;
  line-height:1.55;
  color:var(--muted);
}
.more-details-inline{
  display:inline;
  margin-left:4px;
  font-weight:800;
  color:var(--blue);
  text-decoration:none;
  white-space:nowrap;
}
.more-details-inline:hover{
  color:var(--orange);
  text-decoration:underline;
}


/* ===== v11 alignment + popup fixes ===== */

/* Both sides begin and end on the same visual line */
.lr-shell{
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  gap:20px;
  align-items:start;
}

.lr-sidebar{
  align-self:start;
  height:auto !important;
  margin:0 !important;
}

.lr-resource-panel{
  position:relative;
  margin:0 !important;
  padding:0 8px 0 0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  min-height:0;
  height:auto; /* JS synchronizes this with the sidebar */
}

/* Make the first and last card align neatly inside the scroll area */
.lr-grid{
  margin:0 !important;
  padding:0 0 1px 0 !important;
}
.lr-card:first-child,
.lr-card:nth-child(2){
  margin-top:0 !important;
}

/* Keep the two-column desktop layout */
.lr-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}

/* More details stays directly after the two-sentence preview */
.resource-desc{
  margin:12px 0 10px !important;
  font-size:12.8px;
  line-height:1.52;
  color:var(--muted);
}
.more-details-inline{
  display:inline !important;
  margin-left:4px;
  color:var(--blue);
  text-decoration:none;
  font-size:12.5px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
.more-details-inline:hover{
  color:var(--orange);
  text-decoration:underline;
}

/* Reliable modal */
.resource-details-modal{
  position:fixed !important;
  inset:0 !important;
  z-index:999999 !important;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(8,18,44,.60);
}
.resource-details-modal.show{
  display:flex !important;
}
.resource-details-dialog{
  width:min(700px,100%);
  max-height:86vh;
  overflow:auto;
  background:#fff;
  border-radius:20px;
  box-shadow:0 30px 90px rgba(0,0,0,.30);
}
.resource-details-head{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:20px 22px;
  color:#fff;
  background:linear-gradient(135deg,var(--navy),#183b7a);
}
.resource-details-head h3{
  margin:0;
  font-size:21px;
  line-height:1.3;
}
.resource-details-close{
  border:0;
  width:34px;
  height:34px;
  border-radius:9px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:20px;
  cursor:pointer;
}
.resource-details-
.resource-details-body p{
  margin:0;
  color:#566174;
  font-size:14.5px;
  line-height:1.75;
}
.resource-details-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:18px;
}
.resource-details-meta div{
  background:#f6f8fb;
  border-radius:12px;
  padding:12px;
}
.resource-details-meta b{
  display:block;
  color:var(--navy);
  font-size:11.5px;
  margin-bottom:3px;
}
.resource-details-meta span{
  color:#6a7588;
  font-size:12.5px;
}

/* Mobile */
@media(max-width:900px){
  .lr-shell{grid-template-columns:240px minmax(0,1fr)}
}
@media(max-width:780px){
  .lr-shell{grid-template-columns:1fr}
  .lr-sidebar{
    display:flex;
    overflow-x:auto;
    gap:6px;
    width:100%;
  }
  .lr-resource-panel{
    height:auto !important;
    max-height:650px;
  }
}
@media(max-width:620px){
  .lr-grid{grid-template-columns:1fr !important}
  .resource-details-meta{grid-template-columns:1fr}
  .resource-details-modal{padding:10px}
}


.more-details-inline:hover{
    color:var(--orange);
    text-decoration:underline;
  }
}


/* ===== v13: whole resource card opens popup ===== */
.more-details-inline,
.more-details-link{
  display:none !important;
}

.lr-card{
  cursor:default;
}

@media (hover:hover) and (pointer:fine){
  .lr-card{
    cursor:pointer;
  }
  .lr-card:hover{
    border-color:#b9c8db;
    box-shadow:0 14px 28px rgba(15,30,74,.12);
  }
}

/* Touch devices get a visible interaction cue */
@media (hover:none), (pointer:coarse){
  .lr-card{
    cursor:pointer;
  }
  .lr-card:active{
    transform:scale(.995);
  }
}


/* ===== v14: Access left, More details right ===== */
.lr-card{cursor:default !important}

.lr-actions{
  margin-top:auto;
  display:flex !important;
  align-items:center;
  justify-content:space-between !important;
  gap:14px;
  width:100%;
}

.lr-open{
  flex:0 0 auto;
}

.card-more-details{
  margin-left:auto;
  color:var(--blue);
  text-decoration:none;
  font-size:12.5px;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
  position:relative;
}

.card-more-details:hover{
  color:var(--orange);
  text-decoration:underline;
}

/* Small old-page-style hover information popup */
.link-hover-popup{
  position:absolute;
  right:0;
  bottom:calc(100% + 11px);
  z-index:500;
  width:390px;
  max-width:min(390px,calc(100vw - 40px));
  background:#fff;
  border:1px solid #dce3ed;
  border-radius:14px;
  box-shadow:0 18px 45px rgba(15,30,74,.20);
  opacity:0;
  visibility:hidden;
  transform:translateY(7px);
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
  pointer-events:none;
  white-space:normal;
  text-decoration:none !important;
}

.card-more-details:hover .link-hover-popup,
.card-more-details:focus .link-hover-popup{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.link-hover-popup:after{
  content:"";
  position:absolute;
  right:28px;
  bottom:-7px;
  width:14px;
  height:14px;
  background:#fff;
  border-right:1px solid #dce3ed;
  border-bottom:1px solid #dce3ed;
  transform:rotate(45deg);
}

.link-popup-head{
  padding:12px 14px;
  background:linear-gradient(135deg,var(--navy),#183b7a);
  color:#fff;
  border-radius:14px 14px 0 0;
  font-size:14px;
  font-weight:800;
}

.link-popup-

.link-popup-body p{
  margin:0 0 9px;
  color:#596477;
  font-size:12px;
  line-height:1.55;
  font-weight:500;
}

.link-popup-meta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  padding-top:8px;
  border-top:1px solid #edf0f4;
  color:#748096;
  font-size:11px;
  font-weight:500;
}
.link-popup-meta b{color:var(--navy)}

/* On touch/mobile don't show CSS hover box; tap opens full modal */
@media (hover:none), (pointer:coarse), (max-width:780px){
  .link-hover-popup{display:none !important}
  .lr-actions{gap:10px}
  .card-more-details{font-size:12px}
}


/* Full description on More details mouse hover */
.link-hover-popup{
  width:460px !important;
  max-width:min(460px,calc(100vw - 40px)) !important;
  max-height:360px;
  overflow-y:auto;
  z-index:9999 !important;
}

.link-popup-body p{
  display:block !important;
  -webkit-line-clamp:unset !important;
  overflow:visible !important;
  white-space:normal !important;
  text-overflow:clip !important;
  max-height:none !important;
  margin:0 0 12px !important;
  line-height:1.6 !important;
}

/* Keep hover popup available while pointer moves over it */
.card-more-details .link-hover-popup{
  pointer-events:auto !important;
}

@media (hover:hover) and (pointer:fine){
  .card-more-details:hover .link-hover-popup,
  .card-more-details:focus-visible .link-hover-popup,
  .link-hover-popup:hover{
    opacity:1 !important;
    visibility:visible !important;
    transform:translateY(0) !important;
    display:block !important;
  }
}

/* Mobile continues to use click/tap details modal */
@media (hover:none), (pointer:coarse), (max-width:780px){
  .link-hover-popup{
    display:none !important;
  }
}


/* ===== v16: Professional floating hover details ===== */

/* Hide the older popup nested inside the link */
.card-more-details .link-hover-popup{
  display:none !important;
}

.resource-hover-flyout{
  position:fixed;
  z-index:999999;
  width:440px;
  max-width:calc(100vw - 28px);
  background:#ffffff;
  border:1px solid #dfe6ef;
  border-radius:16px;
  box-shadow:0 18px 50px rgba(15,30,74,.20);
  opacity:0;
  visibility:hidden;
  transform:translateY(6px);
  transition:opacity .16s ease, transform .16s ease, visibility .16s ease;
  pointer-events:none;
  overflow:hidden;
}

.resource-hover-flyout.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  pointer-events:auto;
}

.hover-flyout-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  background:#0f1e4a;
  color:#fff;
}

.hover-flyout-title{
  min-width:0;
  font-size:15px;
  line-height:1.3;
  font-weight:800;
}

.hover-flyout-badge{
  flex:0 0 auto;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.hover-flyout-

.hover-flyout-desc{
  margin:0;
  color:#536174;
  font-size:12.7px;
  line-height:1.65;
}

.hover-flyout-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:14px;
  padding-top:13px;
  border-top:1px solid #edf1f5;
}

.hover-flyout-meta-item{
  min-width:0;
  padding:9px 10px;
  background:#f7f9fc;
  border:1px solid #e7ebf1;
  border-radius:10px;
}

.hover-flyout-meta-item b{
  display:block;
  margin-bottom:3px;
  color:#0f1e4a;
  font-size:10.5px;
  letter-spacing:.02em;
}

.hover-flyout-meta-item span{
  display:block;
  color:#6a7688;
  font-size:11.5px;
  line-height:1.35;
}

@media(max-width:620px){
  .resource-hover-flyout{display:none !important}
}

/* refactor-index-57.css */
/* Keep the Library Resources subject filter independent from the older
   Browse-by-Subject .subject-cloud styles used elsewhere on the homepage. */
#library-resources .subject-cloud{
  display:block !important;
  grid-template-columns:none !important;
  gap:0 !important;
  width:100% !important;
  padding:20px 22px !important;
}

#library-resources .subject-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:20px !important;
  width:100% !important;
  margin:0 0 15px !important;
}

#library-resources .subject-head h3{
  margin:0 !important;
  flex:0 0 auto !important;
}

#library-resources .subject-head span{
  margin-left:auto !important;
  text-align:right !important;
}

#library-resources .subject-chips{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:9px !important;
  width:100% !important;
}

#library-resources .subject-chip{
  width:auto !important;
  min-width:0 !important;
  margin:0 !important;
  white-space:nowrap !important;
}

@media (max-width:760px){
  #library-resources .subject-head{
    display:block !important;
  }
  #library-resources .subject-head span{
    display:block !important;
    margin:5px 0 0 !important;
    text-align:left !important;
  }
  #library-resources .subject-chips{
    gap:8px !important;
  }
}

@media (max-width:520px){
  #library-resources .subject-cloud{
    padding:17px 16px !important;
  }
  #library-resources .subject-chip{
    white-space:normal !important;
  }
}

/* refactor-index-58.css */
/* =========================================================
   LIBRARY RESOURCES — MORE DETAILS POPUP FIX
   Click opens a centered modal; hover flyout is hidden while open.
   ========================================================= */

#resourceDetailsModal{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483000 !important;
  display:none !important;
  align-items:center !important;
  justify-content:center !important;
  padding:24px !important;
  background:rgba(5,15,38,.68) !important;
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}

#resourceDetailsModal.show{
  display:flex !important;
}

#resourceDetailsModal .resource-details-dialog{
  position:relative !important;
  width:min(700px,calc(100vw - 36px)) !important;
  max-height:82vh !important;
  overflow:auto !important;
  margin:0 !important;
  border-radius:20px !important;
  background:#fff !important;
  box-shadow:0 30px 90px rgba(0,0,0,.32) !important;
  z-index:1 !important;
}

#resourceDetailsModal .resource-details-head{
  position:sticky !important;
  top:0 !important;
  z-index:3 !important;
}

body.resource-details-open{
  overflow:hidden !important;
}

/* The floating mouse-hover box must not overlap the click modal */
body.resource-details-open #resourceHoverFlyout,
body.resource-details-open .link-hover-popup{
  display:none !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

/* Remove the older popup nested inside More details.
   The professional floating flyout remains for mouse hover. */
#library-resources .card-more-details .link-hover-popup{
  display:none !important;
}

@media(max-width:620px){
  #resourceDetailsModal{
    padding:12px !important;
  }
  #resourceDetailsModal .resource-details-dialog{
    width:100% !important;
    max-height:88vh !important;
  }
}

/* refactor-index-59.css */
/* More Details modal: add comfortable outer margin on all screen sizes */
#resourceDetailsModal{
  box-sizing:border-box !important;
  padding:32px !important;
}

#resourceDetailsModal .resource-details-dialog{
  width:min(700px, calc(100vw - 64px)) !important;
  max-height:calc(100vh - 64px) !important;
  margin:auto !important;
}

@media(max-width:760px){
  #resourceDetailsModal{
    padding:20px !important;
  }
  #resourceDetailsModal .resource-details-dialog{
    width:calc(100vw - 40px) !important;
    max-height:calc(100vh - 40px) !important;
  }
}

@media(max-width:480px){
  #resourceDetailsModal{
    padding:14px !important;
  }
  #resourceDetailsModal .resource-details-dialog{
    width:calc(100vw - 28px) !important;
    max-height:calc(100vh - 28px) !important;
    border-radius:16px !important;
  }
}

/* refactor-index-60.css */
/* Final popup sizing to match the reference screenshot:
   fixed visual margin around the modal, centered horizontally/vertically. */
#resourceDetailsModal{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  padding:18px 54px !important;
  box-sizing:border-box !important;
  display:none !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:auto !important;
}

#resourceDetailsModal.show{
  display:flex !important;
}

#resourceDetailsModal .resource-details-dialog{
  position:relative !important;
  flex:none !important;
  width:min(700px, calc(100vw - 108px)) !important;
  max-width:700px !important;
  max-height:calc(100vh - 36px) !important;
  margin:auto !important;
  box-sizing:border-box !important;
  overflow:auto !important;
}

/* Keep content inset like the reference image */
#resourceDetailsModal .resource-details-body{
  padding:22px !important;
}

#resourceDetailsModal .resource-details-head{
  padding-left:22px !important;
  padding-right:22px !important;
}

@media(max-width:760px){
  #resourceDetailsModal{
    padding:18px 24px !important;
  }
  #resourceDetailsModal .resource-details-dialog{
    width:calc(100vw - 48px) !important;
    max-height:calc(100vh - 36px) !important;
  }
}

@media(max-width:480px){
  #resourceDetailsModal{
    padding:14px !important;
  }
  #resourceDetailsModal .resource-details-dialog{
    width:calc(100vw - 28px) !important;
    max-height:calc(100vh - 28px) !important;
  }
}

/* refactor-index-61.css */
/* Library Blog: library name replaces the old category label */
#blog .image-blog-card,
#blog .blog-image-strip-wrap{
  overflow:hidden !important;
}

#blog .blog-library-name-label{
  font-size:11px !important;
  line-height:1.25 !important;
  font-weight:700 !important;
  color:#d98600 !important;
  letter-spacing:.1px !important;
  text-transform:none !important;
  white-space:normal !important;
}

/* refactor-index-62.css */
/* Library Chronicles */
#blog .chronicle-view-details{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:max-content;
  margin-top:14px;
  padding:8px 13px;
  border-radius:9px;
  background:#0f1e4a;
  color:#fff !important;
  font-size:11.5px;
  font-weight:800;
  text-decoration:none;
  transition:.2s ease;
}
#blog .chronicle-view-details:hover{
  background:#e58a00;
  transform:translateY(-1px);
}
#blog .chronicles-view-all{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 13px;
  border:1px solid #dbe2eb;
  border-radius:9px;
  background:#fff;
  color:#0f1e4a;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}
#blog .chronicles-view-all:hover{
  border-color:#e58a00;
  color:#e58a00;
}

/* refactor-index-63.css */
/* ===== Library Chronicles: real Word-file content ===== */
.lc-real-section{background:#fff}
.lc-real-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.lc-real-card{
  overflow:hidden;
  border:1px solid #e2e7ef;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,30,74,.065);
  transition:transform .22s ease,box-shadow .22s ease;
}
.lc-real-card:hover{
  transform:translateY(-4px);
  box-shadow:0 15px 34px rgba(15,30,74,.11);
}
.lc-real-image{display:block;height:220px;overflow:hidden;background:#eef2f6}
.lc-real-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.lc-real-card:hover .lc-real-image img{transform:scale(1.035)}
.lc-real-body{padding:18px}
.lc-real-campus{
  display:inline-block;margin-bottom:7px;color:#e58a00;
  font-size:10.5px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;
}
.lc-real-body h3{
  margin:0 0 10px;color:#0f1e4a;font-size:18px;line-height:1.35;
}
.lc-real-body p{
  margin:0 0 12px;color:#657185;font-size:13px;line-height:1.62;
}
.lc-real-meta{color:#8b95a5;font-size:10.5px;font-weight:700}
.lc-real-meta i{color:#e58a00;margin-right:5px}
.lc-real-details{
  margin-top:14px;padding:9px 14px;border:0;border-radius:9px;
  background:#0f1e4a;color:#fff;font-size:11.5px;font-weight:800;cursor:pointer;
}
.lc-real-details:hover{background:#e58a00}

/* Popup */
.lc-article-modal{
  position:fixed;inset:0;z-index:2147482000;display:none;
  align-items:center;justify-content:center;padding:28px;
}
.lc-article-modal.show{display:flex}
.lc-article-backdrop{position:absolute;inset:0;background:rgba(5,15,38,.75);backdrop-filter:blur(5px)}
.lc-article-dialog{
  position:relative;z-index:2;width:min(900px,calc(100vw - 56px));max-height:90vh;
  overflow:auto;background:#fff;border-radius:20px;box-shadow:0 28px 80px rgba(0,0,0,.35);
}
.lc-article-close{
  position:absolute;z-index:5;right:14px;top:14px;width:40px;height:40px;
  border:0;border-radius:50%;background:rgba(15,30,74,.92);color:#fff;cursor:pointer;
}
.lc-article-banner{height:330px;background:#0f1e4a}
.lc-article-banner img{width:100%;height:100%;object-fit:cover;display:block}
.lc-article-content{padding:26px 30px 30px}
.lc-article-campus{color:#e58a00;font-size:10.5px;font-weight:900;text-transform:uppercase}
.lc-article-content h2{margin:7px 0 8px;color:#0f1e4a;font-size:28px;line-height:1.25}
.lc-article-date{margin-bottom:20px;color:#8b95a5;font-size:11px;font-weight:700}
.lc-article-content p{margin:0 0 15px;color:#566174;font-size:14px;line-height:1.75}
.lc-article-link{
  display:inline-flex;align-items:center;gap:8px;margin-top:7px;padding:10px 14px;
  border-radius:9px;background:#f1f4f8;color:#0f1e4a!important;font-size:11.5px;font-weight:800;
}
body.lc-modal-open{overflow:hidden}
@media(max-width:900px){.lc-real-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){
 .lc-real-grid{grid-template-columns:1fr}
 .lc-article-modal{padding:14px}
 .lc-article-dialog{width:calc(100vw - 28px)}
 .lc-article-banner{height:220px}
 .lc-article-content{padding:21px}
 .lc-article-content h2{font-size:23px}
}

/* refactor-index-64.css */
#blog .lc-real-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
@media(max-width:900px){
  #blog .lc-real-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
  #blog .lc-real-grid{grid-template-columns:1fr!important}
}

/* refactor-index-65.css */
/* =========================================================
   HOME — RECENT 9 LIBRARY CHRONICLES CAROUSEL
   3 visible per slide on desktop
   ========================================================= */
#blog .lc-home-carousel-controls{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  margin:0 0 15px;
}
#blog .lc-home-carousel-btn{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid #dbe2eb;
  border-radius:50%;
  background:#fff;
  color:#0f1e4a;
  cursor:pointer;
  box-shadow:0 5px 14px rgba(15,30,74,.06);
  transition:.2s ease;
}
#blog .lc-home-carousel-btn:hover{
  background:#0f1e4a;
  border-color:#0f1e4a;
  color:#fff;
}
#blog .lc-home-carousel-dots{
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 3px;
}
#blog .lc-home-carousel-dot{
  width:7px;
  height:7px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#c6ced9;
  cursor:pointer;
  transition:.2s ease;
}
#blog .lc-home-carousel-dot.active{
  width:20px;
  border-radius:999px;
  background:#e58a00;
}
#blog .lc-home-carousel-viewport{
  overflow:hidden;
  width:100%;
}
#blog .lc-real-grid{
  display:flex!important;
  gap:22px!important;
  grid-template-columns:none!important;
  transition:transform .42s cubic-bezier(.22,.61,.36,1);
  will-change:transform;
}
#blog .lc-real-card{
  flex:0 0 calc((100% - 44px)/3);
  min-width:0;
}
#blog .lc-real-card .lc-real-body{
  height:100%;
}
#blog .lc-real-card h3{
  min-height:3.8em;
}
#blog .lc-real-card p{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

@media(max-width:900px){
  #blog .lc-real-card{
    flex-basis:calc((100% - 18px)/2);
  }
  #blog .lc-real-grid{gap:18px!important}
}
@media(max-width:620px){
  #blog .lc-home-carousel-controls{
    justify-content:center;
    margin-top:4px;
  }
  #blog .lc-real-card{
    flex-basis:100%;
  }
  #blog .lc-real-grid{gap:14px!important}
}

/* refactor-index-66.css */
/* ===== Library Chronicle View Details popup ===== */
#lcArticleModal{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
#lcArticleModal.show{display:flex}
.lc-article-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(4,11,28,.72);
  backdrop-filter:blur(5px);
}
.lc-article-modal-dialog{
  position:relative;
  z-index:2;
  width:min(940px,calc(100vw - 48px));
  max-height:calc(100vh - 48px);
  overflow:auto;
  background:#fff;
  border-radius:18px;
  box-shadow:0 28px 90px rgba(0,0,0,.28);
}
.lc-article-close{
  position:sticky;
  top:12px;
  float:right;
  z-index:5;
  width:38px;
  height:38px;
  margin:12px 12px -50px 0;
  border:0;
  border-radius:50%;
  background:#0f1e4a;
  color:#fff;
  cursor:pointer;
}
.lc-article-close:hover{background:#e58a00}
.lc-article-modal-content{
  padding:30px;
}
.lc-article-campus{
  display:inline-flex;
  align-items:center;
  margin-bottom:8px;
  padding:6px 10px;
  border-radius:999px;
  background:#fff5e5;
  color:#cf7500;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.045em;
}
#lcArticleTitle{
  margin:0 52px 8px 0;
  color:#0f1e4a;
  font-size:29px;
  line-height:1.3;
}
.lc-article-date{
  margin-bottom:18px;
  color:#8792a4;
  font-size:12px;
  font-weight:750;
}
.lc-article-banner{
  width:100%;
  height:410px;
  margin-bottom:22px;
  overflow:hidden;
  border-radius:14px;
  background:#eef2f6;
}
.lc-article-banner img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.lc-article-details{
  color:#566174;
  font-size:14px;
  line-height:1.78;
}
.lc-article-details p{margin:0 0 15px}
.lc-article-gallery-block{margin-top:24px}
.lc-article-gallery-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:11px;
}
.lc-article-gallery-head h3{
  margin:0;
  color:#0f1e4a;
  font-size:17px;
}
.lc-article-gallery-head span{
  color:#8a95a6;
  font-size:10.5px;
  font-weight:800;
}
.lc-article-gallery{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}
.lc-article-gallery button{
  position:relative;
  border:0;
  padding:0;
  border-radius:9px;
  overflow:hidden;
  aspect-ratio:4/3;
  background:#eef2f6;
  cursor:pointer;
}
.lc-article-gallery img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.lc-article-gallery button:after{
  content:"\f00e";
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:rgba(9,20,51,.44);
  color:#fff;
  font-size:19px;
  opacity:0;
  transition:.2s ease;
}
.lc-article-gallery button:hover:after{opacity:1}
.lc-article-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:24px;
}
.lc-article-page-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 15px;
  border-radius:999px;
  background:#0f1e4a;
  color:#fff!important;
  text-decoration:none!important;
  font-size:11.5px;
  font-weight:900;
}
.lc-article-page-link:hover{background:#e58a00}
body.lc-modal-open{overflow:hidden}

@media(max-width:700px){
  #lcArticleModal{padding:10px}
  .lc-article-modal-dialog{
    width:calc(100vw - 20px);
    max-height:calc(100vh - 20px);
  }
  .lc-article-modal-content{padding:21px}
  #lcArticleTitle{font-size:23px}
  .lc-article-banner{height:250px}
  .lc-article-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* refactor-index-67.css */
/* Home Chronicle card footer alignment */
#blog .lc-real-card{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
}
#blog .lc-real-body{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
}
#blog .lc-real-meta{
  margin-top:auto!important;
  padding-top:12px!important;
}
#blog .lc-real-details{
  margin-top:12px!important;
  align-self:flex-start!important;
}

/* refactor-index-68.css */
/* Library Chronicles: Published date + View details on the same row */
#blog .lc-real-card .lc-real-footer-row{
  margin-top:auto!important;
  padding-top:12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
}
#blog .lc-real-card .lc-real-footer-row .lc-real-meta,
#blog .lc-real-card .lc-real-footer-row .lc-real-details{
  margin-top:0!important;
  padding-top:0!important;
}
#blog .lc-real-card .lc-real-footer-row .lc-real-details{
  padding:9px 14px!important;
  flex:0 0 auto!important;
}
#blog .lc-real-card .lc-real-footer-row .lc-real-meta{
  flex:1 1 auto!important;
}
