/* Orphan Sponsorship page sections */
.uwt-os-banner,
.uwt-os-banner *,
.uwt-os-foundation,
.uwt-os-foundation *,
.uwt-os-hadith,
.uwt-os-hadith * {
  box-sizing: border-box;
}

.uwt-os-banner {
  --uwt-primary: #082c5e;
  --uwt-secondary: #0f6fa4;
  width: 100%;
  padding: 30px 0;
  background: #ffffff;
  font-family: "Nunito Sans", "Nunito", Arial, sans-serif;
  overflow: hidden;
}

.uwt-os-banner__inner {
  width: min(1120px, calc(100% - 48px));
  min-height: 400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  overflow: hidden;
  border-radius: 28px;
  background: var(--uwt-primary);
  box-shadow: 0 24px 62px rgba(8, 44, 94, .16);
}

.uwt-os-banner__copy {
  position: relative;
  z-index: 2;
  padding: 44px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 8% 8%, rgba(15, 111, 164, .26), transparent 34%),
    linear-gradient(135deg, #082c5e 0%, #062a59 100%);
}

.uwt-os-banner__copy::after {
  content: "";
  position: absolute;
  top: 0;
  right: -72px;
  width: 120px;
  height: 100%;
  background: inherit;
  transform: skewX(-7deg);
  transform-origin: top;
  z-index: -1;
}

.uwt-os-banner__copy span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 15px;
  color: #d9f0ff;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.uwt-os-banner__copy span::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.uwt-os-banner__copy h1 {
  max-width: 520px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 4.6vw, 62px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.uwt-os-banner__copy p {
  max-width: 500px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 650;
  letter-spacing: 0;
}

.uwt-os-banner__copy a {
  width: fit-content;
  min-height: 46px;
  margin-top: 26px;
  padding: 0 25px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--uwt-primary) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
  transition: transform .22s ease, background .22s ease, color .22s ease;
}

.uwt-os-banner__copy a::after {
  content: "›";
  margin-left: 10px;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.uwt-os-banner__copy a:hover,
.uwt-os-banner__copy a:focus-visible {
  background: var(--uwt-secondary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.uwt-os-banner__image {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  background: #dfe8ef;
}

.uwt-os-banner__image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8, 44, 94, .22), rgba(8, 44, 94, .02) 46%),
    linear-gradient(180deg, rgba(8, 44, 94, .02), rgba(8, 44, 94, .16));
  pointer-events: none;
}

.uwt-os-banner__image img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform .55s ease;
}

.uwt-os-banner__inner:hover .uwt-os-banner__image img {
  transform: scale(1.055);
}

.uwt-os-foundation {
  --uwt-primary: #082c5e;
  --uwt-secondary: #0f6fa4;
  --uwt-text: #41546a;
  width: 100%;
  padding: 58px 0 86px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 58%, #ffffff 100%);
  font-family: "Nunito Sans", "Nunito", Arial, sans-serif;
  overflow: hidden;
}

