html {
  direction: rtl;
}

body {
  direction: rtl;
  text-align: right;
}

.force-rtl * {
  text-align: inherit;
}

/* Homepage: harden RTL text alignment (no layout changes) */
body.home .rng-feature__title,
body.home .rng-feature__excerpt,
body.home .rng-card__title,
body.home .rng-section-title,
body.home .rng-sec4__cat,
body.home .rng-sec4__headline{
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: right;
}

/* Homepage meta: keep numerals stable and align to RTL edge */
body.home .rng-meta{
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: right;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

/* Homepage: modern date/time styling */
body.home .rng-meta .post-date,
body.home .rng-meta .post-time{
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}
body.home .rng-meta .post-date{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: color-mix(in srgb, var(--text) 64%, transparent);
}
body.home .rng-meta .post-time{
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: color-mix(in srgb, var(--text) 84%, transparent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
}

/* Homepage top grid: meta should flow RTL (right-to-left) */
body.force-rtl.home .rng-top-grid .rng-meta,
body.rng-rtl.home .rng-top-grid .rng-meta{
  direction: rtl;
  unicode-bidi: plaintext;
  justify-content: flex-start;
}

/* Date/time must stay LTR even on RTL pages */
.post-date,
.post-time,
time[datetime],
.rng-meta .post-date,
.rng-meta .post-time,
.rng-archive-card__meta .post-date,
.rng-archive-card__meta .post-time{
  direction: ltr !important;
  unicode-bidi: isolate;
  text-align: left;
  display: inline-block;
}

.screen-reader-text{
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

@font-face{
  font-family: 'RaajjeMainFont';
  src: url('../fonts/raajje-main.woff2') format('woff2'),
       url('../fonts/raajje-main.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family:'RaajjeContentFont';
  src:url('../fonts/raajje-content.otf') format('opentype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family: 'RaajjeNewsTitleFont';
  src: url('../fonts/raajje-news-title.woff2') format('woff2'),
       url('../fonts/raajje-news-title.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root{
  /* Light Teak palette (warm neutrals) */
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f6f1e8;
  --text: #1f2328;
  --muted: #6b7280;
  --border: #e7dfd2;
  --shadow: 0 10px 30px rgba(20, 20, 20, .06);

  /* Teak accents */
  --accent: #c49a6c;
  --accent-rgb: 196,154,108;
  --accent-2: #b8834a;
  --accent-soft: rgba(var(--accent-rgb), .16);

  /* Radius + spacing */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --gap: 18px;
  --container: 1180px;

  /* Back-compat tokens used across theme */
  --line: var(--border);
  --card: var(--surface);

  /* Typography tokens (overridden by Customizer when fonts are uploaded) */
  --rng-font-base: 'RaajjeMainFont', sans-serif;
  --rng-font-menu: 'RaajjeNewsTitleFont', 'RaajjeMainFont', sans-serif;
  --rng-font-home-title: 'RaajjeNewsTitleFont', 'RaajjeMainFont', sans-serif;
  --rng-font-single-title: 'RaajjeNewsTitleFont', 'RaajjeMainFont', sans-serif;
  --rng-font-single-content: 'RaajjeContentFont', 'RaajjeMainFont', sans-serif;
  --rng-font-single-sidebar: 'RaajjeNewsTitleFont', 'RaajjeMainFont', sans-serif;
}

/* Scheme: Default (neutral) */
body[data-scheme="default"]{
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(17, 24, 39, .08);

  --accent: #2563eb;
  --accent-rgb: 37,99,235;
  --accent-2: #1d4ed8;
  --accent-soft: rgba(var(--accent-rgb), .12);
}

/* Scheme: Light Teak (warm) */
body[data-scheme="light_teak"]{
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f6f1e8;
  --text: #1f2328;
  --muted: #6b7280;
  --border: #e7dfd2;
  --shadow: 0 10px 30px rgba(20, 20, 20, .06);

  --accent: #c49a6c;
  --accent-rgb: 196,154,108;
  --accent-2: #b8834a;
  --accent-soft: rgba(var(--accent-rgb), .16);
}

/* Scheme: Dark */
body[data-scheme="dark"]{
  --bg: #0b0f14;
  --surface: #0f1620;
  --surface-2: #121b26;
  --text: #e5e7eb;
  --muted: rgba(229,231,235,.74);
  --border: rgba(229,231,235,.14);
  --shadow: 0 12px 34px rgba(0,0,0,.35);

  --accent: #c49a6c;
  --accent-rgb: 196,154,108;
  --accent-2: #d7b289;
  --accent-soft: rgba(var(--accent-rgb), .20);
}

/* Dark mode toggle (user preference) */
body.rng-dark-mode{
  color-scheme: dark;
  --bg: #0b0f14;
  --surface: #0f1620;
  --surface-2: #121b26;
  --text: #e5e7eb;
  --muted: rgba(229,231,235,.74);
  --border: rgba(229,231,235,.14);
  --shadow: 0 12px 34px rgba(0,0,0,.35);

  --line: var(--border);
  --card: var(--surface);
}

html, body{
  font-family: var(--rng-font-base);
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}

/* Single post content font (body text only; not headings) */
body.single .rng-single__main .entry-content{
  font-family: var(--rng-font-single-content);
}
.rng-single__main h1,
.rng-single__main h2,
.rng-single__main h3,
.rng-single__main h4,
.rng-single__main h5,
.rng-single__main h6{
  font-family: inherit;
}

/* Main menu font (Customizer) */
.rng-nav .rng-menu a{
  font-family: var(--rng-font-menu);
}

/* Homepage: article titles font (Customizer) */
body.home .rng-card__title,
body.home .rng-feature__title,
body.home .rng-sec4__headline{
  font-family: var(--rng-font-home-title);
}

/* Single post: main title font (Customizer) */
body.single .entry-title{
  font-family: var(--rng-font-single-title);
}

/* Single post: sidebar font (Customizer) */
body.single .rng-latest-side,
body.single .rng-latest-side__item,
body.single .rng-latest-side__title,
body.single .rng-latest-side__t{
  font-family: var(--rng-font-single-sidebar);
}

body.rng-rtl{
  direction: rtl;
}

a{ color: inherit; text-decoration: none; }

*:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .22);
  border-radius: 10px;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html, body{
  overflow-x: hidden;
}

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

iframe{
  max-width: 100%;
}

.rng-container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 14px;
}

.rng-header{ border-bottom: 1px solid var(--border); background: var(--surface); }
.rng-topbar{ border-bottom: 1px solid var(--border); background: var(--surface); }

.rng-topbar__inner{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap: 14px;
  padding: 16px 0;
  direction: ltr;
}

.rng-brandblock{
  justify-self: left;
  text-align: left;
  direction: ltr;
}
.rng-edition{
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: 6px;
}
.rng-site-name{
  display:inline-block;
  font-size: 28px;
  line-height: 1.15;
}

.rng-top-logo{
  justify-self: center;
}
.rng-logo img{
  height: 44px;
  width: auto;
  display:block;
}
.rng-logo-fallback{
  font-size: 22px;
}

.rng-social{
  justify-self: right;
  display:flex;
  align-items:center;
  gap: 10px;
}

.rng-search-toggle{
  border: 1px solid var(--line);
  background: var(--surface);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.rng-search-btn{
  border: 1px solid var(--line);
  background: transparent;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color: color-mix(in srgb, var(--text) 76%, transparent);
  transition: background-color .2s ease, border-color .2s ease;
}
.rng-search-btn svg{
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.rng-search-btn:hover{
  background: var(--accent-soft);
  border-color: rgba(var(--accent-rgb), .35);
}

.rng-search-open{
  overflow: hidden;
}

.rng-search-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.rng-search-modal[hidden]{
  display: none;
}
.rng-search-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.rng-search-modal__panel{
  position: relative;
  margin: 10vh auto 0;
  max-width: 560px;
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  direction: rtl;
  text-align: right;
}
.rng-search-modal__close{
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rng-search-modal__close:hover{
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.rng-search-modal__form{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding-top: 22px;
}
.rng-search-modal__input{
  width: 100%;
  padding: 14px 14px;
  font-size: 1.05rem;
  text-align: right;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
}
.rng-search-modal__input:focus{
  border-color: rgba(var(--accent-rgb), .55);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18);
}
.rng-search-modal__submit{
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), .35);
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--text) 86%, transparent);
  font-weight: 700;
  cursor: pointer;
}
.rng-search-modal__submit:hover{
  background: rgba(var(--accent-rgb), .22);
}
@media (max-width: 520px){
  .rng-search-modal__panel{
    margin: 12vh 12px 0;
  }
  .rng-search-modal__form{
    grid-template-columns: 1fr;
  }
  .rng-search-modal__submit{
    width: 100%;
  }
}

.rng-icon-link{
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 14px;
  color: var(--muted);
}
.rng-icon-link svg{
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Social icon buttons (header/footer) */
a.rng-social{
  width: 36px;
  height: 36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: color-mix(in srgb, var(--text) 72%, transparent);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
a.rng-social svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}
a.rng-social:hover{
  background: var(--accent-soft);
  border-color: rgba(var(--accent-rgb), .35);
  color: color-mix(in srgb, var(--text) 92%, transparent);
}

.rng-searchbar{
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.rng-searchbar .rng-search-form{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:center;
  direction: rtl;
}
.rng-search-form__label{
  flex: 1;
  max-width: 520px;
}
.rng-searchbar input[type="search"]{
  width:100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
}
.rng-search-form__submit{
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-family: inherit;
  cursor: pointer;
}
.rng-search-form__submit:hover{
  border-color: rgba(0,0,0,.18);
}

.rng-nav{ border-bottom: 1px solid var(--line); }

.rng-nav{
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.rng-nav__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  direction: ltr;
  padding: 10px 0;
}
.rng-nav__left{
  display:flex;
  align-items:center;
}
.rng-nav__right{
  display:flex;
  align-items:center;
  gap: 12px;
  direction: rtl;
}

.rng-home-link{
  width: 38px;
  height: 38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom: 2px solid transparent;
}
.rng-home-link[aria-current="page"]{
  border-bottom-color: var(--accent);
}

.nav-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  transition: all .2s ease;
}

.nav-home svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.nav-home:hover {
  background: var(--accent-soft);
}

.rng-menu{
  list-style:none;
  margin:0;
  padding:10px 0;
  display:flex;
  gap: 14px;
  overflow:auto;
  scrollbar-width: none;
}

.rng-menu-btn{
  display:none;
  border: 1px solid var(--border);
  background: transparent;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color: color-mix(in srgb, var(--text) 76%, transparent);
  transition: background-color .2s ease, border-color .2s ease;
}
.rng-menu-btn svg{
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.rng-menu-btn:hover{
  background: var(--accent-soft);
  border-color: rgba(var(--accent-rgb), .35);
}
.rng-nav__right .rng-menu{
  flex-direction: row-reverse;
  justify-content: flex-end;
  padding: 10px 0;
}
.force-rtl .rng-menu{
  flex-direction: row-reverse;
}
.rng-menu::-webkit-scrollbar{ display:none; }
.rng-menu li{ white-space:nowrap; }
.rng-menu a{
  display:inline-flex;
  align-items:center;
  padding: 8px 14px;
  border-radius: 10px;
  border-bottom: 2px solid transparent;
  color: color-mix(in srgb, var(--text) 76%, transparent);
  white-space: nowrap;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.rng-menu a:hover{
  background: var(--accent-soft);
  border-bottom-color: var(--accent);
}
.rng-menu .current-menu-item > a,
.rng-menu .current_page_item > a{
  background: var(--accent-soft);
  border-bottom-color: var(--accent);
}

.rng-menu .sub-menu{
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: auto;
  right: 0;
  text-align: right;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  z-index: 20;
}

.rng-menu li{
  position: relative;
}

.rng-menu li:hover > .sub-menu,
.rng-menu li:focus-within > .sub-menu{
  display: block;
}

.rng-menu .sub-menu a{
  display: block;
  padding: 8px 14px;
  border-radius: 0;
  font-weight: 600;
  background: transparent;
}

.rng-menu .sub-menu a:hover{
  background: var(--accent-soft);
}

.rng-main{ padding: 14px 0 26px; }

.rng-top-grid{ padding: 10px 0 14px; }

.rng-top-grid__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  direction: ltr;
}
.rng-top-grid__grid > *{
  direction: rtl;
  text-align: right;
}

.rng-top-grid__left{ order: 3; }
.rng-top-grid__middle{ order: 2; }
.rng-top-grid__right{ order: 1; }

.rng-top-grid__left{
  display:flex;
  align-self: stretch;
}

.rng-top-grid__left-inner{
  flex: 1;
  display: flex;
  height: 100%;
  width: 100%;
}

.rng-top-grid__left-inner > *{
  width: 100%;
}

.rng-top-grid__left-inner > .rng-ad{
  flex: 1;
}

.rng-ad{
  border: 1px solid var(--border);
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: var(--radius);
  background: var(--surface-2);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-2));
  min-height: 90px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
}
.rng-ad iframe,
.rng-ad img{
  max-width: 100%;
}
.rng-ad img{
  width: 100%;
  height: auto;
  display: block;
}
.rng-ad--placeholder::before{
  content:"Advertisement";
  font-size:.85rem;
  opacity:.75;
  color: color-mix(in srgb, var(--accent) 38%, var(--text));
}
.rng-ad--below-topgrid{
  margin: 14px 0;
}
.rng-ad--home-ad-1{
  margin: 14px 0;
}
.rng-ad--top-left{
  height: 100%;
  min-height: 260px;
}

.rng-compact-list{ list-style:none; margin:0; padding:0; display:grid; gap: 10px; }
.rng-compact__link{ display:flex; gap: 10px; align-items:flex-start; }
.rng-compact__thumb img{ width: 48px; height: 36px; object-fit: cover; border-radius: 4px; }
.rng-thumb--tiny{ width:48px; height:36px; background: #f2f2f2; border: 1px solid var(--line); border-radius: 4px; display:block; }
.rng-compact__title{ display:block; font-size: 15px; line-height: 1.65; font-weight: 600; }
.rng-compact__meta{ display:block; margin-top: 3px; font-size: 11px; color: color-mix(in srgb, var(--text) 45%, transparent); }

.force-rtl ul,
.force-rtl ol{
  padding-right: 1.2rem;
  padding-left: 0;
}

.force-rtl h1,
.force-rtl h2,
.force-rtl h3,
.force-rtl h4,
.force-rtl h5{
  text-align: right;
}

.rng-stack{ display:grid; gap: var(--gap); }

.rng-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.rng-card__link{ display:block; }
.rng-card__media{ aspect-ratio: 16/9; background: var(--surface-2); }
.rng-card__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.rng-thumb--placeholder{ width:100%; height:100%; background: var(--surface-2); }
.rng-card__title{
  margin: 10px 12px 6px;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 600;
}
.rng-card--medium .rng-card__title{ font-size: 18px; }
.rng-meta{
  margin: 0 12px 12px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  direction: ltr;
}

.rng-feature{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--surface);
  box-shadow: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.rng-feature__media{ aspect-ratio: 16/9; background: var(--surface-2); }
.rng-feature__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.rng-thumb--feature{ width:100%; height:100%; background: var(--surface-2); }
.rng-feature__content{ padding: 18px 18px 20px; }
.rng-feature__title{
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.45;
  font-weight: 700;
}
.rng-feature__excerpt{
  margin-top: 12px;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  line-height: 1.9;
  font-size: 15px;
}

.rng-card:hover,
.rng-feature:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(var(--accent-rgb), .35);
}

.rng-card--section .rng-card__media,
.rng-card--latest .rng-card__media{
  border-radius: 6px;
  overflow: hidden;
  border: 0;
}
.rng-card--section .rng-card__title,
.rng-card--latest .rng-card__title{
  margin: 8px 12px 6px;
  font-size: 18px;
  font-weight: 650;
}
.rng-card--section .rng-meta,
.rng-card--latest .rng-meta{
  margin: auto 12px 0;
  justify-content: flex-start;
}

/* RTL: do not left-align meta on cards */
body.rng-rtl .rng-card--section .rng-meta,
body.rng-rtl .rng-card--latest .rng-meta,
.force-rtl .rng-card--section .rng-meta,
.force-rtl .rng-card--latest .rng-meta{
  justify-content: flex-end;
}
.rng-card--section,
.rng-card--latest{
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.rng-card--section .rng-card__link,
.rng-card--latest .rng-card__link{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rng-ad-placeholder{
  margin: 18px 0 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}
.rng-ad-placeholder__inner{
  height: 68px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: color-mix(in srgb, var(--accent) 40%, var(--muted));
}

.rng-home-section{ padding: 16px 0; }
.rng-home-section--continue{
  padding-top: 10px;
}
.rng-continue-card{
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  border-radius: 22px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 10%, var(--surface)),
      color-mix(in srgb, var(--accent) 4%, var(--surface))
    );
  box-shadow: 0 18px 36px rgba(0, 0, 0, .08);
  overflow: hidden;
}
.rng-continue-card__link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
}
.rng-continue-card__body{
  min-width: 0;
}
.rng-continue-card__eyebrow{
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 55%, var(--muted));
}
.rng-continue-card__title{
  margin: 0;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.45;
}
.rng-continue-card__story{
  margin: 10px 0 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--text) 76%, transparent);
}
.rng-continue-card__button{
  flex: 0 0 auto;
  width: min(100%, 320px);
  min-height: 62px;
  padding: 10px 18px;
  text-align: center;
  white-space: normal;
  line-height: 1.55;
  font-size: 14px;
}
.rng-section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 12px;
}
.rng-section-title{ margin:0; font-size: 22px; line-height:1.4; }
.rng-section-more{ color: var(--muted); font-size: 13px; }

