/* =====================================================================
   Shegasab theme — 2026 refresh
   Loaded after style.css. Owns the header, footer, home page and the
   shared building blocks (type, buttons, cards, forms, alerts).
   ===================================================================== */

:root {
  /* Brand */
  --sh-navy-950: #04142a;
  --sh-navy-900: #061d3b;
  --sh-navy: #0b2a52;
  --sh-navy-700: #123a6e;
  --sh-blue: #1273eb;          /* logo blue */
  --sh-blue-600: #0f63cc;
  --sh-blue-50: #eef5ff;
  --sh-gold: #f5b301;
  --sh-gold-600: #d99a00;
  --sh-gold-50: #fff8e1;

  /* Neutrals */
  --sh-ink: #0f172a;
  --sh-text: #1e293b;
  --sh-slate: #475569;
  --sh-muted: #64748b;
  --sh-line: #e2e8f0;
  --sh-line-strong: #cbd5e1;
  --sh-surface: #ffffff;
  --sh-bg: #f6f8fc;

  /* Feedback */
  --sh-success: #15803d;
  --sh-success-bg: #ecfdf3;
  --sh-danger: #b91c1c;
  --sh-danger-bg: #fef2f2;
  --sh-warning: #a16207;
  --sh-warning-bg: #fffbeb;
  --sh-info: #1d4ed8;
  --sh-info-bg: #eff6ff;

  /* Shape & depth */
  --sh-radius-sm: 8px;
  --sh-radius: 14px;
  --sh-radius-lg: 20px;
  --sh-shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --sh-shadow-sm: 0 2px 8px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --sh-shadow: 0 12px 32px -12px rgba(15, 23, 42, .18);
  --sh-shadow-lg: 0 24px 60px -20px rgba(6, 29, 59, .35);
  --sh-ring: 0 0 0 4px rgba(18, 115, 235, .18);
  --sh-ease: cubic-bezier(.2, .7, .2, 1);
  --sh-header-h: 76px;

  /* Map legacy variables used by older page styles onto the new palette */
  --blue: var(--sh-navy);
  --blue-600: var(--sh-navy-700);
  --blue-700: var(--sh-navy-900);
  --gold: var(--sh-gold);
  --text: var(--sh-text);
  --muted: var(--sh-muted);
  --primary: var(--sh-navy);
  --primary-color: var(--sh-navy);
  --border-color: var(--sh-line);
  --muted-color: var(--sh-muted);
  --bg-color: var(--sh-bg);
  --border-radius: var(--sh-radius);
  --border-radius-lg: var(--sh-radius-lg);
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--sh-header-h) + 16px); }

body {
  font-family: 'Inter', 'Noto Sans Ethiopic', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--sh-text);
  background: var(--sh-bg);
  letter-spacing: -0.005em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.lang-am { font-family: 'Noto Sans Ethiopic', 'Inter', system-ui, sans-serif; letter-spacing: 0; }

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', 'Noto Sans Ethiopic', 'Inter', system-ui, sans-serif;
  color: var(--sh-ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
body.lang-am h1, body.lang-am h2, body.lang-am h3, body.lang-am h4 {
  font-family: 'Noto Sans Ethiopic', 'Poppins', sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }
p a:not(.btn):not(.sh-btn), .sh-prose a { color: var(--sh-blue-600); text-decoration: underline; text-underline-offset: 3px; }
p a:not(.btn):hover, .sh-prose a:hover { color: var(--sh-navy); }

::selection { background: rgba(18, 115, 235, .18); }

:focus-visible { outline: 3px solid var(--sh-blue); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 20000;
  background: var(--sh-navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.sh-main, main { padding-top: 0 !important; flex: 1 0 auto; }

.container { width: min(1200px, 100% - 40px); max-width: none; margin-inline: auto; padding-inline: 0; }

section.container { padding: clamp(48px, 7vw, 88px) 0; }

/* ---------- Announcement bar ---------- */
.sh-announcement { background: var(--sh-gold); color: var(--sh-navy-950); font-size: .92rem; font-weight: 600; }
.sh-announcement-inner { display: flex; gap: 12px; justify-content: center; align-items: center; padding: 8px 0; flex-wrap: wrap; text-align: center; }
.sh-announcement a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- Header ---------- */
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the 76px-tall header. */
.sh-header {
  position: sticky; top: 0; z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--sh-ease), border-color .25s var(--sh-ease);
}
.sh-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.sh-header.is-scrolled { border-bottom-color: var(--sh-line); box-shadow: 0 6px 24px -12px rgba(15, 23, 42, .18); }

.sh-header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--sh-header-h); }

