/* Shared footer treatment for all public development routes. */
.news-footer,.help-footer,.info-footer,.lib-footer,.result-search>footer{
  min-height:238px!important;
  padding:30px max(32px,calc((100% - 1320px)/2)) 18px!important;
  background-color:#004f3e!important;
  color:#e7f8f2!important;
  position:relative;
  overflow:hidden;
}
.news-footer:before,.help-footer:before,.info-footer:before,.lib-footer:before,.result-search>footer:before{
  width:285px!important;
  height:220px!important;
  background-size:285px auto!important;
  background-position:left bottom!important;
  opacity:.18!important;
  pointer-events:none;
}
.news-footer:after,.help-footer:after,.info-footer:after,.lib-footer:after,.result-search>footer:after{
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  width:190px;
  height:210px;
  background:url('/opac-dev/template/unissula-sso/news-assets/images/leaves-right.webp') right bottom/190px auto no-repeat;
  opacity:.28;
  pointer-events:none;
}
.news-footer .foot-block,.help-footer .foot-block,.info-footer .foot-block,.lib-footer .foot-block,.result-search>footer .container{
  position:relative;
  z-index:1;
}
.news-footer .foot-brand,.help-footer .foot-brand,.info-footer .foot-brand,.lib-footer .foot-brand{
  display:block!important;
  position:relative;
  min-height:176px;
  padding-left:238px;
  gap:0!important;
}
.news-footer .foot-brand>img,.help-footer .foot-brand>img,.info-footer .foot-brand>img,.lib-footer .foot-brand>img{
  width:145px!important;
  height:42px!important;
  max-width:145px!important;
  object-fit:contain!important;
  object-position:left top!important;
  flex:0 0 145px!important;
}
.news-footer .foot-brand>img,.help-footer .foot-brand>img,.info-footer .foot-brand>img,.lib-footer .foot-brand>img,
.result-search>footer .col-md-3>svg{display:none!important}
.footer-logo-set{display:block;position:absolute;inset:0 auto 0 0;width:222px;max-width:222px;margin:0;z-index:2;pointer-events:none}
.footer-logo-set__secondary{display:flex;align-items:center;justify-content:flex-end;gap:6px;width:100%;position:absolute;right:0;bottom:46px;min-height:42px}
.footer-logo{display:block;object-fit:contain;object-position:center}
.footer-logo-set .footer-logo{flex:0 0 auto!important;margin:0!important}
.footer-logo-set .footer-logo--unissula{width:204px!important;height:44px!important;position:absolute;top:-4px;left:0;padding:6px 10px;background:#fff;border-radius:7px;box-sizing:border-box}
.footer-logo-set .footer-logo--birrul{width:58px!important;height:35px!important}
.footer-logo-set .footer-logo--budai{width:38px!important;height:38px!important}
.footer-logo-set .footer-logo--unggul{width:62px!important;height:38px!important}
.result-search>footer .footer-logo-set{margin-bottom:12px}
.result-search>footer .footer-logo-set img{filter:none!important}
.news-footer .foot-brand>div,.help-footer .foot-brand>div,.info-footer .foot-brand>div,.lib-footer .foot-brand>div{min-width:0}
.news-footer .foot-brand>div:last-child,.help-footer .foot-brand>div:last-child,.info-footer .foot-brand>div:last-child,.lib-footer .foot-brand>div:last-child{position:relative;z-index:1}
.news-footer .foot-bottom,.help-footer .foot-bottom,.info-footer .foot-bottom,.lib-footer .foot-bottom{position:relative;z-index:1}
.result-search>footer .container{max-width:1320px!important}
@media(max-width:800px){
  .news-footer,.help-footer,.info-footer,.lib-footer,.result-search>footer{min-height:0!important;padding:28px 22px 20px!important}
  .news-footer:before,.help-footer:before,.info-footer:before,.lib-footer:before,.result-search>footer:before{width:210px!important;height:170px!important;background-size:210px auto!important}
  .news-footer:after,.help-footer:after,.info-footer:after,.lib-footer:after,.result-search>footer:after{width:130px;height:145px;background-size:130px auto}
  .news-footer .foot-brand,.help-footer .foot-brand,.info-footer .foot-brand,.lib-footer .foot-brand{min-height:164px;padding-left:0!important}
  .footer-logo-set{inset:0 0 auto 0;width:100%;max-width:none;height:104px}.footer-logo-set .footer-logo--unissula{width:174px!important;height:37px!important;top:-2px;padding:5px 8px}.footer-logo-set .footer-logo--birrul{width:52px!important;height:32px!important}.footer-logo-set .footer-logo--budai{width:34px!important;height:34px!important}.footer-logo-set .footer-logo--unggul{width:55px!important;height:34px!important}
}

/* Normalize the legacy catalog footer to the shared public-page footer. */
.result-search>footer .container{max-width:1320px!important;padding:0!important}
.result-search>footer .row{display:grid!important;grid-template-columns:1.1fr 1fr 1.2fr;gap:55px;margin:0!important;padding:0!important}
.result-search>footer .row>[class*="col-"]{width:auto!important;max-width:none!important;padding:0!important;margin:0!important}
.result-search>footer .row>.col-md-3{position:relative;min-height:190px;padding-left:170px!important}
.result-search>footer .row>.col-md-3>svg{display:none!important}
.result-search>footer .row>.col-md-3>.footer-logo-set{position:absolute;inset:0 auto auto 0;width:150px;max-width:150px;height:150px;margin:0}
.result-search>footer .row>.col-md-3>.mb-4{margin:0 0 10px!important}
.result-search>footer .row h4{margin:0 0 10px!important}
.result-search>footer>hr{border:0;border-top:1px solid rgba(255,255,255,.21);margin:18px 0 10px}
.result-search>footer .container>hr+div{display:flex;gap:18px;font-size:12px;color:#bed8d0}
.result-search>footer .container>hr+div p{margin:0;flex:1}
.result-search>footer .container>hr+div>div{flex:1;text-align:right}
@media(max-width:800px){
  .result-search>footer .row{display:block!important}
  .result-search>footer .row>.col-md-3{min-height:150px;padding-left:0!important;margin-bottom:22px!important}
  .result-search>footer .row>.col-md-5,.result-search>footer .row>.col-md-4{margin-bottom:22px!important}
  .result-search>footer .container>hr+div{display:block}
  .result-search>footer .container>hr+div>div{text-align:left;margin-top:8px}
}

/* Footer uses a single official UNISSULA crest. */
.news-footer .foot-brand,.help-footer .foot-brand,.info-footer .foot-brand,.lib-footer .foot-brand{padding-left:170px}
.footer-logo-set{width:150px;max-width:150px}
.footer-logo-set__secondary{display:none!important}
.footer-logo-set .footer-logo--unissula-footer{width:138px!important;height:138px!important;position:absolute;top:0;left:0;padding:0;background:transparent;border-radius:0;object-fit:contain}
.foot-links,.result-search>footer .row>.col-md-3>ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px;padding:0;list-style:none}
.foot-links a,.result-search>footer .row>.col-md-3>ul a{display:flex;align-items:center;gap:8px;min-height:34px;padding:7px 10px;border:1px solid rgba(255,255,255,.16);border-radius:9px;color:#e7f8f2;text-decoration:none;line-height:1.2;transition:background .2s ease,border-color .2s ease,transform .2s ease}
.foot-links a:hover,.result-search>footer .row>.col-md-3>ul a:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.36);transform:translateY(-1px)}
.foot-links a::first-letter,.result-search>footer .row>.col-md-3>ul a::first-letter{color:#f4c53d}
.result-search>footer .row>.col-md-3>ul{margin:14px 0 0!important}
.result-search>footer .row>.col-md-3>ul li{margin:0!important}
@media(max-width:800px){
  .news-footer .foot-brand,.help-footer .foot-brand,.info-footer .foot-brand,.lib-footer .foot-brand{padding-left:0!important;min-height:170px!important}
  .footer-logo-set{width:150px;max-width:150px;height:150px}
  .footer-logo-set .footer-logo--unissula-footer{width:128px!important;height:128px!important}
  .result-search>footer .row>.col-md-3{min-height:170px;padding-left:0!important}
  .result-search>footer .row>.col-md-3>.footer-logo-set{width:150px;max-width:150px;height:150px}
  .foot-links,.result-search>footer .row>.col-md-3>ul{grid-template-columns:1fr;gap:7px}
}

/* Refined public footer: compact identity block, balanced columns, and a
   clearer search action for the catalog route. */
.news-footer,.help-footer,.info-footer,.lib-footer,.result-search>footer{
  min-height:0!important;
  padding:42px max(28px,calc((100% - 1320px)/2)) 20px!important;
  border-top:4px solid #f4c53d;
  background:linear-gradient(135deg,#071a3d 0%,#0a2947 58%,#07553e 100%)!important;
  color:#f2fbf8!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,.95fr);
  gap:28px;
  align-items:start;
}
.news-footer .foot-brand,.help-footer .foot-brand,.info-footer .foot-brand,.lib-footer .foot-brand{
  display:flex!important;
  align-items:flex-start;
  min-height:0!important;
  padding-left:0!important;
  gap:18px!important;
}
.news-footer .footer-logo-set,.help-footer .footer-logo-set,.info-footer .footer-logo-set,.lib-footer .footer-logo-set{
  position:static!important;
  width:88px!important;
  max-width:88px!important;
  height:88px!important;
  flex:0 0 88px!important;
  display:flex!important;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.18);
  border-radius:20px;
  background:rgba(255,255,255,.1);
  backdrop-filter:blur(8px);
}
.footer-logo-set .footer-logo--unissula-footer{
  position:static!important;
  width:74px!important;
  height:74px!important;
  object-fit:contain!important;
}
.news-footer .foot-brand>div:last-child,.help-footer .foot-brand>div:last-child,.info-footer .foot-brand>div:last-child,.lib-footer .foot-brand>div:last-child{
  flex:1;
}
.news-footer .foot-block h3,.help-footer .foot-block h3,.info-footer .foot-block h3,.lib-footer .foot-block h3{
  margin-bottom:9px!important;
  color:#fff;
  font-size:15px;
  letter-spacing:-.01em;
}
.news-footer .foot-block p,.help-footer .foot-block p,.info-footer .foot-block p,.lib-footer .foot-block p{
  color:#c7deda;
  font-size:13px;
  line-height:1.6;
}
.foot-links,.result-search>footer .row>.col-md-3>ul{
  gap:6px!important;
  margin-top:16px!important;
}
.foot-links a,.result-search>footer .row>.col-md-3>ul a{
  min-height:32px!important;
  padding:6px 9px!important;
  border-color:rgba(255,255,255,.13)!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.045);
  color:#dcefeb!important;
  font-size:12px;
}
.foot-links a:hover,.result-search>footer .row>.col-md-3>ul a:hover{
  background:rgba(255,255,255,.13)!important;
  border-color:rgba(244,197,61,.5)!important;
}
.foot-search{
  height:44px!important;
  margin:13px 0 0!important;
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px!important;
  background:rgba(255,255,255,.97)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.14);
}
.foot-search input{font-size:13px;color:#102a43}
.foot-search button{
  min-width:72px;
  background:#f4c53d!important;
  color:#071a3d;
  font-weight:700;
}
.news-footer .foot-bottom,.help-footer .foot-bottom,.info-footer .foot-bottom,.lib-footer .foot-bottom{
  grid-column:1 / -1;
  margin-top:28px!important;
  padding-top:15px!important;
  border-top-color:rgba(255,255,255,.18)!important;
  color:#b8d2cc!important;
  font-size:11px;
}
@media(max-width:800px){
  .news-footer,.help-footer,.info-footer,.lib-footer,.result-search>footer{display:block!important;padding:32px 20px 18px!important}
  .news-footer .foot-brand,.help-footer .foot-brand,.info-footer .foot-brand,.lib-footer .foot-brand{display:flex!important;min-height:0!important;gap:14px!important;margin-bottom:28px!important}
  .news-footer .footer-logo-set,.help-footer .footer-logo-set,.info-footer .footer-logo-set,.lib-footer .footer-logo-set{width:68px!important;max-width:68px!important;height:68px!important;flex-basis:68px!important;border-radius:16px}
  .footer-logo-set .footer-logo--unissula-footer{width:56px!important;height:56px!important}
  .news-footer .foot-bottom,.help-footer .foot-bottom,.info-footer .foot-bottom,.lib-footer .foot-bottom{display:block!important}
  .news-footer .foot-bottom span,.help-footer .foot-bottom span,.info-footer .foot-bottom span,.lib-footer .foot-bottom span{display:block;margin-top:5px}
}