.rng-section-head--tight{
  border-top: 0;
  padding-top: 0;
}

/* Home category section heading: centered + modern styling */
body.home .rng-home-section--catgrid .rng-section-head--tight{
  justify-content: center;
  margin-bottom: 16px;
}
body.home .rng-home-section--catgrid .rng-section-title{
  position: relative;
  text-align: center;
  padding: 10px 18px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
body.home .rng-home-section--catgrid .rng-section-title::after{
  content:"";
  position:absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.rng-section-footer{
  display:flex;
  justify-content:center;
  padding: 18px 0 0;
}
.rng-more-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 110px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 700;
  transition: background-color .2s ease, border-color .2s ease;
}
.rng-more-btn:hover{
  background: rgba(var(--accent-rgb), .22);
  border-color: rgba(var(--accent-rgb), .35);
}


.rng-section-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 10px 0 2px;
}

.rng-page-tags{
  padding: 10px 0 6px;
}
.rng-page-tags__list{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.rng-tag-pill{
  display:inline-flex;
  align-items:center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  color: var(--text);
  font-weight: 700;
  line-height: 1;
  direction: rtl;
  unicode-bidi: plaintext;
}
.rng-tag-pill:hover{
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border-color: rgba(var(--accent-rgb), .35);
}

.rng-finished-stories__header{
  margin-bottom: 14px;
}
.rng-finished-stories__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 10px 0 4px;
}

