@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --green-900: #074d31;
  --green-800: #006c35;
  --green-700: #1b8354;
  --green-600: #1b8354;
  --green-300: #d8ebe0;
  --green-200: #e9f4ee;
  --color-primary: #006c35;
  --color-dark: #074d31;
  --color-success: #067647;
  --color-accent-deep: #14573a;
  --paper: #ffffff;
  --white: #ffffff;
  --text: #000000;
  --muted: #70827b;
  --stroke: #dfe7e3;
  --shadow-soft: 0 8px 25px rgba(6, 58, 37, 0.08);
  --radius-xl: 16px;
  --radius-lg: 12px;
}

/* Frutiger LT Arabic font faces (used for footer links) */
@font-face {
  font-family: 'Frutiger LT Arabic';
  src: url('../fonts/FrutigerLTArabic45Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Frutiger LT Arabic';
  src: url('../fonts/FrutigerLTArabic55Roman.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Frutiger LT Arabic';
  src: url('../fonts/FrutigerLTArabic65Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Frutiger LT Arabic", "Cairo", system-ui, sans-serif;
}

html[lang="en"] body { font-family: "Frutiger LT Arabic", "Cairo", system-ui, sans-serif; }

a { text-decoration: none; color: inherit; }

.top-header {
  background: #fff;
  border-bottom: 1px solid #edf2ef;
  z-index: 1040;
}

.header-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.05;
}

.brand-copy small {
  font-size: 0.67rem;
  color: #7f8f88;
  letter-spacing: 0.01em;
}

.brand-copy strong {
  font-size: 0.92rem;
  color: #4a5f56;
  font-weight: 700;
}

.brand-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8cb63f, #3f8d54);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
}

.top-nav a {
  font-size: 0.9rem;
  color: #3f534a;
  font-weight: 600;
}

.top-nav a.active {
  background: var(--green-800);
  color: #fff;
  padding: 0.38rem 0.85rem;
  border-radius: 6px;
}

.top-nav a { transition: color 0.2s; }
.top-nav a:hover:not(.active) { color: var(--green-700); }

.top-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.login-link {
  font-size: 0.9rem;
  color: #4a5f56;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-button {
  border: 0;
  background: transparent;
  color: #4a5f56;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.nav-toggler i { font-size: 1.5rem; color: var(--green-800); }

.mobile-menu .offcanvas-body a {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  background: #fff;
}

.hero-block {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 16%),
    radial-gradient(circle at 26% 38%, rgba(255, 255, 255, 0.14), transparent 22%),
    radial-gradient(circle at 42% 55%, rgba(255, 255, 255, 0.12), transparent 25%),
    linear-gradient(110deg, #022316 0%, #074b31 48%, #075a36 100%);
}

.hero-block::before,
.hero-block::after {
  content: "";
  position: absolute;
  inset: auto auto 0 -12%;
  width: 80%;
  height: 125%;
  border-radius: 50%;
  transform: rotate(-17deg);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.03) 45%, rgba(255,255,255,0));
  opacity: 0.48;
  pointer-events: none;
}

.hero-block::after {
  inset: auto auto -26% -5%;
  width: 70%;
  transform: rotate(-11deg);
  opacity: 0.28;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(255,255,255,0.06), transparent 25%),
    linear-gradient(90deg, rgba(0,0,0,0.32), rgba(0,0,0,0.05) 55%, rgba(0,0,0,0));
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy-wrap {
  max-width: 640px;
  margin-inline-start: auto;
  color: #fff;
}

.hero-copy-wrap h1 {
  font-size: clamp(2rem, 4.5vw, 3.45rem);
  line-height: 1.18;
  margin-bottom: 0.9rem;
  font-weight: 800;
}

.hero-copy-wrap p {
  color: rgba(255,255,255,0.82);
  line-height: 1.95;
  margin-bottom: 1.2rem;
  max-width: 560px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.58rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}

.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.hero-dots .active { background: #fff; }

.section-space { padding: clamp(3.6rem, 6vw, 5.6rem) 0; }

.section-light { background: #f4f6f5; }

.headline {
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.headline h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.85rem, 2.8vw, 2.85rem);
  font-weight: 800;
  color: #172722;
}

.headline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.section-pill {
  display: inline-flex;
  background: #e3f1e9;
  color: #4b8c67;
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.metrics-area { padding-top: 4.2rem; }

.metrics-row {
  --bs-gutter-x: 1.1rem;
  --bs-gutter-y: 1.1rem;
  direction: ltr;
}

.metric-item {
  background: transparent;
  text-align: center;
  padding: 0.9rem 0.4rem;
}

.metrics-area .metric-item {
  display: block;
  padding: 0;
}

.metrics-area .metric-item .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 0.9rem 0.4rem;
}

.metric-item i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f3ec;
  color: #4e8c66;
  margin-bottom: 0.65rem;
}

.metric-item strong {
  display: block;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: #1f6c47;
  font-weight: 800;
}

.metric-item span {
  color: #647771;
  font-weight: 600;
}

.program-card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  overflow: hidden;
  height: 100%;
}

.program-head {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  padding: 0.45rem 0.7rem;
}

.program-head span {
  font-size: 0.68rem;
  padding: 0.18rem 0.44rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
}

.accent-a { background: linear-gradient(90deg, #2e854f, #418f58); }
.accent-b { background: linear-gradient(90deg, #98ad23, #7f9d3f); }
.accent-c { background: linear-gradient(90deg, #4e8b4f, #2d7645); }
.accent-d { background: linear-gradient(90deg, #4f8f57, #77b06d); }
.accent-e { background: linear-gradient(90deg, #9b9c29, #bcbc32); }
.accent-f { background: linear-gradient(90deg, #8d9640, #a6b54d); }

.program-card h3 {
  margin: 0.95rem 0.95rem 0.45rem;
  font-size: 1.08rem;
  font-weight: 800;
}

.program-card p {
  margin: 0 0.95rem 0.85rem;
  color: #6d8078;
  line-height: 1.8;
  font-size: 0.92rem;
}

.program-foot {
  margin-top: auto;
  border-top: 1px solid var(--stroke);
  padding: 0.78rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.program-foot a { color: var(--green-700); font-weight: 700; font-size: 0.9rem; }
.program-foot small { color: #6f837b; font-size: 0.78rem; }

.btn-main,
.btn-main-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 5px;
  font-size: 0.83rem;
  font-weight: 700;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s, box-shadow 0.25s;
  cursor: pointer;
}

.btn-main {
  background: var(--green-700);
  border: 1px solid var(--green-700);
  color: #fff;
}

.btn-main:hover { background: var(--green-800); border-color: var(--green-800); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(7,77,49,0.22); }
.btn-main:active { transform: translateY(0); box-shadow: none; }

.btn.btn-main:hover,
.btn.btn-main:focus-visible,
.btn-main:hover,
.btn-main:focus-visible {
  color: #fff;
}

.btn-main-outline {
  background: transparent;
  border: 1px solid #88a79a;
  color: #2d704e;
}

.btn-main-outline:hover { background: var(--green-200); border-color: var(--green-700); color: var(--green-800); }

.btn.btn-main-outline:hover,
.btn.btn-main-outline:focus-visible,
.btn-main-outline:hover,
.btn-main-outline:focus-visible {
  color: var(--green-800);
}

/* ── Scroll Reveal Animation ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Links / interactive hover ── */
.program-foot a,
.news-foot a { transition: color 0.2s; }
.program-foot a:hover,
.news-foot a:hover { color: var(--green-900); }

.program-card { transition: box-shadow 0.3s, transform 0.3s; }
.program-card:hover { box-shadow: 0 10px 28px rgba(6,58,37,0.1); transform: translateY(-3px); }

.news-card { transition: box-shadow 0.3s, transform 0.3s; }
.news-card:hover { box-shadow: 0 10px 28px rgba(6,58,37,0.1); transform: translateY(-3px); }

.announce-card { transition: box-shadow 0.3s, transform 0.3s; }
.announce-card:hover { box-shadow: 0 8px 22px rgba(6,58,37,0.08); transform: translateY(-2px); }

.region-mini { transition: box-shadow 0.25s, transform 0.25s; }
.region-mini:hover { box-shadow: 0 6px 18px rgba(6,58,37,0.08); transform: translateY(-2px); }

.hero-cta { transition: background 0.25s, border-color 0.25s, transform 0.15s; }
.hero-cta:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }

.lang-button { transition: color 0.2s; }
.lang-button:hover { color: var(--green-700); }

.login-link { transition: color 0.2s; }
.login-link:hover { color: var(--green-700); }

.footer-social a { transition: background 0.25s, border-color 0.25s; }
.footer-social a:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.45); }

/* ── Breadcrumb bar (inner pages) ── */
.breadcrumb-bar {
  background: #f7f9f8;
  border-bottom: 1px solid #edf2ef;
  padding: 0.72rem 0;
}

.breadcrumb-bar nav {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: nowrap;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.breadcrumb-bar a { color: var(--green-700); font-weight: 600; }
.breadcrumb-bar .sep { margin: 0 0.15rem; }

/* ── Share sidebar (detail pages) ── */
.share-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0;
}

.share-sidebar a,
.share-sidebar button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.share-sidebar a:hover,
.share-sidebar button:hover {
  background: var(--green-200);
  color: var(--green-700);
  border-color: var(--green-300);
}

/* ── Pagination ── */
.page-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2rem;
}

.page-pagination a,
.page-pagination span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--stroke);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.page-pagination a:hover { background: var(--green-200); border-color: var(--green-300); }
.page-pagination .active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.page-pagination .dots { border: none; background: none; }

/* ── Auth card (login, reset, change password) ── */
.auth-wrapper {
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: #f7f9f8;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  padding: 2.2rem 2rem;
  text-align: center;
}

.auth-card .auth-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8cb63f, #3f8d54);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.auth-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.auth-card .auth-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.auth-card .form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  text-align: start;
}

.auth-card .form-control {
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.88rem;
}

.auth-card .form-control:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(11,106,67,0.12);
}

.auth-card .password-input-group {
  position: relative;
}

.auth-card .password-input-group .form-control {
  padding-left: 2.9rem;
}

.auth-card .password-input-group .form-control.is-invalid,
.auth-card .password-input-group .form-control.is-valid,
.auth-card .was-validated .password-input-group .form-control:invalid,
.auth-card .was-validated .password-input-group .form-control:valid {
  padding-left: 2.9rem;
  background-image: none;
}

.auth-card .password-input-group .form-control[type="password"]::-ms-reveal,
.auth-card .password-input-group .form-control[type="password"]::-ms-clear {
  display: none;
}

.auth-card .password-toggle {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  z-index: 6;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  background: transparent;
  color: #6f7d78;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.auth-card .password-toggle:hover {
  color: var(--green-700);
}

.auth-card .password-toggle:focus-visible {
  outline: 2px solid rgba(11,106,67,0.22);
  outline-offset: 2px;
  border-radius: 999px;
}

.auth-card .password-input-group.has-invalid + .invalid-feedback {
  display: block;
}

.auth-card .password-input-group.has-valid + .invalid-feedback {
  display: none;
}

.auth-card .invalid-feedback {
  width: 100%;
  text-align: right;
  direction: rtl;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.6;
}

.auth-card .auth-state[hidden] {
  display: none !important;
}

.auth-card .auth-state-success {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.auth-card .auth-success-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.auth-card .auth-success-link:hover {
  color: var(--green-800);
}

.auth-card .auth-success-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin: 0 auto 1rem;
}

.auth-card .auth-success-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.auth-card .auth-success-text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.9;
  margin: 0;
  max-width: 17rem;
}

.auth-card .btn-auth {
  width: 100%;
  padding: 0.65rem;
  border-radius: 8px;
  background: var(--green-700);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 0.5rem;
  transition: background 0.25s, transform 0.15s;
  cursor: pointer;
}

.auth-card .btn-auth:hover { background: var(--green-800); transform: translateY(-1px); }

.auth-card .auth-link {
  display: block;
  margin-top: 1rem;
  color: var(--green-700);
  font-size: 0.84rem;
  font-weight: 600;
}

/* Underline helper for specific auth links (used on reset-password page) */
.auth-card .auth-underline {
  text-decoration: underline;
}

.auth-card .auth-note {
  margin: 1rem 0 0;
  color: #4a5561;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.auth-card .auth-hint {
  margin: -0.1rem 0 0.65rem;
  color: #7b8794;
  font-size: 0.78rem;
  text-align: right;
}

/* ── Detail page hero banner ── */
.detail-hero {
  background: linear-gradient(120deg, #074d31, #0b6a43);
  color: #fff;
  padding: clamp(2.2rem, 5vw, 3.8rem) 0;
  position: relative;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 40%, rgba(255,255,255,0.14), transparent 25%),
    radial-gradient(circle at 50% 65%, rgba(255,255,255,0.08), transparent 30%);
  pointer-events: none;
}

.detail-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  position: relative;
}

.detail-hero p {
  color: rgba(255,255,255,0.82);
  line-height: 1.85;
  max-width: 700px;
  position: relative;
}

.detail-hero .hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.2rem;
  position: relative;
}

.detail-hero .hero-stats .stat-item {
  text-align: center;
}

.detail-hero .hero-stats .stat-item strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
}

.detail-hero .hero-stats .stat-item span {
  font-size: 0.8rem;
  opacity: 0.82;
}

/* ── Tabs for detail pages ── */
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--stroke);
  margin-bottom: 1.5rem;
}

.detail-tabs button {
  border: none;
  background: none;
  padding: 0.7rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.detail-tabs button.active,
.detail-tabs button:hover {
  color: var(--green-700);
  border-bottom-color: var(--green-700);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Map placeholder ── */
.map-placeholder {
  min-height: 320px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #e9f4ee, #d8ebe0 40%, #bdd8c9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  border: 1px solid var(--stroke);
}

/* ── About page ── */
.about-hero {
  background: linear-gradient(120deg, #022316, #074d31 50%, #0b6a43);
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,0.12), transparent 20%),
    radial-gradient(circle at 50% 60%, rgba(255,255,255,0.06), transparent 28%),
    radial-gradient(circle at 80% 25%, rgba(255,255,255,0.08), transparent 18%);
  pointer-events: none;
}

.about-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  position: relative;
  margin-bottom: 0.6rem;
}

.about-hero p {
  color: rgba(255,255,255,0.82);
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.85;
}

.mission-card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background: #fff;
  padding: 1.5rem;
  text-align: center;
  height: 100%;
  transition: box-shadow 0.3s, transform 0.3s;
}

.mission-card:hover { box-shadow: 0 10px 28px rgba(6,58,37,0.1); transform: translateY(-3px); }

.mission-card .m-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-200);
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.mission-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.mission-card p {
  color: var(--muted);
  line-height: 1.82;
  font-size: 0.88rem;
}

/* ── Objective list ── */
.objective-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: obj;
}

.objective-list li {
  counter-increment: obj;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--stroke);
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #3a4e47;
}

.objective-list li::before {
  content: counter(obj);
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-200);
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ── Image placeholder for detail pages ── */
.img-placeholder {
  min-height: 260px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.img-placeholder.tone-detail {
  background: linear-gradient(135deg, #e2ede7, #c4d8ce, #a2bfb2);
}

/* ── Ad/announcement list card ── */
.ad-list-card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

.ad-list-card:hover { box-shadow: 0 8px 22px rgba(6,58,37,0.08); transform: translateY(-2px); }

.ad-list-card .ad-body { flex: 1; }
.ad-list-card .ad-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.ad-list-card .ad-body p { font-size: 0.86rem; color: var(--muted); line-height: 1.75; margin-bottom: 0.4rem; }
.ad-list-card .ad-meta { font-size: 0.76rem; color: #73877f; }

/* ── Footer policy links (RTL, Frutiger font, inline small links) ── */
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  direction: rtl;
}

.footer-policy-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-direction: row-reverse;
  margin-bottom: 0.55rem;
  flex-wrap: nowrap;
  font-family: 'Frutiger LT Arabic', "Cairo", system-ui, sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  text-align: right;
}

.footer-policy-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: underline;
  text-decoration-style: solid;
  text-underline-offset: 0;
  text-decoration-thickness: auto;
  transition: color 0.2s;
  display: inline;
}

.footer-policy-links a:hover { color: #fff; }
.policy-sep { color: rgba(255,255,255,0.35); font-size: 0.75rem; margin-inline: 6px; }

/* ── Entity card (region details) ── */
.entity-card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1.2rem 1rem;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.entity-card:hover { box-shadow: 0 8px 22px rgba(6,58,37,0.08); transform: translateY(-2px); }

.entity-card .entity-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-200);
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.entity-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.entity-card .entity-stats {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.entity-card .entity-stats p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  justify-content: center;
}

.entity-card .entity-stats p strong {
  color: var(--green-700);
  font-weight: 800;
  font-size: 0.95rem;
}

/* ── Breadcrumb (unified) ── */
.breadcrumb-bar nav,
.page-breadcrumb ol {
  font-size: 0.82rem;
}

.breadcrumb-bar { padding: 0.72rem 0; }
.page-breadcrumb { padding: 0.72rem 0; }

/* ── Saudi map ── */
.saudi-map-wrap {
  min-height: 380px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #f0f7f3, #e4f0e9, #d4e6dc);
  border: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.saudi-map-wrap svg {
  max-width: 600px;
  width: 100%;
  height: auto;
}

.saudi-map-wrap .map-label {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.9);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--stroke);
}

.regions-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0.9rem;
}

.region-side-card,
.region-banner-card,
.region-mini {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: #fff;
}

.region-side-card {
  padding: 0.9rem;
}

.region-side-card h3 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.region-side-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.region-side-card li,
.region-mini p {
  margin: 0 0 0.25rem;
  color: #6f837b;
  display: flex;
  gap: 0.36rem;
  align-items: baseline;
}

.region-side-card li span,
.region-mini p span {
  color: var(--green-700);
  font-weight: 800;
}

.pin {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--green-800);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.62rem;
}

.pin.small {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 0.78rem;
}

.region-banner-card {
  grid-column: span 3;
  min-height: 152px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #1f6a45, #0c5437);
}

.banner-fabric {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 35%, rgba(255,255,255,0.24), transparent 22%),
    radial-gradient(circle at 35% 56%, rgba(255,255,255,0.18), transparent 24%),
    linear-gradient(120deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}

.banner-text {
  position: relative;
  z-index: 1;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.banner-text p { margin: 0 0 0.4rem; opacity: 0.85; }
.banner-text strong { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }

.region-mini {
  padding: 0.72rem;
  min-height: 132px;
}

.region-mini h4 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.news-card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  height: 100%;
}

.news-thumb {
  min-height: 190px;
  border-bottom: 1px solid var(--stroke);
}

.tone-1 {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.15), transparent 48%),
    linear-gradient(120deg, #d5e8df, #9db8aa, #6f8f80);
}

.tone-2 {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), transparent 44%),
    linear-gradient(120deg, #e3ead8, #b8c680, #5d7651);
}

.tone-3 {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), transparent 44%),
    linear-gradient(120deg, #d4e5de, #8faea0, #5d8271);
}

.news-body { padding: 0.95rem; }

.news-body h3 {
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.news-body p {
  color: #6d8078;
  font-size: 0.9rem;
  line-height: 1.82;
}

.news-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.65rem;
}

