/* ==========================================================================
   File: assets/css/scholarship.css
   NexGen Educational Scholarship page (pages/scholarship.php).
   Sits on top of pages.css and uses its variables, so the dark theme
   follows automatically. Mobile first; everything prefixed .sch.
   ========================================================================== */

.sch-head { margin-bottom: 28px; }

/* ---- Scholar cards ---- */
.sch-scholars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
@media (min-width: 820px) { .sch-scholars { grid-template-columns: 1fr 1fr; gap: 24px; } }

.sch-scholar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 20px;
    background: var(--pg-card);
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    box-shadow: var(--pg-shadow);
    min-width: 0;
}
@media (min-width: 520px) {
    .sch-scholar { flex-direction: row; align-items: flex-start; padding: 28px 26px; }
}

.sch-mono {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.18), transparent 60%),
        linear-gradient(150deg, var(--pg-green) 0%, var(--pg-dark) 100%);
    box-shadow: 0 0 0 3px var(--pg-card), 0 0 0 5px var(--pg-gold);
    color: #fff;
    font-family: var(--pg-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.sch-scholar-body { min-width: 0; flex: 1 1 auto; }

.sch-badge {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(249, 168, 37, 0.16);
    color: #8A5A00;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
html[data-theme="dark"] .sch-badge { color: var(--pg-gold); }

.sch-scholar h3 {
    margin: 0 0 14px;
    font-family: var(--pg-display);
    font-size: clamp(1.2rem, 3.6vw, 1.45rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--pg-ink);
    overflow-wrap: anywhere;
}

.sch-facts { margin: 0; display: grid; gap: 8px; }
.sch-facts div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; }
.sch-facts dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pg-ink-soft);
    padding-top: 2px;
}
.sch-facts dd { margin: 0; font-size: 0.93rem; line-height: 1.5; color: var(--pg-ink); }

.sch-congrats {
    margin: 26px auto 0;
    max-width: 60ch;
    text-align: center;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--pg-ink-soft);
    font-style: italic;
}

/* ---- Pull quote from the award letters ---- */
.sch-quote {
    padding: 28px 24px;
    border-left: 4px solid var(--pg-gold);
    background: var(--pg-card);
    border-radius: 0 var(--pg-radius) var(--pg-radius) 0;
    box-shadow: var(--pg-shadow);
}
.sch-quote p {
    margin: 0 0 14px;
    font-family: var(--pg-display);
    font-size: clamp(1.1rem, 3.4vw, 1.35rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--pg-ink);
}
.sch-quote span { font-size: 0.82rem; color: var(--pg-ink-soft); }

/* ---- Value chain: six steps in the order the crop travels ---- */
.sch-chain {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    counter-reset: none;
}
@media (min-width: 620px)  { .sch-chain { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sch-chain { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.sch-step {
    position: relative;
    padding: 22px 20px 20px;
    background: var(--pg-card);
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    min-width: 0;
}
.sch-step-n {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--pg-green-soft);
    color: var(--pg-green);
    font-family: var(--pg-display);
    font-weight: 800;
    font-size: 0.95rem;
}
.sch-step h3 { margin: 0 0 6px; font-family: var(--pg-display); font-size: 1.05rem; font-weight: 800; color: var(--pg-ink); }
.sch-step p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--pg-ink-soft); }

/* ---- Programme facts ---- */
.sch-about {
    margin: 0;
    padding: 8px 22px;
    background: var(--pg-card);
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    box-shadow: var(--pg-shadow);
}
.sch-about div { padding: 14px 0; border-bottom: 1px solid var(--pg-line); }
.sch-about div:last-child { border-bottom: 0; }
.sch-about dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pg-green);
    margin-bottom: 4px;
}
.sch-about dd { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--pg-ink); }

.sch-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }

/* Smooth jump to the scholars from the hero button */
html { scroll-behavior: smooth; }
#scholars { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The site-wide heading colour would otherwise win over the white hero text. */
.sch .pg-hero h1 { color: #fff; }
