/* ============================================================
   Footer 1: Mega 4-Col — Brand+desc | Categories | Recent | Newsletter
   ============================================================ */

.f1-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

/* ── Main grid ── */
.f1-footer__main { padding: 64px 0 40px; }

.f1-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}

/* ── Brand col ── */
.f1-footer__name {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-footer-heading);
  letter-spacing: -.02em;
  text-decoration: none;
  display: block;
}

.f1-footer__desc {
  margin-top: 12px;
  font-size: .85rem;
  line-height: 1.75;
  color: var(--color-footer-text);
}

/* ── Column titles with primary underline ── */
.f1-footer__title {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-footer-heading);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}

/* ── Category links ── */
.f1-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.f1-footer__links li {
  padding: 6px 0;
  border-bottom: 1px solid var(--color-footer-border);
}

.f1-footer__links a {
  color: var(--color-footer-link);
  font-size: .875rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s, padding-left .2s;
}

.f1-footer__links a::before {
  content: '›';
  opacity: 0;
  transition: opacity .2s;
}

.f1-footer__links a:hover {
  color: var(--color-footer-link-hover);
  padding-left: 6px;
}

.f1-footer__links a:hover::before { opacity: 1; }

/* ── Recent posts ── */
.f1-footer__recent {
  list-style: none;
  padding: 0;
  margin: 0;
}

.f1-footer__recent li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-footer-border);
}

.f1-footer__recent a {
  color: var(--color-footer-link);
  font-size: .85rem;
  text-decoration: none;
  flex: 1;
  line-height: 1.45;
  transition: color .2s;
}

.f1-footer__recent a:hover { color: var(--color-footer-link-hover); }

.f1-footer__recent time {
  font-size: .65rem;
  color: var(--color-footer-text);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Newsletter: email input + button stacked ── */
.f1-footer__nl-desc {
  font-size: .85rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.f1-footer__newsletter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f1-footer__newsletter input[type="email"] {
  padding: 11px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--color-footer-border);
  border-radius: 6px;
  color: var(--color-footer-heading);
  font-size: .875rem;
  outline: none;
  transition: border-color .2s;
  width: 100%;
  box-sizing: border-box;
}

.f1-footer__newsletter input[type="email"]:focus { border-color: var(--color-primary); }
.f1-footer__newsletter input[type="email"]::placeholder { color: var(--color-footer-text); }

.f1-footer__newsletter button {
  padding: 11px 14px;
  background: var(--color-primary);
  color: var(--color-btn-text);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: .875rem;
  transition: opacity .2s;
}

.f1-footer__newsletter button:hover { opacity: .88; }

/* ── Bottom bar ── */
.f1-footer__bottom {
  border-top: 1px solid var(--color-footer-border);
  padding: 20px 0;
}

.f1-footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: var(--color-footer-text);
}

.f1-footer__bottom a {
  color: var(--color-footer-link);
  text-decoration: none;
}

.f1-footer__bottom a:hover { color: var(--color-footer-link-hover); }

.f1-footer__nav {
  display: flex;
  list-style: none;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.f1-footer__nav a {
  color: var(--color-footer-link);
  font-size: .8rem;
  text-decoration: none;
  transition: color .2s;
}

.f1-footer__nav a:hover { color: var(--color-footer-link-hover); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .f1-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .f1-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .f1-footer__main { padding: 48px 0 32px; }
}

@media (max-width: 480px) {
  .f1-footer__grid { grid-template-columns: 1fr; }
  .f1-footer__bottom .container { flex-direction: column; text-align: center; }
  .f1-footer__nav { justify-content: center; flex-wrap: wrap; }
}