.news-foot small { color: #758981; font-size: 0.75rem; }
.news-foot a { color: var(--green-700); font-size: 0.86rem; font-weight: 700; }

.announce-card {
  border: 1px solid var(--stroke);
  border-radius: 9px;
  background: #fff;
  padding: 0.82rem;
  min-height: 126px;
}

.announce-card .state {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.15rem 0.46rem;
  font-size: 0.66rem;
  margin-bottom: 0.45rem;
  border: 1px solid transparent;
}

.state.ended { color: #9aa6a1; background: #f4f6f5; border-color: #dbe3df; }
.state.new { color: #2b8d56; background: #e8f4ed; border-color: #cde5d7; }
.state.soon { color: #8f8f2b; background: #f4f4df; border-color: #e6e3ba; }
.state.open { color: #347a58; background: #e8f4ed; border-color: #cde5d7; }

.announce-card h3 {
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.announce-card small { color: #73877f; font-size: 0.74rem; }

.mailing-box {
  border-radius: 10px;
  background: #006c35;
  color: #fff;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  text-align: center;
}

.mail-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.85rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

.mailing-box p {
  max-width: 620px;
  margin: 0 auto 0.95rem;
  color: rgba(255,255,255,0.86);
  line-height: 1.85;
}

.mail-form {
  max-width: 560px;
  margin: 0 auto 0.5rem;
}

.mail-form .input-group {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.mail-form .form-control {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  border: 1px solid rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 4px !important;
  padding: 0 0.7rem;
}

.mail-form .input-group > .btn {
  border-radius: 4px !important;
}

.mail-form .form-control::placeholder { color: rgba(255,255,255,0.82); }

.mail-form .invalid-feedback {
  width: 100%;
  text-align: right;
  direction: rtl;
  color: #ffe0e0;
  margin-top: -0.1rem;
}

.mailing-box small { color: rgba(255,255,255,0.74); }

.partners-area { padding-top: 3.2rem; }

.partners-strip {
  display: grid;
  grid-template-columns: auto repeat(6, minmax(0, 1fr)) auto;
  gap: 0.7rem;
  align-items: center;
}

.strip-nav {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid var(--stroke);
  background: #fff;
  color: #82948d;
}

.partner-placeholder {
  min-height: 62px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #88a197;
  font-size: 0.86rem;
}

.main-footer {
  margin-top: 1.8rem;
  background: linear-gradient(180deg, #0a5b39, #074d31);
  color: #fff;
  padding: 3rem 0 1rem;
}

.main-footer h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.main-footer p,
.main-footer li,
.main-footer a {
  color: rgba(255,255,255,0.82);
  line-height: 1.85;
  font-size: 0.9rem;
}

.main-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.44rem;
}

.footer-social {
  display: flex;
  gap: 0.46rem;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.footer-logos {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.footer-logos span {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 0.2rem 0.52rem;
  font-size: 0.72rem;
}

.footer-bottom {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}

.footer-bottom small {
  color: rgba(255,255,255,0.76);
  font-size: 0.8rem;
}







/* ── Reference fidelity overrides (home header/programs/announcements) ── */
.top-header { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }

.top-nav a.active {
  background: #e8f4ed;
  color: var(--green-800);
  border: 1px solid #cfe3d8;
}

.hero-block {
  background:
    linear-gradient(120deg, rgba(3, 32, 20, 0.86), rgba(7, 75, 49, 0.78)),
    url("../images/hero-bg.png") center/cover no-repeat;
}

.hero-overlay {
  background:
    radial-gradient(circle at 70% 35%, rgba(255,255,255,0.06), transparent 25%),
    linear-gradient(90deg, rgba(0,0,0,0.26), rgba(0,0,0,0.04) 55%, rgba(0,0,0,0)),
    url("/assets/images/hero-overlay.png") center/cover no-repeat;
}

.program-card {
  border: 1px solid #e6ece9;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.015);
}

.program-head {
  min-height: 30px;
  padding: 0.36rem 0.68rem;
}

.program-card h3 { margin: 0.82rem 0.9rem 0.38rem; }
.program-card p { margin: 0 0.9rem 0.75rem; }

.details-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--green-700);
  font-weight: 700;
  font-size: 0.9rem;
}

.details-link i {
  display: inline-flex;
  transition: transform 0.26s ease;
}

.details-link:hover i { transform: translateX(-5px); }
html[lang="en"] .details-link:hover i { transform: translateX(5px); }

.announcements-section { background: #fff; }

.announcement-icon-wrap {
  width: auto;
  height: auto;
  margin: 0 auto 0.75rem;
  border-radius: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.announcement-card {
  border: 1px solid #e8ece9;
  border-radius: 10px;
  background: #fff;
  padding: 0.86rem 0.86rem 0.78rem;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.3s, transform 0.3s;
}

.announcement-card:hover {
  box-shadow: 0 10px 28px rgba(6,58,37,0.08);
  transform: translateY(-2px);
}

.announcement-card h3 {
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 700;
  margin-bottom: 0.66rem;
}

.announcement-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #7a8c85;
  font-size: 0.74rem;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.66rem;
  padding: 0.16rem 0.48rem;
  border: 1px solid transparent;
}

.badge-new {
  color: #2d8453;
  background: #e8f4ed;
  border-color: #cde5d7;
}

.badge-urgent {
  color: #8f8f2b;
  background: #f4f4df;
  border-color: #e6e3ba;
}

.news-thumb.tone-1,
.news-thumb.tone-2,
.news-thumb.tone-3 {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.news-thumb.tone-1 { background-image: url("../images/news-1.png"); }
.news-thumb.tone-2 { background-image: url("../images/news-2.png"); }
.news-thumb.tone-3 { background-image: url("../images/news-3.png"); }

.news-thumb.tone-1::after,
.news-thumb.tone-2::after,
.news-thumb.tone-3::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,55,36,0.22), rgba(7,55,36,0.06));
}

.auth-card .form-label { text-align: start; }
html[lang="ar"] .auth-card .form-label { text-align: end; }

/* ═══════════════════════════════════════════════════════════════════════════
   NEW SITE HEADER (matching Figma reference exactly)
   ═══════════════════════════════════════════════════════════════════════════ */
.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  z-index: 1050;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 1rem;
}

/* Brand */
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo svg {
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.brand-ar {
  font-size: 0.85rem;
  color: #4a5f56;
  font-weight: 500;
}

.brand-ar-sub {
  font-size: 1rem;
  color: var(--green-800);
  font-weight: 700;
}

.brand-text-en {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.68rem;
  color: #7a8c85;
  line-height: 1.3;
  border-right: 1px solid #e0e8e4;
  padding-right: 0.75rem;
  margin-right: 0.75rem;
}

html[lang="en"] .brand-text-en {
  border-right: none;
  border-left: 1px solid #e0e8e4;
  padding-right: 0;
  padding-left: 0.75rem;
  margin-right: 0;
  margin-left: 0.75rem;
}

/* Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-nav .nav-item {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #3f534a;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.header-nav .nav-item:hover {
  color: var(--green-700);
  background: rgba(11, 106, 67, 0.06);
}

.header-nav .nav-item.active {
  background: var(--green-800);
  color: #fff;
}

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid #d8e4de;
  border-radius: 8px;
  background: transparent;
  color: #4a5f56;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-toggle:hover {
  border-color: var(--green-700);
  color: var(--green-700);
}

.lang-toggle i {
  font-size: 1rem;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  color: #4a5f56;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}

.login-btn:hover {
  color: var(--green-700);
}

.login-btn i {
  font-size: 1.1rem;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--green-800);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO CAROUSEL (matching Figma reference)
   ═══════════════════════════════════════════════════════════════════════════ */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-carousel #heroCarousel {
  position: relative;
}

.hero-carousel .carousel-inner {
  border-radius: 0;
  position: relative;
  z-index: 1;
}

.hero-carousel .carousel-item {
  min-height: 480px;
}

.hero-slide {
  position: relative;
  min-height: inherit;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(3, 32, 20, 0.88) 0%, rgba(7, 75, 49, 0.75) 50%, rgba(7, 90, 54, 0.6) 100%),
    url("../images/hero-bg.png") center/cover no-repeat;
  z-index: 0;
}

.hero-slide .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 3rem 0;
  color: #fff;
}

html[dir="rtl"] .hero-slide-content {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

html[dir="ltr"] .hero-slide-content {
  margin-left: auto;
  text-align: left;
}

.hero-slide-content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.hero-slide-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.92;
  margin-bottom: 1.75rem;
  max-width: 560px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: var(--green-800);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.hero-btn:hover {
  background: var(--green-200);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.hero-btn:hover,
.hero-btn:focus-visible {
  color: var(--green-800);
}

.hero-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.hero-btn:hover i {
  transform: translateX(-4px);
}

html[dir="ltr"] .hero-btn:hover i {
  transform: translateX(4px);
}

/* Carousel Indicators */
.hero-carousel .carousel-indicators {
  bottom: 2rem;
  margin-bottom: 0;
}

.hero-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 6px;
  opacity: 1;
  transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
  background: #fff;
  transform: scale(1.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROGRAMS CARDS (matching Figma Desktop 2 exactly)
   ═══════════════════════════════════════════════════════════════════════════ */
.programs-section {
  background: #f7f8f7;
}

.program-card-v2 {
  background: #fff;
  border: 1px solid #e2e8e5;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: all 0.3s ease;
  position: relative;
}

.program-card-v2:hover {
  box-shadow: 0 8px 28px rgba(6, 58, 37, 0.1);
  transform: translateY(-3px);
}

.program-card-v2 .status-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: auto;
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #c8d9cf;
  color: var(--green-700);
  background: #fff;
}

html[dir="ltr"] .program-card-v2 .status-badge {
  left: auto;
  right: 1rem;
}

.program-card-v2 .program-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: #fff;
}

.program-icon.green-dark { background: var(--green-800); }
.program-icon.green-light { background: #8cb435; }
.program-icon.lime { background: #b4c435; }

.program-card-v2 h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.program-card-v2 .program-desc {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
  flex-grow: 1;
}

.program-card-v2 .program-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f4f2;
}

.program-card-v2 .beneficiaries {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.program-card-v2 .beneficiaries i {
  font-size: 1rem;
}

.program-card-v2 .details-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-700);
}

.program-card-v2 .details-link i {
  transition: transform 0.25s ease;
}

.program-card-v2:hover .details-link i {
  transform: translateX(-5px);
}

html[dir="ltr"] .program-card-v2:hover .details-link i {
  transform: translateX(5px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   REGIONS WITH GOOGLE MAP
   ═══════════════════════════════════════════════════════════════════════════ */
.regions-with-map {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.map-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(6, 58, 37, 0.1);
}

.map-container iframe {
  display: block;
  width: 100%;
  min-height: 400px;
}

.map-overlay-banner {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(6, 58, 37, 0.25);
}

html[dir="ltr"] .map-overlay-banner {
  left: auto;
  right: 1.5rem;
}

.map-overlay-banner p {
  font-size: 0.85rem;
  margin: 0 0 0.25rem;
  opacity: 0.9;
}

.map-overlay-banner strong {
  font-size: 1.5rem;
  font-weight: 800;
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.region-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #e6ece9;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.region-card-item:hover {
  border-color: var(--green-600);
  box-shadow: 0 8px 24px rgba(6, 58, 37, 0.1);
  transform: translateY(-3px);
}

.region-card-item .region-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-200);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.region-card-item:hover .region-icon {
  background: var(--green-700);
  color: #fff;
}

.region-card-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.region-card-item .region-stats {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.region-card-item .region-stats > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed #eef2f0;
}

.region-card-item .region-stats > div:last-child {
  border-bottom: none;
}

.region-card-item .stat-num {
  font-weight: 700;
  color: var(--green-700);
}

.region-card-item .stat-label {
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════ */









/* REFINEMENT PASS: header, cards, regions */
.site-header {
  background: #fff;
  box-shadow: 0 8px 24px rgba(10, 35, 24, 0.04);
  border-bottom: 1px solid rgba(13, 61, 39, 0.06);
}

.header-row {
  min-height: 82px;
  gap: 1.5rem;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  padding-block: 0.25rem;
}

.brand-logo-image {
  display: block;
  height: 48px;
  width: auto;
}

.header-nav {
  gap: 2.2rem;
}

.header-nav .nav-item {
  padding: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #1d2330;
  border-radius: 0;
  background: transparent;
  position: relative;
}

.header-nav .nav-item:hover,
.header-nav .nav-item.active {
  color: #0b6a43;
  background: transparent;
}

.header-nav .nav-item.active::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -0.55rem;
  height: 2px;
  background: #0b6a43;
  border-radius: 999px;
}

.header-actions {
  gap: 1.1rem;
}

.lang-toggle,
.login-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d2330;
  font-size: 1rem;
  font-weight: 500;
}

.lang-toggle:hover,
.login-btn:hover {
  color: #0b6a43;
}

.program-card-v2 {
  border: 1px solid #d4dde2;
  border-top-width: 7px;
  border-radius: 24px;
  padding: 1.55rem 1.6rem 1.35rem;
  min-height: 342px;
  overflow: hidden;
}

.program-card-v2:hover {
  box-shadow: 0 14px 32px rgba(6, 58, 37, 0.08);
  transform: translateY(-5px);
}

.programs-section .col-md-6:nth-child(3n + 1) .program-card-v2 {
  --program-card-top-strip: #8fc560;
}

.programs-section .col-md-6:nth-child(3n + 2) .program-card-v2 {
  --program-card-top-strip: #c2cc17;
}

.programs-section .col-md-6:nth-child(3n) .program-card-v2 {
  --program-card-top-strip: #4d8839;
}

.program-card-v2 .status-badge {
  top: 1.15rem;
  left: 1.3rem;
  right: auto;
  padding: 0.34rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid #a7efc9;
  color: #0b6a43;
  background: #effbf4;
}

.program-card-v2 .program-icon {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  margin: 1.2rem 0 1.4rem auto;
  font-size: 2rem;
}

.program-card-v2 h3 {
  font-size: 1.7rem;
  text-align: right;
  margin-bottom: 0.9rem;
}

.program-card-v2 .program-desc {
  font-size: 1rem;
  text-align: right;
  line-height: 1.85;
}

.program-card-v2 .program-footer {
  margin-top: 1.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid #edf0f2;
}

.program-card-v2 .beneficiaries {
  font-size: 0.95rem;
}

.program-card-v2 .details-link {
  gap: 0.55rem;
  font-size: 1.15rem;
}

.home-regions-grid {
  --bs-gutter-x: 1.1rem;
  --bs-gutter-y: 1.1rem;
}

.home-region-card,
.region-card-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 222px;
  background: radial-gradient(circle at left bottom, rgba(195, 245, 224, 0.42), transparent 34%), #fff;
  border: 1px solid #d4dde2;
  border-radius: 20px;
  padding: 1.35rem 1.35rem 1.15rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-region-card:hover,
.region-card-item:hover {
  transform: translateY(-4px);
  border-color: #aac8b3;
  box-shadow: 0 12px 28px rgba(8, 55, 35, 0.08);
}

.home-regions-section .home-region-card {
  padding: 0;
}

.home-regions-section .home-region-card .card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem 1.35rem 1.15rem;
}

.home-region-card--featured {
  grid-column: span 1;
}

.regions-banner-panel {
  grid-column: span 3;
  min-height: 222px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #0d6a41;
  text-decoration: none;
}

.regions-banner-panel__art {
  position: absolute;
  inset: 0;
  background: url('/assets/images/hero-overlay.png') center/cover no-repeat;
}

.regions-banner-panel__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.75rem 2.25rem;
  color: #fff;
}

.regions-banner-panel__content strong {
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 700;
}

.home-region-card {
  grid-column: span 1;
}

.home-region-card__icon,
.region-card-item .region-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #078040;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 0 1rem auto;
}

.home-region-card h4,
.region-card-item h4 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
  color: #152133;
}

.home-region-card__stats,
.region-card-item .region-stats {
  margin-top: auto;
  display: grid;
  gap: 0.45rem;
}

.home-region-card__stats > div,
.region-card-item .region-stats > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.home-region-card .stat-num,
.region-card-item .stat-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: #11804f;
}

.home-region-card .stat-label,
.region-card-item .stat-label {
  color: #6f7b89;
}

.regions-page-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 3fr);
  gap: 1.5rem;
  align-items: start;
}

.regions-map-panel {
  position: sticky;
  top: 130px;
  display: grid;
  gap: 1rem;
}

.map-container {
  border-radius: 20px;
}

.map-container--compact iframe {
  min-height: 150px;
  max-height: 180px;
}

.map-overlay-banner--compact {
  right: 1rem;
  left: 1rem;
  bottom: 1rem;
  padding: 0.95rem 1.1rem;
}

.map-overlay-banner--compact strong {
  font-size: 1.1rem;
}

.regions-map-copy {
  background: #fff;
  border: 1px solid #e3ebe7;
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow: 0 6px 20px rgba(6, 58, 37, 0.04);
}

.regions-map-copy h2 {
  font-size: 1.45rem;
  margin: 0.85rem 0 0.65rem;
}

.regions-map-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.regions-grid--catalog {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}









/* REGION PAGE REFINEMENTS */
html[dir="rtl"] .breadcrumb-bar nav {
  justify-content: flex-start;
}

.breadcrumb-bar a,
.breadcrumb-bar .sep,
.breadcrumb-bar nav > span:last-child {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.breadcrumb-bar a {
  color: #6b7280;
  font-weight: 400;
}

.breadcrumb-bar .sep {
  color: #9ca3af;
  font-weight: 400;
}

.breadcrumb-bar nav > span:last-child {
  color: #000000;
  font-weight: 400;
  transform: translateY(-1px);
}

html[dir="rtl"] .home-region-card,
html[dir="rtl"] .region-card-item,
html[dir="rtl"] .program-card-v2,
html[dir="rtl"] .entity-card,
html[dir="rtl"] .region-list-card,
html[dir="rtl"] .region-entity-card {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .home-region-card__icon,
html[dir="rtl"] .region-card-item .region-icon,
html[dir="rtl"] .region-list-card .region-icon,
html[dir="rtl"] .region-entity-card .entity-icon,
html[dir="rtl"] .program-card-v2 .program-icon {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

html[dir="rtl"] .program-card-v2 .status-badge {
  right: auto;
  left: 1rem;
}

html[dir="rtl"] .program-card-v2 .program-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

html[dir="rtl"] .program-card-v2 .beneficiaries {
  justify-self: start;
}

html[dir="rtl"] .program-card-v2 .details-link {
  justify-self: end;
}

html[dir="ltr"] .program-card-v2 .status-badge {
  left: auto;
  right: 1rem;
}

.region-page-head {
  padding: 0.65rem 0 1.8rem;
  text-align: right;
}

.region-page-head h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #16202b;
}

.region-page-head p {
  margin: 0;
  color: #7b8794;
  font-size: 0.98rem;
}

.region-page-head--detail {
  padding-bottom: 1.6rem;
}

.regions-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.region-list-card,
.region-entity-card {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff, #fbfdfc);
  border: 1px solid #d7e0dc;
  border-radius: 14px;
  padding: 0.85rem 0.95rem 0.8rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.region-list-card:hover,
.region-entity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(6, 58, 37, 0.08);
  border-color: #adcaba;
}

.region-list-card .region-icon,
.region-entity-card .entity-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #0b7a46;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.region-list-card h4,
.region-entity-card h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1c2530;
}

.region-stats-compact,
.entity-stats-compact {
  display: grid;
  gap: 0.22rem;
  margin-top: auto;
}

.region-stats-compact > div,
.entity-stats-compact > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
}

.region-stats-compact .stat-label,
.entity-stats-compact .stat-label {
  color: #6c7b89;
  justify-self: start;
}

.region-stats-compact .stat-num,
.entity-stats-compact .stat-num {
  color: #0b7a46;
  font-weight: 800;
  justify-self: end;
}

.regions-page-banner {
  grid-column: span 3;
  min-height: 116px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #0d6a41;
  text-decoration: none;
}

.regions-page-banner .regions-banner-panel__art {
  position: absolute;
  inset: 0;
  background: url('/assets/images/hero-overlay.png') center/cover no-repeat;
}

.regions-page-banner .regions-banner-panel__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 1.8rem;
  color: #fff;
}

.regions-page-banner strong {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
}

.region-entities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.region-programs-section .program-card-v2 {
  min-height: 170px;
  padding: 1rem 1.05rem 0.95rem;
  border-radius: 14px;
  border-top-width: 5px;
}

.region-programs-section .program-card-v2 .status-badge {
  top: 0.75rem;
  left: 0.8rem;
  right: auto;
  font-size: 0.62rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #fff;
}

.region-programs-section .program-card-v2 .program-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1rem;
  margin: 0 0 0.9rem auto;
}

.region-programs-section .program-card-v2 h3 {
  font-size: 1.25rem;
  line-height: 1.55;
  margin-bottom: 0.55rem;
}

.region-programs-section .program-card-v2 .program-desc {
  font-size: 0.8rem;
  line-height: 1.8;
}

.region-programs-section .program-card-v2 .beneficiaries {
  font-size: 0.72rem;
}

.region-programs-section .program-card-v2 .details-link {
  font-size: 0.82rem;
}







/* PROGRAMS PAGE + ACTIVE NAV */
.header-nav .nav-item {
  min-height: 52px;
  padding: 0.88rem 1.25rem;
  border-radius: 6px;
}

.header-nav .nav-item.active {
  background: #0b7a46;
  color: #fff;
  box-shadow: inset 0 -5px 0 #63c78b;
}

.header-nav .nav-item.active::after {
  display: none;
}

.header-nav .nav-item:hover {
  background: rgba(11, 122, 70, 0.08);
}

.programs-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.programs-page-head__copy {
  text-align: right;
}

.programs-page-head__copy h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #16202b;
}

.programs-page-head__copy p {
  margin: 0;
  color: #7b8794;
}

.program-status-panel {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.program-status-panel__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1d2330;
}

.program-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.program-status-filters button {
  min-width: 58px;
  height: 38px;
  padding: 0 0.9rem;
  border: 1px solid #d8e1dd;
  border-radius: 4px;
  background: #fff;
  color: #1f2d28;
  font-size: 0.82rem;
  font-weight: 700;
}

.program-status-filters button.is-active {
  background: #0b7a46;
  border-color: #0b7a46;
  color: #fff;
}

.programs-section .program-card-v2 {
  min-height: 248px;
  padding: 1.05rem 1.1rem 1rem;
  border-radius: 14px;
  border-top-width: 6px;
}

.programs-section .program-card-v2 .status-badge {
  top: 0.75rem;
  left: 0.75rem;
  right: auto;
  padding: 0.14rem 0.46rem;
  font-size: 0.62rem;
  border-radius: 4px;
  background: #fff;
}

.programs-section .program-card-v2 .status-badge--open {
  color: #15985a;
  border-color: #b7e9cc;
  background: #f0fbf5;
}

.programs-section .program-card-v2 .status-badge--closed {
  color: #da7c3a;
  border-color: #f4d1b7;
  background: #fff5ee;
}

.programs-section .program-card-v2 .status-badge--soon {
  color: #4b84d9;
  border-color: #c7daf7;
  background: #f2f7ff;
}

.programs-section .program-card-v2 .program-icon {
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  left: auto !important;
  margin: 0 !important;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 1.15rem;
}

.programs-section .program-card-v2 h3 {
  font-size: 1.55rem;
  line-height: 1.55;
  margin-bottom: 0.55rem;
}

.programs-section .program-card-v2 .program-desc {
  font-size: 0.83rem;
  line-height: 1.9;
  margin-bottom: 0;
}

.programs-section .program-card-v2 .program-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.programs-section .program-card-v2 .beneficiaries {
  order: 1;
  font-size: 0.72rem;
}

.programs-section .program-card-v2 .details-link {
  order: 2;
  margin-inline-start: auto;
  font-size: 0.85rem;
}

.programs-pagination {
  margin-top: 2.6rem;
}

/* Requested layout-only refinement: homepage programs, programs page, announcements, desktop width */
body.home-page .programs-section .program-card-v2,
body.programs-page .programs-section .program-card-v2 {
  display: flex;
  flex-direction: column;
  border-top-width: 1px;
}

body.home-page .programs-section .program-card-v2::before,
body.programs-page .programs-section .program-card-v2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1px;
  right: 1px;
  height: 8px;
  border-radius: 0;
  background: var(--program-card-top-strip, #4d8839);
  pointer-events: none;
}

body.home-page .programs-section .program-card-v2 h3,
body.programs-page .programs-section .program-card-v2 h3 {
  padding-top: 6px;
}

body.home-page .programs-section .program-card-v2 .program-footer,
body.programs-page .programs-section .program-card-v2 .program-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

body.home-page .programs-section .program-card-v2 .beneficiaries,
body.programs-page .programs-section .program-card-v2 .beneficiaries {
  grid-column: 1;
  justify-self: start;
}

body.home-page .programs-section .program-card-v2 .details-link,
body.programs-page .programs-section .program-card-v2 .details-link {
  grid-column: 2;
  justify-self: end;
  margin-inline-start: 0;
}

body.home-page .announcements-section .announcement-card h3 {
  font-size: 16px;
  font-style: normal;
}