.uwt-os-foundation__inner {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.uwt-os-foundation__inner::before {
  content: "";
  position: absolute;
  right: 0;
  top: -18px;
  width: 360px;
  height: 360px;
  opacity: .38;
  background: repeating-linear-gradient(135deg, rgba(15, 111, 164, .13) 0, rgba(15, 111, 164, .13) 1px, transparent 1px, transparent 22px);
  mask-image: radial-gradient(circle, #000 0 48%, transparent 72%);
  pointer-events: none;
}

.uwt-os-foundation__statement {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 64px;
  align-items: start;
}

.uwt-os-foundation__statement h2 {
  max-width: 520px;
  margin: 0;
  color: var(--uwt-primary);
  font-size: clamp(42px, 4.8vw, 68px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: 0;
  animation: uwtOsFoundationIn .7s ease both;
}

.uwt-os-foundation__body {
  animation: uwtOsFoundationIn .7s ease .08s both;
}

.uwt-os-foundation__body p {
  max-width: 730px;
  margin: 0;
  color: var(--uwt-text);
  font-size: 18px;
  line-height: 1.72;
  font-weight: 650;
  letter-spacing: 0;
}

.uwt-os-foundation__body p + p {
  margin-top: 18px;
}

.uwt-os-foundation__support {
  position: relative;
  z-index: 2;
  margin-top: 58px;
  animation: uwtOsFoundationIn .7s ease .16s both;
}

.uwt-os-foundation__support h3 {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--uwt-primary);
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.uwt-os-foundation__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(15, 111, 164, .16);
  border-bottom: 1px solid rgba(15, 111, 164, .16);
}

.uwt-os-foundation__items article {
  position: relative;
  min-height: 190px;
  padding: 30px 30px 32px 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  transition: transform .26s ease;
}

.uwt-os-foundation__items article + article {
  padding-left: 30px;
  border-left: 1px solid rgba(15, 111, 164, .14);
}

.uwt-os-foundation__items article::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: calc(100% - 30px);
  height: 3px;
  background: linear-gradient(90deg, var(--uwt-primary), var(--uwt-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}

.uwt-os-foundation__items article:hover {
  transform: translateY(-4px);
}

.uwt-os-foundation__items article:hover::before {
  transform: scaleX(1);
}

.uwt-os-foundation__items span {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(15, 111, 164, .09);
  color: var(--uwt-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  transition: background .26s ease, color .26s ease, transform .26s ease;
}

.uwt-os-foundation__items article:hover span {
  background: var(--uwt-primary);
  color: #ffffff;
  transform: scale(1.04);
}

.uwt-os-foundation__items h4 {
  margin: 0;
  color: var(--uwt-primary);
  font-size: 25px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.uwt-os-foundation__items p {
  max-width: 270px;
  margin: 10px 0 0;
  color: var(--uwt-text);
  font-size: 16px;
  line-height: 1.58;
  font-weight: 650;
}

.uwt-os-hadith {
  --uwt-blue: #0d3766;
  --uwt-blue-deep: #072848;
  --uwt-blue-mid: #0f4a78;
  --uwt-blue-soft: #a9dff8;
  position: relative;
  isolation: isolate;
  width: min(1160px, calc(100% - 36px));
  min-height: 390px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: minmax(360px, .98fr) minmax(0, 1.02fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(125deg, var(--uwt-blue-deep) 0%, var(--uwt-blue) 62%, var(--uwt-blue-mid) 100%);
  box-shadow: 0 26px 68px rgba(8, 40, 76, .22);
}

.uwt-os-hadith::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  height: 100%;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .035) 25%, transparent 25%) 0 0 / 34px 34px,
    linear-gradient(225deg, rgba(255, 255, 255, .026) 25%, transparent 25%) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(169, 223, 248, .045), rgba(169, 223, 248, .01));
  opacity: .44;
  animation: uwtHadithPatternMove 14s ease-in-out infinite alternate;
}

.uwt-os-hadith__media {
  position: relative;
  min-height: 390px;
  margin: 0;
  overflow: hidden;
  animation: uwtHadithMediaIn 760ms cubic-bezier(.2, .8, .2, 1) both;
}

.uwt-os-hadith__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(7, 40, 72, .08) 56%, rgba(7, 40, 72, .42) 100%);
  pointer-events: none;
}

.uwt-os-hadith__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.01);
  transition: transform 900ms ease;
}

.uwt-os-hadith:hover .uwt-os-hadith__image {
  transform: scale(1.04);
}

.uwt-os-hadith__content {
  position: relative;
  z-index: 2;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 62px);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
  animation: uwtHadithTextIn 760ms cubic-bezier(.2, .8, .2, 1) 120ms both;
}

.uwt-os-hadith__content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .026) 0 1px, transparent 1px 18px),
    linear-gradient(90deg, rgba(255, 255, 255, .018), transparent 62%);
  opacity: .34;
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
  animation: uwtHadithTextureShift 12s ease-in-out infinite alternate;
}

.uwt-os-hadith__quote {
  width: min(100%, 560px);
  margin: 0;
  color: rgba(255, 255, 255, .94);
  font-family: inherit;
  font-size: clamp(21px, 2.05vw, 29px);
  font-weight: 700;
  line-height: 1.46;
  letter-spacing: 0;
}

