/* styles.css (FULL revised: PBS-inspired + Pan-African + circular logo fill + profile slider) */

:root{
  --pa-red:#B11226;
  --pa-gold:#F4C430;
  --pa-green:#1E7F43;
  --pa-black:#0B0F19;

  --brand:var(--pa-red);
  --brand2:var(--pa-green);
  --accent:var(--pa-gold);
  --ink:var(--pa-black);

  --bg:#ffffff;
  --text:#0B0F19;
  --muted:#475569;
  --line:#e5e7eb;
  --alt:#f7f7f8;

  --radius:14px;
  --shadow:0 10px 26px rgba(2,6,23,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}
.container{width:min(1120px, 92vw); margin-inline:auto}
h1,h2,h3{margin:0 0 10px; line-height:1.15}
h1{font-size:clamp(2rem, 3.6vw, 3.05rem)}
h2{font-size:clamp(1.35rem, 2.2vw, 2rem)}
h3{font-size:1.05rem}
p{margin:0 0 12px}
.muted{color:var(--muted)}
.small{font-size:.92rem}
a{color:inherit; text-decoration:none}
code{background:#fff; border:1px solid var(--line); padding:.12rem .35rem; border-radius:10px}
.srOnly{position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden}

/* Utility bar */
.utility{
  background: linear-gradient(to right, var(--pa-red), var(--pa-gold), var(--pa-green));
  color:#fff;
}
.utility__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:10px 0;
}
.utility__tag{font-weight:900; font-size:.86rem; opacity:.95}
.utility__right{display:flex; gap:14px; align-items:center}
.utility__link{color:#fff; font-weight:900; font-size:.9rem; opacity:.92}
.utility__link:hover{opacity:1; text-decoration:underline}

/* Header */
.header{
  position:sticky; top:0; z-index:30;
  background:var(--ink);
  border-bottom:4px solid var(--pa-gold);
}
.header__inner{
  height:92px;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
  position:relative;
}

/* Brand circle (logo.png fills) */
.brand{display:flex; align-items:center; gap:12px}
.brand__mark{
  width:72px; height:72px;
  border-radius:50%;
  display:grid; place-items:center;
  background:#fff;
  border:2px solid var(--pa-gold);
  box-shadow:0 6px 18px rgba(0,0,0,.18);
  position:relative;
  overflow:hidden;
}
.brand__mark::after{
  content:"";
  position:absolute; inset:4px;
  border-radius:50%;
  border:1px solid rgba(0,0,0,.06);
  pointer-events:none;
}
.brand__logo{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Nav + menu */
.nav{display:flex; gap:10px; align-items:center}
.nav a{
  color:#fff;
  font-weight:900;
  padding:10px 10px;
  border-radius:12px;
  opacity:.92;
}
.nav a:hover{opacity:1; background:rgba(255,255,255,.08)}
.menuBtn{
  display:none;
  border:1px solid rgba(255,255,255,.18);
  background:transparent;
  color:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-weight:900;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  border-radius:12px;
  padding:12px 14px;
  font-weight:900;
  background:var(--pa-red);
  color:#fff;
  border:1px solid var(--pa-red);
}
.btn:hover{background:#8F0E1D; border-color:#8F0E1D}
.btn--small{padding:9px 12px; font-size:.95rem}

/* Ghost variants */
.btn--ghost{background:transparent; border:1px solid rgba(255,255,255,.22); color:#fff}
.btn--ghost:hover{background:rgba(255,255,255,.10)}
.btn--ghostLight,
.btn--ghostDark{color:var(--text); background:#fff; border-color:var(--line)}
.btn--ghostLight:hover,
.btn--ghostDark:hover{background:var(--alt)}

/* Hero */
.hero{padding:34px 0 28px; background:#fff}
.hero__grid{display:grid; grid-template-columns:1.25fr .75fr; gap:18px; align-items:start}
.hero__featured{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
}
.kicker{
  display:inline-block;
  font-weight:900;
  color:var(--pa-red);
  letter-spacing:.02em;
  text-transform:uppercase;
  font-size:.82rem;
  margin-bottom:10px;
}
.lead{font-size:1.06rem; max-width:68ch}
.hero__actions{display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 8px}

.metaRow{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:12px}
.metaLabel{font-weight:900; color:var(--muted); margin-right:4px}

/* Pills */
.pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding:7px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:.86rem;
  background:#fff;
  border:1px solid var(--line);
  color:var(--pa-green);
}
.pill:hover{background:var(--alt); border-color:rgba(30,127,67,.25)}

/* Right rail */
.hero__rail{display:grid; gap:12px}
.railCard{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  background:#fff;
  box-shadow:var(--shadow);
}
.railCard--accent{border-left:4px solid var(--pa-gold)}
.railTitle{font-size:1.05rem; margin-bottom:6px}
.railList{margin:10px 0 0; padding-left:18px}
.railList li{margin:6px 0}
.railLink{display:inline-block; margin-top:10px; font-weight:900; color:var(--pa-green)}
.railLink:hover{text-decoration:underline}

/* Band */
.band{
  background:var(--alt);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:22px 0;
}
.band__inner{display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap}
.band__right{display:flex; gap:10px; flex-wrap:wrap}

/* Sections */
.section{padding:52px 0}
.section--alt{background:var(--alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.sectionHead{margin-bottom:14px; max-width:78ch}

.toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:12px;
  background:#fff;
  box-shadow:var(--shadow);
}
.tabs{display:flex; gap:8px; flex-wrap:wrap}
.tab{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:8px 10px;
  font-weight:900;
  cursor:pointer;
}
.tab:hover{background:var(--alt)}
.tab.is-active{border-color:rgba(177,18,38,.35); background:rgba(177,18,38,.10); color:var(--pa-red)}
.search input{
  width:min(360px, 70vw);
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  outline:none;
  font:inherit;
}
.search input:focus{border-color:rgba(177,18,38,.55); box-shadow:0 0 0 4px rgba(177,18,38,.12)}

.gridCards{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
}
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}
.cardTitle{font-weight:900; margin-bottom:6px}
.cardMeta{display:flex; gap:10px; flex-wrap:wrap; color:var(--muted); font-weight:700; font-size:.9rem}
.cardActions{margin-top:10px; display:flex; gap:10px; flex-wrap:wrap}
.linkBtn{
  display:inline-flex;
  font-weight:900;
  color:var(--pa-green);
  border:1px solid var(--line);
  border-radius:12px;
  padding:9px 10px;
  background:#fff;
}
.linkBtn:hover{background:var(--alt); border-color:rgba(30,127,67,.25)}
.center{display:flex; justify-content:center; margin-top:18px}

/* Two columns */
.twoCol{display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:start}
.stack{display:grid; gap:12px}
.card--media{border-left:4px solid var(--pa-gold)}
.bullets{margin:10px 0 0; padding-left:18px}
.bullets li{margin:6px 0}
.bullets--compact li{margin:4px 0}
.callout{
  margin-top:12px;
  padding:12px 14px;
  border-left:4px solid var(--pa-gold);
  background:#fff;
  border-radius:12px;
  border:1px solid var(--line);
}

/* ===== Profile slider ===== */
.profileSlider{
  position:relative;
  display:grid;
  grid-template-columns: 42px 1fr 42px;
  gap:10px;
  align-items:center;
}
.profileTrack{
  display:flex;
  gap:12px;
  overflow:auto;
  scroll-snap-type:x mandatory;
  padding:4px 2px 10px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.profileTrack::-webkit-scrollbar{height:10px}
.profileTrack::-webkit-scrollbar-thumb{background:rgba(2,6,23,.18); border-radius:999px}
.profileTrack::-webkit-scrollbar-track{background:rgba(2,6,23,.06); border-radius:999px}

.profileCard{
  scroll-snap-align:start;
  min-width:min(720px, 92vw);
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.profileTop{display:grid; grid-template-columns:112px 1fr; gap:14px; align-items:start}
.profileAvatar{
  width:96px; height:96px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow);
  position:relative;
}
.profileAvatar img{width:100%; height:100%; object-fit:cover; display:block}

/* If image missing, show initials from data-fallback */
.profileAvatar--fallback::before{
  content: attr(data-fallback);
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-weight:1000;
  color:var(--pa-black);
  background: linear-gradient(180deg, rgba(244,196,48,.35), #fff);
}
.profileAvatar--fallback img{opacity:0} /* stays hidden if you don't have the image yet */

.profileName{margin:0 0 6px; font-weight:1000}
.profileRole{margin:0 0 8px; font-weight:800}
.profileBio{margin:0 0 10px}

.profileSocial{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:6px;
}
.iconBtn{
  width:40px; height:40px;
  display:inline-grid; place-items:center;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--pa-green);
}
.iconBtn:hover{background:var(--alt); border-color:rgba(30,127,67,.25)}
.iconBtn svg{width:18px; height:18px; fill:currentColor}

.sliderBtn{
  width:42px; height:42px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--pa-black);
  font-weight:1000;
  font-size:22px;
  cursor:pointer;
  box-shadow:var(--shadow);
}
.sliderBtn:hover{background:var(--alt)}

/* Support */
.support{
  background:var(--ink);
  color:#fff;
  padding:52px 0;
  border-top:4px solid var(--pa-gold);
}
.support__inner{display:grid; grid-template-columns:1.2fr .8fr; gap:14px; align-items:start}
.support__card{
  background:#fff;
  color:var(--text);
  border-radius:var(--radius);
  padding:16px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.form{display:grid; gap:12px; margin-top:10px}
label span{display:block; font-weight:900; margin:0 0 6px}
input, textarea{
  width:100%;
  border-radius:12px;
  border:1px solid var(--line);
  padding:12px 12px;
  outline:none;
  font:inherit;
}
input:focus, textarea:focus{border-color:rgba(177,18,38,.55); box-shadow:0 0 0 4px rgba(177,18,38,.12)}

/* Footer */
.footer{padding:22px 0; border-top:1px solid var(--line); background:#fff}
.footer__inner{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap}
.footer__links{display:flex; gap:12px; flex-wrap:wrap}
.footer__link{font-weight:900; color:var(--muted)}
.footer__link:hover{color:var(--text); text-decoration:underline}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr}
  .gridCards{grid-template-columns:repeat(2, minmax(0,1fr))}
  .twoCol{grid-template-columns:1fr}
  .support__inner{grid-template-columns:1fr}
}
@media (max-width: 760px){
  .gridCards{grid-template-columns:1fr}
  .menuBtn{display:inline-flex}

  /* Center logo on small devices */
  .header__inner{justify-content:center; height:96px}
  .brand{margin-inline:auto}
  .brand__mark{width:84px; height:84px}

  /* Menu button pinned to right */
  .menuBtn{
    position:absolute;
    right:4vw;
    top:50%;
    transform:translateY(-50%);
  }

  /* Mobile nav dropdown */
  .nav{
    display:none;
    position:absolute;
    left:0; right:0;
    top:96px;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding:12px;
    background:var(--ink);
    border-bottom:1px solid rgba(255,255,255,.12);
  }
  .nav.is-open{display:flex}
  .nav a{padding:12px}

  /* Profile slider: hide arrows, stack content */
  .profileSlider{grid-template-columns:1fr}
  .sliderBtn{display:none}
  .profileCard{min-width:90vw}
  .profileTop{grid-template-columns:1fr}
}




