.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer .l-base {
  position: absolute;
  inset: 0;
  background: hsl(222 26% 4%);
}

.footer .l-grid {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(rgba(255, 255, 255, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 1) 1px, transparent 1px);
  background-size: 64px 64px;
}

.footer .l-topfade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: linear-gradient(to bottom, hsl(222 24% 5%), transparent);
}

.footer .l-bloom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.05);
  filter: blur(100px);
  pointer-events: none;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.footer-brand .logo .brand-name {
  font-size: 1.125rem;
}

.footer-brand p.about {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
  max-width: 20rem;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-lg);
  transition: background 0.2s ease;
}

.footer-social a .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.footer-social .wa {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  color: #25d366;
}

.footer-social .wa:hover {
  background: rgba(37, 211, 102, 0.15);
}

.footer-social .tg {
  background: rgba(0, 136, 204, 0.08);
  border: 1px solid rgba(0, 136, 204, 0.2);
  color: #0088cc;
}

.footer-social .tg:hover {
  background: rgba(0, 136, 204, 0.15);
}

.footer-social .fb {
  background: rgba(24, 119, 242, 0.08);
  border: 1px solid rgba(24, 119, 242, 0.2);
  color: #1877f2;
}

.footer-social .fb:hover {
  background: rgba(24, 119, 242, 0.15);
}

.footer-social .xt {
  background: rgba(229, 231, 235, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.18);
  color: hsl(var(--foreground));
}

.footer-social .xt:hover {
  background: rgba(229, 231, 235, 0.12);
}

.footer-social .ig {
  background: rgba(225, 48, 108, 0.08);
  border: 1px solid rgba(225, 48, 108, 0.2);
  color: #e1306c;
}

.footer-social .ig:hover {
  background: rgba(225, 48, 108, 0.15);
}

.footer-social .ph {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.footer-social .ph:hover {
  background: rgba(34, 197, 94, 0.15);
}

.footer-brand .legal {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground) / 0.5);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: hsl(var(--primary));
}

/* ----------------------------------------------------------- Footer blog row */
.footer-posts {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  padding-bottom: 0.5rem;
}

.footer-posts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.footer-posts-head h4 {
  font-family: var(--font-display, var(--font-sans));
  font-weight: 700;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-posts-head a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.footer-posts-head a .icon {
  width: 0.85rem;
  height: 0.85rem;
}

.footer-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .footer-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .footer-posts-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-post {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.footer-post:hover {
  border-color: hsl(var(--primary) / 0.35);
  background: hsl(var(--primary) / 0.05);
}

.footer-post .fp-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--primary));
}

.footer-post .fp-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.9);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.footer-post .fp-date {
  font-size: 0.72rem;
  color: hsl(var(--muted-foreground));
}

/* Blog posts shown as a footer column (in place of the old Support column) */
.footer-blog-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-blog-col .footer-post {
  padding: 0.7rem 0.85rem;
}

.footer-blog-all {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.footer-blog-all .icon {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform 0.2s ease;
}

.footer-blog-all:hover .icon {
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.footer-bottom .links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom .links a:hover {
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: row;
  }
}

.blog-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