.sh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.sh-brand img { width: 44px; height: auto; display: block; transition: transform .3s var(--sh-ease); }
.sh-brand:hover img { transform: rotate(-6deg) scale(1.05); }
.sh-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.sh-brand-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--sh-navy); letter-spacing: -0.02em; }
.sh-brand-sub { font-size: .68rem; font-weight: 600; color: var(--sh-blue-600); letter-spacing: .02em; margin-top: 3px; text-transform: uppercase; }

.sh-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.sh-nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.sh-nav-link {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-weight: 500; font-size: .95rem; color: var(--sh-slate); text-decoration: none; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.sh-nav-link:hover { color: var(--sh-navy); background: var(--sh-blue-50); }
.sh-nav-link.is-active { color: var(--sh-navy); background: var(--sh-blue-50); font-weight: 600; }

.sh-nav-actions { display: flex; align-items: center; gap: 10px; }

.sh-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: #eef2f7; }
.sh-lang a { padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--sh-muted); text-decoration: none; }
.sh-lang a.is-active { background: #fff; color: var(--sh-navy); box-shadow: var(--sh-shadow-xs); }

.sh-nav-admin { font-size: .85rem; font-weight: 600; color: var(--sh-muted); text-decoration: none; padding: 6px 4px; }
.sh-nav-admin:hover { color: var(--sh-navy); }

.sh-nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--sh-line); background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.sh-nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--sh-navy); transition: transform .25s var(--sh-ease), opacity .2s; }
.sh-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sh-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sh-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sh-nav-backdrop { position: fixed; inset: 0; background: rgba(4, 20, 42, .45); z-index: 999; }

@media (max-width: 1080px) {
  .sh-nav-toggle { display: flex; }
  .sh-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: calc(var(--sh-header-h) + 8px) 20px 24px;
    background: #fff; box-shadow: -20px 0 60px rgba(4, 20, 42, .2);
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s var(--sh-ease), visibility 0s linear .3s;
    overflow-y: auto; z-index: 1001; margin: 0;
  }
  .sh-nav.is-open { transform: none; visibility: visible; transition: transform .3s var(--sh-ease); }
  .sh-nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .sh-nav-link { padding: 12px 14px; border-radius: 10px; font-size: 1rem; }
  .sh-nav-actions { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 16px; border-top: 1px solid var(--sh-line); }
  .sh-lang { align-self: flex-start; }
  .sh-nav-cta { justify-content: center; }
  .sh-nav-admin { text-align: center; }
  .sh-nav-toggle { position: relative; z-index: 1002; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
  :root { --sh-header-h: 66px; }
  .sh-brand img { width: 38px; }
  .sh-brand-name { font-size: 1.15rem; }
  .sh-brand-sub { font-size: .6rem; }
}

/* ---------- Buttons ---------- */
.sh-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-family: inherit; font-size: .95rem; font-weight: 600; line-height: 1.2;
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
  border: 1.5px solid var(--sh-line-strong); background: #fff; color: var(--sh-navy);
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--sh-ease);
}
.sh-btn:hover, .btn:hover { transform: translateY(-1px); border-color: var(--sh-navy); }
.sh-btn:active, .btn:active { transform: translateY(0); }

