/* Abeokuta South LGA - public website (redesign) */
:root {
  --green: #1b5a1e;
  --green-dark: #17481a;
  --green-panel: #2b5233;
  --gold: #e9b232;
  --gold-dark: #d29d1f;
  --ink: #2c3e50;
  --muted: #6b7280;
  --line: #dfe4de;
  --mint: #edf3ec;
  --sand: #f3f4ee;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(20, 40, 20, .06);
  --font: Tahoma, Verdana, "Segoe UI", "DejaVu Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }

/* top bar + header */
.topbar { background: var(--green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 30; }
.header .container { display: flex; align-items: center; gap: 28px; min-height: 100px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; margin-right: auto; }
.brand img { width: 76px; height: 76px; object-fit: contain; }
.brand strong { display: block; color: var(--green); font-size: 24px; line-height: 1.15; }
.brand span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; padding: 12px 18px; position: relative; }
.nav a.on { color: var(--green); }
.nav a.on::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 2px; height: 3px; background: var(--gold); border-radius: 2px; }
.nav a:hover { color: var(--green); }
.btn { display: inline-block; font-family: inherit; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; border-radius: 6px; padding: 16px 24px; cursor: pointer; line-height: 1.2; }
.btn-gold { background: var(--gold); color: #3a2c05; } .btn-gold:hover { background: var(--gold-dark); }
.btn-green { background: var(--green); color: #fff; } .btn-green:hover { background: var(--green-dark); }
.btn-line { background: #fff; color: var(--green); border: 2px solid var(--green); padding: 14px 22px; }
.btn-sm { padding: 12px 18px; font-size: 14px; }
.header .btn { margin-left: 4px; }
.menu-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 6px; padding: 8px 12px; font-size: 20px; cursor: pointer; color: var(--green); }

/* sections */
.section { padding: 56px 0; }
.section.tight { padding-top: 28px; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; margin: 0 0 14px; }
h1.display, h2.display { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; margin: 0 0 14px; color: var(--ink); letter-spacing: -.01em; }
h2.sec { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 8px; max-width: 760px; }
.page-head { padding: 34px 0 10px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.24fr 1fr; margin-top: 28px; border-radius: 4px; overflow: hidden; min-height: 520px; background: var(--green-panel); }
.hero-copy { position: relative; color: #fff; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy .eyebrow { color: var(--gold); }
.hero-copy h1 { font-size: clamp(32px, 4.3vw, 54px); line-height: 1.12; margin: 6px 0 26px; }
.hero-copy p { font-size: 21px; line-height: 1.5; max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-photo { position: relative; background: #d9d4a8 center/cover no-repeat; min-height: 280px; }
.hero-cap { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; margin: 14px 0 0; text-align: right; }

/* cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 26px 28px 30px; text-decoration: none; color: inherit; display: flex; flex-direction: column; min-height: 220px; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--green); transform: translateY(-2px); }
.card .num { color: var(--green); font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; align-items: center; }
.card h3 { font-size: 30px; line-height: 1.15; margin: 44px 0 14px; color: var(--ink); }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.arrow { width: 28px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.panel { background: var(--mint); border-radius: 10px; padding: 28px; }
.panel.sand { background: var(--sand); }
.panel h3 { margin: 0 0 8px; font-size: 22px; }

/* certificate band */
.band { background: var(--mint); }
.mini { display: block; background: #fff; border-radius: 10px; padding: 22px 24px; text-decoration: none; color: inherit; border: 1px solid var(--line); }
.mini:hover { border-color: var(--green); }
.mini strong { display: block; font-size: 18px; color: var(--green); margin-bottom: 4px; }
.mini span { color: var(--muted); font-size: 14px; }

/* record cards (projects / news) */
.rec { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 16px 16px 20px; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
a.rec:hover { border-color: var(--green); }
.rec .thumb { aspect-ratio: 16 / 9.5; background: var(--sand) center/cover no-repeat; border-radius: 6px; margin-bottom: 18px; overflow: hidden; }
.rec .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tag { color: var(--green); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.rec h3 { font-size: 24px; line-height: 1.2; margin: 12px 0 8px; }
.rec p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.pill { background: #eef4ec; color: #134a16; font-weight: 700; font-size: 13px; padding: 10px 14px; border-radius: 6px; margin-top: auto; display: block; }
.more { display: flex; justify-content: space-between; align-items: center; color: var(--green); font-weight: 700; margin-top: 14px; font-size: 14px; }
.row-card { display: grid; grid-template-columns: 280px 1fr 40px; gap: 28px; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 16px 28px 16px 16px; text-decoration: none; color: inherit; }
a.row-card:hover { border-color: var(--green); }
.row-card .thumb { aspect-ratio: 16 / 9.5; background: var(--sand) center/cover; border-radius: 6px; overflow: hidden; }
.row-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-card h3 { font-size: 26px; line-height: 1.2; margin: 8px 0 8px; }
.row-card p { margin: 0; color: var(--muted); font-size: 15px; }
.stack { display: grid; gap: 20px; }
.empty { border: 2px dashed var(--line); border-radius: 10px; padding: 36px; text-align: center; color: var(--muted); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 28px; align-items: center; }
.filters input, .filters select, .field input, .field select, .field textarea { font-family: inherit; font-size: 15px; color: var(--ink); border: 1px solid #d6dcd4; background: var(--sand); border-radius: 8px; padding: 14px 16px; }
.filters input { min-width: 280px; } .filters select { min-width: 190px; }

/* record page */
.record-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 52px; margin-top: 30px; align-items: start; }
.record-photo img { width: 100%; border-radius: 6px; }
.caption { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; margin: 12px 0 0 14px; }
.record-side .pill { margin: 0 0 30px; }
.record-side h2 { font-size: 36px; line-height: 1.15; margin: 0 0 20px; }
.prose { font-size: 17px; color: #4b5563; }
.prose p { margin: 0 0 16px; } .prose h3, .prose h4 { color: var(--ink); margin: 26px 0 10px; }
.prose ul { padding-left: 22px; } .prose a { font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 30px; }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.04); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.linkrow { display: block; font-weight: 700; margin-top: 12px; }

/* steps / forms */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.step i { font-style: normal; font-weight: 700; font-size: 13px; background: #eef4ec; color: var(--green); width: 44px; height: 38px; border-radius: 8px; display: grid; place-items: center; }
.step h4 { margin: 0 0 8px; font-size: 20px; } .step p { margin: 0; color: var(--muted); font-size: 14px; }
.form-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.form-box { background: var(--sand); border-radius: 10px; padding: 32px; }
.field { margin-bottom: 20px; } .field label { display: block; font-weight: 700; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; background: #fff; } .field textarea { min-height: 120px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.flash { padding: 14px 18px; border-radius: 8px; margin-bottom: 22px; font-weight: 700; }
.flash.ok { background: #e3f1e3; color: #14501a; } .flash.bad { background: #fbe9e7; color: #8a2a1c; }
.hp { position: absolute; left: -9999px; }
.note { font-size: 13px; color: var(--muted); }

/* people */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 8px; }
.tabs a { text-decoration: none; font-weight: 700; padding: 11px 20px; border-radius: 999px; border: 2px solid var(--line); color: var(--ink); }
.tabs a.on { background: var(--green); border-color: var(--green); color: #fff; }
.person { text-align: center; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 26px 20px; }
.person .photo { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 16px; background: var(--mint) center/cover; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--line); display: grid; place-items: center; color: var(--green); font-size: 42px; font-weight: 700; overflow: hidden; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin: 0 0 4px; font-size: 20px; }
.person .pos { color: var(--green); font-weight: 700; font-size: 14px; }
.person .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.person .links { margin-top: 12px; font-size: 13px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.person .links a { text-decoration: none; font-weight: 700; }

/* contact */
.contact-card { background: var(--green); color: #fff; border-radius: 10px; padding: 30px; }
.contact-card h3 { margin: 0 0 14px; font-size: 24px; } .contact-card p { margin: 0 0 14px; } .contact-card a { color: #fff; }
.contact-card small { color: #cfe3cf; display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 11px; margin-bottom: 4px; }

/* pagination */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pager a, .pager span { padding: 10px 16px; border-radius: 8px; border: 2px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); }
.pager .on { background: var(--green); color: #fff; border-color: var(--green); }

/* footer */
.footer { margin-top: 60px; border-top: 1px solid var(--line); background: #fff; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 40px 0 26px; }
.footer h4 { margin: 0 0 12px; font-size: 14px; color: var(--green); text-transform: uppercase; letter-spacing: .03em; }
.footer a { display: block; color: var(--ink); text-decoration: none; padding: 4px 0; font-size: 14px; } .footer a:hover { color: var(--green); }
.footer p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.footer .base { border-top: 1px solid var(--line); padding: 16px 0 26px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* responsive */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; } .hero-photo { min-height: 260px; order: -1; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .record-grid, .form-wrap { grid-template-columns: 1fr; gap: 30px; }
  .row-card { grid-template-columns: 200px 1fr; } .row-card .arrow { display: none; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .menu-toggle { display: block; }
  .header .container { flex-wrap: wrap; gap: 10px; min-height: 84px; }
  .brand img { width: 56px; height: 56px; } .brand strong { font-size: 19px; }
  .nav, .header .btn-apply { display: none; width: 100%; }
  .header.open .nav { display: flex; flex-direction: column; align-items: stretch; } .header.open .btn-apply { display: block; text-align: center; margin: 0 0 14px; }
  .nav a.on::after { left: 18px; right: auto; width: 40px; }
  .topbar .container > span:last-child:not(:first-child) { display: none; }
}
@media (max-width: 620px) {
  .container { padding: 0 16px; } .section { padding: 38px 0; }
  .grid-3, .grid-2, .grid-4, .steps, .two { grid-template-columns: 1fr; }
  .hero-copy { padding: 32px 22px; } .hero-copy p { font-size: 18px; }
  .row-card { grid-template-columns: 1fr; padding: 16px; }
  .card h3 { margin-top: 26px; font-size: 26px; }
  .filters input, .filters select { width: 100%; min-width: 0; }
  .footer .cols { grid-template-columns: 1fr; }
}
@media print { .topbar, .header, .footer { display: none; } }

/* home banner slider */
.slider { position: relative; margin-top: 28px; }
.slider .hero { margin-top: 0; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-on { opacity: 1; visibility: visible; }
.hero.solo { grid-template-columns: 1fr; }
.hero.solo .hero-photo { min-height: 520px; }
.hero-title { font-size: clamp(32px, 4.3vw, 54px); line-height: 1.12; margin: 6px 0 26px; }
.slider-ui { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.s-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--green); background: #fff; color: var(--green); font-size: 15px; line-height: 1; cursor: pointer; }
.s-btn:hover, .s-btn:focus-visible { background: var(--green); color: #fff; }
.s-dots { display: flex; gap: 8px; }
.s-dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 0; background: #c5cdbf; cursor: pointer; }
.s-dots button.on { background: var(--green); transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* Administration dropdown */
.nav .dd { position: relative; }
.nav .dd.on > .dd-toggle { color: var(--green); }
.nav .dd.on > .dd-toggle::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 2px; height: 3px; background: var(--gold); border-radius: 2px; }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 28px rgba(0,0,0,.12); padding: 6px 0; z-index: 50; }
.dd-menu a { display: block; padding: 11px 20px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.dd-menu a:hover { background: var(--mint, #edf3ec); }
.nav .dd:hover .dd-menu, .nav .dd:focus-within .dd-menu, .nav .dd.open .dd-menu { display: block; }
@media (max-width: 800px) { .dd-menu { position: static; box-shadow: none; border: 0; padding: 0 0 6px 16px; min-width: 0; } }
.nav a, .nav .dd-toggle { white-space: nowrap; } .dd-toggle span { font-size: 11px; margin-left: 2px; }

/* chairman's welcome */
.welcome { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; background: var(--sand); border-radius: 10px; padding: 44px; }
.welcome .prose { font-size: 18px; line-height: 1.75; }
.welcome-sign { margin: 22px 0 18px; display: flex; flex-direction: column; }
.welcome-sign strong { font-size: 20px; color: var(--green); }
.welcome-sign span { color: var(--muted); font-size: 15px; }
.welcome-photo { margin: 0; text-align: center; }
.welcome-photo img { width: 100%; max-height: 460px; object-fit: cover; object-position: center top; border-radius: 10px; border-bottom: 6px solid var(--gold); }
.welcome-photo figcaption { margin-top: 10px; font-weight: 700; font-size: 14px; color: var(--muted); }
@media (max-width: 800px) { .welcome { grid-template-columns: 1fr; padding: 26px 20px; gap: 26px; } .welcome-photo { order: -1; } .welcome-photo img { max-height: 340px; } }

/* ---- full-screen banner (overrides the earlier split layout) ---- */
.slider-wrap { width: 100%; }
.slider { position: relative; margin: 0; }
.slide { position: relative; }
.slider .hero, .hero.solo { display: block; position: relative; margin: 0; border-radius: 0; overflow: hidden; background: #1b3d1f;
  min-height: clamp(440px, calc(100vh - 150px), 860px); min-height: clamp(440px, calc(100svh - 150px), 860px); }
.slider .hero-photo { position: absolute; inset: 0; min-height: 0; background-size: cover; background-position: center; }
.slider .hero-copy { position: relative; z-index: 1; min-height: inherit; display: flex; align-items: center; color: #fff;
  background: linear-gradient(90deg, rgba(14,44,20,.92) 0%, rgba(14,44,20,.72) 42%, rgba(14,44,20,.15) 78%, rgba(14,44,20,0) 100%); padding: 56px 0 90px; }
.slider .hero-copy-in { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.slider .hero-copy-in > * { max-width: 640px; }
.slider .hero-copy h2.hero-title { color: #fff; margin: 6px 0 22px; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.slider .hero-copy p { text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.slider .hero.solo { min-height: clamp(380px, calc(100svh - 150px), 820px); }
.slider .hero-cap { position: absolute; right: 24px; bottom: 62px; z-index: 2; margin: 0; color: #fff; background: rgba(0,0,0,.45); padding: 5px 10px; border-radius: 4px; text-align: right; }
.slider-ui { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; margin: 0; }
.slider-ui .s-btn { background: rgba(255,255,255,.88); border-color: transparent; }
.slider-ui .s-btn:hover, .slider-ui .s-btn:focus-visible { background: var(--gold); color: #1b1b1b; }
.slider-ui .s-dots button { background: rgba(255,255,255,.55); }
.slider-ui .s-dots button.on { background: var(--gold); }
@media (max-width: 800px) {
  .slider .hero, .hero.solo { min-height: clamp(420px, calc(100svh - 160px), 700px); }
  .slider .hero-copy { align-items: flex-end; padding: 40px 0 84px; background: linear-gradient(180deg, rgba(14,44,20,.25) 0%, rgba(14,44,20,.88) 70%); }
  .slider .hero-copy-in { padding: 0 20px; }
  .slider .hero-cap { right: 12px; bottom: 58px; max-width: 70%; }
}

/* ---- chairman picture: any size fits (whole picture shown over a soft blurred backdrop) ---- */
.welcome-photo .frame { position: relative; aspect-ratio: 4 / 5; max-height: 520px; margin: 0 auto; border-radius: 10px; overflow: hidden; background: #cfd6c8; border-bottom: 6px solid var(--gold); }
.welcome-photo .frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; max-height: none; }
.welcome-photo .frame img.bg { object-fit: cover; filter: blur(22px) brightness(.85); transform: scale(1.15); }
.welcome-photo .frame img.fg { object-fit: contain; }

/* ---- header fit on desktop (Administration item added) ---- */
.header .container { max-width: 1440px; }
.brand { min-width: 0; }
@media (min-width: 801px) and (max-width: 1360px) {
  .header .container { gap: 14px; }
  .brand { gap: 12px; } .brand img { width: 62px; height: 62px; }
  .brand strong { font-size: 20px; } .brand span { font-size: 12px; }
  .nav { gap: 2px; }
  .nav a { padding: 10px 11px; font-size: 15px; }
  .nav a.on::after, .nav .dd.on > .dd-toggle::after { left: 11px; right: 11px; }
  .header .btn-apply { padding: 13px 16px; font-size: 14px; margin-left: 0; }
}
@media (min-width: 801px) and (max-width: 1120px) {
  .brand strong { font-size: 16px; } .brand span { display: none; } .brand img { width: 50px; height: 50px; }
  .nav a { padding: 10px 7px; font-size: 14px; }
  .nav a.on::after, .nav .dd.on > .dd-toggle::after { left: 7px; right: 7px; }
  .header .btn-apply { padding: 11px 12px; font-size: 13px; }
}
