/*
Theme Name: RL4G Free
Description: Red Line for Gulf NGO website
Author: Red Line for Gulf
Version: 1.0.0
Template: twentytwentyfive
License: GPL-2.0-or-later
Text Domain: rl4g-free
*/

/* RL4G website styling */
:root {
  --rl4g-red: #FF0000;
  --rl4g-dark: #202932;
  --rl4g-light: #F5F6F7;
}

body {
  line-height: 1.7;
}

.wp-block-site-logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.wp-block-navigation a {
  font-weight: 600;
  text-decoration: none;
}

.wp-block-navigation a:hover {
  color: var(--rl4g-red);
}

.home main .wp-block-heading {
  color: var(--rl4g-dark);
}

.home .wp-block-post-template {
  gap: 24px;
}

.home .wp-block-post {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  padding: 16px;
}

.home .wp-block-post-featured-image img {
  width: 100%;
  border-radius: 6px;
}

.home .wp-block-post-title a {
  color: var(--rl4g-dark);
  text-decoration: none;
}

.home .wp-block-post-title a:hover {
  color: var(--rl4g-red);
}

@media (max-width: 781px) {
  .home .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .wp-block-site-logo img {
    width: 120px;
  }
}

/* DR4G Project archive */
.category-dr4g-project .wp-block-post-template {
  gap: 24px;
}

.category-dr4g-project .wp-block-post {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  overflow: hidden;
}

.category-dr4g-project .wp-block-post-featured-image img {
  width: 100%;
  border-radius: 6px;
}

.category-dr4g-project .wp-block-post-title a {
  color: var(--rl4g-dark);
  text-decoration: none;
}

.category-dr4g-project .wp-block-post-title a:hover {
  color: var(--rl4g-red);
}

@media (max-width: 781px) {
  .category-dr4g-project .wp-block-post-template {
    grid-template-columns: 1fr;
  }
}

/* Individual articles */
.single-post main {
  padding-top: 40px;
  padding-bottom: 60px;
}

.single-post .wp-block-post-title {
  line-height: 1.3;
  color: var(--rl4g-dark);
}

.single-post .wp-block-post-featured-image img {
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
}

.single-post .wp-block-post-content {
  font-size: 1.1rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.single-post .wp-block-post-content img {
  max-width: 100%;
  height: auto;
}

/* Arabic RTL support */
body.rtl {
  direction: rtl;
}

body.rtl .wp-block-post-content {
  text-align: start;
}

body.rtl .wp-block-navigation {
  direction: rtl;
}

@media (max-width: 781px) {
  .single-post main {
    padding: 20px 16px 40px;
  }

  .single-post .wp-block-post-content {
    font-size: 1rem;
  }
}

/* Arabic / English language switcher */
.rl4g-language-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.85rem;
}

.rl4g-language-switcher a {
  color: var(--rl4g-dark);
  text-decoration: none;
}

.rl4g-language-switcher a:hover {
  color: var(--rl4g-red);
}

.rl4g-language-switcher a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
}

/* RL4G DESIGN V2 START */

:root {
  --rl4g-red: #FF0000;
  --rl4g-dark: #202932;
  --rl4g-light: #F5F6F7;
  --rl4g-border: #E3E6E9;
}

body {
  color: var(--rl4g-dark);
  background: #FFFFFF;
  line-height: 1.75;
}

.wp-site-blocks > header {
  background: #FFFFFF;
}

.wp-block-site-logo img {
  width: min(210px, 100%);
  height: auto;
  max-height: 110px;
  object-fit: contain;
}

.wp-block-navigation a {
  font-weight: 650;
  transition: color .2s ease;
}

.rl4g-language-switcher a {
  padding: 5px 8px;
  border-radius: 4px;
}

.rl4g-language-switcher a[aria-current="page"] {
  color: var(--rl4g-red);
  text-underline-offset: 5px;
}

.wp-block-post-template .wp-block-post {
  border: 1px solid var(--rl4g-border);
  border-radius: 8px;
  background: #FFFFFF;
  overflow: hidden;
}

.wp-block-post-title {
  line-height: 1.35;
}

.wp-block-post-title a:hover {
  color: var(--rl4g-red);
}

.wp-block-post-featured-image img {
  object-fit: cover;
}

body.rtl {
  direction: rtl;
  text-align: start;
}

body.rtl .wp-block-navigation,
body.rtl .wp-block-post-template {
  direction: rtl;
}

@media (max-width: 781px) {
  .wp-block-site-logo img {
    width: 155px;
    max-height: 90px;
  }

  .wp-block-post-template {
    grid-template-columns: 1fr;
  }
}

/* RL4G DESIGN V2 END */

:root { --rl4g-logo-grey: #C4C4C0; }


/* RL4G CUSTOM FOOTER START — consolidated */
.rl4g-footer {
  background: #202932;
  color: #fff;
  border-top: 4px solid #f00;
  padding: 48px 24px 28px;
}

.rl4g-footer .rl4g-footer-inner {
  max-width: 1200px;
  margin-inline: auto;
}

.rl4g-footer .wp-block-site-title {
  color: #fff;
  font-weight: 750;
  margin-bottom: 12px;
}

.rl4g-footer p {
  color: #e5e7eb;
  line-height: 1.8;
}

.rl4g-footer-en,
.rl4g-footer-ar {
  max-width: 760px;
}

html[lang^="ar"] .rl4g-footer-en,
html[lang^="ar"] .rl4g-footer-links-en,
body.lang-ar .rl4g-footer-en,
body.lang-ar .rl4g-footer-links-en,
html[lang^="en"] .rl4g-footer-ar,
html[lang^="en"] .rl4g-footer-links-ar,
body.lang-en .rl4g-footer-ar,
body.lang-en .rl4g-footer-links-ar {
  display: none;
}

html[lang^="ar"] .rl4g-footer {
  direction: rtl;
  text-align: start;
}

html[lang^="en"] .rl4g-footer {
  direction: ltr;
  text-align: start;
}

.rl4g-footer .rl4g-footer-links {
  margin-block: 24px;
}

.rl4g-footer-links a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  margin-inline-end: 20px;
  padding-block: 5px;
  font-weight: 600;
}

.rl4g-footer-links a:hover,
.rl4g-footer-links a:focus-visible {
  color: #ff7777;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rl4g-footer .rl4g-footer-separator {
  border-color: #c4c4c0;
  opacity: .35;
  margin-block: 28px 18px;
}

.rl4g-footer .rl4g-footer-bottom {
  font-size: .85rem;
  color: #c4c4c0;
}

@media (max-width: 781px) {
  .rl4g-footer {
    padding: 34px 18px 24px;
  }

  .rl4g-footer .rl4g-footer-links {
    line-height: 2.2;
  }

  .rl4g-footer-links a {
    margin-inline-end: 14px;
  }
}
/* RL4G CUSTOM FOOTER END */

/* RL4G LAYOUT V3 START */

/* Brand */
:root {
  --rl4g-red: #FF0000;
  --rl4g-dark: #202932;
  --rl4g-grey: #C4C4C0;
  --rl4g-light: #F5F6F7;
}

/* Header */
.wp-site-blocks > header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.wp-site-blocks > header .wp-block-site-logo img {
  width: 210px;
  max-width: 100%;
  height: auto;
  max-height: 115px;
  object-fit: contain;
}

.wp-block-navigation {
  font-size: .95rem;
}

.wp-block-navigation a {
  color: var(--rl4g-dark);
  font-weight: 650;
  text-decoration: none;
}

.wp-block-navigation a:hover,
.wp-block-navigation a:focus-visible {
  color: var(--rl4g-red);
}

/* Language switcher */
.rl4g-language-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rl4g-language-switcher a {
  padding: 5px 10px;
  border-radius: 5px;
}

.rl4g-language-switcher a[aria-current="page"] {
  color: #FF0000;
  font-weight: 700;
  text-underline-offset: 5px;
}

/* Homepage */
.home main {
  padding-inline: 20px;
}

.home main h1 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.25;
}

.home main h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -.02em;
}

.home .wp-block-post-template {
  gap: 26px;
}

.home .wp-block-post {
  border: 1px solid #e6e8eb;
  background: #fff;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,.04);
  transition: box-shadow .2s ease;
}

.home .wp-block-post:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.09);
}

.home .wp-block-post-title {
  font-size: 1.12rem;
  line-height: 1.5;
}

.home .wp-block-post-date {
  color: #69717a;
  font-size: .8rem;
}



/* RTL */
html[lang^="ar"] main {
  direction: rtl;
  text-align: start;
}

html[lang^="ar"] .wp-block-post {
  text-align: right;
}

html[lang^="en"] main {
  direction: ltr;
  text-align: start;
}

