/*
Theme Name: RCRC Child
Template:   rcrc
Version:    4.1.0
Text Domain: rcrc
*/

/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════ */
:root {
  --fp-green: #104631;
  /* SDS brand-900 */
  --fp-green-h: #092A1E;
  /* SDS brand-950 */
  --fp-accent: #1B8354;
  /* SDS brand-600 (primary) */
  --fp-accent-h: #166A45;
  /* SDS brand-700 (hover) */
  --fp-white: #ffffff;
  --fp-bg: #F9FAFB;
  --fp-bg-2: #f3f4f6;
  /* SDS neutral-100 (subtle/hover bg) */
  --fp-text: #161616;
  --fp-text-2: #4D5761;
  /* SDS neutral-600 */
  --fp-border: #D2D6DB;
  /* SDS neutral-300 */
  --fp-gold: #C2A269;

  /* ── SDS additions (Saudi Design System alignment) ── */
  --fp-primary-50: #F3FCF6;
  /* light green tint (matches SDS icon bg) */
  --sds-success: #069454;
  /* SDS green-600 */
  --sds-warning: #DC6803;
  /* SDS yellow-600 */
  --sds-error: #D92C20;
  /* SDS red-600 */
  --sds-info: #156FEE;
  /* SDS blue-600 */

  --fp-font: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;

  --fp-radius-xs: 4px;
  --fp-radius-sm: 6px;
  --fp-radius-md: 12px;
  --fp-radius-lg: 16px;
  --fp-radius-xl: 24px;
  --fp-radius-pill: 5px;

  --fp-shadow-sm: 0 1px 4px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .04);
  --fp-shadow-md: 0 4px 16px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .06);
  --fp-shadow-lg: 0 8px 32px rgba(0, 0, 0, .14), 0 2px 8px rgba(0, 0, 0, .08);

  --fp-trans: 0.22s ease;
  --fp-container: 1400px;
  --fp-nav-h: 72px;
}

/* ═══════════════════════════════════════════════════════════════
   2. GLOBAL RESET — white background, black text, IBM Plex font
   ═══════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: var(--fp-font) !important;
  background: #ffffff !important;
  color: #1F2A37 !important;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--fp-font) !important;
  color: var(--fp-text);
}

p,
li,
span,
a,
td,
th,
label {
  font-family: var(--fp-font) !important;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   3. STAMP Styles
   ═══════════════════════════════════════════════════════════════ */
.digital-stamp-card {
  padding: 8px 32px;
  background: var(--fp-bg-2);
  position: relative;
  z-index: 1100;
  display: block;
}

/* Show only the stamp matching the current page language */
html[lang="ar"] .stamp-en,
[dir="rtl"] .stamp-en {
  display: none !important;
}

html[lang^="en"] .stamp-ar,
[dir="ltr"] .stamp-ar {
  display: none !important;
}

.digital-stamp-card .digital-stamp-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.digital-stamp-card .digital-stamp-header h6 {
  margin: 0px;
  color: #1F2A37;
  font-size: 14px;
}

.digital-stamp-card .digital-stamp-header .btn-digital-stamp-card {
  cursor: pointer;
  font-weight: 900;
}

.digital-stamp-card .digital-stamp-header .btn-digital-stamp-card span {
  color: #1B8354;
  font-size: 14px;
}

.digital-stamp-card .digital-stamp-header .btn-digital-stamp-card span:hover {
  color: #54C08A;
}

.digital-stamp-card .digital-stamp-header .btn-digital-stamp-card svg,
.digital-stamp-card .digital-stamp-header .btn-digital-stamp-card img {
  transition: 0.3s;
}

.digital-stamp-card .digital-stamp-header.open .btn-digital-stamp-card svg,
.digital-stamp-card .digital-stamp-header.open .btn-digital-stamp-card img {
  transform: rotate(180deg);
}

.btn-digital-stamp-card img {
  margin-right: 4px;
  margin-left: 4px;
}

.digital-stamp-card .digital-stamp-body {
  padding-top: 40px;
  padding-bottom: 32px;
  display: none;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container {
  margin-bottom: 32px;
  display: flex;
  gap: 32px;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container .box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container .box .img-border-rounded {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #067647;
  border-radius: 100%;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container .box h6 {
  margin-top: 0px;
  margin-bottom: 12px;
  color: #1F2A37;
  font-size: 18px;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container .box .green-text {
  color: #1B8354;
}

.digital-stamp-card .digital-stamp-body .digital-stamp-container .box p {
  margin: 0px;
  color: #384250;
  font-size: 16px;
}

.digital-stamp-card .digital-stamp-body .stamp-link-box {
  padding: 8px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: #FFF;
}

.digital-stamp-card .digital-stamp-body .stamp-link-box p {
  margin: 0px;
  color: #1F2A37;
  font-size: 16px;
}

.digital-stamp-card .digital-stamp-body .stamp-link-box a {
  color: #1B8354;
  font-size: 16px;
}

.digital-stamp-card .digital-stamp-body .stamp-link-box a:hover {
  color: #54C08A;
  text-decoration: underline;
}

.stamp-ar {
  direction: rtl;
}

.stamp-en {
  direction: ltr;
}

@media (max-width: 768px) {
  .digital-stamp-card {
    padding: 8px 16px;
  }

  .digital-stamp-card .digital-stamp-header {
    flex-wrap: wrap;
  }

  .digital-stamp-card .digital-stamp-header .btn-digital-stamp-card {
    flex: 100%;
    margin-right: 33px;
  }

  .digital-stamp-card .digital-stamp-body .digital-stamp-container {
    flex-direction: column;
  }

  [dir="ltr"] .digital-stamp-card .digital-stamp-header .btn-digital-stamp-card {
    margin-right: 0px;
    margin-left: 33px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   3. NAVBAR — white bg, black text (overrides dark parent nav)
   ═══════════════════════════════════════════════════════════════ */
nav.sticky-top,
nav.sticky-top .navbar,
nav.navbar-scrolled,
nav.navbar-scrolled .navbar,
nav.slider_active .navbar {
  background-color: #ffffff !important;
}

/* Ensure the nav stays pinned while scrolling */
nav.sticky-top {
  position: sticky !important;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

nav.sticky-top.scrolled,
nav.sticky-top.navbar-scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

/* Nav list + items stretch full navbar height */
.topbar-menu {
  align-self: stretch !important;
}

.topbar-menu>.nav-item {
  display: flex !important;
  align-items: stretch !important;
}

/* Nav links — base */
.topbar-menu .nav-item>.nav-link,
.topbar-menu .nav-item>a,
nav .navbar-nav>.nav-item>.nav-link,
nav .navbar-nav>.nav-item>a {
  color: var(--fp-text) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  font-family: var(--fp-font) !important;
  text-transform: none !important;
  border-radius: 8px !important;
  padding: 24px 16px !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  transition: background .18s, color .18s !important;
}

/* Down chevron on any menu item that has a submenu —
   covers both Bootstrap-walker (.nav-item.dropdown > .dropdown-toggle)
   and plain WP walker (.menu-item-has-children > a) output.
   Uses an SVG mask so the chevron is a thin clean line that inherits
   the link's text color via background-color: currentColor. */
.topbar-menu .nav-item.dropdown>.dropdown-toggle,
.topbar-menu li.menu-item-has-children>a {
  gap: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.topbar-menu .nav-item.dropdown>.dropdown-toggle::after,
.topbar-menu li.menu-item-has-children>a::after {
  content: '' !important;
  display: inline-block !important;
  width: 12px !important;
  height: 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: currentColor !important;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='1 1.5 6 6.5 11 1.5'/></svg>") !important;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='1 1.5 6 6.5 11 1.5'/></svg>") !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-size: 12px 8px !important;
  mask-size: 12px 8px !important;
  transform: none !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
  transition: transform .2s ease !important;
}


/* Hover — grey pill */
.topbar-menu .nav-item>.nav-link:hover,
.topbar-menu .nav-item>a:hover,
nav .dropdown-menu .dropdown-item:hover {
  color: var(--fp-text) !important;
  background-color: var(--fp-bg-2) !important;
  /* SDS neutral-100 */
  border-radius: 5px;
}

/* Grey bottom bar on hover — exclude dropdown items, their ::after is
   the chevron. Use ::before so it never collides with chevrons. */
.topbar-menu .nav-item:not(.dropdown):not(.menu-item-has-children)>.nav-link:hover::before,
.topbar-menu .nav-item:not(.dropdown):not(.menu-item-has-children)>a:hover::before,
.navbar-nav .menu-item-has-children>a:hover::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 10px;
  right: 10px;
  height: 4px;
  border-radius: 10px;
  background: #9da4ae;
  /* SDS neutral-300 */
}

/* Active/current — green pill (top-level only, not dropdown items) */
.topbar-menu>.nav-item.current-menu-item>.nav-link,
.topbar-menu>.nav-item.current-menu-item>a,
.topbar-menu>.nav-item.current-menu-ancestor>.nav-link,
.topbar-menu>.nav-item.current-menu-ancestor>a {
  color: #fff !important;
  background-color: var(--fp-accent) !important;
  border-radius: 4px !important;
}

/* Green bottom bar on active */
.navbar-nav .current-menu-item {
  position: relative;
}

.topbar-menu .nav-item.current-menu-item>.nav-link::after,
.topbar-menu .nav-item.current-menu-ancestor>.nav-link::after,
.navbar-nav .current-menu-item::after,
.navbar-nav .current-menu-parent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 10px;
  right: 10px;
  height: 4px;
  border-radius: 10px;
  background: #54c08a;
}

/* Suppress default hover override on active items */
.topbar-menu .nav-item.current-menu-item>.nav-link:hover .topbar-menu .nav-item.current-menu-ancestor>.nav-link:hover {
  background-color: var(--fp-accent-h) !important;
  color: #fff !important;
}

/* ── Full-width dropdown panel ───────────────────────────── */
/* Nav parent must be static so dropdown escapes its stacking context */
nav.sticky-top {
  overflow: visible !important;
}

nav .dropdown-menu {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  top: var(--rcrc-nav-bottom, 72px) !important;
  background: #fff !important;
  border: none !important;
  border-bottom: 1px solid #e5e7eb !important;
  /* SDS neutral-200 */
  border-radius: 0 !important;
  box-shadow: var(--fp-shadow-lg) !important;
  /* SDS shadow-lg */
  /* full-bleed panel, but content aligned to the 1400 + 80px main content */
  padding: 28px max(80px, calc((100% - var(--fp-container)) / 2 + 80px)) 32px !important;
  margin: 0 !important;
  z-index: 1050 !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 4px 24px !important;
  /* row (vertical) 4px, column (horizontal) 24px */
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transform: translateY(-6px) !important;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s !important;
}

/* tablet (992–1199px): match the 56px main-content gutter */
@media (min-width: 992px) and (max-width: 1199px) {
  nav .dropdown-menu {
    padding-left: 56px !important;
    padding-right: 56px !important;
  }
}

.navbar>.container {
  max-width: 1400px;
}

/* Open via CSS :hover — rock-solid, no JS timer needed */
@media (min-width: 992px) {
  .topbar-menu>li.dropdown:hover>.dropdown-menu {
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s !important;
  }
}

nav .dropdown-menu .dropdown-item {
  display: block !important;
  padding: 8px 16px !important;
  color: #1f2a37 !important;
  /* SDS neutral-800 */
  font-size: 1rem !important;
  font-weight: 400 !important;
  font-family: var(--fp-font) !important;
  width: auto;
  background: transparent !important;
  white-space: normal !important;
  line-height: 1.5 !important;
  border: none !important;
  transition: color .15s !important;
}

nav .dropdown-menu .dropdown-item:focus,
nav .dropdown-menu .dropdown-item:hover {
  background: var(--fp-bg-2) !important;
  /* SDS neutral-100 */
  text-decoration: underline !important;
  /* underline submenu items on hover */
}

/* remove the hover ::before bar on submenu items */
nav .dropdown-menu a:hover::before,
nav .dropdown-menu a:focus::before,
nav .dropdown-menu .dropdown-item:hover::before,
nav .dropdown-menu .menu-item-has-children>a:hover::before {
  content: none !important;
  display: none !important;
}

/* ── Point (13): submenu items inside .dropdown-menu should NOT keep
   any green highlight when current/active. The top-level PARENT still
   keeps its green pill (current-menu-parent / -ancestor handled by the
   existing block above this one — untouched). */
nav .dropdown-menu li.current-menu-item>a,
nav .dropdown-menu li.current_page_item>a,
nav .dropdown-menu li.current-menu-ancestor>a,
nav .dropdown-menu .dropdown-item.active,
nav .dropdown-menu .dropdown-item.current-menu-item,
nav .dropdown-menu .dropdown-item:active {
  background: transparent !important;
  color: #1f2a37 !important;
  /* SDS neutral-800 */
  font-weight: 400 !important;
}

nav .dropdown-menu li.current-menu-item::after,
nav .dropdown-menu li.current_page_item::after,
nav .dropdown-menu li.current-menu-ancestor::after {
  display: none !important;
}


/* Mobile: collapse back to simple list */
@media (max-width: 991px) {
  .topbar-menu>li.dropdown {
    position: relative !important;
  }

  nav .dropdown-menu {
    position: static !important;
    display: none !important;
    grid-template-columns: 1fr !important;
    box-shadow: none !important;
    border: none !important;
    padding: 4px 0 !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  nav .dropdown-menu.show {
    display: block !important;
  }

  nav .dropdown-menu .dropdown-item {
    padding: 10px 20px !important;
  }

  .rcrc-dd-backdrop {
    display: none !important;
  }
}

/* Logo */
nav .navbar-brand {
  padding: 0;
}

nav .navbar-brand img {
  max-height: 41px;
}

/* Hamburger bars */
.navbar-toggler {
  border: 1px solid var(--fp-border) !important;
  padding: 6px 10px !important;
}

.icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fp-text);
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Inline language switch button (inside nav) */
.rcrc-nav-lang-btn {
  position: relative;
  /* anchor for the bottom bar */
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--fp-text) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  padding: 0 10px;
  font-family: var(--fp-font) !important;
  border-inline-start: 1px solid var(--fp-border);
  transition: color var(--fp-trans);
}

/* hover / clicked = pill background + bottom bar, exactly like menu items */
.rcrc-nav-lang-btn:hover {
  color: var(--fp-text) !important;
  background-color: var(--fp-bg-2) !important;
  border-radius: 5px;
}

/* grey pill */
.rcrc-nav-lang-btn:active {
  color: #fff !important;
  background-color: var(--fp-accent) !important;
  border-radius: 4px;
}

/* green pill, like a current menu item */
.rcrc-nav-lang-btn:hover::after,
.rcrc-nav-lang-btn:active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 10px;
  right: 10px;
  height: 4px;
  border-radius: 10px;
  background: #9da4ae;
  /* SDS neutral-300, hover grey */
}

.rcrc-nav-lang-btn:active::after {
  background: #54c08a;
}

/* clicked = green, like a current menu item */
/* SDS language switcher — language (translate) icon; CSS mask inherits currentColor */
.rcrc-nav-lang-btn::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("assets/icons/lang-icon.svg") center/contain no-repeat;
  mask: url("assets/icons/lang-icon.svg") center/contain no-repeat;
}

/* Search toggle — pill button with icon + label */
nav .rcrc-nav-search-btn,
button.rcrc-nav-search-btn {
  position: relative;
  /* anchor for the bottom bar */
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  /* full nav height, like menu items */
  padding: 0 16px;
  border-radius: 0;
  color: var(--fp-text) !important;
  cursor: pointer;
  flex-shrink: 0;
  font-family: var(--fp-font) !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  background-color: transparent;
  border: none;
}

.rcrc-nav-search-btn svg {
  display: block !important;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.rcrc-nav-search-btn__label {
  line-height: 1;
  white-space: nowrap;
}

/* hover / clicked(open) = pill background + bottom bar, exactly like menu items */
nav .rcrc-nav-search-btn:hover,
button.rcrc-nav-search-btn:hover {
  color: var(--fp-text) !important;
  background-color: var(--fp-bg-2) !important;
  border-radius: 5px;
}

/* grey pill */
nav .rcrc-nav-search-btn[aria-expanded="true"],
button.rcrc-nav-search-btn[aria-expanded="true"] {
  color: #fff !important;
  background-color: var(--fp-accent) !important;
  border-radius: 4px;
}

/* green pill, like a current menu item */
nav .rcrc-nav-search-btn:hover::after,
button.rcrc-nav-search-btn:hover::after,
nav .rcrc-nav-search-btn[aria-expanded="true"]::after,
button.rcrc-nav-search-btn[aria-expanded="true"]::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 10px;
  right: 10px;
  height: 4px;
  border-radius: 10px;
  background: #9da4ae;
  /* SDS neutral-300, hover grey */
}

/* open/current search = green bar, like a current menu item */
nav .rcrc-nav-search-btn[aria-expanded="true"]::after,
button.rcrc-nav-search-btn[aria-expanded="true"]::after {
  background: #54c08a;
}

/* New nav layout: menu hugs the logo (me-auto pushes end-actions to the far end) */
@media (min-width: 992px) {

  /* Force the collapse row to stay on one line */
  .navbar-expand-lg>.container>.navbar-collapse,
  #navbarSupportedContent.navbar-collapse {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    width: auto;
  }

  .topbar-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
  }

  .topbar-menu>li {
    list-style: none;
    white-space: nowrap;
  }

  .topbar-menu>li>a,
  .topbar-menu>li>.nav-link {
    padding: 8px 24px !important;
  }

  /* SDS spacing-md / spacing-3xl */
  .rcrc-nav-end {
    display: inline-flex !important;
    align-items: stretch;
    /* children fill the full nav height */
    align-self: stretch;
    /* group is as tall as the menu row */
    gap: 12px;
    flex-shrink: 0;
    margin-inline-start: auto;
    /* pin to the very end of the bar */
  }

  /* Lang button is the LAST item in this group → ends up at the bar's end */
  .rcrc-nav-end .rcrc-nav-lang-btn {
    border: none;
    padding: 0 12px;
    align-self: stretch;
    border-radius: var(--fp-radius-sm);
    color: var(--fp-text) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
  }
}

@media (max-width: 991px) {
  .topbar-menu {
    display: block !important;
    padding: 80px 30px !important;
  }

  .topbar-menu>li {
    display: block;
  }
}

/* ═══════════════════════════════════════════════════════════════
   4. SEARCH OVERLAY
   ═══════════════════════════════════════════════════════════════ */
/* SDS search-page pattern: full-width panel dropping under the nav */
.rcrc-search-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--rcrc-nav-bottom, 72px);
  z-index: 1040;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  /* SDS neutral-200 */
  box-shadow: var(--fp-shadow-lg);
  padding: 40px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .22s ease, transform .22s ease;
}

