/* News: /news/ pages and the "آخر الأخبار" block on the home page.
   Reuses the site's navy/gold palette and the .rh-about-hero header. */

.rh-news-hero .rh-about-hero__inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
}

.rh-news-hero .rh-about-hero__copy h1 {
  max-width: 28ch;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.3;
}

/* Desktop only: the shared hero is 100svh from 1081px. News stays a short banner. */
@media (min-width: 1081px) {
  .rh-about-hero.rh-news-hero {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 21.25rem;
    padding: 7.35rem clamp(1.25rem, 2.4vw, 2.5rem) 3.25rem;
  }

  .rh-news-hero .rh-about-hero__inner,
  .rh-news-hero .rh-about-hero__copy {
    height: auto;
    min-height: 0;
  }

  .rh-news-hero .rh-about-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ---------- one news item (design "2": side panel | title + text | photos, all on one screen) ---------- */
.rh-na {
  background: #f7f3ea;
  padding: 7.5rem 1.25rem 3.5rem;
}

.rh-na__card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) minmax(0, 0.95fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "side title photos"
    "side text  photos";
  column-gap: 2.25rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid #ece4d3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 60px -45px rgba(10, 23, 51, 0.45);
  text-align: start;
}

.rh-na__card--text {
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-areas:
    "side title"
    "side text";
}

.rh-na__side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding-inline-end: 2rem;
  border-inline-end: 1px solid #ece4d3;
}

.rh-na__meta,
.rh-na__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.rh-na__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #8a8f9c;
  font-size: 0.92rem;
}

.rh-na__crumbs a {
  color: #344158;
  text-decoration: none;
}

.rh-na__crumbs a:last-child {
  color: #ac8c4a;
  font-weight: 700;
}

.rh-na__crumbs a:hover,
.rh-na__crumbs a:focus-visible {
  text-decoration: underline;
}

.rh-na__chip {
  margin: 0;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e4c27a, #d4a853 55%, #ac8c4a);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.rh-na__date {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: #344158;
  font-size: 1.05rem;
  font-weight: 700;
}

.rh-na__date svg {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #d4a853;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.rh-na__actions {
  padding-top: 1.4rem;
  border-top: 1px solid #ece4d3;
}

.rh-na .rh-news-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.rh-na .rh-news-share__label {
  flex-basis: 100%;
  margin-bottom: 0.2rem;
  color: #0b1e45;
  font-weight: 800;
}