.btn-primary, .sh-btn-primary { background: var(--sh-navy); border-color: var(--sh-navy); color: #fff !important; box-shadow: 0 8px 20px -10px rgba(11, 42, 82, .7); }
.btn-primary:hover, .sh-btn-primary:hover { background: var(--sh-navy-700); border-color: var(--sh-navy-700); color: #fff; }

.sh-btn-gold { background: var(--sh-gold); border-color: var(--sh-gold); color: var(--sh-navy-950) !important; }
.sh-btn-gold:hover { background: #ffc21a; border-color: #ffc21a; }

.btn-outline, .sh-btn-outline { background: transparent; border-color: var(--sh-navy); color: var(--sh-navy) !important; }
.btn-outline:hover, .sh-btn-outline:hover { background: var(--sh-navy); color: #fff !important; }

.sh-btn-ghost-light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: #fff !important; }
.sh-btn-ghost-light:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

.sh-btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1rem; }
.sh-btn svg { flex-shrink: 0; transition: transform .2s var(--sh-ease); }
.sh-btn:hover svg.sh-arrow { transform: translateX(3px); }

.btn[disabled], .btn.btn-disabled, .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Section headings ---------- */
.sh-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sh-blue-600);
}
.sh-eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--sh-gold); }

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 700; text-align: center;
  color: var(--sh-ink); margin: 0 0 12px; letter-spacing: -0.025em;
}
.section-sub { color: var(--sh-muted); font-size: 1.05rem; text-align: center; max-width: 680px; margin: 0 auto 40px; }

.sh-section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.sh-section-head.is-left { margin-left: 0; text-align: left; }
.sh-section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); margin: 10px 0 12px; }
.sh-section-head p { color: var(--sh-muted); font-size: 1.05rem; margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.sh-page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 400px at 85% -10%, rgba(18, 115, 235, .45), transparent 60%),
              linear-gradient(135deg, var(--sh-navy-950), var(--sh-navy) 70%);
  color: #fff; padding: clamp(48px, 7vw, 84px) 0 clamp(44px, 6vw, 72px);
}
.sh-page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.sh-page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin: 10px 0 12px; max-width: 820px; }
.sh-page-hero p { color: rgba(255, 255, 255, .78); font-size: 1.1rem; margin: 0; max-width: 680px; }
.sh-page-hero .sh-eyebrow { color: #9cc7ff; }
.sh-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: rgba(255, 255, 255, .65); margin-bottom: 6px; list-style: none; padding: 0; }
.sh-breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.sh-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.sh-breadcrumb li + li::before { content: '/'; margin-right: 6px; opacity: .5; }

/* ---------- Cards ---------- */
.card {
  background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-radius-lg);
  padding: clamp(22px, 3vw, 36px); box-shadow: var(--sh-shadow-sm);
}
.card:hover { transform: none; box-shadow: var(--sh-shadow-sm); border-color: var(--sh-line); }
.card h3 { color: var(--sh-ink); }
.card:has(form):hover { transform: none; }

.sh-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--sh-line); border-radius: var(--sh-radius-lg);
  padding: 28px; box-shadow: var(--sh-shadow-xs);
  transition: transform .3s var(--sh-ease), box-shadow .3s var(--sh-ease), border-color .3s;
  text-decoration: none; color: inherit;
}
a.sh-card:hover, .sh-card.is-hoverable:hover { transform: translateY(-4px); box-shadow: var(--sh-shadow); border-color: #c9dbf5; }
.sh-card h3 { margin: 0; font-size: 1.2rem; }
.sh-card p { margin: 0; color: var(--sh-slate); }
.sh-card-link { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--sh-blue-600); display: inline-flex; gap: 6px; align-items: center; }
a.sh-card:hover .sh-card-link svg { transform: translateX(3px); }
.sh-card-link svg { transition: transform .2s var(--sh-ease); }

.sh-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--sh-blue-50); color: var(--sh-blue-600);
}
.sh-icon.is-gold { background: var(--sh-gold-50); color: var(--sh-gold-600); }
.sh-icon.is-navy { background: #e8eef7; color: var(--sh-navy); }
.sh-icon.is-green { background: #e9f9ef; color: #15803d; }

.sh-grid { display: grid; gap: 24px; }
.sh-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.sh-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 380px)); justify-content: center; }
.sh-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 1000px) { .sh-grid-3 { grid-template-columns: repeat(3, 1fr); } .sh-grid-3.is-few { grid-template-columns: repeat(auto-fit, minmax(300px, 380px)); } }

/* ---------- Forms ---------- */
/* :where() keeps specificity at zero so page-specific input styles still win */
:where(label) { font-weight: 600; font-size: .92rem; color: var(--sh-ink); margin-bottom: 6px; display: block; }
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"],
input[type="url"], input[type="search"], input[type="date"], select, textarea) {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--sh-ink);
  background: #fff; border: 1.5px solid var(--sh-line-strong); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
