/* Extra styles for News page and social buttons */
.footer-social { display: flex; gap: 10px; margin-top: 14px; list-style: none; padding: 0; }
.footer-social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.35); border-radius: 50%; color: inherit; }
.footer-social a:hover { background: rgba(255,255,255,0.14); }
.footer-social svg { width: 18px; height: 18px; }

.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.social-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; font-family: var(--font-body); }
.social-btn:hover { background: var(--paper); }
.social-btn svg { width: 20px; height: 20px; flex: none; }

.post { padding: 44px 0; border-bottom: 1px solid var(--line); }
.post:first-of-type { border-top: 1px solid var(--line); }
.post-meta { font-size: 0.85rem; color: rgba(28,43,39,0.6); margin: 0 0 0.4em; }
.post h2 { margin-bottom: 0.5em; }
.post img { display: block; width: 100%; max-width: 620px; height: auto; border-radius: 4px; margin: 0 0 20px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.9rem; margin-top: 18px; }
.post-actions a, .post-actions button { background: none; border: 0; padding: 0; font: inherit; color: var(--leaf); text-decoration: underline; cursor: pointer; }

/* Icon-only social buttons */
.social-row.icons-only .social-btn { width: 54px; height: 54px; padding: 0; justify-content: center; border-radius: 50%; }
.social-row.icons-only .social-btn svg { width: 24px; height: 24px; }

/* Milestones timeline on About page */
.timeline { list-style: none; margin: 1.6em 0 0; padding: 0; }
.timeline li { border-left: 2px solid var(--leaf); padding: 0 0 22px 20px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline strong { display: block; font-family: var(--font-head, inherit); }
.timeline span { font-size: 0.96rem; color: rgba(28,43,39,0.8); }

/* Moving photo backgrounds for page headers */
.hero.has-photo { position: relative; overflow: hidden; isolation: isolate; }
.hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13,38,34,0.88) 0%, rgba(13,38,34,0.62) 55%, rgba(13,38,34,0.38) 100%),
    var(--hero-img) center / cover no-repeat;
  transform-origin: 60% 50%;
  animation: heroDrift 12s ease-in-out infinite alternate;
}
.hero.has-photo .hero-motif { display: none; }
@keyframes heroDrift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.25) translate3d(-4%, -2.5%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero.has-photo::before { animation: none; }
}
.hero-home    { --hero-img: url("../images/hero-home.jpg"); }
.hero-about   { --hero-img: url("../images/hero-about.jpg"); }
.hero-work    { --hero-img: url("../images/hero-work.jpg"); }
.hero-news    { --hero-img: url("../images/hero-news.jpg"); }
.hero-donate  { --hero-img: url("../images/hero-donate.jpg"); }
.hero-contact { --hero-img: url("../images/hero-contact.jpg"); }