body.home-page .announcements-section .announcement-date,
body.home-page .announcements-section .announcement-meta {
  font-size: 14px;
}

body.home-page .announcements-section .badge-urgent {
  color: #ba3f3a;
  background: #fff1f0;
  border-color: #f2c1bf;
}

@media (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: calc(100vw - 160px) !important;
  }

  .program-detail-hero .container {
    max-width: calc(100vw - 160px) !important;
  }
}





/* ═══════════════════════════════════════════════════════════════════════════
   FINAL REFINEMENT: Header, Cards, Regions Banner
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. UNIFORM HEADER SIZE (all pages) */
header.site-header .header-row { 
  min-height: 82px !important; 
  padding: 0.5rem 0;
}
header.site-header .brand-logo-image { 
  height: 48px !important; 
  width: auto; 
}





/* 2. PROGRAM CARD ICON ON RIGHT (RTL) */
.program-card-v2 {
  display: flex;
  flex-direction: column;
  position: relative;
}

.program-card-v2 .program-icon {
  position: absolute !important;
  top: 1rem;
  right: 1rem;
  left: auto !important;
  margin: 0 !important;
}

.program-card-v2 .program-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

html[dir="ltr"] .program-card-v2 .program-icon {
  right: auto;
  left: 1rem;
}

.program-card-v2 .status-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: auto !important;
}

html[dir="ltr"] .program-card-v2 .status-badge {
  left: auto;
  right: 1rem;
}

.program-card-v2 h3 {
  margin-top: 3.5rem;
  text-align: right;
}

html[dir="ltr"] .program-card-v2 h3 {
  text-align: left;
}

/* 3. REGIONS BANNER - NOT INTERACTIVE */
.regions-banner-panel {
  pointer-events: none;
  cursor: default;
}

.regions-banner-panel:hover {
  transform: none;
  box-shadow: none;
}

.home-regions-section .regions-banner-panel {
  pointer-events: none;
  cursor: default;
}

.regions-page-banner {
  pointer-events: none;
  cursor: default;
}

.regions-page-banner:hover {
  transform: none;
  box-shadow: none;
}

/* 4. ENTITY CARD ICON ON RIGHT */
.region-entity-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.region-entity-card .entity-icon {
  margin-left: auto;
  margin-right: 0;
}

html[dir="ltr"] .region-entity-card {
  align-items: flex-start;
  text-align: left;
}

html[dir="ltr"] .region-entity-card .entity-icon {
  margin-left: 0;
  margin-right: auto;
}

/* Entity stats layout */
.entity-stats-compact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.entity-stats-compact > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.entity-stats-compact .stat-label {
  font-size: 0.78rem;
  color: #7b8794;
}

.entity-stats-compact .stat-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-700);
}

/* 5. STATUS FILTER BUTTONS - HOVER STATE */
.program-status-filters button {
  transition: all 0.2s ease;
  cursor: pointer;
}

.program-status-filters button:hover:not(.is-active) {
  background: #f4f8f6;
  border-color: #0b7a46;
}

/* 6. PAGINATION STYLING */
.page-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.page-pagination a,
.page-pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #dfe7e3;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1d2330;
  transition: all 0.2s ease;
  cursor: pointer;
}

.page-pagination a:hover {
  background: #e9f4ee;
  border-color: var(--green-700);
  color: var(--green-700);
}

.page-pagination .active {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
}

/* 7. HOMEPAGE PROGRAMS SECTION CARD ICON FIX */
.programs-section .program-card-v2 .program-icon {
  position: absolute !important;
  top: 1rem;
  right: 1rem;
  left: auto !important;
  margin: 0 !important;
}

/* 8. MOBILE RESPONSIVE FIXES */




/* ═══════════════════════════════════════════════════════════════════════════
   FIX PASS 2: RTL/LTR Icons, Arrows, Banner, Ads Page
   ═══════════════════════════════════════════════════════════════════════════ */

/* -- Program card icon: ALWAYS right in RTL, left in LTR -- */
.program-card-v2 .program-icon,
.programs-section .program-card-v2 .program-icon {
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  left: auto !important;
  margin: 0 !important;
}

html[dir="ltr"] .program-card-v2 .program-icon,
html[dir="ltr"] .programs-section .program-card-v2 .program-icon {
  right: auto !important;
  left: 1rem !important;
}

/* Status badge: always opposite side from icon */
.program-card-v2 .status-badge,
.programs-section .program-card-v2 .status-badge {
  position: absolute !important;
  top: 1rem !important;
  left: 1rem !important;
  right: auto !important;
}

html[dir="ltr"] .program-card-v2 .status-badge,
html[dir="ltr"] .programs-section .program-card-v2 .status-badge {
  left: auto !important;
  right: 1rem !important;
}

/* Title margin to clear the absolute-positioned icon */
.program-card-v2 h3,
.programs-section .program-card-v2 h3 {
  margin-top: 3.5rem !important;
  text-align: right !important;
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

html[dir="ltr"] .program-card-v2 h3,
html[dir="ltr"] .programs-section .program-card-v2 h3 {
  text-align: left !important;
}

/* -- Banner text: selectable + correct alignment -- */
.regions-banner-panel,
.regions-page-banner {
  cursor: default !important;
  pointer-events: auto !important;
  user-select: text;
}

/* Keep clicks from navigating (remove href effect since changed to div) */
.regions-banner-panel a,
.regions-page-banner a {
  pointer-events: none;
}

/* Banner text align: right in RTL, left in LTR */
.regions-banner-panel__content,
.regions-page-banner .regions-banner-panel__content {
  justify-content: flex-end;
}

html[dir="ltr"] .regions-banner-panel__content,
html[dir="ltr"] .regions-page-banner .regions-banner-panel__content {
  justify-content: flex-start;
}

/* -- Fix directional arrows for LTR (English) -- */
html[dir="ltr"] i.bi-arrow-left {
  display: inline-block;
  transform: scaleX(-1);
}

/* -- ADS PAGE LAYOUT -- */
.ads-layout {
  display: grid;
  /* RTL: detail panel (right, 1fr) then list panel (left, 340px)
     In RTL auto-placement goes right-to-left, so: track1=left=340px, track2=right=minmax(0, 1fr) */
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

html[dir="ltr"] .ads-layout {
  /* LTR: detail panel (left, minmax(0, 1fr)) then list panel (right, 340px) */
  grid-template-columns: minmax(0, 1fr) 340px;
}

.ads-detail-panel {
  background: #fff;
  border: 1px solid #dfe7e3;
  border-radius: 16px;
  padding: 2rem;
  min-height: 480px;
}

.ads-detail-panel .ads-detail-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ads-detail-panel .ads-detail-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.ads-detail-panel .ads-detail-body {
  color: #3a4e47;
  line-height: 1.9;
  font-size: 0.92rem;
}

.ads-detail-panel .ads-detail-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #0b6a43;
}

.ads-detail-panel .ads-detail-body ul {
  padding-inline-start: 1.5rem;
  margin-bottom: 1rem;
}

.ads-detail-panel .ads-detail-body ul li {
  margin-bottom: 0.35rem;
}

.ads-list-panel {
  background: #fff;
  border: 1px solid #dfe7e3;
  border-radius: 16px;
  overflow: hidden;
}

.ads-list-panel__header {
  padding: 1rem 1.25rem;
  background: #f7f9f8;
  border-bottom: 1px solid #dfe7e3;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1d2330;
}

.ads-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #edf2ef;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  border-inline-start: 3px solid transparent;
  text-decoration: none;
  color: inherit;
}

.ads-list-item:hover {
  background: #f7f9f8;
}

.ads-list-item.is-active {
  background: #f0fbf5;
  border-inline-start-color: #0b7a46;
}

.ads-list-item__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #7b8794;
}

.ads-list-item__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1d2330;
  line-height: 1.35;
}

.ads-list-item__preview {
  font-size: 0.78rem;
  color: #7b8794;
  line-height: 1.55;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ads-list-item__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0.75rem;
  color: #b0bfb9;
  font-size: 0.8rem;
}

html[dir="ltr"] .ads-list-item__arrow {
  left: auto;
  right: 0.75rem;
  transform: translateY(-50%) scaleX(-1);
}

.ad-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.48rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid currentColor;
}

.ad-badge-new {
  color: #0b7a46;
  background: #f0fbf5;
  border-color: #b7e9cc;
}

.ad-badge-urgent {
  color: #c0392b;
  background: #fff5f5;
  border-color: #f5c6c6;
}

.ad-badge-notice {
  color: #4b84d9;
  background: #f2f7ff;
  border-color: #c7daf7;
}

/* -- Improved pagination -- */
.naseej-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 2.5rem 0 0.5rem;
  flex-wrap: wrap;
}

.naseej-pagination__btn {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #dfe7e3;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1d2330;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.naseej-pagination__btn:hover:not(:disabled):not(.is-active) {
  background: #e9f4ee;
  border-color: #0b7a46;
  color: #0b7a46;
}

.naseej-pagination__btn.is-active {
  background: #0b7a46;
  border-color: #0b7a46;
  color: #fff;
}

.naseej-pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.naseej-pagination__btn.nav-arrow {
  font-size: 0.7rem;
  color: #7b8794;
}

.naseej-pagination.pagination {
  margin-bottom: 0;
}

.naseej-pagination.pagination .page-item {
  display: flex;
}

.naseej-pagination.pagination .page-link {
  margin: 0;
}

.naseej-pagination.pagination .naseej-pagination__btn {
  padding: 0;
}

.ads-list-panel .naseej-pagination {
  padding: 0.75rem;
  border-top: 1px solid #edf2ef;
}





/* ═══════════════════════════════════════════════════════════════════
   FINAL FIX PASS 3: program icon alignment, RTL order, arrow flip
   ═══════════════════════════════════════════════════════════════════ */

/* Program card: icon always top-right (RTL) / top-left (LTR) */
.program-card-v2 {
  position: relative !important;
}

/* Override all contexts with high specificity */
.program-card-v2 .program-icon,
.programs-section .program-card-v2 .program-icon,
.home-programs .program-card-v2 .program-icon,
.featured-programs .program-card-v2 .program-icon {
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  left: auto !important;
  margin: 0 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  font-size: 1.15rem !important;
}

html[dir="ltr"] .program-card-v2 .program-icon,
html[dir="ltr"] .programs-section .program-card-v2 .program-icon,
html[dir="ltr"] .home-programs .program-card-v2 .program-icon,
html[dir="ltr"] .featured-programs .program-card-v2 .program-icon {
  right: auto !important;
  left: 1rem !important;
}

/* Status badge: top-left (RTL) / top-right (LTR) */
.program-card-v2 .status-badge,
.programs-section .program-card-v2 .status-badge,
.home-programs .program-card-v2 .status-badge,
.featured-programs .program-card-v2 .status-badge {
  position: absolute !important;
  top: 1rem !important;
  left: 1rem !important;
  right: auto !important;
}

html[dir="ltr"] .program-card-v2 .status-badge,
html[dir="ltr"] .programs-section .program-card-v2 .status-badge,
html[dir="ltr"] .home-programs .program-card-v2 .status-badge,
html[dir="ltr"] .featured-programs .program-card-v2 .status-badge {
  left: auto !important;
  right: 1rem !important;
}

/* Title: clear space for absolute positioned icon + badge */
.program-card-v2 h3,
.program-card-v2 .prog-title,
.programs-section .program-card-v2 h3,
.programs-section .program-card-v2 .prog-title {
  margin-top: 3.5rem !important;
  text-align: right;
}

html[dir="ltr"] .program-card-v2 h3,
html[dir="ltr"] .program-card-v2 .prog-title {
  text-align: left;
}

/* Banner: allow text selection, no navigation */
.regions-banner-panel,
.regions-page-banner,
.ksa-banner-section {
  cursor: default;
  user-select: text;
}

/* Arrow icon flip for LTR English direction */
html[dir="ltr"] .bi-arrow-left {
  display: inline-block !important;
  transform: scaleX(-1) !important;
}

/* Ensure cards and rows are RTL ordered */
html[dir="rtl"] .row {
  flex-direction: row;
}

/* Card text alignment */
html[dir="rtl"] .program-card-v2 p,
html[dir="rtl"] .program-card-v2 .prog-desc {
  text-align: right;
}

html[dir="ltr"] .program-card-v2 p,
html[dir="ltr"] .program-card-v2 .prog-desc {
  text-align: left;
}

/* Region entity card icon: right side in RTL */
.region-entity-card .entity-icon {
  order: 1;
}
.region-entity-card .entity-body {
  order: 2;
}

html[dir="ltr"] .region-entity-card .entity-icon {
  order: 2;
}
html[dir="ltr"] .region-entity-card .entity-body {
  order: 1;
}

/* Login page visual skin from Figma login pack (scoped only to login.html) */
@font-face {
  font-family: "Frutiger LT Arabic";
  src: url("../fonts/FrutigerLTArabic45Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Frutiger LT Arabic";
  src: url("../fonts/FrutigerLTArabic55Roman.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Frutiger LT Arabic";
  src: url("../fonts/FrutigerLTArabic65Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body.login-page,
.site-header:has(+ .auth-page:is(.auth-page--login, .auth-page--reset)),
.auth-page:is(.auth-page--login, .auth-page--reset),
.auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer {
  --login-text: #161616;
  --login-muted: #686058;
  --login-border: #d1d5dc;
  --login-primary: #1b8354;
  --login-footer-bg: #074d31;
  font-family: "Frutiger LT Arabic", "Cairo", system-ui, sans-serif;
}

body.login-page,
.auth-page:is(.auth-page--login, .auth-page--reset) {
  font-family: "Frutiger LT Arabic", "Cairo", system-ui, sans-serif;
  color: var(--login-text);
  background: #fff;
}

body.login-page .site-header,
.site-header:has(+ .auth-page:is(.auth-page--login, .auth-page--reset)),
body.login-page .site-header *,
.site-header:has(+ .auth-page:is(.auth-page--login, .auth-page--reset)) *,
body.login-page .auth-card,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card,
body.login-page .auth-card *,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card *,
body.login-page .main-footer,
.auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer,
body.login-page .main-footer *,
.auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer * {
  font-family: "Frutiger LT Arabic", "Cairo", system-ui, sans-serif;
}

body.login-page .site-header,
.site-header:has(+ .auth-page:is(.auth-page--login, .auth-page--reset)) {
  background: #fff;
  box-shadow: 0 1px 0 #d2d6db;
}

body.login-page .header-nav .nav-item,
.site-header:has(+ .auth-page:is(.auth-page--login, .auth-page--reset)) .header-nav .nav-item,
body.login-page .login-btn,
.site-header:has(+ .auth-page:is(.auth-page--login, .auth-page--reset)) .login-btn {
  color: var(--login-text);
  font-size: 16px;
  font-weight: 400;
}

body.login-page .header-nav .nav-item:hover,
.site-header:has(+ .auth-page:is(.auth-page--login, .auth-page--reset)) .header-nav .nav-item:hover,
body.login-page .login-btn:hover,
.site-header:has(+ .auth-page:is(.auth-page--login, .auth-page--reset)) .login-btn:hover {
  color: var(--login-primary);
}

body.login-page .auth-wrapper,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-wrapper {
  min-height: calc(100vh - 82px);
  align-items: flex-start;
  padding: 4.5rem 1rem;
  background: #fff;
}

body.login-page .auth-card,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card {
  max-width: 416px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: none;
  padding: 2rem;
  text-align: right;
}

body.login-page .auth-card .auth-logo,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card .auth-logo,
body.login-page .auth-card .auth-sub,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card .auth-sub {
  display: none;
}

body.login-page .auth-card h2,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card h2 {
  font-size: 32px;
  line-height: 48px;
  font-weight: 700;
  margin-bottom: 1.4rem;
  text-align: center;
}

body.login-page .auth-card .form-label,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card .form-label {
  font-size: 16px;
  font-weight: 400;
  color: var(--login-text);
  margin-bottom: 0.4rem;
}

body.login-page .auth-card .form-control,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card .form-control {
  height: 50px;
  border: 1px solid var(--login-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 16px;
  color: var(--login-text);
}

body.login-page .auth-card .form-control::placeholder,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card .form-control::placeholder {
  color: rgba(10, 10, 10, 0.5);
}

body.login-page .auth-card .form-control:focus,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card .form-control:focus {
  border-color: var(--login-primary);
  box-shadow: 0 0 0 3px rgba(27, 131, 84, 0.14);
}

/* Use the default .auth-card .btn-auth styling for consistent large buttons */
body.login-page .auth-card .btn-auth,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card .btn-auth {
  margin-top: 0.25rem;
}

body.login-page .auth-card .auth-link,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card .auth-link {
  margin-top: 1rem;
  color: #487629;
  font-size: 14px;
  font-weight: 400;
  text-align: right;
}

/* Forgot-password page: keep the "العودة لتسجيل الدخول" link centered (ID beats the reset rules above) */
#resetFormState .auth-link {
  display: block;
  width: 100%;
  text-align: center;
  margin-inline: 0;
}

body.login-page .main-footer,
.auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer {
  margin-top: 0;
  background: var(--login-footer-bg);
  padding: 2.8rem 0 1.1rem;
}

body.login-page .main-footer h3,
.auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer h3 {
  font-size: 1rem;
  font-weight: 700;
}

body.login-page .main-footer p,
body.login-page .main-footer li,
body.login-page .main-footer a,
.auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer p,
.auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer li,
.auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
}

body.login-page .footer-social a,
.auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer .footer-social a {
  border-radius: 4px;
  border-color: rgba(255, 255, 255, 0.32);
}

body.login-page .footer-logos,
.auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer .footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

body.login-page .footer-logo-img,
.auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer .footer-logo-img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 100%;
}

body.login-page .footer-bottom,
.auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

body.login-page .footer-policy-links,
.auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer .footer-policy-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

body.login-page .footer-policy-links .policy-sep,
.auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer .footer-policy-links .policy-sep {
  opacity: 0.45;
}





/* Global visual identity tokens (all pages) */
@font-face {
  font-family: "Frutiger LT Arabic";
  src: url("../fonts/FrutigerLTArabic75Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-primary: "Frutiger LT Arabic", "Cairo", system-ui, sans-serif;
  --font-secondary: #1b8354;
  --font-default-ar: #000000;
  --font-45-light: 300;
  --font-55-roman: 400;
  --font-65-bold: 700;
  --font-75-black: 900;
  --font-size-footer-links: 16px;
  --font-size-headings-large: 36px;
  --font-size-headings-medium: 36px;
  --font-size-headings-small: 24px;
  --font-size-body-lead: 20px;
  --color-footer-bg: #074d31;
  --color-primary: #006c35;
  --color-accent: #1b8354;
  --color-button: #1b8354;
  --color-dark: #074d31;
  --color-success: #067647;
  --color-accent-deep: #14573a;
  --color-updates-box: rgba(0, 108, 53, 0.1);
  --color-naseej-icon: #067647;
  --color-naseej-number: #14573a;
}

body,
html[lang="en"] body {
  font-family: var(--font-primary);
  color: var(--font-default-ar);
}

h1,
.hero-copy-wrap h1,
.hero-slide-content h1,
.about-hero h1,
.detail-hero h1,
.region-page-head h1,
.programs-page-head__copy h1 {
  font-size: var(--font-size-headings-large) !important;
  font-weight: var(--font-65-bold) !important;
  line-height: 40px;
}

h2,
.headline h2,
.auth-card h2,
.regions-map-copy h2 {
  font-size: var(--font-size-headings-medium) !important;
  font-weight: var(--font-65-bold) !important;
  line-height: 40px;
  letter-spacing: 0;
}

h3,
.main-footer h3,
.program-card h3,
.program-card-v2 h3,
.mission-card h3,
.news-body h3,
.announce-card h3,
.announcement-card h3,
.region-side-card h3 {
  font-size: var(--font-size-headings-small) !important;
  font-weight: var(--font-65-bold) !important;
}

.main-footer {
  background: var(--color-footer-bg) !important;
}

.main-footer p,
.main-footer li,
.main-footer a,
.footer-policy-links a {
  font-size: var(--font-size-footer-links) !important;
  font-weight: var(--font-55-roman) !important;
}

.headline h2 {
  font-family: var(--font-primary);
  text-align: center;
}

.headline p,
.region-page-head p {
  font-family: var(--font-primary);
  font-size: var(--font-size-body-lead) !important;
  font-weight: var(--font-55-roman) !important;
  line-height: 28px;
  letter-spacing: 0;
}

.headline p {
  text-align: center;
}

.region-page-head h1 {
  font-family: var(--font-primary);
}

.btn-auth,
.program-status-filters button.is-active,
.header-nav .nav-item.active {
  background: var(--color-button) !important;
}

.auth-card .auth-logo {
  background: var(--color-naseej-icon) !important;
}

.metric-item strong,
.home-region-card .stat-num,
.region-card-item .stat-num,
.entity-stats-compact .stat-num {
  color: var(--color-naseej-number) !important;
}

.main-footer .footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-footer .footer-right {
  text-align: right;
}

.main-footer .footer-logos-left img,
.main-footer .footer-logo-img {
  height: 38px;
  width: auto;
}

html[dir="rtl"] body.login-page .footer-policy-links,
html[dir="rtl"] .auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer .footer-policy-links {
  justify-content: center;
}

html[dir="ltr"] body.login-page .footer-policy-links,
html[dir="ltr"] .auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer .footer-policy-links {
  justify-content: flex-start;
}



/* Final pass: footer, RTL alignment, auth controls, regions banner */
.main-footer .footer-bottom,
body.login-page .footer-bottom,
.auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer .footer-bottom {
  border-top: 0 !important;
}

html[dir="rtl"] .news-body,
html[dir="rtl"] .announce-card,
html[dir="rtl"] .announcement-card,
html[dir="rtl"] .ad-list-card,
html[dir="rtl"] .ads-detail-body,
html[dir="rtl"] .ads-list-item,
html[dir="rtl"] .news-detail-body,
html[dir="rtl"] .related-news,
html[dir="rtl"] .objective-list li,
html[dir="rtl"] .auth-card .form-label,
html[dir="rtl"] .auth-card .form-control,
html[dir="rtl"] .mail-form input {
  text-align: right;
}

.metric-item i,
.mission-card .m-icon {
  background: #F3FCF6 !important;
  color: #067647 !important;
}

body.login-page .auth-options-row,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-options-row {
  margin: 0.45rem 0 0.9rem;
}

body.login-page .auth-options-row .form-check,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-options-row .form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.login-page .auth-options-row .form-check-input,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-options-row .form-check-input {
  margin: 0;
  float: none;
  border-color: #b8c1c9;
}

/* Remove default blue focus/outline on checkbox when clicked in login page */
body.login-page .auth-options-row .form-check-input:focus,
body.login-page .auth-options-row .form-check-input:active,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-options-row .form-check-input:focus,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-options-row .form-check-input:active,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-options-row .form-check-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

body.login-page .auth-options-row .form-check-label,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-options-row .form-check-label,
body.login-page .auth-inline-link,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-inline-link {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

body.login-page .auth-options-row .form-check-label,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-options-row .form-check-label {
  color: #4a5561;
}

body.login-page .auth-inline-link,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-inline-link {
  color: #487629;
  text-decoration: none;
}

body.login-page .auth-inline-link:hover,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-inline-link:hover {
  text-decoration: underline;
}

body.auth-flat-page .auth-wrapper,
.auth-page.auth-page--change .auth-wrapper {
  min-height: calc(100vh - 82px);
  align-items: flex-start;
  padding: 4.5rem 1rem;
  background: #fff;
}

body.auth-flat-page .auth-card,
.auth-page.auth-page--change .auth-card {
  max-width: 416px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: none;
  padding: 2rem;
  text-align: right;
}

body.auth-flat-page .auth-card .auth-logo,
.auth-page.auth-page--change .auth-card .auth-logo {
  display: none;
}

body.auth-flat-page .auth-card h2,
.auth-page.auth-page--change .auth-card h2 {
  font-size: 32px;
  line-height: 48px;
  margin-bottom: 1rem;
}

body.auth-flat-page .auth-card .auth-sub,
.auth-page.auth-page--change .auth-card .auth-sub {
  font-size: 15px;
  margin-bottom: 1.25rem;
}

body.auth-flat-page .auth-card .form-control,
.auth-page.auth-page--change .auth-card .form-control {
  height: 50px;
  border-radius: 8px;
  font-size: 16px;
}

.regions-page-banner {
  background: #0d6a41;
  isolation: isolate;
}

.regions-page-grid {
  direction: ltr;
}

.regions-page-grid > * {
  direction: rtl;
}

.regions-page-banner .regions-banner-panel__art {
  display: block;
  inset: 0 auto 0 0;
  width: 58%;
  background: url('/assets/images/hero-overlay.png') left center/cover no-repeat;
  z-index: 0;
}

.regions-page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 106, 65, 0.04) 0%, rgba(13, 106, 65, 0.08) 42%, rgba(13, 106, 65, 0.9) 61%, rgba(13, 106, 65, 0.97) 100%);
  pointer-events: none;
  z-index: 1;
}

.regions-page-banner .regions-banner-panel__content {
  z-index: 2;
  justify-content: flex-end !important;
  text-align: right;
}

html[dir="ltr"] .regions-page-banner .regions-banner-panel__content {
  justify-content: flex-start !important;
  text-align: left;
}

.regions-page-banner .regions-banner-panel__content strong {
  max-width: 46%;
  line-height: 1.25;
}

.regions-banner-panel__content,
.regions-page-banner .regions-banner-panel__content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.75rem 2.5rem;
}

