/* RankGhar — main stylesheet
 * Layout concept: deep-green hero band with a faint rank-chart grid, then calm white reading
 * column (760px) with wide (1120px) card rows; saffron is reserved for calls to action and the
 * rising bars of the mark. Logical properties throughout so Arabic (RTL) pages mirror cleanly.
 */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--rg-ink: #0E1C2B;
	--rg-text: #26313D;
	--rg-muted: #5A6673;
	--rg-bg: #F6F7F4;
	--rg-surface: #FFFFFF;
	--rg-line: #E1E6E0;
	--rg-brand: #0B3B32;
	--rg-brand-2: #0F6B57;
	--rg-brand-soft: #E3F1EC;
	--rg-on-brand: #FFFFFF;
	--rg-accent: #F4B23E;
	--rg-accent-ink: #2B1D00;
	--rg-focus: #2F7FE0;

	--rg-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
	--rg-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--rg-arabic: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

	--rg-radius: 14px;
	--rg-wrap: 1180px;
	--rg-read: 760px;
	--rg-gutter: clamp(16px, 4vw, 32px);
	--rg-shadow: 0 1px 2px rgba(14, 28, 43, .06), 0 8px 24px rgba(14, 28, 43, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--rg-bg); color: var(--rg-text); font: 400 17px/1.7 var(--rg-body); text-rendering: optimizeLegibility; }
.rg-rtl, .rg-rtl body, [dir="rtl"] body { font-family: var(--rg-arabic); }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--rg-brand-2); text-underline-offset: .18em; }
a:hover { color: var(--rg-brand); }
:focus-visible { outline: 3px solid var(--rg-focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--rg-display); color: var(--rg-ink); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; margin: 0 0 .5em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: var(--rg-arabic); letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 650; }
h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 650; }
p { margin: 0 0 1.1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.rg-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--rg-ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.rg-skip:focus { top: 12px; }

.rg-wrap { width: 100%; max-width: var(--rg-wrap); margin-inline: auto; padding-inline: var(--rg-gutter); }
.rg-wrap--narrow { max-width: calc(var(--rg-read) + 2 * var(--rg-gutter)); }
.rg-icon { width: 1.2em; height: 1.2em; flex: none; }

/* Buttons */
.rg-btn { display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; padding: .8em 1.25em; border-radius: 999px; font: 600 16px/1.2 var(--rg-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background-color .15s, box-shadow .15s; }
[dir="rtl"] .rg-btn { font-family: var(--rg-arabic); }
[dir="rtl"] .rg-btn .rg-icon { transform: scaleX(-1); }
.rg-btn--primary { background: var(--rg-accent); color: var(--rg-accent-ink); }
.rg-btn--primary:hover { background: #F7C25F; color: var(--rg-accent-ink); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(244, 178, 62, .35); }
.rg-btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.rg-btn--ghost:hover { background: rgba(255, 255, 255, .08); color: inherit; }
.rg-btn--dark { background: var(--rg-brand); color: var(--rg-on-brand); }
.rg-btn--dark:hover { background: var(--rg-brand-2); color: var(--rg-on-brand); }

/* Header */
.rg-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--rg-line); }
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would make it the containing
 * block for position:fixed children, and the mobile menu panel would open inside the header. */
.rg-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.admin-bar .rg-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rg-header { top: 0; } }
.rg-header.is-scrolled { box-shadow: 0 6px 20px rgba(14, 28, 43, .07); }
.rg-header__bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.rg-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--rg-ink); flex: none; }
.rg-logo__word { font: 600 23px/1 var(--rg-display); letter-spacing: -.02em; color: var(--rg-ink); }
.rg-logo__word b { color: var(--rg-brand-2); font-weight: 750; }
.rg-logo__img { max-height: 44px; width: auto; }
/* Navigation
 * Desktop: items fill the full header height and dropdowns start exactly at the header's bottom edge,
 * so the pointer never crosses a gap. Closing is delayed slightly so diagonal moves do not close it.
 * Mobile: a checkbox toggles the panel and each submenu, so the menu works even when JavaScript is
 * delayed or blocked by a caching/optimisation plugin. */