.rh-na .rh-news-share a {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.rh-na .rh-news-share a:nth-of-type(1) { background: #25d366; }
.rh-na .rh-news-share a:nth-of-type(2) { background: #1877f2; }
.rh-na .rh-news-share a:nth-of-type(3) { background: #0a66c2; }

.rh-na .rh-news-share a:hover,
.rh-na .rh-news-share a:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.rh-na .rh-news-share a:focus-visible,
.rh-na__back:focus-visible,
.rh-na__crumbs a:focus-visible,
.rh-na__ph:focus-visible {
  outline: 3px solid #d4a853;
  outline-offset: 3px;
}

.rh-na .rh-news-share svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.rh-na__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ac8c4a;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

/* arrows browsers do not mirror (‹ › flip in Arabic): left in Arabic, right in English */
.rh-na__back::after {
  content: "\2190";
  line-height: 1;
}

html[data-lang="en"] .rh-na__back::after {
  content: "\2192";
}

.rh-na__back:hover {
  color: #0b1e45;
}

.rh-na__title {
  grid-area: title;
  margin: 0 0 1.4rem;
  padding-bottom: 1.1rem;
  border-bottom: 3px solid #d4a853;
  color: #0b1e45;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 900;
  line-height: 1.45;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.rh-na__text {
  grid-area: text;
}

/* no photos: keep lines at a readable length */
.rh-na__card--text .rh-na__text,
.rh-na__card--text .rh-na__title {
  max-width: 70ch;
}

.rh-na__text p {
  overflow-wrap: anywhere;
  margin: 0 0 1.1rem;
  color: #1f2a44;
  font-size: 1.08rem;
  line-height: 1.95;
}

/* longer texts read in two newspaper columns on wide screens */
@media (min-width: 1280px) {
  .rh-na__text--cols {
    column-count: 2;
    column-gap: 2.25rem;
    column-rule: 1px solid #ece4d3;
  }
}

/* photos: the lead, then up to 4 thumbnails in 2 columns */
.rh-na__photos {
  grid-area: photos;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0.75rem;
}

.rh-na__ph {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: #e8e1d2;
  cursor: zoom-in;
}

.rh-na__ph--lead {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
}

/* an odd last thumbnail takes the full row, so no gap is left */
.rh-na__ph:nth-child(even):last-child {
  grid-column: 1 / -1;
}

.rh-na__ph--extra {
  display: none;
}

.rh-na__ph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rh-na__ph:hover img {
  transform: scale(1.04);
}

.rh-na__more {
  position: absolute;
  inset-inline-start: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  background: rgba(10, 23, 51, 0.72);
  color: #fff;
  font-weight: 800;
}

/* tablets and phones: meta, title, photos, text, share */
@media (max-width: 1080px) {
  .rh-na {
    padding: 6.5rem 1rem 2.5rem;
  }

  .rh-na__card,
  .rh-na__card--text {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "meta"
      "title"
      "photos"
      "text"
      "actions";
    padding: 1.4rem;
  }

  .rh-na__side {
    display: contents;
  }

  /* phones/tablets: everything centred except the paragraphs (long centred lines are hard to read) */
  .rh-na__card,
  .rh-na__card--text {
    text-align: center;
  }

  .rh-na__meta {
    grid-area: meta;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem 1rem;
    margin-bottom: 1.2rem;
  }

  .rh-na__crumbs {
    flex-basis: 100%;
    justify-content: center;
  }

  .rh-na__actions {
    grid-area: actions;
    align-items: center;
    margin-top: 0.6rem;
  }

  .rh-na .rh-news-share {
    justify-content: center;
  }

  .rh-na__text p {
    text-align: start;
  }

  .rh-na__photos {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 1.6rem;
  }
}

@media (max-width: 480px) {
  .rh-na__card,
  .rh-na__card--text {
    padding: 1.1rem;
    border-radius: 18px;
  }

  .rh-na__text p {
    font-size: 1.04rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rh-na__ph img,
  .rh-na .rh-news-share a {
    transition: none;
  }
}

/* ---------- photo viewer (js/news-lightbox.js) ---------- */
html.lb-lock {
  overflow: hidden;
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 11, 26, 0.97);
  touch-action: pan-y pinch-zoom;
}

.lb[hidden] {
  display: none !important;
}

.lb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 76px 96px 40px;
}

.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transition: opacity 0.25s;
}

.lb.is-loading .lb-img {
  opacity: 0;
}

.lb-cap {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  text-align: center;
}

.lb-top {
  position: absolute;
  z-index: 2;
  top: 0;
  inset-inline: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}

.lb-count {
  padding: 4px 14px;
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: 999px;
  color: #d4a853;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lb-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(212, 168, 83, 0.5);
  border-radius: 50%;
  background: rgba(10, 23, 51, 0.7);
  color: #f5e6c8;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.lb-btn:hover {
  background: #d4a853;
  color: #0a1733;
}

.lb-btn:focus-visible {
  outline: 3px solid #d4a853;
  outline-offset: 3px;
}

.lb-btn svg {
  width: 22px;
  height: 22px;
}

/* the chevrons are drawn for Arabic; flip them on the English page */
html[dir="ltr"] .lb-prev svg,
html[dir="ltr"] .lb-next svg {
  transform: scaleX(-1);
}

.lb-prev,
.lb-next {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev {
  inset-inline-start: 22px;
}

.lb-next {
  inset-inline-end: 22px;
}

.lb.is-single .lb-prev,
.lb.is-single .lb-next,
.lb.is-single .lb-count {
  display: none;
}

@media (max-width: 640px) {
  .lb-stage {
    padding: 70px 10px 100px;
  }

  .lb-img {
    max-height: calc(100vh - 190px);
    max-height: calc(100dvh - 190px);
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .lb-prev {
    inset-inline-start: calc(50% - 64px);
  }

  .lb-next {
    inset-inline-end: calc(50% - 64px);
  }
}

.rh-news-more {
  background: #f4efe4;
  border-top: 1px solid rgba(201, 168, 76, 0.45);
  padding: 3rem 1.25rem 4rem;
}

.rh-news-more__inner {
  max-width: 1220px;
  margin: 0 auto;
}

.rh-news-more h2 {
  margin: 0 0 1.8rem;
  color: #0b1e45;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
}

/* ---------- cards (list page and home block) ---------- */
.rh-news-list {
  background: #f7f3ea;
  padding: 3rem 1.25rem 4rem;
}

.rh-news-list__inner {
  max-width: 1220px;
  margin: 0 auto;
}

.rh-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.rh-news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 40px -34px rgba(8, 21, 47, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rh-news-card:hover,
.rh-news-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px -30px rgba(8, 21, 47, 0.55);
}

/* 16/10 box: the photo is taken out of flow so it cannot stretch the card. */
.rh-news-card__media {
  position: relative;
  display: block;
  /* responsive-mobile.css gives every rh-about-page "__media" auto side margins, which stop the
     stretch; the img is out of flow, so without this width the box collapses to 0 on phones. */
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  min-height: 0;
  background: #e8e1d2;
}

.rh-news-card__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No photo: the company logo stays whole, on navy. */
.rh-news-card__media:has(img[src$="/news-logo.webp"]) {
  background:
    radial-gradient(circle at 50% 42%, rgba(230, 201, 120, 0.34), rgba(11, 30, 69, 0) 58%),
    #0b1e45;
}

/* The logo file has its own square background (#011029, darker than this navy):
   "lighten" drops that square and keeps only the gold mark. */
.rh-news-card__media img[src$="/news-logo.webp"] {
  object-fit: contain;
  box-sizing: border-box;
  padding: 22%;
  mix-blend-mode: lighten;
}

.rh-news-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.2rem 1.3rem;
}

.rh-news-card__body time {
  color: #ac8c4a;
  font-size: 0.86rem;
  font-weight: 700;
}

.rh-news-card__body strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #0b1e45;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.55;
}

.rh-news-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #5b6478;
  font-size: 0.95rem;
  line-height: 1.75;
}

.rh-news-empty {
  padding: 3rem 0;
  color: #5b6478;
  text-align: center;
}

.rh-news-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2.4rem;
  color: #344158;
}

.rh-news-pager a {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: #0b1e45;
  color: #f5e6c8;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- home page: news strip under the hero, FAQ, service guide ---------- */
.rh-home-news {
  background: #122447;
  color: #fff;
}

.rh-home-news[hidden] {
  display: none;
}

.rh-home-news__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
}

.rh-home-news__label {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1rem 1.4rem;
  background: #d4a853;
  color: #0a1733;
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
}

/* one column per story, so 1, 2 or 3 stories always fill the row */
.rh-home-news__items {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 26rem); /* 1-2 stories keep a normal width */
}