.regions-banner-panel__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  max-width: 340px;
  text-align: right;
}

.regions-banner-panel__eyebrow {
  display: inline-flex;
  padding: 0.34rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  line-height: 1.2;
}

.regions-banner-panel__number {
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.95 !important;
  color: #fff;
  max-width: none !important;
}

.regions-banner-panel__title {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.regions-banner-panel__desc {
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 1rem;
  line-height: 1.7;
}

html[dir="rtl"] .news-foot small,
html[dir="rtl"] .announcement-meta span,
html[dir="rtl"] .news-date,
html[dir="rtl"] .related-news span,
html[dir="rtl"] .partner-placeholder {
  direction: rtl;
  unicode-bidi: isolate;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="text"],
html[dir="rtl"] input[type="search"],
html[dir="rtl"] input[type="password"],
html[dir="rtl"] textarea {
  direction: rtl;
  text-align: right !important;
}

html[dir="rtl"] input[type="email"]::placeholder,
html[dir="rtl"] input[type="text"]::placeholder,
html[dir="rtl"] input[type="search"]::placeholder,
html[dir="rtl"] input[type="password"]::placeholder,
html[dir="rtl"] textarea::placeholder {
  direction: rtl;
  text-align: right;
}

.home-regions-section .regions-banner-panel {
  background: #0d6a41;
  isolation: isolate;
}

.home-regions-section .regions-banner-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 106, 65, 0.04) 0%, rgba(13, 106, 65, 0.08) 42%, rgba(13, 106, 65, 0.9) 61%, rgba(13, 106, 65, 0.97) 100%);
  pointer-events: none;
  z-index: 1;
}

.home-regions-section .regions-banner-panel__art {
  inset: 0 auto 0 0;
  width: 58%;
  background: url('/assets/images/hero-overlay.png') left center/cover no-repeat;
  z-index: 0;
}

.home-regions-section .regions-banner-panel__content {
  z-index: 2;
  justify-content: flex-end;
  text-align: right;
  padding: 1.75rem 2.5rem;
}

.home-regions-section .regions-banner-panel__content strong {
  max-width: 46%;
  line-height: 1.25;
}

/* Keep home regions grid RTL so the DOM order matches the leading-side layout in Arabic */
.home-regions-grid {
  direction: rtl;
}

.home-regions-grid > * {
  direction: rtl;
}

.main-footer ul a {
  transition: color 0.22s ease;
}

.main-footer ul a:hover {
  color: #fff;
}

.login-btn,
.hero-btn,
.btn-main,
.btn-main-outline,
.auth-card .btn-auth,
.auth-card .btn-auth.btn-auth--large {
  border-radius: 10px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.18s ease, box-shadow 0.25s ease;
}

.hero-btn,
.btn-main,
.auth-card .btn-auth,
.auth-card .btn-auth.btn-auth--large {
  box-shadow: 0 6px 16px rgba(6, 58, 37, 0.1);
}

.login-btn:hover,
.hero-btn:hover,
.btn-main:hover,
.btn-main-outline:hover,
.auth-card .btn-auth:hover,
.auth-card .btn-auth.btn-auth--large:hover {
  transform: translateY(-2px);
}

.auth-card .btn-auth:hover,
.auth-card .btn-auth:focus-visible,
.auth-card .btn-auth.btn-auth--large:hover,
.auth-card .btn-auth.btn-auth--large:focus-visible {
  color: #fff;
}

.btn-main-outline:hover {
  box-shadow: 0 10px 24px rgba(6, 58, 37, 0.08);
}



body.login-page .auth-card .form-label,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card .form-label,
body.register-page .auth-card .form-label,
.auth-page.auth-page--register .auth-card .form-label,
body.auth-flat-page .auth-card .form-label,
.auth-page.auth-page--change .auth-card .form-label {
  display: block;
  width: 100%;
  text-align: right !important;
}

body.login-page .auth-card input[type="email"],
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card input[type="email"],
body.auth-flat-page .auth-card input[type="email"],
.auth-page.auth-page--change .auth-card input[type="email"] {
  direction: rtl !important;
  text-align: right !important;
}

body.login-page .auth-card input[type="email"]::placeholder,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card input[type="email"]::placeholder,
body.auth-flat-page .auth-card input[type="email"]::placeholder,
.auth-page.auth-page--change .auth-card input[type="email"]::placeholder {
  direction: rtl;
  text-align: right;
}



/* Restore prominent animated auth button for pages that prefer it */
.auth-card .btn-auth.btn-auth--large,
body.login-page .auth-card .btn-auth.btn-auth--large,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card .btn-auth.btn-auth--large {
  width: 100%;
  padding: 0.65rem;
  border-radius: 8px;
  background: var(--green-700);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 0.5rem;
  transition: background 0.25s, transform 0.15s, box-shadow 0.18s;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(27,131,84,0.10);
}

.auth-card .btn-auth.btn-auth--large:hover,
body.login-page .auth-card .btn-auth.btn-auth--large:hover,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card .btn-auth.btn-auth--large:hover {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(6,58,37,0.12);
}

/* ═══ RTL-CORRECT FINAL OVERRIDES ═══ */

/* -- Ads page -- */
.ads-page-head {
  margin-bottom: 1.4rem;
  text-align: right;
}
.ads-page-head h1 { margin: 0 0 0.35rem; color: #18232d; }
.ads-page-head p  { margin: 0; color: #72837d; }

/* RTL grid: first column = RIGHT visually → list panel; second column = LEFT → detail panel */
.ads-layout {
  grid-template-columns: 340px minmax(0, 1fr) !important;
  grid-template-areas: "list detail" !important;
  direction: rtl !important;
  gap: 1.25rem;
}

.ads-detail-panel {
  grid-area: detail;
  text-align: right;
  border-radius: 18px;
  min-height: 560px;
  box-shadow: 0 10px 22px rgba(6, 58, 37, 0.04);
  direction: rtl;
}

.ads-list-panel {
  grid-area: list;
  text-align: right;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(6, 58, 37, 0.04);
  direction: rtl;
}

.ads-detail-panel .ads-detail-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-direction: row-reverse;
}

.ads-detail-panel .ads-detail-title {
  font-size: 1.65rem !important;
  line-height: 1.5;
  color: #1b2430;
  text-align: right;
}

.ads-detail-panel .ads-detail-body {
  font-size: 0.96rem;
  line-height: 1.95;
  color: #546761;
  text-align: right;
}

.ads-detail-panel .ads-detail-body h4 {
  color: #0b6a43;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
}

.ads-detail-panel .ads-detail-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.ads-detail-panel .ads-detail-body li {
  position: relative;
  padding-right: 1.1rem;
  margin-bottom: 0.35rem;
}

.ads-detail-panel .ads-detail-body li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.72rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-700);
}

.ads-list-panel__header {
  display: flex;
  justify-content: flex-start;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
  background: #f7f9f8;
  border-bottom: 1px solid #dfe7e3;
  color: #1d2330;
}

.ads-list-item {
  text-align: right;
  padding: 0.9rem 1.15rem 0.9rem 2.3rem;
  border: none;
  border-bottom: 1px solid #edf2ef;
  width: 100%;
  background: #fff;
}

.ads-list-item__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row-reverse;
  font-size: 0.75rem;
  color: #7b8794;
  margin-bottom: 0.2rem;
}

.ads-list-item__title {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 700;
}

.ads-list-item__preview {
  text-align: right;
  font-size: 0.78rem;
}

.ads-list-item__arrow {
  left: 0.95rem;
  right: auto;
}

.program-detail-hero {
  background: linear-gradient(90deg, #0a6a41 0%, #0b6b43 50%, #0a5b39 100%);
  padding: 0;
  overflow: hidden;
}

/* RTL: first col = RIGHT = content, second col = LEFT = art */
.program-detail-hero__inner {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  grid-template-areas: "content art";
  align-items: stretch;
  min-height: 268px;
}

.program-detail-hero__art {
  grid-area: art;
  min-height: 268px;
}

.program-detail-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.program-detail-hero__content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 2rem 2rem 0;
  color: #fff;
  text-align: right;
}

.program-detail-hero__meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.program-detail-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 0.24rem 0.7rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.program-detail-pill--muted {
  background: rgba(255,255,255,0.1);
}

.program-detail-hero__content h1 {
  color: #fff;
  margin: 0 0 0.65rem;
}

.program-detail-hero__content p {
  margin: 0 0 1.4rem;
  color: rgba(255,255,255,0.88);
  max-width: 420px;
}

.program-detail-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  background: #fff;
  color: #0a6a41;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.program-detail-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(6, 58, 37, 0.18);
  color: #0a6a41;
}

.program-detail-hero__cta--disabled,
.program-detail-hero__cta--disabled:hover {
  background: rgba(255, 255, 255, 0.55);
  color: #6b7280;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn-main:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.program-detail-page {
  padding-top: 1.6rem;
}

/* RTL: first col = RIGHT = main, second col = LEFT = sidebar */
.program-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-areas: "main sidebar";
  gap: 1.1rem;
  align-items: start;
}

.program-detail-sidebar {
  grid-area: sidebar;
  display: grid;
  gap: 1rem;
}

.program-detail-main {
  grid-area: main;
  display: grid;
  gap: 1rem;
}

.program-detail-card,
.program-info-card {
  border: 1px solid #dfe8e3;
  border-radius: 18px;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 10px 22px rgba(6, 58, 37, 0.04);
}

.program-detail-card h2,
.program-info-card h3 {
  margin: 0 0 1rem;
  color: #17222d;
  text-align: right;
}

.program-detail-card p {
  margin: 0;
  color: #566863;
  line-height: 1.95;
  text-align: right;
}

.program-goals-list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.program-goals-list li {
  position: relative;
  padding-right: 1.65rem;
  color: #233039;
  line-height: 1.8;
  text-align: right;
}

.program-goals-list li::before {
  content: "\F633";
  font-family: bootstrap-icons;
  position: absolute;
  right: 0;
  top: 0.05rem;
  color: #60d3a0;
  font-size: 1rem;
}

.program-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.program-audience-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 54px;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #f8fbf9;
  color: #223039;
}

.program-audience-item i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.program-info-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.program-info-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: #5d7069;
  font-size: 0.95rem;
}

.program-info-list strong {
  color: #18232d;
  font-weight: 700;
}

.news-detail-image img {
  object-position: center;
}





/* Final UI pass: regions banner, partners, news listing, news details */
html[dir="rtl"] .regions-banner-panel__content,
html[dir="rtl"] .regions-page-banner .regions-banner-panel__content {
  justify-content: flex-start !important;
}

html[dir="ltr"] .regions-banner-panel__content,
html[dir="ltr"] .regions-page-banner .regions-banner-panel__content {
  justify-content: flex-end !important;
}

.regions-banner-panel__copy {
  max-width: 440px;
  width: 100%;
}

.regions-banner-panel__headline {
  display: block;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 36px;
  line-height: 63px !important;
  letter-spacing: 0;
  text-align: right;
  color: #fff;
  max-width: none !important;
}

.partners-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
}

.partners-viewport {
  overflow: hidden;
  position: relative;
  direction: ltr;
}

.partners-track {
  display: flex;
  gap: 1rem;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.partner-card {
  flex: 0 0 204px;
  height: 96px;
  border: 1px solid #e5ece8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(6, 58, 37, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
}

.partner-card img {
  width: auto;
  max-width: 100%;
  height: 64px;
  object-fit: contain;
}

.strip-nav {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #dbe5df;
  background: #fff;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.2s ease;
}

.strip-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(6, 58, 37, 0.08);
  border-color: #b9d2c5;
  color: var(--green-800);
}

.news-page-hero {
  padding: 1.35rem 0 0.8rem;
}

.news-page-hero__copy {
  max-width: 420px;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

.news-page-hero h1 {
  margin: 0 0 0.45rem;
  color: #18232d;
}

.news-page-hero p {
  margin: 0;
  color: #70827b;
}

.news-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.news-page-grid.row {
  display: flex;
  grid-template-columns: none;
  gap: 0;
  --bs-gutter-x: 1.15rem;
  --bs-gutter-y: 1.15rem;
}

.news-grid-item {
  display: flex;
}

.news-card--listing {
  border: 1px solid #dde7e1;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(6, 58, 37, 0.04);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.news-card--listing .news-thumb {
  min-height: 138px;
  margin: 0.55rem;
  border-radius: 14px;
  border: 0;
}

.news-card--listing .news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.2rem 0.95rem 0.95rem;
}

.news-card--listing .news-body h3 {
  color: #18232d;
  font-size: 1.08rem !important;
  line-height: 1.65;
  margin-bottom: 0.5rem;
  min-height: 3.5em;
}

.news-card--listing .news-body p {
  color: #5f7169;
  font-size: 0.92rem;
  line-height: 1.9;
  margin-bottom: 0.85rem;
}

.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #7b8b85;
  font-size: 0.78rem;
  margin-top: auto;
}

.news-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.news-card__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.9rem;
}

.news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: var(--green-700);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(6, 58, 37, 0.1);
  transition: background-color 0.25s ease, transform 0.18s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.news-readmore i {
  transition: transform 0.26s ease;
}

.news-readmore .icon-arrow-svg {
  width: 14px;
  height: 14px;
  display: inline-block;
  filter: brightness(0) invert(1);
  transition: transform 0.26s ease;
}

.news-readmore:hover,
.news-readmore:focus-visible {
  background: var(--green-800);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(6, 58, 37, 0.14);
}

.news-readmore:hover i,
.news-readmore:focus-visible i {
  transform: translateX(-5px);
}

.news-readmore:hover .icon-arrow-svg,
.news-readmore:focus-visible .icon-arrow-svg {
  transform: translateX(-5px);
}

.news-listing-pagination {
  margin-top: 2rem;
  justify-content: center;
}

.news-detail-page {
  padding-top: 0.8rem;
}

/* RTL: first col = RIGHT = article, second col = LEFT = sidebar */
.news-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-areas: "article sidebar";
  gap: 1.25rem;
  align-items: start;
}

.news-detail-sidebar {
  grid-area: sidebar;
  display: grid;
  gap: 1rem;
}

.news-detail-main {
  grid-area: article;
}

.news-share-card,
.news-related-card {
  border: 1px solid #dfe8e3;
  border-radius: 18px;
  background: #fff;
  padding: 0.9rem;
}

.news-share-card h3,
.news-related-card h3 {
  margin: 0 0 0.8rem;
  color: #17212c;
  font-size: 1rem !important;
}

.news-share-list {
  display: grid;
  gap: 0.65rem;
}

.news-share-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.82rem 0.9rem;
  border: 1px solid #e6ece8;
  border-radius: 12px;
  background: #fff;
  color: #1f2a31;
  transition: border-color 0.22s ease, transform 0.18s ease, box-shadow 0.25s ease;
}

.news-share-link:hover {
  transform: translateY(-2px);
  border-color: #c7dad0;
  box-shadow: 0 8px 20px rgba(6, 58, 37, 0.06);
  color: #1f2a31;
}

.news-share-icon {
  order: -1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #dbe5df;
  padding: 6px;
  object-fit: contain;
  background: #fff;
}

.news-related-list {
  display: grid;
  gap: 0.9rem;
}

.news-related-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #edf1ef;
}

.news-related-item img {
  order: 2;
}

.news-related-item > div {
  order: 1;
}

.news-related-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.news-related-item img {
  width: 78px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
}

.news-related-item h4 {
  margin: 0 0 0.28rem;
  color: #17212c;
  font-size: 0.9rem !important;
  line-height: 1.5;
}

.news-related-item time {
  color: #80908a;
  font-size: 0.76rem;
}

.news-detail-article {
  border-right: 1px solid #ecefed;
  padding-right: 1.25rem;
  border-left: 0;
  padding-left: 0;
}

.news-detail-media {
  border: 1px solid #e5ece7;
  border-radius: 18px;
  background: #fff;
  padding: 0.5rem;
}

.news-detail-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
  color: #7a8984;
  font-size: 0.82rem;
  margin: 0.9rem 0 0;
}

.news-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.news-detail-article h1 {
  margin: 1.25rem 0 0.9rem;
  color: #18232d;
  font-size: 2.35rem !important;
  line-height: 1.35;
  text-align: right;
}

.news-detail-body {
  color: #4b5f59;
  font-size: 1rem;
  line-height: 2;
}

.news-detail-body h2 {
  margin: 1.35rem 0 0.7rem;
  color: #17222d;
  font-size: 1.5rem !important;
  line-height: 1.45;
}

.news-detail-body p,
.news-detail-body li {
  margin-bottom: 0.7rem;
}

.news-detail-body ul {
  padding: 0;
  margin: 0 0 0.9rem;
  list-style: none;
}

.news-detail-body li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 0.5rem;
  border-radius: 50%;
  background: var(--green-700);
}





/* ═══ MOBILE MENU ENHANCEMENTS ═══ */
.mobile-menu.offcanvas {
  max-width: 300px;
  border-left: none;
  border-right: none;
}

.mobile-menu .offcanvas-header {
  border-bottom: 1px solid #edf2ef;
  padding: 1rem 1.25rem;
}

.mobile-menu .offcanvas-title {
  font-weight: 700;
  color: #18232d;
}

.mobile-menu .offcanvas-body {
  padding: 1rem;
}

.mobile-menu .offcanvas-body a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #edf2ef;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  background: #fff;
  color: #2d3b35;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.mobile-menu .offcanvas-body a::after {
  content: "\F285";
  font-family: bootstrap-icons;
  font-size: 0.75rem;
  color: #b0bfb9;
  transition: transform 0.25s ease, color 0.25s ease;
}

.mobile-menu .offcanvas-body a:hover {
  background: #f0fbf5;
  border-color: #c7ead5;
  color: var(--green-700);
  transform: translateX(-3px);
}

.mobile-menu .offcanvas-body a:hover::after {
  color: var(--green-700);
  transform: translateX(-4px);
}

.mobile-menu .offcanvas-body a.is-active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 122, 70, 0.18);
}

.mobile-menu .offcanvas-body a.is-active::after {
  color: rgba(255,255,255,0.7);
}

/* ═══ ABOUT PAGE DETAIL LAYOUT ═══ */
.about-detail-page {
  padding-top: 0.8rem;
}

.about-detail-page .news-share-card {
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  box-shadow: none;
  background: #fff;
  padding: 0;
}

.about-detail-page .news-share-card > .card-body {
  padding: 1.5rem 1.5rem 1.5625rem;
}

.about-detail-page .news-share-card h3 {
  margin: 0;
  color: #161616;
  font-size: 18px !important;
  line-height: 27px;
}

.about-detail-page .news-share-list {
  gap: 0.75rem;
}