.rg-nav-check, .rg-sub-check { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.rg-nav { display: flex; align-items: stretch; align-self: stretch; gap: 18px; margin-inline-start: auto; }
.rg-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: stretch; }
.rg-menu > li { position: relative; display: flex; align-items: center; }
.rg-nav__cta { align-self: center; }
.rg-menu a { display: block; white-space: nowrap; padding: 10px 12px; color: var(--rg-ink); text-decoration: none; font-weight: 550; font-size: 15.5px; border-radius: 8px; }
.rg-menu a:hover, .rg-menu .current-menu-item > a, .rg-menu .current-menu-ancestor > a { color: var(--rg-brand-2); background: var(--rg-brand-soft); }
.rg-sub-toggle { border: 0; background: none; padding: 6px 4px; margin-inline-start: -8px; cursor: pointer; color: var(--rg-muted); display: inline-flex; align-items: center; }
.rg-sub-toggle .rg-icon { width: 16px; height: 16px; transition: transform .2s; }
.rg-menu .sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; inset-inline-start: 0; min-width: 250px; max-height: calc(100vh - 100px); overflow-y: auto; background: var(--rg-surface); border: 1px solid var(--rg-line); border-radius: 0 0 var(--rg-radius) var(--rg-radius); box-shadow: var(--rg-shadow); opacity: 0; visibility: hidden; transition: opacity .15s ease .12s, visibility 0s linear .27s; z-index: 60; }
.rg-menu .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transition: none; box-shadow: none; border: 0; padding: 0 0 6px; min-width: 0; max-height: none; overflow: visible; }
.rg-menu .sub-menu a { font-size: 14.5px; padding: 7px 10px; font-weight: 500; }
@media (min-width: 1081px) {
	.rg-menu > li:hover > .sub-menu, .rg-menu > li:focus-within > .sub-menu, .rg-menu > li.is-open > .sub-menu, .rg-menu > li > .rg-sub-check:checked ~ .sub-menu { opacity: 1; visibility: visible; transition: opacity .15s ease 0s, visibility 0s linear 0s; }
	.rg-menu > li:hover > .rg-sub-toggle .rg-icon, .rg-menu > li.is-open > .rg-sub-toggle .rg-icon, .rg-menu > li > .rg-sub-check:checked + .rg-sub-toggle .rg-icon { transform: rotate(180deg); }
	/* Mega menu: add CSS class "rg-mega" to a top-level item. Anchored to the header, full content width. */
	.rg-menu > li.rg-mega { position: static; }
	.rg-menu > li.rg-mega > .sub-menu { left: 0; right: 0; width: min(100%, calc(var(--rg-wrap) - 2 * var(--rg-gutter))); margin-inline: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 18px; padding: 20px; }
	.rg-menu > li.rg-mega > .sub-menu > li > a { font-weight: 700; color: var(--rg-ink); font-size: 15px; }
	.rg-menu > li.rg-mega > .sub-menu > li > .sub-menu a { color: var(--rg-muted); padding: 4px 10px; }
	.rg-menu .sub-menu .rg-sub-toggle { display: none; }
}
.rg-header__bar { position: relative; }
@media (min-width: 1081px) and (max-width: 1260px) {
	.rg-header__bar { gap: 14px; }
	.rg-nav { gap: 10px; }
	.rg-menu a { padding: 10px 8px; font-size: 14.5px; }
	.rg-sub-toggle { margin-inline-start: -6px; padding-inline: 2px; }
	.rg-nav__cta { padding-inline: 16px; font-size: 14.5px; }
}
.rg-nav-toggle { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--rg-line); border-radius: 10px; padding: 8px; color: var(--rg-ink); cursor: pointer; align-self: center; }
.rg-nav-toggle__close { display: none; }
@media (max-width: 1080px) {
	.rg-nav-toggle { display: inline-flex; }
	.rg-nav { display: none; position: fixed; inset: var(--rg-nav-top, 73px) 0 0; z-index: 55; background: var(--rg-surface); flex-direction: column; align-items: stretch; padding: 16px var(--rg-gutter) 40px; overflow-y: auto; gap: 16px; }
	.admin-bar .rg-nav { inset-block-start: var(--rg-nav-top, 119px); }
	.rg-nav.is-open, .rg-nav-check:checked ~ .rg-nav { display: flex; }
	.rg-nav-check:checked ~ .rg-nav-toggle .rg-nav-toggle__open, .rg-nav-toggle[aria-expanded="true"] .rg-nav-toggle__open { display: none; }
	.rg-nav-check:checked ~ .rg-nav-toggle .rg-nav-toggle__close, .rg-nav-toggle[aria-expanded="true"] .rg-nav-toggle__close { display: inline; }
	.rg-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.rg-menu li { display: flex; flex-wrap: wrap; align-items: center; }
	.rg-menu > li { border-bottom: 1px solid var(--rg-line); }
	.rg-menu > li > a { flex: 1; padding: 14px 4px; font-size: 17px; }
	.rg-sub-toggle { padding: 12px; margin: 0; }
	.rg-menu .sub-menu { position: static; width: 100%; opacity: 1; visibility: visible; transition: none; box-shadow: none; border: 0; border-radius: 0; max-height: none; overflow: visible; padding: 0 0 12px 12px; display: none; }
	.rg-menu .sub-menu .sub-menu { padding-inline-start: 12px; }
	.rg-menu .sub-menu li > a { flex: 1; }
	.rg-menu li.is-open > .sub-menu, .rg-sub-check:checked ~ .sub-menu { display: block; }
	.rg-sub-check:checked + .rg-sub-toggle .rg-icon, .rg-menu li.is-open > .rg-sub-toggle .rg-icon { transform: rotate(180deg); }
	.rg-nav__cta { justify-content: center; }
}
.rg-sub-check:focus-visible + .rg-sub-toggle, .rg-nav-check:focus-visible ~ .rg-nav-toggle { outline: 3px solid var(--rg-focus); outline-offset: 2px; }

