/* University of Phayao shared footer */
#footer.up-site-footer {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 48px 0 0 !important;
  border-top: 4px solid #d6ae45;
  background:
    radial-gradient(circle at 88% 8%, rgba(173, 101, 196, .18), transparent 30%),
    radial-gradient(circle at 8% 90%, rgba(214, 174, 69, .10), transparent 28%),
    linear-gradient(145deg, #291f2f 0%, #3e3046 52%, #251c2b 100%) !important;
  color: rgba(255, 255, 255, .84);
  font-family: 'Athiti', sans-serif;
}
#footer.up-site-footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 220px;
  height: 4px;
  transform: translateX(-50%);
  background: #f4d374;
  box-shadow: 0 0 25px rgba(244, 211, 116, .7);
}
#footer.up-site-footer .container { position: relative; z-index: 1; }
#footer.up-site-footer > .container > .row { display: flex; flex-wrap: wrap; }
#footer.up-site-footer > .container > .row > .col-sm-4 {
  position: relative;
  padding: 2px 30px 26px;
}
#footer.up-site-footer > .container > .row > .col-sm-4 + .col-sm-4:before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 24px;
  left: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.16) 15%, rgba(255,255,255,.16) 85%, transparent);
}
#footer.up-site-footer h4.text-warning {
  position: relative;
  margin: 0 0 15px;
  padding: 0 0 11px;
  color: #fff !important;
  font-family: 'Athiti', sans-serif !important;
  font-size: 21px !important;
  font-weight: 600;
  line-height: 1.3;
}
#footer.up-site-footer h4.text-warning:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 2px;
  border-radius: 2px;
  background: #d6ae45;
}
#footer.up-site-footer h4.text-warning > .fa {
  width: 34px;
  height: 34px;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214,174,69,.38);
  border-radius: 10px;
  background: rgba(214,174,69,.12);
  color: #f0cc69;
  font-size: 15px;
  vertical-align: middle;
}
#footer.up-site-footer ul.list-unstyled { margin: 0 0 24px; }
#footer.up-site-footer ul.list-unstyled > li {
  min-height: 42px;
  padding: 9px 4px !important;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.09) !important;
  font-size: 16px;
  transition: padding-left .2s ease, background .2s ease;
}
#footer.up-site-footer ul.list-unstyled > li:hover {
  padding-left: 9px !important;
  background: rgba(255,255,255,.035);
}
#footer.up-site-footer ul.list-unstyled > li > .fa {
  width: 26px;
  flex: 0 0 26px;
  color: #e2bd59 !important;
  font-size: 14px;
  text-align: center;
}
#footer.up-site-footer a { color: rgba(255,255,255,.88) !important; transition: color .2s ease; }
#footer.up-site-footer a:hover,
#footer.up-site-footer a:focus { color: #f3d274 !important; text-decoration: none; }
#footer.up-site-footer br + h4.text-warning { margin-top: 4px; }
#footer.up-site-footer > .container > .row > .col-sm-4:nth-child(3) {
  padding: 24px 26px 26px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  box-shadow: 0 18px 45px rgba(10,5,13,.15);
}
#footer.up-site-footer > .container > .row > .col-sm-4:nth-child(3) > img {
  width: auto;
  max-width: 245px;
  max-height: 72px;
  margin: 0 0 18px;
  object-fit: contain;
}
#footer.up-site-footer > .container > .row > .col-sm-4:nth-child(3) > br { display: none; }
#footer.up-site-footer > .container > .row > .col-sm-4:nth-child(3) p {
  margin: 0 0 15px;
  color: rgba(255,255,255,.76);
  font-size: 16px !important;
  line-height: 1.72;
}
#footer.up-site-footer > .container > .row > .col-sm-4:nth-child(3) p > a.text-warning {
  color: #f0cc69 !important;
  font-weight: 600;
}
#footer.up-site-footer .btn.btn-warning {
  height: 43px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #e6c45f !important;
  border-radius: 12px;
  background: linear-gradient(135deg, #c99c30, #e4c45f) !important;
  color: #342638 !important;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
#footer.up-site-footer .btn.btn-warning:hover,
#footer.up-site-footer .btn.btn-warning:focus {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #dab044, #f0d478) !important;
  color: #2b202f !important;
}
#footer.up-site-footer > .container > .row > .col-sm-4:nth-child(3) > div.mt-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#footer.up-site-footer > .container > .row > .col-sm-4:nth-child(3) > div.mt-3 > a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
#footer.up-site-footer > .container > .row > .col-sm-4:nth-child(3) > div.mt-3 > a:hover {
  transform: translateY(-3px);
  border-color: rgba(240,204,105,.48);
  background: rgba(240,204,105,.14);
}
#footer.up-site-footer > .container > .row > .col-sm-4:nth-child(3) > div.mt-3 img {
  width: 22px !important;
  height: 22px;
  object-fit: contain;
}
#footer.up-site-footer > .container > .text-center {
  margin-top: 22px !important;
  padding: 17px 0 18px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,.11) !important;
  color: rgba(255,255,255,.58);
}
#footer.up-site-footer > .container > .text-center small { font-size: 14px; }
#footer.up-site-footer > .container > .text-center .label-warning {
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.07) !important;
  color: rgba(255,255,255,.74) !important;
  font-size: 13px !important;
  font-weight: 400;
}
#footer.up-site-footer > .container > .text-center .label-warning:hover { background: rgba(255,255,255,.12) !important; color: #fff !important; }
@media (max-width: 991px) {
  #footer.up-site-footer > .container > .row > .col-sm-4 { padding-left: 18px; padding-right: 18px; }
  #footer.up-site-footer h4.text-warning { font-size: 18px !important; }
  #footer.up-site-footer > .container > .row > .col-sm-4:nth-child(3) { padding: 20px; }
}
@media (max-width: 767px) {
  #footer.up-site-footer { padding-top: 34px !important; }
  #footer.up-site-footer > .container > .row { display: block; }
  #footer.up-site-footer > .container > .row > .col-sm-4 { padding: 0 15px 26px; }
  #footer.up-site-footer > .container > .row > .col-sm-4 + .col-sm-4:before { display: none; }
  #footer.up-site-footer > .container > .row > .col-sm-4:nth-child(3) { margin: 2px 15px 10px; width: auto; }
  #footer.up-site-footer > .container > .text-center { margin-top: 14px !important; flex-direction: column; justify-content: center; }
}