.rcrc-search-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.rcrc-search-box {
  width: 100%;
  max-width: var(--fp-container, 1400px);
  margin: 0 auto;
  padding: 0 80px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rcrc-search-box .fd-search {
  flex: 1;
  max-width: none;
}

.rcrc-search-overlay .fd-search {
  min-height: 40px;
}

/* SDS search field — 40px */
.rcrc-search-overlay .fd-search input {
  padding-block: 8px !important;
}

.rcrc-search-form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.fd-search__mic {
  /* trailing voice icon (visual only) */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6c727e;
  flex-shrink: 0;
  margin-inline-start: 8px;
}

.rcrc-search-go {
  /* SDS primary-brand button (lg) */
  flex-shrink: 0;
  height: 40px;
  padding: 0 24px;
  background: var(--fp-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--fp-font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--fp-trans);
}

.rcrc-search-go:hover {
  background: var(--fp-accent-h);
}

/* SDS brand-700 */
.rcrc-search-go:active {
  background: var(--fp-green);
}

/* SDS brand-900 */
.rcrc-search-go:focus-visible {
  outline: 2px solid #000;
  outline-offset: 1px;
  box-shadow: inset 0 0 0 1.5px #fff;
}

.rcrc-search-submit {
  display: none;
}

.rcrc-search-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: var(--fp-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.rcrc-search-close:hover {
  background: var(--fp-bg-2);
}

@media (max-width: 767px) {
  .rcrc-search-go {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   5. LANGUAGE BAR
   ═══════════════════════════════════════════════════════════════ */
.rcrc-lang-bar {
  background: var(--fp-accent);
  padding: 6px 0;
  display: flex;
  align-items: center;
}

.rcrc-lang-bar .container-xl {
  display: flex;
  justify-content: flex-end;
}

.rcrc-lang-bar__link {
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fp-font) !important;
}

/* ═══════════════════════════════════════════════════════════════
   6. HERO SLIDER — parent HTML, child visual polish
   ═══════════════════════════════════════════════════════════════ */
/* Section 1 already handles min-vh-100 in parent CSS */
.section_1,
.section_1 .carousel {
  max-height: 491px;
}

.section_1 .carousel-item-container {
  position: relative;
  z-index: 2;
}

.section_1 .section_main_header h2 {
  font-family: var(--fp-font) !important;
  /* Point (9): max size 52 → 48 */
  font-size: clamp(28px, 4vw, 48px) !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.section_1 .section_main_header p {
  font-family: var(--fp-font) !important;
  color: rgba(255, 255, 255, .88) !important;
  font-size: clamp(14px, 1.4vw, 18px) !important;
}

/* Ensure carousel-item bg covers properly */
.section_1 .carousel-item.bg_section {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  height: 491px;
  position: relative;
  /* anchor for the overlay */
}

/* Dark-green overlay between the bg image and the content */
.section_1 .carousel-item.bg_section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 42, 30, .8);
  /* #092A1E at 80% */
  z-index: 1;
  pointer-events: none;
}

/* nav arrows use brand circle style */
.section_1 .carousel-indicators button:first-child,
.section_1 .carousel-indicators button:last-child {
  border-color: rgba(255, 255, 255, .7) !important;
  display: none;
}

/* scroll-down arrow */
.section_1 .bot_arrow {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255, 255, 255, .7);
  font-size: 22px;
  animation: fpBounce 1.8s ease infinite;
  text-decoration: none;
}

[dir="rtl"] .section_1 .carousel-item {
  margin-right: 0px;
}

/* section_break — hidden (replaced by spacing) */
.bg_section.section_break {
  height: 0 !important;
  padding: 0 !important;
  background-image: none !important;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   7. SHARED LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.figma-container {
  /* Point (21): page-level safe padding 24 → 80 (responsive ladder for
     smaller viewports so content doesn't get squeezed) */
  max-width: var(--fp-container);
  margin: 0 auto;
  padding: 0 80px;
}

@media (max-width: 1199px) {
  .figma-container {
    padding: 0 56px;
  }
}

@media (max-width: 991px) {
  .figma-container {
    padding: 0 32px;
  }
}

@media (max-width: 575px) {
  .figma-container {
    padding: 0 20px;
  }
}

/* Site-wide content gutters: 80px left/right for every .container (matches .figma-container) */
.container,
.container-xl {
  max-width: var(--fp-container);
  margin-inline: auto;
  padding-left: 80px;
  padding-right: 80px;
}

@media (max-width: 1199px) {

  .container,
  .container-xl {
    padding-left: 56px;
    padding-right: 56px;
  }
}

@media (max-width: 991px) {

  .container,
  .container-xl {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 575px) {

  .container,
  .container-xl {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Align stamp bar + footer to the SAME 80px gutters / 1400 width as content */
.digital-stamp-card {
  padding-inline: 0;
}

/* bg stays full-width */
.digital-stamp-card .digital-stamp-header,
.digital-stamp-card .digital-stamp-body {
  max-width: var(--fp-container);
  margin-inline: auto;
  padding-inline: 80px;
}

@media (max-width: 1199px) {

  .digital-stamp-card .digital-stamp-header,
  .digital-stamp-card .digital-stamp-body {
    padding-inline: 56px;
  }
}

@media (max-width: 991px) {

  .digital-stamp-card .digital-stamp-header,
  .digital-stamp-card .digital-stamp-body {
    padding-inline: 32px;
  }
}

@media (max-width: 575px) {

  .digital-stamp-card .digital-stamp-header,
  .digital-stamp-card .digital-stamp-body {
    padding-inline: 20px;
  }
}

.figma-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.figma-section-head__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.figma-section-title {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--fp-text);
  margin: 0;
  font-family: var(--fp-font) !important;
  position: relative;
}

.figma-viewall-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fp-text);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--fp-trans), color var(--fp-trans);
  border: solid 1px #D2D6DB;
  border-radius: var(--fp-radius-xs);
  padding: 8px 15px;
  background-color: var(--fp-bg);
  color: var(--fp-text) !important;
}

.figma-viewall-btn a {
  color: var(--fp-text) !important;
  font-size: 16px !important;
}

.figma-viewall-btn:hover {
  background-color: var(--fp-bg-2);
}

/* In the hero (section_1): dim to 80% opacity instead of the gray hover bg */
.bg_section.section_1 .figma-viewall-btn:hover {
  background-color: var(--fp-bg);
  opacity: .8;
}

/* ═══════════════════════════════════════════════════════════════
   8. STATS / KPI SECTION
   ═══════════════════════════════════════════════════════════════ */
.figma-stats-section,
.figma-projects-section,
.fd-page-content {
  padding: 40px 0;
  background-color: var(--fp-white);
}

.figma-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.figma-stat-card {
  padding: 28px 20px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.figma-stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--fp-accent);
}

.figma-stat-icon img {
  width: 56px;
  height: 52px;
  object-fit: contain;
}

.figma-stat-number {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--fp-green);
  line-height: 1.1;
  margin-bottom: 10px;
  font-family: var(--fp-font) !important;
}

.figma-stat-label {
  font-size: 16px;
  color: var(--fp-text-2);
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  font-family: var(--fp-font) !important;
}

@media (max-width: 1199px) {
  .figma-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .figma-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 399px) {
  .figma-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   9. NEWS SECTION  —  3-card grid
   ═══════════════════════════════════════════════════════════════ */
.figma-news-section {
  background: var(--fp-bg);
  padding: 40px 0;
}

.figma-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .figma-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .figma-news-grid {
    grid-template-columns: 1fr;
  }
}

.figma-news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--fp-radius-lg);
  overflow: hidden;
  box-shadow: var(--fp-shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform var(--fp-trans), box-shadow var(--fp-trans);
}

.figma-news-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  background: var(--fp-bg);
  text-decoration: none;
  color: inherit;
}

.figma-news-card:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* SDS card focus */
.figma-news-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.figma-news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.figma-news-card:hover .figma-news-card__img img {
  transform: scale(1.05);
}

.figma-news-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.figma-news-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.figma-news-card__cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--fp-accent-h);
  /* SDS brand-700 */
  background: var(--fp-primary-50);
  border: 1px solid #b8eacb;
  border-radius: 4px;
  padding: 2px 8px;
  /* SDS badge--success */
}

.figma-news-card__date {
  font-size: 11px;
  color: var(--fp-text-2);
}

.figma-news-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fp-text);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--fp-font) !important;
}

.figma-news-card:hover .figma-news-card__title {
  color: var(--fp-accent);
}

.figma-news-card__excerpt {
  font-size: 14px;
  color: var(--fp-text-2);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.figma-news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fp-accent);
  margin-top: auto;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   10. PROJECTS SECTION — 4-card image grid
   ═══════════════════════════════════════════════════════════════ */
.figma-projects-section {
  padding: 40px 0;
}

.figma-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .figma-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .figma-projects-grid {
    grid-template-columns: 1fr;
  }
}

.figma-proj-card {
  position: relative;
  display: block;
  border-radius: var(--fp-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--fp-shadow-sm);
  text-decoration: none;
  transition: transform var(--fp-trans), box-shadow var(--fp-trans);
}

.figma-proj-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  background: var(--fp-bg);
  text-decoration: none;
}

.figma-proj-card__img {
  width: 100%;
  height: 100%;
}

.figma-proj-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  display: block;
}

.figma-proj-card:hover .figma-proj-card__img img {
  transform: scale(1.06);
}

.figma-proj-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 77, 49, .88) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.figma-proj-card__cat {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .12);
  border-radius: 4px;
  padding: 2px 8px;
  align-self: flex-start;
  margin-bottom: 6px;
}

.figma-proj-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--fp-font) !important;
}

.figma-proj-card__more {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ═══════════════════════════════════════════════════════════════
   11. SERVICES CAROUSEL
   ═══════════════════════════════════════════════════════════════ */
.figma-services-section {
  background: var(--fp-bg);
  padding: 40px 0;
}

.figma-svc-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  justify-content: center;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 8px 0px;
  margin-top: 8px;
}

.figma-svc-track::-webkit-scrollbar {
  display: none;
}

.figma-svc-card {
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: transform var(--fp-trans), box-shadow var(--fp-trans);
  text-decoration: none;
  color: inherit;
}

.figma-svc-card:hover {
  text-decoration: none;
  color: inherit;
}

.figma-svc-card__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--fp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
  color: var(--fp-green);
}

.figma-svc-card__icon img {
  width: 56px;
  height: 45px;
  object-fit: contain;
}

.figma-svc-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--fp-text);
  line-height: 1.4;
  font-family: var(--fp-font) !important;
}

.figma-svc-card__desc {
  font-size: 14px;
  color: var(--fp-text-2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.figma-svc-card__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  font-family: var(--fp-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  border-radius: var(--fp-radius-xs) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background var(--fp-trans), color var(--fp-trans), border-color var(--fp-trans);
  width: fit-content;
  margin-top: auto;
  border: 1.5px solid var(--fp-bg-2) !important;
  color: #ffffff !important;
  background: var(--fp-accent) !important;
}

.figma-svc-card__cta:hover {
  background: var(--fp-accent-h) !important;
}

.figma-svc-card__cta:active {
  background: var(--fp-green) !important;
}

.figma-svc-card:hover .figma-svc-card__cta {
  color: #fff !important;
}

/* ── Point (8): arrows match figma-designs/arrows.png — inactive is just
   a chevron with no background; active/usable side is a green circle
   with a white chevron. */
.figma-svc-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.figma-svc-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--fp-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 18px;
  transition: background var(--fp-trans), color var(--fp-trans),
    box-shadow var(--fp-trans), opacity var(--fp-trans);
}

.figma-svc-btn:hover:not(:disabled):not(.disabled),
.figma-svc-btn:focus-visible:not(:disabled):not(.disabled),
.figma-svc-btn.is-active {
  background: var(--fp-accent-h);
  color: #fff;
  box-shadow: 0 4px 12px rgba(27, 131, 84, .25);
}

.figma-svc-btn:disabled,
.figma-svc-btn.disabled {
  opacity: .35;
  pointer-events: none;
}

/* If the carousel reports it has no overflow, hide nav entirely */
.figma-svc-nav.is-hidden {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   12. CTA BANNER
   ═══════════════════════════════════════════════════════════════ */
.figma-cta-section {
  background: #000000;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.figma-cta-section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

[dir="rtl"] .figma-cta-section__bg {
  transform: rotateY(180deg);
}

.figma-cta-section__inner {
  position: relative;
  z-index: 1;
}

.figma-cta-section__body {
  max-width: 640px;
}

.figma-cta-section__eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: var(--fp-font) !important;
}

.figma-cta-section__title {
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 14px;
  font-family: var(--fp-font) !important;
}

.figma-cta-section__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 28px;
  font-family: var(--fp-font) !important;
}

.figma-cta-section__btn {
  background: #fff;
  color: var(--fp-green);
  border-radius: var(--fp-radius-xs);
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  text-decoration: none;
  transition: background var(--fp-trans), transform var(--fp-trans), color var(--fp-trans);
  font-family: var(--fp-font) !important;
}

.figma-cta-section__btn:hover {
  background: rgba(255, 255, 255, .9);
  color: var(--fp-green-h);
}

[dir="rtl"] .figma-cta-section__body {
  text-align: start;
}

/* ═══════════════════════════════════════════════════════════════
   13. LAST MODIFIED BAR
   ═══════════════════════════════════════════════════════════════ */
.figma-lastmod {
  background: var(--fp-bg);
  border-top: 1px solid var(--fp-border);
  padding: 12px 0;
}

.figma-lastmod__text {
  font-size: 12px;
  color: var(--fp-text-2);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   14. FOOTER
   ═══════════════════════════════════════════════════════════════ */
.rcrc-footer {
  background: var(--fp-green) !important;
  color: rgba(255, 255, 255, .85);
  padding-top: 40px;
}

.rcrc-footer__inner {
  max-width: var(--fp-container);
  margin: 0 auto;
  padding: 0 80px;
}

@media (max-width: 1199px) {
  .rcrc-footer__inner {
    padding: 0 56px;
  }
}

@media (max-width: 991px) {
  .rcrc-footer__inner {
    padding: 0 32px;
  }
}

@media (max-width: 575px) {
  .rcrc-footer__inner {
    padding: 0 20px;
  }
}

.rcrc-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 48px;
}

.rcrc-footer__group {
  flex: 1;
  min-width: 160px;
}

.rcrc-footer__group-label {
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-transform: lowercase;
  letter-spacing: normal;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.30);
  display: inline-block;
  font-family: var(--fp-font) !important;
  margin-top: 0;
}

.rcrc-footer__group-label::first-letter {
  text-transform: uppercase;
}

.rcrc-footer__group ul,
.rcrc-footer__group li {
  list-style: none !important;
  padding: 0 !important;
  margin-bottom: 8px !important;
}

.rcrc-footer__group li:hover {
  color: rgba(255, 255, 255, 0.8);
}

.rcrc-footer__group ul li {
  margin-bottom: 10px !important;
}

.rcrc-footer__group ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, .75) !important;
  font-weight: 400;
  transition: color var(--fp-trans);
  font-family: var(--fp-font) !important;
}

.rcrc-footer__group li>a:hover {
  text-decoration: underline;
}

/* Social */
.rcrc-footer__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rcrc-footer__social-btn {
  width: 35px;
  height: 35px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .3) !important;
  color: rgba(255, 255, 255, .8) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-size: 14px;
  transition: background var(--fp-trans), border-color var(--fp-trans);
}

.rcrc-footer__social-btn:hover {
  background: var(--fp-accent) !important;
  border-color: var(--fp-accent) !important;
  color: #fff !important;
}

/* Bottom bar */
.rcrc-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 0;
}

.rcrc-footer__bottom a {
  text-decoration: underline;
}

.rcrc-footer__logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.rcrc-footer__logos img {
  height: 55px;
  object-fit: contain;
}

.rcrc-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.rcrc-footer__legal-links ul,
.rcrc-footer__legal-links li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.rcrc-footer__legal-links li {
  display: inline;
  margin-inline-end: 8px !important;
}

.rcrc-footer__legal-links li a {
  font-size: 14px;
  transition: color rgba(255, 255, 255, 0.8);
}

.rcrc-footer__legal-links li a:hover {
  color: #fff !important;
  text-decoration: underline;
}

.rcrc-footer__copyright {
  font-size: 14px;
}

[dir="rtl"] .rcrc-footer__legal {
  align-items: flex-start;
}

/* ── Guard against the chat widget (#rcrc-chat-widget-root) ──────────
   Its bundled <style> defines GLOBAL, unscoped `.rcrc-footer` and
   `.rcrc-feedback` rules that collide with the site footer and the
   page-feedback bar. Re-assert ours with higher specificity (element +
   class / attribute) so the widget can't turn them into flex/tiny text. */
footer.rcrc-footer {
  display: block;
  padding: 40px 0 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, .85);
  letter-spacing: normal;
}

.rcrc-feedback[data-rcrc-feedback] {
  display: block;
  gap: normal;
  margin-top: 0;
  align-items: normal;
}

/* Scroll-to-top */
#scroll_down_ptn {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 9000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fp-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
  box-shadow: var(--fp-shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

#scroll_down_ptn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════
   15. INNER PAGES  —  page banner header
   ═══════════════════════════════════════════════════════════════ */

/* ── Restyle parent-theme page_section_header to match fd-page-header ── */
.page_section_header {
  position: relative;
  min-height: auto !important;
  background: #eef8f3 !important;
  /* light mint — same as main fd-page-header */
  overflow: visible;
  display: block;
  padding: 28px 0 24px !important;
}

.page_section_header::before,
.page_section_header::after {
  display: none !important;
}

/* Hide background images — we use clean mint bg */
.page_section_header .bg_img,
.page_section_header .mb_bg_img {
  display: none !important;
}

.page_section_header .container {
  position: relative;
  z-index: 1;
}

/* Text colours: dark on light bg */
.page_section_header h1,
.page_section_header h2,
.page_section_header h3,
.page_section_header .page_tree h2 {
  font-family: var(--fp-font) !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  font-weight: 700 !important;
  color: var(--fp-text) !important;
  margin: 8px 0 0 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}

/* Breadcrumb inside page_tree */
.page_section_header .page_tree h6 {
  font-family: var(--fp-font) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--fp-text-2) !important;
  text-transform: none !important;
  margin: 0 !important;
}

.page_section_header .page_tree h6 a {
  color: var(--fp-text-2) !important;
  text-decoration: none !important;
}

.page_section_header .page_tree h6 a:hover {
  color: var(--fp-text-2) !important;
}

/* Sub-pages: white background */
.page-child .page_section_header {
  background: #fff !important;
  border-bottom: 1px solid var(--fp-border);
}

/* section break hidden */
.bg_section.section_break {
  height: 0 !important;
  padding: 0 !important;
  background-image: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   16. ARCHIVE / CARD PAGES  —  white background
   ═══════════════════════════════════════════════════════════════ */
.bg_section:not(.section_1):not(.page_section_header):not(.footer_section):not(.rcrc-footer) {
  background-color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SLIDER — Figma-matched (.rcrc-hero) — supersedes old .section_1
   ═══════════════════════════════════════════════════════════════ */
.rcrc-hero {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 78vh, 760px);
  overflow: hidden;
  background: var(--fp-green);
  isolation: isolate;
}

.rcrc-hero__carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.rcrc-hero__inner {
  width: 100%;
  min-height: inherit;
  position: relative;
  overflow: hidden;
}

.rcrc-hero__slide {
  width: 100%;
  min-height: clamp(520px, 78vh, 760px);
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Make sure each slide is a positioning context for its abs children */
.rcrc-hero__inner>.carousel-item {
  position: relative;
}

/* Don't fight Bootstrap's display rules — let it animate transitions */
.rcrc-hero__bg {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  z-index: 0 !important;
  display: block !important;
  margin: 0 !important;
}

.rcrc-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  display: block;
  pointer-events: none;
}

.rcrc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 77, 49, .55) 0%, rgba(7, 77, 49, .78) 100%);
  z-index: 2;
  pointer-events: none;
}

.rcrc-hero__pattern {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(180px, 22vw, 360px);
  z-index: 3;
  pointer-events: none;
  opacity: .9;
}

[dir="rtl"] .rcrc-hero__pattern {
  left: 0;
  right: auto;
}

[dir="ltr"] .rcrc-hero__pattern {
  right: 0;
  left: auto;
  transform: scaleX(-1);
}

.rcrc-hero__pattern svg {
  width: 100%;
  height: 100%;
  display: block;
}

.rcrc-hero__content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
}

.rcrc-hero__container {
  width: 100%;
  max-width: var(--fp-container, 1280px);
  margin: 0 auto;
  padding: 80px 24px;
}

.rcrc-hero__text {
  max-width: 620px;
  color: #fff;
  margin-inline-start: auto;
}

[dir="rtl"] .rcrc-hero__text {
  text-align: right;
}

[dir="ltr"] .rcrc-hero__text {
  text-align: left;
}

.rcrc-hero__title {
  font-family: var(--fp-font) !important;
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 20px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}

.rcrc-hero__desc {
  font-family: var(--fp-font) !important;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.85;
  color: rgba(255, 255, 255, .92);
  margin: 0 0 28px;
}

.rcrc-hero__desc p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .92);
}

.rcrc-hero__desc p:last-child {
  margin-bottom: 0;
}

.rcrc-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--fp-text) !important;
  font-family: var(--fp-font) !important;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: background var(--fp-trans), color var(--fp-trans), transform var(--fp-trans);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.rcrc-hero__cta:hover {
  background: var(--fp-accent);
  color: #fff !important;
  transform: translateY(-2px);
}

.rcrc-hero__cta i {
  font-size: 12px;
}

.rcrc-hero__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 !important;
  display: flex;
  gap: 10px;
  z-index: 5;
  width: auto;
}

.rcrc-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4) !important;
  border: none !important;
  padding: 0;
  margin: 0 !important;
  cursor: pointer;
  opacity: 1 !important;
  text-indent: 0;
  transition: background var(--fp-trans), width var(--fp-trans);
}

.rcrc-hero__dot.active {
  background: var(--fp-accent) !important;
  width: 28px;
  border-radius: 6px;
}

.rcrc-hero__dot:hover {
  background: rgba(255, 255, 255, .7) !important;
}

@media (max-width: 767px) {

  .rcrc-hero,
  .rcrc-hero__slide {
    min-height: 480px;
  }

  .rcrc-hero__container {
    padding: 60px 20px 80px;
  }

  .rcrc-hero__pattern {
    width: 140px;
    opacity: .5;
  }

  .rcrc-hero__dots {
    bottom: 20px;
  }
}