/* Finished Stories Grid */
@media (min-width: 700px){
  .rng-finished-stories__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px){
  .rng-finished-stories__grid{ grid-template-columns: repeat(3, 1fr); }
}

/* Story Episode Grid */
@media (min-width: 700px){
  .rng-episode-list{ grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (min-width: 980px){
  .rng-episode-list{ grid-template-columns: repeat(3, 1fr); }
}
.rng-story-card__excerpt{
  padding: 0 12px 12px;
  color: color-mix(in srgb, var(--text) 74%, transparent);
  line-height: 1.9;
  font-size: 14px;
  text-align: right;
}
.rng-story-card .rng-card__title{
  text-align: right;
  direction: rtl;
  unicode-bidi: plaintext;
}
.raajje-story-card__excerpt{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rng-story-card__meta{
  margin: 0 12px 10px;
  align-items: center;
  justify-content: flex-end;
}
.rng-story-card__badge{
  display:inline-flex;
  align-items:center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  font-weight: 800;
  direction: rtl;
  unicode-bidi: plaintext;
}
.rng-story-card__count{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  font-weight: 800;
  direction: rtl;
  unicode-bidi: isolate;
}
.raajje-story-meta__count{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  font-weight: 800;
  direction: rtl;
  unicode-bidi: isolate;
}
.raajje-count-num{
  direction: ltr;
  unicode-bidi: plaintext;
}
.raajje-count-label{
  direction: rtl;
  unicode-bidi: plaintext;
}
.rng-finished-stories__pagination{
  padding: 14px 0 18px;
  text-align: center;
}

/* Stories UX (buttons + reader) */
.rng-story-card{
  display:flex;
  flex-direction: column;
}
.rng-story-card .rng-card__link{
  flex: 1;
}
.raajje-story-card__actions{
  display:flex;
  gap: 10px;
  padding: 0 12px 14px;
}
body.page-template-page-finished-stories .raajje-story-card__actions{
  margin-top: 5px;
}
.force-rtl .raajje-story-card__actions{
  flex-direction: row-reverse;
}
.raajje-story-btn{
  flex: 1;
  min-width: 0;
}
.raajje-story-btn--secondary{
  background: var(--surface);
}
.raajje-story-btn--disabled{
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.raajje-story-meta{
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  direction: ltr;
}
.rng-article--story .raajje-story-meta .rng-story-badge{
  margin-top: 0;
  height: 24px;
  padding-inline: 10px;
}
.rng-article--story .raajje-story-meta .raajje-story-meta__count{
  height: 24px;
}
.raajje-story-actions{
  display:flex;
  gap: 10px;
  margin: 0 0 14px;
}
.force-rtl .raajje-story-actions{
  flex-direction: row-reverse;
}
.raajje-reader{
  max-width: 860px;
  margin: 0 auto;
  line-height: 2.05;
  font-size: 16px;
}
.raajje-reader p{
  margin: 0 0 1em;
}
.raajje-episode-inline-ad{
  width: min(100%, 560px);
  margin: 18px auto 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  overflow: hidden;
}
.raajje-episode-inline-ad__link{
  display: block;
  text-decoration: none;
  color: inherit;
}
.raajje-episode-inline-ad__img{
  width: 100%;
  height: auto;
  display: block;
}
.single-raajje_episode .rng-article--episode .rng-article__title,
.single-raajje_episode .rng-article--episode .raajje-reader,
.single-raajje_episode .rng-article--episode .raajje-reader *{
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.raajje-episode-back-bottom{
  margin-top: 16px;
  display:flex;
  justify-content: center;
}

.raajje-episode-cover{
  width: min(100%, 360px);
  margin: 10px auto 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  aspect-ratio: 16/9;
}
.raajje-episode-cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.rng-story-badge{
  display:inline-flex;
  align-items:center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  font-weight: 800;
  margin-top: 10px;
}
.rng-story-badge--category{
  min-height: 36px;
  padding: 6px 18px;
  border-width: 1px;
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border));
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--accent) 24%, var(--surface)),
      color-mix(in srgb, var(--accent) 12%, var(--surface))
    );
  color: color-mix(in srgb, var(--text) 98%, var(--accent));
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .015em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.rng-story-cover{
  width: min(100%, 820px);
  margin: 10px auto 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  aspect-ratio: 16/9;
}
.rng-story-cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}
.rng-article--story .rng-article__header,
.rng-article--story .rng-story-synopsis,
.rng-article--story .raajje-story-actions{
  width: min(100%, 820px);
  margin-inline: auto;
}
.single-raajje_story .rng-article--story .rng-article__header{
  text-align: center;
}
.single-raajje_story .rng-article--story .rng-article__title{
  text-align: center;
}
.single-raajje_story .rng-article--story .raajje-story-meta{
  justify-content: center;
}
.single-raajje_story .rng-article--story .raajje-story-meta--categories,
.single-raajje_story .rng-article--story .raajje-story-actions{
  width: min(100%, 820px);
  margin-inline: auto;
  justify-content: center;
}
.single-raajje_story .rng-article--story .raajje-story-meta--categories{
  margin-top: -2px;
  margin-bottom: 14px;
}
.single-raajje_story .rng-article--story .raajje-story-actions{
  flex-wrap: wrap;
}
.rng-story-synopsis{
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  line-height: 1.9;
  color: color-mix(in srgb, var(--text) 82%, transparent);
}
.single-raajje_story .rng-story-episodes .rng-section-head{
  justify-content: center;
}
.single-raajje_story .rng-story-episodes .rng-section-title{
  text-align: center;
}
.rng-episode-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display:grid;
  gap: 10px;
}
.rng-episode-link{
  display:flex;
  gap: 10px;
  align-items: baseline;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.rng-episode-link:hover{
  border-color: rgba(var(--accent-rgb), .35);
  box-shadow: var(--shadow);
}
.rng-episode-link__num{
  min-width: 34px;
  height: 26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: var(--accent-soft);
  font-weight: 800;
  direction: ltr;
  unicode-bidi: plaintext;
}
.rng-episode-link__title{
  font-weight: 800;
  line-height: 1.75;
}
.rng-episode-back{
  display:inline-block;
  color: color-mix(in srgb, var(--text) 72%, transparent);
  margin-bottom: 6px;
}
.rng-episode-story{
  display: flex;
  justify-content: center;
  margin: 0 0 10px;
}
.rng-episode-back--story{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  color: color-mix(in srgb, var(--text) 84%, transparent);
}
.rng-episode-back--story:hover{
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border-color: rgba(var(--accent-rgb), .4);
  color: color-mix(in srgb, var(--text) 96%, transparent);
}
.rng-episode-title__num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 40px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-weight: 900;
  margin-inline-start: 10px;
  direction: ltr;
  unicode-bidi: plaintext;
}
.rng-episode-nav{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.rng-episode-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 130px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
  font-weight: 800;
}
.rng-episode-nav a:hover{
  background: rgba(var(--accent-rgb), .22);
  border-color: rgba(var(--accent-rgb), .35);
}
.single-raajje_episode .rng-episode-nav__next{
  order: -1;
}
.single-raajje_episode .rng-episode-nav__prev:only-child{
  margin-inline-start: auto;
}