.uwt-os-hadith__source {
  margin: 18px 0 0;
  color: var(--uwt-blue-soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .04em;
}

@keyframes uwtOsFoundationIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes uwtHadithMediaIn {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes uwtHadithTextIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes uwtHadithPatternMove {
  from { transform: translate3d(-8px, 0, 0); opacity: .3; }
  to { transform: translate3d(10px, 0, 0); opacity: .48; }
}

@keyframes uwtHadithTextureShift {
  from { transform: translate3d(-8px, 0, 0); opacity: .24; }
  to { transform: translate3d(8px, 0, 0); opacity: .36; }
}

@media (max-width: 920px) {
  .uwt-os-banner__inner {
    grid-template-columns: 1fr;
  }

  .uwt-os-banner__copy {
    order: 2;
  }

  .uwt-os-banner__copy::after {
    display: none;
  }

  .uwt-os-banner__image {
    order: 1;
    min-height: 285px;
  }

  .uwt-os-banner__image img {
    min-height: 285px;
  }

  .uwt-os-foundation {
    padding: 46px 0 66px;
  }

  .uwt-os-foundation__statement {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .uwt-os-foundation__items {
    grid-template-columns: 1fr;
  }

  .uwt-os-foundation__items article,
  .uwt-os-foundation__items article + article {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(15, 111, 164, .14);
  }

  .uwt-os-foundation__items article:last-child {
    border-bottom: 0;
  }

  .uwt-os-foundation__items article::before {
    width: 100%;
  }

  .uwt-os-foundation__items p {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .uwt-os-hadith {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .uwt-os-hadith__media {
    min-height: 330px;
  }

  .uwt-os-hadith__media::after {
    background: linear-gradient(180deg, transparent 0%, rgba(7, 40, 72, .16) 62%, rgba(7, 40, 72, .64) 100%);
  }

  .uwt-os-hadith__content {
    min-height: auto;
    padding: 34px 28px 38px;
  }

  .uwt-os-hadith__content::before {
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
  }

  .uwt-os-hadith__quote {
    font-size: 22px;
    line-height: 1.44;
  }
}

@media (max-width: 680px) {
  .uwt-os-banner {
    padding: 22px 0;
  }

  .uwt-os-banner__inner,
  .uwt-os-foundation__inner {
    width: min(100% - 28px, 1120px);
  }

  .uwt-os-banner__inner {
    min-height: auto;
    border-radius: 22px;
  }

  .uwt-os-banner__copy {
    padding: 28px 22px 30px;
  }

  .uwt-os-banner__copy h1 {
    font-size: 39px;
    line-height: 1.02;
  }

  .uwt-os-banner__copy p,
  .uwt-os-foundation__body p {
    font-size: 16px;
    line-height: 1.62;
  }

  .uwt-os-banner__copy a {
    width: 100%;
  }

  .uwt-os-banner__image,
  .uwt-os-banner__image img {
    min-height: 230px;
  }

  .uwt-os-foundation {
    padding: 34px 0 54px;
  }

  .uwt-os-foundation__statement h2 {
    font-size: 37px;
    line-height: 1.04;
  }

  .uwt-os-foundation__support {
    margin-top: 42px;
  }

  .uwt-os-foundation__support h3 {
    font-size: 29px;
  }

  .uwt-os-foundation__items article {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 15px;
  }

  .uwt-os-foundation__items span {
    width: 46px;
    height: 46px;
    font-size: 13px;
  }

  .uwt-os-foundation__items h4 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uwt-os-banner__image img,
  .uwt-os-foundation__items article,
  .uwt-os-foundation__items article::before,
  .uwt-os-foundation__items span,
  .uwt-os-hadith__image {
    transition: none;
  }

  .uwt-os-foundation__statement h2,
  .uwt-os-foundation__body,
  .uwt-os-foundation__support,
  .uwt-os-hadith::before,
  .uwt-os-hadith__media,
  .uwt-os-hadith__content,
  .uwt-os-hadith__content::before {
    animation: none;
  }
}
