:root {
  --main-font: 'Cairo', sans-serif;
}

body {
  font-family:var(--main-font);
}

h1 {
  text-align: center;
}

#mainBannerCarousel {
  max-height: 600px;

  .carousel-item img {
    max-height: 600px;
    object-fit: fill;
  }
}

.site-logo {
  max-width: 100%;
  height: 60px;
}

a {
  color: black;
  text-decoration: none;
}

a:hover {
  color: black;
  text-decoration: none;
}

.breadcrumb {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: medium;
  text-transform: none;
  color: white;
  h4 {
    font-weight: 600;
    margin-top: 7px;
  }
  a {
    color: #000;
  }
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  border-bottom: solid thin lightgray;
}

.breadcrumb .page-heading {
  color: white;
  font-style: normal;
  font-weight: 500;
  text-transform: none;
}

.breadcrumb ol {
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}

.breadcrumb li {
  color: white;
  list-style: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: small;
}

.breadcrumb-item+.breadcrumb-item {
  padding-right: 0px;
  padding-left: 0px;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: #000;
  padding: 0px 3px;
}

.breadcrumb li:after {
  margin: 0 10px;
}

.breadcrumb li:last-child:after {
  margin: 0;
}

.card-img-top {
  height: 250px;
  max-width: 100%;
  object-fit: contain;
}

.post-img img {
  height: 500px;
  object-fit: contain;
}

.post-cover-img img {
  height: 200px;
  object-fit: contain;
}

.fa-check {
  color: green;
}

.fa-times {
  color: red;
}

.posts-indicators {
  bottom: -70px;
  filter: invert(100%);
  margin-bottom: 50px;
}

.posts-carousel {
  height: 320px;
}

.google-map {
  iframe {
    width: 100%;
    height: 400px;
  }
}

.contact-us {
  background-color: #104f955e;
  border: 1px solid #104f955c;
}

.post-card {
  width: fit-content;
}

.float-whats {
  position: fixed;
  right: 40px;
  width: 60px;
  height: 60px;
  bottom: 40px;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index:100;
}

.float-messenger {
  position: fixed;
  right: 110px;
  width: 60px;
  height: 60px;
  bottom: 40px;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index:100;
}

.float-whats {
   background-color: #25d366;
  .fa-whatsapp {
    color: #fff;
  }
}

.float-messenger {
   background-color: #168AFF;
  .fa-facebook-messenger {
    color: #FFF;
  }
}

.fixed-button {
  margin-top: 16px;
}

.page-block-thumb {
  max-height: 120px;
  max-width: 180px;
  object-fit: contain;
}

.page-block-editor-header {
  gap: 1rem;
}

.page-block-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.page-icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
}

.page-icon-option {
  cursor: pointer;
  margin: 0;
  position: relative;
}

.page-icon-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-icon-option-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d8dee4;
  border-radius: 6px;
  background: #fff;
}

.page-icon-option-content i,
.page-icon-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: #104f95;
}

.page-icon-option input:checked + .page-icon-option-content {
  border-color: #104f95;
  background: #eef5fd;
  box-shadow: 0 0 0 1px #104f95 inset;
}

.cms-page {
  max-width: 1040px;
  margin: 0 auto;
}

.cms-block {
  display: flow-root;
  clear: both;
  margin: 2.5rem 0;
}

.cms-block h1,
.cms-block h2 {
  text-align: inherit;
  margin-bottom: 1rem;
}

.cms-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f6f8;
}

.cms-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cms-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  .btn {
    background: #104f95;
    color: #fff;
    margin-top: 0.5rem;
  }
}

.cms-hero.has-image .cms-hero-content {
  color: #1f2937;
  margin: 3rem;
  border-radius: 8px;
  background: rgba(172, 172, 172, 0.69);
  padding: 0.8rem;
}

.cms-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: #fff;
  background: #104f95;
}

img.cms-block-image,
img.cms-full-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
}

.cms-video,
.cms-video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #000;
}

.cms-video-embed {
  margin-bottom: 1rem;
}

img.cms-full-image {
  margin-bottom: 1rem;
}

