:root {
  --page-width: 1112px;
  --body-font: "Quicksand", sans-serif;
  --muted-text: rgb(89, 89, 89);
  --brand-green: #006400;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: #000000;
  background: #ffffff;
  font-family: var(--body-font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  color: #ffffff;
  background: var(--brand-green);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.references-intro,
.references-logos,
.site-footer {
  background: #ffffff;
}

.references-intro {
  padding: 40px 0 12px;
}

.intro-container {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 0 24px;
}

.intro-card {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 24px;
}

.intro-copy {
  width: 100%;
}

.intro-copy h1 {
  position: relative;
  margin: 0;
  padding: 0 0 22px;
  color: var(--muted-text);
  font-family: var(--body-font);
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

.intro-copy h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: #185127;
  transform: translateX(-50%);
}

.references-logos {
  padding: 24px 24px 40px;
}

.logos-container {
  width: min(100%, 1112px);
  margin: 0 auto;
  display: grid;
  gap: 0;
}

.logo-row {
  min-width: 0;
  margin: 0;
  min-height: 112px;
  padding: 20px 8px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 28px;
  align-items: center;
}

.logo-row:not(:last-child) {
  border-bottom: 1px solid #e5e5e5;
}

.logo-row li {
  min-width: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-row img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
}

.logo-row--one,
.logo-row--two {
  height: auto;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 28px;
}

.logo-row--three {
  height: auto;
}

.case-study-section {
  padding: 36px 24px 56px;
  background: #ffffff;
}

.case-study-container {
  width: min(100%, 1112px);
  margin: 0 auto;
}

.case-study-container h2 {
  margin: 0;
  padding-block: 4px;
  padding-inline: 20px 0;
  border-inline-start: 2px solid #185127;
  color: #185127;
  font-family: var(--body-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  text-align: start;
}

.case-study-section[hidden] { display: none; }
.case-study-list { margin: 30px 0 0; padding: 0; list-style: none; }
.case-study-list li + li { margin-top: 14px; }

.case-study-card {
  width: min(100%, 850px);
  margin-top: 30px;
  padding: 20px;
  border: 1px solid rgb(218, 218, 218);
  border-radius: 9px;
  background: rgb(246, 246, 246);
  display: flex;
  align-items: center;
  gap: 28px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.case-study-card:focus-visible {
  background-color: #ffffff;
  border-color: #185127;
  box-shadow: 0 5px 18px rgba(24, 81, 39, 0.13);
  outline: none;
}

.case-study-card:active {
  background: #ffffff;
  border-color: #185127;
  box-shadow: 0 5px 18px rgba(24, 81, 39, 0.13);
}

.case-study-card:active .case-study-icon {
  background-color: #185127;
}

.case-study-card:active .case-study-icon img {
  filter: brightness(0) invert(1);
}

.case-study-icon {
  width: 76px;
  height: 76px;
  margin: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(24, 81, 39, 0.13);
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.case-study-content {
  min-width: 0;
  flex: 1 1 auto;
}

.case-study-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  /* Give every uploaded icon the same green tint while preserving transparency. */
  filter: brightness(0) saturate(100%) invert(25%) sepia(21%) saturate(1453%) hue-rotate(83deg) brightness(92%) contrast(92%);
}

@media (hover: hover) and (pointer: fine) {
  .case-study-card:hover {
    background-color: #ffffff;
    border-color: #185127;
    box-shadow: 0 5px 18px rgba(24, 81, 39, 0.13);
    outline: none;
  }

  .case-study-card:hover .case-study-icon {
    background-color: #185127;
  }

  .case-study-card:hover .case-study-icon img {
    filter: brightness(0) invert(1);
  }

}

@media (hover: none), (pointer: coarse) {
  .case-study-card:focus,
  .case-study-card:focus-visible {
    background: rgb(246, 246, 246);
    border-color: rgb(218, 218, 218);
    box-shadow: none;
    outline: none;
  }

}

.case-study-card p {
  width: 100%;
  margin: 0;
  color: #1b1b1b;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  text-align: start;
  white-space: pre-line;
}

.site-footer {
  min-height: 164.796875px;
  padding: 56px 24px;
}

.footer-container {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.copyright {
  margin: 0;
  color: var(--muted-text);
  font-size: 16px;
  line-height: 1.8;
}

.powered-by {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--muted-text);
  line-height: 1.8;
}

.powered-by span {
  margin: 0 0 4px;
}

.powered-by img {
  width: 131px;
  height: 20px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .references-intro {
    padding: 16px 0 8px;
  }

  .intro-container {
    padding-inline: clamp(12px, 5vw, 24px);
  }

  .intro-copy {
    width: 100%;
    padding: 0;
  }

  .intro-copy h1 {
    padding-bottom: 12px;
    font-size: var(--references-mobile-title-size, clamp(0.75rem, 3.7vw, 1rem));
    line-height: 1.4;
    width: 100%;
    text-wrap: normal;
    overflow-wrap: break-word;
    text-align: start;
    white-space: normal;
  }

  .intro-copy h1::after {
    inset-inline-start: 0;
    inset-inline-end: auto;
    width: 24px;
    height: 2px;
    transform: none;
  }

  .intro-card {
    padding: 0 0 10px;
  }

  .references-logos {
    padding: 8px 24px 40px;
  }

  .logo-row {
    width: 100%;
    min-height: 0;
    padding: 16px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 24px;
  }

  .logo-row li {
    height: 58px;
  }

  .case-study-section {
    padding: 28px 24px 44px;
  }

  .case-study-container h2 {
    font-size: clamp(1.125rem, 4vw + 0.2rem, 1.375rem);
    overflow-wrap: anywhere;
  }

  .case-study-card {
    align-items: flex-start;
    gap: 24px;
  }

  .case-study-card p {
    margin-top: 30px;
    font-size: clamp(1rem, 2.5vw + 0.5rem, 1.125rem);
    overflow-wrap: anywhere;
  }

  .logo-row img {
    max-width: 100%;
    max-height: 44px;
  }

  .logo-row--one {
    height: auto;
  }

  .logo-row--two {
    height: auto;
  }

  .logo-row--three {
    height: auto;
  }

  .site-footer {
    min-height: 214.390625px;
    padding: 40px 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .powered-by {
    align-items: center;
  }

  .powered-by span {
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  .case-study-card {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .case-study-card p {
    margin-top: 0;
    text-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html[lang="ar"] .references-page main,
html[lang="ar"] .references-page main * {
  font-family: "Tajawal", "Quicksand", sans-serif !important;
}