@media (min-width: 980px){
  .single-raajje_episode .rng-single__main{
    max-width: 1100px;
    margin-inline: auto;
  }

  .single-raajje_episode .rng-article--episode{
    padding: 28px 34px 24px;
    border-radius: var(--radius-lg);
  }

  .single-raajje_episode .rng-article--episode .rng-article__header{
    width: min(100%, 980px);
    margin: 0 auto 18px;
    text-align: center;
  }

  .single-raajje_episode .rng-episode-story{
    margin-bottom: 12px;
  }

  .single-raajje_episode .rng-article__title{
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
    font-size: clamp(34px, 3.8vw, 60px);
    line-height: 1.2;
    text-align: center;
  }

  .single-raajje_episode .rng-episode-title__num{
    margin-inline-start: 0;
    min-width: 54px;
    height: 40px;
    font-size: 1.5rem;
  }

  .single-raajje_episode .raajje-episode-cover{
    width: min(100%, 640px);
    margin: 8px auto 22px;
    border-radius: 20px;
  }

  .single-raajje_episode .raajje-reader{
    max-width: 860px;
    margin-inline: auto;
    font-size: clamp(18px, 1.35vw, 23px);
    line-height: 2.05;
    text-align: right;
    direction: rtl;
    unicode-bidi: plaintext;
  }

  .single-raajje_episode .raajje-reader p{
    margin: 0 0 1.2em;
  }

  .single-raajje_episode .rng-episode-nav{
    width: min(100%, 860px);
    margin: 22px auto 0;
  }

  .single-raajje_episode .rng-episode-nav a{
    min-width: 170px;
    height: 46px;
    font-size: 1rem;
  }

  .single-raajje_episode .raajje-episode-back-bottom{
    margin-top: 22px;
  }
}