.cms-image-content {
  clear: both;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.cms-image-content h2,
.cms-image-content .cms-rich-text,
.cms-image-content .cms-rich-text p {
  margin: 0;
}

.cms-rich-text {
  line-height: 1.8;
}

.cms-page-links {
  max-width: 1040px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #d8dee4;
}

.cms-page-links h2 {
  margin-bottom: 1rem;
  text-align: inherit;
  font-size: 1.25rem;
}

.cms-page-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cms-page-links a {
  display: inline-flex;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d8dee4;
  border-radius: 6px;
  background: #fff;
}

.cms-block-quote blockquote {
  border-inline-start: 4px solid #104f95;
  padding: 1.5rem;
  background: #f8f9fa;
}

.cms-cta {
  padding: 2rem;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 800px) {
  .card-img-top {
    height: 150px;
  }

  .posts-carousel {
    height: 230px;
  }

  .posts-indicators {
    bottom: -90px;
    filter: invert(100%);
    margin-bottom: 50px;
  }

  .post-img img {
    height: 200px;
  }

  .float-whats {
    right: 10px;
  }

  .float-messenger {
    right: 10px;
    bottom: 110px;
  }

  .cms-hero {
    min-height: 280px;
  }

  .cms-hero-content {
    padding: 1.5rem;
  }

  .cms-hero.has-image .cms-hero-content {
    margin: 1rem;
  }

  .page-block-editor-header {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .page-block-editor-actions {
    justify-content: flex-start;
  }
}

lexxy-editor.form-control .lexxy-content__table-wrapper {
  margin: 0;
  margin-block: 1ch;
  overflow-x: auto;
}

lexxy-editor.form-control table {
  border-collapse: collapse;
  border-spacing: 0;
  inline-size: calc(100% - 0.5ch);
  margin: 0.25ch;
}

lexxy-editor.form-control table th,
lexxy-editor.form-control table td {
  border: 1px solid var(--lexxy-color-table-cell-border);
  min-width: 5ch;
  max-width: 50ch;
  padding: 1ch;
  text-align: start;
  word-break: normal;
}

lexxy-editor.form-control table th.lexxy-content__table-cell--header,
lexxy-editor.form-control table td.lexxy-content__table-cell--header {
  background-color: var(--lexxy-color-table-header-bg);
  font-weight: bold;
}

.team-member-card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-member-img {
  width: 75%;
  min-height: 250px;
}
.partner-logo {
  width: 80%;
  border-radius: 0.5rem;
  max-width: 250px;
}

.partner-name {
  overflow-wrap: break-word;
}

.lexxy-content,
.lexxy-content * {
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

.dropdown-item {
  color: black !important;
}

.pdf-preview {
  width: 100%;
  min-height: 700px;

}

/* =========================================================================
   Accessibility foundations (WCAG 2.2 AA)
   ========================================================================= */

html {
  scroll-behavior: smooth;
  /* 2.4.11 Focus Not Obscured: keep anchored targets clear of the header. */
  scroll-padding-block-start: 6rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 2.4.1 Bypass Blocks */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -6rem;
  z-index: 2000;
  padding: 0.85rem 1.4rem;
  border-radius: 0 0 10px 10px;
  background: #ffffff;
  color: #14181f;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(16, 19, 28, 0.25);
  transition: inset-block-start 0.15s ease-in-out;
}

.skip-link:focus {
  inset-block-start: 0;
  color: #14181f;
}

/* 2.4.7 Focus Visible */
:focus-visible {
  outline: 3px solid var(--nf-focus, #0b57d0);
  outline-offset: 2px;
  border-radius: 4px;
}

.nf-deep :focus-visible,
.desktop-nav :focus-visible,
.mobile-nav :focus-visible,
.offcanvas :focus-visible,
.site-footer :focus-visible {
  outline-color: #ffffff;
}

/* 2.5.8 Target Size (Minimum) */
.language-switch,
.footer-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 24px;
  padding-block: 0.25rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin: 1rem 0 0;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 48px;
  min-block-size: 48px;
  border-radius: 50%;
}

.footer-contact {
  line-height: 1.8;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* =========================================================================
   Shared page shell and content components
   Used by the home page and by any public page that opts in with .nf-page.
   ========================================================================= */

.nf-page {
  --nf-gutter: clamp(1rem, 4vw, 2.5rem);
  color: var(--nf-text);
}

.nf-shell {
  inline-size: 100%;
  max-inline-size: 1160px;
  margin-inline: auto;
  padding-inline: var(--nf-gutter);
}

.nf-section {
  padding-block: clamp(1.375rem, 3vw, 2.5rem);
}

.nf-page h1,
.nf-page h2,
.nf-page h3 {
  text-align: start;
  color: var(--nf-text);
}

.nf-deep {
  background-color: var(--nf-deep);
  color: var(--nf-deep-on);
}

.nf-deep h1,
.nf-deep h2,
.nf-deep h3 {
  color: var(--nf-deep-on);
}

.nf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--nf-accent-link);
}

.nf-eyebrow::before {
  content: "";
  inline-size: 1.75rem;
  block-size: 3px;
  border-radius: 3px;
  background: currentColor;
  flex: none;
}

.nf-eyebrow--onDeep {
  color: var(--nf-deep-muted);
}

/* --- Buttons ------------------------------------------------------------ */

.nf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-block-size: 48px;
  padding: 0.7rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.nf-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.nf-btn.nf-btn--primary {
  background: var(--nf-primary);
  border-color: var(--nf-primary);
  color: var(--nf-primary-on);
}

.nf-btn.nf-btn--primary:hover {
  background: var(--nf-primary-hover);
  border-color: var(--nf-primary-hover);
  color: var(--nf-primary-hover-on);
}

.nf-btn.nf-btn--light {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--nf-deep);
}

.nf-btn.nf-btn--light:hover {
  background: var(--nf-surface-soft);
  border-color: var(--nf-surface-soft);
  color: var(--nf-deep);
}

.nf-btn.nf-btn--ghostLight {
  background: transparent;
  border-color: currentColor;
  color: var(--nf-deep-on);
}

.nf-btn.nf-btn--ghostLight:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--nf-deep-on);
}