/* Legacy fallback for old .section_1 (unused now but kept for safety) */
.section_1 {
  background: linear-gradient(135deg, var(--fp-green) 0%, #0a3d22 100%);
}

/* Preserve green sections */
.footer_section,
.bg_section.footer_section {
  background-color: var(--fp-bg) !important;
}

/* Generic content area */
.section_main_header h2,
.section_main_header h5 {
  font-family: var(--fp-font) !important;
  color: var(--fp-text) !important;
}

.text-black,
.text_section {
  color: var(--fp-text) !important;
}

/* News / Media cards */
.news-card-img,
.img_responsive {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  border-radius: var(--fp-radius-md);
  overflow: hidden;
  display: block;
}

.directors-card,
.progs-card,
.photos-card,
.videos-card,
.tenders_card {
  background: #fff !important;
  border: 1px solid var(--fp-border) !important;
  border-radius: var(--fp-radius-lg) !important;
  box-shadow: var(--fp-shadow-sm) !important;
  transition: transform var(--fp-trans), box-shadow var(--fp-trans) !important;
}

.directors-card h5,
.progs-card h5 {
  font-family: var(--fp-font) !important;
  color: var(--fp-text) !important;
}

/* FAQ accordion */
.topic__collapse {
  background: #fff !important;
  border: 1px solid var(--fp-border) !important;
  border-radius: var(--fp-radius-md) !important;
  margin-bottom: 8px;
  overflow: hidden;
}

.collapse__header {
  color: var(--fp-text) !important;
  font-family: var(--fp-font) !important;
  font-weight: 600 !important;
}

.collapse__text {
  color: var(--fp-text-2) !important;
  font-family: var(--fp-font) !important;
}

.collapse__header::after {
  color: var(--fp-accent) !important;
}

/* Video card play button */
.video_link i {
  color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════
   17. BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn-primary,
.btn.btn-primary {
  background: var(--fp-accent) !important;
  color: #fff !important;
  border-radius: var(--fp-radius-pill) !important;
  font-family: var(--fp-font) !important;
  font-weight: 600 !important;
  transition: background var(--fp-trans), transform var(--fp-trans) !important;
}

.btn-primary:hover {
  background: #166a45 !important;
}

.btn-secondary,
.btn.btn-secondary {
  background: transparent !important;
  border: 1.5px solid var(--fp-green) !important;
  color: var(--fp-green) !important;
  border-radius: var(--fp-radius-pill) !important;
  font-family: var(--fp-font) !important;
  font-weight: 600 !important;
  transition: background var(--fp-trans), color var(--fp-trans) !important;
}

.btn-secondary:hover,
.btn.btn-secondary:hover {
  background: var(--fp-green) !important;
  color: #fff !important;
}

/* Override white button-secondary on dark hero */
.carousel-item .btn-outline-light {
  border-color: rgba(255, 255, 255, .8) !important;
  color: #fff !important;
  border-radius: var(--fp-radius-pill) !important;
  font-family: var(--fp-font) !important;
  font-weight: 600 !important;
  transition: background var(--fp-trans), color var(--fp-trans) !important;
}

.carousel-item .btn-outline-light:hover {
  background: rgba(255, 255, 255, .15) !important;
}

/* ═══════════════════════════════════════════════════════════════
   18. FORMS
   ═══════════════════════════════════════════════════════════════ */
.form-control,
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  font-family: var(--fp-font) !important;
  border-radius: var(--fp-radius-md) !important;
  border-color: #9da4ae !important;
  /* SDS neutral-400 */
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: #384250 !important;
  box-shadow: var(--fp-shadow-md) !important;
  /* SDS focus: neutral-700 + shadow-md */
}

.wpcf7-form label {
  font-family: var(--fp-font) !important;
  font-size: 14px !important;
}

/* ═══════════════════════════════════════════════════════════════
   19. PAGINATION
   ═══════════════════════════════════════════════════════════════ */
/* Pagination styles consolidated below — see section 32 */

/* ═══════════════════════════════════════════════════════════════
   20. FILTER / SEARCH SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.filter_section {
  background: var(--fp-bg) !important;
}

.filter_section .form,
.section_main_header .form {
  background: #fff;
  border-radius: var(--fp-radius-md);
}

/* ═══════════════════════════════════════════════════════════════
   21. 404 PAGE
   ═══════════════════════════════════════════════════════════════ */
.section_404,
.text_404 {
  text-align: center;
  padding: 80px 0;
}

.text_404 h3 {
  font-family: var(--fp-font) !important;
  color: var(--fp-text) !important;
}

/* SDS error / 404 page (كود المنصات) */
.rcrc-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  max-width: 460px;
  margin: 0 auto;
  padding: 80px 16px;
  text-align: center;
}

.rcrc-404__img img {
  width: 100%;
  max-width: 458px;
  height: auto;
  display: block;
}

.rcrc-404__title {
  font-family: var(--fp-font);
  color: #161616;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  margin: 0 0 16px;
}

.rcrc-404__desc {
  font-family: var(--fp-font);
  color: #161616;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  margin: 0 0 32px;
}

.rcrc-404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 8px;
  background: var(--fp-accent);
  color: #fff !important;
  border: none;
  font-family: var(--fp-font);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fp-trans);
}

.rcrc-404__btn:hover {
  background: var(--fp-accent-h);
}

/* SDS brand-700 */
.rcrc-404__btn:active {
  background: var(--fp-green);
}

/* SDS brand-900 */
.rcrc-404__btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 1px;
  box-shadow: inset 0 0 0 1.5px #fff;
}

@media (max-width: 575px) {
  .rcrc-404 {
    gap: 40px;
    padding: 48px 16px;
  }

  .rcrc-404__title {
    font-size: 20px;
    line-height: 28px;
  }

  .rcrc-404__desc {
    font-size: 16px;
    line-height: 24px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   22. RESPONSIVE — mobile
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .figma-section-head {
    margin-bottom: 24px;
  }

  .figma-stats-section,
  .figma-news-section,
  .figma-projects-section,
  .figma-services-section {
    padding: 52px 0;
  }

  .figma-cta-section {
    padding: 52px 0;
  }

  nav .navbar-nav>.nav-item>.nav-link {
    padding: 10px 16px !important;
  }

  nav .dropdown-menu {
    box-shadow: none !important;
    border: none !important;
    padding-inline-start: 16px !important;
  }

  .rcrc-footer__nav {
    flex-direction: column;
    gap: 20px;
  }

  .rcrc-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .rcrc-footer__legal {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .figma-svc-track {
    padding: 8px 16px;
  }

  .figma-cta-section__btn {
    width: 100%;
    justify-content: center;
  }

  .navbar .container {
    padding-bottom: 15px !important;
    padding-top: 15px;
  }
}

.navbar {
  padding-bottom: 0px;
  padding-top: 0px;
}

/* ═══════════════════════════════════════════════════════════════
   24. ABOUT / INNER PAGE IMPROVEMENTS  (matches Figma node 75-20549)
   ═══════════════════════════════════════════════════════════════ */

/* ── Page section header ── */
.bg_section.page_section_header {
  min-height: 340px !important;
  background-color: var(--fp-green) !important;
  align-items: flex-end !important;
  padding-bottom: 0 !important;
}

/* Breadcrumb (page_tree) inside green header */
.page_section_header .page_tree {
  padding: 40px 0 40px !important;
}

.page_section_header .page_tree h2 {
  color: #000000 !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  font-family: var(--fp-font) !important;
}

.page_section_header .page_tree h6,
.page_section_header .page_tree h6 a,
.page_section_header .page_tree h6 a:visited {
  color: #000000 !important;
  font-size: 14px !important;
  font-family: var(--fp-font) !important;
  text-decoration: none !important;
}

/* Background image overlay — darker for better text contrast */
.bg_section.page_section_header .bg_img {
  opacity: 0.25 !important;
  z-index: 1 !important;
}

/* ── Timeline (establishment / milestones) ── */
.archive-establishment .timeline,
.timeline {
  position: relative;
}

.timeline-item {
  background: transparent !important;
}

/* Year circle — always green */
.timeline-item__date.rounded-circle {
  background-color: var(--fp-green) !important;
  color: #ffffff !important;
  font-family: var(--fp-font) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  box-shadow: 0 4px 16px rgba(7, 77, 49, .25) !important;
  border: 3px solid rgba(255, 255, 255, .85) !important;
  outline: 2px solid var(--fp-green) !important;
}

/* Card box */
.timeline-item__text {
  background: #ffffff !important;
  border: 1px solid var(--fp-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06) !important;
  padding: 24px 28px !important;
  font-family: var(--fp-font) !important;
  color: var(--fp-text) !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
}

/* Dividing line between items */
.timeline-item::before {
  background-color: var(--fp-border) !important;
}

/* Section header inside content */
section.text-black,
.archive-establishment section {
  background: #ffffff !important;
  color: var(--fp-text) !important;
}

.archive-establishment .section_main_header h2,
section.text-black .section_main_header h2 {
  font-size: clamp(22px, 2.5vw, 36px) !important;
  font-weight: 700 !important;
  color: var(--fp-text) !important;
  font-family: var(--fp-font) !important;
  position: relative;
  padding-bottom: 16px;
}

.archive-establishment .section_main_header h2::after,
section.text-black .section_main_header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--fp-accent);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ── Mandate & duties page ── */
.tpl-mandate-and-duties .section_main_header h2 {
  color: var(--fp-text) !important;
}

.prog_ul {
  padding-inline-start: 0 !important;
  list-style: none !important;
}

.prog_ul li {
  padding: 12px 0 12px 20px !important;
  border-bottom: 1px solid var(--fp-border) !important;
  color: var(--fp-text) !important;
  font-family: var(--fp-font) !important;
  font-size: 15px !important;
  position: relative;
}

.prog_ul li::before {
  content: '' !important;
  width: 8px !important;
  height: 8px !important;
  background: var(--fp-accent) !important;
  border-radius: 50% !important;
  position: absolute !important;
  left: 2px;
  top: 50%;
  transform: translateY(-50%) !important;
}

[dir="rtl"] .prog_ul li {
  padding: 12px 20px 12px 0 !important;
}

[dir="rtl"] .prog_ul li::before {
  right: 2px !important;
  left: unset !important;
}

/* ── Dark mode overrides for inner pages ── */
/* ── Responsive ── */
@media (max-width: 767px) {
  .page_section_header .page_tree {
    padding: 120px 0 32px !important;
  }

  .timeline-item__text {
    padding: 16px !important;
    font-size: 14px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   25. ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--fp-accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Muneer accessibility floating button — brand green instead of default blue */
.muneer-trigger-button-box button,
.muneer-trigger-button-box button#muneer-trigger-button,
#muneer-trigger-button {
  background: var(--fp-accent) !important;
  /* SDS brand-600 */
}

.muneer-trigger-button-box button .muneer-trigger-button-icon svg,
#muneer-trigger-button .muneer-trigger-button-icon svg {
  fill: #fff !important;
}

/* Hover / focus / active: invert to white pill with green icon (keep on-brand) */
.muneer-trigger-button-box button:hover,
.muneer-trigger-button-box button:focus,
.muneer-trigger-button-box button:focus-visible,
.muneer-trigger-button-box button:active,
#muneer-trigger-button:focus {
  background: #fff !important;
  color: var(--fp-accent) !important;
  box-shadow: 0 0 0 1px var(--fp-accent) !important;
}

.muneer-trigger-button-box button:hover .muneer-trigger-button-icon svg,
.muneer-trigger-button-box button:focus .muneer-trigger-button-icon svg,
.muneer-trigger-button-box button:active .muneer-trigger-button-icon svg {
  fill: var(--fp-accent) !important;
}

/* Position: stacked just above #scroll_down_ptn, on the inline-end side
   — left in Arabic (RTL), right in English (LTR). Overrides whatever
   position class the Muneer loader adds (e.g. .bottom-right). */
.muneer-trigger-button-box {
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: 84px !important;
  /* clears the 44px scroll-to-top btn at bottom:28px */
  inset-inline-end: 28px !important;
  /* same side as #scroll_down_ptn */
  margin: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   26. INNER PAGE HEADER  (white, clean — Figma design)
   ═══════════════════════════════════════════════════════════════ */

/* Override the big green banner for ALL inner pages */
.bg_section.page_section_header {
  min-height: unset !important;
  background-color: #f3fcf6 !important;
  background-image: none !important;
  display: block !important;
  overflow: visible !important;
  padding: 0 !important;
}

.bg_section.page_section_header .bg_img,
.bg_section.page_section_header .mb_bg_img {
  display: none !important;
}

/* ── Page header: mint bg for main-level pages ── */
.fd-page-header {
  background-color: #f3fcf6;
  /* light mint — matches screenshot */
  border-bottom: none;
  padding: 40px 0 40px;
}

/* Sub-pages (fd-page-header--sub or .page-child context) → white */
.fd-page-header--sub,
.page-child .fd-page-header {
  background: #f3fcf6;
}

/* Page content area spacing */
.fd-page-content {
  padding: 40px 0 56px;
}

.fd-page-header__title {
  font-family: var(--fp-font) !important;
  font-weight: 700 !important;
  font-size: 30px;
  color: var(--fp-text) !important;
  margin: 8px 0 0 !important;
  line-height: 1.3 !important;
}

/* Optional intro paragraph under the page title */
.fd-page-header__intro {
  font-family: var(--fp-font) !important;
  font-size: 15px;
  line-height: 1.9;
  color: #4b5563;
  max-width: 900px;
  margin: 14px 0 0;
}

.fd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--fp-text-2);
  font-family: var(--fp-font) !important;
  flex-wrap: wrap;
}

.fd-breadcrumb a {
  color: var(--fp-text-2) !important;
  text-decoration: none !important;
  transition: color var(--fp-trans);
}

.fd-breadcrumb a:hover {
  color: var(--fp-accent) !important;
}

.fd-breadcrumb span[aria-hidden] {
  color: #9DA4AE;
}

/* Point (14): chevron breadcrumb separator. The character › always
   points right; in RTL we mirror it so the chevron points toward the
   "next" crumb (which is to the left in Arabic). */
.fd-breadcrumb__sep {
  color: #9DA4AE;
  display: inline-block;
  line-height: 1;
  font-size: 24px;
}

[dir="rtl"] .fd-breadcrumb__sep {
  transform: scaleY(-1);
}

/* ── Breadcrumbs: current (last) page light-grey (#9DA4AE); previous pages keep default ── */
.fd-breadcrumb>span:not(.fd-breadcrumb__sep),
.page_tree h6 .current {
  color: #9DA4AE !important;
}

/* ── Parent-theme breadcrumb (.page_tree h6): make it look like .fd-breadcrumb.
   JS converts " / " text separators into <span class="page_tree__sep">. */
.page_section_header .page_tree h6,
.page_tree h6 {
  display: flex !important;
  align-items: center;
  gap: 6px;
  font-size: 14px !important;
  font-family: var(--fp-font) !important;
  font-weight: 400 !important;
  flex-wrap: wrap;
  text-transform: none !important;
  color: var(--fp-text-2) !important;
  letter-spacing: 0 !important;
  margin: 0 0 8px;
}

.page_section_header .page_tree h6 a,
.page_tree h6 a {
  color: var(--fp-text-2) !important;
  text-decoration: none !important;
  text-transform: none !important;
  font-weight: 400 !important;
}

.page_section_header .page_tree h6 a:hover,
.page_tree h6 a:hover {
  color: var(--fp-accent) !important;
}

.page_tree__sep {
  color: #9DA4AE;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
}

[dir="rtl"] .page_tree__sep {
  transform: scaleY(-1);
}

/* Point (15): every page's title matches the About page title (30px).
   Targets both the child theme's .fd-page-header__title (used by
   tpl-about.php and all archives) and the parent theme's
   .page_section_header h2 / .section_main_header h2 — but only on
   inner pages, never on the home page's hero (.section_1). */
.fd-page-header__title,
.fd-page-header--sub .fd-page-header__title,
.page .entry-title,
.page main h1.entry-title,
main h1.page-title,
body:not(.home) .page_section_header h2,
body:not(.home) :not(.section_1)>.section_main_header h2,
body:not(.home) .section_main_header h2:not(.figma-section-title) {
  font-family: var(--fp-font) !important;
  font-weight: 700 !important;
  font-size: 30px !important;
  color: var(--fp-text) !important;
  line-height: 1.3 !important;
  text-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   27. FILTER BAR  (search + dropdowns + tabs)
   ═══════════════════════════════════════════════════════════════ */
.fd-filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--fp-border);
  padding: 16px 0;
}

.fd-filter-bar--tabs {
  padding: 0;
}

.fd-filter-bar__form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

/* Search field */
.fd-filter-bar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 220px;
  max-width: 400px;
  background: var(--fp-bg);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-pill);
  padding: 8px 16px;
  color: var(--fp-text-2);
}

.fd-filter-bar__search--sm {
  min-width: 180px;
  max-width: 280px;
  flex: 0 0 auto;
}

.fd-filter-bar__input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: var(--fp-font) !important;
  font-size: 14px !important;
  color: var(--fp-text) !important;
  flex: 1;
  padding: 0 !important;
}

.fd-filter-bar__input::placeholder {
  color: var(--fp-text-2);
}

.fd-filter-bar__clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fp-text-2);
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

/* Select dropdown */
.fd-filter-bar__select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fd-filter-bar__label {
  font-family: var(--fp-font) !important;
  font-size: 14px;
  color: var(--fp-text-2);
  white-space: nowrap;
}

.fd-filter-bar__select {
  appearance: none;
  background: #fff !important;
  border: 1px solid var(--fp-border) !important;
  border-radius: var(--fp-radius-md) !important;
  padding: 9px 36px 9px 14px !important;
  font-family: var(--fp-font) !important;
  font-size: 14px !important;
  color: var(--fp-text) !important;
  cursor: pointer;
  min-width: 180px;
  box-shadow: none !important;
  transition: border-color var(--fp-trans);
}

[dir="rtl"] .fd-filter-bar__select {
  padding: 9px 14px 9px 36px !important;
}

.fd-filter-bar__select:focus {
  border-color: var(--fp-accent) !important;
  outline: none;
}

.fd-filter-bar__chevron {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: var(--fp-text-2);
}

[dir="rtl"] .fd-filter-bar__chevron {
  right: unset;
  left: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   28. TABS  (publications types / media types)
   ═══════════════════════════════════════════════════════════════ */
.fd-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--fp-border);
}

.fd-tab {
  display: block;
  padding: 14px 20px;
  font-family: var(--fp-font) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--fp-text-2) !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--fp-trans), border-color var(--fp-trans);
  white-space: nowrap;
}

.fd-tab:hover {
  color: var(--fp-accent) !important;
}

.fd-tab.is-active {
  color: var(--fp-accent) !important;
  border-bottom-color: var(--fp-accent) !important;
  font-weight: 700 !important;
}

.fd-filter-bar--tabs .fd-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.fd-filter-bar__tabs-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════
   29. ARCHIVE SECTION  (grid wrapper)
   ═══════════════════════════════════════════════════════════════ */
.fd-archive-section {
  background: #fff;
  padding: 40px 0 24px;
}

/* ═══════════════════════════════════════════════════════════════
   30. FD-CARD  (unified card for all archive pages)
   ═══════════════════════════════════════════════════════════════ */
.fd-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  /* SDS neutral-200 surface border */
  border-radius: var(--fp-radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--fp-trans), box-shadow var(--fp-trans), border-color var(--fp-trans);
}

/* SDS card elevation + focus (official كود المنصات card spec) */
.fd-card:focus-within {
  background: var(--fp-bg);
  border-color: var(--fp-accent);
}

/* Image area */
.fd-card__img-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  text-decoration: none !important;
  padding: 15px;
}

.fd-card__img-wrap--portrait {
  aspect-ratio: 16 / 10;
}

.fd-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 5px;
  background: var(--fp-bg);
}

.fd-card__img_info {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 5px;
  background: var(--fp-bg);

}

/* Default placeholder when no image */
.fd-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8ede8 0%, #d4ddd4 100%);
  color: #a0aaa0;
}

.fd-card__img-placeholder--portrait {
  background: linear-gradient(180deg, #dce5dc 0%, #c8d4c8 100%);
}

/* Video / photo media cards */
.fd-card__media-wrap {
  cursor: pointer;
}

.fd-card__play-btn,
.fd-card__zoom-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 77, 49, 0.4);
  opacity: 0;
  transition: opacity 0.25s;
}

.fd-card:hover .fd-card__play-btn,
.fd-card:hover .fd-card__zoom-btn {
  opacity: 1;
}

/* Body — point (7): standardize padding to 16px */
.fd-card__body {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.fd-card {
  padding: 0 !important;
}

.fd-card__img-wrap {
  margin: 0 !important;
}

/* Category tags */
.fd-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fd-tag {
  display: inline-flex;
  align-items: center;
  background: var(--fp-primary-50);
  /* SDS brand-50 */
  color: var(--fp-accent-h);
  /* SDS brand-700 */
  border: 1px solid #b8eacb;
  /* SDS brand-200 */
  border-radius: var(--fp-radius-pill);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--fp-font) !important;
  line-height: 1.4;
}

/* Meta (date, calendar icon) */
.fd-card__meta {
  display: grid;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-family: var(--fp-font) !important;
  font-weight: 500;
  width: fit-content;
  padding: 0 8px;
  border: 1px solid #E5E7EB;
  border-radius: var(--fp-radius-sm);
  background-color: var(--fp-bg);
}