.rh-home-news__story {
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1fr);
  column-gap: 0.85rem;
  align-content: center;
  padding: 0.95rem 1.1rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-align: start; /* responsive-mobile.css centres home sections on phones */
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.rh-home-news__story:hover,
.rh-home-news__story:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.rh-home-news__story:focus-visible,
.rh-home-news__all:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

/* 16:10, the shape of the -sm file (cut at the crop set in the dashboard), so the photo shows whole */
.rh-home-news__story img {
  grid-row: span 3;
  align-self: center;
  width: 6.4rem;
  height: 4rem;
  object-fit: cover;
  -webkit-user-drag: none;
  border: 1px solid rgba(212, 168, 83, 0.38);
  background: #0b1e45;
}

/* no photo: the logo, same "lighten" trick as the news cards */
.rh-home-news__story img[src$="/news-logo.webp"] {
  object-fit: contain;
  padding: 0.3rem;
  background: radial-gradient(circle, rgba(230, 201, 120, 0.3), rgba(11, 30, 69, 0) 70%), #0b1e45;
  mix-blend-mode: lighten;
}

.rh-home-news__story time {
  color: #d4a853;
  font-size: 0.85rem;
  font-weight: 700;
}

.rh-home-news__story strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.5;
}

.rh-home-news__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #bfc9da;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* 4+ stories: an endless strip moved by js/news-widget.js (drag or swipe to move it by hand) */
.rh-home-news__items.is-ticker {
  display: block;
  overflow: hidden;
  overflow: clip;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(to right, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
}

.rh-home-news__items.is-dragging,
.rh-home-news__items.is-dragging * {
  cursor: grabbing;
}

.rh-home-news__track {
  display: flex;
  width: max-content;
  height: 100%;
  will-change: transform;
}

.is-ticker .rh-home-news__story {
  flex: none;
  width: 25rem;
}

.rh-home-news__all {
  align-self: center;
  padding: 1rem 1.25rem;
  color: #f5e6c8;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.rh-home-news__all::after {
  content: " ←";
}

html[data-lang="en"] .rh-home-news__all::after {
  content: " →";
}

.rh-home-news__all:hover,
.rh-home-news__all:focus-visible {
  color: #d4a853;
}

.rh-faq--home {
  background: #f6f3ed;
}

.rh-faq--home .rh-faq__inner {
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.75rem;
}

.rh-faq--home h2 {
  grid-column: 1 / -1;
  color: #0b1e45;
  font-weight: 900;
}

.rh-faq--home .rh-faq__item {
  margin: 0;
  border-color: #e4ddd0;
  background: #fff;
}

.rh-faq--home .rh-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #0b1e45;
  text-align: start;
}