.rng-latest-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.rng-grid-ad{
  grid-column: 1 / -1;
}
/* Homepage: place existing ad blocks only after every 2 full rows of story cards */
body.home .rng-grid-ad--pos-1{ order: 25; }
body.home .rng-grid-ad--pos-2{ order: 45; }

.rng-home-load-more{
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.rng-home-load-more__button{
  min-width: min(260px, 100%);
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: color-mix(in srgb, var(--text) 90%, transparent);
  box-shadow: 0 12px 28px rgba(var(--accent-rgb), .16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  direction: rtl;
  unicode-bidi: plaintext;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.rng-home-load-more__button:hover{
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border-color: rgba(var(--accent-rgb), .42);
  box-shadow: 0 16px 30px rgba(var(--accent-rgb), .2);
}

.rng-home-load-more__button:disabled{
  cursor: wait;
  opacity: .76;
  transform: none;
  box-shadow: 0 10px 22px rgba(var(--accent-rgb), .12);
}

@media (min-width: 700px){
  body.home .rng-grid-ad--pos-1{ order: 45; }
  body.home .rng-grid-ad--pos-2{ order: 85; }
}

@media (min-width: 980px){
  body.home .rng-grid-ad--pos-1{ order: 65; }
  body.home .rng-grid-ad--pos-2{ order: 125; }
}

.rng-search-results{
  display:grid;
  gap: var(--gap);
}

.rng-search-item__link{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.rng-search-item__media{
  aspect-ratio: 16/9;
  overflow:hidden;
  border-radius: 10px;
  background: #f2f2f2;
}
.rng-search-item__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.rng-search-item__title{
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.55;
}
.rng-search-item__excerpt{
  color: color-mix(in srgb, var(--text) 74%, transparent);
  line-height: 1.85;
  font-size: 14px;
  margin-top: 8px;
}

/* Archive/category: clean RTL grid view */
.rng-archive{
  padding-top: 10px;
  padding-bottom: 28px;
}
.rng-archive__header{
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background: var(--surface);
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.rng-archive__header .rng-archive__title{
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
  text-align: center;
  width: 100%;
}
.rng-archive__meta{
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), .22);
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 55%, var(--text));
  font-size: 12px;
  text-align: center;
}
.rng-archive__header .rng-archive__desc{
  margin-top: 10px;
  color: color-mix(in srgb, var(--text) 72%, transparent);
  line-height: 1.9;
  text-align: center;
  width: 100%;
}
.rng-archive__divider{
  margin-top: 6px;
  width: 72px;
  height: 4px;
  border: 0;
  background: var(--accent);
  border-radius: 999px;
}
.rng-archive__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-top: 14px;
}

.rng-archive-card{
  border-bottom: 1px solid var(--border);
}
.rng-archive-card__link{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 10px 0 16px;
  text-decoration: none;
  color: inherit;
}
.rng-archive-card__media{
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f2f2f2;
  border-radius: 8px;
}
.rng-archive-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rng-archive-card__badge{
  position: absolute;
  top: 10px;
  right: 10px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: color-mix(in srgb, var(--text) 72%, transparent);
}
.rng-archive-card__title{
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 700;
  text-align: right;
}
.rng-archive-card__meta{
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  font-size: 12px;
  color: color-mix(in srgb, var(--text) 55%, transparent);
}
/* RTL: Category/Archive meta should align to the right edge */
body.rng-rtl .rng-archive-card__meta,
body.force-rtl .rng-archive-card__meta{
  direction: rtl;
  unicode-bidi: plaintext;
  justify-content: flex-start;
}
body.rng-rtl .rng-archive-card__meta .post-date,
body.rng-rtl .rng-archive-card__meta .post-time,
body.force-rtl .rng-archive-card__meta .post-date,
body.force-rtl .rng-archive-card__meta .post-time{
  direction: ltr;
  unicode-bidi: plaintext;
}
.rng-archive-card__excerpt{
  margin-top: 10px;
  color: color-mix(in srgb, var(--text) 72%, transparent);
  font-size: 14px;
  line-height: 1.9;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rng-archive-card:hover .rng-archive-card__title{
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Homepage Section 4: 3 feature cards with overlay */
.rng-sec4{
  margin: 30px 0 26px;
  padding-top: 6px;
}
.rng-sec4__head{
  text-align:center;
  margin-bottom: 22px;
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.rng-sec4__title{
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0;
  padding: 10px 18px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.rng-sec4__underline{
  width: 56px;
  height: 4px;
  margin: 0 auto 0;
  background: var(--accent);
  border-radius: 999px;
}
.rng-sec4__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  direction: ltr;
}
.rng-sec4__grid > *{
  direction: rtl;
}
.rng-sec4__card{
  position:relative;
  display:block;
  border-radius: 18px;
  overflow:hidden;
  text-decoration:none;
  color:#fff;
  min-height: 320px;
  background: #222;
}
.rng-sec4__img{
  position:absolute;
  inset:0;
}
.rng-sec4__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.rng-sec4__overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.15) 55%, rgba(0,0,0,0));
}
.rng-sec4__cat{
  font-size: .9rem;
  opacity: .85;
  margin-bottom: 6px;
  text-align:right;
}
.rng-sec4__headline{
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.55;
  text-align:right;
}
.rng-sec4__card:hover .rng-sec4__overlay{
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.18) 55%, rgba(0,0,0,0));
}
@media (max-width: 900px){
  .rng-sec4__grid{ grid-template-columns: 1fr; }
  .rng-sec4__card{ min-height: 260px; }
}

.pagination{
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.pagination .nav-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.pagination a,
.pagination span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: color-mix(in srgb, var(--text) 82%, transparent);
  background: var(--surface);
}
.pagination .current{
  border-color: rgba(var(--accent-rgb), .55);
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--text) 95%, transparent);
}
.pagination a:hover{
  border-color: rgba(var(--accent-rgb), .35);
  background: rgba(var(--accent-rgb), .14);
}