.nf-btn.nf-btn--outline {
  background: #ffffff;
  border-color: var(--nf-primary-border);
  color: var(--nf-primary-link);
}

.nf-btn.nf-btn--outline:hover {
  background: var(--nf-surface-muted);
  color: var(--nf-primary-link);
}

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nf-actions--center {
  justify-content: center;
}

.nf-actions__status {
  flex-basis: 100%;
  margin: 0.5rem 0 0;
  min-block-size: 1.5rem;
  font-weight: 600;
  color: var(--nf-deep-on);
}

.nf-textLink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-block-size: 44px;
  font-weight: 700;
  color: var(--nf-primary-link);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.nf-textLink:hover {
  color: var(--nf-primary-hover);
}

/* --- Hero --------------------------------------------------------------- */

.home-hero {
  padding-block: clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(100% 100% at 0% 100%, rgba(255, 255, 255, 0.09), transparent 60%),
    var(--nf-deep);
}

.home-hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.home-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 1.15rem + 2.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.28;
  text-wrap: balance;
}

.home-hero__subtitle {
  margin: 0 0 2rem;
  max-inline-size: 60ch;
  font-size: clamp(1rem, 0.96rem + 0.35vw, 1.2rem);
  line-height: 1.9;
  color: var(--nf-deep-muted);
}

.home-hero__media {
  display: flex;
  justify-content: center;
}