:where(textarea) { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #94a3b8; }
:where(input, select, textarea):hover { border-color: #94a3b8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sh-blue); box-shadow: var(--sh-ring); }
input:disabled, select:disabled, textarea:disabled { background: #f1f5f9; color: var(--sh-muted); cursor: not-allowed; }
:where(input[type="file"]) { width: 100%; padding: 12px; border: 1.5px dashed var(--sh-line-strong); border-radius: 12px; background: #f8fafc; font: inherit; }
input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 999px;
  background: var(--sh-navy); color: #fff; font-weight: 600; cursor: pointer;
}
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field .error, .sh-field-error { color: var(--sh-danger); font-size: .85rem; margin-top: 6px; }
.field.has-error input, .field.has-error textarea { border-color: var(--sh-danger); }
.note, small.note { color: var(--sh-muted); font-size: .85rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.req { color: var(--sh-danger); }

/* ---------- Alerts ---------- */
.alert, .sh-alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px; border-radius: 12px; border: 1px solid; margin-bottom: 20px; font-size: .95rem;
}
.alert-success, .sh-alert-success { background: var(--sh-success-bg); border-color: #bbf7d0; color: var(--sh-success); }
.alert-danger, .alert-error, .sh-alert-danger { background: var(--sh-danger-bg) !important; border-color: #fecaca !important; color: var(--sh-danger) !important; }
.alert-info, .sh-alert-info { background: var(--sh-info-bg); border-color: #bfdbfe; color: var(--sh-info); }
.alert-warning, .sh-alert-warning { background: var(--sh-warning-bg); border-color: #fde68a; color: var(--sh-warning); }

/* ---------- Home: hero ---------- */
.sh-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(18, 115, 235, .55), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(245, 179, 1, .18), transparent 60%),
    linear-gradient(140deg, var(--sh-navy-950) 0%, var(--sh-navy) 75%);
  padding: clamp(64px, 10vw, 128px) 0 clamp(72px, 10vw, 120px);
}
.sh-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.sh-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.sh-hero .sh-eyebrow { color: #9cc7ff; }
.sh-hero h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.08; margin: 16px 0 20px; letter-spacing: -0.035em; }
.sh-hero h1 .sh-accent { color: var(--sh-gold); }
.sh-hero-lead { color: rgba(255, 255, 255, .8); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 560px; margin: 0 0 32px; }
.sh-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.sh-hero-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.sh-hero-logo {
  width: min(320px, 70%); aspect-ratio: 1; border-radius: 40px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: var(--sh-shadow-lg);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transform: rotate(-4deg);
}
.sh-hero-logo img { width: 62%; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .3)) brightness(1.15); }
.sh-hero-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 14px; background: #fff; color: var(--sh-ink);
  font-weight: 600; font-size: .9rem; box-shadow: var(--sh-shadow-lg);
  animation: sh-float 6s ease-in-out infinite;
}
.sh-hero-chip .sh-dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.sh-hero-chip.c1 { top: 8%; left: 0; }
.sh-hero-chip.c2 { bottom: 12%; right: 0; animation-delay: -3s; }
.sh-hero-chip.c3 { bottom: -2%; left: 10%; animation-delay: -1.5s; }
@keyframes sh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
  .sh-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .sh-hero-visual { min-height: 260px; }
  .sh-hero-chip.c3 { display: none; }
}

/* ---------- Home: stats ---------- */
.sh-stats { margin-top: -44px; position: relative; z-index: 2; }
.sh-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  background: #fff; border: 1px solid var(--sh-line); border-radius: var(--sh-radius-lg); box-shadow: var(--sh-shadow);
}
.sh-stat { padding: 26px 22px; text-align: center; }
.sh-stat + .sh-stat { border-left: 1px solid var(--sh-line); }
.sh-stat strong { display: block; font-family: 'Poppins', sans-serif; font-size: 2rem; color: var(--sh-navy); line-height: 1.1; }
.sh-stat span { color: var(--sh-muted); font-size: .9rem; font-weight: 500; }
@media (max-width: 600px) { .sh-stat + .sh-stat { border-left: 0; border-top: 1px solid var(--sh-line); } }

