/* ZAOPA — Zimbabwe Aircraft Owners and Pilots Association */

:root {
  --navy-900: #081c33;
  --navy-800: #0b2545;
  --navy-700: #13315c;
  --navy-100: #dce7f5;
  --gold: #f0a500;
  --gold-dark: #c98a00;
  --green: #009739;
  --ink: #1d2733;
  --muted: #5a6a7d;
  --paper: #ffffff;
  --paper-alt: #f3f6fa;
  --line: #e2e8f0;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(8, 28, 51, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-700); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* max-width:none breaks the flexbox sizing loop with the global
   img { max-width:100% } rule, which collapsed the logo (and its
   click target) to zero width. */
.brand img { height: 44px; width: auto; max-width: none; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover { color: var(--gold-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--navy-800);
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-gold { background: var(--gold); color: var(--navy-900); }

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-navy { background: var(--navy-800); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy-900);
}

/* Rotating background slideshow (replicates the old Elementor hero:
   5s per slide, 0.5s crossfade, slow Ken Burns zoom-in). */

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(8, 28, 51, 0.78), rgba(8, 28, 51, 0.62));
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Flags with bottom-heavy designs (e.g. Zambia's tricolour block) must
   stay anchored to the bottom edge when the hero crops them. */
.hero-slide.pos-bottom { background-position: center bottom; }

.hero-slide.active {
  opacity: 1;
  animation: hero-zoom 7s ease-out forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.active { animation: none; }
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 110px;
  max-width: 860px;
  text-align: center;
}

.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.15;
  margin: 14px 0 18px;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--navy-100);
  margin-bottom: 34px;
}

.hero .tagline strong { color: #fff; }

.slogan-mark {
  display: block;
  font-size: 1.5em;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
}

.slogan-words {
  display: block;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.slogan-words b { color: var(--gold); font-weight: 800; }

.hero .cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.section-alt { background: var(--paper-alt); }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.section-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  color: var(--navy-800);
  margin: 8px 0 10px;
}

.section-head p { color: var(--muted); }

/* ---------- Apps ---------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.app-card {
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-card.coming { background: var(--navy-700); opacity: 0.92; }

.app-card h3 { font-size: 1.35rem; }

.app-card p { color: var(--navy-100); flex-grow: 1; }

.app-card .btn { align-self: flex-start; }

.badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-900);
}

.badge.soon { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* ---------- Services ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.svc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.svc-card .icon { font-size: 1.9rem; }

.svc-card h3 {
  color: var(--navy-800);
  font-size: 1.08rem;
  margin: 10px 0 6px;
}

.svc-card p { color: var(--muted); font-size: 0.92rem; }

.svc-card .status {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ---------- Community gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.gallery figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery figure:hover img { transform: scale(1.05); }

.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 14px 10px;
  background: linear-gradient(transparent, rgba(8, 28, 51, 0.85));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Membership ---------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.tier {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

.tier h3 { color: var(--navy-800); font-size: 1.3rem; }

.tier .blurb { color: var(--muted); font-size: 0.94rem; margin: 10px 0 18px; }

.tier ul { list-style: none; flex-grow: 1; }

.tier li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 0.94rem;
}

.tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

.tier .btn { margin-top: 22px; align-self: flex-start; }

/* ---------- Newsletter ---------- */

.newsletter {
  background: var(--navy-800);
  color: #fff;
}

.newsletter .wrap {
  max-width: 640px;
  text-align: center;
}

.newsletter h2 { font-size: 1.7rem; margin-bottom: 10px; }

.newsletter p { color: var(--navy-100); margin-bottom: 26px; }

.newsletter form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter input {
  flex: 1 1 280px;
  padding: 13px 18px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
}

.newsletter .form-note { font-size: 0.85rem; color: var(--navy-100); margin-top: 14px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: var(--navy-100);
  padding: 56px 0 28px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-bottom: 40px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; }

.site-footer li { margin-bottom: 8px; }

.site-footer a { color: var(--navy-100); text-decoration: none; }

.site-footer a:hover { color: var(--gold); }

.footer-brand img { height: 40px; width: auto; margin-bottom: 12px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  text-align: center;
  font-size: 0.82rem;
  color: #8fa3bd;
}

/* ---------- Inner pages ---------- */

.page-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }

