/* UPES Online footer — aligned 4×2 grid matching Angular reference */

footer {
  overflow: hidden;
  padding-top: 50px;
  background: #eff1f4;
  color: #333;
}

.main-footer {
  background: #eff1f4;
  position: relative;
}

.footer-grid-wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 2rem;
  align-items: start;
  width: 100%;
}

.footer-box {
  min-width: 0;
  width: 100%;
}

.footer-box h5,
.footer-box a > h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #111827;
}

.footer-box a {
  text-decoration: none;
  color: inherit;
}

.footer-box .footer-subhead {
  margin-top: 1.35rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0px;
  padding: 0;
  width: auto;
  position: relative;
}

.footer-links li a {
color: #333 !important;
    font-size: 12px !important;
    transition: all ease .3s;
    line-height: 20px;
    position: relative;
    left: 0;
}

.footer-links li a:hover {
  color: #005291 !important;
  left: 3px;
}

/* Collapse / expand */
.footer-short-content {
  max-height: 420px;
  overflow: hidden;
  position: relative;
  transition: 0.5s ease;
}

.footer-short-content.active {
  max-height: 5000px;
}

.footer-short-content::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to bottom, rgba(239, 241, 244, 0), #eff1f4);
  pointer-events: none;
}

.footer-short-content.active::after {
  display: none;
}

/* Social — blue square icons like Angular */
.social-icons-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-icons-list > li {
  width: auto !important;
  margin: 0 !important;
}

.social-icons-list li a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #005291;
  color: #fff !important;
  text-decoration: none;
  border-radius: 2px;
  transition: 0.3s ease;
}

.social-icons-list li a span {
  background: transparent !important;
  color: #fff !important;
  padding: 0 !important;
  width: auto !important;
  line-height: 1 !important;
  font-size: 18px !important;
  margin: 0 !important;
  display: inline-block;
}

.social-icons-list li a:hover {
  background: #003d6e;
  color: #fff !important;
}

/* Toggle */
.footer-toggle-btn {
  padding: 25px 0;
}

.footer-toggle-btn button {
  border: none;
  background: #275e93;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s ease;
  cursor: pointer;
}

.footer-toggle-btn button:hover {
  background: #111827;
}

/* Copyright */
.bottom_footer {
  border-top: 1px solid #e5e7eb;
  padding: 18px 0;
  text-align: center;
}

.bottom_footer p {
  text-align: center;
  background: #fff;
  font-size: 13px;
  color: #3d3b3b;
  width: max-content;
  margin: 0 auto;
  display: block;
  padding: 8px 30px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: 0px 2px 5px #ccc;
  font-weight: 600;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.75rem;
  }
}

@media (max-width: 767px) {
  footer {
    padding-bottom: 70px;
    padding-top: 30px;
  }

  .footer-short-content {
    max-height: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
    row-gap: 1.25rem;
  }

  .footer-box h5,
  .footer-box a > h5 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .footer-links li a {
    font-size: 12px !important;
  }

  .social-icons-list li a {
    width: 36px;
    height: 36px;
  }

  .bottom_footer p {
    width: auto;
    padding: 8px 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