/* ---------- Home: sections ---------- */
.sh-section { padding: clamp(56px, 8vw, 96px) 0; }
.sh-section.is-white { background: #fff; }
.sh-section.is-tint { background: linear-gradient(180deg, #eef4fc, var(--sh-bg)); }

.sh-about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.sh-about-grid .sh-lead { font-size: 1.1rem; color: var(--sh-slate); margin: 0 0 24px; }
.sh-quote-card {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, var(--sh-navy-700), var(--sh-navy-950));
  border-radius: var(--sh-radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--sh-shadow-lg);
}
.sh-quote-card::before { content: '“'; position: absolute; top: -30px; right: 18px; font-size: 11rem; line-height: 1; color: rgba(245, 179, 1, .25); font-family: Georgia, serif; }
.sh-quote-card::after { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--sh-gold), #ffd45c); }
.sh-quote-card p { color: #fff; font-family: 'Poppins', 'Noto Sans Ethiopic', sans-serif; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; font-weight: 600; margin: 0 0 24px; position: relative; }
@media (max-width: 900px) { .sh-about-grid { grid-template-columns: 1fr; } }

.sh-check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.sh-check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--sh-text); font-weight: 500; }
.sh-check-list li::before {
  content: ''; flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--sh-blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f63cc' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Training cards on home */
.sh-training-card .sh-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em; background: #eef2f7; color: var(--sh-slate);
}
.sh-badge.is-green { background: #e7f8ee; color: #15803d; }
.sh-badge.is-blue { background: var(--sh-blue-50); color: var(--sh-blue-600); }
.sh-badge.is-gold { background: var(--sh-gold-50); color: #a16207; }
.sh-badge.is-gray { background: #f1f5f9; color: var(--sh-muted); }
.sh-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--sh-muted); font-size: .88rem; }
.sh-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Project cards on home */
.sh-project-img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #dbe7f6, #eef4fc); overflow: hidden; }
.sh-project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--sh-ease); }
a.sh-card:hover .sh-project-img img { transform: scale(1.04); }
.sh-project-img .sh-badge { position: absolute; top: 14px; left: 14px; box-shadow: var(--sh-shadow-sm); }

/* CTA band */
.sh-cta {
  position: relative; overflow: hidden; border-radius: 28px; color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, rgba(18, 115, 235, .6), transparent 60%),
              linear-gradient(135deg, var(--sh-navy-900), var(--sh-navy));
  padding: clamp(32px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  box-shadow: var(--sh-shadow-lg);
}
.sh-cta h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.sh-cta p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 560px; }
.sh-cta .sh-hero-actions { flex-shrink: 0; }

/* Partners strip */
.sh-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; }
.sh-logos img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.sh-logos a:hover img, .sh-logos img:hover { filter: none; opacity: 1; }

/* ---------- Prose (about / privacy) ---------- */
.sh-prose { color: var(--sh-text); font-size: 1.04rem; }
.sh-prose h3 { font-size: 1.25rem; margin: 1.8em 0 .6em; }
.sh-prose h3:first-child { margin-top: 0; }
.sh-prose p { margin: 0 0 1em; }
.sh-prose ul, .sh-prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.sh-prose li { margin-bottom: .35em; }

