/* ==========================================================================
   CircumVent Project — self-hosted rebuild, matched to the original Wix layout
   Light mint-gray canvas · medium-green header/footer/divider bars ·
   bordered hero box · centered content · module slide carousel
   ========================================================================== */

:root {
  --green:       #008751;   /* header / footer / accents (Nigerian green) */
  --green-bar:   #38996a;   /* thin section divider bars */
  --green-dark:  #006b40;
  --ink:         #2b2b2b;
  --gray:        #5f6360;
  --bg:          #eef3f4;    /* light mint-gray page canvas */
  --panel:       #ffffff;
  --line:        #d7dedf;
  --maxw:        1180px;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4 { line-height: 1.12; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
p { margin: 0 0 1.1em; }
p, li, .meta { overflow-wrap: break-word; word-break: break-word; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }
.section { padding: 70px 0; }
.center { text-align: center; }

/* thin green divider bar between sections (a hallmark of the original) */
.bar { height: 22px; background: var(--green-bar); }
.bar.dark { background: var(--green); }

/* ---------------- Header ---------------- */
.site-header { background: var(--green); }
.site-header .brand-row { text-align: center; padding: 20px 0 14px; }
.site-header .brand-row img { height: 42px; width: auto; margin: 0 auto; }
.nav-wrap { border-top: 1px solid rgba(255,255,255,.35); }
.nav {
  display: flex; max-width: var(--maxw); margin: 0 auto;
}
.nav a {
  flex: 1 1 0; text-align: center; color: #fff; text-transform: uppercase;
  letter-spacing: .08em; font-size: .8rem; font-weight: 500; padding: 16px 6px;
  border-left: 1px solid rgba(255,255,255,.35);
}
.nav a:last-child { border-right: 1px solid rgba(255,255,255,.35); }
.nav a:hover { background: rgba(255,255,255,.10); text-decoration: none; }
.nav a.active { background: rgba(0,0,0,.10); }
.nav-toggle { display: none; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; background: var(--green); color: #fff;
  padding: 13px 30px; border-radius: 2px; font-weight: 600;
  letter-spacing: .03em; font-size: .95rem; border: 2px solid var(--green);
  transition: background .15s, color .15s;
}
.btn:hover { background: #fff; color: var(--green); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--green); color: #fff; }

.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--green); margin-bottom: .8rem; }
.lead { font-size: 1.25rem; color: var(--gray); }

/* ---------------- Home hero ---------------- */
.hero { padding: 60px 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-art img { width: 100%; }
.hero-box {
  border: 2px solid var(--green); border-radius: 3px; padding: 40px 36px; background: transparent;
  text-align: center;
}
.hero-box h1 { color: var(--green); font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.25; margin-bottom: 1.1em; }
.hero-box .inpart { color: var(--green); font-size: 1rem; margin-bottom: 20px; }
.hero-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; align-items: center; justify-items: center; }
.hero-logos img { max-height: 46px; width: auto; }
@media (max-width: 860px){ .hero-grid { grid-template-columns: 1fr; } }

/* ---------------- Centered message blocks ---------------- */
.msg { text-align: center; max-width: 760px; margin: 0 auto; }
.msg h2 { font-size: clamp(1.4rem,2.6vw,2rem); }
.msg .strong { font-weight: 700; color: var(--ink); }

/* text + illustration split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip .media { order: 2; }
.split .txt.right { text-align: right; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; gap: 26px; } .split.flip .media { order: 0; } .split .txt.right { text-align: left; } }

/* ---------------- Action cards (home bottom) ---------------- */
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.action-card { background: var(--panel); padding: 40px 20px 34px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; box-shadow: 0 1px 0 var(--line); transition: transform .15s, box-shadow .15s; }
.action-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,107,64,.14); text-decoration: none; }
.action-card img { height: 88px; width: auto; }
.action-card .label { color: var(--green); font-weight: 700; font-size: 1.05rem; }
@media (max-width: 820px){ .actions { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 460px){ .actions { grid-template-columns: 1fr;} }

/* ---------------- Page title (interior pages) ---------------- */
.page-head { padding: 56px 0 10px; }
.page-head.center { text-align: center; }
.page-head h1 { color: var(--ink); }
.page-intro { max-width: 760px; color: var(--gray); font-size: 1.05rem; }

/* ---------------- Training module list ---------------- */
.training-wrap { position: relative; }
.training-bg { position: absolute; top: 0; right: 0; width: 230px; max-width: 30%; opacity: .9; pointer-events: none; }
.mod-list { max-width: 760px; }
.mod-item { display: flex; align-items: center; gap: 26px; padding: 30px 0; border-bottom: 2px solid var(--green); }
.mod-item:first-child { border-top: 0; }
.mod-item .num { font-size: 2.4rem; font-weight: 800; color: var(--green); min-width: 66px; }
.mod-item .m-title { font-size: 1.35rem; color: var(--ink); }
.mod-item:hover .m-title { color: var(--green); }
.mod-item:hover { text-decoration: none; }
@media (max-width: 620px){ .mod-item .num { font-size: 1.8rem; min-width: 46px; } .mod-item .m-title { font-size: 1.1rem; } }

/* ---------------- Module carousel ---------------- */
.carousel { max-width: 980px; margin: 0 auto; }
.carousel-stage { position: relative; background: var(--panel); border: 1px solid var(--line); }
.carousel-stage .slide-img { width: 100%; display: none; }
.carousel-stage .slide-img.active { display: block; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.0); border: none; color: var(--green);
  font-size: 3rem; line-height: 1; cursor: pointer; padding: 10px 16px; user-select: none;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.car-btn:hover { color: var(--green-dark); }
.car-prev { left: 4px; } .car-next { right: 4px; }
.slide-caption { background: var(--panel); border: 1px solid var(--line); border-top: 0; padding: 16px 20px; font-size: .95rem; min-height: 8px; }
.slide-caption a { word-break: break-all; }
.car-counter { text-align: center; color: var(--gray); font-size: .85rem; margin-top: 8px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: center; }
.thumbs img { height: 62px; width: auto; border: 2px solid transparent; cursor: pointer; opacity: .6; }
.thumbs img:hover { opacity: 1; }
.thumbs img.active { border-color: var(--green); opacity: 1; }

/* module nav bars (below carousel) */
.mod-bars { max-width: 980px; margin: 30px auto 0; }
.mod-bar { display: block; background: var(--green); color: #fff; text-align: center; padding: 16px; margin-bottom: 14px; }
.mod-bar:hover { background: var(--green-dark); text-decoration: none; }
.mod-bar.active { background: var(--green-dark); }
.mod-bar .mb-k { font-size: .95rem; opacity: .9; }
.mod-bar .mb-t { font-size: 1.1rem; }

/* ---------------- Team grid ---------------- */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 46px 34px; }
@media (max-width: 860px){ .team-grid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .team-grid { grid-template-columns: 1fr; max-width:360px; margin:0 auto;} }
.member .photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--green); display:block; }
.member .photo.ph { display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:3rem; letter-spacing:.03em; }
.member .name { font-size: 1.5rem; font-weight: 400; margin: 16px 0 8px; color: var(--ink); }
.member .bio-prev { color: var(--gray); font-size: .98rem; margin-bottom: 12px; }
.member .readmore { font-style: italic; color: var(--ink); font-size: .95rem; }