.about-detail-page .news-share-link {
  justify-content: flex-start;
  gap: 0.85rem;
  min-height: 66px;
  padding: 0 1.3125rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.about-detail-page .news-share-link span {
  font-size: 14px;
  line-height: 21px;
  color: #161616;
}

.about-detail-page .news-share-icon {
  width: 40px;
  height: 40px;
  order: -1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  flex-shrink: 0;
}

.about-detail-page .news-detail-article {
  padding-right: 0;
  padding-left: 0;
}

.about-detail-page .news-detail-article > .card-body {
  padding: 0;
  padding-right: 1.25rem;
}

.about-shell .news-detail-article h1 {
  font-size: 2rem !important;
  margin: 1.25rem 0 0.9rem;
}

/* Final card type, mobile footer, and ads polish */
:root {
  --font-card: "Frutiger LT Arabic", "Cairo", system-ui, sans-serif;
}

.program-card h3,
.program-card-v2 h3,
.program-card-v2 .prog-title,
.news-body h3,
.news-card--listing .news-body h3,
.announcement-card h3,
.announce-card h3,
.home-region-card h4,
.region-card-item h4,
.ads-list-item__title,
.ads-detail-panel .ads-detail-title {
  font-family: var(--font-card) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 28px !important;
  letter-spacing: 0;
  text-align: right;
}

.program-card p,
.program-card-v2 .program-desc,
.program-card-v2 .prog-desc,
.news-body p,
.news-card--listing .news-body p,
.home-region-card .stat-label,
.region-card-item .stat-label,
.ads-list-item__preview,
.ads-detail-panel .ads-detail-body,
.region-page-head p {
  font-family: var(--font-card) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 26px !important;
  letter-spacing: 0;
  text-align: right;
}

/* ── Admin-authored ad description: keep rich text within the design system ──
   The description is rendered as raw HTML, so an admin can paste oversized
   fonts. A fixed-pixel line-height is inherited literally by children, so large
   text collapses into too-short line boxes and overlaps ("mixed" text). Use a
   unitless line-height so spacing scales with each element's own font-size,
   normalize headings, and let long words wrap instead of overflowing. */
.ads-detail-panel .ads-detail-body {
  line-height: 1.625 !important;
}

.ads-detail-panel .ads-detail-body * {
  line-height: 1.625 !important;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.ads-detail-panel .ads-detail-body h1,
.ads-detail-panel .ads-detail-body h2,
.ads-detail-panel .ads-detail-body h3,
.ads-detail-panel .ads-detail-body h5,
.ads-detail-panel .ads-detail-body h6 {
  font-size: 1.15rem !important;
  line-height: 1.4 !important;
  font-weight: 700;
}

.home-region-card,
.region-card-item {
  min-height: 220px;
}

.announcement-card,
.announce-card {
  min-height: 158px;
}

.news-card--listing .news-body,
.news-body,
.program-card-v2,
.program-card,
.announcement-card,
.announce-card,
.home-region-card,
.region-card-item,
.ads-list-item,
.ads-detail-panel {
  direction: rtl;
}

.program-card-v2 .details-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: var(--green-700);
  color: #fff;
  font-family: var(--font-card) !important;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(6, 58, 37, 0.1);
  transition: background-color 0.25s ease, transform 0.18s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.program-card-v2 .details-link:hover,
.program-card-v2 .details-link:focus-visible {
  background: var(--green-800);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(6, 58, 37, 0.14);
}

.program-card-v2 .details-link i,
.ads-list-item__arrow,
.naseej-pagination__btn.nav-arrow i {
  transition: transform 0.26s ease, color 0.25s ease;
}

.program-card-v2 .details-link:hover i,
.program-card-v2 .details-link:focus-visible i,
.ads-list-item:hover .ads-list-item__arrow,
.ads-list-item.is-active .ads-list-item__arrow,
.naseej-pagination__btn.nav-arrow:hover:not(:disabled) i {
  transform: translateX(-5px);
}

.ads-layout {
  grid-template-columns: 340px minmax(0, 1fr) !important;
}

.ads-list-panel__header {
  min-height: 54px;
  align-items: center;
}

.ads-list-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 116px;
}

.ads-list-item__meta,
.ads-detail-panel .ads-detail-meta {
  width: 100%;
}

.ad-badge-urgent::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d92d20;
  display: inline-block;
  margin-inline-end: 0.35rem;
  vertical-align: middle;
}

.mobile-menu.offcanvas {
  max-width: 272px;
}

.mobile-menu .offcanvas-header {
  padding: 0.85rem 1rem;
}

.mobile-menu .offcanvas-title {
  font-size: 0.95rem;
}

.mobile-menu .offcanvas-body {
  padding: 0.85rem;
}

.mobile-menu .offcanvas-body a {
  padding: 0.72rem 0.85rem;
  font-size: 0.9rem;
}



/* Final interaction and layout fixes */
.auth-card .auth-link,
.auth-card .auth-success-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin-inline: auto;
}

.programs-section {
  background: #fff !important;
}

.news-listing-pagination,
.programs-pagination,
.ads-listing-pagination {
  margin-top: 2rem;
  justify-content: center;
}

.ads-listing-pagination {
  padding-top: 0;
}

.home-region-card,
.region-list-card {
  text-align: right;
}

.home-region-card__stats > div {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.region-stats-compact > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.home-region-card .stat-label,
.region-stats-compact .stat-label {
  text-align: right;
}

.home-region-card .stat-num,
.region-stats-compact .stat-num {
  min-width: 64px;
  text-align: left;
}

.regions-banner-panel,
.regions-page-banner {
  isolation: isolate;
}

.regions-banner-panel__art,
.regions-page-banner .regions-banner-panel__art,
.home-regions-section .regions-banner-panel__art {
  inset: 0 !important;
  width: 100% !important;
  background:
    linear-gradient(90deg, rgba(7, 88, 54, 0.32) 0%, rgba(7, 88, 54, 0.18) 35%, rgba(7, 88, 54, 0.52) 100%),
    url('../images/hero-overlay.png') center/cover no-repeat !important;
}

.regions-page-banner::after {
  background: linear-gradient(90deg, rgba(13, 106, 65, 0.12) 0%, rgba(13, 106, 65, 0.08) 40%, rgba(13, 106, 65, 0.18) 100%) !important;
}

html[dir="rtl"] .regions-banner-panel__content,
html[dir="rtl"] .regions-page-banner .regions-banner-panel__content,
.home-regions-section .regions-banner-panel__content,
.regions-page-banner .regions-banner-panel__content {
  justify-content: flex-end !important;
  align-items: center;
  padding: 1.2rem 1.8rem !important;
  text-align: right;
}

.regions-banner-panel__copy {
  max-width: none;
}

.regions-banner-panel__headline,
.regions-page-banner .regions-banner-panel__content strong,
.home-regions-section .regions-banner-panel__content strong {
  font-size: 32px !important;
  line-height: 1.45 !important;
  max-width: none !important;
  position: relative;
  z-index: 2;
}



/* Final regional RTL and ads refinements */
html[dir="rtl"] .regions-banner-panel__content,
html[dir="rtl"] .regions-page-banner .regions-banner-panel__content {
  justify-content: flex-start !important;
  padding-inline: 1.85rem !important;
}

html[dir="rtl"] .regions-banner-panel__copy,
html[dir="rtl"] .regions-page-banner .regions-banner-panel__copy {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

html[dir="rtl"] .regions-banner-panel__headline,
html[dir="rtl"] .regions-page-banner .regions-banner-panel__content strong {
  margin-inline-end: auto;
  text-align: right;
}

.region-list-card,
.region-entity-card {
  min-height: 188px;
  padding: 1.2rem 1.2rem 1.1rem;
  border-radius: 20px;
  border-color: #d4e3db;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
  box-shadow: 0 16px 28px rgba(8, 70, 43, 0.08);
  text-align: right;
}

.region-list-card:hover,
.region-entity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(8, 70, 43, 0.12);
  border-color: #a8cfbb;
}

.region-list-card .region-icon,
.region-entity-card .entity-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin: 0 0 1rem auto;
  font-size: 1.2rem;
  background: linear-gradient(180deg, #0b8a50 0%, #0b6a43 100%);
}

.region-list-card h4,
.region-entity-card h4 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  line-height: 1.45;
  color: #142432;
}

.home-region-card__stats > div,
.region-stats-compact > div,
.entity-stats-compact > div {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.home-region-card__stats > div .stat-label {
  order: 1;
}

.home-region-card__stats > div .stat-num {
  order: 2;
}

.home-region-card__stats > div .stat-label,
.region-stats-compact > div .stat-label,
.entity-stats-compact > div .stat-label {
  flex: 1 1 auto;
  text-align: right;
  color: #667987;
}

.home-region-card__stats > div .stat-num,
.region-stats-compact > div .stat-num,
.entity-stats-compact > div .stat-num {
  flex: 0 0 auto;
  min-width: 64px;
  text-align: left;
  color: #0b7a46;
  font-weight: 800;
}

.region-stats-compact,
.entity-stats-compact {
  gap: 0.4rem;
}

.ads-layout {
  align-items: stretch !important;
}

.ads-detail-panel,
.ads-list-panel {
  height: 100%;
}

.ads-list-panel {
  display: flex;
  flex-direction: column;
}

.ads-list-items {
  flex: 1 1 auto;
  overflow-y: auto;
}

html[dir="rtl"] .ads-list-item__meta,
html[dir="rtl"] .ads-detail-panel .ads-detail-meta {
  justify-content: flex-start !important;
  flex-wrap: wrap;
  text-align: right;
}

.ads-detail-panel .ads-detail-title {
  font-size: 1.18rem !important;
  color: #0b7a46;
}

.ads-detail-panel .ads-detail-body {
  font-size: 0.86rem !important;
  line-height: 1.95;
}

.ads-list-item__title {
  font-size: 0.84rem !important;
  line-height: 1.6;
}

.ads-list-item.is-active .ads-list-item__title {
  color: #0b7a46;
}

.ads-list-item__preview {
  font-size: 0.74rem !important;
  line-height: 1.7;
}





/* Final visual cleanup for region cards, program links, program hero, partners, and ads meta */
html[dir="rtl"] .home-region-card__icon,
html[dir="rtl"] .region-list-card .region-icon,
html[dir="rtl"] .region-entity-card .entity-icon {
  margin-left: auto !important;
  margin-right: 0 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
}

.program-card-v2 .details-link {
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--green-700) !important;
}

.program-card-v2 .details-link:hover,
.program-card-v2 .details-link:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--green-800) !important;
}

.program-card-v2 .details-link span {
  text-decoration: none;
}

.program-detail-hero .container {
  max-width: 100%;
  padding-inline: calc(var(--bs-gutter-x) * .5);
}

.program-detail-hero__inner {
  grid-template-columns: 430px minmax(0, 1fr) !important;
  min-height: 430px;
}

.program-detail-hero__art {
  min-height: 430px;
}

.program-detail-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.program-detail-hero__content {
  padding: 2.5rem 4vw 2.5rem 2rem;
  align-items: flex-start;
  text-align: right;
}

html[dir="rtl"] .ads-list-item__meta,
html[dir="rtl"] .ads-detail-panel .ads-detail-meta {
  direction: rtl;
  flex-direction: row !important;
  justify-content: flex-start !important;
}

html[dir="rtl"] .ads-list-item__meta {
  align-self: stretch;
}



html[dir="rtl"] .region-entity-card {
  align-items: stretch !important;
}

html[dir="rtl"] .region-list-card .region-icon,
html[dir="rtl"] .region-entity-card .entity-icon {
  order: -1 !important;
  align-self: flex-end;
}

/* Unified header navigation (single nav for desktop and mobile) */
.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header .header-row {
  position: relative;
  padding: 0;
  flex-wrap: nowrap;
}

.site-header .header-nav.navbar-collapse {
  flex-grow: 0;
}

.site-header .header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.site-header .header-nav .nav-mobile-only {
  display: none;
}

.site-header .mobile-menu-btn {
  display: none;
}

.site-header .mobile-menu-btn.navbar-toggler,
.site-header .mobile-menu-btn.navbar-toggler:focus,
.site-header .mobile-menu-btn.navbar-toggler:focus-visible {
  box-shadow: none;
  outline: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.main-footer .footer-policy-links {
  max-width: 100%;
}

/* Consolidated Media Queries */

@media (min-width: 992px) {
  .ads-layout {
    grid-template-columns: minmax(340px, 1fr) minmax(340px, 1fr) !important;
  }
}

@media (max-width: 991.98px) {
  .header-shell { min-height: 70px; }
  .hero-block,
  .hero-content { min-height: 360px; }
  .metrics-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regions-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-banner-card { grid-column: span 2; }
  .mail-form .input-group { flex-direction: column; }
  .mail-form .input-group > .form-control,
  .mail-form .input-group > .btn {
    width: 100%;
  }
  .partners-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip-nav { display: none; }
}

@media (max-width: 767.98px) {
  .hero-copy-wrap h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .section-space { padding: 2.9rem 0; }
  .regions-layout,
  .metrics-row { grid-template-columns: 1fr; }
  .region-banner-card { grid-column: auto; min-height: 125px; }
  .partners-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-copy small { display: none; }
  .share-sidebar { flex-direction: row; position: static; justify-content: center; margin-bottom: 1rem; }
  .detail-hero .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .map-placeholder { min-height: 200px; }
  .ad-list-card { flex-direction: column; }
}

@media (max-width: 1199.98px) {
  .brand-text-en { display: none; }
  .header-nav .nav-item { padding: 0.45rem 0.85rem; font-size: 0.88rem; }
}

@media (max-width: 991.98px) {
  .header-row { min-height: 70px; }
  .hero-slide { min-height: 400px; }
  .hero-slide-content { max-width: 100%; padding: 2.5rem 0; }
  .hero-slide-content h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
  .regions-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767.98px) {
  .header-row { min-height: 64px; }
  .brand-text { display: none; }
  .hero-slide { min-height: 360px; }
  .hero-slide-content h1 { font-size: 1.6rem; }
  .hero-slide-content p { font-size: 0.95rem; }
  .hero-btn { padding: 0.65rem 1.25rem; font-size: 0.88rem; }
  .map-container iframe { min-height: 300px; }
  .map-overlay-banner { bottom: 1rem; left: 1rem; padding: 0.75rem 1rem; }
  .map-overlay-banner strong { font-size: 1.25rem; }
  .regions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .regions-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .region-card-item { padding: 1rem 0.75rem; }
}

@media (max-width: 1199.98px) {
  .header-row { min-height: 80px; }
  .brand-logo-image { height: 42px; }
  .header-nav { gap: 1.35rem; }
  .header-nav .nav-item { font-size: 0.92rem; }
  .regions-grid--catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .header-row { min-height: 68px; }
  .brand-logo-image { height: 38px; }
  .program-card-v2 { min-height: 310px; }
  .program-card-v2 h3 { font-size: 1.4rem; }
  .home-regions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-region-card--featured, .regions-banner-panel, .home-region-card { grid-column: span 1; }
  .regions-page-layout { grid-template-columns: 1fr; }
  .regions-map-panel { position: static; }
  .regions-grid--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .brand-logo-image { height: 34px; }
  .program-card-v2 { min-height: 280px; padding: 1.25rem; border-radius: 18px; }
  .program-card-v2 .program-icon { width: 62px; height: 62px; font-size: 1.7rem; }
  .program-card-v2 h3 { font-size: 1.25rem; }
  .program-card-v2 .program-desc { font-size: 0.92rem; }
  .regions-banner-panel { min-height: 180px; }
  .regions-banner-panel__content { padding: 1.25rem; }
  .regions-banner-panel__content strong { font-size: 1.8rem; }
  .home-region-card, .region-card-item { min-height: 200px; padding: 1rem; }
  .home-regions-section .home-region-card { padding: 0; }
  .home-regions-section .home-region-card .card-body { padding: 1rem; }
  .home-region-card h4, .region-card-item h4 { font-size: 1.25rem; }
  .home-regions-grid, .regions-grid--catalog { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .brand-logo-image { height: 28px; }
  .header-actions { gap: 0.7rem; }
  .lang-toggle, .login-btn { font-size: 0.92rem; }
}

@media (max-width: 1199.98px) {
  .regions-page-grid,
  .region-entities-grid:not(.region-entities-grid--bootstrap) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .regions-page-banner {
    grid-column: span 2;
  }
}

@media (max-width: 991.98px) {
  .regions-page-grid,
  .region-entities-grid:not(.region-entities-grid--bootstrap),
  .region-programs-section .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .regions-page-grid,
  .region-entities-grid:not(.region-entities-grid--bootstrap) {
    grid-template-columns: 1fr;
  }

  .regions-page-grid .regions-page-banner {
    order: 1;
  }

  .regions-page-grid .region-list-card--featured {
    order: 2;
  }

  .regions-page-grid .region-list-card:not(.region-list-card--featured) {
    order: 3;
  }

  .regions-page-banner {
    grid-column: span 1;
  }

  .region-page-head h1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 991.98px) {
  .programs-page-head {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 767.98px) {
  .header-nav .nav-item {
    min-height: auto;
    padding: 0.75rem 1rem;
  }

  .programs-section .program-card-v2 {
    min-height: 220px;
  }

  .programs-section .program-card-v2 h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 991.98px) {
  header.site-header .header-row { min-height: 70px !important; }
  header.site-header .brand-logo-image { height: 40px !important; }
}

@media (max-width: 767.98px) {
  header.site-header .header-row { min-height: 64px !important; }
  header.site-header .brand-logo-image { height: 34px !important; }
}

@media (max-width: 767.98px) {
  .program-card-v2 .program-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  
  .program-card-v2 h3 {
    margin-top: 3rem;
    font-size: 1.2rem;
  }
  
  .region-entity-card {
    padding: 1rem;
  }
  
  .entity-stats-compact .stat-label {
    font-size: 0.72rem;
  }
  
  .entity-stats-compact .stat-num {
    font-size: 0.85rem;
  }
  
  .page-pagination a,
  .page-pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }
}

@media (max-width: 575.98px) {
  .program-status-filters {
    flex-wrap: wrap;
  }
  
  .program-status-filters button {
    flex: 1 1 auto;
    min-width: 70px;
  }
}

@media (max-width: 991.98px) {
  .ads-layout {
    grid-template-columns: 1fr !important;
    grid-template-areas: "list" "detail" !important;
  }
  .ads-list-panel {
    order: unset;
  }
  html[dir="ltr"] .ads-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767.98px) {
  .ads-detail-panel {
    padding: 1.25rem;
  }
  .ads-detail-panel .ads-detail-title {
    font-size: 1.2rem;
  }
  .naseej-pagination__btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }
}

@media (max-width: 991.98px) {
  body.login-page .auth-wrapper,
  .auth-page:is(.auth-page--login, .auth-page--reset) .auth-wrapper {
    padding-top: 3rem;
  }

  body.login-page .auth-card h2,
  .auth-page:is(.auth-page--login, .auth-page--reset) .auth-card h2 {
    font-size: 2rem;
    line-height: 1.35;
  }
}

@media (max-width: 767.98px) {
  body.login-page .auth-wrapper,
  .auth-page:is(.auth-page--login, .auth-page--reset) .auth-wrapper {
    padding-top: 2.2rem;
  }

  body.login-page .auth-card,
  .auth-page:is(.auth-page--login, .auth-page--reset) .auth-card {
    padding: 1.45rem 1rem;
  }

  body.login-page .auth-card h2,
  .auth-page:is(.auth-page--login, .auth-page--reset) .auth-card h2 {
    font-size: 1.72rem;
  }

  body.login-page .auth-card .form-control,
  .auth-page:is(.auth-page--login, .auth-page--reset) .auth-card .form-control {
    height: 46px;
    font-size: 15px;
  }

  body.login-page .footer-logo-img,
  .auth-page:is(.auth-page--login, .auth-page--reset) + .main-footer .footer-logo-img {
    height: 33px;
  }
}

@media (max-width: 767.98px) {
  h1,
  .hero-copy-wrap h1,
  .hero-slide-content h1,
  .about-hero h1,
  .detail-hero h1,
  .region-page-head h1,
  .programs-page-head__copy h1 {
    font-size: 28px !important;
  }

  .main-footer .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .main-footer .footer-right {
    text-align: center;
  }

  .main-footer .footer-logos-left {
    margin-top: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .home-regions-section .regions-banner-panel {
    order: 0;
  }
}

@media (max-width: 767.98px) {
  .regions-page-banner {
    min-height: 200px;
  }

  .regions-page-banner::after {
    background: linear-gradient(180deg, rgba(13, 106, 65, 0.7) 0%, rgba(13, 106, 65, 0.82) 45%, rgba(13, 106, 65, 0.96) 100%);
  }

  .regions-page-banner .regions-banner-panel__art {
    inset: 0;
    width: 100%;
    background-position: left center;
    opacity: 0.42;
  }

  .regions-page-banner .regions-banner-panel__content {
    padding: 1rem 1.25rem;
  }

  .regions-banner-panel__copy {
    max-width: 100%;
    gap: 0.2rem;
  }

  .regions-banner-panel__number {
    font-size: 3rem;
  }

  .regions-banner-panel__title {
    font-size: 1.35rem;
  }

  .regions-banner-panel__desc {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .home-regions-section .regions-banner-panel {
    min-height: 200px;
  }

  .home-regions-section .regions-banner-panel::after {
    background: linear-gradient(180deg, rgba(13, 106, 65, 0.7) 0%, rgba(13, 106, 65, 0.82) 45%, rgba(13, 106, 65, 0.96) 100%);
  }

  .home-regions-section .regions-banner-panel__art {
    inset: 0;
    width: 100%;
    background-position: left center;
    opacity: 0.42;
  }

  .home-regions-section .regions-banner-panel__content {
    padding: 1rem 1.25rem;
  }

  body.auth-flat-page .auth-wrapper,
  .auth-page.auth-page--change .auth-wrapper {
    padding-top: 2.2rem;
  }

  body.auth-flat-page .auth-card,
  .auth-page.auth-page--change .auth-card {
    padding: 1.45rem 1rem;
  }

  body.auth-flat-page .auth-card h2,
  .auth-page.auth-page--change .auth-card h2 {
    font-size: 28px;
    line-height: 1.35;
  }
}

@media (max-width: 991.98px) {
  .ads-layout,
  .program-detail-shell,
  .program-detail-hero__inner {
    grid-template-columns: 1fr !important;
  }

  .ads-layout {
    grid-template-areas:
      "list"
      "detail" !important;
  }

  .program-detail-hero__inner {
    grid-template-areas:
      "content"
      "art" !important;
  }

  .program-detail-hero__content {
    padding: 2rem 1.5rem;
    align-items: flex-start;
  }

  .program-detail-shell {
    grid-template-areas:
      "main"
      "sidebar" !important;
  }
}

@media (max-width: 767.98px) {
  .ads-detail-panel .ads-detail-title {
    font-size: 1.6rem !important;
  }

  .program-audience-grid {
    grid-template-columns: 1fr;
  }

  .program-detail-hero__art {
    min-height: 220px;
  }
}

@media (max-width: 991.98px) {
  .news-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-detail-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "article"
      "sidebar";
  }

  .news-detail-article {
    border-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 767.98px) {
  .regions-banner-panel__headline {
    font-size: 28px;
    line-height: 42px !important;
  }

  .partners-carousel {
    grid-template-columns: 1fr;
  }

  .partners-carousel .strip-nav {
    display: none;
  }

  .partner-card {
    flex-basis: 156px;
    height: 82px;
  }

  .news-page-grid {
    grid-template-columns: 1fr;
  }

  .news-detail-image img {
    height: 240px;
  }

  .news-detail-article h1 {
    font-size: 1.9rem !important;
  }
}

@media (max-width: 767.98px) {
  .main-footer .footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
    text-align: center;
  }

  .main-footer .footer-policy-links .policy-sep {
    display: none;
  }

  .main-footer .footer-policy-links a:last-of-type {
    width: 100%;
  }

  .main-footer .footer-copyright small {
    display: block;
    line-height: 1.9;
    text-align: center;
  }

  .main-footer .footer-logos-left {
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
  }

  .main-footer .footer-logo-img {
    height: 34px;
  }

  .main-footer .footer-logos-left .ms-3 {
    margin-left: 0 !important;
  }

  .ads-detail-panel,
  .ads-list-panel {
    border-radius: 16px;
  }

  .ads-list-item {
    min-height: 104px;
  }
}

@media (max-width: 767.98px) {
  .regions-banner-panel__headline,
  .regions-page-banner .regions-banner-panel__content strong,
  .home-regions-section .regions-banner-panel__content strong {
    font-size: 26px !important;
  }
}

@media (max-width: 991.98px) {
  .ads-list-panel {
    height: auto;
  }

  .ads-list-items {
    overflow: visible;
  }
}

@media (max-width: 767.98px) {
  .region-list-card,
  .region-entity-card {
    min-height: 172px;
    padding: 1rem;
  }

  html[dir="rtl"] .regions-banner-panel__content,
  html[dir="rtl"] .regions-page-banner .regions-banner-panel__content {
    padding-inline: 1.2rem !important;
  }

  .ads-detail-panel .ads-detail-title {
    font-size: 1.05rem !important;
  }
}

@media (max-width: 991.98px) {
  .program-detail-hero .container {
    padding-inline: 0.75rem;
  }

  .program-detail-hero__inner {
    min-height: auto;
  }

  .program-detail-hero__art {
    min-height: 260px;
  }

  .program-detail-hero__content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 991.98px) {
  .site-header .header-row {
    min-height: 70px;
    gap: 0.75rem;
  }

  .site-header .header-actions {
    margin-inline-start: auto;
  }

  .site-header .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header .header-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline-start: 0;
    inset-inline-end: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.8rem;
    border: 1px solid #edf2ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    z-index: 1100;
  }

  .site-header .header-nav .nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.9rem;
    border: 1px solid #edf2ef;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .site-header .header-nav .nav-mobile-only {
    display: flex;
  }

  .site-header .header-nav .nav-item.active::after {
    display: none;
  }

  .site-header .nav-toggle-input:checked ~ .header-nav,
  .site-header .header-nav.collapse.show,
  .site-header .header-nav.collapsing {
    display: flex;
  }
}