/* ---------- FAQ ---------- */
.sh-faq-tools { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.sh-faq-search { position: relative; }
.sh-faq-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--sh-muted); pointer-events: none; }
.sh-faq-search input { padding-left: 46px; min-height: 54px; border-radius: 999px; box-shadow: var(--sh-shadow-xs); }
.sh-faq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-chip {
  font: inherit; font-size: .88rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--sh-line); background: #fff; color: var(--sh-slate); transition: all .2s;
}
.sh-chip:hover { border-color: var(--sh-navy); color: var(--sh-navy); }
.sh-chip.is-active { background: var(--sh-navy); border-color: var(--sh-navy); color: #fff; }
.sh-faq-group { margin-bottom: 36px; }
.sh-faq-group-title { font-size: 1.1rem; color: var(--sh-blue-600); margin: 0 0 14px; }
.sh-faq-item { background: #fff; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); margin-bottom: 10px; transition: box-shadow .2s, border-color .2s; }
.sh-faq-item[open] { border-color: #c9dbf5; box-shadow: var(--sh-shadow-sm); }
.sh-faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 600; color: var(--sh-ink); font-size: 1.02rem;
}
.sh-faq-item summary::-webkit-details-marker { display: none; }
.sh-faq-item summary svg { flex-shrink: 0; color: var(--sh-muted); transition: transform .25s var(--sh-ease); }
.sh-faq-item[open] summary svg { transform: rotate(180deg); color: var(--sh-blue); }
.sh-faq-item summary:hover { color: var(--sh-navy); }
.sh-faq-answer { padding: 0 22px 20px; color: var(--sh-slate); }

/* ---------- Contact page ---------- */
.sh-contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.sh-contact-grid.is-form-wide { grid-template-columns: .8fr 1.2fr; }
@media (max-width: 900px) { .sh-contact-grid, .sh-contact-grid.is-form-wide { grid-template-columns: 1fr; } }
.sh-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sh-contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.sh-contact-list strong { display: block; color: var(--sh-ink); font-size: .95rem; }
.sh-contact-list a { color: var(--sh-blue-600); font-weight: 600; text-decoration: none; display: block; }
.sh-contact-list a:hover { text-decoration: underline; }
.sh-contact-list span { color: var(--sh-slate); }

/* ---------- Registration ---------- */
.sh-summary-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; }
.sh-summary-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--sh-line); font-size: .95rem; }
.sh-summary-list li:last-child { border-bottom: 0; }
.sh-summary-list span { color: var(--sh-muted); }
.sh-summary-list strong { color: var(--sh-ink); text-align: right; }
.fee-free { color: var(--sh-success) !important; }
.sh-pay-box { background: var(--sh-gold-50); border: 1px solid #fde68a; border-radius: var(--sh-radius); padding: 18px; margin: 4px 0 18px; display: grid; gap: 14px; }
.sh-bank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sh-bank-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 12px 14px; border: 1px solid var(--sh-line); }
.sh-bank-list li > div { display: flex; flex-direction: column; }
.sh-bank-list .account-number { font-family: ui-monospace, Consolas, monospace; font-size: 1.1rem; font-weight: 700; color: var(--sh-navy); letter-spacing: .04em; }
.sh-bank-list small { color: var(--sh-muted); }

/* ---------- Footer ---------- */
.sh-footer { background: var(--sh-navy-950); color: rgba(255, 255, 255, .72); margin-top: auto; padding: 64px 0 0; font-size: .95rem; }
.sh-footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.sh-footer-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.sh-footer-logo img { width: 44px; filter: brightness(1.25); }
.sh-footer-tagline { color: var(--sh-gold); font-weight: 600; margin: 14px 0 20px; }
.sh-footer-heading { color: #fff; font-family: 'Poppins', 'Noto Sans Ethiopic', sans-serif; font-size: 1rem; margin: 0 0 18px; letter-spacing: 0; }
.sh-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sh-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; transition: color .2s; }
.sh-footer a:hover { color: #fff; }
.sh-footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.sh-footer-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--sh-gold); }
.sh-footer-phones { display: flex; flex-direction: column; gap: 2px; }
.sh-social { display: flex; flex-wrap: wrap; gap: 10px; }
.sh-social a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #fff;
  transition: background-color .2s, transform .2s var(--sh-ease), border-color .2s;
}
.sh-social a:hover { background: var(--sh-blue); border-color: var(--sh-blue); transform: translateY(-2px); }
.sh-footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .55);
}
@media (max-width: 900px) { .sh-footer-grid { grid-template-columns: 1fr 1fr; } .sh-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .sh-footer-grid { grid-template-columns: 1fr; gap: 32px; } .sh-footer-bottom { flex-direction: column; text-align: center; } }

/* Hide the old footer/header if any legacy markup is still rendered */
.site-footer, .site-header { display: none; }

/* ---------- Back to top ---------- */
.sh-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--sh-navy); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--sh-shadow); transition: transform .2s var(--sh-ease), background-color .2s;
}
.sh-to-top:hover { background: var(--sh-blue); transform: translateY(-3px); }
.sh-to-top[hidden] { display: none; }