.page-hero p { color: var(--navy-100); max-width: 620px; margin: 12px auto 0; }

.page-body .wrap { max-width: 760px; padding-top: 56px; padding-bottom: 72px; }

.page-body h2 { color: var(--navy-800); margin: 28px 0 10px; }

.page-body p { margin-bottom: 14px; }

.notice {
  background: var(--paper-alt);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 22px 0;
  color: var(--muted);
}

/* ---------- Mega menu (Max-Mega-Menu-style dropdown panels) ---------- */

.nav-item { position: relative; }

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-item > a:hover { color: var(--gold-dark); }

.nav-item .caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}

.mega-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: flex;
  gap: 28px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 40px rgba(8, 28, 51, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}

/* Invisible hover bridge so the pointer can travel to the panel */
.mega-panel::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-item:hover > .mega-panel,
.nav-item.open > .mega-panel,
.nav-item:focus-within > .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-item.align-right > .mega-panel {
  left: auto;
  right: 0;
  transform: translateY(8px);
}

.nav-item.align-right:hover > .mega-panel,
.nav-item.align-right.open > .mega-panel,
.nav-item.align-right:focus-within > .mega-panel {
  transform: translateY(0);
}

.mega-col { min-width: 185px; }

.mega-col h5 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.mega-link {
  display: block;
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: nowrap;
}

.mega-link small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
}

a.mega-link:hover { background: var(--paper-alt); color: var(--navy-800); }

.mega-link .soon-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: #fff4d6;
  border-radius: 999px;
  padding: 1px 7px;
  vertical-align: 1px;
}

span.mega-link { cursor: default; color: var(--muted); }

/* Admin entry stands out */
.nav-item.admin > a {
  background: var(--navy-800);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
}

.nav-item.admin > a:hover { background: var(--navy-700); color: #fff; }

@media (max-width: 820px) {
  .nav-item { width: 100%; }

  .nav-item > a { padding: 10px 0; }

  .mega-panel {
    position: static;
    transform: none;
    display: none;
    opacity: 1;
    visibility: visible;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0 12px 14px;
    border: none;
    border-left: 3px solid var(--gold);
    border-radius: 0;
    box-shadow: none;
  }

  .nav-item:hover > .mega-panel { display: none; }

  .nav-item.open > .mega-panel { display: flex; }

  /* The desktop centring/slide transforms must not apply in the
     accordion — they shove the static panel half off-screen. */
  .nav-item:hover > .mega-panel,
  .nav-item.open > .mega-panel,
  .nav-item:focus-within > .mega-panel,
  .nav-item.align-right:hover > .mega-panel,
  .nav-item.align-right.open > .mega-panel,
  .nav-item.align-right:focus-within > .mega-panel {
    transform: none;
  }

  .nav-item.open .caret { transform: rotate(225deg) translateY(-2px); }

  .mega-link { white-space: normal; }

  .nav-item.admin { margin-top: 6px; }

  .nav-item.admin > a { display: inline-flex; width: auto; }
}

/* ---------- Member area ---------- */

.member-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  max-width: 460px;
  margin: 0 auto 28px;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-alt);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
}

.auth-tab.active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

.form-field {
  display: block;
  margin-bottom: 16px;
}

.form-field span {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
}

.form-field input:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

.form-error {
  color: #b3261e;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.member-card .form-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

.account-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin: 18px 0;
}

.account-facts dt { font-weight: 700; color: var(--navy-800); }

.account-facts dd { margin: 0; }

.verify-box {
  background: #fff8e6;
  border: 1px solid #f0d48a;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 18px 0;
}

.verify-box .verify-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.form-field small { font-weight: 400; color: var(--muted); }

.pw-wrap {
  position: relative;
  display: block;
}

.pw-wrap input { padding-right: 64px; }

.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--navy-700);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 6px 8px;
}

.pw-toggle:hover { color: var(--gold-dark); }

/* ---------- Forum ---------- */