@media (max-width: 767.98px) {
  .main-footer .footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
    text-align: center;
  }

  .main-footer .footer-policy-links .policy-sep {
    display: none;
  }

  .main-footer .footer-policy-links a {
    white-space: normal;
  }
}

/* Final palette alignment */
:root {
  --color-success-bg: #e8f4ed;
  --color-success-border: rgba(6, 118, 71, 0.22);
}

.brand-logo-mark,
.program-icon.green-dark,
.home-region-card__icon,
.region-card-item .region-icon {
  background: linear-gradient(135deg, var(--green-700), var(--color-accent-deep)) !important;
}

.program-icon.green-light {
  background: var(--color-success) !important;
}

.program-icon.lime,
.region-list-card .region-icon,
.region-entity-card .entity-icon {
  background: linear-gradient(135deg, var(--color-success), var(--color-accent-deep)) !important;
}

.accent-a,
.accent-b,
.accent-c,
.accent-d,
.accent-e,
.accent-f {
  background: linear-gradient(90deg, var(--green-700), var(--color-accent-deep)) !important;
}

.programs-section .col-md-6:nth-child(3n + 1) .program-card-v2 {
  border-top-color: var(--green-700) !important;
}

.programs-section .col-md-6:nth-child(3n + 2) .program-card-v2 {
  border-top-color: var(--color-accent-deep) !important;
}

.programs-section .col-md-6:nth-child(3n) .program-card-v2 {
  border-top-color: var(--color-success) !important;
}

.state.new,
.state.open,
.badge-new,
.ad-badge-new,
.program-card-v2 .status-badge,
.programs-section .program-card-v2 .status-badge--open {
  color: var(--color-success) !important;
  background: var(--color-success-bg) !important;
  border-color: var(--color-success-border) !important;
}

.program-card-v2 .status-badge--closed {
  color: #da7c3a !important;
  border-color: #f4d1b7 !important;
  background: #fff5ee !important;
}

.program-card-v2 .status-badge--soon {
  color: #4b84d9 !important;
  border-color: #c7daf7 !important;
  background: #f2f7ff !important;
}

.auth-card .auth-success-icon {
  background: var(--color-success) !important;
  color: #fff !important;
}

/* Program detail hero: keep the title and summary inside the image area */
.program-detail-hero {
  background: #074d31;
}

.program-detail-hero .container {
  max-width: 100%;
  padding-inline: calc(var(--bs-gutter-x) * .5);
}

.program-detail-hero__inner {
  position: relative;
  display: block !important;
  min-height: 430px;
}

.program-detail-hero__art {
  position: relative;
  min-height: 430px;
  overflow: hidden;
}

.program-detail-hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 77, 49, 0.12) 0%, rgba(7, 77, 49, 0.34) 34%, rgba(7, 77, 49, 0.72) 68%, rgba(7, 77, 49, 0.94) 100%);
  pointer-events: none;
}

html[dir="ltr"] .program-detail-hero__art::after {
  background: linear-gradient(270deg, rgba(7, 77, 49, 0.12) 0%, rgba(7, 77, 49, 0.34) 34%, rgba(7, 77, 49, 0.72) 68%, rgba(7, 77, 49, 0.94) 100%);
}

.program-detail-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.program-detail-hero__content {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inset-inline-end: auto;
  width: min(44vw, 500px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem) 2.5rem clamp(1.5rem, 3vw, 2.25rem);
  color: #fff;
  text-align: right;
  z-index: 1;
}

html[dir="ltr"] .program-detail-hero__content {
  inset-inline-start: auto;
  inset-inline-end: 0;
  text-align: left;
}

.program-detail-hero__content h1,
.program-detail-hero__content p,
.program-detail-hero__meta,
.program-detail-hero__cta {
  position: relative;
  z-index: 1;
}