/* Mobile */
@media (max-width: 781px) {
  .wp-site-blocks > header .wp-block-site-logo img {
    width: 150px;
    max-height: 90px;
  }

  .home main {
    padding-inline: 14px;
  }

  .home .wp-block-post-template {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* RL4G LAYOUT V3 END */


/* RL4G LAYOUT V4 START */

/* Compact, balanced header */
.wp-site-blocks > header {
  background: #fff;
}

.wp-site-blocks > header > .wp-block-group:first-child {
  font-size: .78rem;
}

.wp-site-blocks > header > .wp-block-group:nth-child(2) {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.wp-site-blocks > header .wp-block-navigation {
  gap: 20px;
  font-size: .92rem;
}

.wp-site-blocks > header .wp-block-site-logo img {
  width: 190px;
  max-height: 105px;
  object-fit: contain;
}

/* Clear bilingual homepage introduction */
.home main > .wp-block-group:first-child {
  border-inline-start: 4px solid #FF0000;
}

.home main h1 {
  line-height: 1.3;
  font-weight: 750;
}

.home .rl4g-intro-ar,
.home .rl4g-intro-en {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #48515a;
}

html[lang^="ar"] .rl4g-intro-en,
html[lang^="en"] .rl4g-intro-ar {
  display: none;
}

/* Editorial article cards */
.home .wp-block-post {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.home .wp-block-post-featured-image {
  margin: 0;
}

.home .wp-block-post-featured-image img {
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.home .wp-block-post-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}

.home .wp-block-post-excerpt {
  font-size: .94rem;
  line-height: 1.8;
}

.home .wp-block-post-date {
  color: #737b84;
}

.home .wp-block-query {
  margin-block: 24px 42px;
}

/* Arabic reading alignment */
html[lang^="ar"] .home .wp-block-post {
  text-align: right;
}

html[lang^="en"] .home .wp-block-post {
  text-align: left;
}

/* Responsive */
@media (max-width: 781px) {
  .wp-site-blocks > header .wp-block-site-logo img {
    width: 150px;
  }

  .wp-site-blocks > header .wp-block-navigation {
    gap: 12px;
  }

  .home .wp-block-post {
    padding: 14px;
  }
}

/* RL4G LAYOUT V4 END */

/* RL4G HEADER V6 START */

.rl4g-header-v6 {
  background: #fff;
  border-bottom: 3px solid #FF0000;
  padding: 12px 24px;
}

.rl4g-header-v6 .rl4g-header-inner {
  max-width: 1200px;
  margin-inline: auto;
  gap: 24px;
}

.rl4g-header-v6 .wp-block-site-logo {
  margin: 0;
  flex-shrink: 0;
}

.rl4g-header-v6 .wp-block-site-logo img {
  width: 190px;
  max-height: 110px;
  object-fit: contain;
}

.rl4g-header-controls {
  gap: 24px;
}

.rl4g-header-v6 .wp-block-navigation {
  gap: 20px;
}

.rl4g-header-v6 .wp-block-navigation a {
  font-size: .93rem;
  font-weight: 650;
}

.rl4g-header-v6 .rl4g-language-switcher {
  gap: 7px;
  font-size: .85rem;
}

.rl4g-header-v6 .rl4g-language-switcher a {
  padding: 4px 6px;
}

.home main h1 {
  font-size: clamp(1.6rem, 2.5vw, 2.35rem);
}

html[lang^="ar"] .rl4g-header-inner {
  direction: rtl;
}

html[lang^="en"] .rl4g-header-inner {
  direction: ltr;
}

@media (max-width: 781px) {
  .rl4g-header-v6 {
    padding: 12px 16px;
  }

  .rl4g-header-v6 .wp-block-site-logo img {
    width: 145px;
  }

  .rl4g-header-controls {
    gap: 12px;
  }

  .rl4g-header-v6 .wp-block-navigation {
    gap: 10px;
  }
}

/* RL4G HEADER V6 END */

/* RL4G ARTICLE V7 START */

/* Homepage and archive cards */
.home .wp-block-post-template,
body[class*="category-dr4g-project"] .wp-block-post-template {
  gap: 24px;
  align-items: stretch;
}

.home .wp-block-post,
body[class*="category-dr4g-project"] .wp-block-post {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  min-width: 0;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  background: #fff;
}

.home .wp-block-post-featured-image,
body[class*="category-dr4g-project"] .wp-block-post-featured-image {
  margin: 0;
  width: 100%;
}

.home .wp-block-post-featured-image img,
body[class*="category-dr4g-project"] .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 5px;
}

.home .wp-block-post-title,
body[class*="category-dr4g-project"] .wp-block-post-title {
  font-size: 1.1rem;
  line-height: 1.55;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.home .wp-block-post-date,
body[class*="category-dr4g-project"] .wp-block-post-date {
  color: #67717c;
  font-size: .82rem;
}

.home .wp-block-post-excerpt,
body[class*="category-dr4g-project"] .wp-block-post-excerpt {
  line-height: 1.8;
  font-size: .95rem;
  overflow-wrap: anywhere;
}

.home .wp-block-post-excerpt__more-link {
  color: #b00000;
  font-weight: 600;
  text-underline-offset: 4px;
}

/* Single-article reading */
.single-post main {
  max-width: 920px;
  margin-inline: auto;
  padding: 38px 22px 65px;
}

.single-post .wp-block-post-title {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.35;
  font-weight: 750;
}

.single-post .wp-block-post-content {
  font-size: 1.08rem;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.single-post .wp-block-post-content p {
  margin-bottom: 1.35em;
}

.single-post .wp-block-post-content img {
  max-width: 100%;
  height: auto;
}

.single-post .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

/* Arabic */
html[lang^="ar"] .wp-block-post {
  direction: rtl;
  text-align: right;
}

html[lang^="ar"] .single-post .wp-block-post-content {
  direction: rtl;
  text-align: right;
  line-height: 2.05;
}

/* English */
html[lang^="en"] .single-post .wp-block-post-content {
  direction: ltr;
  text-align: left;
}

/* Tablet and mobile */
@media (max-width: 900px) {
  .home .wp-block-post-template {
    gap: 16px;
  }
}

@media (max-width: 781px) {
  .home .wp-block-post-template,
  body[class*="category-dr4g-project"] .wp-block-post-template {
    grid-template-columns: minmax(0, 1fr);
  }

  .single-post main {
    padding: 22px 16px 42px;
  }

  .single-post .wp-block-post-content {
    font-size: 1rem;
  }
}

/* RL4G ARTICLE V7 END */







/* RL4G CONSOLIDATED ARTICLE CARDS */

/* Preserve archive and homepage card grids. */
.home .wp-block-post-template,
body[class*="category-dr4g-project"] .wp-block-post-template {
    column-gap: 18px;
    row-gap: 22px;
}

.home .wp-block-post-template > li,
body[class*="category-dr4g-project"] .wp-block-post-template > li {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.home .wp-block-post-featured-image,
body[class*="category-dr4g-project"] .wp-block-post-featured-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin: 0;
    background: #f1f2f3;
}

.home .wp-block-post-featured-image img,
body[class*="category-dr4g-project"] .wp-block-post-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home .wp-block-post-title,
body[class*="category-dr4g-project"] .wp-block-post-title {
    min-height: 2.9em;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.home .wp-block-post-excerpt,
body[class*="category-dr4g-project"] .wp-block-post-excerpt {
    margin-top: 12px;
    line-height: 1.6;
}

.home .wp-block-post-date,
body[class*="category-dr4g-project"] .wp-block-post-date {
    color: #7a828b;
}

html[lang^="ar"] .wp-block-post-excerpt__more-link {
    direction: rtl;
    text-align: right;
}

/* Homepage editorial cards, excluding featured investigations. */
.home .rl4g-news-query .wp-block-post-template > li,
.home .rl4g-project-query .wp-block-post-template > li {
    border: 1px solid #e4e7eb;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 9px rgba(20,30,40,.045);
    padding: 0 0 15px;
}

.home .rl4g-news-query .wp-block-post-title,
.home .rl4g-project-query .wp-block-post-title {
    font-size: clamp(.96rem,1.2vw,1.08rem);
    line-height: 1.5;
    margin: 14px 15px 6px;
}

.home .rl4g-news-query .wp-block-post-date,
.home .rl4g-project-query .wp-block-post-date {
    font-size: .76rem;
    margin-inline: 15px;
}

.home .rl4g-news-query .wp-block-post-excerpt,
.home .rl4g-project-query .wp-block-post-excerpt {
    font-size: .88rem;
    line-height: 1.65;
    margin: 12px 15px 0;
}

.home .rl4g-news-query .wp-block-post-title a,
.home .rl4g-project-query .wp-block-post-title a {
    text-decoration: none;
}

.home .rl4g-news-query .wp-block-post-title a:hover,
.home .rl4g-project-query .wp-block-post-title a:hover {
    color: #A52B35;
}

.home .rl4g-news-query .wp-block-post-excerpt__more-link,
.home .rl4g-project-query .wp-block-post-excerpt__more-link {
    color: #A52B35;
    font-weight: 650;
}

/* RL4G DR4G COMPACT LIST V1 */
.home .rl4g-dr4g-research {
    background: #f5f6f7;
    border-radius: 8px;
    padding: 30px;
    margin-block: 30px;
}

.home .rl4g-dr4g-research .rl4g-dr4g-banner {
    margin: 0 0 23px;
    padding: 0;
    background: transparent;
    color: #202932;
    border-radius: 0;
}

.home .rl4g-dr4g-research .rl4g-dr4g-banner h2 {
    display: inline-block;
    background: #a52b35;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    padding: 8px 13px;
    border-radius: 5px;
    margin: 0 0 12px;
}

.home .rl4g-dr4g-research .rl4g-dr4g-banner p {
    color: #46505b;
    max-width: 800px;
    line-height: 1.65;
    margin-block: 8px;
}

.home .rl4g-dr4g-research .rl4g-dr4g-banner a {
    display: inline-block;
    background: #a52b35;
    color: #fff;
    border-radius: 4px;
    padding: 9px 15px;
    text-decoration: none;
    font-weight: 650;
}

html[lang^="ar"] .rl4g-dr4g-banner-en,
html[lang^="en"] .rl4g-dr4g-banner-ar {
    display: none;
}

.home .rl4g-dr4g-research .rl4g-project-query
.wp-block-post-template {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 8px;
    padding: 0;
}

.home .rl4g-dr4g-research .rl4g-project-query
.wp-block-post-template > li {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    min-height: 0;
    padding: 13px 16px;
    border: 1px solid #e4e7eb;
    border-radius: 5px;
    background: #fff;
    box-shadow: none;
}

.home .rl4g-dr4g-research .rl4g-project-query
.wp-block-post-featured-image,
.home .rl4g-dr4g-research .rl4g-project-query
.wp-block-post-excerpt {
    display: none;
}

.home .rl4g-dr4g-research .rl4g-project-query
.wp-block-post-title {
    flex: 1 1 260px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    font-size: .94rem;
    line-height: 1.45;
}

.home .rl4g-dr4g-research .rl4g-project-query
.wp-block-post-date {
    flex: 0 0 auto;
    margin: 0;
    color: #7a828b;
    font-size: .75rem;
}

html[lang^="ar"] .rl4g-dr4g-research {
    direction: rtl;
    text-align: start;
}


.home .rl4g-dr4g-research .rl4g-dr4g-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 18px;
}

.home .rl4g-dr4g-actions a {
    display: inline-block;
    background: #a52b35;
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 650;
    text-decoration: none;
}

.home .rl4g-dr4g-actions a:hover,
.home .rl4g-dr4g-actions a:focus-visible {
    background: #85212b;
}

html[lang^="ar"] .rl4g-dr4g-actions .rl4g-dr4g-banner-en,
html[lang^="en"] .rl4g-dr4g-actions .rl4g-dr4g-banner-ar {
    display: none;
}

/* END RL4G DR4G COMPACT LIST V1 */

@media (max-width: 700px) {
    /* RL4G MOBILE NEWS REFINEMENT */
    .home .rl4g-news-query .wp-block-post-template {
        row-gap: 14px;
    }

    .home .rl4g-news-query .wp-block-post-template > li {
        padding-bottom: 12px;
    }

    .home .rl4g-news-query .wp-block-post-title {
        font-size: 1rem;
        line-height: 1.45;
        min-height: 0;
        margin: 12px 13px 6px;
    }

    .home .rl4g-news-query .wp-block-post-date {
        font-size: .74rem;
        margin-inline: 13px;
    }

    .home .rl4g-news-query .wp-block-post-excerpt {
        font-size: .85rem;
        line-height: 1.55;
        margin: 9px 13px 0;
    }

    .home .rl4g-news-query
    .wp-block-post-excerpt__excerpt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    /* END RL4G MOBILE NEWS REFINEMENT */

    .home .wp-block-post-template.is-layout-grid,
    body[class*="category-dr4g-project"] .wp-block-post-template.is-layout-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .home .rl4g-dr4g-research {
        padding: 22px 15px;
    }

    .home .rl4g-dr4g-research .rl4g-project-query
    .wp-block-post-template > li {
        padding: 12px;
    }
}


/* Research and mission panels — homepage only */
.home .rl4g-home-panels {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
    margin-block: 30px;
}

.home .rl4g-research-panel,
.home .rl4g-mission-panel {
    padding: 28px;
    border-radius: 8px;
    min-width: 0;
}

.home .rl4g-research-panel {
    border: 1px solid #e4e7eb;
    background: #f5f6f7;
}

.home .rl4g-mission-panel {
    background: #202932;
    color: #fff;
}

.home .rl4g-home-panels h2 {
    font-size: clamp(1.2rem,2vw,1.8rem);
    line-height: 1.35;
    margin: 0 0 14px;
}

.home .rl4g-mission-panel h2,
.home .rl4g-mission-panel p {
    color: #fff;
}

.home .rl4g-home-panels p {
    line-height: 1.65;
}

.home .rl4g-panel-links a {
    display: inline-block;
    padding: 7px 11px;
    margin: 4px;
    border: 1px solid #d6dae0;
    border-radius: 4px;
    color: #202932;
    text-decoration: none;
}

.home .rl4g-mission-panel a {
    display: inline-block;
    background: #a52b35;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 650;
}

html[lang^="ar"] .home .rl4g-panel-en,
html[lang^="en"] .home .rl4g-panel-ar {
    display: none;
}

html[lang^="ar"] .home .rl4g-home-panels {
    direction: rtl;
}

@media (max-width: 700px) {
    .home .rl4g-home-panels {
        grid-template-columns: minmax(0,1fr);
    }

    .home .rl4g-research-panel,
    .home .rl4g-mission-panel {
        padding: 21px;
    }
}

/* Latest News category badges, within existing card section */
.home .rl4g-news-query .wp-block-post-template > li {
    position: relative;
}

.home .rl4g-news-query .rl4g-news-category {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 3;
    margin: 0;
    max-width: calc(100% - 24px);
    font-size: 0;
    line-height: 1;
    text-align: end;
}

.home .rl4g-news-query .rl4g-news-category a {
    display: none;
}

.home .rl4g-news-query .rl4g-news-category a:first-of-type {
    display: inline-block;
    background: #a52b35;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    padding: 6px 9px;
    border-radius: 3px;
    overflow-wrap: anywhere;
}

.home .rl4g-news-query .rl4g-news-category a:first-of-type:hover,
.home .rl4g-news-query .rl4g-news-category a:first-of-type:focus-visible {
    background: #85212b;
}

/* RL4G NEWS IMAGE FALLBACK */
.home .rl4g-news-query
.wp-block-post-template > li:not(:has(.wp-block-post-featured-image))::before {
    content: "RL4G";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
    background:
        radial-gradient(circle at 80% 15%,
            rgba(255,255,255,.10), transparent 36%),
        linear-gradient(135deg,#202932,#39434f);
    color: #fff;
    font-size: clamp(1.4rem,3vw,2.1rem);
    font-weight: 800;
    letter-spacing: .09em;
    box-sizing: border-box;
}

/* END RL4G NEWS IMAGE FALLBACK */

/* RL4G CONSOLIDATED ARTICLE CARDS END */



/* RL4G HOMEPAGE EDITORIAL — consolidated */

.home .rl4g-featured {
    margin-block: 0 34px;
}

.home .rl4g-featured h2,
.home .rl4g-news-section-heading {
    font-size: clamp(1.35rem,2vw,1.75rem);
    line-height: 1.35;
    margin: 0 0 15px;
    font-weight: 750;
}

.home .rl4g-featured h2 {
    border: 0;
    border-inline-start: 0;
    padding: 0;
}

html[lang^="ar"] .rl4g-featured-title-en,
html[lang^="en"] .rl4g-featured-title-ar,
html[lang^="ar"] .rl4g-news-title-en,
html[lang^="en"] .rl4g-news-title-ar {
    display: none !important;
}

html[lang^="ar"] .rl4g-featured h2,
html[lang^="ar"] .rl4g-news-section-heading {
    direction: rtl;
    text-align: right;
}

html[lang^="en"] .rl4g-featured h2,
html[lang^="en"] .rl4g-news-section-heading {
    direction: ltr;
    text-align: left;
}

/* One large lead story, one wide story and two small stories */
body.home .rl4g-featured .rl4g-featured-grid {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    grid-template-rows: repeat(2,minmax(155px,1fr)) !important;
    gap: 9px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
    direction: ltr;
}

body.home .rl4g-featured .rl4g-featured-grid > li {
    position: relative;
    min-width: 0;
    min-height: 155px;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #202932;
    border-radius: 4px;
    isolation: isolate;
}

/* Arabic: lead story on right */
html[lang^="ar"] body.home .rl4g-featured-grid > li:nth-child(1) {
    grid-column: 3 / 5 !important;
    grid-row: 1 / 3 !important;
}

html[lang^="ar"] body.home .rl4g-featured-grid > li:nth-child(2) {
    grid-column: 1 / 3 !important;
    grid-row: 1 !important;
}

html[lang^="ar"] body.home .rl4g-featured-grid > li:nth-child(3) {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

html[lang^="ar"] body.home .rl4g-featured-grid > li:nth-child(4) {
    grid-column: 2 !important;
    grid-row: 2 !important;
}

/* English: mirrored lead story on left */
html[lang^="en"] body.home .rl4g-featured-grid > li:nth-child(1) {
    grid-column: 1 / 3 !important;
    grid-row: 1 / 3 !important;
}

html[lang^="en"] body.home .rl4g-featured-grid > li:nth-child(2) {
    grid-column: 3 / 5 !important;
    grid-row: 1 !important;
}

html[lang^="en"] body.home .rl4g-featured-grid > li:nth-child(3) {
    grid-column: 3 !important;
    grid-row: 2 !important;
}

html[lang^="en"] body.home .rl4g-featured-grid > li:nth-child(4) {
    grid-column: 4 !important;
    grid-row: 2 !important;
}

body.home .rl4g-featured-grid .wp-block-post-featured-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

body.home .rl4g-featured-grid .wp-block-post-featured-image a,
body.home .rl4g-featured-grid .wp-block-post-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
}

body.home .rl4g-featured-grid .wp-block-post-featured-image img {
    object-fit: cover;
    transition: transform .25s ease;
}

body.home .rl4g-featured-grid > li:hover img {
    transform: scale(1.035);
}

body.home .rl4g-featured-grid > li::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,16,25,.88),
        rgba(10,16,25,.18) 63%,
        transparent
    );
    pointer-events: none;
    z-index: 1;
}

body.home .rl4g-featured-grid .wp-block-post-title {
    position: absolute;
    inset-inline: 13px;
    bottom: 30px;
    margin: 0;
    z-index: 3;
    font-size: clamp(.86rem,1.25vw,1.3rem);
    line-height: 1.35;
    font-weight: 750;
}

body.home .rl4g-featured-grid > li:first-child .wp-block-post-title {
    font-size: clamp(1.15rem,1.7vw,1.8rem);
}

body.home .rl4g-featured-grid .wp-block-post-title a {
    color: #fff !important;
    text-decoration: none;
}

body.home .rl4g-featured-grid .wp-block-post-date {
    position: absolute;
    bottom: 10px;
    inset-inline: 13px;
    z-index: 3;
    margin: 0;
    color: #e6e8eb;
    font-size: .7rem;
}

body.home .rl4g-featured-grid .rl4g-featured-category {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 3;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

body.home .rl4g-featured-category a {
    background: #A52B35;
    color: #fff !important;
    border-radius: 2px;
    padding: 4px 7px;
    font-size: .68rem;
    font-weight: 700;
    text-decoration: none;
}

.home .rl4g-news-section-heading {
    margin-top: 35px;
    padding-bottom: 9px;
    border-bottom: 2px solid #A52B35;
}

/* Keep the existing six-card news section below featured stories */
body.home .rl4g-news-query .wp-block-post-template {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

/* Responsive editorial layout */
@media (max-width: 850px) {
    body.home .rl4g-featured .rl4g-featured-grid {
        grid-template-rows: repeat(2,minmax(120px,1fr)) !important;
    }
}

@media (max-width: 700px) {
    body.home .rl4g-featured .rl4g-featured-grid {
        grid-template-columns: minmax(0,1fr) !important;
        grid-template-rows: auto !important;
        gap: 10px !important;
    }

    body.home .rl4g-featured .rl4g-featured-grid > li {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 160px !important;
    }

    body.home .rl4g-featured .rl4g-featured-grid > li:first-child {
        min-height: 250px !important;
    }

    body.home .rl4g-featured-grid .wp-block-post-title,
    body.home .rl4g-featured-grid > li:first-child .wp-block-post-title {
        font-size: 1rem;
    }

    body.home .rl4g-news-query .wp-block-post-template {
        grid-template-columns: minmax(0,1fr);
    }
}


/* RL4G FEATURED ALIGNMENT FIX */

/* Match the width of the news section below */
body.home .rl4g-featured {
    width: 100% !important;
    max-width: var(--wp--style--global--wide-size, 1200px) !important;
    box-sizing: border-box;
}

body.home .rl4g-featured .rl4g-featured-query,
body.home .rl4g-featured .rl4g-featured-grid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Ensure the correct heading is displayed */
html[lang^="ar"] body.home .rl4g-featured-title-ar,
html[lang^="en"] body.home .rl4g-featured-title-en {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    margin: 0 0 14px !important;
    padding: 0 0 9px !important;
    border: 0 !important;
    border-bottom: 1px solid #A52B35 !important;
    color: #202932 !important;
}

html[lang^="ar"] body.home .rl4g-featured-title-en,
html[lang^="en"] body.home .rl4g-featured-title-ar {
    display: none !important;
}

/* Consistent editorial story sizes */
@media (min-width: 701px) {
    body.home .rl4g-featured .rl4g-featured-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(2, minmax(155px, 1fr)) !important;
        gap: 9px !important;
    }

    body.home .rl4g-featured .rl4g-featured-grid > li {
        min-width: 0 !important;
        min-height: 155px !important;
    }
}

/* Maintain a stacked layout on phones */
@media (max-width: 700px) {
    body.home .rl4g-featured .rl4g-featured-grid {
        grid-template-columns: minmax(0,1fr) !important;
        grid-template-rows: auto !important;
    }

    body.home .rl4g-featured .rl4g-featured-grid > li {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

/* END RL4G FEATURED ALIGNMENT FIX */


/* RL4G FEATURED CARD READABILITY */

/* Show only the first actual category badge. */
body.home .rl4g-featured-category a ~ a {
    display: none !important;
}

/* Limit titles so smaller cards remain readable. */
body.home .rl4g-featured-grid .wp-block-post-title {
    max-height: 4.05em;
    overflow: hidden;
    line-height: 1.35;
}

@media (min-width: 701px) {
    body.home .rl4g-featured-grid > li:nth-child(3)
    .wp-block-post-title,
    body.home .rl4g-featured-grid > li:nth-child(4)
    .wp-block-post-title {
        font-size: clamp(.75rem, 1vw, .98rem);
        line-height: 1.28;
        max-height: 3.84em;
        bottom: 25px;
    }

    body.home .rl4g-featured-grid > li:nth-child(3)
    .rl4g-featured-category,
    body.home .rl4g-featured-grid > li:nth-child(4)
    .rl4g-featured-category {
        top: 8px;
        inset-inline-end: 8px;
    }
}

/* END RL4G FEATURED CARD READABILITY */

/* RL4G HOMEPAGE EDITORIAL END */


/* RL4G CONTACT FORM DESIGN V1 */
body.page-id-92 .wpcf7,
body.page-id-159 .wpcf7 {
    width: 100%;
    max-width: 720px;
    margin: 30px 0;
}

body.page-id-92 .wpcf7 form,
body.page-id-159 .wpcf7 form {
    width: 100%;
}

body.page-id-92 .wpcf7 form p,
body.page-id-159 .wpcf7 form p {
    margin: 0 0 20px;
}

body.page-id-92 .wpcf7 label,
body.page-id-159 .wpcf7 label {
    display: block;
    width: 100%;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.7;
}

body.page-id-92 .wpcf7 .wpcf7-form-control-wrap,
body.page-id-159 .wpcf7 .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin-top: 8px;
}

body.page-id-92 .wpcf7 input[type="text"],
body.page-id-92 .wpcf7 input[type="email"],
body.page-id-92 .wpcf7 textarea,
body.page-id-159 .wpcf7 input[type="text"],
body.page-id-159 .wpcf7 input[type="email"],
body.page-id-159 .wpcf7 textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 13px 15px;
    background: #fff;
    border: 1px solid #cbd0d5;
    border-radius: 7px;
    color: #222;
    font: inherit;
    font-size: 16px;
    transition: border-color .2s, box-shadow .2s;
}

body.page-id-92 .wpcf7 textarea,
body.page-id-159 .wpcf7 textarea {
    min-height: 170px;
    resize: vertical;
}

body.page-id-92 .wpcf7 input:focus,
body.page-id-92 .wpcf7 textarea:focus,
body.page-id-159 .wpcf7 input:focus,
body.page-id-159 .wpcf7 textarea:focus {
    outline: none;
    border-color: #e00000;
    box-shadow: 0 0 0 3px rgba(224,0,0,.10);
}

body.page-id-92 .wpcf7 input[type="submit"],
body.page-id-159 .wpcf7 input[type="submit"] {
    width: auto;
    min-width: 180px;
    padding: 13px 26px;
    background: #e00000;
    color: white;
    border: 1px solid #e00000;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

body.page-id-92 .wpcf7 input[type="submit"]:hover,
body.page-id-159 .wpcf7 input[type="submit"]:hover {
    background: #b80000;
    border-color: #b80000;
}

body.page-id-92 .wpcf7 .wpcf7-response-output,
body.page-id-159 .wpcf7 .wpcf7-response-output {
    box-sizing: border-box;
    max-width: 100%;
    margin: 20px 0 0;
    padding: 14px 18px;
    border-radius: 7px;
    line-height: 1.7;
}

body.page-id-159 .wpcf7 {
    direction: rtl;
    text-align: right;
}

body.page-id-159 .wpcf7 input,
body.page-id-159 .wpcf7 textarea {
    direction: rtl;
    text-align: right;
}

@media (max-width: 767px) {
    body.page-id-92 .wpcf7,
    body.page-id-159 .wpcf7 {
        max-width: 100%;
    }
}
/* END RL4G CONTACT FORM DESIGN V1 */




/* RL4G CONSOLIDATED HEADER V2 */

/* Full-width header with two deliberate rows. */
.rl4g-header-v6 .rl4g-header-inner {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100%;
}

/* Logo: top right in Arabic AND English. */
.rl4g-header-v6 .rl4g-header-inner > .wp-block-site-logo {
    display: block !important;
    align-self: flex-end !important;
    margin: 0 0 0 auto !important;
    text-align: right !important;
    direction: ltr;
}

.rl4g-header-v6 .wp-block-site-logo img {
    display: block;
    max-width: 190px;
    height: auto;
}

/* Navigation and language switch on one row. */
.rl4g-header-v6 .rl4g-header-controls {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 20px !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Navigation must not claim the entire row. */
.rl4g-header-v6 .rl4g-header-controls > .wp-block-navigation {
    width: auto !important;
    flex: 0 1 auto !important;
    margin: 0 !important;
}

.rl4g-header-v6 .wp-block-navigation__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

/* Switcher follows the menu, without its own row. */
.rl4g-header-v6 .rl4g-header-controls > .wp-block-shortcode {
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 !important;
}

.rl4g-header-v6 .rl4g-language-switcher {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px;
}

/* English: start navigation from the left. */
html[lang^="en"] .rl4g-header-v6 .rl4g-header-controls {
    direction: ltr;
    justify-content: flex-start !important;
    text-align: left;
}

html[lang^="en"] .rl4g-header-v6 .wp-block-navigation__container {
    direction: ltr;
    justify-content: flex-start !important;
}

/* Arabic: start navigation from the right. */
html[lang^="ar"] .rl4g-header-v6 .rl4g-header-controls {
    direction: rtl;
    justify-content: flex-start !important;
    text-align: right;
}

html[lang^="ar"] .rl4g-header-v6 .wp-block-navigation__container {
    direction: rtl;
    justify-content: flex-start !important;
}

html[lang^="ar"] .rl4g-header-v6 .rl4g-language-switcher {
    direction: rtl;
}

/* Mobile: retain the logo at the right. */
@media (max-width: 781px) {
    .rl4g-header-v6 .rl4g-header-inner {
        gap: 10px !important;
    }

    .rl4g-header-v6 .rl4g-header-controls {
        gap: 10px 16px !important;
    }

    .rl4g-header-v6 .wp-block-site-logo img {
        max-width: 160px;
    }
}

/* END RL4G CONSOLIDATED HEADER V2 */

/* RL4G BILINGUAL LOGO ALIGNMENT V1 */

/* English: logo at the top left */
html[lang^="en"] .rl4g-header-v6
.rl4g-header-inner > .wp-block-site-logo {
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
}

/* Arabic: logo at the top right */
html[lang^="ar"] .rl4g-header-v6
.rl4g-header-inner > .wp-block-site-logo {
    align-self: flex-end !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: right !important;
}

/* END RL4G BILINGUAL LOGO ALIGNMENT V1 */

/* RL4G ABOUT US FORMATTING V2 */

body.page-id-87 .wp-block-post-content,
body.page-id-156 .wp-block-post-content {
    max-width: 820px;
    line-height: 1.85;
}

body.page-id-87 .wp-block-post-content h2,
body.page-id-156 .wp-block-post-content h2 {
    font-size: clamp(23px, 2.3vw, 29px);
    font-weight: 700;
    line-height: 1.4;
    margin-top: 42px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    padding-inline-start: 14px;
    border-inline-start: 4px solid #d71920;
    border-bottom: 1px solid #e5e7eb;
}

body.page-id-87 .wp-block-post-content p,
body.page-id-156 .wp-block-post-content p,
body.page-id-156 .rl4g-about-content {
    line-height: 1.9;
    font-size: 17px;
}

body.page-id-156 .rl4g-about-content {
    direction: rtl;
    text-align: right;
}

body.page-id-156 .rl4g-about-content > h2 {
    clear: both;
}

body.page-id-156 .rl4g-about-content > ul,
body.page-id-156 .rl4g-about-content > ol {
    padding-inline-start: 30px;
    margin-block: 20px 30px;
}

body.page-id-156 .rl4g-about-content li {
    margin-bottom: 14px;
    line-height: 1.85;
}

body.page-id-156 .rl4g-about-lead {
    font-size: 19px;
    font-weight: 600;
    color: #30343a;
    margin-bottom: 28px;
}

@media (max-width: 767px) {
    body.page-id-87 .wp-block-post-content p,
    body.page-id-156 .wp-block-post-content p,
    body.page-id-156 .rl4g-about-content {
        font-size: 16px;
    }
}

/* END RL4G ABOUT US FORMATTING V2 */

/* RL4G ARABIC ABOUT US FINAL POLISH */

body.page-id-156 .rl4g-about-content {
    font-weight: 400;
    line-height: 1.85;
}

body.page-id-156 .rl4g-about-content h2 {
    margin-top: 30px;
    margin-bottom: 14px;
    padding-bottom: 8px;
}

body.page-id-156 .rl4g-about-content p {
    margin-bottom: 16px;
}

body.page-id-156 .rl4g-about-lead {
    font-weight: 600;
    margin-bottom: 22px;
}

/* END RL4G ARABIC ABOUT US FINAL POLISH */

/* RL4G EDITORIAL ARTICLE LAYOUT V1 */

.single-post .rl4g-article-layout {
    box-sizing: border-box;
    width: min(100% - 40px, 1040px);
    max-width: 1040px;
    margin: 48px auto 70px;
}

.single-post .rl4g-article-header,
.single-post .rl4g-article-body {
    width: 100%;
    max-width: 780px;
    margin-inline: auto;
}

.single-post .rl4g-article-header .wp-block-post-title {
    font-size: clamp(30px, 3.5vw, 46px);
    line-height: 1.3;
    letter-spacing: -.015em;
    font-weight: 750;
    margin-block: 0 20px;
    overflow-wrap: anywhere;
}

.single-post .rl4g-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: #69717d;
    font-size: 14px;
    margin-bottom: 26px;
}

.single-post .rl4g-article-meta a {
    color: #b71926;
    text-decoration: none;
}

.single-post .rl4g-article-cover {
    width: 100%;
    max-width: 920px;
    margin: 0 auto 36px;
}

.single-post .rl4g-article-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.single-post .rl4g-article-body .wp-block-post-content {
    width: 100%;
    max-width: 780px;
    margin-inline: auto;
    overflow-wrap: break-word;
}

.single-post .rl4g-article-body .wp-block-post-content p,
.single-post .rl4g-article-body .wp-block-post-content li {
    font-size: 18px;
    line-height: 1.9;
}

.single-post .rl4g-article-body .wp-block-post-content p {
    margin-bottom: 1.35em;
}

.single-post .rl4g-article-body .wp-block-post-content h2 {
    font-size: clamp(24px, 2.4vw, 30px);
    line-height: 1.4;
    margin-top: 2em;
}

.single-post .rl4g-article-body .wp-block-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.single-post .rl4g-article-divider {
    margin-top: 50px;
}

.single-post .rl4g-article-tags {
    font-size: 14px;
    color: #69717d;
}

.single-post .rl4g-article-navigation {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
}

.single-post .rl4g-article-navigation a {
    color: #b71926;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.single-post .rl4g-article-navigation a:hover {
    text-decoration: underline;
}

/* Respect the reading direction of each language. */
html[lang^="ar"] .single-post .rl4g-article-header,
html[lang^="ar"] .single-post .rl4g-article-body {
    direction: rtl;
    text-align: right;
}

html[lang^="en"] .single-post .rl4g-article-header,
html[lang^="en"] .single-post .rl4g-article-body {
    direction: ltr;
    text-align: left;
}

@media (max-width: 767px) {
    .single-post .rl4g-article-layout {
        width: calc(100% - 32px);
        margin-block: 30px 50px;
    }

    .single-post .rl4g-article-header .wp-block-post-title {
        font-size: clamp(27px, 7vw, 36px);
    }

    .single-post .rl4g-article-body .wp-block-post-content p,
    .single-post .rl4g-article-body .wp-block-post-content li {
        font-size: 16px;
        line-height: 1.85;
    }
}

/* END RL4G EDITORIAL ARTICLE LAYOUT V1 */


/* RL4G HOMEPAGE KICKER MOVE */

/* Hide the small label from the top hero so it no longer sits at the top of the page */


/* Make the hero slightly cleaner and closer to the approved mockup */
.home .rl4g-home-intro {
    padding: 16px 22px !important;
}

/* New lower-page research label */
.home .rl4g-dr4g-research-kicker {
    margin: 0 0 10px 0;
    color: #A52B35;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
}

html[lang^="en"] .home .rl4g-dr4g-research-kicker[lang="ar"] {
    display: none !important;
}
html[lang^="ar"] .home .rl4g-dr4g-research-kicker[lang="en"] {
    display: none !important;
}

html[lang^="ar"] .home .rl4g-dr4g-research-kicker {
    text-align: right;
}

html[lang^="en"] .home .rl4g-dr4g-research-kicker {
    text-align: left;
}

/* Slightly improve vertical rhythm around the lower research section */
.home .rl4g-dr4g-research {
    padding-top: 26px;
}

/* END RL4G HOMEPAGE KICKER MOVE */


/* RL4G HEADER PHASE 40B */

.home .wp-site-blocks {
    overflow-x: hidden;
}

.rl4g-header-topline {
    background: #111922;
    color: #fff;
    font-size: .82rem;
}

.rl4g-header-topline-inner {
    min-height: 38px;
    gap: 14px;
}

.rl4g-header-topline-note {
    margin: 0;
    color: #fff;
    opacity: .9;
    font-size: .82rem;
    line-height: 1.35;
}

.rl4g-header-topline-badge {
    margin: 0;
    background: #c62828;
    color: #fff;
    padding: 8px 14px;
    border-radius: 0;
    font-weight: 700;
    font-size: .82rem;
    line-height: 1;
}

.rl4g-header-utility-shell {
    background: #ffffff;
    border-bottom: 1px solid #ececec;
}

.rl4g-header-utility {
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 18px;
}

.rl4g-header-logo img {
    max-height: 76px;
    width: auto;
}

.rl4g-header-tools {
    gap: 12px;
}

.rl4g-header-quicklinks {
    gap: 10px;
    margin: 0;
}

.rl4g-header-quicklink .wp-block-button__link {
    background: #fff;
    color: #111922;
    border: 1px solid #d6d6d6;
    border-radius: 3px;
    padding: 10px 14px;
    font-size: .88rem;
    line-height: 1;
}

.rl4g-header-search {
    margin: 0;
    min-width: 300px;
}

.rl4g-header-search .wp-block-search__inside-wrapper {
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    background: #fff;
    padding: 0;
}

.rl4g-header-search .wp-block-search__input {
    border: 0 !important;
    box-shadow: none !important;
    min-height: 42px;
    font-size: .92rem;
}

.rl4g-header-search .wp-block-search__button {
    margin: 0;
    background: #c62828;
    color: #fff;
    border: 0;
    border-radius: 0;
    min-height: 42px;
    padding: 0 16px;
    font-weight: 700;
}

.rl4g-header-nav-shell {
    background: #162231;
    border-bottom: 3px solid #d71f26;
}

.rl4g-header-nav-row {
    min-height: 54px;
    gap: 24px;
}

.rl4g-header-section-tag {
    margin: 0;
}

.rl4g-header-section-tag-button .wp-block-button__link {
    background: #d71f26;
    color: #fff;
    padding: 10px 14px;
    border-radius: 3px;
    font-weight: 700;
    font-size: .9rem;
    line-height: 1;
}

.rl4g-main-navigation {
    margin: 0;
}

.rl4g-main-navigation .wp-block-navigation-item__content {
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    padding-top: 0;
    padding-bottom: 0;
}

.rl4g-main-navigation .wp-block-navigation-item__content:hover {
    color: #ffffff;
    opacity: .85;
}

header.wp-block-template-part,
.wp-block-template-part header,
body .wp-block-template-part:first-child {
    margin-bottom: 0 !important;
}

/* Better spacing below the new header */
.home .rl4g-home-intro {
    margin-top: 22px;
}

/* Mobile */
@media (max-width: 900px) {
    .rl4g-header-topline-note {
        display: none;
    }

    .rl4g-header-utility {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .rl4g-header-search {
        min-width: 100%;
        width: 100%;
    }

    .rl4g-header-nav-row {
        min-height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .rl4g-header-section-tag {
        width: 100%;
    }

    .rl4g-header-section-tag-button,
    .rl4g-header-section-tag-button .wp-block-button__link {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .rl4g-header-topline {
        display: none;
    }

    .rl4g-header-utility {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
    }

    .rl4g-header-brand {
        justify-content: space-between;
    }

    .rl4g-header-logo img {
        max-height: 56px;
    }

    .rl4g-header-tools {
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
    }

    .rl4g-header-quicklinks {
        justify-content: flex-start;
    }

    .rl4g-main-navigation {
        width: 100%;
    }

    .rl4g-main-navigation .wp-block-navigation__responsive-container-open,
    .rl4g-main-navigation .wp-block-navigation__responsive-container-close {
        color: #fff;
    }
}


/* RL4G HEADER 40C CORRECTIONS */

/* Readable navigation links against dark background */
.rl4g-header-nav-shell .wp-block-navigation__container
> .wp-block-navigation-item > a.wp-block-navigation-item__content,
.rl4g-header-nav-shell .wp-block-navigation__container
> .wp-block-navigation-item > a .wp-block-navigation-item__label {
    color: #ffffff !important;
    opacity: 1 !important;
    text-decoration: none;
}

.rl4g-header-nav-shell .wp-block-navigation__container
> .wp-block-navigation-item > a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Keep category shortcut and menu opposite each other */
.rl4g-header-nav-row {
    flex-direction: row !important;
    direction: ltr;
}

.rl4g-main-navigation {
    direction: rtl;
}

/* English menu should read left to right */
html[lang^="en"] .rl4g-main-navigation {
    direction: ltr;
}

/* Mobile: one compact dark navigation row */
@media (max-width: 900px) {
    .rl4g-header-nav-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        min-height: 48px;
    }

    .rl4g-header-section-tag {
        width: auto !important;
        flex: 0 1 auto;
    }

    .rl4g-header-section-tag-button,
    .rl4g-header-section-tag-button .wp-block-button__link {
        width: auto !important;
    }

    .rl4g-main-navigation {
        width: auto !important;
        flex: 0 0 auto;
    }

    .rl4g-main-navigation
    .wp-block-navigation__responsive-container-open {
        display: flex;
        color: #fff !important;
    }

    .rl4g-header-section-tag-button .wp-block-button__link {
        padding: 8px 10px;
        font-size: .78rem;
    }
}

/* Keep opened mobile navigation readable */
.rl4g-main-navigation
.wp-block-navigation__responsive-container.is-menu-open {
    background: #ffffff;
    color: #202932;
}

.rl4g-main-navigation
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item__content,
.rl4g-main-navigation
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item__label {
    color: #202932 !important;
}

.rl4g-main-navigation
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-container-close {
    color: #202932 !important;
}


/* RL4G NAVIGATION HOVER EFFECT */

/* Desktop navigation links */
@media (min-width: 901px) {

    .rl4g-header-nav-shell
    .rl4g-main-navigation
    .wp-block-navigation-item__content {
        display: inline-flex;
        align-items: center;
        min-height: 38px;
        padding: 8px 12px;
        border-radius: 3px;
        background-color: transparent;
        color: #ffffff !important;
        text-decoration: none;
        transition: background-color .18s ease,
                    color .18s ease;
    }

    .rl4g-header-nav-shell
    .rl4g-main-navigation
    .wp-block-navigation-item__content:hover,

    .rl4g-header-nav-shell
    .rl4g-main-navigation
    .wp-block-navigation-item__content:focus-visible,

    .rl4g-header-nav-shell
    .rl4g-main-navigation
    .current-menu-item > .wp-block-navigation-item__content {
        background-color: #A52B35 !important;
        color: #ffffff !important;
        opacity: 1 !important;
        text-decoration: none !important;
    }

    .rl4g-header-nav-shell
    .rl4g-main-navigation
    .wp-block-navigation-item__content:hover
    .wp-block-navigation-item__label {
        color: #ffffff !important;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .rl4g-header-nav-shell
    .rl4g-main-navigation
    .wp-block-navigation-item__content {
        transition: none !important;
    }
}

/* END RL4G NAVIGATION HOVER EFFECT */


/* RL4G ARTICLES HOMEPAGE AND ALIGNMENT */

/* Display only the heading matching the page language */
html[lang^="ar"] .rl4g-articles-heading-en,
html[lang^="en"] .rl4g-articles-heading-ar {
    display: none !important;
}

/* English navigation on the left, category shortcut on right */
@media (min-width: 901px) {
    html[lang^="en"] .rl4g-header-nav-row {
        flex-direction: row-reverse !important;
    }

    html[lang^="ar"] .rl4g-header-nav-row {
        flex-direction: row !important;
    }

    html[lang^="en"] .rl4g-main-navigation {
        direction: ltr;
    }

    html[lang^="ar"] .rl4g-main-navigation {
        direction: rtl;
    }
}

/* Offset article anchor slightly for readability */
#rl4g-articles {
    scroll-margin-top: 20px;
}

/* END RL4G ARTICLES HOMEPAGE AND ALIGNMENT */

/* END RL4G HEADER 40C CORRECTIONS */


/* RL4G BIDIRECTIONAL LANGUAGE SWITCH */

/* Arabic homepage: display English link only */
html[lang^="ar"] .rl4g-lang-ar {
    display: none !important;
}

/* English homepage: display Arabic link only */
html[lang^="en"] .rl4g-lang-en {
    display: none !important;
}

/* Maintain the same spacing for either language */
.rl4g-header-quicklinks .rl4g-lang-en,
.rl4g-header-quicklinks .rl4g-lang-ar {
    flex-shrink: 0;
}


/* RL4G LANGUAGE BUTTON POLISH */

/* Modern, compact language pill */
.rl4g-header-tools
.rl4g-header-quicklinks
.rl4g-header-quicklink .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid #A52B35 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #A52B35 !important;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: none;
    transition: background-color .18s ease,
                color .18s ease;
}

.rl4g-header-tools
.rl4g-header-quicklinks
.rl4g-header-quicklink .wp-block-button__link::before {
    content: "◎";
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.rl4g-header-tools
.rl4g-header-quicklinks
.rl4g-header-quicklink .wp-block-button__link:hover,
.rl4g-header-tools
.rl4g-header-quicklinks
.rl4g-header-quicklink .wp-block-button__link:focus-visible {
    background: #A52B35 !important;
    color: #ffffff !important;
}

.rl4g-header-tools
.rl4g-header-quicklinks {
    gap: 0 !important;
}

@media (max-width: 700px) {
    .rl4g-header-tools
    .rl4g-header-quicklinks
    .rl4g-header-quicklink .wp-block-button__link {
        min-height: 36px;
        padding: 7px 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rl4g-header-tools
    .rl4g-header-quicklink .wp-block-button__link {
        transition: none;
    }
}


/* RL4G SEARCH PILL STYLE */

/* Search field container */
.rl4g-header-tools .rl4g-header-search
.wp-block-search__inside-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* Rounded search input */
.rl4g-header-tools .rl4g-header-search
.wp-block-search__input {
    min-height: 38px !important;
    height: 38px;
    border: 1px solid #A52B35 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #202932 !important;
    padding: 7px 15px !important;
    font-size: .88rem;
    outline-offset: 2px;
    box-sizing: border-box;
}

/* Search action — matches language pill */
.rl4g-header-tools .rl4g-header-search
.wp-block-search__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 38px !important;
    height: 38px;
    margin: 0 !important;
    padding: 7px 15px !important;
    border: 1px solid #A52B35 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #A52B35 !important;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color .18s ease,
                color .18s ease;
}

.rl4g-header-tools .rl4g-header-search
.wp-block-search__button:hover,
.rl4g-header-tools .rl4g-header-search
.wp-block-search__button:focus-visible {
    background: #A52B35 !important;
    color: #fff !important;
}

/* Accessible focus for text input */
.rl4g-header-tools .rl4g-header-search
.wp-block-search__input:focus-visible {
    outline: 2px solid #A52B35;
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .rl4g-header-tools .rl4g-header-search {
        width: 100%;
        min-width: 0;
    }

    .rl4g-header-tools .rl4g-header-search
    .wp-block-search__input {
        min-width: 0;
        width: 100%;
    }

    .rl4g-header-tools .rl4g-header-search
    .wp-block-search__button {
        padding-inline: 13px !important;
        min-height: 36px !important;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rl4g-header-tools .rl4g-header-search
    .wp-block-search__button {
        transition: none;
    }
}

/* END RL4G SEARCH PILL STYLE */

/* END RL4G LANGUAGE BUTTON POLISH */

/* END RL4G BIDIRECTIONAL LANGUAGE SWITCH */

/* END RL4G HEADER PHASE 40B */


/* RL4G TOPLINE AND PANEL ALIGN FIX */

/* 1) Make the top strip inline instead of badge left / title far right */
.rl4g-header-topline-inner {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.rl4g-header-topline-note,
.rl4g-header-topline-badge {
    margin: 0 !important;
    line-height: 1.35 !important;
}

/* Arabic: keep badge first on the left, title immediately after it */
html[lang^="ar"] .rl4g-header-topline-inner {
    direction: ltr !important;
}

html[lang^="ar"] .rl4g-header-topline-badge {
    order: 1;
    flex: 0 0 auto;
}

html[lang^="ar"] .rl4g-header-topline-note {
    order: 2;
    direction: rtl !important;
    text-align: right !important;
    flex: 0 1 auto;
}

html[lang^="ar"] .rl4g-header-topline-badge::after {
    content: " :";
    margin-inline-start: 6px;
}

/* English: same inline behaviour */
html[lang^="en"] .rl4g-header-topline-inner {
    direction: ltr !important;
}

html[lang^="en"] .rl4g-header-topline-badge::after {
    content: " :";
    margin-inline-start: 6px;
}

/* Mobile: keep it readable */
@media (max-width: 700px) {
    .rl4g-header-topline-inner {
        gap: 6px !important;
    }

    .rl4g-header-topline-note,
    .rl4g-header-topline-badge {
        font-size: 0.82rem !important;
    }
}

/* 2) Align the gray and dark panels to the same top line */
.home .rl4g-home-panels {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 26px !important;
    align-items: stretch !important;
}

.home .rl4g-home-panels > .wp-block-group,
.home .rl4g-home-panels > .rl4g-research-panel,
.home .rl4g-home-panels > .rl4g-mission-panel {
    margin: 0 !important;
    align-self: stretch !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
}

/* Normalise top spacing inside both boxes */
.home .rl4g-research-panel,
.home .rl4g-mission-panel {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
}

.home .rl4g-research-panel > *:first-child,
.home .rl4g-mission-panel > *:first-child {
    margin-top: 0 !important;
}

.home .rl4g-research-panel .wp-block-heading,
.home .rl4g-mission-panel .wp-block-heading {
    margin-top: 0 !important;
}

/* Mobile stacking */
@media (max-width: 900px) {
    .home .rl4g-home-panels {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* END RL4G TOPLINE AND PANEL ALIGN FIX */


/* RL4G ARABIC TOPLINE REFINEMENT */

/* Arabic only: keep the strip right-aligned and inline */
html[lang^="ar"] .rl4g-header-topline-inner {
    direction: rtl !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    text-align: right !important;
}

/* Arabic label: remove red background, keep bold text only */
html[lang^="ar"] .rl4g-header-topline-badge {
    background: transparent !important;
    color: #ffffff !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-weight: 700 !important;
    font-size: 0.90rem !important;
    line-height: 1.3 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Put a colon after the label */
html[lang^="ar"] .rl4g-header-topline-badge::after {
    content: " :";
    color: #ffffff;
    margin-right: 4px;
}

/* Arabic headline text */
html[lang^="ar"] .rl4g-header-topline-note {
    color: #ffffff !important;
    margin: 0 !important;
    font-weight: 500 !important;
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
    text-align: right !important;
    white-space: normal !important;
}

/* Make sure the two items stay together visually */
html[lang^="ar"] .rl4g-header-topline-badge,
html[lang^="ar"] .rl4g-header-topline-note {
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Mobile Arabic top strip */
@media (max-width: 700px) {
    html[lang^="ar"] .rl4g-header-topline-inner {
        gap: 6px !important;
    }

    html[lang^="ar"] .rl4g-header-topline-badge,
    html[lang^="ar"] .rl4g-header-topline-note {
        font-size: 0.80rem !important;
    }
}


/* RL4G ENGLISH TOPLINE MATCH */

/* Same appearance as Arabic without changing text */
html[lang^="en"] .rl4g-header-topline-inner {
    direction: rtl !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: right !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

html[lang^="en"] .rl4g-header-topline-badge {
    order: 1 !important;
    background: transparent !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-weight: 700 !important;
    font-size: .90rem !important;
    line-height: 1.3 !important;
}

html[lang^="en"] .rl4g-header-topline-badge::after {
    content: " :";
    margin: 0 4px 0 0;
    color: #fff;
}

html[lang^="en"] .rl4g-header-topline-note {
    order: 2 !important;
    direction: rtl !important;
    text-align: right !important;
    flex: 0 1 auto;
    color: #fff !important;
    margin: 0 !important;
    font-weight: 500 !important;
    font-size: .88rem !important;
    line-height: 1.3 !important;
}

@media (max-width: 700px) {
    html[lang^="en"] .rl4g-header-topline-badge,
    html[lang^="en"] .rl4g-header-topline-note {
        font-size: .80rem !important;
    }
}

/* END RL4G ENGLISH TOPLINE MATCH */

/* END RL4G ARABIC TOPLINE REFINEMENT */


/* RL4G SEARCH AND MOBILE NAV FIX V1 */

/* Search results: editorial summaries, not full articles */
.rl4g-search-page {
    width: min(100% - 32px, 1050px);
    margin: 36px auto 60px !important;
}

.rl4g-search-page > h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    border-bottom: 2px solid #A52B35;
    padding-bottom: 14px;
    margin-bottom: 24px;
}

html[lang^="ar"] .rl4g-search-heading-en,
html[lang^="en"] .rl4g-search-heading-ar {
    display: none !important;
}

html[lang^="ar"] .rl4g-search-page {
    direction: rtl;
    text-align: right;
}

html[lang^="en"] .rl4g-search-page {
    direction: ltr;
    text-align: left;
}

.rl4g-search-results .wp-block-post-template {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.rl4g-search-results .wp-block-post {
    list-style: none;
    margin: 0;
}

.rl4g-search-result {
    background: #F5F6F7;
    border: 1px solid #e4e7ea;
    border-radius: 6px;
    padding: 20px 24px;
}

.rl4g-search-result .wp-block-post-title {
    font-size: 1.2rem;
    line-height: 1.45;
    margin: 0 0 7px;
}

.rl4g-search-result .wp-block-post-title a {
    color: #202932;
    text-decoration: none;
}

.rl4g-search-result .wp-block-post-title a:hover {
    color: #A52B35;
    text-decoration: underline;
}

.rl4g-search-result .wp-block-post-date {
    font-size: .78rem;
    color: #707a87;
    margin: 0 0 10px;
}

.rl4g-search-result .wp-block-post-excerpt {
    font-size: .94rem;
    line-height: 1.65;
    color: #374151;
    margin: 0;
}

.rl4g-search-result .wp-block-post-excerpt__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.rl4g-search-result .wp-block-post-excerpt__more-link {
    color: #A52B35;
    font-weight: 700;
}

/* WordPress mobile navigation overlay */
@media (max-width: 900px) {

    .rl4g-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 100000 !important;
        background: #ffffff !important;
        color: #202932 !important;
        overflow-y: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 30px 22px !important;
    }

    .rl4g-main-navigation
    .is-menu-open
    .wp-block-navigation__responsive-close,
    .rl4g-main-navigation
    .is-menu-open
    .wp-block-navigation__responsive-dialog,
    .rl4g-main-navigation
    .is-menu-open
    .wp-block-navigation__responsive-container-content {
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }

    .rl4g-main-navigation
    .is-menu-open
    .wp-block-navigation__container {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 45px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .rl4g-main-navigation
    .is-menu-open
    .wp-block-navigation-item {
        display: flex !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        border-bottom: 1px solid #e7e9ed;
    }

    .rl4g-main-navigation
    .is-menu-open
    .wp-block-navigation-item__content,
    .rl4g-main-navigation
    .is-menu-open
    .wp-block-navigation-item__label {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #202932 !important;
        background: transparent !important;
        text-decoration: none !important;
        font-size: 1.08rem !important;
        font-weight: 650 !important;
    }

    .rl4g-main-navigation
    .is-menu-open
    .wp-block-navigation-item__content {
        width: 100% !important;
        padding: 15px 12px !important;
    }

    .rl4g-main-navigation
    .is-menu-open
    .wp-block-navigation-item__content:hover,
    .rl4g-main-navigation
    .is-menu-open
    .wp-block-navigation-item__content:focus-visible {
        background: #A52B35 !important;
        color: #ffffff !important;
    }

    .rl4g-main-navigation
    .is-menu-open
    .wp-block-navigation__responsive-container-close {
        display: flex !important;
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 2 !important;
        color: #202932 !important;
    }

    html[lang^="ar"] .rl4g-main-navigation
    .is-menu-open .wp-block-navigation__container {
        direction: rtl !important;
        text-align: right !important;
    }

    html[lang^="en"] .rl4g-main-navigation
    .is-menu-open .wp-block-navigation__container {
        direction: ltr !important;
        text-align: left !important;
    }
}


/* RL4G MOBILE MENU VISIBLE TEXT V2 */

@media (max-width: 900px) {

    /* Make actual navigation links visible, not just their rows */
    html body .rl4g-header-nav-shell
    .rl4g-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container
    .wp-block-navigation-item
    .wp-block-navigation-item__content,

    html body .rl4g-header-nav-shell
    .rl4g-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container
    .wp-block-navigation-item
    .wp-block-navigation-item__label {

        color: #202932 !important;
        -webkit-text-fill-color: #202932 !important;
        opacity: 1 !important;
        visibility: visible !important;
        font-size: 1.05rem !important;
        font-weight: 650 !important;
        text-shadow: none !important;
    }

    /* Red background and white text on interaction */
    html body .rl4g-header-nav-shell
    .rl4g-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content:hover,

    html body .rl4g-header-nav-shell
    .rl4g-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content:focus-visible {
        background: #A52B35 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    html body .rl4g-header-nav-shell
    .rl4g-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content:hover
    .wp-block-navigation-item__label,

    html body .rl4g-header-nav-shell
    .rl4g-main-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content:focus-visible
    .wp-block-navigation-item__label {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
}

/* END RL4G MOBILE MENU VISIBLE TEXT V2 */

/* END RL4G SEARCH AND MOBILE NAV FIX V1 */


/* RL4G ARCHIVE EDITORIAL V1 */

/* Shared layout for category and DR4G archives */
body .rl4g-archive-page {
    padding-top: 34px;
    padding-bottom: 58px;
}

body .rl4g-archive-intro {
    box-sizing: border-box;
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-bottom: 28px;
    border-top: 3px solid #A52B35;
    border-radius: 4px;
    background: #F5F6F7;
}

body .rl4g-archive-intro .wp-block-query-title,
body .rl4g-archive-intro h1 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #202932;
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    line-height: 1.35;
}

body .rl4g-archive-intro p {
    color: #53606d;
    line-height: 1.7;
}

body .rl4g-archive-query {
    width: 100%;
    box-sizing: border-box;
}

/* Three-column editorial archive grid */
body .rl4g-archive-query .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 22px !important;
    padding: 0 !important;
}

body .rl4g-archive-query .wp-block-post-template > li {
    min-width: 0;
    margin: 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(32,41,50,.04);
}

body .rl4g-archive-query .wp-block-post-featured-image {
    margin: 0 !important;
    overflow: hidden;
    background: #202932;
}

body .rl4g-archive-query .wp-block-post-featured-image img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    transition: transform .2s ease;
}

body .rl4g-archive-query li:hover
.wp-block-post-featured-image img {
    transform: scale(1.025);
}

body .rl4g-archive-query .wp-block-post-title {
    margin: 16px 16px 8px;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.5;
}

body .rl4g-archive-query .wp-block-post-title a {
    color: #202932 !important;
    text-decoration: none;
}

body .rl4g-archive-query .wp-block-post-title a:hover {
    color: #A52B35 !important;
}

body .rl4g-archive-query .wp-block-post-date {
    display: block;
    margin: 0 16px 9px;
    color: #74808c;
    font-size: .78rem;
}

body .rl4g-archive-query .wp-block-post-excerpt {
    margin: 0 16px 18px;
    color: #4b5563;
    font-size: .91rem;
    line-height: 1.65;
}

body .rl4g-archive-query
.wp-block-post-excerpt__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

body .rl4g-archive-query .wp-block-query-pagination {
    margin-top: 28px;
    gap: 12px;
}

body .rl4g-archive-query .wp-block-query-pagination a {
    color: #A52B35;
    font-weight: 650;
}

/* Individual article refinement */
body.single-post .rl4g-article-layout {
    padding-top: 30px;
    padding-bottom: 60px;
}

body.single-post .rl4g-article-header
.wp-block-post-title {
    color: #202932;
    font-size: clamp(1.7rem, 3.1vw, 2.6rem);
    line-height: 1.35;
}

body.single-post .rl4g-article-meta {
    gap: 12px;
    font-size: .85rem;
    color: #66717f;
}

body.single-post .rl4g-article-cover img {
    border-radius: 5px;
}

body.single-post .rl4g-article-body
.wp-block-post-content {
    line-height: 1.9;
}

body.single-post .rl4g-article-body
.wp-block-post-content a {
    color: #A52B35;
    text-underline-offset: 2px;
}

/* Language direction */
html[lang^="ar"] .rl4g-archive-page {
    direction: rtl;
    text-align: right;
}

html[lang^="en"] .rl4g-archive-page {
    direction: ltr;
    text-align: left;
}

html[lang^="ar"] .rl4g-archive-empty-en,
html[lang^="en"] .rl4g-archive-empty-ar {
    display: none !important;
}

@media (max-width: 900px) {
    body .rl4g-archive-query .wp-block-post-template {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }
}

@media (max-width: 700px) {
    body .rl4g-archive-page {
        padding-top: 20px;
        padding-bottom: 36px;
    }

    body .rl4g-archive-query .wp-block-post-template {
        grid-template-columns: minmax(0,1fr) !important;
        gap: 15px !important;
    }

    body .rl4g-archive-query .wp-block-post-title {
        font-size: 1.05rem;
    }

    body.single-post .rl4g-article-layout {
        padding-top: 20px;
    }
}

/* END RL4G ARCHIVE EDITORIAL V1 */


/* RL4G LATEST POSTS PHASE 48 */
.rl4g-header-topline .rl4g-latest-feed {
    display: flex !important;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-width: 0;
    padding: 7px 0;
    direction: inherit;
    color: #fff;
}

.rl4g-header-topline .rl4g-latest-label {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
}

.rl4g-header-topline .rl4g-latest-list {
    display: flex !important;
    flex: 1 1 auto;
    align-items: center;
    gap: 18px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    white-space: nowrap;
    direction: inherit;
}

.rl4g-header-topline .rl4g-latest-link {
    display: inline-block !important;
    flex: 0 0 auto;
    max-width: 310px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
    opacity: 1 !important;
}

.rl4g-header-topline .rl4g-latest-link + .rl4g-latest-link {
    border-inline-start: 1px solid rgba(255,255,255,.45);
    padding-inline-start: 18px;
}

.rl4g-header-topline .rl4g-latest-link:hover,
.rl4g-header-topline .rl4g-latest-link:focus-visible {
    color: #ff858b !important;
    -webkit-text-fill-color: #ff858b !important;
    text-decoration: underline !important;
}

@media (max-width: 700px) {
    .rl4g-header-topline .rl4g-latest-feed {
        gap: 10px;
    }

    .rl4g-header-topline .rl4g-latest-label {
        font-size: 11px;
    }

    .rl4g-header-topline .rl4g-latest-link {
        max-width: 220px;
        font-size: 11px;
    }
}
/* END RL4G LATEST POSTS PHASE 48 */


/* RL4G PHASE49 ROTATING HEADLINE */

/* Right-hand logo position on both languages */
html body .rl4g-header-utility-shell
.rl4g-header-utility {
    display: flex !important;
    flex-direction: row-reverse !important;
    direction: ltr !important;
    justify-content: space-between !important;
    align-items: center !important;
}

html body .rl4g-header-utility-shell
.rl4g-header-brand {
    flex: 0 0 auto !important;
    position: static !important;
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

html body .rl4g-header-utility-shell
.rl4g-header-logo {
    width: 280px !important;
    max-width: 100% !important;
}

html body .rl4g-header-utility-shell
.rl4g-header-logo img,
html body .rl4g-header-utility-shell
.wp-block-site-logo img {
    width: 280px !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Exactly one visible headline */
html body .rl4g-header-topline
.rl4g-latest-feed {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
}

html body .rl4g-header-topline
.rl4g-latest-list {
    display: block !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
}

html body .rl4g-header-topline
.rl4g-latest-list::-webkit-scrollbar {
    display: none !important;
}

html body .rl4g-header-topline
.rl4g-latest-feed.is-rotating
.rl4g-latest-link:not(.is-active) {
    display: none !important;
}

html body .rl4g-header-topline
.rl4g-latest-link.is-active {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    animation: rl4gHeadlineAppear .35s ease-out;
}

@keyframes rl4gHeadlineAppear {
    from {
        opacity: .3;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .rl4g-header-topline
    .rl4g-latest-link.is-active {
        animation: none !important;
    }
}

@media (max-width: 700px) {
    html body .rl4g-header-utility-shell
    .rl4g-header-logo,
    html body .rl4g-header-utility-shell
    .rl4g-header-logo img,
    html body .rl4g-header-utility-shell
    .wp-block-site-logo img {
        width: 200px !important;
    }

    html body .rl4g-header-topline
    .rl4g-latest-label {
        font-size: 10px !important;
    }
}

/* END RL4G PHASE49 ROTATING HEADLINE */


/* RL4G PHASE50 BILINGUAL BADGE */

/* Larger latest-post text, without increasing strip height. */
html body .rl4g-header-topline .rl4g-latest-feed {
    padding: 4px 0 !important;
    line-height: 18px !important;
}

html body .rl4g-header-topline .rl4g-latest-label,
html body .rl4g-header-topline .rl4g-latest-link {
    font-size: 14px !important;
    line-height: 18px !important;
}

/* Position badge centrally within the white header. */
html body .rl4g-header-utility-shell
.rl4g-header-utility {
    position: relative !important;
}

html body .rl4g-header-utility-shell
.rl4g-gulf-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 345px;
    max-width: 35%;
    z-index: 1;
}

html body .rl4g-gulf-badge-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none !important;
    background: transparent;
}

html body .rl4g-gulf-badge-link img {
    display: block;
    width: 76px;
    max-width: 76px;
    height: auto;
    flex: 0 0 76px;
}

html body .rl4g-gulf-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

html body .rl4g-gulf-copy strong {
    color: #A52B35;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

html body .rl4g-gulf-copy > span {
    color: #202932;
    font-size: 11px;
    line-height: 1.45;
}

html body .rl4g-gulf-badge-link:hover strong {
    text-decoration: underline;
}

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

/* Keep English and Arabic graphics identical. */
html[lang^="ar"] .rl4g-gulf-ar {
    display: flex !important;
}

html[lang^="en"] .rl4g-gulf-en {
    display: flex !important;
}

/* No header crowding on smaller screens. */
@media (max-width: 1100px) {
    html body .rl4g-header-utility-shell
    .rl4g-gulf-badge {
        display: none !important;
    }
}

@media (max-width: 700px) {
    html body .rl4g-header-topline
    .rl4g-latest-label,
    html body .rl4g-header-topline
    .rl4g-latest-link {
        font-size: 12px !important;
        line-height: 16px !important;
    }
}

/* END RL4G PHASE50 BILINGUAL BADGE */


/* RL4G PHASE51 BADGE SLOGAN */
html body .rl4g-gulf-badge .rl4g-gulf-copy > span {
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    color: #202932 !important;
}
/* END RL4G PHASE51 BADGE SLOGAN */


/* RL4G PHASE52 BADGE POSITION */

/* Centre badge more evenly between search and logo.
   Same position on Arabic and English pages. */
@media (min-width: 1101px) {
    html body .rl4g-header-utility-shell
    .rl4g-header-utility .rl4g-gulf-badge {
        left: calc(50% + 70px) !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* END RL4G PHASE52 BADGE POSITION */


/* RL4G PHASE53C ABOUT CARDS */

/* Only the two confirmed translated About pages. */
body.page-id-156 main,
body.page-id-87 main {
    width: 100%;
    max-width: none !important;
}

body.page-id-156 .wp-block-post-content.rl4g-about-enhanced,
body.page-id-87 .wp-block-post-content.rl4g-about-enhanced {
    width: min(1100px, calc(100% - 32px)) !important;
    max-width: 1100px !important;
    margin-inline: auto !important;
    padding: 20px 0 65px !important;
    box-sizing: border-box;
}

body .rl4g-about-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
}

body .rl4g-about-card {
    box-sizing: border-box;
    width: 85%;
    max-width: 900px;
    padding: clamp(22px, 3vw, 38px);
    background: #fff;
    color: #202932;
    border: 1px solid #e6e9ed;
    border-top: 3px solid #A52B35;
    border-radius: 10px;
    box-shadow: 0 7px 24px rgba(32,41,50,.06);
    line-height: 1.9;
    overflow-wrap: anywhere;
    transition:
        box-shadow .3s ease,
        transform .55s ease,
        opacity .55s ease;
}

body .rl4g-about-card:hover {
    box-shadow: 0 12px 32px rgba(32,41,50,.11);
}

body .rl4g-about-right {
    align-self: flex-end;
}

body .rl4g-about-left {
    align-self: flex-start;
}

body.page-id-156 .rl4g-about-card {
    text-align: right;
    direction: rtl;
}

body.page-id-87 .rl4g-about-card {
    text-align: left;
    direction: ltr;
}

body .rl4g-about-card h2 {
    margin: 0 0 20px !important;
    padding-bottom: 12px;
    color: #A52B35 !important;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.4;
    border-bottom: 1px solid #e6e9ed;
}

body .rl4g-about-card p {
    margin: 0 0 16px;
    line-height: 1.95;
}

body .rl4g-about-card li {
    margin-bottom: 10px;
    line-height: 1.85;
}

body .rl4g-about-card a {
    color: #A52B35;
    text-underline-offset: 3px;
}

body .rl4g-about-animated
.rl4g-about-card:not(.is-visible) {
    opacity: 0;
}

body .rl4g-about-animated
.rl4g-about-right:not(.is-visible) {
    transform: translateX(25px);
}

body .rl4g-about-animated
.rl4g-about-left:not(.is-visible) {
    transform: translateX(-25px);
}

@media (max-width: 700px) {
    body .rl4g-about-cards {
        gap: 18px;
    }

    body .rl4g-about-card {
        width: 100%;
        padding: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .rl4g-about-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* END RL4G PHASE53C ABOUT CARDS */


/* RL4G PHASE53D HIDE MANAGEMENT */
/* Arabic About Us page only */
body.page-id-156
.rl4g-about-cards > .rl4g-about-card:last-child {
    display: none !important;
}
/* END RL4G PHASE53D HIDE MANAGEMENT */


/* RL4G PHASE54G CONTACT REPAIR */

/* Hide only the duplicate outer WordPress page title. */
body.page-id-92 .wp-block-post-title,
body.page-id-159 .wp-block-post-title {
    display: none !important;
}

/* Main layout */
body:is(.page-id-92,.page-id-159)
.wp-block-post-content.rl4g-contact-ready {
    display: grid !important;
    grid-template-columns:
        minmax(0, .85fr) minmax(0, 1.15fr) !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
    gap: 24px 28px !important;
    width: min(1100px, calc(100% - 32px)) !important;
    max-width: 1100px !important;
    margin: 28px auto 55px !important;
    box-sizing: border-box;
    direction: ltr;
}

body.page-id-159
.wp-block-post-content.rl4g-contact-ready {
    direction: rtl;
}

/* Existing page heading */
body:is(.page-id-92,.page-id-159)
.wp-block-post-content.rl4g-contact-ready
> .wp-block-heading {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    padding: 0 0 14px !important;
    border-bottom: 2px solid #A52B35 !important;
    color: #202932 !important;
}

/* Single compact navy card */
body:is(.page-id-92,.page-id-159)
.wp-block-post-content.rl4g-contact-ready
> .rl4g-contact-info-card {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 26px !important;
    margin: 0 !important;
    background: #202932 !important;
    color: #FFFFFF !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    box-shadow: 0 8px 25px rgba(32,41,50,.09);
}

body:is(.page-id-92,.page-id-159)
.rl4g-contact-info-heading {
    margin: 0 0 16px !important;
    color: #FFFFFF !important;
    font-size: 1.22rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

body:is(.page-id-92,.page-id-159)
.rl4g-contact-info-card > p {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: .96rem !important;
    line-height: 1.8 !important;
}

body:is(.page-id-92,.page-id-159)
.rl4g-contact-info-card > p + p {
    margin-top: 19px !important;
    padding-top: 17px !important;
    border-top: 1px solid rgba(255,255,255,.25) !important;
}

/* Contact form card */
body:is(.page-id-92,.page-id-159)
.wp-block-post-content.rl4g-contact-ready
> .rl4g-contact-form-card {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: start !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 26px !important;
    border: 1px solid #E4E8ED !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    box-shadow: 0 8px 25px rgba(32,41,50,.06);
    box-sizing: border-box !important;
}

body:is(.page-id-92,.page-id-159)
.rl4g-contact-form-card .wpcf7
:is(input:not([type="submit"]), textarea, select) {
    box-sizing: border-box;
    max-width: 100%;
}

body.page-id-159 .rl4g-contact-info-card,
body.page-id-159 .rl4g-contact-form-card {
    direction: rtl;
    text-align: right;
}

body.page-id-92 .rl4g-contact-info-card,
body.page-id-92 .rl4g-contact-form-card {
    direction: ltr;
    text-align: left;
}

/* Mobile layout */
@media (max-width: 900px) {
    body:is(.page-id-92,.page-id-159)
    .wp-block-post-content.rl4g-contact-ready {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px !important;
        margin: 20px auto 40px !important;
    }

    body:is(.page-id-92,.page-id-159)
    .wp-block-post-content.rl4g-contact-ready
    > * {
        width: 100% !important;
        box-sizing: border-box;
    }

    body:is(.page-id-92,.page-id-159)
    .wp-block-post-content.rl4g-contact-ready
    > .rl4g-contact-info-card,
    body:is(.page-id-92,.page-id-159)
    .wp-block-post-content.rl4g-contact-ready
    > .rl4g-contact-form-card {
        padding: 21px !important;
    }
}

/* END RL4G PHASE54G CONTACT REPAIR */


/* RL4G PHASE54H FORM DETECTION */