.rh-faq--home .rh-faq__item summary::after {
  float: none;
  flex: 0 0 1.7rem;
  display: grid;
  place-items: center;
  height: 1.7rem;
  border-radius: 50%;
  background: #f1eadb;
  color: #ac8c4a;
  font-size: 1.15rem;
}

@media (min-width: 901px) and (max-width: 1200px) {
  .rh-home-news__items:not(.is-ticker) .rh-home-news__story {
    grid-template-columns: 4.8rem minmax(0, 1fr);
  }

  .rh-home-news__items:not(.is-ticker) .rh-home-news__story img {
    width: 4.8rem;
    height: 3rem;
  }
}

@media (max-width: 900px) {
  .rh-home-news__inner {
    grid-template-columns: 1fr auto;
  }

  .rh-home-news__label {
    justify-content: start;
    padding: 0.7rem 1rem;
  }

  .rh-home-news__items {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-auto-flow: row;
    grid-auto-columns: minmax(0, 1fr);
  }

  .rh-home-news__story {
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .is-ticker .rh-home-news__story {
    width: min(21rem, 82vw);
    border-top: 0;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
  }

  .rh-home-news__all {
    grid-column: 2;
    grid-row: 1;
    padding: 0.7rem 1rem;
    background: #d4a853;
    color: #0a1733;
  }
}

@media (max-width: 640px) {
  .rh-faq--home .rh-faq__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1024px) {
  .rh-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rh-news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rh-news-list,
  .rh-news-more {
    padding: 2.4rem 1rem 3rem;
  }

}

/* ---------- home services section ("dark gold cards", design option 08) ---------- */
.rh-sb {
  position: relative;
  padding: 5rem 0;
  background: radial-gradient(70% 55% at 50% 0%, #17336f 0%, rgba(11, 30, 69, 0) 70%), #0a1733;
  color: #fff;
}

.rh-sb__wrap {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.rh-sb__head {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.rh-sb__orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.rh-sb__orn i {
  width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4a853);
}

.rh-sb__orn i:last-child {
  transform: scaleX(-1);
}

.rh-sb__orn b {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border: 1px solid #d4a853;
}

.rh-sb__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  color: #d4a853;
  font-size: 0.95rem;
  font-weight: 700;
}

.rh-sb__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.rh-sb__title {
  margin: 0;
  letter-spacing: -0.01em;
  color: #fff;
  font-size: clamp(1.9rem, 3.1vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

/* Arabic only: the English line is too long to keep on one line on phones */
html:not([data-lang="en"]) .rh-sb__keep {
  white-space: nowrap;
}

.rh-sb__ic {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

.rh-sb__main {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e4c27a, #d4a853 50%, #ac8c4a);
  color: #0a1733;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px -12px rgba(212, 168, 83, 0.55);
  transition: transform 0.3s, box-shadow 0.3s;
}

.rh-sb__main:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(212, 168, 83, 0.7);
}

.rh-sb__main:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.rh-sb__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.rh-sb__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.75rem;
  border: 1px solid transparent;
  border-radius: 26px;
  background:
    linear-gradient(160deg, #102552, #0b1c40) padding-box,
    linear-gradient(150deg, rgba(212, 168, 83, 0.55), rgba(255, 255, 255, 0.07) 38%, rgba(255, 255, 255, 0.04) 62%, rgba(212, 168, 83, 0.3)) border-box;
  text-align: start;
  transition: transform 0.4s, box-shadow 0.4s;
}

.rh-sb__card::after {
  content: "";
  position: absolute;
  top: -140px;
  inset-inline-end: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.rh-sb__card:hover,
.rh-sb__card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.8);
}

.rh-sb__card:hover::after,
.rh-sb__card:focus-within::after {
  opacity: 1;
}

.rh-sb__wm {
  position: absolute;
  z-index: -1;
  bottom: -26px;
  inset-inline-end: -20px;
  width: 150px;
  height: 150px;
  color: #d4a853;
  opacity: 0.045;
  pointer-events: none;
  transition: opacity 0.5s, transform 0.6s;
}

.rh-sb__card:hover .rh-sb__wm {
  opacity: 0.09;
  transform: rotate(-6deg);
}

.rh-sb__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  color: #d4a853;
}

.rh-sb__icon svg {
  width: 52px;
  height: 52px;
  transition: transform 0.5s;
}

.rh-sb__icon::before,
.rh-sb__icon::after {
  content: "";
  position: absolute;
}

.rh-sb__icon::before {
  inset: 0;
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: 24px;
}

.rh-sb__icon::after {
  inset: 10px;
  border: 1px dashed rgba(212, 168, 83, 0.25);
  border-radius: 18px;
}

.rh-sb__card:hover .rh-sb__icon svg {
  transform: scale(1.08);
}

.rh-sb__no {
  color: #d4a853;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.rh-sb__h {
  margin: 0.4rem 0 0.6rem;
  padding-inline-end: 3.5rem;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.35;
}

/* the heading link covers the whole card; the page links sit above it */
.rh-sb__stage {
  color: inherit;
  text-decoration: none;
}

.rh-sb__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 26px;
}

.rh-sb__stage:focus-visible {
  outline: none;
}

.rh-sb__stage:focus-visible::after {
  outline: 3px solid #d4a853;
  outline-offset: -3px;
}

/* text column: the link list sits at the bottom, so cards in a row line up */
.rh-sb__card > div {
  display: flex;
  flex-direction: column;
}

.rh-sb__p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.03rem;
  line-height: 1.85;
}