/* Date cluster (icon + date) — sits on one side */
.fd-card__meta-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Action link in meta — replaces overlay buttons (play/open/zoom);
   sits opposite the date inside .fd-card__meta */
.fd-card__meta-play,
.fd-card__meta-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: auto;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--fp-bg, var(--fp-bg-2));
  color: var(--fp-text, #111);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.fd-card__meta-play:hover,
.fd-card__meta-open:hover {
  background: var(--fp-bg-2);
  color: var(--fp-text);
}

/* LTR: flip the back-arrow so it points forward (right) */
html[dir="ltr"] .fd-card__meta-open svg {
  transform: scaleX(-1);
}

/* Title */
.fd-card__title {
  font-family: var(--fp-font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--fp-text) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  height: -webkit-fill-available;
}

.fd-card__title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color var(--fp-trans);
  font-size: 16px;
}

/* Publication cards: let the title hug its content instead of
   stretching to fill the card (overrides height: -webkit-fill-available). */
.fd-card--publication .fd-card__title {
  height: fit-content;
}

.fd-card__title a:hover {
  color: var(--fp-accent) !important;
}

/* Excerpt */
.fd-card__excerpt {
  font-family: var(--fp-font) !important;
  font-size: 14px !important;
  color: var(--fp-text-2) !important;
  line-height: 1.7 !important;
  margin: 0 !important;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════════
   31. FD-BTN  (read-more button on cards)
   ═══════════════════════════════════════════════════════════════ */
.fd-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  font-family: var(--fp-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  border-radius: var(--fp-radius-xs) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background var(--fp-trans), color var(--fp-trans), border-color var(--fp-trans);
  width: fit-content;
  margin-top: auto;
  border: 1px solid var(--fp-border) !important;
  color: #000000 !important;
}

.fd-btn--outline:hover {
  background: #f3f4f6 !important;
  color: var(--fp-text) !important;
}

.fd-btn--solid {
  background: var(--fp-accent) !important;
  color: #fff !important;
}

.fd-btn--solid:hover {
  background: var(--fp-accent-h) !important;
}

/* SDS button states (focus / active / disabled) — official كود المنصات spec */
.fd-btn:focus-visible {
  outline: 2px solid #000 !important;
  /* SDS focus: 2px base-black */
  outline-offset: 1px;
  box-shadow: inset 0 0 0 1.5px #fff;
  /* SDS inner white ring */
}

.fd-btn--solid:active {
  background: var(--fp-green) !important;
}

/* SDS brand-900 */
.fd-btn--outline:active {
  background: #d2d6db !important;
}

/* SDS neutral-300 */
.fd-btn--solid:disabled,
.fd-btn--solid[disabled],
.fd-btn--outline:disabled,
.fd-btn--outline[disabled],
.fd-btn:disabled,
.fd-btn[disabled] {
  background: var(--fp-bg-2) !important;
  /* SDS neutral-100 */
  color: #9da4ae !important;
  /* SDS neutral-400 */
  border-color: #e5e7eb !important;
  /* SDS neutral-200 */
  cursor: not-allowed;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   32. PAGINATION
   ═══════════════════════════════════════════════════════════════ */
.fd-pagination {
  padding: 32px 0 48px;
  background: #fff;
}

.fd-pagination .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

q .fd-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fd-pagination .nav-links,
.fd-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fd-pagination .page-numbers,
.fd-pagination a.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: var(--fp-radius-sm);
  font-family: var(--fp-font) !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--fp-text) !important;
  text-decoration: none !important;
  border: 1px solid var(--fp-border);
  background: #fff;
  transition: background var(--fp-trans), color var(--fp-trans), border-color var(--fp-trans);
}

.fd-pagination .page-numbers:hover,
.fd-pagination a.page-numbers:hover {
  background: var(--fp-accent) !important;
  color: #fff !important;
  border-color: var(--fp-accent) !important;
}

.fd-pagination .page-numbers.current {
  background: var(--fp-accent) !important;
  color: #fff !important;
  border-color: var(--fp-accent) !important;
  font-weight: 700 !important;
}

.fd-pagination .page-numbers.dots {
  border: none;
  background: none;
  color: var(--fp-text-2) !important;
}

/* Pagination — plain numbers, green underline on active, dots boxed.
 * Applies to ALL pagination on the site for consistency. */
.rcrc-pagination,
.fd-pagination,
.wp-pagenavi {
  padding: 40px 0 56px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rcrc-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Reset existing borders/backgrounds from older styles */
.rcrc-pagination .page-numbers,
.fd-pagination .page-numbers,
.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 36px;
  padding: 0 6px;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  font-family: var(--fp-font) !important;
  font-size: 15px;
  font-weight: 500;
  color: var(--fp-text) !important;
  text-decoration: none !important;
  position: relative;
  transition: color var(--fp-trans);
}

/* Hover: just colour change, no fill */
.rcrc-pagination a.page-numbers:hover,
.fd-pagination a.page-numbers:hover,
.wp-pagenavi a:hover {
  background: transparent !important;
  color: var(--fp-accent) !important;
}

/* Current page: green underline, not a fill */
.rcrc-pagination .page-numbers.current,
.fd-pagination .page-numbers.current,
.wp-pagenavi .current {
  background: transparent !important;
  color: var(--fp-text) !important;
  font-weight: 700;
}

.rcrc-pagination .page-numbers.current::after,
.fd-pagination .page-numbers.current::after,
.wp-pagenavi .current::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 2px;
  background: var(--fp-accent);
  border-radius: 2px;
}

/* Dots (gap) — boxed style */
.rcrc-pagination .page-numbers.dots,
.fd-pagination .page-numbers.dots {
  border: 1px solid var(--fp-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--fp-text-2) !important;
  min-width: 44px;
  height: 36px;
}

/* Prev/Next arrows */
.rcrc-pagination .page-numbers.prev,
.rcrc-pagination .page-numbers.next,
.fd-pagination .page-numbers.prev,
.fd-pagination .page-numbers.next {
  font-size: 18px;
  color: var(--fp-text) !important;
}

[dir="rtl"] .rcrc-pagination .page-numbers.prev,
[dir="rtl"] .rcrc-pagination .page-numbers.next,
[dir="rtl"] .fd-pagination .page-numbers.prev,
[dir="rtl"] .fd-pagination .page-numbers.next {
  transform: rotateY(180deg);
}

.rcrc-pagination .page-numbers.prev:hover,
.rcrc-pagination .page-numbers.next:hover,
.fd-pagination .page-numbers.prev:hover,
.fd-pagination .page-numbers.next:hover {
  color: var(--fp-accent) !important;
}

/* ═══════════════════════════════════════════════════════════════
   33. HOMEPAGE CARDS  — placeholder fix
   ═══════════════════════════════════════════════════════════════ */
.figma-news-card__img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8ede8 0%, #d4ddd4 100%);
  color: #a0aaa0;
  border-radius: var(--fp-radius-md) var(--fp-radius-md) 0 0;
}

.figma-proj-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a3a25 0%, #0d2619 100%);
  color: rgba(255, 255, 255, .3);
}

/* ═══════════════════════════════════════════════════════════════
   34. FILTER BAR — publication type tabs override (parent .btn.static)
   ═══════════════════════════════════════════════════════════════ */
.publication_header ul.d-flex {
  gap: 0;
  border-bottom: 2px solid var(--fp-border);
  padding: 0;
  margin: 0 0 24px;
}

.publication_header .btn.static {
  background: transparent !important;
  border: none !important;
  color: var(--fp-text-2) !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px !important;
  padding: 12px 18px !important;
  font-family: var(--fp-font) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 0 !important;
  transition: color var(--fp-trans), border-color var(--fp-trans) !important;
}

.publication_header .btn.static:hover {
  color: var(--fp-accent) !important;
}

.publication_header .btn.static.active {
  color: var(--fp-accent) !important;
  border-bottom-color: var(--fp-accent) !important;
  font-weight: 700 !important;
}

/* ═══════════════════════════════════════════════════════════════
   35. PARENT CARD OVERRIDES (progs-card, directors-card, videos-card, photos-card)
   ═══════════════════════════════════════════════════════════════ */
/* Now that child templates override these, style the parent ones too for non-overridden pages */
.progs-card,
.directors-card,
.photos-card,
.videos-card {
  background: #fff !important;
  border: 1px solid var(--fp-border) !important;
  border-radius: var(--fp-radius-lg) !important;
  overflow: hidden !important;
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: var(--fp-shadow-sm) !important;
  transition: transform var(--fp-trans), box-shadow var(--fp-trans) !important;
}

.progs-card img,
.directors-card img,
.videos-card img {
  width: 100% !important;
  aspect-ratio: 16/10;
  object-fit: cover !important;
}

.progs-card h5,
.directors-card h5,
.videos-card h5 {
  font-family: var(--fp-font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  padding: 14px 16px 0 !important;
}

.progs-card a,
.directors-card a,
.videos-card a {
  text-decoration: none !important;
  color: inherit !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.news-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--fp-bg);
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

/* ═══════════════════════════════════════════════════════════════
   36. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .fd-page-header {
    padding: 20px 0 18px;
  }

  .fd-page-header__title {
    font-size: 22px !important;
  }

  .fd-filter-bar__form {
    flex-direction: column;
    align-items: stretch;
  }

  .fd-filter-bar__search {
    max-width: 100%;
  }

  .fd-tab {
    padding: 10px 14px;
    font-size: 14px !important;
  }

  .fd-archive-section {
    padding: 24px 0 16px;
  }

  .fd-card__body {
    padding: 12px 14px 14px;
  }
}

@media (max-width: 575px) {
  .fd-tabs {
    gap: 0;
  }

  .fd-tab {
    padding: 8px 12px;
    font-size: 12px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   38. NAV TOPBAR  (dark green utility strip above navbar)
   ═══════════════════════════════════════════════════════════════ */
.rcrc-nav-topbar {
  background: var(--fp-green);
  padding: 7px 0;
  position: relative;
  z-index: 1001;
}

.rcrc-nav-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rcrc-nav-topbar__date {
  font-size: 12px;
  color: rgba(255, 255, 255, .65);
  font-family: var(--fp-font) !important;
}

.rcrc-nav-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rcrc-nav-topbar__lang-btn {
  font-size: 12px;
  color: rgba(255, 255, 255, .9) !important;
  text-decoration: none !important;
  font-family: var(--fp-font) !important;
  font-weight: 600;
  padding: 3px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--fp-radius-sm);
  transition: background var(--fp-trans), color var(--fp-trans);
  letter-spacing: .02em;
}

.rcrc-nav-topbar__lang-btn:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff !important;
}

/* Site name fallback */
.rcrc-nav-sitename {
  font-weight: 700;
  font-size: 17px;
  color: var(--fp-green);
  font-family: var(--fp-font) !important;
}

/* Nav actions group */
.rcrc-nav-actions {
  gap: 6px !important;
}

/* ═══════════════════════════════════════════════════════════════
   39. OWL CAROUSEL — services section
   ═══════════════════════════════════════════════════════════════ */

/* When Owl is active, remove the fixed-width constraints on cards */
.figma-svc-track.owl-carousel {
  display: block !important;
  overflow: hidden !important;
  /* clip any edge bleed */
  padding: 8px 0 !important;
  margin-top: 16px;
}

.figma-svc-track.owl-carousel .owl-stage-outer {
  overflow: hidden !important;
  border-radius: var(--fp-radius-lg);
}

.figma-svc-track.owl-carousel .figma-svc-card {
  min-width: unset !important;
  max-width: unset !important;
  width: 100%;
  height: auto;
}

.figma-svc-track.owl-loaded .figma-svc-card {
  display: flex !important;
}

/* Owl nav dots hidden (we use custom buttons) */
.figma-svc-track .owl-dots {
  display: none !important;
}

.figma-svc-track .owl-nav {
  display: none !important;
}

/* Services nav buttons — states match Figma (default/hover/pressed/focus/disabled) */
.figma-svc-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.figma-svc-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fp-accent);
  /* mid-green (default + hover) */
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 16px;
  box-shadow: none;
  outline: none;
  transition: background var(--fp-trans), box-shadow var(--fp-trans);
}

.figma-svc-btn:active:not(:disabled):not(.disabled) {
  background: var(--fp-green);
  /* darker green when pressed */
}

.figma-svc-btn:focus-visible:not(:disabled):not(.disabled) {
  background: var(--fp-accent);
  box-shadow: 0 0 0 3px #1c2340;
  /* dark ring around button */
}

.figma-svc-btn:disabled,
.figma-svc-btn.disabled,
.figma-svc-btn.is-disabled {
  background: #E5E7EB !important;
  color: #9CA3AF !important;
  opacity: 1 !important;
  pointer-events: none;
  cursor: default;
  box-shadow: none !important;
}

/* Hidden when ≤ 4 services (set by JS) */
.figma-svc-nav.is-hidden {
  display: none !important;
}

/* Static layout — used when ≤ 4 cards (no slider).
   All cards fit in one row without horizontal scrolling/cutting. */
.figma-svc-track--static {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
  justify-content: center;
  gap: 20px;
  transform: none !important;
}

.figma-svc-track--static .figma-svc-card {
  min-width: 0 !important;
  flex: 1 1 calc(25% - 15px);
  max-width: 320px;
}

@media (max-width: 991px) {
  .figma-svc-track--static {
    flex-wrap: wrap !important;
  }

  .figma-svc-track--static .figma-svc-card {
    flex-basis: calc(50% - 10px);
  }
}

@media (max-width: 575px) {
  .figma-svc-track--static .figma-svc-card {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* ── Slider layout (> 4 cards) — plain JS transform-based slider ── */
.figma-svc-viewport {
  overflow: hidden;
  width: 100%;
}

.figma-svc-track--slider {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 20px;
  overflow: visible !important;
  justify-content: flex-start !important;
  padding: 8px 0 !important;
  transition: transform 0.35s ease;
  will-change: transform;
}

.figma-svc-track--slider .figma-svc-card {
  flex: 0 0 calc((100% - 60px) / 4);
  /* 4 visible: subtract 3 gaps (60px) */
  min-width: 0 !important;
  max-width: none !important;
}

@media (max-width: 1199px) {
  .figma-svc-track--slider .figma-svc-card {
    flex-basis: calc((100% - 40px) / 3);
  }
}

@media (max-width: 991px) {
  .figma-svc-track--slider .figma-svc-card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 575px) {
  .figma-svc-track--slider .figma-svc-card {
    flex-basis: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   40. PAGE-LEVEL BACKGROUND — guarantee white
   ═══════════════════════════════════════════════════════════════ */


/* Pull any lingering green section backgrounds back to white for inner pages */
body:not(.home) .bg_section:not(.section_1):not(.page_section_header):not(.footer_section):not(.rcrc-footer) {
  background-color: #ffffff !important;
  background-image: none !important;
}

/* Section headings inside white bg inner pages */
body:not(.home) .section_main_header h2 {
  color: var(--fp-text) !important;
}

/* ═══════════════════════════════════════════════════════════════
   41. CARD TITLE — 2-line clamp
   ═══════════════════════════════════════════════════════════════ */
.fd-card__title.l2_overflow_hidden,
.fd-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fd-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   42. MULTIMEDIA & PUBLICATIONS — filter bar with sort
   ═══════════════════════════════════════════════════════════════ */
.fd-filter-bar--tabs-sort {
  background: #fff;
  border-bottom: 1px solid var(--fp-border);
  padding: 16px 0px;
}

.fd-filter-bar--tabs-sort .fd-tabs-sort-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.fd-filter-bar--tabs-sort .fd-tabs {
  border-bottom: none;
  margin-bottom: -1px;
}

.fd-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fd-sort-label {
  font-family: var(--fp-font) !important;
  font-size: 14px;
  color: var(--fp-text-2);
  white-space: nowrap;
}

.fd-sort-select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center left 10px / 12px;
  border: 1px solid var(--fp-border) !important;
  border-radius: var(--fp-radius-md) !important;
  padding: 8px 14px 8px 34px !important;
  font-family: var(--fp-font) !important;
  font-size: 14px !important;
  color: var(--fp-text) !important;
  cursor: pointer;
  min-width: 160px;
  box-shadow: none !important;
  transition: border-color var(--fp-trans);
}

[dir="rtl"] .fd-sort-select {
  background-position: center right 10px;
  padding: 8px 34px 8px 14px !important;
}

.fd-sort-select:focus {
  border-color: var(--fp-accent) !important;
  outline: none;
}

/* Filter add button */
.fd-filter-add-btn {
  margin-top: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   43. FOOTER — menu fallback empty state
   ═══════════════════════════════════════════════════════════════ */
.rcrc-footer__group:empty,
.rcrc-footer__group>p:only-child {
  opacity: .7;
}

/* ═══════════════════════════════════════════════════════════════
   44. RESPONSIVE ADDITIONS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .rcrc-nav-topbar {
    padding: 6px 0;
  }

  .rcrc-nav-topbar__date {
    display: none;
  }

  .figma-svc-nav {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .fd-filter-bar--tabs-sort .fd-tabs-sort-row {
    flex-direction: column;
    align-items: stretch;
  }

  .fd-sort-wrap {
    padding-bottom: 10px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   45. ABOUT THE ENTITY — tpl-about.php
   ═══════════════════════════════════════════════════════════════ */

/* ── Section wrapper ── */
.about-cards-section {
  padding: 48px 0 56px;
  background: #fff;
}

/* ── 3-column grid ── */
.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 991px) {
  .about-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .about-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Individual card ── */
.about-nav-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* RTL: content hugs the right (reading start) */
  gap: 20px;
  padding: 20px 20px 20px;
  background: #fff;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-md);
  text-decoration: none !important;
  color: var(--fp-text) !important;
  transition: box-shadow var(--fp-trans), transform var(--fp-trans), border-color var(--fp-trans);
  min-height: 160px;
  position: relative;
}

[dir="ltr"] .about-nav-card {
  align-items: flex-start;
  /* LTR: content hugs the left */
}

/* ── Icon (PNG from Figma — circular bg already baked into image) ── */
.about-nav-card__icon-wrap {
  flex-shrink: 0;
  line-height: 0;
}

.about-nav-card__icon-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}

/* ── Title — compact at top, arrow pushed down with margin-top:auto ── */
.about-nav-card__title {
  font-family: var(--fp-font) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--fp-text) !important;
  margin: 0;
  line-height: 1.5;
  text-align: right;
  /* No flex:1 — title stays compact at top alongside the icon */
}

[dir="ltr"] .about-nav-card__title {
  text-align: left;
}

/* ── Arrow button — grey as in Figma, pushed to bottom-start ── */
.about-nav-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 40px;
  border: 1.5px solid #d2d6db;
  border-radius: 6px;
  color: #000000;
  font-size: 16px;
  background-color: var(--fp-bg);
  transition: background var(--fp-trans), color var(--fp-trans), border-color var(--fp-trans);
  flex-shrink: 0;
  margin-top: auto;
  /* pushes arrow to bottom of card */
  align-self: flex-end;
  /* RTL: arrow sits at the left (visual end of card) */
}

.about-nav-card__arrow:hover {
  background-color: var(--fp-bg-2);
}

[dir="ltr"] .about-nav-card__arrow {
  align-self: flex-end;
  /* LTR: arrow sits at the right */
}

/* ── E-Participation: 4-column grid + intro/policy block (tpl-eparticipation.php) ── */
.about-cards-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
  .about-cards-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .about-cards-grid--4 {
    grid-template-columns: 1fr;
  }
}

.eparticipation-intro-section {
  padding: 40px 0 0;
  background: #fff;
}

.eparticipation-intro {
  font-size: 16px;
  line-height: 2;
  color: var(--fp-text);
}

.eparticipation-intro p {
  margin: 0 0 16px;
}

.eparticipation-policy-links {
  margin: 8px 0 !important;
}

.eparticipation-policy-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--fp-primary, #1a7a4c);
  font-weight: 600;
}

.eparticipation-policy-link:hover {
  text-decoration: underline;
}

.eparticipation-policy-link i {
  font-size: 14px;
}

/* ── E-Participation Detail page (tpl-eparticipation-detail.php) ── */
/* Title row that also holds the optional action button */
.fd-page-header__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fd-page-header__title-row .fd-page-header__title {
  margin: 0 !important;
}

.fd-page-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 12px 24px;
  background: var(--fp-accent, #1B8354);
  color: #fff !important;
  font-family: var(--fp-font) !important;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--fp-radius-sm, 6px);
  text-decoration: none !important;
  transition: background var(--fp-trans), transform var(--fp-trans);
}