/* member profile */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
@media (max-width: 720px){ .profile { grid-template-columns: 1fr; } }
.profile .photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--green); }
.profile .photo.ph { display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:4rem; }
.back-link { display:inline-block; margin-bottom: 22px; font-weight:600; font-size:.85rem; text-transform:uppercase; letter-spacing:.06em; }

/* ---------------- Partners ---------------- */
.partner-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; }
@media (max-width: 820px){ .partner-grid { grid-template-columns: repeat(3,1fr);} }
@media (max-width: 560px){ .partner-grid { grid-template-columns: repeat(2,1fr);} }
.partner-cell { background: var(--panel); display: flex; align-items: center; justify-content: center; padding: 26px; min-height: 150px; }
.partner-cell img { max-height: 96px; width: auto; }

/* ---------------- Publications ---------------- */
.pub { padding: 22px 0; border-bottom: 1px solid var(--line); }
.pub:last-child { border-bottom: 0; }
.pub .meta { color: var(--gray); font-size: .95rem; overflow-wrap: anywhere; }
ol.refs { padding-left: 1.3em; }
ol.refs li { margin-bottom: 1em; overflow-wrap: anywhere; }

/* ---------------- Contact ---------------- */
.contact-box { text-align: center; }
.contact-box img { height: 54px; margin: 0 auto 16px; }
.contact-box .email { font-size: 1.6rem; font-weight: 700; color: var(--green); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--green); color: #fff; text-align: center; padding: 30px 0; }
.site-footer img { height: 40px; margin: 0 auto 10px; }
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer .legal { font-size: .82rem; opacity: .9; }

/* ---------------- Mobile nav ---------------- */
@media (max-width: 760px){
  .site-header .brand-row { display:flex; align-items:center; justify-content:space-between; padding: 14px 20px; }
  .site-header .brand-row img { margin: 0; height: 34px; }
  .nav-toggle { display:block; background:none; border:0; color:#fff; font-size:1.7rem; cursor:pointer; line-height:1; }
  .nav-wrap { border-top: 0; }
  .nav { flex-direction: column; display: none; }
  .nav.open { display: flex; }
  .nav a { flex: none; text-align: left; padding: 14px 22px; border-left: 0; border-top: 1px solid rgba(255,255,255,.25); }
  .nav a:last-child { border-right: 0; }
}