.rh-sb__links {
  position: relative;
  z-index: 2;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(212, 168, 83, 0.2);
}

.rh-sb__links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #f5e6c8;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s;
}

.rh-sb__links a::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border: 1px solid #d4a853;
  transform: rotate(45deg);
  transition: background-color 0.25s;
}

.rh-sb__links .rh-sb__ic {
  width: 15px;
  height: 15px;
  margin-inline-start: auto;
  color: #d4a853;
  opacity: 0.6;
  transition: transform 0.25s, opacity 0.25s;
}

.rh-sb__links a:hover,
.rh-sb__links a:focus-visible {
  color: #d4a853;
}

.rh-sb__links a:focus-visible {
  outline: 2px solid #d4a853;
  outline-offset: 2px;
}

.rh-sb__links a:hover::before {
  background: #d4a853;
}

.rh-sb__links a:hover .rh-sb__ic {
  opacity: 1;
  transform: translateX(-4px);
}

.rh-sb__arr {
  position: absolute;
  top: 1.75rem;
  inset-inline-end: 1.75rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212, 168, 83, 0.45);
  border-radius: 50%;
  color: #d4a853;
  transition: background-color 0.35s, color 0.35s, transform 0.35s;
}

.rh-sb__card:hover .rh-sb__arr {
  background: #d4a853;
  color: #0a1733;
  transform: rotate(-45deg);
}

/* English (left to right): arrows point right */
html[data-lang="en"] .rh-sb__ic {
  transform: scaleX(-1);
}

html[data-lang="en"] .rh-sb__links a:hover .rh-sb__ic {
  transform: scaleX(-1) translateX(-4px);
}

html[data-lang="en"] .rh-sb__card:hover .rh-sb__arr {
  transform: rotate(45deg);
}

@media (min-width: 560px) {
  .rh-sb__card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 1.75rem;
    padding: 2.1rem;
  }
}

@media (min-width: 640px) {
  .rh-sb__wrap {
    padding-inline: 2rem;
  }
}

@media (min-width: 900px) {
  .rh-sb__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .rh-sb {
    padding: 7rem 0;
  }
}

@media (max-width: 640px) {
  /* responsive-mobile.css centres every home section on phones; the cards read better aligned to the start */
  .rh-home-body main .rh-sb__card,
  .rh-home-body main .rh-sb__card * {
    text-align: start !important;
  }

  .rh-home-body main .rh-sb__card > div {
    margin-inline: 0 !important;
  }

}

@media (max-width: 559px) {
  .rh-sb__icon {
    width: 76px;
    height: 76px;
  }

  .rh-sb__icon svg {
    width: 40px;
    height: 40px;
  }

  .rh-sb__h {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rh-sb__card,
  .rh-sb__main,
  .rh-sb__arr,
  .rh-sb__wm,
  .rh-sb__icon svg {
    transition: none;
  }
}