.fd-page-header__btn:hover {
  background: var(--fp-accent-h, #166a45);
  color: #fff !important;
}

@media (max-width: 575px) {
  .fd-page-header__btn {
    width: 100%;
  }
}

.ep-detail-section {
  padding: 40px 0 56px;
  background: #fff;
}

.ep-detail-content {
  font-size: 16px;
  line-height: 2;
  color: var(--fp-text);
  max-width: 1100px;
}

.ep-detail-content p {
  margin: 0 0 18px;
}

/* Bottom box: a single card aligned to the start (right in RTL) */
.ep-detail-box {
  margin-top: 32px;
  display: flex;
}

.ep-detail-box .about-nav-card {
  width: 100%;
  max-width: 520px;
}

/* ── Service Steps form (service-steps.php) — match Figma form styling ── */
/* Intro / description paragraph above the form */
.card-body .service-intro {
  color: #4B5563;
  font-size: 16px;
  line-height: 2;
  margin-bottom: 28px;
}

.card-body .service-intro p {
  margin: 0 0 12px;
}

.card-body .service-intro :last-child {
  margin-bottom: 0;
}

/* Labels */
#rcrc-cf7-steps .rcrc-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--fp-text);
  margin-bottom: 8px;
}

/* Row rhythm */
#rcrc-cf7-steps .rcrc-row {
  gap: 24px;
  margin-bottom: 22px;
}

/* Inputs — soft grey fill, rounded, like the design */
#rcrc-cf7-steps .rcrc-input {
  width: 100%;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--fp-text);
  font-family: var(--fp-font);
  transition: border-color var(--fp-trans), box-shadow var(--fp-trans), background var(--fp-trans);
}

#rcrc-cf7-steps textarea.rcrc-input {
  min-height: 120px;
  resize: vertical;
}

#rcrc-cf7-steps .rcrc-input::placeholder {
  color: #9CA3AF;
}

#rcrc-cf7-steps .rcrc-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--fp-accent);
  box-shadow: 0 0 0 3px rgba(27, 131, 84, .12);
}

/* Attachment browse button */
#rcrc-cf7-steps .att-btn {
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
}

/* Spacing: keep reCAPTCHA / policy close to the content (fix big gaps) */
.wpcf7-form .cf7sr-g-recaptcha {
  margin: 20px 0 0 !important;
}

.wpcf7-form .policy-checkbox {
  margin: 16px 0 40px !important;
}

/* Final-step action row — back button + submit on ONE line */
.cf7-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.cf7-actions .js-prev,
.cf7-actions .js-next {
  margin: 0 !important;
}

/* All step buttons — radius (--fp-radius-sm) + consistent padding */
#rcrc-cf7-steps .btn,
.cf7-actions .btn,
.cf7-actions input.wpcf7-submit,
.card-body .nav-btns .btn,
#rcrc-cf7-steps input.wpcf7-submit {
  border-radius: var(--fp-radius-sm) !important;
  padding: 12px 30px !important;
  font-weight: 500;
}

/* Remove the template's huge submit offsets — spacing handled by .cf7-actions */
#rcrc-cf7-steps input.wpcf7-submit {
  margin: 0 !important;
}

.card-body .nav-btns {
  margin-top: 16px !important;
}

/* CF7 response message: BELOW the buttons, not absolutely overlapping them */
#rcrc-cf7-steps~.wpcf7-response-output,
.wpcf7-form .wpcf7-response-output {
  position: static !important;
  bottom: auto !important;
  width: auto !important;
  margin: 16px 0 0 !important;
}

/* ── Page content lists: restore bullets/numbers (theme resets them) ── */
.fd-page-content ul,
.fd-page-content .wp-block-list {
  list-style: disc outside !important;
  padding-inline-start: 1.5em;
  margin: 0 0 1rem;
}

.fd-page-content ol {
  list-style: decimal outside !important;
  padding-inline-start: 1.5em;
  margin: 0 0 1rem;
}

.fd-page-content li {
  margin-bottom: 8px;
  line-height: 1.9;
}

.fd-page-content ul ul,
.fd-page-content ul ol,
.fd-page-content ol ul,
.fd-page-content ol ol {
  margin-bottom: 0;
}

/* ── Open Data Tabs page (tpl-open-data.php) ── */
.od-section {
  padding: 32px 0 56px;
  background: #fff;
}

.od-tabs {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--fp-border, #e5e7eb);
  margin-bottom: 32px;
}

.od-tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 12px 0;
  font-family: var(--fp-font) !important;
  font-size: 16px;
  font-weight: 600;
  color: var(--fp-text-2, #6b7280);
  cursor: pointer;
  transition: color var(--fp-trans), border-color var(--fp-trans);
}

.od-tab:hover {
  color: var(--fp-text);
}

.od-tab.is-active {
  color: var(--fp-text);
  border-bottom-color: var(--fp-accent);
}

.od-panel {
  font-size: 16px;
  line-height: 2;
  color: var(--fp-text);
}

.od-panel[hidden] {
  display: none;
}

.od-panel p {
  margin: 0 0 16px;
}

.od-empty {
  color: var(--fp-text-2);
}

.od-section .od-panel ul,
.od-section .od-panel .wp-block-list {
  list-style: disc outside;
  padding-inline-start: 1.5em;
  margin: 0 0 1rem;
}

.od-section .od-panel li {
  margin-bottom: 12px;
  line-height: 1.9;
}

/* Inline action links with external-link icon */
.od-panel a {
  color: var(--fp-accent);
  font-weight: 600;
}

.od-panel a:hover {
  color: var(--fp-accent-h, #166a45);
  text-decoration: underline;
}

.od-panel a i {
  font-size: 13px;
  margin-inline-start: 6px;
}

/* ── Disable DAEXT Voiced audio player site-wide (safety net) ── */
#daextrevo-audio-player-wrapper,
.daextrevo-audio-player-wrapper {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   46. MANDATE AND DUTIES — tpl-mandate-and-duties.php
   ═══════════════════════════════════════════════════════════════ */

.mandate-section {
  padding: 48px 0 56px;
  background: #fff;
}

/* Intro paragraph */
.mandate-intro {
  font-family: var(--fp-font) !important;
  font-size: 16px;
  line-height: 1.9;
  color: var(--fp-text);
  margin-bottom: 36px;
  padding-bottom: 24px;
}

/* Numbered mandate list */
.mandate-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  counter-reset: mandate-counter;
}

.mandate-list__item {
  display: flex;
  flex-direction: row;
  /* RTL-aware: flex-start = right in RTL */
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  counter-increment: mandate-counter;
}

.mandate-list__item:first-child {
  padding-top: 0;
}

/* Number bubble via ::before pseudo-element */
.mandate-list__item::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-image: url('/wp-content/themes/rcrc-child/assets/img/about-icons/Icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  order: -1;
}

.mandate-list__text {
  font-family: var(--fp-font) !important;
  font-size: 16px;
  line-height: 1.9;
  color: var(--fp-text);
  flex: 1;
}

/* Geographic scope box */
.mandate-scope {
  background: #f3fcf6;
  border-inline-start: 4px solid var(--fp-accent);
  border-radius: 0 var(--fp-radius-md) var(--fp-radius-md) 0;
  padding: 20px 24px;
  margin-top: 8px;
}

[dir="rtl"] .mandate-scope {
  border-inline-start: none;
  border-inline-end: 4px solid var(--fp-accent);
  border-radius: var(--fp-radius-md) 0 0 var(--fp-radius-md);
}

.mandate-scope__text {
  font-family: var(--fp-font) !important;
  font-size: 14px;
  line-height: 1.8;
  color: var(--fp-text);
  margin: 0 0 8px;
}

.mandate-scope__highlight {
  font-family: var(--fp-font) !important;
  font-size: 14px;
  font-weight: 700;
  color: var(--fp-accent);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   47. ESTABLISHMENT AND EVOLUTION — archive-establishment.php
   ═══════════════════════════════════════════════════════════════ */

.est-section {
  padding: 48px 0 56px;
  background: #fff;
}

.est-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/*
 * Flexbox row — RTL-aware:
 * In RTL, flex-start = RIGHT, so the first child (year) sits on the RIGHT.
 * In LTR, flex-start = LEFT, so the first child (year) sits on the LEFT.
 * This matches the Figma exactly without any order overrides.
 */
.est-entry {
  display: flex;
  flex-direction: column;
  /* flex-start respects dir attribute */
  gap: 12px;
  padding: 36px 0;
  align-items: flex-start;
}

.est-entry:first-child {
  padding-top: 0;
}

/* Year badge — naturally lands on inline-start (right in RTL, left in LTR) */
.est-entry__year {
  font-family: var(--fp-font) !important;
  font-size: 36px;
  font-weight: 700;
  color: #000000;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
  width: 110px;
  padding-top: 3px;
}

/* Entry body — fills remaining space */
.est-entry__body {
  font-family: var(--fp-font) !important;
  font-size: 15px;
  line-height: 1.9;
  color: var(--fp-text);
  flex: 1;
}

.est-entry__body p {
  margin: 0 0 10px;
}

.est-entry__body p:last-child {
  margin: 0;
}

/* Pagination */
.est-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.est-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.est-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--fp-radius-sm);
  border: 1.5px solid var(--fp-border);
  font-family: var(--fp-font) !important;
  font-size: 14px;
  font-weight: 600;
  color: var(--fp-text);
  text-decoration: none;
  transition: all var(--fp-trans);
}

.est-pagination .page-numbers.current {
  background: var(--fp-accent);
  border-color: var(--fp-accent);
  color: #fff;
}

.est-pagination .page-numbers:hover:not(.current) {
  border-color: var(--fp-accent);
  color: var(--fp-accent);
}

.est-pagination .prev.page-numbers,
.est-pagination .next.page-numbers {
  width: auto;
  padding: 0 12px;
  background: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   48. CEO PAGE — tpl-ceo.php
   ═══════════════════════════════════════════════════════════════ */

.ceo-page-content {
  background: #fff;
}

/* Remove excessive container nesting from Gutenberg blocks */
.ceo-page-content .wp-block-group.container,
.ceo-page-content .wp-block-group>.wp-block-group.container {
  max-width: var(--fp-container);
  margin: 0 auto;
  padding: 48px 16px;
}

.ceo-page-content section.wp-block-group {
  padding: 0 !important;
}

/* CEO photo */
.ceo-page-content .ceo_img img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #eef8f3;
  box-shadow: var(--fp-shadow-md);
  display: block;
  margin: 0 auto;
}

.ceo-page-content .img_circle.ceo_img {
  max-width: 300px;
}

/* CEO name & title */
.ceo-page-content .wb_main_header h4,
.ceo-page-content .wb_main_header h6.green {
  font-family: var(--fp-font) !important;
}

.ceo-page-content .wb_main_header h6.green {
  color: var(--fp-accent) !important;
  font-size: 14px;
  font-weight: 600;
  text-transform: none !important;
  margin: 0 0 4px;
}

.ceo-page-content .wb_main_header h4 {
  font-size: clamp(18px, 2.2vw, 26px) !important;
  font-weight: 700 !important;
  color: var(--fp-text) !important;
  margin: 0 0 12px;
}

.ceo-page-content .wb_main_header p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--fp-text);
}

/* Current positions heading */
.ceo-page-content h4.green.mb-4,
.ceo-page-content h5.green {
  font-family: var(--fp-font) !important;
  color: var(--fp-accent) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  margin-bottom: 20px !important;
}

/* CEO positions list */
.ceo-page-content .ceo_ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
}

.ceo-page-content .ceo_ul li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--fp-border);
  font-family: var(--fp-font) !important;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fp-text);
}

.ceo-page-content .ceo_ul li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fp-accent);
  margin-top: 6px;
}

[dir="rtl"] .ceo-page-content .ceo_ul li {
  flex-direction: row-reverse;
}

/* Experience section text */
.ceo-page-content .wp-block-columns p {
  font-family: var(--fp-font) !important;
  font-size: 14px;
  line-height: 1.9;
  color: var(--fp-text);
}

/* Background icon class from original theme — hide it in our design */
.ceo_bg_icon_end {
  background-image: none !important;
}

@media (max-width: 767px) {
  .est-entry {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .est-entry__year {
    width: auto;
  }

  .ceo-page-content .ceo_img img {
    width: 200px;
    height: 200px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   49. BOARD OF DIRECTORS — archive-bod.php
   ═══════════════════════════════════════════════════════════════ */

/* ── Chairman featured card ── */
.bod-chairman-section {
  padding: 40px 0 32px;
  background: #fff;
}

.bod-chairman-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--fp-radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
}

.bod-chairman-card__img-wrap {
  width: 100%;
  overflow: hidden;
}

.bod-chairman-card__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.bod-chairman-card__info {
  padding: 20px 24px 24px;
}

.bod-chairman-card__name {
  font-family: var(--fp-font) !important;
  font-size: 18px;
  font-weight: 700;
  color: var(--fp-text);
  margin: 0 0 8px;
  line-height: 1.5;
}

.bod-chairman-card__title {
  font-family: var(--fp-font) !important;
  font-size: 14px;
  color: var(--fp-muted, #6b7280);
  margin: 0;
  line-height: 1.6;
}

/* ── Members grid ── */
.bod-members-section {
  padding: 32px 0 56px;
  background: #fff;
}

.bod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Individual member card ── */
.bod-card {
  padding: 16px;
  background: #fff;
  border-radius: var(--fp-radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}

.bod-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .13);
  transform: translateY(-3px);
}

.bod-card__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.bod-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.bod-card__info {
  padding: 22px 16px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bod-card__name {
  font-family: var(--fp-font) !important;
  font-size: 16px;
  font-weight: 700;
  color: var(--fp-text);
  margin: 0;
  line-height: 1.5;
}

.bod-card__role {
  font-family: var(--fp-font) !important;
  font-size: 14px;
  color: var(--fp-muted, #6b7280);
  margin: 0;
  line-height: 1.5;
}

/* ── Suppress old parent theme BOD sections ── */
.archive-bod .chief_executive_section_1,
.archive-bod .directors_section .section_main_header,
.archive-bod .directors_section .directors-card {
  display: none !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .bod-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .bod-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .bod-chairman-card {
    max-width: 340px;
  }

  .bod-chairman-card__name {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .bod-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bod-card__name {
    font-size: 11px;
  }

  .bod-card__role {
    font-size: 10px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   50. AWARDS / MILESTONES — taxonomy-milestones-types.php
   ═══════════════════════════════════════════════════════════════ */

.awards-section {
  padding: 40px 0 64px;
  background: #fff;
}

/*
 * Two-column layout.
 * Sidebar is FIRST in DOM → right side in RTL (flex-start = right),
 *                         → left side in LTR (flex-start = left).
 * Both directions use flex-direction: row — RTL reverses visually automatically.
 */
.awards-layout {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
}

/* ── Sidebar ── */
.awards-sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  border-inline-start: 3px solid var(--fp-border, #e5e7eb);
  padding-inline-start: 16px;
}

.awards-sidebar__meta-label {
  font-family: var(--fp-font) !important;
  font-size: 14px;
  color: var(--fp-muted, #6b7280);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.awards-sidebar__heading {
  font-family: var(--fp-font) !important;
  font-size: 20px;
  font-weight: 700;
  color: var(--fp-text);
  margin: 0 0 16px;
}

.awards-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.awards-sidebar__item {
  position: relative;
}

.awards-sidebar__item+.awards-sidebar__item {
  margin-top: 2px;
}

/* Active indicator: green left bar (inline-start in RTL = right side of list) */
.awards-sidebar__item.is-active::before {
  content: '';
  position: absolute;
  inset-inline-start: -19px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 70%;
  background: var(--fp-accent);
  border-radius: 2px;
}

.awards-sidebar__btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 8px 0;
  font-family: var(--fp-font) !important;
  font-size: 14px;
  font-weight: 400;
  color: var(--fp-text);
  cursor: pointer;
  text-align: start;
  transition: color .15s;
  line-height: 1.5;
  text-decoration: none;
}

.awards-sidebar__btn:hover {
  color: var(--fp-accent);
}

.awards-sidebar__btn.is-active {
  color: #000000;
  font-weight: 600;
}

/* ── Main content area ── */
.awards-main {
  flex: 1;
  min-width: 0;
}

/* ── Year block visibility — always show all years ── */
.awards-year-block {
  display: block !important;
}

.awards-year-block+.awards-year-block {
  margin-top: 48px;
}

.awards-year-title {
  font-family: var(--fp-font) !important;
  font-size: 30px;
  font-weight: 700;
  color: var(--fp-text);
  margin: 0 0 28px;
}

/* ── Individual award item — vertical column ── */
.award-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid var(--fp-border, #e5e7eb);
}

.award-item:last-child {
  border-bottom: none;
}

/* Title row */
.award-item__title {
  font-family: var(--fp-font) !important;
  font-size: 24px;
  font-weight: 700;
  color: var(--fp-text);
  margin: 0;
  line-height: 1.6;
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.award-item__num {
  color: #000000;
  font-weight: 700;
  flex-shrink: 0;
}

/* Description */
.award-item__desc {
  font-family: var(--fp-font) !important;
  font-size: 14px;
  line-height: 1.9;
  color: #555;
}

.award-item__desc p {
  margin: 0 0 6px;
}

.award-item__desc p:last-child {
  margin: 0;
}

/* ── Collapsible slider wrapper ── */
.award-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Toggle button */
.award-slider-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--fp-border, #e5e7eb);
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--fp-font) !important;
  font-size: 12px;
  color: var(--fp-muted, #6b7280);
  cursor: pointer;
  align-self: flex-start;
  margin-bottom: 10px;
  transition: border-color .15s, color .15s;
}

.award-slider-toggle:hover {
  border-color: var(--fp-accent);
  color: var(--fp-accent);
}

.award-slider-toggle__icon {
  transition: transform .25s;
}

.award-slider-toggle[aria-expanded="false"] .award-slider-toggle__icon {
  transform: rotate(180deg);
}

/* ── Slider ── */
.award-slider {
  position: relative;
  background: #f5f5f5;
  border-radius: var(--fp-radius-md, 8px);
  overflow: hidden;
  align-self: center;
  width: 85%;
}

/* Collapsed state */
.award-slider.is-closed {
  display: none;
}

.award-slider__track {
  position: relative;
  width: 100%;
}

.award-slider__slide {
  display: none;
}

.award-slider__slide.is-active {
  display: block;
}

.award-slider__img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  display: block;
}

/* Prev / Next arrow buttons */
.award-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, .85);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
  backdrop-filter: blur(4px);
  direction: ltr;
}

.award-slider__nav:hover {
  background: #fff;
}

.award-slider__nav--prev {
  inset-inline-start: 12px;
}

.award-slider__nav--next {
  inset-inline-end: 12px;
}

/* Dots */
.award-slider__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 8px;
  background: rgba(0, 0, 0, .03);
}

.award-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  transition: background .15s, transform .15s;
}

.award-slider__dot.is-active {
  background: var(--fp-accent);
  transform: scale(1.25);
}

/* Awards empty message */
.awards-empty {
  font-family: var(--fp-font) !important;
  color: var(--fp-muted, #6b7280);
  padding: 40px 0;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .awards-layout {
    flex-direction: column !important;
    gap: 24px;
  }

  .awards-sidebar {
    width: 100%;
    position: static;
    border-inline-start: none;
    border-bottom: 2px solid var(--fp-border, #e5e7eb);
    padding-inline-start: 0;
    padding-bottom: 16px;
  }

  .awards-sidebar__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .awards-sidebar__item::before {
    display: none;
  }

  .awards-sidebar__btn {
    padding: 5px 12px;
    border: 1px solid var(--fp-border, #e5e7eb);
    border-radius: 20px;
    width: auto;
  }

  .awards-sidebar__btn.is-active {
    background: var(--fp-accent);
    color: #fff;
    border-color: var(--fp-accent);
  }
}

@media (max-width: 600px) {
  .award-slider__img {
    height: 220px;
  }
}

/* ═══════════════════════════════════════════════════════════
   Section 51 – CEO Page
═══════════════════════════════════════════════════════════ */

/* ── Profile section ── */
.ceo-profile-section {
  margin-top: 40px;
  background: #f8f9fa;
  padding: 56px 0;
  justify-self: center;
  width: 85%;
  border-radius: 5px;
  padding: 40px;
}

.ceo-profile-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
}

/* Info: first in DOM = RIGHT side in RTL */
.ceo-profile-card__info {
  flex: 1;
  min-width: 0;
  justify-items: center;
}

.ceo-profile-card__honorific {
  font-family: var(--fp-font) !important;
  font-size: 14px;
  font-weight: 600;
  color: var(--fp-accent);
  margin: 0 0 4px;
  line-height: 1.4;
}

.ceo-profile-card__name {
  font-family: var(--fp-font) !important;
  font-size: 30px;
  font-weight: 700;
  color: var(--fp-text);
  margin: 0 0 10px;
  line-height: 1.3;
}

.ceo-profile-card__title {
  font-family: var(--fp-font) !important;
  font-size: 16px;
  color: var(--fp-muted, #555);
  margin: 0 0 20px;
  line-height: 1.7;
  border-bottom: 1px solid var(--fp-border, #e5e7eb);
  padding-bottom: 20px;
  text-align: center;
}

.ceo-profile-card__edu-label {
  font-family: var(--fp-font) !important;
  font-size: 14px;
  font-weight: 700;
  color: var(--fp-accent);
  margin: 0 0 6px;
}

.ceo-profile-card__edu-text {
  font-family: var(--fp-font) !important;
  font-size: 14px;
  color: var(--fp-text);
  margin: 0;
  line-height: 1.6;
}

/* Photo: second in DOM = LEFT side in RTL */
.ceo-profile-card__photo-wrap {
  flex-shrink: 0;
  width: 365px;
}

.ceo-profile-card__photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* ── Bio / Experience section ── */
.ceo-bio-section {
  background: #fff;
  padding: 48px 0;
}

.ceo-bio-section__heading {
  font-family: var(--fp-font) !important;
  font-size: 20px;
  font-weight: 700;
  color: var(--fp-accent);
  margin: 0 0 20px;
}

.ceo-bio-section__body p {
  font-family: var(--fp-font) !important;
  font-size: 16px;
  color: var(--fp-text);
  line-height: 1.9;
  margin: 0 0 16px;
}

.ceo-bio-section__body p:last-child {
  margin-bottom: 0;
}

/* ── Positions section ── */
.ceo-positions-section {
  background: #ffffff;
  padding: 48px 0;
}

.ceo-positions-section__heading {
  font-family: var(--fp-font) !important;
  font-size: 20px;
  font-weight: 700;
  color: var(--fp-accent);
  margin: 0 0 28px;
}

.ceo-positions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
}

.ceo-positions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ceo-positions-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
  font-family: var(--fp-font) !important;
  font-size: 14px;
  color: var(--fp-text);
  line-height: 1.6;
}

.ceo-positions-list__item:last-child {
  border-bottom: none;
}

/* Icon — inline-start side (RIGHT in RTL, LEFT in LTR) */
.ceo-positions-list__icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  order: -1;
  /* icon before text in both directions */
}

/* Responsive */
@media (max-width: 900px) {
  .ceo-profile-card {
    flex-direction: column-reverse;
    /* photo on top, info below */
    gap: 28px;
  }

  .ceo-profile-card__photo-wrap {
    width: 260px;
    margin: 0 auto;
  }

  .ceo-positions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ceo-profile-card__name {
    font-size: 20px;
  }

  .ceo-profile-card__photo-wrap {
    width: 200px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MEDIA CENTER & HELP/SUPPORT — SHARED CENTER-CARDS GRID
   ═══════════════════════════════════════════════════════════════ */
.center-cards-section {
  padding: 48px 0 56px;
  background: #fff;
}

.center-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.center-cards-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .center-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .center-cards-grid,
  .center-cards-grid--two {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SUBPAGE SHARED LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.subpage-content-section {
  padding: 48px 0 64px;
  background: #fff;
}

.subpage-empty {
  text-align: center;
  color: var(--fp-text-2);
  font-size: 15px;
  padding: 48px 0;
}

.subpage-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fp-accent);
  text-decoration: none;
  margin-top: 12px;
  transition: color var(--fp-trans);
}

.subpage-read-more:hover {
  color: var(--fp-green);
}

/* ═══════════════════════════════════════════════════════════════
   NEWS GRID (tpl-media-news)
   ═══════════════════════════════════════════════════════════════ */
.subpage-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .subpage-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .subpage-news-grid {
    grid-template-columns: 1fr;
  }
}

.subpage-news-card {
  background: #fff;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-lg);
  overflow: hidden;
  box-shadow: var(--fp-shadow-sm);
  transition: box-shadow var(--fp-trans), transform var(--fp-trans);
  display: flex;
  flex-direction: column;
}

.subpage-news-card:hover {
  box-shadow: var(--fp-shadow-md);
  transform: translateY(-3px);
}

.subpage-news-card__img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.subpage-news-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.subpage-news-card:hover .subpage-news-card__img-wrap img {
  transform: scale(1.04);
}

.subpage-news-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.subpage-news-card__date {
  font-size: 12px;
  color: var(--fp-text-2);
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.subpage-news-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fp-text);
  margin: 0 0 10px;
  line-height: 1.5;
}

.subpage-news-card__title a {
  color: inherit;
  text-decoration: none;
}

.subpage-news-card__title a:hover {
  color: var(--fp-accent);
}

.subpage-news-card__excerpt {
  font-size: 14px;
  color: var(--fp-text-2);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════════
   PUBLICATIONS LIST (tpl-media-publications)
   ═══════════════════════════════════════════════════════════════ */
.subpage-pub-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subpage-pub-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-md);
  box-shadow: var(--fp-shadow-sm);
  transition: box-shadow var(--fp-trans);
}

.subpage-pub-card:hover {
  box-shadow: var(--fp-shadow-md);
}

.subpage-pub-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(27, 131, 84, .08);
  border-radius: var(--fp-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--fp-accent);
}

