/* FOOTER MAIN */
.main-footer {
  position: relative;
  background: rgba(0, 0, 0, 1.0);
  color: white;
  padding: 60px 5% 30px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

/* GRID CONTAINER */
.footer-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  align-items: start;
}

/* COLUMNS */
.footer-column h4 {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background: #179717;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
}

.footer-column ul li i {
  color: #179717;
  margin-right: 10px;
  font-size: 16px;
  min-width: 20px;
}

.footer-column a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.footer-column a:hover {
  color: #179717;
}

/* LOGO */
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Logo smaller */
.footer-logo img:first-child {
  max-width: 120px;
  height: auto;
}

/* Title bigger */
.img_title_footer {
  max-width: 380px;
  height: auto;
}

/* QR */
.footer-qr {
  width: 80px;
  margin-top: 5px;
}

.footer-column img.footer-qr {
  display: block;
  margin-top: 10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 6px;
}


/* BOTTOM COPYRIGHT */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  opacity: 0.8;
}

/* CONTACT LIST SPECIFIC */
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
}

.footer-contact-list li i {
  flex-shrink: 0;
  margin-top: 3px; /* Align icon with first line of text */
}

.footer-contact-item i {
  font-size: 18px;
  margin-right: 12px;
  color: #179717;
  transition: transform 0.3s, color 0.3s;
}

.footer-contact-item:hover i {
  transform: translateY(-2px);
  color: #21c421;
}

.footer-links li a:hover {
  color: #21c421;
  text-decoration: underline;
  transition: 0.3s;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* Remove column dividers on tablets */
  .footer-column:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 670px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center; /* center all column content */
    gap: 20px;
  }

  .footer-logo img:first-child {
    max-width: 80px;
    height: auto;
  }

  .img_title_footer{
    max-width: 280px;
  }

  .footer-column {
    display: flex;
    flex-direction: column;
    align-items: center; /* centers everything inside the column */
  }

  .footer-column ul {
    padding: 0;
    margin: 0 auto; /* center the ul itself */
  }

  .footer-contact-list li,
  .footer-contact-item {
    flex-direction: column;
    align-items: center; /* icon on top, text centered */
    text-align: center;  /* center text inside li */
  }

  .footer-contact-item i {
    margin: 0 0 8px 0; /* icon above text */
    font-size: 20px;
  }

  .footer-column h4 {
    text-align: center;
  }

  .footer-column img.footer-qr {
    margin: 15px auto 0; /* center QR code */
  }
}

