/* =========================================
   Universal Global Footer
========================================= */

.universal-footer {
  width: 100%;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  padding: 3rem 2rem 1rem 2rem;
  color: var(--text-dark, #1e293b);
  font-family: inherit;
}

/* Part 1: Top (5-Column Layout) */
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto 3rem auto;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Footer Brand & Description */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 1rem;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent, #0055ff);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.footer-brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-description {
  color: var(--text-muted, #475569);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer Columns (H3 and Links) */
.footer-column h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  color: var(--accent, #0055ff);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.footer-column h3 i {
  font-size: 1.3rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-column a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted, #475569);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-column a i {
  font-size: 1rem;
  opacity: 0.8;
  transition: color 0.2s ease;
}

.footer-column a:hover,
.footer-column a:hover i {
  color: var(--accent, #0055ff);
}

/* Part 2: Middle (Resources) */
.footer-middle {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-resources {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-resources a {
  color: var(--text-dark, #1e293b);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-resources a:hover {
  color: var(--accent, #0055ff);
}

/* Part 3: Bottom (Copyright) */
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
}

.footer-bottom p {
  color: var(--text-muted, #475569);
  font-size: 0.85rem;
  margin: 0;
}

/* Mobile Responsiveness for Footer */
@media (max-width: 768px) {
  .universal-footer {
    padding: 2rem 1rem 1rem 1rem;
  }

  .footer-top {
    grid-template-columns: 1fr; /* Stack all 5 columns vertically */
    gap: 2.5rem;
  }

  .footer-brand {
    padding-right: 0;
    text-align: center;
    align-items: center;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column h3 {
    justify-content: center; /* Center headers on mobile */
  }

  .footer-column a {
    justify-content: center; /* Center links on mobile */
  }

  .footer-resources {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

.footer-brand {
  max-width: 300px;
}
.footer-brand .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}
.footer-brand .brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  vertical-align: middle;
  margin-left: 0.5rem;
}
.footer-brand p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 1rem;
}