.subpage-pub-card__body {
  flex: 1;
  min-width: 0;
}

.subpage-pub-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fp-text);
  margin: 4px 0 6px;
}

.subpage-pub-card__title a {
  color: inherit;
  text-decoration: none;
}

.subpage-pub-card__title a:hover {
  color: var(--fp-accent);
}

.subpage-pub-card__excerpt {
  font-size: 14px;
  color: var(--fp-text-2);
  margin: 0;
  line-height: 1.6;
}

.subpage-pub-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fp-accent);
  text-decoration: none;
  flex-shrink: 0;
  transition: color var(--fp-trans);
}

.subpage-pub-card__link:hover {
  color: var(--fp-green);
}

/* ═══════════════════════════════════════════════════════════════
   MEDIA LIBRARY TABS (tpl-media-library)
   ═══════════════════════════════════════════════════════════════ */
.media-lib-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--fp-border);
  padding-bottom: 0;
}

.media-lib-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--fp-text-2);
  font-family: var(--fp-font);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--fp-trans), border-color var(--fp-trans);
}

.media-lib-tab:hover {
  color: var(--fp-accent);
}

.media-lib-tab.is-active {
  color: var(--fp-accent);
  border-bottom-color: var(--fp-accent);
}

.subpage-media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .subpage-media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .subpage-media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.subpage-media-item {
  position: relative;
}

.subpage-media-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--fp-radius-md);
  display: block;
  transition: opacity var(--fp-trans);
}

.subpage-media-item:hover img {
  opacity: .9;
}

.subpage-media-item__title {
  font-size: 12px;
  color: var(--fp-text-2);
  margin: 8px 0 0;
  text-align: center;
}

.subpage-media-item--video .subpage-media-item__play-wrap {
  position: relative;
  display: block;
}

.subpage-media-item__play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  transition: transform var(--fp-trans);
}

.subpage-media-item--video:hover .subpage-media-item__play-btn {
  transform: scale(1.15);
}

/* ═══════════════════════════════════════════════════════════════
   FAQ ACCORDION (tpl-help-faq)
   ═══════════════════════════════════════════════════════════════ */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-bottom: 1px solid var(--fp-border);
  overflow: hidden;
  background: #fff;
  transition: box-shadow var(--fp-trans);
}

.faq-item.is-open {
  border-color: var(--fp-text-2);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: start;
  font-size: 16px;
  font-weight: 600;
  color: var(--fp-text);
  font-family: var(--fp-font);
  cursor: pointer;
  transition: color var(--fp-trans);
}

.faq-item__question:hover {
  color: var(--fp-accent);
}

.faq-item.is-open .faq-item__question {
  color: var(--fp-accent);
}

.faq-item__chevron {
  flex-shrink: 0;
  color: var(--fp-accent);
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: 0 24px 20px;
}

.faq-item__answer p {
  font-size: 16px;
  color: var(--fp-text);
  line-height: 1.8;
  margin: 16px 0 0;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT PAGE (tpl-help-contact)
   ═══════════════════════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-md);
  box-shadow: var(--fp-shadow-sm);
}

.contact-info-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(27, 131, 84, .08);
  border-radius: var(--fp-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--fp-accent);
}

.contact-info-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fp-text-2);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.contact-info-card__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--fp-text);
  margin: 0;
  text-decoration: none;
}

a.contact-info-card__value:hover {
  color: var(--fp-accent);
}

.contact-form-wrap {
  background: var(--fp-bg);
  border-radius: var(--fp-radius-lg);
  padding: 36px 32px;
}

.contact-form-wrap__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--fp-text);
  margin: 0 0 24px;
}

/* Style CF7 inputs inside contact form */
.contact-form-wrap .wpcf7-form input[type="text"],
.contact-form-wrap .wpcf7-form input[type="email"],
.contact-form-wrap .wpcf7-form input[type="tel"],
.contact-form-wrap .wpcf7-form select,
.contact-form-wrap .wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #9da4ae;
  /* SDS neutral-400 */
  border-radius: var(--fp-radius-sm);
  font-family: var(--fp-font);
  font-size: 14px;
  background: #fff;
  color: var(--fp-text);
  transition: border-color var(--fp-trans);
  margin-bottom: 4px;
}

.contact-form-wrap .wpcf7-form input:focus,
.contact-form-wrap .wpcf7-form textarea:focus {
  outline: none;
  border-color: #384250;
  box-shadow: var(--fp-shadow-md);
}

/* SDS focus */
.contact-form-wrap .wpcf7-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form-wrap .wpcf7-form input[type="submit"] {
  background: var(--fp-accent);
  color: #fff;
  border: none;
  border-radius: var(--fp-radius-pill);
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--fp-font);
  cursor: pointer;
  transition: background var(--fp-trans);
  margin-top: 8px;
}

.contact-form-wrap .wpcf7-form input[type="submit"]:hover {
  background: var(--fp-accent-h);
}

/* SDS brand-700 */


/* ═══════════════════════════════════════════════════════════════
   MEGA MENU — nav dropdown panels with icon cards
   ═══════════════════════════════════════════════════════════════ */

/* Nav item marker */
.has-mega-menu {
  position: static !important;
}

.has-mega-menu>a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.mega-caret {
  font-size: 10px;
  color: var(--fp-accent);
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.has-mega-menu.is-mega-open .mega-caret i,
.has-mega-menu:hover .mega-caret i {
  transform: rotate(180deg);
}

/* Backdrop */
.rcrc-mega-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(0, 0, 0, .30);
  z-index: 998;
}

.rcrc-mega-backdrop.is-visible {
  display: block;
}

/* Panel */
.rcrc-mega-panel {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  z-index: 999;
  background: #fff;
  border-top: 3px solid var(--fp-accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .14);
  padding: 28px 0 32px;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.rcrc-mega-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

/* We position the panel just below the nav via JS — set top via CSS var updated by JS */
.rcrc-mega-panel {
  top: var(--rcrc-nav-bottom, 112px);
  /* 40px topbar + 72px nav */
}

/* Grid of cards */
.rcrc-mega-grid {
  display: grid;
  gap: 20px;
}

.rcrc-mega-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.rcrc-mega-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {

  .rcrc-mega-grid--3,
  .rcrc-mega-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* Individual card */
.rcrc-mega-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 20px 20px;
  background: #fff;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-lg);
  text-decoration: none !important;
  box-shadow: var(--fp-shadow-sm);
  transition: box-shadow var(--fp-trans), border-color var(--fp-trans), transform var(--fp-trans);
  position: relative;
  overflow: hidden;
}

.rcrc-mega-card::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--fp-accent);
  transform: scaleY(0);
  transition: transform 0.22s ease;
  transform-origin: bottom;
}

.rcrc-mega-card:hover {
  box-shadow: var(--fp-shadow-md);
  border-color: rgba(27, 131, 84, .3);
  transform: translateY(-2px);
}

.rcrc-mega-card:hover::before {
  transform: scaleY(1);
}

.rcrc-mega-card__icon {
  width: 64px;
  height: 64px;
  background: rgba(27, 131, 84, .06);
  border-radius: var(--fp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rcrc-mega-card__icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.rcrc-mega-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fp-text);
  font-family: var(--fp-font);
  flex: 1;
  line-height: 1.4;
}

.rcrc-mega-card:hover .rcrc-mega-card__title {
  color: var(--fp-accent);
}

.rcrc-mega-card__arrow {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--fp-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--fp-text-2);
  transition: background var(--fp-trans), border-color var(--fp-trans), color var(--fp-trans);
}

.rcrc-mega-card:hover .rcrc-mega-card__arrow {
  background: var(--fp-accent);
  border-color: var(--fp-accent);
  color: #fff;
}

/* Mobile: hide mega panels on small screens (use normal nav links) */
@media (max-width: 991px) {
  .rcrc-mega-panel {
    display: none !important;
  }

  .mega-caret {
    display: none;
  }

  .rcrc-mega-backdrop {
    display: none !important;
  }
}

.pagination {
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   Tenders / Competitions Page
═══════════════════════════════════════════════════════════ */

/* Header */
.tenders-header {
  position: relative;
  padding: 80px 0 60px;
  color: #fff;
  overflow: hidden;
  min-height: 220px;
}

.tenders-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--fp-accent) 0%, #014d2d 100%);
  z-index: 0;
}

.tenders-header .container {
  position: relative;
  z-index: 1;
}

.tenders-breadcrumb {
  font-size: .85rem;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 12px;
}

.tenders-breadcrumb a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
}

.tenders-breadcrumb a:hover {
  color: #fff;
}

.tenders-breadcrumb .sep {
  margin: 0 6px;
}

.tenders-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* Filter bar */
.tenders-filter-section {
  padding: 28px 0;
  background: #f5f7f9;
}

.tenders-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.tenders-filter-search {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.filter-search-icon {
  pointer-events: none;
}

/* layout + color via shared search-icon group */
.tenders-search-input {
  font-size: .92rem;
}

/* border/bg/focus via shared SDS search rules */
.tenders-search-input:focus {
  outline: none;
}

.tenders-select {
  padding: 10px 14px;
  min-height: 48px;
  box-sizing: border-box;
  border: 1.5px solid #9da4ae;
  /* SDS neutral-400 */
  border-radius: 8px;
  font-size: .92rem;
  background: #fff;
  min-width: 160px;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}

.tenders-select:focus {
  border-color: #384250;
  box-shadow: var(--fp-shadow-md);
}

/* SDS focus */
.tenders-filter-btn {
  padding: 10px 28px;
  background: var(--fp-accent);
  color: #fff;
  border: none;
  border-radius: var(--fp-radius-xs);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}

.tenders-filter-btn:hover {
  background: var(--fp-accent-h);
}

/* Grid */
.tenders-grid-section {
  padding: 48px 0 64px;
}

.tenders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .tenders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tenders-grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
.tender-card {
  background: #fff;
  border: 1.5px solid #e8edf2;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}

.tender-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
  transform: translateY(-3px);
}

.tender-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8fafb;
  border-bottom: 1px solid #e8edf2;
  gap: 8px;
}

.tender-number {
  font-size: .8rem;
  font-weight: 700;
  color: var(--fp-accent);
  background: #e6f5ed;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: monospace;
}

.tender-status-badge {
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-open {
  background: #dcfce7;
  color: #16a34a;
}

.status-evaluation {
  background: #fef9c3;
  color: #ca8a04;
}

.status-closed {
  background: #fee2e2;
  color: #dc2626;
}

.tender-card-body {
  padding: 18px;
  flex: 1;
}

.tender-category {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--fp-accent);
  background: #e6f5ed;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.tender-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.5;
  margin: 0 0 14px;
}

.tender-dates {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: #6b7280;
}

.tender-dates svg {
  flex-shrink: 0;
  color: var(--fp-accent);
}

.tender-card-footer {
  padding: 14px 18px;
  border-top: 1px solid #e8edf2;
}

.tender-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fp-accent);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap .2s;
}

.tender-details-btn:hover {
  gap: 10px;
  color: var(--fp-accent-h);
}

/* Empty state */
.tenders-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 1.05rem;
}

/* Pagination */
.tenders-pagination {
  margin-top: 48px;
}

/* ═══════════════════════════════════════════════════════════
   Contact Us Page (tpl-submit-queries-form) — FAQs Ar.png figma v3
═══════════════════════════════════════════════════════════ */

.rcrc-contact-page {
  background: #fff;
  font-family: var(--fp-font);
  color: #1c2340;
}

.rcrc-contact-body {
  padding: 36px 0 56px;
  overflow: visible;
}

/* ── Outer 2-column layout ────────────────────────────────── */
.rcrc-contact-page .rcrc-contact-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  grid-template-areas: "form info" !important;
  gap: 36px !important;
  align-items: start !important;
  width: 100% !important;
}

.rcrc-contact-page .rcrc-contact-form-wrap {
  grid-area: form !important;
  min-width: 0 !important;
  width: auto !important;
}

.rcrc-contact-page .rcrc-contact-info-card {
  grid-area: info !important;
  width: 100% !important;
  max-width: 320px !important;
  align-self: start !important;
  /* Float up so the card overlaps the page header bottom, matching figma */
  margin-top: -20vh !important;
  position: relative;
  z-index: 2;
}

/* Responsive — stack on tablets/mobile */
@media (max-width: 991px) {
  .rcrc-contact-page .rcrc-contact-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "form"
      "info" !important;
    gap: 24px !important;
  }

  .rcrc-contact-page .rcrc-contact-info-card {
    max-width: 100% !important;
    margin-top: 0 !important;
  }
}

/* ── Info Card ────────────────────────────────────────────── */
.rcrc-contact-info-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 22px 22px 20px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .04);
}

.rcrc-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rcrc-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #eef0f3;
}

.rcrc-info-item:first-child {
  padding-top: 6px;
}

.rcrc-info-item:last-child {
  border-bottom: none;
  padding-bottom: 6px;
}

.rcrc-info-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fp-accent);
  margin-top: 2px;
}

.rcrc-info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.rcrc-info-label {
  font-size: .95rem;
  color: #1c2340;
  font-weight: 600;
}

.rcrc-info-value {
  font-size: .9rem;
  color: var(--fp-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  word-break: break-word;
}

.rcrc-info-value svg {
  color: var(--fp-accent);
  flex-shrink: 0;
}

.rcrc-info-value:hover {
  text-decoration: underline;
  color: var(--fp-accent);
}

.rcrc-info-address {
  line-height: 1.8;
  color: var(--fp-accent) !important;
  font-size: .9rem;
}

.rcrc-follow {
  padding: 25px 0 0;
}

.rcrc-follow-label {
  font-size: .95rem;
  color: #1c2340;
  font-weight: 600;
  margin-bottom: 12px;
}

.rcrc-follow-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rcrc-follow-icons a {
  width: 32px;
  height: 32px;
  background: transparent;
  color: #1c2340;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, transform .2s;
}

.rcrc-follow-icons a svg {
  width: 32px;
  height: 32px;
  display: block;
  border: solid 1px rgba(255, 255, 255, 0.30);
  border-radius: var(--fp-radius-pill);
}

.rcrc-follow-icons a:hover {
  background: var(--fp-border);
  border-radius: var(--fp-radius-pill)
}

.rcrc-footer__group .rcrc-follow-icons a:hover {
  background: var(--fp-accent);
}

/* ═══════════════════════════════════════════════════════════
   CF7 Form styling — uses Bootstrap row/col-lg-6 from form template
═══════════════════════════════════════════════════════════ */
.rcrc-contact-form-wrap .wpcf7 {
  margin: 0;
  max-width: 100%;
}

.rcrc-contact-form-wrap .wpcf7-form {
  width: 100%;
}

/* Optional form title */
.rcrc-contact-form-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1c2340;
  margin: 0 0 22px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* Each field wrapper (col-lg-6) gets bottom spacing */
.rcrc-contact-form-wrap .contact_form .row {
  margin-inline: -12px;
  margin-bottom: 0;
}

.rcrc-contact-form-wrap .rcrc-field {
  padding-inline: 12px;
  margin-bottom: 22px;
}

/* Field label with red asterisk */
.rcrc-contact-form-wrap .rcrc-field-label {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  color: #1c2340;
  margin: 0 0 8px;
}

.rcrc-contact-form-wrap .rcrc-field-label .req {
  color: #dc2626;
  margin-inline-start: 2px;
}

/* ════════════════════════════════════════════════════════════════
   Transaction-page forms — rcrc/tpl-transaction-form.php
   #form_submission (تقديم معاملة) + #form_inquiry (استعلام / 1890·1891).
   Restyle to match the submit-queries form (.rcrc-contact-form-wrap):
   gray pill inputs, gray placeholders, boxed file upload, green submit.
   Scoped to the parent template's container IDs (CSS only — no content
   change). ════════════════════════════════════════════════════════ */
/* Field labels (e.g. the file-upload label) — like .rcrc-field-label */
#form_submission label,
#form_inquiry label {
  display: block !important;
  font-size: .92rem !important;
  font-weight: 600 !important;
  color: #1c2340 !important;
  margin: 0 0 8px !important;
  font-family: var(--fp-font) !important;
}