.home-hero__image {
  inline-size: 100%;
  max-inline-size: 540px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.home-hero__medallion {
  display: grid;
  place-items: center;
  inline-size: min(340px, 76vw);
  aspect-ratio: 1;
  padding: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.home-hero__logo {
  inline-size: 100%;
  block-size: auto;
  object-fit: contain;
}

/* --- Section headers ---------------------------------------------------- */

.nf-sectionHeader {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-block-end: clamp(1.5rem, 3vw, 2.5rem);
}

.nf-sectionHeader__text {
  max-inline-size: 62ch;
}

.nf-sectionHeader__title {
  margin: 0;
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
}

.nf-sectionHeader__lead {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--nf-text-muted);
}

/* --- Intro -------------------------------------------------------------- */

.home-intro {
  background: var(--nf-surface-muted);
}

.home-intro__inner {
  max-inline-size: 820px;
  text-align: center;
}

.home-intro__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.home-intro__body {
  text-align: start;
}

.nf-prose {
  font-size: clamp(1rem, 0.97rem + 0.28vw, 1.125rem);
  line-height: 2;
  color: var(--nf-text);
}

.nf-prose p {
  margin: 0 0 1rem;
}

.nf-prose p:last-child {
  margin-bottom: 0;
}

.nf-prose a {
  color: var(--nf-primary-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-intro__link {
  margin-block-start: 1.5rem;
}

/* --- Cards -------------------------------------------------------------- */

.nf-cardGrid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.75rem);
  /* auto-fill (not auto-fit) so a section with one or two items keeps card-sized
     cards instead of stretching them across the whole row. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.nf-cardGrid--wide {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}

.nf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--nf-surface);
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius);
  box-shadow: var(--nf-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.nf-card:hover {
  transform: translateY(-3px);
  border-color: var(--nf-primary-border);
  box-shadow: var(--nf-shadow-lg);
}

.nf-card__media {
  background: var(--nf-surface-soft);
}

.nf-card__image {
  display: block;
  inline-size: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.nf-card__media--tall .nf-card__image {
  aspect-ratio: 4 / 3;
}

.nf-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.nf-card__meta {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nf-text-muted);
}

.nf-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
}

.nf-card__link {
  color: var(--nf-text);
  text-decoration: none;
}

/* Makes the whole card clickable while keeping one tab stop per card. */
.nf-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.nf-card__link:hover {
  color: var(--nf-primary-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nf-card__text {
  margin: 0;
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--nf-text-muted);
}

/* --- Impact stats ------------------------------------------------------- */

.home-stats__title {
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 800;
  text-align: center;
}

.home-stats__grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-stat {
  padding: 1.65rem 1.15rem;
  text-align: center;
  border: 1px solid var(--nf-deep-border);
  border-radius: var(--nf-radius);
  background: rgba(255, 255, 255, 0.06);
}

.home-stat__value {
  margin: 0 0 0.5rem;
  font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--nf-deep-on);
  direction: ltr;
  unicode-bidi: isolate;
}

.home-stat__label {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--nf-deep-on);
}

.home-stat__hint {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--nf-deep-muted);
}

/* --- Partners ----------------------------------------------------------- */

.nf-partners {
  background: var(--nf-surface-muted);
}

.nf-partnerGrid {
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.nf-partner__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  block-size: 100%;
  padding: 1.25rem 1rem;
  background: #ffffff;
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius-sm);
  color: var(--nf-text);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

a.nf-partner__link:hover {
  transform: translateY(-2px);
  border-color: var(--nf-primary-border);
  box-shadow: var(--nf-shadow);
  color: var(--nf-text);
}

.nf-partner__logoWrap {
  display: grid;
  place-items: center;
  inline-size: 100%;
  block-size: 64px;
}

.nf-partner__logo {
  max-block-size: 64px;
  max-inline-size: 100%;
  object-fit: contain;
}

.nf-partner__logoFallback {
  display: grid;
  place-items: center;
  inline-size: 56px;
  block-size: 56px;
  border-radius: 50%;
  background: var(--nf-surface-soft);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--nf-text-muted);
}

.nf-partner__name {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--nf-text-muted);
  overflow-wrap: anywhere;
}

/* --- Featured story ----------------------------------------------------- */

.home-story__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 860px) {
  .home-story__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.home-story__image {
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--nf-radius);
  box-shadow: var(--nf-shadow);
}

.home-story__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.35;
}

.home-story__text {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--nf-text-muted);
}

/* --- News --------------------------------------------------------------- */

.home-news {
  background: var(--nf-surface-muted);
}

/* --- Closing call to action --------------------------------------------- */

.home-cta__inner {
  max-inline-size: 780px;
  text-align: center;
}

.home-cta__title {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.home-cta__text {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--nf-deep-muted);
}

/* =========================================================================
   Page header, article and listing chrome
   Shared by the posts pages; any other public page can adopt them.
   ========================================================================= */

.nf-pageHeader {
  padding-block: clamp(1rem, 2.4vw, 1.85rem);
  background: var(--nf-surface-muted);
  border-block-end: 1px solid var(--nf-border);
}

.nf-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.4rem;
  margin: 0 0 0.35rem;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
}

.nf-breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: var(--nf-text-muted);
}

.nf-breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 0.4rem;
  color: var(--nf-text-muted);
}

.nf-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-block-size: 24px;
  color: var(--nf-primary-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nf-breadcrumb a:hover {
  color: var(--nf-primary-hover);
}

.nf-breadcrumb [aria-current="page"] {
  color: var(--nf-text-muted);
}

.nf-pageHeader__title {
  margin: 0;
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
}

.nf-pageHeader__lead {
  margin: 0.6rem 0 0;
  max-inline-size: 70ch;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--nf-text-muted);
}