/* ---------- Thank-you / empty states ---------- */
.sh-result { max-width: 640px; margin: 0 auto; text-align: center; }
.sh-result-icon { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--sh-success-bg); color: var(--sh-success); }

/* ---------- Scroll reveal (respects reduced motion) ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.fadeInUp) { opacity: 0; transform: translateY(18px); }
  .reveal.fadeInUp { animation: sh-rise .7s var(--sh-ease) both; }
}
@keyframes sh-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Legacy page tweaks ---------- */
.breadcrumb { font-size: .9rem; color: var(--sh-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--sh-blue-600); }
.modal-card { border-radius: var(--sh-radius-lg); }
.empty-state { text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed var(--sh-line-strong); border-radius: var(--sh-radius-lg); }
.blob { display: none; }

/* ---------- Print ---------- */
@media print {
  .sh-header, .sh-footer, .sh-to-top, .sh-announcement, .sh-nav-backdrop { display: none !important; }
  body { background: #fff; }
}

/* ---------- Resources page fixes ---------- */
.resource-card-footer { flex-wrap: wrap; gap: 10px; }
.resource-card-footer > a, .resource-card-footer .btn { white-space: nowrap; }

/* ---------- Portfolio filters ---------- */
.projects-filters .filter-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.projects-filters .btn-filter, .projects-filters .btn-clear {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  min-height: 46px; padding: 10px 20px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .95rem;
  box-shadow: none; transform: none; text-decoration: none; cursor: pointer;
}
.projects-filters .btn-filter { background: var(--sh-navy); color: #fff; border: 1.5px solid var(--sh-navy); }
.projects-filters .btn-filter:hover { background: var(--sh-navy-700); }
.projects-filters .btn-clear { background: #fff; color: var(--sh-navy); border: 1.5px solid var(--sh-line-strong); }
.projects-filters .btn-filter::before, .projects-filters .btn-filter::after, .projects-filters .btn-clear::before, .projects-filters .btn-clear::after { display: none; }
.projects-filters .filters-container::before { background: linear-gradient(90deg, var(--sh-gold), var(--sh-blue)) !important; }

/* ---------- Mobile refinements (older page layouts) ---------- */
/* Resources search: only the field's magnifier is positioned; button icons stay inline */
.search-input-group .search-button i, .search-input-group .toggle-advanced i { position: static !important; left: auto !important; color: inherit; font-size: inherit; }
@media (max-width: 768px) {
  .search-input-group { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
  .search-input-group .search-input { grid-column: 1 / -1; padding-left: 46px !important; }
  .search-input-group > i.fa-search { top: 26px; transform: translateY(-50%); left: 18px; z-index: 1; }
  .search-input-group .search-button, .search-input-group .toggle-advanced { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 8px; }
}

/* Training: filter chips in a wrapping row, compact info rows */
@media (max-width: 768px) {
  .projects-filter .filter-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; flex-direction: row; }
  .projects-filter .filter-btn { flex: 0 0 auto; width: auto; min-width: 0; padding: 8px 14px; border-radius: 999px; }
  .project-card-enhanced .project-indicator {
    flex-direction: row !important; justify-content: flex-start !important; align-items: center !important;
    text-align: left !important; gap: 10px !important; padding: 10px 12px !important; min-height: 0 !important;
  }
  .project-card-enhanced .indicator-label { margin: 0 !important; }
  .project-card-enhanced .indicator-text { margin-left: auto !important; text-align: right !important; }
}

/* Long breadcrumbs: keep each crumb on one line with an ellipsis */
@media (max-width: 640px) {
  .sh-breadcrumb li { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sh-breadcrumb li:not(:first-child):not(:last-child):not(:nth-last-child(2)) { display: none; }
  .sh-page-hero h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  section.container { padding-top: 36px; padding-bottom: 36px; }
  .sh-section { padding: 44px 0; }
}

/* Comfortable tap targets on touch screens */
@media (pointer: coarse) {
  .sh-footer a, .sh-nav-link { min-height: 40px; display: inline-flex; align-items: center; }
}