/* Inputs / select / textarea — gray pill */
#form_submission .wpcf7-form input[type="text"],
#form_submission .wpcf7-form input[type="email"],
#form_submission .wpcf7-form input[type="tel"],
#form_submission .wpcf7-form input[type="number"],
#form_submission .wpcf7-form input[type="url"],
#form_submission .wpcf7-form input[type="date"],
#form_submission .wpcf7-form select,
#form_submission .wpcf7-form textarea,
#form_inquiry .wpcf7-form input[type="text"],
#form_inquiry .wpcf7-form input[type="email"],
#form_inquiry .wpcf7-form input[type="tel"],
#form_inquiry .wpcf7-form input[type="number"],
#form_inquiry .wpcf7-form input[type="url"],
#form_inquiry .wpcf7-form input[type="date"],
#form_inquiry .wpcf7-form select,
#form_inquiry .wpcf7-form textarea {
  width: 100% !important;
  padding: 13px 16px !important;
  background: #f4f5f7 !important;
  border: 1px solid #f4f5f7 !important;
  border-radius: 10px !important;
  font-size: .95rem !important;
  color: #1c2340 !important;
  font-family: var(--fp-font) !important;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: border-color .18s, background .18s !important;
}

#form_submission .wpcf7-form input::placeholder,
#form_submission .wpcf7-form textarea::placeholder,
#form_inquiry .wpcf7-form input::placeholder,
#form_inquiry .wpcf7-form textarea::placeholder {
  color: #9da4ae !important;
}

/* SDS neutral-400 */
#form_submission .wpcf7-form input:focus,
#form_submission .wpcf7-form select:focus,
#form_submission .wpcf7-form textarea:focus,
#form_inquiry .wpcf7-form input:focus,
#form_inquiry .wpcf7-form select:focus,
#form_inquiry .wpcf7-form textarea:focus {
  border-color: #384250 !important;
  /* SDS neutral-700 */
  background: #fff !important;
  box-shadow: var(--fp-shadow-md) !important;
}

#form_submission .wpcf7-form textarea,
#form_inquiry .wpcf7-form textarea {
  min-height: 130px !important;
  resize: vertical !important;
}

/* Select dropdown chevron */
#form_submission .wpcf7-form select,
#form_inquiry .wpcf7-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  cursor: pointer;
}

[dir="rtl"] #form_submission .wpcf7-form select,
[dir="rtl"] #form_inquiry .wpcf7-form select {
  background-position: left 16px center !important;
  padding-inline-start: 36px !important;
}

[dir="ltr"] #form_submission .wpcf7-form select,
[dir="ltr"] #form_inquiry .wpcf7-form select {
  background-position: right 16px center !important;
  padding-inline-end: 36px !important;
}

/* Hide CF7 stray <br> */
#form_submission .wpcf7-form br,
#form_inquiry .wpcf7-form br {
  display: none;
}

/* File upload — boxed like the reference */
#form_submission .wpcf7-form input[type="file"],
#form_inquiry .wpcf7-form input[type="file"] {
  background: #fff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: .85rem !important;
  cursor: pointer;
  width: auto !important;
}

/* Field spacing — match the submit-queries form (22px between fields).
   These forms have no per-field wrapper div, and CF7 autop is off, so the
   field controls are inline .wpcf7-form-control-wrap spans (vertical margin
   ignored). Make them block so the 22px gap takes effect. */
#form_submission .wpcf7-form .wpcf7-form-control-wrap,
#form_inquiry .wpcf7-form .wpcf7-form-control-wrap {
  display: block !important;
  margin-bottom: 22px !important;
}

#form_submission .wpcf7-form p,
#form_inquiry .wpcf7-form p {
  margin: 0 0 22px !important;
}

#form_submission .wpcf7-form .row p,
#form_inquiry .wpcf7-form .row p {
  margin: 0 !important;
}

/* CF7 wraps inputs in a span — keep block flow */
.rcrc-contact-form-wrap .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Hide stray <br> CF7 injects */
.rcrc-contact-form-wrap .wpcf7-form br {
  display: none;
}

/* Input / select / textarea — gray pill style from figma */
.rcrc-contact-form-wrap .wpcf7 input[type="text"],
.rcrc-contact-form-wrap .wpcf7 input[type="email"],
.rcrc-contact-form-wrap .wpcf7 input[type="tel"],
.rcrc-contact-form-wrap .wpcf7 input[type="number"],
.rcrc-contact-form-wrap .wpcf7 input[type="url"],
.rcrc-contact-form-wrap .wpcf7 input[type="date"],
.rcrc-contact-form-wrap .wpcf7 select,
.rcrc-contact-form-wrap .wpcf7 textarea {
  width: 100% !important;
  padding: 13px 16px !important;
  background: #f4f5f7 !important;
  border: 1px solid #f4f5f7 !important;
  border-radius: 10px !important;
  font-size: .95rem !important;
  color: #1c2340 !important;
  font-family: inherit !important;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: border-color .18s, background .18s !important;
}

.rcrc-contact-form-wrap .wpcf7 input::placeholder,
.rcrc-contact-form-wrap .wpcf7 textarea::placeholder {
  color: #9da4ae !important;
}

/* SDS neutral-400 */
.rcrc-contact-form-wrap .wpcf7 input:focus,
.rcrc-contact-form-wrap .wpcf7 select:focus,
.rcrc-contact-form-wrap .wpcf7 textarea:focus {
  border-color: #384250 !important;
  /* SDS neutral-700 */
  background: #fff !important;
  box-shadow: var(--fp-shadow-md) !important;
}

.rcrc-contact-form-wrap .wpcf7 textarea {
  min-height: 130px !important;
  resize: vertical !important;
}

/* Select dropdown chevron */
.rcrc-contact-form-wrap .wpcf7 select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  cursor: pointer;
}

[dir="rtl"] .rcrc-contact-form-wrap .wpcf7 select {
  background-position: left 16px center !important;
  padding-inline-start: 36px !important;
}

[dir="ltr"] .rcrc-contact-form-wrap .wpcf7 select {
  background-position: right 16px center !important;
  padding-inline-end: 36px !important;
}

/* Phone with +966 prefix */
.rcrc-contact-form-wrap .rcrc-phone-wrap {
  display: flex;
  align-items: stretch;
  background: #f4f5f7;
  border: 1px solid #f4f5f7;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .18s, background .18s;
}

.rcrc-contact-form-wrap .rcrc-phone-wrap:focus-within {
  border-color: var(--fp-accent);
  background: #fff;
}

.rcrc-contact-form-wrap .rcrc-phone-code {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-weight: 600;
  font-size: .95rem;
  color: #1c2340;
  background: transparent;
  flex-shrink: 0;
}

[dir="rtl"] .rcrc-contact-form-wrap .rcrc-phone-code {
  border-inline-start: 1px solid #e5e7eb;
}

[dir="ltr"] .rcrc-contact-form-wrap .rcrc-phone-code {
  border-inline-end: 1px solid #e5e7eb;
}

.rcrc-contact-form-wrap .rcrc-phone-wrap .wpcf7-form-control-wrap {
  flex: 1;
}

.rcrc-contact-form-wrap .rcrc-phone-wrap input[type="tel"] {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

/* File upload box */
.rcrc-contact-form-wrap .rcrc-upload-box {
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}

.rcrc-contact-form-wrap .rcrc-upload-hint {
  font-size: .8rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.rcrc-contact-form-wrap .rcrc-upload-box input[type="file"] {
  background: #fff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: .85rem !important;
  cursor: pointer;
  align-self: flex-start;
  width: auto !important;
}

/* Acceptance row */
.rcrc-contact-form-wrap .rcrc-form-acceptance {
  margin: 8px 0 18px;
  display: flex;
  justify-content: flex-end;
}

[dir="ltr"] .rcrc-contact-form-wrap .rcrc-form-acceptance {
  justify-content: flex-start;
}

.rcrc-contact-form-wrap .wpcf7-acceptance {
  display: inline-block;
  padding: 0;
  margin: 0;
}

.rcrc-contact-form-wrap .wpcf7-acceptance .wpcf7-list-item {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
}

.rcrc-contact-form-wrap .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: .92rem;
  color: #1c2340;
  font-weight: 400;
  cursor: pointer;
}

.rcrc-contact-form-wrap .wpcf7-acceptance input[type="checkbox"] {
  margin-inline-end: 10px;
  width: 18px;
  height: 18px;
  accent-color: var(--fp-accent);
  cursor: pointer;
}

.rcrc-contact-form-wrap .wpcf7-acceptance a {
  color: var(--fp-accent);
  font-weight: 600;
  margin: 0 4px;
}

.rcrc-contact-form-wrap .wpcf7-acceptance a:hover {
  text-decoration: underline;
}

/* Submit row — align to start (left in RTL, right in LTR) */
.rcrc-contact-form-wrap .rcrc-form-submit {
  justify-content: flex-start;
}

[dir="ltr"] .rcrc-contact-form-wrap .rcrc-form-submit {
  justify-content: flex-start;
}

.rcrc-contact-form-wrap .wpcf7 input[type="submit"],
.rcrc-contact-form-wrap .wpcf7-submit,
.rcrc-contact-form-wrap .rcrc-submit-btn {
  background: var(--fp-accent) !important;
  /* SDS brand-600 */
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background .2s !important;
  display: inline-block !important;
  width: auto !important;
  margin: 0 !important;
  font-family: inherit !important;
}

.rcrc-contact-form-wrap .wpcf7 input[type="submit"]:hover {
  background: var(--fp-accent-h) !important;
  /* SDS brand-700 */
}

/* SDS submit-button states (focus / active / disabled) — official كود المنصات spec */
.contact-form-wrap .wpcf7-form input[type="submit"]:focus-visible,
.rcrc-contact-form-wrap .wpcf7 input[type="submit"]:focus-visible,
.rcrc-contact-form-wrap .wpcf7-submit:focus-visible,
.cf7-actions input.wpcf7-submit:focus-visible,
#rcrc-cf7-steps input.wpcf7-submit:focus-visible {
  outline: 2px solid #000 !important;
  outline-offset: 1px;
  box-shadow: inset 0 0 0 1.5px #fff !important;
}

.contact-form-wrap .wpcf7-form input[type="submit"]:active,
.rcrc-contact-form-wrap .wpcf7 input[type="submit"]:active,
.rcrc-contact-form-wrap .wpcf7-submit:active {
  background: var(--fp-green) !important;
  /* SDS brand-900 */
}

.wpcf7-form input[type="submit"]:disabled,
.wpcf7-form input[type="submit"][disabled],
.wpcf7-form button[type="submit"]:disabled,
.wpcf7-form button:disabled,
.wpcf7-submit:disabled,
.wpcf7-submit[disabled],
.contact-form-wrap .wpcf7-form input[type="submit"]:disabled,
.rcrc-contact-form-wrap .wpcf7 input[type="submit"]:disabled,
.rcrc-contact-form-wrap .wpcf7-submit:disabled,
.cf7-actions input.wpcf7-submit:disabled,
#rcrc-cf7-steps input.wpcf7-submit:disabled {
  background: #e5e7eb !important;
  /* disabled bg */
  color: #9da4ae !important;
  /* disabled text (SDS neutral-400) */
  cursor: not-allowed !important;
}

/* Errors / response */
.rcrc-contact-form-wrap .wpcf7 .wpcf7-not-valid,
.contact-form-wrap .wpcf7-form .wpcf7-not-valid {
  border-color: #b42318 !important;
}

/* SDS error: red-700 */
.rcrc-contact-form-wrap .wpcf7-not-valid-tip {
  color: #b42318;
  font-size: .82rem;
  margin-top: 4px;
  /* SDS red-700 */
}

.rcrc-contact-form-wrap .wpcf7-response-output {
  border-radius: 8px !important;
  margin: 16px 0 0 !important;
  padding: 12px 16px !important;
  font-size: .92rem;
}

/* ═══════════════════════════════════════════════════════════
   Page Feedback ("Was this page useful?")
═══════════════════════════════════════════════════════════ */
/* Last-modified strip — sits ABOVE the feedback bar */
.rcrc-lastmod {
  background: #fff;
  padding: 14px 0;
  font-family: var(--fp-font);
}

.rcrc-lastmod__text {
  font-size: .92rem;
  color: var(--fp-text);
}

.rcrc-feedback {
  background: #fff;
  border-top: 2px solid var(--fp-accent-h);
  padding: 20px 0;
  font-family: var(--fp-font);
  color: var(--fp-text);
}

/* Collapsed bar */
.rcrc-fb-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.rcrc-fb-question {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rcrc-fb-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fp-text);
}

.rcrc-fb-buttons {
  display: flex;
  gap: 10px;
}

.rcrc-fb-btn {
  background: var(--fp-accent);
  color: #fff;
  border: none;
  border-radius: var(--fp-radius-xs);
  padding: 7px 28px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s;
  font-family: inherit;
}

.rcrc-fb-btn:hover {
  background: #166a45;
}

.rcrc-fb-stats {
  font-size: .9rem;
  color: #1c2340;
}

/* Expanded form */
.rcrc-fb-form {
  padding-top: 8px;
  display: block;
}

.rcrc-fb-form[hidden] {
  display: none !important;
}

.rcrc-fb-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.rcrc-fb-form-question {
  font-size: 1rem;
  color: #1c2340;
  line-height: 1.6;
}

.rcrc-fb-form-question strong {
  font-weight: 700;
  margin-inline-end: 6px;
}

.rcrc-fb-multi-hint {
  color: #6b7280;
  font-weight: 400;
  font-size: .88rem;
}

.rcrc-fb-actions-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rcrc-fb-close {
  background: transparent;
  border: none;
  color: var(--fp-accent);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  font-family: inherit;
}

.rcrc-fb-close:hover {
  color: var(--fp-accent-h);
}

.rcrc-fb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 767px) {
  .rcrc-fb-form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.rcrc-fb-reasons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Checkbox */
.rcrc-fb-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: #1c2340;
  cursor: pointer;
  user-select: none;
}

.rcrc-fb-check input[type="checkbox"] {
  display: none;
}

.rcrc-fb-check-mark {
  width: 18px;
  height: 18px;
  border: 1.5px solid #c4c9d2;
  border-radius: 4px;
  background: #fff;
  position: relative;
  flex-shrink: 0;
}

.rcrc-fb-check input:checked+.rcrc-fb-check-mark {
  background: var(--fp-accent);
  border-color: var(--fp-accent);
}

.rcrc-fb-check input:checked+.rcrc-fb-check-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2 7l3 3 7-7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Comment textarea */
.rcrc-fb-comment-col label {
  display: block;
  font-size: .92rem;
  color: #1c2340;
  margin-bottom: 8px;
  font-weight: 500;
}

.rcrc-fb-comment-col textarea {
  width: 100%;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: .92rem;
  color: #1c2340;
  font-family: inherit;
  min-height: 110px;
  outline: none;
  background: #fff;
  resize: vertical;
}

.rcrc-fb-comment-col textarea:focus {
  border-color: var(--fp-accent);
}

/* Gender */
.rcrc-fb-gender {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 18px 0 4px;
  font-size: .95rem;
}

.rcrc-fb-gender-label {
  font-weight: 600;
  color: #1c2340;
}

.rcrc-fb-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.rcrc-fb-radio input[type="radio"] {
  display: none;
}

.rcrc-fb-radio-mark {
  width: 18px;
  height: 18px;
  border: 1.5px solid #c4c9d2;
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex-shrink: 0;
}

.rcrc-fb-radio input:checked+.rcrc-fb-radio-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--fp-accent);
}

/* Footer of form */
.rcrc-fb-form-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.rcrc-fb-submit {
  align-self: flex-start;
  background: var(--fp-accent);
  color: #fff;
  border: none;
  border-radius: var(--fp-radius-xs);
  padding: 9px 36px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s;
  font-family: inherit;
}

.rcrc-fb-submit:hover {
  background: var(--fp-accent-h);
}

.rcrc-fb-policy {
  font-size: .85rem;
  color: #1c2340;
  line-height: 1.7;
  margin: 0;
}

.rcrc-fb-policy a {
  color: var(--fp-accent);
  font-weight: 600;
}

.rcrc-fb-policy a:hover {
  text-decoration: underline;
}

/* Thanks state */
.rcrc-fb-thanks {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  color: var(--fp-accent);
  font-size: 1rem;
  font-weight: 600;
}

.rcrc-fb-thanks.is-visible {
  display: flex;
}

/* Active button states */
.rcrc-fb-btn.is-selected {
  background: #014d2d;
}

/* Mobile */
@media (max-width: 767px) {
  .rcrc-fb-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rcrc-fb-question {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ── Gallery card overlay (archive-photos.php) ───────────── */
.fd-gallery-card .fd-card__img-wrap {
  position: relative;
  display: block;
}

.fd-gallery-card__overlay {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  pointer-events: none;
}

.fd-gallery-card__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(27, 131, 84, .95);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  pointer-events: auto;
}

.fd-gallery-card__count svg {
  display: block;
}

.fd-gallery-card .fd-card__title a {
  color: inherit;
  text-decoration: none;
}

.fd-gallery-card .fd-card__title a:hover {
  color: var(--fp-accent);
}

.home .rcrc-feedback,
.page-template-tpl-ceo .rcrc-feedback,
.page-template-tpl-organization .rcrc-feedback,
.post-type-archive-bod .rcrc-feedback {
  display: none !important;
}

.img_hei {
  height: 48px;
}

/* ═══════════════════════════════════════════════════════════════
   FAQS ARCHIVE — archive-faqs.php
   ═══════════════════════════════════════════════════════════════ */
.fd-faqs-section {
  padding: 32px 0 64px;
  background: #fff;
}

/* Top toolbar: filter (start side) + search (end side) */
.fd-faqs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* ── Filter dropdown ── */
.fd-faqs-filter {
  position: relative;
}

.fd-faqs-filter__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: var(--fp-text);
  border-radius: var(--fp-radius-pill, 5px);
  color: var(--fp-white);
  font-family: var(--fp-font) !important;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  min-width: 110px;
  justify-content: space-between;
}

.fd-faqs-filter__toggle:hover {
  color: var(--fp-bg);
}

.fd-faqs-filter__toggle[aria-expanded="true"] {
  color: var(--fp-bg);
}

.fd-faqs-filter__chevron {
  transition: transform .2s;
  flex-shrink: 0;
}

.fd-faqs-filter__toggle[aria-expanded="true"] .fd-faqs-filter__chevron {
  transform: rotate(180deg);
}

.fd-faqs-filter__menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 240px;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--fp-border, #e5e7eb);
  border-radius: var(--fp-radius-md, 8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  padding: 8px;
  z-index: 20;
}

.fd-faqs-filter__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fd-faqs-filter__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--fp-font) !important;
  font-size: 14px;
  color: var(--fp-text);
  transition: background .15s;
}

.fd-faqs-filter__option:hover {
  background: rgba(27, 131, 84, .06);
}

.fd-faqs-filter__checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--fp-text);
  flex-shrink: 0;
}

/* ── Search bar (matches Figma: green pill button + input + icon) ── */
.fd-faqs-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--fp-border, #e5e7eb);
  border-radius: var(--fp-radius-pill, 999px);
  padding: 4px 6px;
  flex: 1;
  max-width: 480px;
  min-width: 260px;
}

.fd-faqs-search__btn {
  background: var(--fp-accent);
  color: #fff;
  border: none;
  border-radius: var(--fp-radius-pill, 999px);
  padding: 8px 22px;
  font-family: var(--fp-font) !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}

.fd-faqs-search__btn:hover {
  background: var(--fp-accent-h);
}

/* SDS brand-700 */
.fd-faqs-search__input {
  flex: 1;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-family: var(--fp-font) !important;
  font-size: 14px !important;
  color: var(--fp-text) !important;
  padding: 0 6px !important;
  min-width: 0;
}

.fd-faqs-search__input::placeholder {
  color: var(--fp-text-2, #6b7280);
}

.fd-faqs-search__icon {
  display: inline-flex;
  align-items: center;
  color: var(--fp-text-2, #6b7280);
  padding-inline-end: 10px;
  flex-shrink: 0;
}

/* ── Selected filter chips ── */
.fd-faqs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  min-height: 0;
  justify-content: end;
}

.fd-faqs-chips:empty {
  display: none;
}

.fd-faqs-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--fp-accent);
  color: var(--fp-white);
  border: 1px solid rgba(27, 131, 84, .25);
  border-radius: var(--fp-radius-pill);
  font-family: var(--fp-font) !important;
  font-size: 12px;
  font-weight: 600;
}

.fd-faqs-chip__remove {
  background: none;
  border: none;
  color: currentColor;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  line-height: 1;
  opacity: .7;
  transition: opacity .15s;
}

.fd-faqs-chip__remove:hover {
  opacity: 1;
}