/* Breadcrumbs */
.rg-crumbs { font-size: 14px; color: rgba(255, 255, 255, .72); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.rg-crumbs a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.rg-crumbs a:hover { color: #fff; text-decoration: underline; }
.rg-crumbs__sep, .rg-crumbs .separator { opacity: .5; margin-inline: 2px; }

/* Hero */
.rg-hero { position: relative; overflow: hidden; color: #E7F0EC; background-color: var(--rg-brand); background-image:
	linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
	linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px),
	radial-gradient(120% 90% at 100% 0%, #14594A 0%, transparent 55%);
	background-size: 56px 56px, 56px 56px, 100% 100%; padding-block: clamp(44px, 7vw, 92px) clamp(48px, 7vw, 96px); }
.rg-hero::after { content: ""; position: absolute; inset-inline-end: max(2vw, 12px); bottom: 0; width: min(26vw, 320px); height: 62%; background:
	linear-gradient(var(--rg-accent), var(--rg-accent)) 0 100% / 16% 34% no-repeat,
	linear-gradient(rgba(244, 178, 62, .75), rgba(244, 178, 62, .75)) 28% 100% / 16% 52% no-repeat,
	linear-gradient(rgba(244, 178, 62, .5), rgba(244, 178, 62, .5)) 56% 100% / 16% 72% no-repeat,
	linear-gradient(rgba(244, 178, 62, .3), rgba(244, 178, 62, .3)) 84% 100% / 16% 92% no-repeat; opacity: .16; pointer-events: none; }
.rg-hero__inner { position: relative; z-index: 1; }
.rg-hero__title { color: #fff; max-width: 17ch; margin-bottom: .35em; }
.rg-hero--home .rg-hero__title { max-width: 15ch; font-size: clamp(38px, 6.4vw, 74px); }
.rg-hero__lead { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.6; max-width: 62ch; color: #CFE2DA; margin-bottom: 28px; }
.rg-eyebrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 650; font-size: 13.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--rg-accent); margin-bottom: 14px; }
[dir="rtl"] .rg-eyebrow { letter-spacing: 0; }
.rg-eyebrow a { color: inherit; text-decoration: none; }
.rg-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.rg-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14.5px; color: #CFE2DA; }
.rg-trust li { display: inline-flex; align-items: center; gap: 8px; }
.rg-trust .rg-icon { color: var(--rg-accent); }
.rg-hero--post, .rg-hero--archive { padding-block: clamp(36px, 5vw, 64px); }
.rg-hero--post .rg-hero__title { max-width: 24ch; font-size: clamp(32px, 4.4vw, 50px); }
.rg-post-meta { color: #CFE2DA; font-size: 15px; margin: 0; }
.rg-hero .rg-search { max-width: 520px; }

/* Content column */
.rg-article { background: var(--rg-surface); padding-block: clamp(40px, 6vw, 80px); }
.rg-content { padding-inline: var(--rg-gutter); }
.rg-content > * { max-width: var(--rg-read); margin-inline: auto; }
.rg-content > .rg-wide, .rg-content > .alignwide { max-width: calc(var(--rg-wrap) - 2 * var(--rg-gutter)); }
.rg-content > h2 { margin-top: 1.9em; }
.rg-content > h2:first-child { margin-top: 0; }
.rg-content > h3 { margin-top: 1.5em; }
.rg-content ul:not([class]), .rg-content ol:not([class]) { padding-inline-start: 1.3em; }
.rg-content li { margin-bottom: .4em; }
.rg-content strong { color: var(--rg-ink); }
.rg-content blockquote { border-inline-start: 4px solid var(--rg-accent); margin-block: 1.6em; padding: .4em 0 .4em 1.2em; font-size: 1.1em; color: var(--rg-ink); }
.rg-lead-p { font-size: 1.15em; color: var(--rg-ink); }

.rg-checklist { list-style: none; padding: 0; margin-block: 0 1.4em; display: grid; gap: 10px; }
.rg-checklist li { position: relative; padding-inline-start: 32px; margin: 0; }
.rg-checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: var(--rg-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6B57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

.rg-steps { list-style: none; counter-reset: s; padding: 0; margin-block: 0 1.6em; display: grid; gap: 14px; }
.rg-steps > li { counter-increment: s; position: relative; padding: 18px 20px 18px 66px; background: var(--rg-bg); border-radius: var(--rg-radius); margin: 0; }
[dir="rtl"] .rg-steps > li { padding: 18px 66px 18px 20px; }
.rg-steps > li::before { content: counter(s); position: absolute; inset-inline-start: 18px; top: 18px; width: 32px; height: 32px; border-radius: 10px; background: var(--rg-brand); color: #fff; font: 700 15px/32px var(--rg-display); text-align: center; }
.rg-steps strong { display: block; margin-bottom: 2px; }

.rg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; margin-block: 1.6em 2em; }
.rg-card { background: var(--rg-surface); border: 1px solid var(--rg-line); border-radius: var(--rg-radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rg-card h3 { margin: 0 0 4px; font-size: 19px; }
.rg-card p { margin: 0; font-size: 15.5px; color: var(--rg-muted); }
.rg-card a.rg-card__link { margin-top: auto; padding-top: 10px; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.rg-card .rg-icon { color: var(--rg-brand-2); width: 28px; height: 28px; margin-bottom: 6px; }
a.rg-card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.rg-card:hover { border-color: var(--rg-brand-2); transform: translateY(-2px); box-shadow: var(--rg-shadow); }

.rg-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; margin-block: 1.6em; }
.rg-split > div { min-width: 0; }
.rg-panel { background: var(--rg-bg); border-radius: var(--rg-radius); padding: 24px; }
.rg-panel h3 { margin-top: 0; }

.rg-callout { background: var(--rg-brand-soft); border-inline-start: 4px solid var(--rg-brand-2); border-radius: 0 var(--rg-radius) var(--rg-radius) 0; padding: 18px 22px; margin-block: 1.6em; }
[dir="rtl"] .rg-callout { border-radius: var(--rg-radius) 0 0 var(--rg-radius); }
.rg-callout p:last-child { margin: 0; }
.rg-note { font-size: 14.5px; color: var(--rg-muted); }

.rg-table { overflow-x: auto; margin-block: 1.4em 2em; border: 1px solid var(--rg-line); border-radius: var(--rg-radius); }
.rg-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
.rg-table th, .rg-table td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--rg-line); vertical-align: top; }
.rg-table thead th { background: var(--rg-bg); font-weight: 650; color: var(--rg-ink); font-size: 14px; }
.rg-table tr:last-child td { border-bottom: 0; }
.rg-table td:first-child { font-weight: 600; color: var(--rg-ink); }

.rg-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 18px; margin-block: 1.6em 2em; }
.rg-price { border: 1px solid var(--rg-line); border-radius: var(--rg-radius); padding: 26px; background: var(--rg-surface); display: flex; flex-direction: column; gap: 8px; }
.rg-price--featured { border: 2px solid var(--rg-brand-2); box-shadow: var(--rg-shadow); }
.rg-price h3 { margin: 0; }
.rg-price__amount { font: 700 30px/1.1 var(--rg-display); color: var(--rg-ink); font-variant-numeric: tabular-nums; }
.rg-price__amount small { font: 500 14px var(--rg-body); color: var(--rg-muted); }
.rg-price ul { margin: 6px 0 0; }

.rg-chips { list-style: none; margin-block: 16px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rg-chips a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; font-size: 14.5px; border: 1px solid rgba(255, 255, 255, .2); }
.rg-chips a:hover, .rg-chips a[aria-current] { background: var(--rg-accent); color: var(--rg-accent-ink); border-color: var(--rg-accent); }
.rg-content .rg-chips { margin-block: 0 1.6em; }
.rg-content .rg-chips a, .rg-chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--rg-bg); color: var(--rg-ink); border: 1px solid var(--rg-line); font-size: 14.5px; text-decoration: none; }
.rg-list-x { list-style: none; padding: 0; margin-block: 0 1.4em; display: grid; gap: 10px; }
.rg-list-x li { position: relative; padding-inline-start: 32px; margin: 0; }
.rg-list-x li::before { content: "×"; position: absolute; inset-inline-start: 0; top: .1em; width: 20px; height: 20px; border-radius: 50%; background: #FBEBEB; color: #B42318; font: 700 15px/20px var(--rg-body); text-align: center; }

/* FAQ */
.rg-faq { background: var(--rg-bg); padding-block: clamp(44px, 6vw, 80px); }
.rg-faq__list { display: grid; gap: 10px; }
.rg-faq__item { background: var(--rg-surface); border: 1px solid var(--rg-line); border-radius: var(--rg-radius); }
.rg-faq__item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 650; color: var(--rg-ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.rg-faq__item summary::-webkit-details-marker { display: none; }
.rg-faq__item summary .rg-icon { transition: transform .2s; color: var(--rg-brand-2); }
.rg-faq__item[open] summary .rg-icon { transform: rotate(180deg); }
.rg-faq__a { padding: 0 20px 6px; color: var(--rg-text); }

/* Related */
.rg-related { background: var(--rg-surface); padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rg-line); }
.rg-related__h { margin-bottom: 22px; }
.rg-related__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.rg-related__card { display: flex; flex-direction: column; gap: 4px; position: relative; height: 100%; padding: 18px 46px 18px 18px; border: 1px solid var(--rg-line); border-radius: var(--rg-radius); text-decoration: none; color: var(--rg-text); background: var(--rg-surface); transition: border-color .15s, box-shadow .15s; }
[dir="rtl"] .rg-related__card { padding: 18px 18px 18px 46px; }
.rg-related__card:hover { border-color: var(--rg-brand-2); box-shadow: var(--rg-shadow); color: var(--rg-text); }
.rg-related__title { font-weight: 650; color: var(--rg-ink); }
.rg-related__text { font-size: 14.5px; color: var(--rg-muted); }
.rg-related__arrow { position: absolute; inset-inline-end: 16px; top: 20px; color: var(--rg-brand-2); }
[dir="rtl"] .rg-related__arrow { transform: scaleX(-1); }

/* CTA + form */
.rg-cta { background: var(--rg-ink); color: #D6DEE6; padding-block: clamp(48px, 7vw, 96px); }
.rg-cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .rg-cta__inner { grid-template-columns: minmax(0, 1fr); } }
.rg-cta h2 { color: #fff; }
.rg-cta .rg-checklist li::before { background-color: rgba(255, 255, 255, .12); }
.rg-cta__mail { display: flex; gap: 8px; align-items: center; }
.rg-cta__mail a { color: var(--rg-accent); }
.rg-cta__form { background: var(--rg-surface); color: var(--rg-text); border-radius: 18px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); min-width: 0; }

.rg-form { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rg-form .rg-field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .rg-form { grid-template-columns: minmax(0, 1fr); } }
.rg-field { display: grid; gap: 6px; min-width: 0; }
.rg-field label { font-weight: 600; font-size: 14.5px; color: var(--rg-ink); }
.rg-field input, .rg-field select, .rg-field textarea, .rg-search input, .rg-tool input, .rg-tool select { width: 100%; font: inherit; font-size: 16px; color: var(--rg-ink); background: var(--rg-surface); border: 1.5px solid var(--rg-line); border-radius: 10px; padding: 11px 13px; }
.rg-field textarea { min-height: 120px; resize: vertical; }
.rg-field input:focus, .rg-field select:focus, .rg-field textarea:focus, .rg-search input:focus, .rg-tool input:focus, .rg-tool select:focus { outline: none; border-color: var(--rg-brand-2); box-shadow: 0 0 0 3px rgba(15, 107, 87, .18); }
.rg-hp { position: absolute !important; inset-inline-start: -9999px; }
.rg-form__note { font-size: 13.5px; color: var(--rg-muted); margin: 0; }
.rg-form__status { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.rg-form__status.is-ok { color: var(--rg-brand-2); }
.rg-form__status.is-error { color: #B42318; }
.rg-form button[disabled] { opacity: .6; cursor: progress; }
.rg-search { display: flex; gap: 8px; }
.rg-search .rg-btn { padding-inline: 16px; }

/* Tools */
.rg-tool { background: var(--rg-bg); border: 1px solid var(--rg-line); border-radius: 18px; padding: clamp(18px, 3vw, 30px); margin-block: 1.4em 2em; }
.rg-tool__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-bottom: 14px; }
.rg-tool__result { margin-top: 18px; display: grid; gap: 10px; }
.rg-tool__check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--rg-surface); border-radius: 10px; border: 1px solid var(--rg-line); }
.rg-tool__check b { min-width: 64px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.rg-tool__check.is-pass b { color: var(--rg-brand-2); }
.rg-tool__check.is-warn b { color: #A15C00; }
.rg-tool__check.is-fail b { color: #B42318; }
.rg-tool__total { font: 700 34px/1.1 var(--rg-display); color: var(--rg-ink); font-variant-numeric: tabular-nums; }

/* Blog */
.rg-archive { padding-block: clamp(36px, 5vw, 64px); }
.rg-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.rg-post-card a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border-radius: var(--rg-radius); background: var(--rg-surface); border: 1px solid var(--rg-line); text-decoration: none; color: var(--rg-text); transition: border-color .15s, box-shadow .15s; }
.rg-post-card a:hover { border-color: var(--rg-brand-2); box-shadow: var(--rg-shadow); }
.rg-post-card__img { border-radius: 10px; margin-bottom: 6px; }
.rg-post-card__meta { font-size: 13.5px; color: var(--rg-muted); }
.rg-post-card__title { font: 650 20px/1.3 var(--rg-display); color: var(--rg-ink); }
.rg-post-card__text { font-size: 15.5px; color: var(--rg-muted); }
.rg-post-thumb { max-width: calc(var(--rg-read) + 160px); margin: 0 auto 32px; padding-inline: var(--rg-gutter); }
.rg-post-thumb img { border-radius: var(--rg-radius); }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--rg-line); background: var(--rg-surface); text-decoration: none; color: var(--rg-ink); }
.nav-links .current { background: var(--rg-brand); color: #fff; border-color: var(--rg-brand); }
.rg-empty { font-size: 18px; }

/* Footer */
.rg-footer { background: #0A1622; color: #A8B4C0; font-size: 15px; padding-block: 64px 28px; }
.rg-footer a { color: #DDE5EC; text-decoration: none; }
.rg-footer a:hover { color: var(--rg-accent); }
.rg-footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 900px) { .rg-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rg-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .rg-footer__top { grid-template-columns: minmax(0, 1fr); } }
.rg-logo--footer .rg-logo__word { color: #fff; }
.rg-logo--footer .rg-logo__word b { color: var(--rg-accent); }
.rg-footer__about { margin: 16px 0; max-width: 40ch; }
.rg-footer__contact { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; }
.rg-footer__contact .rg-icon { color: var(--rg-accent); }
.rg-footer__title { font: 650 15px/1.3 var(--rg-body); color: #fff; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.rg-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rg-social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 10px; }
.rg-social a { display: inline-flex; padding: 8px; border: 1px solid #243345; border-radius: 10px; }
.rg-footer__offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; margin-top: 44px; padding-top: 28px; border-top: 1px solid #1C2A3A; }
.rg-office { display: flex; gap: 12px; align-items: flex-start; }
.rg-office .rg-icon { color: var(--rg-accent); margin-top: 3px; }
.rg-office strong { color: #fff; display: block; }
.rg-office address { font-style: normal; }
.rg-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid #1C2A3A; font-size: 14px; }
.rg-footer__bottom p { margin: 0; }
.rg-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }

/* WhatsApp (shown only after a number is saved in settings) */
.rg-wa { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #1FAF5A; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.rg-wa .rg-icon { width: 28px; height: 28px; }
.rg-wa:hover { color: #fff; transform: scale(1.05); }

/* WordPress core alignment helpers */
.alignleft { float: inline-start; margin-inline-end: 1.4em; }
.alignright { float: inline-end; margin-inline-start: 1.4em; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--rg-muted); }