@media (min-width: 700px){
  .rng-archive__grid{ grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .rng-archive-card{ border-bottom: 0; }
  .rng-archive-card__link{
    padding: 0;
    gap: 12px;
  }
}

@media (min-width: 980px){
  .rng-archive__grid{ grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

/* Single post: left sidebar latest news */
.rng-single{
  margin: 0 auto;
  padding: 18px 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  direction: ltr;
}
.rng-single__sidebar,
.rng-single__main{
  direction: rtl;
  text-align: right;
}
@media (min-width: 980px){
  .rng-single{
    grid-template-columns: 320px 1fr;
    grid-template-areas: "sidebar main";
  }
  .rng-single__sidebar{
    grid-area: sidebar;
    align-self: start;
    height: fit-content;
  }
  .rng-single__main{ grid-area: main; }

  .single-sidebar-ad{
    position: sticky;
    top: 90px;
    align-self: start;
  }
  body.admin-bar .single-sidebar-ad{
    top: 122px;
  }
}
@media (max-width: 979px){
  .rng-single{
    grid-template-columns: 1fr;
    grid-template-areas: "main" "sidebar";
  }
  .rng-single__main{ grid-area: main; }
  .rng-single__sidebar{ grid-area: sidebar; }

  .single-sidebar-ad{
    position: static;
    top: auto;
  }
}

.rng-latest-side{
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.rng-latest-side__head{
  display:flex;
  justify-content:flex-start;
  direction: rtl;
  margin-bottom: 10px;
}
.rng-latest-side__title{
  font-size: 1.05rem;
  font-weight: 700;
  text-align: right;
  margin: 0;
  direction: rtl;
  unicode-bidi: plaintext;
  writing-mode: horizontal-tb;
  width: 100%;
}
.rng-latest-side__list{
  position: relative;
  display: grid;
  gap: 12px;
  padding-right: 0;
}
.rng-latest-side__list:before{
  content:"";
  position:absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), .35);
}
.rng-latest-side__item{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-left: 10px;
}
.rng-latest-side__link{
  display:block;
  text-decoration:none;
  color: inherit;
  text-align: right;
}
.rng-latest-side__t{
  display:block;
  font-weight: 700;
  line-height: 1.55;
}
.rng-latest-side__meta{
  display:block;
  margin-top: 6px;
  font-size: .85rem;
  opacity: .75;
}
.rng-latest-side__item:hover{
  border-color: rgba(var(--accent-rgb), .55);
}

.single-sidebar-ad{
  margin-top: 14px;
  border: 1px solid var(--border);
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 16px;
  background: var(--surface-2);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-2));
  overflow: hidden;
  padding: 12px;
}
.single-sidebar-ad--placeholder{
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: color-mix(in srgb, var(--accent) 38%, var(--text));
}
.single-sidebar-ad__placeholder-text{
  font-size: .95rem;
  opacity: .85;
}
.single-sidebar-ad__link{
  display: block;
  text-decoration: none;
  color: inherit;
}
.single-sidebar-ad__img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.single-sidebar-ad iframe,
.single-sidebar-ad img{
  max-width: 100%;
}
.single-sidebar-ad img{
  height: auto;
  display: block;
}

.rng-article{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 10px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.rng-article:hover{
  box-shadow: var(--shadow);
  border-color: rgba(var(--accent-rgb), .35);
}
.rng-article__header{
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(231,223,210,.9);
  margin-bottom: 14px;
}
.rng-article__title{
  margin: 0 0 10px;
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1.35;
  letter-spacing: 0;
}
.rng-article .rng-meta{
  color: var(--muted);
  font-size: 12px;
}
.rng-article__thumb{
  margin: 0 0 14px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
}
.rng-article__thumb img{
  width: 100%;
  height: auto;
  display: block;
}
.rng-article__content{
  font-size: 16px;
  line-height: 2.05;
  color: color-mix(in srgb, var(--text) 86%, transparent);
}
.rng-single__main .entry-content,
.rng-single__main .rng-article__content{
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 2.05;
  letter-spacing: 0;
  text-align: right;
}
.rng-single__main .entry-content p,
.rng-single__main .rng-article__content p{
  margin: 0 0 1rem;
}
.rng-article__content p{
  margin: 0 0 14px;
}
.rng-article__content h2,
.rng-article__content h3,
.rng-article__content h4{
  margin: 18px 0 10px;
  line-height: 1.5;
}

.rng-article__comments{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.rng-comment-title{
  margin: 0 0 14px;
  text-align: right;
  color: var(--accent-2);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  font-weight: 900;
}
.comments-title{
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: right;
}
.rng-comment-form{
  max-width: 560px;
  margin: 0 0 0 auto;
  display: grid;
  gap: 14px;
}
.rng-comment-form .rng-comment-field{
  margin: 0;
}
.rng-comment-form input[type="text"],
.rng-comment-form input[type="email"],
.rng-comment-form textarea{
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--text) 18%, var(--border));
  background: var(--surface);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--rng-font-single-content);
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  text-align: right;
  direction: rtl;
  unicode-bidi: plaintext;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rng-comment-form textarea{
  min-height: 240px;
  resize: vertical;
}
.rng-comment-form input[type="text"]::placeholder,
.rng-comment-form textarea::placeholder{
  color: color-mix(in srgb, var(--muted) 65%, transparent);
}
.rng-comment-form input[type="text"]:focus,
.rng-comment-form textarea:focus{
  border-color: rgba(var(--accent-rgb), .62);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18);
}
.rng-comment-submit-wrap{
  margin: 0;
  overflow: auto;
}
.rng-comment-submit{
  float: right;
  border: 0;
  border-radius: 10px;
  background: var(--accent-2);
  color: #fff;
  padding: 12px 26px;
  font-family: var(--rng-font-single-content);
  font-weight: 900;
  cursor: pointer;
  transition: transform .08s ease, filter .15s ease, background-color .15s ease;
}
.rng-comment-submit:hover{
  filter: brightness(.96);
}
.rng-comment-submit:active{
  transform: translateY(1px);
}
.rng-comment-submit:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .22);
}

.rng-comment-list{
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.rng-comment{
  margin: 0;
}
.rng-comment__card{
  background: color-mix(in srgb, var(--surface-2) 80%, var(--surface));
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.rng-comment__bar{
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: right;
  direction: rtl;
}
.rng-comment__author{
  font-family: var(--rng-font-single-content);
  font-weight: 900;
  font-size: 14px;
  color: color-mix(in srgb, var(--text) 82%, transparent);
}
.rng-comment__meta{
  font-size: 12px;
  color: color-mix(in srgb, var(--muted) 80%, transparent);
  display: inline-flex;
  gap: 10px;
  direction: ltr;
  unicode-bidi: plaintext;
}
.rng-comment__content{
  padding: 14px;
  font-family: var(--rng-font-single-content);
  font-size: 16px;
  line-height: 2.0;
  text-align: right;
  direction: rtl;
  unicode-bidi: plaintext;
}
.rng-comment__content p{
  margin: 0;
}
.rng-comment__footer{
  padding: 10px 14px 12px;
}
.rng-comment__footer .comment-reply-link{
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}
.rng-comment__footer .comment-reply-link:hover{
  color: var(--accent-2);
}

.rng-comment-notice{
  max-width: 560px;
  margin: 0 0 14px auto;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb), .28);
  background: rgba(var(--accent-rgb), .10);
  color: color-mix(in srgb, var(--text) 88%, transparent);
  text-align: right;
  direction: rtl;
  unicode-bidi: plaintext;
  line-height: 2.0;
  font-size: 14px;
}

