/* ScholarshipsNigeria on top of the educads v2 theme.
   Only what this site has and educads does not: its own mark, the FAQ
   accordion, and the few places a listing differs from a course directory.
   Nothing here restyles a v2- component; v2.css stays replaceable. */

/* The bought theme carried the link reset; this sheet does not load it. */
body.v2 a { text-decoration: none; }
body.v2 .v2-prose-body a, body.v2 .v2-post-body a, body.v2 .v2-intro a { text-decoration: underline; text-underline-offset: 2px; }
body.v2 *, body.v2 *::before, body.v2 *::after { box-sizing: border-box; }
body.v2 img { max-width: 100%; }
body.v2 h1, body.v2 h2, body.v2 h3 { margin-top: 0; }

/* ---------- the mark ---------- */
.v2-brand { display: flex; align-items: center; gap: 9px; }
.v2-mark { width: 34px; height: 34px; flex: none; display: block; }
.v2-mark .lm-field { fill: #fff; }
.v2-mark .lm-cap { fill: var(--v2-teal-d); }
.v2-mark .lm-base, .v2-mark .lm-tassel { fill: none; stroke: var(--v2-teal-d); stroke-width: 2.2; stroke-linecap: square; }
.v2-brand-t { font-size: 17px; font-weight: 500; letter-spacing: -.2px; color: #fff; white-space: nowrap; }
.v2-brand-t strong { font-weight: 700; }
.v2-foot-logo { display: flex; align-items: center; gap: 9px; height: auto; }
.v2-foot-logo .v2-brand-t { color: #fff; }

/* ---------- skip link ---------- */
.v2-skip { position: absolute; left: -9999px; }
.v2-skip:focus { left: 16px; top: 10px; z-index: 20; background: #fff; padding: 8px 14px; border-radius: 6px; }

/* ---------- the FAQ accordion ---------- */
.v2-faq { padding: 8px 24px 16px; }
body.v2 .v2-faq h2 { padding: 14px 0 6px; }
.v2-faq details { border-bottom: 1px solid var(--v2-line-soft); }
.v2-faq details:last-child { border-bottom: 0; }
.v2-faq summary {
  list-style: none; cursor: pointer; padding: 14px 28px 14px 0; position: relative;
  font-size: 15px; font-weight: 600; line-height: 22px; color: var(--v2-ink);
}
.v2-faq summary::-webkit-details-marker { display: none; }
.v2-faq summary::after {
  content: ""; position: absolute; right: 4px; top: 21px; width: 9px; height: 9px;
  border-right: 2px solid var(--v2-muted); border-bottom: 2px solid var(--v2-muted);
  transform: rotate(45deg); transition: transform .15s;
}
.v2-faq details[open] summary::after { transform: rotate(-135deg); top: 24px; }
.v2-faq .v2-prose-body { padding-bottom: 14px; }

/* ---------- a closed award stays readable, but says so ---------- */
.v2-row.is-closed { background: #FBFCFC; }
.v2-row.is-closed .v2-row-t a { color: var(--v2-muted); }

/* ---------- ad containers: layout only, and gone when unfilled ---------- */
.ad { margin: 0; }
.ad:empty { display: none; }
body.v2 .v2-home-ad:not(:has(ins)) { display: none; }

/* ---------- the home hero needs room for the nav above the heading ---------- */
.v2-is-home .v2-hero-in { padding-bottom: 4px; }

/* ---------- country tiles carry the flag ---------- */
.ng-tile-flag { gap: 12px; }
.ng-tile-flag .v2-tile-t { flex: 1; min-width: 0; }
.ng-flag {
  width: 28px; height: 21px; flex: none; display: block; object-fit: cover;
  border: 1px solid var(--v2-line); border-radius: 2px; background: #fff;
}

/* ---------- reading measure ----------
   The v2 container is 1200px and everything was filling it: the intro ran 120
   characters a line at 14px, and the hero's single search box stretched the
   full 1160px. Comfortable reading is 60-80 characters, and a search box reads
   as an input, not a rule across the page. Nothing here changes the grid — only
   how wide a line of TEXT is allowed to get. */
.v2-hero-in { max-width: 920px; margin-left: auto; margin-right: auto; }
body.v2 .v2-hero-h { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.14; }
.v2-hero-search { max-width: 820px; margin-left: auto; margin-right: auto; }

/* Body copy stops at a readable measure; headings, tables and cards keep the
   full column so the layout itself does not narrow. */
body.v2 .v2-intro p,
body.v2 .v2-prose-body > p,
body.v2 .v2-prose-body > ul,
body.v2 .v2-prose-body > ol,
body.v2 .v2-post-body > p,
body.v2 .v2-post-body > ul,
body.v2 .v2-post-body > ol,
body.v2 .v2-lead,
body.v2 .v2-band-sub { max-width: 74ch; }

/* The hero filled a 900px screen on its own. Capped so the stats strip and the
   first section are visible without scrolling. */
.v2-hero-scene { max-height: 460px; }
@media (min-width: 1400px) { .v2-hero-scene { padding-bottom: 32%; } }

/* ---------- the award's cover ----------
   The generated card is 1200x630. Left at full width it rendered 600px tall and
   pushed everything below the fold, so it is capped and cropped from the centre.
   The card's own title sits in its upper half, which survives the crop. */
.v2-cover img { max-height: 340px; object-fit: cover; object-position: center 35%; }
@media (max-width: 767px) { .v2-cover img { max-height: 200px; } }

/* ---------- the facts card on an award page ----------
   One card, one row per fact. The educads grid put every fact in its own box,
   and a row of boxes is only as short as its tallest member — a long language
   requirement left four empty white boxes beside it. */
.ng-facts { padding: 2px 24px; }
.ng-fact {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--v2-line-soft); align-items: start;
}
.ng-fact:last-child { border-bottom: 0; }
.ng-fact-k {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--v2-muted); padding-top: 3px;
}
.ng-fact-v { font-size: 15px; line-height: 23px; font-weight: 600; color: var(--v2-ink); overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .ng-facts { padding: 2px 18px; }
  .ng-fact { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 0; }
  .ng-fact-k { padding-top: 0; }
}

/* ---------- the award's own card in a listing row ---------- */
.ng-row-thumb {
  width: 104px; height: 59px; flex: none; overflow: hidden;
  border: 1px solid var(--v2-line); border-radius: var(--v2-radius); background: #fff;
}
.ng-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) { .ng-row-thumb { width: 72px; height: 41px; } }

/* ---------- the search box and its suggestions ---------- */
.ng-ac { position: relative; }
.ng-ac-in {
  width: 100%; height: 68px; border: 0; padding: 0 26px; font: inherit;
  font-size: 15px; color: var(--v2-ink); background: transparent;
}
.ng-ac-in::placeholder { color: #94A2B3; }
.ng-ac-in:focus { outline: none; }
.ng-ac-in::-webkit-search-cancel-button { -webkit-appearance: none; }
.ng-ac-pop {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  max-height: 60vh; overflow-y: auto; text-align: left;
  background: #fff; border: 1px solid var(--v2-line); border-radius: var(--v2-radius);
  box-shadow: 0 16px 40px rgba(0,40,50,.20);
}
body.v2 .ng-ac-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  border-bottom: 1px solid var(--v2-line-soft); color: var(--v2-ink);
}
body.v2 .ng-ac-row:last-child { border-bottom: 0; }
body.v2 .ng-ac-row:hover, body.v2 .ng-ac-row.is-on { background: var(--v2-tint); color: var(--v2-ink); }
.ng-ac-kind {
  flex: none; width: 82px; font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--v2-teal-dd);
}
.ng-ac-row .ng-flag { width: 28px; }
.ng-ac-row .ng-flag + .ng-ac-body { margin-left: 46px; }
.ng-ac-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ng-ac-t { font-size: 14px; font-weight: 500; line-height: 20px; }
.ng-ac-t b { font-weight: 700; color: var(--v2-teal-dd); }
.ng-ac-s { font-size: 12px; color: var(--v2-muted); }

/* the same box on an inner page sits in the band, at its height */
.v2-band-search .ng-ac { flex: 1; min-width: 0; display: flex; }
.v2-band-search .ng-ac-in { height: 52px; padding: 0 20px; font-size: 14px; }

/* ---------- phone ---------- */
/* v2.css already lays the whole page out for a phone; the only thing it does
   not know about is this site's wordmark beside the logo. */
@media (max-width: 767px) {
  .v2-brand-t { display: none; }
  .ng-ac-in { height: 52px; padding: 0 16px; }
  .ng-ac-kind { width: 60px; }
  .ng-ac-row .ng-flag + .ng-ac-body { margin-left: 0; }
}

/* The provider's own logo in the award head. Marks arrive as squares, wide
   wordmarks and tall crests, so the box is fixed and the image is contained
   inside it rather than cropped — a cropped university crest reads as broken. */
.ng-logo {
  width: 100%; height: 100%; display: block;
  object-fit: contain; padding: 4px; box-sizing: border-box;
  background: #fff; border-radius: 8px;
}

/* Most university marks are wordmarks two or three times wider than they are
   tall. Contained in the square slot the monogram uses, they shrink to about
   sixteen pixels and read as a smudge, so the slot widens when it actually
   holds a logo and stays square for the initials. */
.v2-pg-logo:has(.ng-logo) { width: 104px; }
@media (max-width: 767px) { .v2-pg-logo:has(.ng-logo) { width: 78px; } }
.v2-row-logo .ng-logo { max-width: 100%; max-height: 100%; }

/* Award bodies now carry real tables — amounts by level, dated stages. The
   sheet gives prose tables borders but no header shading and no escape on a
   narrow screen, where a three-column table of amounts would otherwise push
   the whole page sideways. */
body.v2 .v2-prose-body th { background: #F6F9FA; font-weight: 600; }
body.v2 .v2-prose-body table { display: block; overflow-x: auto; margin: 0 0 22px; }
