/* Footer Styling for Sarmayadar */
.portal-footer {
  background-color: var(--forest-dk);
  color: var(--cream);
  border-top: 4px solid var(--marigold);
  padding: 4rem 0 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--cream);
  opacity: 0.85;
  max-width: 340px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest);
  border: 1.5px solid var(--border-dk);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background: var(--rani);
  border-color: var(--rani);
  color: var(--paper);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--marigold);
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--cream);
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.18s ease;
}

.footer-col a:hover {
  color: var(--marigold);
  opacity: 1;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .portal-footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Ultra Compact Viewports (<= 360px & 317px width, <= 560px height) */
@media (max-width: 360px) {
  .portal-footer {
    padding: 1.5rem 0 calc(75px + env(safe-area-inset-bottom, 0px)) !important;
    margin-top: 1.5rem !important;
  }

  .footer-grid {
    gap: 1.15rem !important;
  }

  .footer-brand p {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
  }

  .social-icon-btn {
    width: 30px !important;
    height: 30px !important;
  }

  .footer-col h4 {
    font-size: 0.74rem !important;
    margin-bottom: 0.5rem !important;
  }

  .footer-col a {
    font-size: 0.78rem !important;
  }

  .footer-col li {
    margin-bottom: 0.45rem !important;
  }

  .footer-bottom {
    margin-top: 1.25rem !important;
    padding-top: 0.85rem !important;
    font-size: 0.72rem !important;
  }
}