.program-detail-hero__content p {
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .program-detail-hero__inner,
  .program-detail-hero__art {
    min-height: 360px;
  }

  .program-detail-hero__content {
    width: min(100%, 430px);
    padding: 1.85rem 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .program-detail-hero__inner,
  .program-detail-hero__art {
    min-height: 320px;
  }

  .program-detail-hero__content {
    inset-inline: 0;
    width: auto;
    justify-content: flex-end;
    padding: 1.35rem 1.2rem 1.5rem;
  }

  .program-detail-hero__content p {
    margin-bottom: 1rem;
  }
}

/* Final targeted UI fixes */
.program-icon.green-dark {
  background: #006c35 !important;
}

.program-icon.green-light {
  background: #8cb435 !important;
}

.program-icon.lime {
  background: #b4c435 !important;
}

.accent-a { background: linear-gradient(90deg, #2e854f, #418f58) !important; }
.accent-b { background: linear-gradient(90deg, #98ad23, #7f9d3f) !important; }
.accent-c { background: linear-gradient(90deg, #4e8b4f, #2d7645) !important; }
.accent-d { background: linear-gradient(90deg, #4f8f57, #77b06d) !important; }
.accent-e { background: linear-gradient(90deg, #9b9c29, #bcbc32) !important; }
.accent-f { background: linear-gradient(90deg, #8d9640, #a6b54d) !important; }

.ad-badge {
  position: relative;
  overflow: visible;
}

.ad-badge-urgent::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 0.35rem);
  width: 6px;
  height: 6px;
  margin: 0;
  border-radius: 50%;
  background: #d92d20;
  transform: translateY(-50%);
}

html[dir="ltr"] .ad-badge-urgent::before {
  left: auto;
  right: calc(100% + 0.35rem);
}

@media (min-width: 992px) {
  .site-header .header-row {
    direction: rtl;
    justify-content: flex-start;
    gap: 1.5rem;
  }

  .site-header .header-brand {
    order: 1;
  }

  .site-header .header-nav {
    order: 2;
    gap: 0.55rem;
    margin-inline-start: 5ch;
  }

  .site-header .header-nav .nav-item {
    min-height: 52px;
    padding: 0.88rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: #1d2330 !important;
    border-radius: 6px;
    position: relative;
    background: transparent !important;
    box-shadow: none !important;
  }

  .site-header .header-nav .nav-item:hover:not(.active) {
    color: #0b6a43 !important;
    background: rgba(11, 122, 70, 0.08) !important;
  }

  .site-header .header-nav .nav-item.active,
  .site-header .header-nav .nav-item.active:hover {
    background: #0b7a46 !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  .site-header .header-nav .nav-item.active::after {
    content: "";
    position: absolute;
    right: 0.9rem;
    left: 0.9rem;
    bottom: 0;
    height: 6px;
    border-radius: 2px;
    background: #54C08A;
    display: block !important;
  }

  .site-header .header-actions {
    order: 3;
    margin-inline-start: auto;
    gap: 1.1rem;
  }

  .site-header .login-btn {
    font-size: 1rem;
    font-weight: 500;
  }
}

/* Final alignment and ordering polish */
.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.metric-item strong {
  line-height: 1.05;
}

.metric-item span {
  display: block;
  min-height: 1.7em;
  text-align: center;
}

.programs-section .program-card-v2 h3,
.region-programs-section .program-card-v2 h3 {
  min-height: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: right !important;
}

.programs-section .program-card-v2 .program-desc,
.region-programs-section .program-card-v2 .program-desc {
  min-height: 84px;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.login-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.program-detail-hero__inner,
.program-detail-hero__art {
  min-height: 320px;
}

.program-detail-hero__content {
  width: min(42vw, 460px);
  padding: 1.8rem 2.25rem 1.8rem 1.5rem;
}

@media (max-width: 991.98px) {
  .program-detail-hero__inner,
  .program-detail-hero__art {
    min-height: 280px;
  }

  .program-detail-hero__content {
    width: min(100%, 400px);
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .program-detail-hero__inner,
  .program-detail-hero__art {
    min-height: 240px;
  }

  .program-detail-hero__content {
    padding: 1.15rem 1rem 1.25rem;
  }
}

/* Homepage final tune: icon sizing and metric number style */
.programs-section .program-card-v2 .program-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 11px !important;
}

.programs-section .program-card-v2 .program-icon img {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain;
  display: block;
}

.metrics-area .metric-item i {
  width: 40px !important;
  height: 40px !important;
  font-size: 1.08rem;
}

.metrics-area .metric-item strong {
  font-weight: 600 !important;
  direction: ltr;
  unicode-bidi: isolate;
}

@media (max-width: 767.98px) {
  .programs-section .program-card-v2 .program-icon {
    width: 44px !important;
    height: 44px !important;
  }

  .programs-section .program-card-v2 .program-icon img {
    width: 27px !important;
    height: 27px !important;
  }
}

/* Final request fixes: newsletter send button + program details hero scale */
.mail-form .btn.btn-main {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.mail-form .btn.btn-main i {
  font-size: 0.9rem;
  line-height: 1;
}

.mail-form .btn .icon-send-svg {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.home-newsletter-section .mail-form .form-control:focus {
  outline: none !important;
  border-color: #b8d2c6 !important;
  box-shadow: none !important;
  background: rgba(255,255,255,0.12) !important;
}

.home-newsletter-section .mail-form .form-control:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 2px;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.24) !important;
  background: rgba(255,255,255,0.16) !important;
}

.mail-form .btn.btn-main:hover,
.mail-form .btn.btn-main:active {
  background: #eef3ef !important;
  color: #111111 !important;
  border-color: #d7e1dc !important;
  box-shadow: none !important;
  transform: none !important;
}

.home-newsletter-section .mail-form .btn.btn-main:focus {
  outline: none !important;
  box-shadow: none !important;
}

.home-newsletter-section .mail-form .btn.btn-main:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 2px;
  background: #eef3ef !important;
  color: #111111 !important;
  border-color: #d7e1dc !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.22) !important;
  transform: none !important;
}

.mail-form .btn.btn-main:hover .icon-send-svg,
.mail-form .btn.btn-main:focus-visible .icon-send-svg,
.mail-form .btn.btn-main:active .icon-send-svg {
  filter: none;
}

.news-card:not(.news-card--listing) .news-body {
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.news-card:not(.news-card--listing) .news-card__meta {
  margin-top: auto;
}

.news-card .icon-meta-svg {
  width: 14px;
  height: 14px;
  display: inline-block;
  opacity: 0.85;
}

.icon-login-svg {
  width: 16px;
  height: 16px;
  display: inline-block;
  filter: invert(28%) sepia(46%) saturate(1209%) hue-rotate(111deg) brightness(89%) contrast(92%);
}

.icon-menu-svg {
  width: 22px;
  height: 22px;
  display: inline-block;
  filter: invert(28%) sepia(46%) saturate(1209%) hue-rotate(111deg) brightness(89%) contrast(92%);
}

.icon-envelope-svg {
  width: 20px;
  height: 20px;
  display: inline-block;
  filter: brightness(0) invert(1);
}

.program-detail-hero__inner,
.program-detail-hero__art {
  min-height: 300px !important;
}

.program-detail-hero__content {
  width: min(38vw, 410px) !important;
  padding: 1.1rem 1.75rem 1.1rem 1.1rem !important;
}

.program-detail-pill {
  min-width: auto !important;
  gap: 0.35rem;
  padding: 0.22rem 0.62rem;
}

.hero-pill-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  filter: brightness(0) invert(1);
}

.program-detail-hero__cta {
  gap: 0.42rem;
  min-width: 0;
  padding: 0.58rem 1.05rem !important;
  font-size: 0.86rem;
}

.hero-cta-icon {
  width: 13px;
  height: 13px;
  display: inline-block;
  filter: invert(28%) sepia(46%) saturate(1209%) hue-rotate(111deg) brightness(89%) contrast(92%);
}

@media (max-width: 991.98px) {
  .program-detail-hero__inner,
  .program-detail-hero__art {
    min-height: 255px !important;
  }

  .program-detail-hero__content {
    width: min(100%, 350px) !important;
    padding: 0.95rem 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .program-detail-hero__inner,
  .program-detail-hero__art {
    min-height: 220px !important;
  }

  .program-detail-hero__content {
    padding: 0.8rem 0.9rem 0.95rem !important;
  }
}
/* Ads list: force uniform fixed height across pages */
.ads-list-items .ads-list-item {
  height: 120px !important;
  min-height: 120px !important;
  max-height: 120px !important;
  box-sizing: border-box !important;
  display: flex;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: hidden !important;
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
}

.ads-list-items .ads-list-item__title,
.ads-list-items .ads-list-item__preview {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.ads-list-items .ads-list-item__title {
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  margin-bottom: 0.15rem !important;
}

.ads-list-items .ads-list-item__preview {
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  margin-top: 0.15rem !important;
}

@media (max-width: 767.98px) {
  .ads-list-items .ads-list-item {
    height: auto !important;
    min-height: 96px !important;
    max-height: none !important;
  }
}
/* === FINAL OVERRIDE (must stay last) === */
:root {
  --program-tone-dark: #427730;
  --program-tone-lime: #B6BF00;
  --program-tone-light: #73AF55;
}

.programs-section .col-md-6 .program-card-v2.tone-dark,
.region-programs-section .col-md-6 .program-card-v2.tone-dark {
  border-top-color: var(--program-tone-dark) !important;
}

.programs-section .col-md-6 .program-card-v2.tone-lime,
.region-programs-section .col-md-6 .program-card-v2.tone-lime {
  border-top-color: var(--program-tone-lime) !important;
}

.programs-section .col-md-6 .program-card-v2.tone-light,
.region-programs-section .col-md-6 .program-card-v2.tone-light {
  border-top-color: var(--program-tone-light) !important;
}

.programs-section .col-md-6 .program-card-v2.tone-dark .program-icon,
.region-programs-section .col-md-6 .program-card-v2.tone-dark .program-icon {
  background: transparent !important;
}

.programs-section .col-md-6 .program-card-v2.tone-lime .program-icon,
.region-programs-section .col-md-6 .program-card-v2.tone-lime .program-icon {
  background: transparent !important;
}

.programs-section .col-md-6 .program-card-v2.tone-light .program-icon,
.region-programs-section .col-md-6 .program-card-v2.tone-light .program-icon {
  background: transparent !important;
}

.announcement-heading-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.announcement-card .announcement-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

html[dir="rtl"] .announcement-card .announcement-meta {
  flex-direction: row-reverse;
}

/* FINAL STATUS LOCK */

.program-card-v2 .status-badge--open {
  color: #2b8d56 !important;
  border-color: #cde5d7 !important;
  background: #e8f4ed !important;
}

.program-card-v2 .status-badge--closed {
  color: #c07130 !important;
  border-color: #efc7a5 !important;
  background: #fff5eb !important;
}

.program-card-v2 .status-badge--soon {
  color: #3b82f6 !important;
  border-color: #c6dbff !important;
  background: #eef5ff !important;
}

/* Final program details hero sizing */
.program-detail-hero__inner,
.program-detail-hero__art {
  min-height: 380px !important;
}

.program-detail-hero__content {
  width: min(46vw, 520px) !important;
  padding: 1.6rem 2rem 1.6rem 1.25rem !important;
}

@media (max-width: 991.98px) {
  .program-detail-hero__inner,
  .program-detail-hero__art {
    min-height: 300px !important;
  }

  .program-detail-hero__content {
    width: min(100%, 390px) !important;
    padding: 1.35rem 1.2rem !important;
  }
}

@media (max-width: 767.98px) {
  .program-detail-hero__inner,
  .program-detail-hero__art {
    min-height: 240px !important;
  }

  .program-detail-hero__content {
    padding: 1rem 0.95rem 1.1rem !important;
  }
}

/* FINAL LOCK: requested icon and announcement fixes */
.metrics-row .metric-item .metric-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f3ec !important;
  padding: 12px !important;
  margin: 0 auto 0.72rem;
  box-sizing: border-box;
  overflow: hidden;
}

.metrics-row .metric-item .metric-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.announcement-card {
  min-height: 146px;
}

.announcement-card .announcement-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
}

html[dir="rtl"] .announcement-card .announcement-meta {
  flex-direction: row-reverse;
}

.announcement-card .announcement-status-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.18rem;
}

.announcement-card .announcement-status-label {
  font-size: 16px;
  line-height: 1.15;
  font-weight: 600;
  color: #5f716a;
}

.announcement-card .announcement-date {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: #7a8c85;
  font-size: 14px;
  line-height: 1.2;
}

.announcement-card .announcement-date i {
  font-size: 0.92rem;
  line-height: 1;
}

.mailing-box .mail-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.45);
}

.mailing-box .icon-envelope-svg {
  width: 30px;
  height: 30px;
  display: inline-block;
  filter: none;
}

.mail-form .btn .icon-send-svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  filter: none;
}

.program-audience-item .program-audience-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.program-audience-item .audience-login-icon {
  width: 14px;
  height: 14px;
  display: block;
  filter: brightness(0) invert(1);
}

@media (max-width: 767.98px) {
  .metrics-row .metric-item .metric-icon {
    width: 46px;
    height: 46px;
    padding: 10px !important;
  }
}

/* Final auth typography override: login + reset password headings */
body.login-page .auth-card h2,
.auth-page:is(.auth-page--login, .auth-page--reset) .auth-card h2 {
  font-family: "Frutiger LT Arabic", "Cairo", system-ui, sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-size: 32px !important;
  line-height: 48px !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}

/* Show reset subtitle under the heading as requested */
body.login-page #resetFormState .auth-sub,
.auth-page.auth-page--reset #resetFormState .auth-sub {
  display: block !important;
  text-align: center;
}

/* Integrated from register-pages.css */
/* Register pages visual alignment with provided designs */

body.register-page .auth-wrapper,
.auth-page.auth-page--register .auth-wrapper {
  min-height: calc(100vh - 82px);
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1rem;
  background: #fff;
}

body.register-page .auth-card,
.auth-page.auth-page--register .auth-card {
  max-width: 460px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: none;
  padding: 2rem;
  text-align: center;
}

body.register-page .auth-card h2,
.auth-page.auth-page--register .auth-card h2 {
  margin-bottom: 1.3rem;
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 400;
}

body.register-page .auth-card .form-label,
.auth-page.auth-page--register .auth-card .form-label {
  font-size: 1rem;
  font-weight: 400;
  color: #333;
  text-align: right !important;
}

body.register-page .auth-card .form-control,
.auth-page.auth-page--register .auth-card .form-control {
  height: 50px;
  border-radius: 8px;
  font-size: 1rem;
}

body.register-page .auth-card .password-input-group .form-control,
.auth-page.auth-page--register .auth-card .password-input-group .form-control {
  padding-left: 2.9rem;
}

body.register-page .auth-card .btn-auth,
.auth-page.auth-page--register .auth-card .btn-auth {
  margin-top: 0.75rem;
}

body.register-page .auth-card .auth-note,
.auth-page.auth-page--register .auth-card .auth-note {
  justify-content: center;
  gap: 0.2rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

body.register-page .auth-card .auth-note .auth-inline-link,
.auth-page.auth-page--register .auth-card .auth-note .auth-inline-link {
  color: #487629;
  text-decoration: none;
}

body.register-page .auth-card .auth-note .auth-inline-link:hover,
.auth-page.auth-page--register .auth-card .auth-note .auth-inline-link:hover {
  text-decoration: underline;
}

body.register-success-page .auth-wrapper,
.auth-page.auth-page--success .auth-wrapper {
  min-height: calc(100vh - 82px);
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: #f7f9f8;
}

body.register-success-page .auth-card,
.auth-page.auth-page--success .auth-card {
  max-width: 390px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: none;
  padding: 3.1rem 2.2rem;
}

body.register-success-page .auth-state-success,
.auth-page.auth-page--success .auth-state-success {
  min-height: auto;
}

body.register-success-page .auth-success-icon,
.auth-page.auth-page--success .auth-success-icon {
  width: 58px;
  height: 58px;
  font-size: 1.6rem;
  margin-bottom: 1.35rem;
}

body.register-success-page .auth-success-title,
.auth-page.auth-page--success .auth-success-title {
  font-size: 2rem;
  line-height: 1.35;
  font-weight: 500;
  margin-bottom: 1rem;
}

body.register-success-page .auth-success-text,
.auth-page.auth-page--success .auth-success-text {
  max-width: 18rem;
  font-size: 0.96rem;
  line-height: 1.85;
  color: #5f6b6a;
}

@media (max-width: 991.98px) {
  body.register-page .auth-wrapper,
  .auth-page.auth-page--register .auth-wrapper {
    padding-top: 2.75rem;
  }
}

@media (max-width: 575.98px) {
  body.register-page .auth-card,
  .auth-page.auth-page--register .auth-card,
  body.register-success-page .auth-card,
  .auth-page.auth-page--success .auth-card {
    padding: 1.5rem 1rem;
  }

  body.register-page .auth-card h2,
  .auth-page.auth-page--register .auth-card h2,
  body.register-success-page .auth-success-title,
  .auth-page.auth-page--success .auth-success-title {
    font-size: 1.75rem;
  }
}

/* Home page only: requested Figma-aligned refinements */
.home-page .metrics-area.section-space {
  padding-top: 40px;
  padding-bottom: 24px;
}

.home-page .programs-section.section-space {
  margin-top: 32px;
  padding-top: 48px;
  padding-bottom: 60px;
}

.home-page .home-regions-section.section-space {
  padding-top: 64px;
  padding-bottom: 64px;
}

.home-page .home-news-section.section-space {
  padding-top: 64px;
  padding-bottom: 64px;
}

.home-page .announcements-section.section-space {
  padding-top: 64px;
  padding-bottom: 64px;
}

.home-page .home-newsletter-section.section-space {
  padding-top: 48px;
  padding-bottom: 48px;
}

.home-page .partners-area.section-space {
  padding-top: 72px;
  padding-bottom: 72px;
}

.home-page .programs-section {
  background-color: #F9FAFB !important;
}

.home-page .programs-section .program-card-v2 {
  position: relative;
  overflow: hidden;
  border-top-width: 6px;
}

.home-page .programs-section .program-card-v2::before {
  content: none;
}

.home-page .programs-section .program-card-v2.tone-light::before {
  background: var(--program-tone-light, #73AF55);
}

.home-page .programs-section .program-card-v2.tone-lime::before {
  background: var(--program-tone-lime, #B6BF00);
}

.home-page .programs-section .program-card-v2.tone-dark::before {
  background: var(--program-tone-dark, #427730);
}

.home-page .metrics-row .metric-item .metric-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 auto 0.72rem;
}

.home-page .metrics-row .metric-item .metric-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.home-page .announcement-card {
  min-height: 100px;
  padding: 22px 22px 14px;
  border: 1px solid #d2d6db;
  border-radius: 16px;
  box-shadow: none;
}

.home-page .announcement-card:hover {
  box-shadow: none;
  transform: none;
}

.home-page .announcement-card h3 {
  font-size: 16px !important;
  line-height: 24px !important;
  margin-bottom: 8px;
}

.home-page .announcement-card .announcement-meta {
  align-items: center;
  gap: 4px;
}

.home-page .announcement-card .announcement-date {
  color: #4a5565;
  font-size: 14px;
  line-height: 20px;
}

.home-page .announcement-card .announcement-badge {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.home-page .news-card {
  padding: 16px;
  border: 1px solid #d2d6db;
  border-radius: 16px;
  box-shadow: none;
}

.home-page .news-card:hover {
  box-shadow: none;
  transform: none;
}

.home-page .news-thumb {
  min-height: 250px;
  border-bottom: 0;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
}

.home-page .news-body {
  padding: 24px 0 0;
}

.home-page .news-card:not(.news-card--listing) .news-body {
  min-height: auto;
}

.home-page .home-region-card,
.home-page .region-card-item {
  background: linear-gradient(to left, #ecfdf5 0%, #ffffff 58%) !important;
}

@media (max-width: 767.98px) {
  .home-page .metrics-row .metric-item .metric-icon {
    width: 46px;
    height: 46px;
  }

  .home-page .metrics-row .metric-item .metric-icon img {
    width: 22px;
    height: 22px;
  }
}

/* Final design-system alignment for shared landing pages */
:root {
  --ns-space-2: 0.5rem;
  --ns-space-3: 0.75rem;
  --ns-space-4: 1rem;
  --ns-space-5: 1.5rem;
  --ns-space-6: 2rem;
  --ns-space-7: 2.5rem;
  --ns-section-space: clamp(3.5rem, 6vw, 5rem);
}

.section-space {
  padding-block: var(--ns-section-space) !important;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #e6ede9;
  box-shadow: 0 12px 36px rgba(7, 77, 49, 0.05);
}

.site-header .header-row {
  min-height: 86px !important;
  gap: 1rem;
  padding-block: 0 !important;
}

.site-header .brand-logo-image {
  width: auto;
  height: 52px !important;
}

.site-header .header-nav {
  gap: 0.25rem 0.5rem;
}

.site-header .nav-item {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}

.site-header .nav-item.active {
  color: var(--green-800) !important;
  background: #e9f4ee !important;
}

.site-header .header-actions {
  gap: 0.5rem;
}

.site-header .login-btn,
.site-header .mobile-menu-btn {
  min-height: 48px;
  border-radius: 14px;
}

.site-header .login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1rem;
}

.site-header .mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  padding: 0;
  background: #fff;
  border: 1px solid #e1eae5;
}

.site-header .mobile-menu-btn.navbar-toggler:focus-visible {
  outline: 3px solid rgba(11, 106, 67, 0.2);
  outline-offset: 3px;
  border-color: #0b6a43;
  box-shadow: 0 0 0 4px rgba(11, 106, 67, 0.12);
}

.site-header .icon-login-svg,
.site-header .icon-menu-svg {
  width: 20px;
  height: 20px;
}

.breadcrumb-bar {
  padding: 0.95rem 0 !important;
}

.breadcrumb-bar nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

/* Final authority: desktop header controls + program card cleanup */
.site-header .mobile-menu-btn {
  display: none !important;
}

.site-header .login-btn,
.site-header .mobile-menu-btn {
  color: #161616 !important;
}

.site-header .icon-login-svg,
.site-header .icon-menu-svg {
  filter: none !important;
  opacity: 1;
}

.site-header .login-btn:hover,
.site-header .mobile-menu-btn:hover {
  color: var(--green-700) !important;
}

.site-header .login-btn:hover .icon-login-svg,
.site-header .mobile-menu-btn:hover .icon-menu-svg {
  filter: invert(28%) sepia(46%) saturate(1209%) hue-rotate(111deg) brightness(89%) contrast(92%) !important;
}

@media (max-width: 991.98px) {
  .site-header .mobile-menu-btn {
    display: inline-flex !important;
  }
}

.program-icon.green-dark,
.program-icon.green-light,
.program-icon.lime {
  background: transparent !important;
}

.programs-section .program-card-v2,
.region-programs-section .program-card-v2 {
  background: #fff !important;
  background-clip: padding-box;
  border: 1px solid #d4dde2 !important;
  border-top-width: 1px !important;
  border-radius: 14px !important;
  min-height: 248px !important;
  padding: 1.05rem 1.1rem 1rem !important;
  overflow: hidden !important;
}

.programs-section .program-card-v2.tone-light,
.region-programs-section .program-card-v2.tone-light {
  border-top-color: var(--program-tone-light) !important;
}

.programs-section .program-card-v2.tone-lime,
.region-programs-section .program-card-v2.tone-lime {
  border-top-color: var(--program-tone-lime) !important;
}

.programs-section .program-card-v2.tone-dark,
.region-programs-section .program-card-v2.tone-dark {
  border-top-color: var(--program-tone-dark) !important;
}

.program-card-v2 .program-icon,
.programs-section .program-card-v2 .program-icon,
.region-programs-section .program-card-v2 .program-icon {
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.program-card-v2 .program-icon.green-dark,
.program-card-v2 .program-icon.green-light,
.program-card-v2 .program-icon.lime,
.programs-section .program-card-v2 .program-icon.green-dark,
.programs-section .program-card-v2 .program-icon.green-light,
.programs-section .program-card-v2 .program-icon.lime,
.region-programs-section .program-card-v2 .program-icon.green-dark,
.region-programs-section .program-card-v2 .program-icon.green-light,
.region-programs-section .program-card-v2 .program-icon.lime {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

.program-card-v2 .program-icon img,
.programs-section .program-card-v2 .program-icon img,
.region-programs-section .program-card-v2 .program-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  display: block;
}

.metric-item .metric-icon,
.home-page .metrics-row .metric-item .metric-icon {
  border-radius: 0 !important;
  background: transparent !important;
}

.metric-item .metric-icon img,
.home-page .metrics-row .metric-item .metric-icon img {
  width: 100% !important;
  height: 100% !important;
}

.announcement-icon-wrap,
.headline .announcement-icon-wrap {
  margin-bottom: 1rem;
}

.announcement-icon-wrap .announcement-heading-icon {
  width: 56px !important;
  height: 56px !important;
}

.footer-policy-links .policy-sep {
  margin-inline: 0.35rem;
}

.partners-carousel {
  gap: 1rem;
}

.partners-viewport {
  padding-block: 0.15rem;
}

.partner-card {
  flex: 0 0 204px;
  height: 96px;
  padding: 1rem 1.25rem;
}

.partner-card img {
  width: auto;
  height: 64px;
  max-width: 100%;
}

.program-card-v2 h3,
.programs-section .program-card-v2 h3,
.region-programs-section .program-card-v2 h3 {
  margin-top: 3.9rem !important;
}

.programs-page-head,
.news-page-hero,
.region-page-head,
.ads-page-head {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem) !important;
}

.programs-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.programs-page-head__copy,
.news-page-hero__copy,
.region-page-head,
.ads-page-head {
  display: grid;
  gap: 0.75rem;
}

.programs-page-head__copy h1,
.news-page-hero__copy h1,
.region-page-head h1,
.ads-page-head h1,
.program-detail-card h2,
.news-detail-article h1 {
  margin: 0;
}

.programs-page-head__copy p,
.news-page-hero__copy p,
.region-page-head p,
.ads-page-head p {
  margin: 0;
  max-width: 42rem;
  color: #65756e;
}

.program-status-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-inline-start: auto;
  padding: 1rem 1.25rem;
  border: 1px solid #e2ebe6;
  border-radius: 18px;
  background: #fff;
}

.program-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.program-status-filters button {
  min-width: 68px;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
}

.program-status-filters button.is-active,
.program-status-filters button.active {
  background: var(--color-button, #0b7a46) !important;
  border-color: var(--color-button, #0b7a46) !important;
  color: #fff !important;
}

.program-card-v2 {
  min-height: 100%;
  padding: 1.25rem 1.25rem 1.1rem !important;
  border-radius: 20px !important;
}

.programs-section .program-card-v2 .program-icon,
.region-programs-section .program-card-v2 .program-icon {
  position: absolute !important;
  top: 1.25rem !important;
  right: 1.25rem !important;
  left: auto !important;
  margin: 0 !important;
}

html[dir="ltr"] .programs-section .program-card-v2 .program-icon,
html[dir="ltr"] .region-programs-section .program-card-v2 .program-icon {
  right: auto !important;
  left: 1.25rem !important;
}

.program-card-v2 .program-icon {
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.program-card-v2 .program-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.program-card-v2 .status-badge {
  top: 1.25rem !important;
  left: 1.25rem !important;
  max-width: calc(100% - 5rem);
  white-space: nowrap;
}

html[dir="ltr"] .program-card-v2 .status-badge {
  left: auto !important;
  right: 1.25rem !important;
}

.program-card-v2 h3 {
  margin-bottom: 0.75rem !important;
  padding-inline-end: 4.25rem;
  font-size: clamp(1rem, 1.2vw, 1.15rem) !important;
  line-height: 1.55 !important;
  text-align: right !important;
}

.program-card-v2 .program-desc {
  margin: 0 !important;
  padding-inline-end: 0.25rem;
  text-align: right !important;
  line-height: 1.8 !important;
}

.program-card-v2 .program-footer {
  gap: 0.75rem !important;
  margin-top: auto !important;
  padding-top: 1rem !important;
}

.program-card-v2 .beneficiaries {
  font-size: 0.8rem !important;
}

.program-card-v2 .details-link {
  gap: 0.4rem !important;
  font-size: 0.9rem !important;
}

.news-detail-shell,
.program-detail-shell,
.about-shell {
  gap: clamp(1.5rem, 4vw, 2.25rem) !important;
  align-items: flex-start;
}

.program-detail-card,
.news-share-card,
.news-related-card,
.program-info-card,
.ads-detail-panel,
.ads-list-panel,
.region-list-card,
.region-entity-card {
  border-radius: 18px !important;
}

.main-footer {
  margin-top: clamp(3rem, 6vw, 4.5rem) !important;
  padding: 3rem 0 1rem !important;
}

/* Ads page Bootstrap bridge */
.ads-page-section .ads-layout.row {
  display: flex;
  gap: 1.25rem;
  margin-inline: 0;
  align-items: flex-start !important;
  direction: rtl !important;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

html[dir="ltr"] .ads-page-section .ads-layout.row {
  direction: ltr !important;
}

.ads-page-section .ads-layout.row > [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

.ads-page-section .ads-detail-col,
.ads-page-section .ads-list-col {
  min-width: 0;
}

@media (min-width: 992px) {
  .ads-page-section .ads-detail-col {
    flex: 1 1 0;
  }

  .ads-page-section .ads-list-col {
    flex: 0 0 340px;
    width: 340px;
    max-width: 340px;
  }
}

.ads-page-section .ads-detail-panel.card,
.ads-page-section .ads-list-panel.card {
  display: flex;
  flex-direction: column;
}

.ads-page-section .ads-detail-panel > .card-body {
  padding: 2rem;
}

.ads-page-section .ads-list-panel__header.card-header {
  border-top: 0;
  border-inline: 0;
}

.ads-page-section .ads-list-items.list-group {
  flex: 1 1 auto;
  border-radius: 0;
}

.ads-page-section .ads-list-items .ads-list-item.list-group-item {
  border-width: 0 0 1px;
  border-color: #edf2ef;
  border-radius: 0;
  margin-bottom: 0;
}

.ads-page-section .ads-list-items .ads-list-item.list-group-item:last-child {
  border-bottom: 0;
}

.ads-page-section .ads-list-items .ads-list-item:is(:hover, :focus-visible),
.ads-page-section .ads-list-items .ads-list-item.active,
.ads-page-section .ads-list-items .ads-list-item.is-active {
  color: inherit;
}

.ads-page-section .ads-list-items .ads-list-item.active,
.ads-page-section .ads-list-items .ads-list-item.is-active {
  background: #f0fbf5;
  border-inline-start-color: #0b7a46;
  box-shadow: none;
}

.ads-page-section .ads-list-items .ads-list-item:focus,
.ads-page-section .naseej-pagination .naseej-pagination__btn:focus {
  box-shadow: none;
}

.ads-page-section .naseej-pagination .naseej-pagination__btn:focus-visible {
  outline: 2px solid #0b7a46;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(11, 122, 70, 0.16);
}

.ads-page-section .naseej-pagination .naseej-pagination__btn {
  padding: 0;
}

.ads-page-section .naseej-pagination .naseej-pagination__btn.is-active {
  background: #0b7a46;
  border-color: #0b7a46;
  color: #fff;
}

.ads-page-section .naseej-pagination .naseej-pagination__btn:disabled {
  opacity: 0.4;
}

@media (max-width: 767.98px) {
  .ads-page-section .ads-detail-panel > .card-body {
    padding: 1.25rem;
  }
}

.footer-bottom-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.footer-social a {
  width: 40px;
  height: 40px;
}

.footer-social-icon {
  width: 18px;
  height: 18px;
}

/* Final UI pass: program details page */
.program-detail-page {
  padding-top: 3rem !important;
  background: #f9fafb;
}

.program-detail-hero {
  background: #0b6b43 !important;
}

.program-detail-hero__inner {
  grid-template-columns: 520px minmax(0, 1fr) !important;
  min-height: 382px !important;
  height: 382px !important;
}

.program-detail-hero__art {
  min-height: 382px !important;
  height: 382px !important;
  overflow: hidden;
}

.program-detail-hero__content {
  align-items: flex-start !important;
  justify-content: center;
  padding: 3rem 3rem 3rem 2rem !important;
  text-align: right;
}

.program-detail-hero__meta {
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.program-detail-pill {
  min-width: auto;
  height: 33px;
  padding: 0.375rem 1rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

.program-detail-pill--muted {
  background: rgba(255, 255, 255, 0.2);
}

.program-detail-hero__content h1 {
  font-size: 48px !important;
  line-height: 60px !important;
  margin-bottom: 1rem;
  text-align: right;
}

.program-detail-hero__content p {
  margin-bottom: 2rem;
  max-width: none;
  font-size: 20px !important;
  line-height: 32.5px;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
}

.program-detail-hero__cta {
  align-self: flex-end;
  min-width: 126px;
  min-height: 52px;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-size: 16px;
}

.program-detail-shell {
  grid-template-columns: minmax(0, 1fr) 410px !important;
  gap: 1.5rem !important;
}

.program-detail-sidebar,
.program-detail-main {
  gap: 1.5rem;
}

.program-detail-page .news-share-card,
.program-detail-page .program-info-card,
.program-detail-page .program-detail-card {
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  box-shadow: none;
  background: #fff;
  padding: 0;
}

.program-detail-page .news-share-card > .card-body,
.program-detail-page .program-info-card > .card-body {
  padding: 1.5rem 1.5rem 1.5625rem;
}

.program-detail-page .program-detail-card > .card-body {
  padding: 2rem 2rem 2.0625rem;
}

.detail-card-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
}

.detail-card-title h3 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.detail-card-title img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

html[dir="rtl"] .detail-card-title h3 {
  order: 2;
  text-align: right;
}

html[dir="rtl"] .detail-card-title img {
  order: 1;
}

.program-detail-page .news-share-card h3 {
  margin: 0;
  color: #161616;
  font-size: 18px !important;
  line-height: 27px;
}

.program-detail-page .program-info-card h3 {
  margin: 0 0 1.5rem;
  color: #161616;
  font-size: 16px !important;
  line-height: 24px;
}

.program-detail-page .news-share-list {
  gap: 0.75rem;
}

.program-detail-page .news-share-link {
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.85rem;
  min-height: 66px;
  padding: 0 1.3125rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.program-detail-page .news-share-link span {
  font-size: 14px;
  line-height: 21px;
  color: #161616;
}

.program-detail-page .news-share-icon {
  width: 40px;
  height: 40px;
  order: -1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  flex-shrink: 0;
}

.program-detail-page .program-info-list {
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.program-detail-page .program-info-list li {
  font-size: 14px;
  line-height: 21px;
}

.program-detail-page .program-info-list span {
  color: #6b7280;
}

.program-detail-page .program-info-list strong {
  font-size: 14px;
  line-height: 21px;
  color: #161616;
}

.program-detail-page .program-info-card .btn-main {
  min-height: 52px;
  border-radius: 4px;
  padding: 0.875rem 1.25rem;
  font-size: 16px;
}

.program-detail-page .program-detail-card h2 {
  margin: 0 0 1rem;
  color: #161616;
  font-size: 28px !important;
  line-height: 42px;
}

.program-detail-page .program-detail-card p {
  color: #161616;
  font-size: 16px;
  line-height: 28px;
}

.program-detail-page .program-detail-card p + p {
  margin-top: 0.5rem;
}

.program-detail-page .program-goals-list {
  gap: 1rem;
}

.program-detail-page .program-goals-list li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding-right: 0;
  color: #161616;
  font-size: 16px;
  line-height: 24px;
}

.program-detail-page .program-goals-list li::before {
  display: none;
}

.program-detail-page .program-goals-list li img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  order: -1;
}

.program-detail-page .program-audience-grid {
  gap: 1rem;
}

.program-detail-page .program-audience-item {
  min-height: 54px;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #f8fbf9;
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 0.9rem;
  color: #223039;
  font-size: inherit;
  line-height: inherit;
}

.program-detail-page .program-audience-item > span:not(.program-audience-icon) {
  flex: 1;
  text-align: right;
}

.program-detail-page .program-audience-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.program-detail-page .program-audience-icon img {
  width: 24px;
  height: 24px;
}

/* Hero: faster/smoother slide transition — indicator shape preserved from base */
.hero-carousel .carousel-indicators button {
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-carousel.carousel-fade .carousel-item,
.hero-carousel .carousel-fade .carousel-item,
#heroCarousel.carousel-fade .carousel-item {
  transition-duration: 0.55s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Final UI pass: news details page */
.news-detail-page {
  padding-top: 2rem !important;
  background: #f9fafb;
}

.news-detail-shell {
  grid-template-columns: minmax(0, 1fr) 409px !important;
  gap: 1.3125rem !important;
}

.news-detail-sidebar {
  gap: 1.5rem;
}

.news-detail-page .news-share-card,
.news-detail-page .news-related-card,
.news-detail-page .news-detail-article {
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  box-shadow: none;
  background: #fff;
  padding: 0;
}

.news-detail-page .news-share-card > .card-body,
.news-detail-page .news-related-card > .card-body {
  padding: 1.5rem 1.5rem 1.5625rem;
}

.news-detail-page .news-share-card h3,
.news-detail-page .news-related-card h3 {
  margin: 0;
  color: #161616;
  font-size: 18px !important;
  line-height: 27px;
}

.news-detail-page .news-share-list {
  gap: 0.75rem;
}

.news-detail-page .news-share-link {
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.85rem;
  min-height: 66px;
  padding: 0 1.3125rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.news-detail-page .news-share-link span {
  font-size: 14px;
  line-height: 21px;
  color: #161616;
}

.news-detail-page .news-share-icon {
  width: 40px;
  height: 40px;
  order: -1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  flex-shrink: 0;
}

.news-detail-page .news-related-list {
  gap: 1rem;
}

.news-detail-page .news-related-item {
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

html[dir="ltr"] .news-detail-page .news-related-item {
  grid-template-columns: minmax(0, 1fr) 80px;
}

.news-detail-page .news-related-item img {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  order: -1;
}

html[dir="ltr"] .news-detail-page .news-related-item img {
  order: 2;
}

.news-detail-page .news-related-item > div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  order: 0;
}

html[dir="ltr"] .news-detail-page .news-related-item > div {
  order: 1;
  align-items: flex-start;
}

.news-detail-page .news-related-item h4 {
  margin: 0;
  color: #161616;
  font-size: 14px !important;
  line-height: 21px;
  width: 100%;
  text-align: right;
}

.news-detail-page .news-related-item time {
  color: #6b7280;
  font-size: 14px;
  line-height: 18px;
  width: 100%;
  text-align: right;
}

.news-detail-page .news-detail-article {
  border-right: 0;
  overflow: hidden;
}

.news-detail-page .news-detail-article > .card-body {
  padding: 1.25rem;
}

.news-detail-page .news-detail-media {
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
}

.news-detail-page .news-detail-image img {
  height: 400px;
  border-radius: 8px;
}

.news-detail-page .news-detail-meta {
  gap: 0.75rem;
  margin: 2rem 0 0;
  color: #6b7280;
  font-size: 14px;
  width: fit-content;
  max-width: 100%;
}

html[dir="rtl"] .news-detail-page .news-detail-meta {
  justify-content: flex-start;
  margin-inline-end: auto;
}

html[dir="ltr"] .news-detail-page .news-detail-meta {
  margin-inline-start: auto;
}

.news-detail-page .news-detail-meta span {
  gap: 0.5rem;
}

.news-detail-page .news-detail-article h1 {
  margin: 1rem 0 1.5rem;
  color: #161616;
  font-size: 36px !important;
  line-height: 45px;
}

.news-detail-page .news-detail-body {
  color: #6b7280;
  font-size: 18px;
  line-height: 29.25px;
}

.news-detail-page .news-detail-body h2 {
  margin: 1.5rem 0 0.5rem;
  color: #161616;
  font-size: 24px !important;
  line-height: 36px;
}

.news-detail-page .news-detail-body p,
.news-detail-page .news-detail-body li {
  margin-bottom: 0;
}

.news-detail-page .news-detail-body p + p {
  margin-top: 0.75rem;
}

.news-detail-page .news-detail-body ul {
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.news-detail-page .news-detail-body li {
  position: relative;
  padding-right: 1.25rem;
}

.news-detail-page .news-detail-body li::before {
  width: 10px;
  height: 10px;
  margin-left: 0;
  position: absolute;
  right: 0;
  top: 0.7rem;
  background: #10b981;
}

@media (max-width: 991.98px) {
  .site-header .header-row {
    min-height: 74px !important;
  }

  .site-header .brand-logo-image {
    height: 46px !important;
  }

  .programs-page-head {
    align-items: stretch;
  }

  .program-status-panel {
    width: 100%;
    margin-inline-start: 0;
  }

  .footer-bottom-inner {
    align-items: flex-start;
  }

  .program-detail-hero__inner {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .program-detail-hero__art,
  .program-detail-hero__content {
    height: auto !important;
    min-height: 0 !important;
  }

  .program-detail-hero__content {
    padding: 2rem 1.5rem !important;
  }

  .program-detail-shell {
    grid-template-columns: 1fr !important;
  }

  .news-detail-shell {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767.98px) {
  .section-space {
    padding-block: clamp(2.75rem, 12vw, 4rem) !important;
  }

  .site-header .brand-logo-image {
    height: 40px !important;
  }

  .program-card-v2 {
    padding: 1.1rem !important;
  }

  .program-card-v2 h3 {
    padding-inline-end: 3.85rem;
  }

  .programs-section .row.g-3,
  .programs-section .row.g-4,
  .region-programs-section .row.g-4 {
    --bs-gutter-y: 1rem;
  }

  .program-detail-hero__content h1 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
  }

  .program-detail-hero__content p {
    font-size: 1rem;
    line-height: 1.9;
  }

  .program-detail-page .program-detail-card {
    padding: 1.5rem;
  }

  .program-detail-page .program-audience-grid {
    grid-template-columns: 1fr;
  }

  .news-detail-page .news-detail-image img {
    height: 260px;
  }

  .news-detail-page .news-detail-article h1 {
    font-size: 2rem !important;
    line-height: 1.35 !important;
  }
}

/* Region Details page — entity cards match home-region-card style */
.region-details-page .region-entity-card,
.region-entities-grid .region-entity-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-height: 222px;
  padding: 1.35rem 1.35rem 1.15rem;
  border-radius: 20px;
  border: 1px solid #d4dde2;
  border-top: none;
  background: radial-gradient(circle at left bottom, rgba(195, 245, 224, 0.42), transparent 34%), #fff;
  box-shadow: 0 8px 20px rgba(8, 55, 35, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.region-details-page .region-entity-card:hover,
.region-entities-grid .region-entity-card:hover {
  transform: translateY(-4px);
  border-color: #aac8b3;
  box-shadow: 0 12px 28px rgba(8, 55, 35, 0.1);
}

.region-details-page .region-entity-card .entity-icon,
.region-entities-grid .region-entity-card .entity-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #078040;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem 0;
  flex-shrink: 0;
}

.region-details-page .region-entity-card .entity-icon img,
.region-entities-grid .region-entity-card .entity-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.region-details-page .region-entity-card h4,
.region-entities-grid .region-entity-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
  color: #152133;
  width: 100%;
}

.region-details-page .region-entity-card .entity-stats-compact,
.region-entities-grid .region-entity-card .entity-stats-compact {
  margin-top: auto;
  display: grid;
  gap: 0.45rem;
  width: 100%;
}

.region-details-page .region-entity-card .entity-stats-compact > div,
.region-entities-grid .region-entity-card .entity-stats-compact > div {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.region-details-page .region-entity-card .stat-label,
.region-entities-grid .region-entity-card .stat-label {
  color: #6f7b89;
}

.region-details-page .region-entity-card .stat-num,
.region-entities-grid .region-entity-card .stat-num {
  font-size: 1rem;
  font-weight: 700;
  color: #11804f;
}

/* Match program cards on listing pages with index card visual language */
.programs-page .programs-section .program-card-v2,
.region-programs-page .region-programs-section .program-card-v2,
.region-programs-section .program-card-v2 {
  position: relative;
  overflow: hidden;
  border-top-width: 0 !important;
  border-top-color: transparent !important;
}

.region-programs-page .region-programs-section .program-card-v2::before,
.region-programs-section .program-card-v2::before {
  content: "" !important;
  position: absolute;
  top: -1px !important;
  left: 0 !important;
  right: 0 !important;
  height: 9px !important;
  border-radius: 0 !important;
  background: var(--program-card-top-strip, #4d8839);
  pointer-events: none;
}

.region-programs-section .program-card-v2.tone-light {
  --program-card-top-strip: var(--program-tone-light);
}

.region-programs-section .program-card-v2.tone-lime {
  --program-card-top-strip: var(--program-tone-lime);
}

.region-programs-section .program-card-v2.tone-dark {
  --program-card-top-strip: var(--program-tone-dark);
}

.programs-page .program-card-v2 .status-badge,
.region-programs-page .program-card-v2 .status-badge,
.region-programs-section .program-card-v2 .status-badge {
  border-radius: 4px !important;
}

/* Requested rollback and visual alignment */
.program-detail-page {
  padding-top: 1.6rem !important;
  background: transparent !important;
}

.news-detail-page {
  padding-top: 0.8rem !important;
  background: transparent !important;
}

.program-detail-hero__inner,
.program-detail-hero__art {
  height: 430px !important;
  min-height: 430px !important;
  max-height: 430px !important;
}

@media (max-width: 991.98px) {
  .program-detail-hero__inner,
  .program-detail-hero__art {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
  }
}

@media (max-width: 767.98px) {
  .program-detail-hero__inner,
  .program-detail-hero__art {
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
  }
}

.program-status-panel {
  display: grid !important;
  gap: 0.7rem !important;
  justify-items: start !important;
  margin-inline-start: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.program-status-panel__label {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #1d2330 !important;
}

.program-status-filters {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.program-status-filters button,
.program-status-filters .nav-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 58px !important;
  height: 38px !important;
  padding: 0 0.9rem !important;
  border: 1px solid #d8e1dd !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #1f2d28 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.program-status-filters button.is-active,
.program-status-filters button.active,
.program-status-filters .nav-link.is-active,
.program-status-filters .nav-link.active {
  background: #0b7a46 !important;
  border-color: #0b7a46 !important;
  color: #fff !important;
}

.regions-page-grid .region-list-card,
.region-entities-grid .region-entity-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 222px !important;
  padding: 1.35rem 1.35rem 1.15rem !important;
  border: 1px solid #d4dde2 !important;
  border-top: 1px solid #d4dde2 !important;
  border-radius: 20px !important;
  background: radial-gradient(circle at right center, rgba(195, 245, 224, 0.42), transparent 38%), #fff !important;
  color: inherit !important;
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.regions-page-grid .region-list-card:hover,
.region-entities-grid .region-entity-card:hover {
  transform: translateY(-4px);
  border-color: #aac8b3 !important;
  box-shadow: 0 12px 28px rgba(8, 55, 35, 0.08) !important;
}

.regions-page-grid .region-list-card .region-icon,
.region-entities-grid .region-entity-card .entity-icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 14px !important;
  background: #078040 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0 1rem auto !important;
  flex-shrink: 0;
}

.region-entities-grid .region-entity-card .entity-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
}

.region-entities-grid .region-entity-card .entity-icon img {
  width: 48px !important;
  height: 48px !important;
  display: block !important;
}

.regions-page-grid .region-list-card h4,
.region-entities-grid .region-entity-card h4 {
  margin: 0 0 0.8rem !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #152133 !important;
}

.regions-page-grid .region-list-card .region-stats-compact,
.region-entities-grid .region-entity-card .entity-stats-compact {
  margin-top: auto;
  display: grid;
  gap: 0.45rem;
  width: 100%;
}

.regions-page-grid .region-list-card .region-stats-compact > div,
.region-entities-grid .region-entity-card .entity-stats-compact > div {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 18px;
}

.regions-page-grid .region-list-card .stat-label,
.region-entities-grid .region-entity-card .stat-label {
  font-size: 18px !important;
  color: #6f7b89 !important;
}

.regions-page-grid .region-list-card .stat-num,
.region-entities-grid .region-entity-card .stat-num {
  color: #11804f !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
}

.news-detail-page .news-related-card,
.news-detail-page .news-related-list,
.news-detail-page .news-related-item,
.news-detail-page .news-related-item > div {
  direction: rtl;
  text-align: right;
}

.news-detail-page .news-related-item > div {
  width: 100%;
}

.news-detail-page .news-related-item time {
  display: block;
  width: 100%;
  text-align: right;
}

.news-detail-page .news-detail-body ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.news-detail-page .news-detail-body li {
  padding-right: 0;
}

.news-detail-page .news-detail-body li::before {
  display: none;
}

body.home-page .programs-section .program-card-v2,
body.programs-page .programs-section .program-card-v2 {
  border-top-width: 0 !important;
  border-top-color: transparent !important;
  overflow: hidden;
}

body.home-page .programs-section .program-card-v2::before,
body.programs-page .programs-section .program-card-v2::before {
  content: "" !important;
  top: -1px !important;
  left: 0 !important;
  right: 0 !important;
  height: 9px !important;
  border-radius: 0 !important;
}

body.home-page .programs-section .program-card-v2 h3,
body.programs-page .programs-section .program-card-v2 h3 {
  padding-top: 6px !important;
}

main > .breadcrumb-bar + .programs-section .program-card-v2 {
  position: relative;
  overflow: hidden;
  border-top-width: 0 !important;
  border-top-color: transparent !important;
}

main > .breadcrumb-bar + .programs-section .program-card-v2::before {
  content: "" !important;
  position: absolute;
  top: -1px !important;
  left: 0 !important;
  right: 0 !important;
  height: 9px !important;
  border-radius: 0 !important;
  background: var(--program-card-top-strip, #4d8839);
  pointer-events: none;
}

main > .breadcrumb-bar + .programs-section .program-card-v2 h3 {
  padding-top: 6px !important;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .program-detail-hero .container {
    max-width: 960px !important;
    padding-inline: calc(var(--bs-gutter-x, 1.5rem) * 0.5) !important;
  }
}

@media (min-width: 1200px) {
  .program-detail-hero .container {
    max-width: calc(100vw - 160px) !important;
    padding-inline: calc(var(--bs-gutter-x, 1.5rem) * 0.5) !important;
  }
}

body.home-page .metrics-area.section-space {
  padding-top: 90px !important;
}

body.home-page .home-regions-section.section-space {
  padding-top: 85px !important;
  padding-bottom: 0 !important;
}

body.home-page .home-news-section.section-space {
  padding-top: 48px !important;
}

body.home-page .partners-area.section-space {
  padding-top: 90px !important;
  padding-bottom: 48px !important;
}

body.home-page .main-footer {
  margin-top: 0 !important;
}

/* Program details hero stability fixes */
.program-detail-hero {
  margin-bottom: 48px !important;
  background: #074d31 !important;
}

.program-detail-page.section-space {
  padding-top: 0 !important;
}

.program-detail-hero .container {
  max-width: 100% !important;
  padding-inline: 0 !important;
}

.program-detail-hero__inner {
  position: relative !important;
  display: block !important;
  min-height: clamp(340px, 38vw, 430px) !important;
  height: clamp(340px, 38vw, 430px) !important;
  max-height: none !important;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 77, 49, 0.2) 0%, rgba(7, 77, 49, 0.4) 32%, rgba(7, 77, 49, 0.76) 66%, rgba(7, 77, 49, 0.92) 100%),
    url("../images/Programs Details.png") center / cover no-repeat;
}

.program-detail-hero__art {
  display: none !important;
}

.program-detail-hero__content {
  position: absolute !important;
  top: 0;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 0;
  left: auto;
  width: min(100% - 2rem, 560px) !important;
  max-width: 100% !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start !important;
  padding: clamp(1.75rem, 3vw, 3rem) 0 !important;
  color: #ffffff;
  text-align: right;
  z-index: 1;
}

.program-detail-hero__meta {
  justify-content: flex-start !important;
}

.program-detail-hero__content h1 {
  width: 100%;
  margin-bottom: 0.75rem !important;
  white-space: normal !important;
  line-height: 1.28 !important;
}

.program-detail-hero__content p {
  width: 100%;
  margin-bottom: 1rem !important;
}

.program-detail-hero__cta {
  align-self: flex-start !important;
}

@media (max-width: 991.98px) {
  .program-detail-hero__inner {
    min-height: 360px !important;
    height: 360px !important;
  }

  .program-detail-hero__content {
    right: 1.25rem;
    left: auto;
    width: min(72%, 420px) !important;
    max-width: calc(100% - 2.5rem) !important;
    justify-content: flex-end;
    padding: 1.85rem 0 !important;
  }

  .program-detail-hero__content h1 {
    font-size: clamp(1.7rem, 4.5vw, 2.35rem) !important;
  }
}

@media (max-width: 767.98px) {
  .program-detail-hero {
    margin-bottom: 48px !important;
  }

  .program-detail-hero__inner {
    min-height: 320px !important;
    height: 320px !important;
  }

  .program-detail-hero__content {
    right: 1rem;
    left: auto;
    width: min(78%, 300px) !important;
    max-width: calc(100% - 2rem) !important;
    padding: 1.4rem 0 !important;
  }

  .program-detail-hero__content h1 {
    font-size: clamp(1.4rem, 5.4vw, 1.9rem) !important;
    margin-bottom: 0.5rem !important;
  }

  .program-detail-hero__content p {
    font-size: 0.95rem !important;
    line-height: 1.75 !important;
  }

  .program-detail-pill {
    height: 30px;
    padding-inline: 0.75rem;
    font-size: 12px;
  }

  .program-detail-hero__cta {
    min-height: 46px;
    padding: 0.72rem 1.2rem !important;
    font-size: 15px;
  }
}

@media (max-width: 479.98px) {
  .program-detail-hero__inner {
    min-height: 300px !important;
    height: 300px !important;
  }

  .program-detail-hero__content {
    width: min(80%, 256px) !important;
    max-width: calc(100% - 2rem) !important;
    padding: 1.15rem 0 !important;
  }

  .program-detail-hero__content h1 {
    font-size: clamp(1.2rem, 6.4vw, 1.5rem) !important;
  }
}

/* Detail pages Bootstrap 5 structural bridge */
.news-detail-shell.row,
.program-detail-shell.row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.news-detail-shell.row {
  --bs-gutter-x: 1.3125rem;
  --bs-gutter-y: 1.5rem;
}

.program-detail-shell.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.news-detail-shell.row > .news-detail-sidebar,
.news-detail-shell.row > .news-detail-main,
.program-detail-shell.row > .program-detail-sidebar,
.program-detail-shell.row > .program-detail-main {
  min-width: 0;
}

.news-detail-shell.row > .news-detail-main,
.program-detail-shell.row > .program-detail-main {
  display: grid;
}

.about-shell .news-detail-article.card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.about-detail-page .news-share-link:focus-visible,
.news-detail-page .news-share-link:focus-visible,
.program-detail-page .news-share-link:focus-visible {
  outline: 2px solid #0b7a46;
  outline-offset: 3px;
  border-color: #0b7a46;
  box-shadow: 0 0 0 4px rgba(11, 122, 70, 0.16);
  transform: none;
}

.about-detail-page .news-share-link:focus:not(:focus-visible),
.news-detail-page .news-share-link:focus:not(:focus-visible),
.program-detail-page .news-share-link:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* Regions pages Bootstrap 5 structural bridge */
.regions-page-grid--bootstrap.row,
.region-entities-grid--bootstrap.row {
  display: flex;
  flex-wrap: wrap;
}

.regions-page-grid--bootstrap.row > [class*="col-"],
.region-entities-grid--bootstrap.row > [class*="col-"] {
  min-width: 0;
}

.region-entities-grid--bootstrap.row > [class*="col-"] {
  flex: 0 0 25%;
  width: 25%;
  max-width: 25%;
}

@media (max-width: 1199.98px) {
  .region-entities-grid--bootstrap.row > [class*="col-"] {
    flex: 0 0 33.333333%;
    width: 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 992px) {
  .region-entities-grid--bootstrap.row > [class*="col-"] {
    flex: 0 0 33.333333%;
    width: 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 1200px) {
  .region-entities-grid--bootstrap.row > [class*="col-"] {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
  }
}

@media (max-width: 991.98px) {
  .region-entities-grid--bootstrap.row > [class*="col-"] {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
  }
}

@media (max-width: 767.98px) {
  .region-entities-grid--bootstrap.row > [class*="col-"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  html[dir="rtl"] .regions-page-grid > .regions-page-banner {
    order: 1 !important;
  }

  html[dir="rtl"] .regions-page-grid > .region-list-card--featured {
    order: 2 !important;
  }

  html[dir="rtl"] .regions-page-grid > .region-list-card:not(.region-list-card--featured) {
    order: 3 !important;
  }
}

/* Regions listing: match home regions distribution and keep banner before Makkah on all widths */
.regions-page-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  direction: rtl;
}

.regions-page-grid > * {
  direction: rtl;
}

.regions-page-grid > .regions-page-banner {
  order: 1 !important;
  grid-column: span 3 !important;
}

.regions-page-grid > .region-list-card--featured {
  order: 2 !important;
}

.regions-page-grid > .region-list-card:not(.region-list-card--featured) {
  order: 3 !important;
}

/* Region details: use the same card grid system as regions.html */
.region-details-page .region-entities-grid--bootstrap.row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  margin: 0 !important;
  direction: rtl;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.region-details-page .region-entities-grid--bootstrap.row > [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
}

@media (max-width: 991.98px) {
  .regions-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .regions-page-grid > .regions-page-banner {
    grid-column: span 1 !important;
  }

  .region-details-page .region-entities-grid--bootstrap.row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767.98px) {
  .regions-page-grid,
  .region-details-page .region-entities-grid--bootstrap.row {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 992px) {
  .news-detail-shell.row > .news-detail-main {
    flex: 1 0 0%;
    width: 0;
  }

  .news-detail-shell.row > .news-detail-sidebar {
    flex: 0 0 409px;
    width: 409px;
    max-width: 409px;
  }

  .program-detail-shell.row > .program-detail-main {
    flex: 1 0 0%;
    width: 0;
  }

  .program-detail-shell.row > .program-detail-sidebar {
    flex: 0 0 410px;
    width: 410px;
    max-width: 410px;
  }
}

@media (max-width: 991.98px) {
  .news-detail-shell.row > .news-detail-sidebar,
  .news-detail-shell.row > .news-detail-main,
  .program-detail-shell.row > .program-detail-sidebar,
  .program-detail-shell.row > .program-detail-main {
    width: 100%;
    max-width: 100%;
  }
}