/* --- Admin toolbar (listings) ------------------------------------------- */

.nf-adminBar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: clamp(1.5rem, 3vw, 2.25rem);
  padding: 1rem;
  border: 1px dashed var(--nf-border);
  border-radius: var(--nf-radius-sm);
  background: var(--nf-surface-muted);
}

.nf-searchForm {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 22rem;
}

.nf-searchForm__field {
  flex: 1 1 12rem;
  min-inline-size: 0;
}

.nf-searchForm__actions,
.nf-adminBar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* --- Listing states ------------------------------------------------------ */

.nf-empty {
  margin: 0;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  color: var(--nf-text-muted);
  background: var(--nf-surface-muted);
  border: 1px dashed var(--nf-border);
  border-radius: var(--nf-radius);
}

.nf-pagination {
  margin-block-start: clamp(1.75rem, 4vw, 2.75rem);
}

.nf-card__badge {
  align-self: flex-start;
  margin: 0;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nf-text-muted);
  background: var(--nf-surface-soft);
  border: 1px solid var(--nf-border);
  border-radius: 999px;
}

/* --- Article -------------------------------------------------------------- */

.nf-article {
  max-inline-size: 920px;
}

.nf-article__media {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(0.75rem, 2vw, 1.25rem);
  background: var(--nf-surface-soft);
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius);
}

.nf-article__image {
  display: block;
  inline-size: 100%;
  max-block-size: clamp(320px, 52vh, 560px);
  margin-inline: auto;
  object-fit: contain;
}

.nf-embedGroup {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-block-end: clamp(1.5rem, 3vw, 2.25rem);
}

.nf-embedGroup iframe,
.nf-embedGroup video {
  max-inline-size: 100%;
  border: 0;
  border-radius: var(--nf-radius-sm);
}

.nf-articleFooter {
  margin-block-start: clamp(2rem, 4vw, 3rem);
  padding-block-start: clamp(1.5rem, 3vw, 2rem);
  border-block-start: 1px solid var(--nf-border);
}

/* --- Rich text ------------------------------------------------------------ */

.nf-prose h2,
.nf-prose h3,
.nf-prose h4 {
  margin: 2rem 0 0.75rem;
  font-weight: 800;
  line-height: 1.35;
}

.nf-prose h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
}

.nf-prose h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
}

.nf-prose h4 {
  font-size: 1.0625rem;
}

.nf-prose ul,
.nf-prose ol {
  margin: 0 0 1.25rem;
  padding-inline-start: 1.5rem;
}

.nf-prose li {
  margin-block-end: 0.6rem;
}

.nf-prose img {
  max-inline-size: 100%;
  block-size: auto;
  border-radius: var(--nf-radius-sm);
}

.nf-prose blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-inline-start: 4px solid var(--nf-primary-border);
  border-radius: var(--nf-radius-sm);
  background: var(--nf-surface-muted);
}

.nf-prose blockquote p:last-child {
  margin-bottom: 0;
}

.nf-prose hr {
  margin: 2rem 0;
  border: 0;
  border-block-start: 1px solid var(--nf-border);
}

/* --- Admin panel ---------------------------------------------------------- */

.nf-adminPanel {
  margin-block-start: clamp(2rem, 4vw, 3rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--nf-surface-muted);
  border: 1px dashed var(--nf-border);
  border-radius: var(--nf-radius);
}

.nf-adminPanel__title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

/* --- Teams and people ----------------------------------------------------- */

.nf-teamGroups > .nf-teamGroup + .nf-teamGroup {
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
  padding-block-start: clamp(2rem, 4vw, 3rem);
  border-block-start: 1px solid var(--nf-border);
}

.nf-headingLink {
  color: var(--nf-text);
  text-decoration: none;
}

.nf-headingLink:hover {
  color: var(--nf-primary-link);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nf-metaRow {
  margin: 0.5rem 0 0;
}

.nf-cardGrid--people {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}

.nf-personCard__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--nf-surface-soft);
}

.nf-personCard__image {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.nf-personCard__placeholder {
  display: grid;
  place-items: center;
  block-size: 100%;
  font-size: 3.25rem;
  color: var(--nf-text-muted);
}

.nf-personCard__status {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-end: 0.5rem;
  z-index: 1;
}

.nf-personCard__status .badge {
  margin: 0 !important;
  font-size: 0.75rem !important;
}

.nf-personCard__role {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nf-text-muted);
}

