.footer {
  width: 100%;
  height: 100%;
  padding: 1.25rem 0 5rem;
  background: var(--secondary-bgc);
  border-top: 0.25rem solid var(--primary-bgc);
}

.footer-wrap {
  max-width: 60%;
  width: 100%;
  margin-inline: auto;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  flex-wrap: wrap;
}

.footer-logo {
  max-width: 200px;
  display: flex;
  justify-content: start;
  align-items: center;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.footer-section {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  background: var(--secondary-bgc);
}

.footer-col {
  position: relative;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--secondary-bgc);
  border-left: 1px solid var(--border-clr);
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
}

.footer-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #ccc;
  transform: translate(-1px, -50%);
}

.footer-col:hover::before {
  background: #000;
}

.footer-col h3 {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-txt);
}

.footer-item {
  width: 100%;
  padding: 0.25rem 0 0.125rem;
  display: flex;
  line-height: 1.8;
  color: var(--primary-txt);
}

.footer-item a {
  position: relative;
  display: block;
  width: fit-content;
  text-decoration: none;
  color: var(--primary-txt);
  line-height: 1.8;
  /* transition: all 300ms; */
  /* overflow: hidden; */
}

.footer-item a:hover {
  background: #efefef;
  color: #333;
}

.footer-item a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  border-bottom: 2px solid #aaa;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: all 300ms;
}

.footer-item a:hover::before {
  transform: translateX(-50%) scaleX(1);
}

.footer .copyright {
  text-align: center;
  color: #777;
}

.footer .copyright i {
  margin-right: 0.325rem;
}

.footer .version {
  margin-left: 0.625rem;
}

@media screen and (max-width: 768px) {
  .footer {
    padding: 0 0 2.5rem;
  }

  .footer-wrap {
    max-width: 100%;
    display: flex;
    flex-direction: column;
  }

  .footer-logo {
	display: none;
  }

  .footer-logo img {
	display: none;
  }

  .footer-section {
    display: grid;
	grid-template-columns: repeat(1fr);
  }

  .footer-col {
	max-width: 100%;
    border-left: none;
    flex-shrink: 0;
  }
  
  .footer-item {
	text-align: center;
  }
  
  .footer-item a {
	width: 100%;
  }
}