.rng-footer{
  border-top: 1px solid var(--border);
  border-top-color: color-mix(in srgb, var(--accent) 24%, var(--border));
  background: var(--surface-2);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-2));
  padding: 26px 0 18px;
}
.rng-footer__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.rng-footer__col{
  text-align: right;
}
.rng-footer__logo{
  margin-bottom: 10px;
}
.rng-footer__site{
  font-weight: 800;
  font-size: 18px;
}
.rng-footer__desc{
  color: color-mix(in srgb, var(--text) 72%, transparent);
  line-height: 1.9;
  font-size: 13px;
}
.rng-footer__title{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: color-mix(in srgb, var(--accent) 58%, var(--text));
}
.rng-footer__links{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.rng-footer__links a{
  color: color-mix(in srgb, var(--text) 75%, transparent);
  text-decoration: none;
}
.rng-footer__links a:hover{
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.rng-footer__social{
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.rng-footer__bottom{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  border-top-color: color-mix(in srgb, var(--accent) 18%, var(--border));
}
.rng-footer__copyright{
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (min-width: 700px){
  .rng-footer__grid{
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 700px){
  .rng-section-grid{ grid-template-columns: repeat(2, 1fr); }
  .rng-latest-grid{ grid-template-columns: repeat(2, 1fr); }
  .rng-search-item__link{ grid-template-columns: 1fr 1.35fr; align-items: start; }
}

@media (max-width: 520px){
  .rng-continue-card__button{
    width: 100%;
    min-height: 56px;
    padding-inline: 14px;
    font-size: 13px;
  }
  .raajje-story-card__actions{
    flex-direction: column;
  }
  .raajje-story-actions{
    flex-direction: column;
  }
  .raajje-story-btn{
    width: 100%;
  }
}

@media (min-width: 980px){
  .rng-feature__title{
    font-size: 44px;
    line-height: 1.35;
  }
  .rng-feature__excerpt{
    font-size: 16px;
  }

  .rng-top-grid__grid{
    grid-template-columns: .8fr 1.1fr 1.6fr;
    align-items:start;
  }

  body:not(.rng-rtl) .rng-top-grid__left{ grid-column: 1; order: 1; }
  body:not(.rng-rtl) .rng-top-grid__middle{ grid-column: 2; order: 2; }
  body:not(.rng-rtl) .rng-top-grid__right{ grid-column: 3; order: 3; }

  .force-rtl .rng-top-grid__left{ grid-column: 1; order: 1; }
  .force-rtl .rng-top-grid__middle{ grid-column: 2; order: 2; }
  .force-rtl .rng-top-grid__right{ grid-column: 3; order: 3; }

  .rng-section-grid{ grid-template-columns: repeat(3, 1fr); }
  .rng-latest-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 699px){
  .rng-continue-card__link{
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
  .rng-continue-card__button{
    min-width: 0;
    width: 100%;
  }
  .rng-topbar__inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .rng-brandblock,
  .rng-social{
    justify-self: center;
    text-align: center;
  }
  .rng-nav__right{
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .rng-menu-btn{
    display:inline-flex;
  }

  /* Mobile: avoid back-to-back ad slots after top grid */
  .rng-top-grid__right{ order: 1; }
  .rng-top-grid__left{ order: 2; }
  .rng-top-grid__middle{ order: 3; }

  .rng-nav{
    position: relative;
  }

  .rng-nav__right .rng-menu{
    display:none;
  }

  .rng-nav--menu-open .rng-nav__right .rng-menu{
    display:flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    right: 14px;
    left: 14px;
    top: calc(100% + 10px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow);
    max-height: 60vh;
    overflow: auto;
  }

  .rng-nav--menu-open .rng-menu a{
    justify-content: flex-end;
    width: 100%;
  }
}

/* =========================================================
   Modern RTL top navigation (rng-topnav)
   ========================================================= */

.rng-header{
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

/* =========================================================
   Categories bar (second row, premium black)
   ========================================================= */

.rng-nav-row2{
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  background: rgba(var(--accent-rgb), .06);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.rng-nav-row2__inner{
  padding: 10px 16px 14px;
  display:flex;
  justify-content:center;
  gap: 12px;
  flex-wrap: wrap;
  direction: rtl;
}

.rng-cats-bar{
  position: relative;
  font-family: inherit;
}

.rng-cats-link{
  padding: 12px 26px;
  font-size: 17px;
  font-weight: 800;
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  gap: 12px;
  cursor:pointer;
  transition: .25s ease;
  font-family: inherit;
  line-height: 1;
  text-decoration: none;
  border: 1px solid rgba(var(--accent-rgb), .22);
  box-shadow: 0 12px 28px rgba(var(--accent-rgb), .22);
}

.rng-cats-link:hover{
  background: var(--accent);
  background: color-mix(in srgb, var(--accent) 84%, #000);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(var(--accent-rgb), .26);
}

.rng-cats-link svg{
  width: 16px;
  height: 16px;
  fill: #fff;
  transition: transform .25s ease;
}

.rng-cats-submenu{
  position:absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  min-width: 260px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(0,0,0,.18);
  padding: 10px;
  display:none;
  z-index: 99999;
}

.rng-cats-submenu::before{
  content: "";
  position: absolute;
  top: -10px;
  right: 0;
  left: 0;
  height: 10px;
}

.rng-cats-submenu a{
  display:block;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--text);
  text-decoration:none;
  text-align:right;
  transition: background .2s ease;
  font-family: inherit;
  font-weight: 700;
}

.rng-cats-submenu a:hover{
  background: var(--accent-soft);
}

.rng-cats-empty{
  padding: 12px 16px;
  border-radius: 14px;
  color: color-mix(in srgb, var(--text) 72%, transparent);
  text-align: right;
  font-family: inherit;
  font-weight: 700;
}

.rng-cats-item.is-open .rng-cats-submenu{
  display:block;
}

.rng-cats-item.is-open .rng-cats-link svg{
  transform: rotate(-180deg);
}

.rng-topnav{
  display: flex;
  direction: rtl;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
}

.rng-topnav__inner{
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  position: relative;
  direction: rtl;
}

.rng-topnav__social{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 40%;
  z-index: 5;
}
.rng-topnav__social .rng-icon-link{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 18%, var(--border));
}

.rng-topnav__right{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.rng-topnav__brand{
  display: inline-flex;
  align-items: center;
}

.rng-topnav__logo .custom-logo-link{
  display: inline-flex;
  align-items: center;
}

.rng-topnav__logo img{
  max-height: var(--rng-logo-max-height, 46px);
  max-width: min(280px, 52vw);
  width: auto;
  height: auto;
  display: block;
}

.rng-topnav__logo-link{
  display: inline-flex;
  align-items: center;
}

.rng-topnav__logo img.rng-header-logo--dark{ display: none; }
body.rng-dark-mode .rng-topnav__logo img.rng-header-logo--light{ display: none; }
body.rng-dark-mode .rng-topnav__logo img.rng-header-logo--dark{ display: block; }

.rng-header-logo{
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.10));
}
body.rng-dark-mode .rng-header-logo{
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.08));
}

.rng-theme-toggle{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  color: color-mix(in srgb, var(--text) 82%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .12s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.rng-theme-toggle:hover{
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.rng-theme-toggle:active{
  transform: translateY(0);
}
.rng-theme-toggle__icon{
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.rng-theme-toggle__icon--moon{ display: none; }
body.rng-dark-mode .rng-theme-toggle__icon--sun{ display: none; }
body.rng-dark-mode .rng-theme-toggle__icon--moon{ display: block; }

.rng-topnav__site-name{
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
}

.rng-center-menu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
  font-weight: 700;
  align-items: center;

  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: inherit;
}

.rng-center-menu a{
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  transition: background-color .2s ease;
  white-space: nowrap;
}

.rng-center-menu a:hover{
  background: var(--accent-soft);
}

.rng-center-menu a[aria-disabled="true"]{
  opacity: .5;
  pointer-events: none;
}

.rng-topnav__cats{
  position: relative;
}

.rng-topnav__cats-toggle{
  border: 0;
  background: #0f172a;
  color: #ffffff;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: filter .2s ease, transform .2s ease;
  font-family: inherit;
}

.rng-topnav__cats-toggle:hover{
  filter: brightness(1.06);
}

.rng-topnav__caret{
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: .9;
  margin-top: -2px;
}

/* Legacy selectors kept intentionally unused (markup now uses .rng-cats-menu) */

.rng-topnav__dropdown-list{
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 60vh;
  overflow: auto;
  font-family: inherit;
}

.rng-topnav__dropdown a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  transition: background-color .2s ease;
  font-family: inherit;
}

.rng-topnav__dropdown a:hover{
  background: var(--accent-soft);
}

/* Legacy selectors kept intentionally unused (markup now uses .rng-cats-menu) */

/* Writer page author block: swap placeholder for theme photo */
.aa-author-anim{
  font-family: inherit !important;
}
.aa-author-anim.has-photo .aa-imgText{
  display: none;
}
.aa-author-anim .aa-img{
  position: relative;
}
.aa-author-anim .aa-photo{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Writer Page (ލިޔުންތެރިޔާ) */
.raajje-author-page{
  padding: 18px 0 26px;
}
.raajje-author-hero{
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  position: relative;
  overflow: hidden;
}
.raajje-author-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 260px at 20% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  opacity: .55;
  pointer-events: none;
}
.raajje-author-hero__name{
  margin: 0 0 10px;
  font-size: clamp(28px, 2.4vw, 44px);
  line-height: 1.25;
  position: relative;
}
.raajje-author-taglines{
  display: grid;
  gap: 8px;
  position: relative;
}
.raajje-author-tagline{
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  color: color-mix(in srgb, var(--text) 86%, transparent);
  line-height: 1.8;
  unicode-bidi: plaintext;
}
.raajje-author-style-box{
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.raajje-author-style-box__title{
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.4;
}
.raajje-author-style-box__text{
  margin: 0;
  line-height: 2.0;
  unicode-bidi: plaintext;
}

.raajje-author-template{
  padding-block: 20px 30px;
}
.raajje-author-template__hero{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  box-shadow: var(--shadow);
  padding-block: 24px;
  padding-inline: clamp(16px, 2.4vw, 34px);
  position: relative;
  overflow: hidden;
  direction: ltr;
  text-align: center;
}
.raajje-author-template__hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 300px at 16% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 64%);
  opacity: .55;
  pointer-events: none;
}
.raajje-author-template__head,
.raajje-author-template__content{
  position: relative;
  z-index: 1;
  text-align: center;
}
.raajje-author-template__name{
  margin: 0;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.15;
  font-family: var(--rng-font-single-title);
  letter-spacing: .01em;
  text-align: center !important;
  width: 100%;
}
.raajje-author-template__subtitle{
  margin: 10px 0 0;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.7;
  color: color-mix(in srgb, var(--text) 84%, transparent);
  font-family: var(--rng-font-single-sidebar);
  unicode-bidi: plaintext;
  text-align: center;
}
.raajje-author-template__content{
  margin-block-start: 20px;
  direction: ltr;
  text-align: center;
}
.raajje-author-template__content > * + *{
  margin-block-start: 10px;
}
.raajje-author-template__content p,
.raajje-author-template__content li,
.raajje-author-template__content blockquote{
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 15%, var(--border));
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  border-radius: var(--radius);
  padding-block: 12px;
  padding-inline: 14px;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.9;
  font-family: var(--rng-font-single-content);
  unicode-bidi: plaintext;
  text-align: center;
}

.raajje-author-template__line{
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border)) !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), color-mix(in srgb, var(--accent) 4%, var(--surface)));
  font-family: var(--rng-font-single-title);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: .01em;
  color: color-mix(in srgb, var(--text) 92%, transparent);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  animation: raajje-author-line1-in .7s ease-out both, raajje-author-line1-glow 3.2s ease-in-out .8s infinite;
}

.raajje-author-template__line-1{
  animation-delay: .1s, .8s;
}

@keyframes raajje-author-line1-in{
  0%{
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }
  100%{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes raajje-author-line1-glow{
  0%,100%{
    box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
  }
  50%{
    box-shadow: 0 10px 24px rgba(var(--accent-rgb), .18);
  }
}

@media (prefers-reduced-motion: reduce){
  .raajje-author-template__line-1{
    animation: none;
  }
}
.raajje-author-template__content ul,
.raajje-author-template__content ol{
  direction: ltr;
  text-align: center;
  list-style-position: inside;
  padding-inline: 0;
}

@media (max-width: 720px){
  .raajje-author-hero{ padding: 16px; }
  .raajje-author-template__hero{
    padding-block: 18px;
    padding-inline: 14px;
  }
  .raajje-author-template__subtitle{
    margin-top: 8px;
  }
  .raajje-author-template__content{
    margin-block-start: 14px;
  }
}

@media (max-width: 900px){
  .rng-topnav{
    padding: 12px 14px;
  }

  .rng-topnav__inner{
    flex-wrap: wrap;
    gap: 10px;
  }

  .rng-topnav__right{
    width: 100%;
    justify-content: center;
  }

  .rng-topnav__brand{
    width: 100%;
    justify-content: center;
  }

  .rng-topnav__logo img{
    max-width: min(260px, 70vw);
  }

  .rng-center-menu{
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    order: 3;
  }

  .rng-topnav__right{
    order: 1;
  }

  .rng-topnav__dropdown{
    right: 0;
    left: 0;
    min-width: unset;
    width: 100%;
  }

  .rng-topnav__social{
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: none;
    order: 2;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding: 4px 0 0;
  }
  .rng-topnav__social .rng-icon-link{
    width: 30px;
    height: 30px;
    border-radius: 10px;
    flex: 0 0 auto;
  }

  .rng-nav-row2__inner{
    padding: 10px 14px 14px;
  }

  .rng-cats-submenu{
    right: 0;
    left: 0;
    min-width: unset;
    width: 100%;
  }
}