.nf-personCard__socials {
  /* Raised above the card-wide link overlay so these stay clickable. */
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.nf-socialLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  border-radius: 50%;
  color: var(--nf-primary-link);
}

.nf-socialLink:hover {
  color: var(--nf-primary-hover);
  background: var(--nf-surface-muted);
}

.nf-eyebrow--plain {
  margin-block-end: 0.35rem;
  font-size: 0.85rem;
}

.nf-eyebrow--plain::before {
  content: none;
}

/* --- "Back to section" link ---------------------------------------------- */

.nf-backLink {
  /* The arrow nudges towards the reading start on hover, so the direction is
     mirrored for RTL below. */
  --nf-back-nudge: -3px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-block-size: 44px;
  padding-block: 0.45rem;
  padding-inline: 0.5rem 1.35rem;
  background: var(--nf-surface);
  border: 1px solid var(--nf-border);
  border-radius: 999px;
  color: var(--nf-text);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

[dir="rtl"] .nf-backLink {
  --nf-back-nudge: 3px;
}

.nf-backLink__icon {
  display: grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--nf-surface-muted);
  color: var(--nf-primary-link);
  font-size: 0.8125rem;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nf-backLink__label {
  min-inline-size: 0;
}

.nf-backLink:hover {
  background: var(--nf-surface-muted);
  border-color: var(--nf-primary-border);
  box-shadow: var(--nf-shadow);
  color: var(--nf-text);
}

.nf-backLink:hover .nf-backLink__icon {
  background: var(--nf-primary);
  color: var(--nf-primary-on);
  transform: translateX(var(--nf-back-nudge));
}

/* Page-level actions sit opposite the title rather than in a panel of their own. */
.nf-pageHeader__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.nf-pageHeader__text {
  flex: 1 1 18rem;
  min-inline-size: 0;
}

.nf-pageHeader__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* =========================================================================
   Admin dashboard
   ========================================================================= */

.nf-sectionAlt {
  background: var(--nf-surface-muted);
}

.nf-adminGrid {
  display: grid;
  gap: clamp(0.75rem, 1.8vw, 1.25rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.nf-adminCard {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  background: var(--nf-surface);
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius);
  box-shadow: var(--nf-shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nf-adminCard:hover,
.nf-adminCard:focus-within {
  transform: translateY(-2px);
  border-color: var(--nf-primary-border);
  box-shadow: var(--nf-shadow-lg);
}

.nf-adminCard__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nf-adminCard__icon {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 12px;
  background: var(--nf-surface-muted);
  color: var(--nf-primary-link);
  font-size: 1.05rem;
}

.nf-adminCard__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.nf-adminCard__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 0;
}

.nf-adminCard__metric strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--nf-text);
  /* Counts stay in Latin digits regardless of the page direction. */
  direction: ltr;
  unicode-bidi: isolate;
}

.nf-adminCard__metric > span {
  font-size: 0.8125rem;
  color: var(--nf-text-muted);
}

.nf-adminCard__text {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--nf-text-muted);
}

.nf-adminCard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-block-start: 0.15rem;
}

/* --- Editor-authored content: embeds, tables and highlights --------------- */

.nf-embed {
  inline-size: min(100%, 480px);
  overflow: hidden;
  border-radius: var(--nf-radius-sm);
  background: #000;
}

.nf-embed iframe {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  border: 0;
}

/* Wide tables scroll on their own so the page never scrolls sideways (1.4.10).
   The region is focusable, so the scroll is reachable by keyboard (2.1.1). */
.nf-tableScroll {
  max-inline-size: 100%;
  overflow-x: auto;
  margin-block-end: 1.25rem;
}

.nf-prose table {
  inline-size: 100%;
  border-collapse: collapse;
}

.nf-prose th,
.nf-prose td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--nf-border);
  text-align: start;
}

.nf-prose th {
  background: var(--nf-surface-muted);
  font-weight: 700;
}

/* Editor highlight colours are stripped server-side; these are contrast-checked. */
.nf-prose mark {
  padding: 0.05em 0.25em;
  border-radius: 4px;
  background: var(--nf-surface-soft);
  color: var(--nf-text);
}

.nf-prose a {
  color: var(--nf-primary-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nf-prose a:hover {
  color: var(--nf-primary-hover);
}