.forum-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.forum-bar-left { font-weight: 700; color: var(--navy-800); }

.forum-home-link { text-decoration: none; color: var(--navy-700); }

.forum-crumb { color: var(--muted); font-weight: 600; }

.forum-crumb a { color: var(--navy-700); text-decoration: none; }

.forum-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.forum-search input {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  min-width: 180px;
}

.forum-bell {
  position: relative;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.forum-bell-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #b3261e;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 5px;
}

.forum-notif-panel {
  position: absolute;
  top: 34px;
  right: 0;
  width: 300px;
  max-height: 380px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 70;
  padding: 8px;
}

.forum-notif {
  display: block;
  padding: 9px 10px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
}

.forum-notif small { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 2px; }

.forum-notif.unread { background: var(--paper-alt); font-weight: 600; }

a.forum-notif:hover { background: #eef3f9; }

/* Category list */
.forum-cats { display: grid; gap: 14px; }

.forum-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.forum-cat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.forum-cat h3 { color: var(--navy-800); font-size: 1.1rem; margin-bottom: 3px; }

.forum-cat p { color: var(--muted); font-size: 0.9rem; }

.forum-cat-meta { text-align: right; white-space: nowrap; color: var(--muted); font-size: 0.85rem; }

.forum-cat-meta small { display: block; font-size: 0.75rem; }

.forum-new-dot {
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--gold);
  border-radius: 50%;
  vertical-align: middle;
}

/* Thread list */
.forum-cathead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.forum-cathead h2 { color: var(--navy-800); }

.forum-threads { list-style: none; }

.forum-thread-row {
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
}

.forum-thread-row.unread .forum-thread-title { font-weight: 800; }

.forum-thread-title {
  display: block;
  text-decoration: none;
  color: var(--navy-800);
  font-weight: 700;
  font-size: 1.02rem;
}

.forum-thread-title:hover { color: var(--gold-dark); }

.forum-thread-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 4px;
}

.forum-pin { color: var(--gold-dark); }

/* Thread view */
.forum-thread-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.forum-thread-head h2 { color: var(--navy-800); }

.forum-thread-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-outline-sm {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--navy-700);
  background: none;
  color: var(--navy-700);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-outline-sm:hover { background: var(--navy-800); color: #fff; }

.forum-posts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }

.forum-post {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.forum-post.held { border-color: #f0d48a; background: #fff8e6; }

.forum-post-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.forum-post-head strong { color: var(--navy-800); }

.forum-post-head small { color: var(--muted); font-size: 0.78rem; }

.forum-post-body { line-height: 1.6; word-break: break-word; }

.forum-held-note { color: var(--gold-dark); font-size: 0.85rem; margin-bottom: 8px; }

.forum-post-foot { display: flex; gap: 12px; margin-top: 12px; }

.forum-react, .forum-report {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--muted);
}

.forum-react.on { border-color: var(--gold); color: var(--navy-800); background: #fff4d6; }

.forum-report:hover { color: #b3261e; }

.forum-form { max-width: none; }

.forum-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.forum-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
}

.forum-mod-item { max-width: none; margin-bottom: 16px; }

.forum-mod-meta { font-size: 0.9rem; margin-bottom: 8px; }

.forum-mod-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.forum-loading { color: var(--muted); padding: 24px 0; }

.forum-foot { margin-top: 30px; }

.muted { color: var(--muted); }

@media (max-width: 640px) {
  .forum-search input { min-width: 120px; }
  .forum-cat { flex-direction: column; align-items: flex-start; }
  .forum-cat-meta { text-align: left; }
}

/* ---------- Entrance animations ---------- */
/* JS (js/main.js) assigns .anim + a direction class and observes
   visibility; without JS nothing is hidden. */

.anim {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--anim-delay, 0s);
}

.anim-up { transform: translateY(30px); }
.anim-left { transform: translateX(-40px); }
.anim-right { transform: translateX(40px); }

.anim.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .anim {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }

  .main-nav.open { display: flex; }

  .main-nav a { padding: 10px 0; width: 100%; }

  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }

  section { padding: 52px 0; }
}