.fd-faqs-chip--clear {
  background: transparent;
  color: var(--fp-text-2, #6b7280);
  border-color: var(--fp-border, #e5e7eb);
  cursor: pointer;
}

.fd-faqs-chip--clear:hover {
  color: var(--fp-accent);
  border-color: var(--fp-accent);
}

/* ── FAQ list spacing (accordion styles already exist) ── */
.fd-faqs-list {
  max-width: 100%;
  margin-top: 50px;
}

.fd-faqs-list__item.is-hidden {
  display: none;
}

.fd-faqs-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--fp-text-2, #6b7280);
  font-family: var(--fp-font) !important;
}

/* ── Pagination override (no .container wrapper here) ── */
.fd-faqs-pagination {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding: 0;
}

.fd-faqs-pagination .fd-faqs-page,
.fd-faqs-pagination .fd-faqs-pagedots {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 3px;
  padding: 0 8px;
  font-family: var(--fp-font) !important;
  font-size: 14px;
  color: var(--fp-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}

.fd-faqs-pagination .fd-faqs-page:hover {
  background: rgba(27, 131, 84, .08);
  color: var(--fp-accent);
}

.fd-faqs-pagination .fd-faqs-page.is-current {
  background: var(--fp-accent, #00874e);
  color: #fff;
  font-weight: 600;
}

.fd-faqs-pagination .fd-faqs-page--nav {
  color: var(--fp-text-2, #6b7280);
}

.fd-faqs-pagination .fd-faqs-page--nav:disabled,
.fd-faqs-pagination .fd-faqs-page--nav[aria-disabled="true"] {
  opacity: .35;
  cursor: not-allowed;
}

.fd-faqs-pagination .fd-faqs-pagedots {
  cursor: default;
}

/* ── Reusable Comments & Suggestions box ── */
.fd-comments-box {
  display: grid;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--fp-border, #e5e7eb);
  border-radius: var(--fp-radius-lg, 16px);
  margin-top: 75px;
}

.fd-comments-box__body {
  flex: 1;
  min-width: 0;
}

.fd-comments-box__title {
  font-family: var(--fp-font) !important;
  font-size: 16px;
  font-weight: 700;
  color: var(--fp-text);
  margin: 0 0 6px;
}

.fd-comments-box__subtitle {
  font-family: var(--fp-font) !important;
  font-size: 16px;
  color: var(--fp-text-2, #6b7280);
  margin: 0;
  line-height: 1.6;
}

.fd-comments-box__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fp-accent, #00874e);
  color: var(--fp-white) !important;
  border: none;
  border-radius: var(--fp-radius-pill);
  padding: 10px 24px;
  width: 120px;
  font-family: var(--fp-font) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}

.fd-comments-box__btn:hover {
  background: var(--fp-green);
  color: var(--fp-white) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .fd-faqs-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .fd-faqs-search {
    max-width: 100%;
  }

  .fd-comments-box {
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
  }

  .fd-comments-box__btn {
    align-self: stretch;
  }
}

/* ═══════════════════════════════════════════════════════════
   Sitemap page (page-sitemap.php)
   Renders the primary nav menu as a bulleted hierarchical list.
═══════════════════════════════════════════════════════════ */
.fd-sitemap-section {
  padding: 48px 0 80px;
}

.fd-sitemap {
  max-width: 9100%;
  margin-inline-start: auto;
  margin-inline-end: 0;
}

.fd-sitemap__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fd-sitemap__list--root>.fd-sitemap__item {
  position: relative;
  padding-inline-start: 22px;
  margin-bottom: 18px;
}

.fd-sitemap__list--root>.fd-sitemap__item::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fp-accent, #1b8354);
}

.fd-sitemap__list--sub {
  margin-top: 8px;
  padding-inline-start: 24px;
}

.fd-sitemap__list--sub>.fd-sitemap__item {
  position: relative;
  padding-inline-start: 20px;
  margin-bottom: 4px;
}

.fd-sitemap__list--sub>.fd-sitemap__item::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--fp-accent, #1b8354);
}

.fd-sitemap__link {
  display: inline-block;
  font-family: var(--fp-accent) !important;
  font-size: 18px;
  color: var(--fp-accent);
  text-decoration: none;
  padding: 4px 0;
  transition: color .15s;
}

.fd-sitemap__link:hover {
  color: var(--fp-accent-h);
  text-decoration: underline;
}

.fd-sitemap__list--root>.fd-sitemap__item>.fd-sitemap__link {
  font-weight: 700;
}

.fd-sitemap__list--sub .fd-sitemap__link {
  font-size: 16px;
  font-weight: 400;
}

.fd-sitemap__empty {
  font-family: var(--fp-font) !important;
  text-align: center;
  color: var(--fp-text-2, #6b7280);
  padding: 40px 0;
}

/* ═══════════════════════════════════════════════════════════
   PDF feedback fixes — round 2 (May 2026)
═══════════════════════════════════════════════════════════ */

/* ── Point (17): loading overlay shown while filter / sort forms
   submit (i.e. server-side filters / page navigation). Mounted once
   per page and toggled with .is-active. */
.fd-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .65);
  z-index: 99990;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.fd-loading-overlay.is-active {
  display: flex;
}

.fd-loading-overlay__spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid #e5e7eb;
  border-top-color: var(--fp-accent, #1b8354);
  animation: fd-spin 0.9s linear infinite;
}

@keyframes fd-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Inline (in-place) spinner for client-side filtering on the FAQ /
   Projects pages — appears in the result area only. */
.fd-inline-loader {
  display: none;
  text-align: center;
  padding: 48px 0;
}

.fd-inline-loader.is-active {
  display: block;
}

.fd-inline-loader__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  border-top-color: var(--fp-accent, #1b8354);
  animation: fd-spin 0.9s linear infinite;
  margin: 0 auto;
}

/* ── Point (18): unify all search inputs to the Search.png design ── */
.fd-search,
.fd-faqs-search,
.tenders-search-wrap,
.tenders-filter-search,
.fd-filter-bar__search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
  min-height: 48px;
  border: 1px solid #9da4ae;
  /* SDS neutral-400 (search field) */
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  transition: border-color .15s, box-shadow .15s;
}

.fd-search:hover,
.fd-faqs-search:hover,
.tenders-search-wrap:hover,
.tenders-filter-search:hover,
.fd-filter-bar__search:hover {
  border-color: #384250;
  /* SDS neutral-700 */
}

.fd-search:focus-within,
.fd-faqs-search:focus-within,
.tenders-search-wrap:focus-within,
.tenders-filter-search:focus-within,
.fd-filter-bar__search:focus-within {
  border-color: #384250;
  /* SDS neutral-700 */
  box-shadow: var(--fp-shadow-md);
}

/* Search icon at the start (right in RTL, left in LTR) */
.fd-search__icon,
.fd-faqs-search__icon,
.filter-search-icon,
.fd-filter-bar__search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fp-text, #1F2A37);
  flex-shrink: 0;
  order: 0;
  margin-inline-end: 8px;
  position: static;
  /* tenders icon was absolute — normalize to flex child */
}

/* The input itself — fills, no native border */
.fd-search input,
.fd-faqs-search__input,
.tenders-search-input,
.fd-filter-bar__input {
  flex: 1;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  font-family: var(--fp-font) !important;
  font-size: 15px;
  color: var(--fp-text, #1F2A37);
  padding: 12px 4px !important;
  width: 100%;
  box-shadow: none !important;
}

.fd-search input::placeholder,
.fd-faqs-search__input::placeholder,
.tenders-search-input::placeholder,
.fd-filter-bar__input::placeholder {
  color: #9da4ae;
  /* SDS neutral-400 */
  opacity: 1;
}

/* Hide native clear (×) — we render our own */
.fd-search input::-webkit-search-cancel-button,
.fd-faqs-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

/* Our clear button — only visible when there's text */
.fd-search__clear,
.fd-faqs-search__clear,
.fd-filter-bar__clear {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #6c727e;
  padding: 6px;
  /* SDS neutral-500 */
  border-radius: 4px;
}

.fd-search.has-value .fd-search__clear,
.fd-faqs-search.has-value .fd-faqs-search__clear,
.fd-filter-bar__search.has-value .fd-filter-bar__clear {
  display: inline-flex;
}

.fd-search__clear:hover,
.fd-faqs-search__clear:hover,
.fd-filter-bar__clear:hover {
  color: var(--fp-text, #1F2A37);
  background: var(--fp-bg-2);
}

/* FAQ search: box + separate button, matching the nav search box */
.fd-faqs-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 560px;
}

.fd-faqs-search-row .fd-faqs-search {
  flex: 1;
  max-width: none;
}

.fd-faqs-search__btn {
  background: var(--fp-accent, #1b8354) !important;
  color: #fff !important;
  border: 0;
  border-radius: 8px;
  height: 48px;
  padding: 0 24px;
  font-family: var(--fp-font) !important;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}

.fd-faqs-search__btn:hover {
  background: var(--fp-accent-h, #166a45) !important;
}

/* SDS brand-700 */

/* ── Sort button: outlined pill matching the filter button style ── */
.fd-sort-wrap,
.fd-filter-bar__select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.fd-sort-label {
  font-family: var(--fp-font) !important;
  font-size: 14px;
  color: var(--fp-text, #1F2A37);
  pointer-events: none;
  white-space: nowrap;
}

.fd-sort-wrap::after,
.fd-filter-bar__select-wrap::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2340' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='3' y1='6' x2='21' y2='6'/><line x1='3' y1='12' x2='15' y2='12'/><line x1='3' y1='18' x2='9' y2='18'/><path d='M18 9v9'/><path d='M15 15l3 3 3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

.fd-sort-select,
.fd-filter-bar__select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
  -webkit-appearance: none;
  appearance: none;
}

.fd-sort-select:focus,
.fd-filter-bar__select:focus {
  outline: 0;
}

.fd-filter-bar__select-wrap .fd-filter-bar__chevron {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   single-post.php — featured image only sits in a gray frame.
   Title + body stay outside the frame on plain background.
═══════════════════════════════════════════════════════════ */
.news_section .the_sheared_img,
.news_section img.the_sheared_img {
  display: block;
  width: 100% !important;
  max-width: 100%;
  margin: 0 0 24px;
  /* Fixed height so the image fills the whole gray box top-to-bottom.
     object-fit: contain keeps the image's aspect ratio so the gray
     shows on the sides as in the design. */
  height: 460px !important;
  max-height: 60vh;
  object-fit: contain !important;
  background: var(--fp-bg-2);
  /* gray frame — desktop only (removed on mobile below) */
  border-radius: 16px;
  box-shadow: none;
  padding: 0;
  /* image touches the gray edges */
}

/* Make sure the surrounding col-12 / text_section have NO gray bg
   (revert any earlier overrides). */
.single-post .news_section .container>.row>.col-12 {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.single-post .news_section .text_section {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-top: 0;
}

@media (max-width: 991px) {

  /* Mobile: drop the gray frame, show the image at its natural height
     (no letterbox space above/below) and tighten the vertical margin. */
  .news_section .the_sheared_img,
  .news_section img.the_sheared_img {
    background: transparent !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 0 12px !important;
  }
}

@media (max-width: 575px) {
  .news_section .the_sheared_img {
    height: auto !important;
    border-radius: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SDS — link text underlined (official كود المنصات link style)
   Buttons & whole-card links already set text-decoration:none, so
   they stay clean automatically. We only exclude nav chrome below.
   ═══════════════════════════════════════════════════════════════ */
a {
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* External-link icon (4px gap) after external text links (target=_blank) */
a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-inline-start: 4px;
  vertical-align: -2px;
  background-color: currentColor;
  -webkit-mask: url("assets/icons/external-link.svg") center/contain no-repeat;
  mask: url("assets/icons/external-link.svg") center/contain no-repeat;
}

/* not on icon-only links (social / follow icons / logo) */
.rcrc-footer__social a[target="_blank"]::after,
.rcrc-follow-icons a[target="_blank"]::after,
.rcrc-footer__logos a[target="_blank"]::after,
.section_main_header .figma-viewall-btn a[target="_blank"]::after,
.navbar-brand[target="_blank"]::after {
  content: none;
}

/* Electronic Services cards: the buttons are CTAs, not text links —
   drop the external-link arrow appended to target="_blank" links. */
.page-template-electronic-services a.btn[target="_blank"]::after {
  content: none;
}

/* Single-post share icons are icon-only links — no external-link arrow. */
.single-post .footer-social-icons a[target="_blank"]::after {
  content: none;
}

/* button-like / whole-card / logo / icon-control links stay clean even on hover */
.navbar-brand:hover,
.btn:hover,
.fd-btn:hover,
.figma-viewall-btn:hover,
.figma-viewall-btn a:hover,
.figma-news-card:hover,
a.fd-card:hover,
.topbar-menu>li>a:hover,
.topbar-menu>li>.nav-link:hover,
.topbar-menu>.nav-item>a:hover,
.topbar-menu>.nav-item>.nav-link:hover,
nav .navbar-nav>.nav-item>a:hover,
nav .navbar-nav>.nav-item>.nav-link:hover,
.fd-pagination a:hover,
.rcrc-pagination a:hover,
.page-numbers:hover,
.rcrc-nav-search-btn:hover,
.rcrc-nav-lang-btn:hover,
.rcrc-search-go:hover {
  text-decoration: none;
}

.fd-card.fd-card--publication>a::after,
.fd-card.fd-card--publication .fd-card__body .fd-card__title>a::after,
.fd-card.fd-card--publication .fd-card__body>a::after,
.fd-card.fd-card--media .fd-card__body .fd-card__meta .fd-card__meta-date {
  content: none !important;
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV FIXES (≤991px)
   (1) open menu drops BELOW the logo row (parent positions it as an
       overlay at top:0 / z-index:-1000 — undo that)
   (2) tabs + active pill full-width
   (3) sub-menus collapsed by default, toggle open on click (.show)
   (4) mobile search + language laid out correctly
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  /* (1) open menu sits below the logo/toggler row instead of over it */
  nav .navbar-collapse,
  body.light nav .navbar-collapse {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    z-index: auto !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: none !important;
    padding: 0 0 16px !important;
  }

  /* breathing room around the open menu (was 80px 30px) */
  .topbar-menu {
    padding: 8px 24px !important;
  }

  .topbar-menu>li {
    width: 100% !important;
  }

  /* ── (2) FULL-WIDTH TABS ──────────────────────────────────── */
  .topbar-menu .nav-item>.nav-link,
  .topbar-menu .nav-item>a,
  .topbar-menu li.menu-item-has-children>a,
  .topbar-menu .nav-item.dropdown>.dropdown-toggle,
  nav .navbar-nav>.nav-item>.nav-link,
  nav .navbar-nav>.nav-item>a {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 16px !important;
    border-radius: var(--fp-radius-sm) !important;
  }

  .topbar-menu>.nav-item.current-menu-item>.nav-link,
  .topbar-menu>.nav-item.current-menu-item>a,
  .topbar-menu>.nav-item.current-menu-ancestor>.nav-link,
  .topbar-menu>.nav-item.current-menu-ancestor>a {
    width: 100% !important;
    border-radius: var(--fp-radius-sm) !important;
  }

  /* chevron sits at the row end, points DOWN while closed */
  .topbar-menu .nav-item.dropdown>.dropdown-toggle::after,
  .topbar-menu li.menu-item-has-children>a::after {
    content: '' !important;
    display: inline-block !important;
    position: static !important;
    inset: auto !important;
    width: 12px !important;
    height: 8px !important;
    background-color: currentColor !important;
    border-radius: 0 !important;
    transform: none !important;
    transition: transform .2s ease !important;
  }

  /* chevron flips UP when its sub-menu is open */
  .topbar-menu .dropdown-toggle.show::after,
  .topbar-menu .dropdown-toggle[aria-expanded="true"]::after,
  .topbar-menu li.menu-item-has-children>a.show::after,
  .topbar-menu li.menu-item-has-children>a[aria-expanded="true"]::after {
    transform: rotate(180deg) !important;
  }

  /* drop the desktop hover/active underline bars on mobile */
  .topbar-menu .nav-item>.nav-link:hover::before,
  .topbar-menu .nav-item>a:hover::before,
  .navbar-nav .current-menu-item::after,
  .navbar-nav .current-menu-parent::after,
  .topbar-menu>.nav-item.current-menu-item:not(.dropdown):not(.menu-item-has-children)>.nav-link::after,
  .topbar-menu>.nav-item.current-menu-item:not(.dropdown):not(.menu-item-has-children)>a::after {
    content: none !important;
    display: none !important;
  }

  /* ── (3) SUB-MENUS: closed by default, open on click ──────── */
  /* collapsed */
  nav .dropdown-menu {
    display: none !important;
    position: static !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
    border: none !important;
    background: var(--fp-bg-2) !important;
    border-radius: var(--fp-radius-sm) !important;
    margin: 2px 0 8px !important;
    padding: 4px 0 !important;
    grid-template-columns: 1fr !important;
  }

  /* open — Bootstrap puts .show on the menu (or .show/aria on the toggle) */
  nav .dropdown-menu.show,
  nav .dropdown-toggle.show+.dropdown-menu,
  nav .dropdown-toggle[aria-expanded="true"]+.dropdown-menu,
  nav li.menu-item-has-children>a.show+.dropdown-menu,
  nav li.menu-item-has-children>a[aria-expanded="true"]+.dropdown-menu {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
  }

  nav .dropdown-menu .dropdown-item {
    display: block !important;
    width: 100% !important;
    padding: 10px 28px !important;
  }

  /* ── (4) MOBILE SEARCH + LANGUAGE ─────────────────────────── */
  .navbar-collapse .d-lg-none.d-block {
    padding: 4px 24px 20px !important;
  }

  .navbar-collapse .head-search-form.fd-search {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 14px !important;
  }

  .navbar-collapse .d-lg-none .btn.btn-outline-secondary {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid var(--fp-border) !important;
    border-radius: var(--fp-radius-sm) !important;
    background: #fff !important;
    color: var(--fp-text) !important;
    font-family: var(--fp-font) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
  }

  .navbar-collapse .d-lg-none .btn.btn-outline-secondary:hover {
    background: var(--fp-bg-2) !important;
  }
}

/* ── Mobile submenu caret button (label navigates, caret toggles) ──────── */
/* Desktop: hidden — hover opens the menu and the label keeps its ::after caret. */
.rcrc-subnav-toggle {
  display: none;
}

@media (max-width: 991px) {

  /* Parent row: [ label .......... ][ caret ] ; submenu wraps to a row below */
  .topbar-menu li.menu-item-has-children {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  .topbar-menu li.menu-item-has-children>a {
    flex: 1 1 auto !important;
    width: auto !important;
  }

  /* Active item with a submenu: keep the label inline with its caret instead
     of the active-state width:100% rule (which pushed the arrow to a new row). */
  .topbar-menu li.menu-item-has-children.current-menu-item>a,
  .topbar-menu li.menu-item-has-children.current-menu-ancestor>a {
    width: auto !important;
    flex: 1 1 auto !important;
  }

  /* Hide the label's built-in chevron — the button is the caret now */
  .topbar-menu li.menu-item-has-children>a.dropdown-toggle::after,
  .topbar-menu li.menu-item-has-children>a::after {
    content: none !important;
    display: none !important;
  }

  .rcrc-subnav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    background: none;
    border: 0;
    color: var(--fp-text);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: transform .2s ease;
  }

  .rcrc-subnav-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
  }

  /* Submenu takes its own full-width row directly beneath the item */
  .topbar-menu li.menu-item-has-children>.dropdown-menu {
    flex: 1 1 100% !important;
    order: 3 !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Organization Chart (tpl-organization.php) — render like production.
   The redesign's wide .container (--fp-container / 80px gutters) squeezes the
   chart and throws off its percentage-tuned connector lines. Restore the
   original Bootstrap .container ONLY on this page so the chart, its lines and
   the horizontally-scrollable departments row all match the live site at
   every screen size. (Parent CSS already scrolls departments ≤1600px and
   shows them all >1600px — it just needs the production container width.)
   ═══════════════════════════════════════════════════════════════ */
.page-template-tpl-organization .container {
  width: 100%;
  max-width: none;
  margin-right: auto;
  margin-left: auto;
  padding-right: 12px;
  padding-left: 12px;
}

@media (min-width: 576px) {
  .page-template-tpl-organization .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .page-template-tpl-organization .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .page-template-tpl-organization .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .page-template-tpl-organization .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .page-template-tpl-organization .container {
    max-width: 1320px;
  }
}

/* ≤767px: center the two assistant boxes (like production) and span their
   connector line between the box centers — otherwise they fall back to
   space-between and the line only reaches the right box. */
@media (max-width: 767px) {
  .page-template-tpl-organization .org-level.assistants {
    justify-content: center;
    gap: 37px;
  }

  .page-template-tpl-organization .org-level.assistants::before {
    left: 50% !important;
    right: auto !important;
    width: 243px !important;
    transform: translateX(-50%);
  }
}

/* Org page top action icons (PDF / share) are icon links — drop the
   external-link arrow appended to target="_blank". */
.page-template-tpl-organization .container-fluid.justify-content-end a[target="_blank"]::after {
  content: none;
}

/* Keep the reCAPTCHA badge above the org-chart boxes (which use z-index:2),
   otherwise it gets hidden under them at the bottom of the page. */
.page-template-tpl-organization .grecaptcha-badge {
  z-index: 2147483647 !important;
}

.grecaptcha-badge {
  bottom: 120px !important;
}