/**
 * Arab Results Theme — Main Styles
 * Premium Arabic RTL · Mobile-first · Dark mode · High-traffic mode
 */

/* ==========================================================================
   Layout
   ========================================================================== */

.ar-container {
	width: 100%;
	max-width: var(--ar-container);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.ar-container--narrow {
	max-width: 720px;
}

.ar-container--wide {
	max-width: 1280px;
}

.ar-main {
	min-height: calc(100vh - var(--ar-header-height) - 220px);
}

.ar-content-area {
	padding-block: 2.5rem 3.5rem;
}

.ar-section {
	padding-block: var(--ar-space-section);
}

.ar-section--alt {
	background: var(--ar-bg-muted);
}

.ar-section__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
}

.ar-section__header--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-inline: auto;
	max-width: 36rem;
}

.ar-section__eyebrow {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--ar-teal);
	margin-bottom: 0.5rem;
}

.ar-section__title {
	font-family: var(--ar-font-display);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: var(--ar-ink);
	margin: 0;
}

[data-theme="dark"] .ar-section__title {
	color: var(--ar-text);
}

.ar-section__desc {
	margin: 0.5rem 0 0;
	color: var(--ar-text-muted);
	font-size: 1.0625rem;
	max-width: 36rem;
}

.ar-section__header--center .ar-section__desc {
	margin-inline: auto;
}

.ar-section__footer {
	margin-top: 2rem;
	display: flex;
	justify-content: flex-start;
}

.ar-section__footer--center {
	justify-content: center;
}

.ar-section__empty {
	color: var(--ar-text-muted);
	text-align: center;
	padding: 2rem;
	grid-column: 1 / -1;
}

.ar-link {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--ar-teal);
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

/* ==========================================================================
   Reveal motion
   ========================================================================== */

[data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	[data-reveal],
	.ar-country-card,
	.ar-tool-card,
	.ar-post-card,
	.ar-stat-card,
	.ar-result-listing-card {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.ar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 1.35rem;
	border-radius: var(--ar-radius-sm);
	border: 1.5px solid transparent;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.3;
	text-decoration: none;
	transition: background var(--ar-transition), color var(--ar-transition),
		border-color var(--ar-transition), box-shadow var(--ar-transition),
		transform var(--ar-transition);
	white-space: nowrap;
}

.ar-btn .ar-icon {
	width: 1.1em;
	height: 1.1em;
	flex-shrink: 0;
}

.ar-btn--primary {
	background: var(--ar-ink);
	color: #fff;
	border-color: var(--ar-ink);
}

.ar-btn--primary:hover {
	background: var(--ar-ink-soft);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--ar-shadow-md);
}

.ar-btn--secondary {
	background: var(--ar-teal);
	color: #fff;
	border-color: var(--ar-teal);
}

.ar-btn--secondary:hover {
	background: var(--ar-teal-dark);
	color: #fff;
	transform: translateY(-1px);
}

.ar-btn--outline {
	background: transparent;
	color: var(--ar-ink);
	border-color: var(--ar-border-strong);
}

[data-theme="dark"] .ar-btn--outline {
	color: var(--ar-text);
}

.ar-btn--outline:hover {
	border-color: var(--ar-teal);
	color: var(--ar-teal);
	background: var(--ar-teal-soft);
}

.ar-btn--ghost {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.28);
}

.ar-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.ar-btn--text {
	background: none;
	border: none;
	color: var(--ar-teal);
	padding: 0.25rem 0.5rem;
}

.ar-btn--sm {
	padding: 0.45rem 0.9rem;
	font-size: 0.875rem;
}

.ar-btn--lg {
	padding: 0.9rem 1.75rem;
	font-size: 1.0625rem;
	border-radius: var(--ar-radius);
}

.ar-btn--submit {
	min-width: 8rem;
}

.ar-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

/* ==========================================================================
   Cards & badges
   ========================================================================== */

.ar-card {
	background: var(--ar-card);
	border: 1px solid var(--ar-border);
	border-radius: var(--ar-radius);
	padding: 1.5rem;
	box-shadow: var(--ar-shadow);
}

.ar-card--elevated {
	box-shadow: var(--ar-shadow-md);
	border-color: transparent;
}

.ar-card--primary {
	background: linear-gradient(135deg, var(--ar-ink) 0%, var(--ar-ink-soft) 55%, #0D4A5C 100%);
	color: #fff;
	border: none;
}

.ar-card--primary h2,
.ar-card--primary p {
	color: #fff;
}

.ar-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.28rem 0.7rem;
	border-radius: var(--ar-radius-pill);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.01em;
}

.ar-badge--success,
.ar-badge--available {
	background: var(--ar-teal-soft);
	color: var(--ar-teal-dark);
}

[data-theme="dark"] .ar-badge--success,
[data-theme="dark"] .ar-badge--available {
	color: var(--ar-secondary-light);
}

.ar-badge--now,
.ar-badge--gold {
	background: var(--ar-gold-soft);
	color: #9A6B0A;
}

[data-theme="dark"] .ar-badge--now,
[data-theme="dark"] .ar-badge--gold {
	color: #F5C84C;
}

.ar-badge--warning,
.ar-badge--soon {
	background: rgba(217, 119, 6, 0.12);
	color: #B45309;
}

[data-theme="dark"] .ar-badge--warning,
[data-theme="dark"] .ar-badge--soon {
	color: #FBBF24;
}

.ar-badge--pending,
.ar-badge--review {
	background: rgba(100, 116, 139, 0.14);
	color: #475569;
}

[data-theme="dark"] .ar-badge--pending,
[data-theme="dark"] .ar-badge--review {
	color: #CBD5E1;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.ar-form-group {
	margin-bottom: 1.25rem;
}

.ar-form-group label,
.ar-form-label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.45rem;
	color: var(--ar-text);
}

.ar-form-input,
.ar-form-group input,
.ar-form-group select,
.ar-form-group textarea,
.ar-search-form select,
.ar-search-form input[type="text"],
.ar-search-form input[type="email"],
.ar-search-form input[type="number"],
.ar-site-search input,
.ar-region-filter__input,
.ar-newsletter__form input,
.ar-contact-form input,
.ar-contact-form textarea,
.ar-contact-form select {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--ar-border);
	border-radius: var(--ar-radius-sm);
	background: var(--ar-card);
	color: var(--ar-text);
	transition: border-color var(--ar-transition), box-shadow var(--ar-transition);
	appearance: none;
}

.ar-form-group select,
.ar-search-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 1rem center;
	padding-inline-start: 2.5rem;
}

.ar-form-group input:focus,
.ar-form-group select:focus,
.ar-form-group textarea:focus,
.ar-search-form select:focus,
.ar-search-form input:focus,
.ar-site-search input:focus,
.ar-region-filter__input:focus,
.ar-newsletter__form input:focus,
.ar-contact-form input:focus,
.ar-contact-form textarea:focus {
	outline: none;
	border-color: var(--ar-teal);
	box-shadow: 0 0 0 3px var(--ar-teal-soft);
}

.ar-form-group textarea,
.ar-contact-form textarea {
	min-height: 140px;
	resize: vertical;
}

/* ==========================================================================
   Icons
   ========================================================================== */

.ar-icon {
	width: 1.25rem;
	height: 1.25rem;
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

.ar-icon svg,
svg.ar-icon {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

/* ==========================================================================
   Alert Bar
   ========================================================================== */

.ar-alert-bar {
	background: var(--ar-alert-bg);
	color: var(--ar-alert-text);
	font-size: 0.875rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ar-alert-bar__inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-block: 0.65rem;
}

.ar-alert-bar__inner .ar-icon {
	opacity: 0.85;
	color: var(--ar-teal);
}

.ar-alert-bar__inner p {
	margin: 0;
	flex: 1;
}

.ar-alert-bar__close {
	background: rgba(255, 255, 255, 0.08);
	border: none;
	font-size: 1.15rem;
	cursor: pointer;
	color: inherit;
	padding: 0.2rem 0.55rem;
	line-height: 1;
	border-radius: var(--ar-radius-xs);
	transition: background var(--ar-transition);
}

.ar-alert-bar__close:hover {
	background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   Header
   ========================================================================== */

.ar-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: color-mix(in srgb, var(--ar-card) 92%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--ar-border);
}

.ar-header__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: var(--ar-header-height);
}

.ar-header__brand {
	flex-shrink: 0;
}

.ar-header__logo-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--ar-text);
}

.ar-header__mark {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(145deg, var(--ar-ink) 0%, var(--ar-teal) 120%);
	display: grid;
	place-items: center;
	color: #fff;
	font-family: var(--ar-font-display);
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: -0.02em;
	box-shadow: 0 4px 14px rgba(10, 37, 64, 0.22);
	flex-shrink: 0;
}

.ar-header__logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.ar-header__logo-primary {
	font-family: var(--ar-font-display);
	font-weight: 800;
	font-size: 1.05rem;
	color: var(--ar-ink);
}

[data-theme="dark"] .ar-header__logo-primary {
	color: var(--ar-text);
}

.ar-header__logo-secondary {
	font-size: 0.7rem;
	font-weight: 500;
	color: var(--ar-text-muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ar-header__toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 10px;
	margin-inline-start: auto;
	background: var(--ar-bg-muted);
	border: 1px solid var(--ar-border);
	border-radius: var(--ar-radius-sm);
	order: 3;
}

.ar-header__toggle-bar {
	display: block;
	height: 2px;
	background: var(--ar-ink);
	border-radius: 2px;
	transition: transform var(--ar-transition), opacity var(--ar-transition);
}

[data-theme="dark"] .ar-header__toggle-bar {
	background: var(--ar-text);
}

.ar-header__toggle[aria-expanded="true"] .ar-header__toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.ar-header__toggle[aria-expanded="true"] .ar-header__toggle-bar:nth-child(2) {
	opacity: 0;
}

.ar-header__toggle[aria-expanded="true"] .ar-header__toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.ar-nav {
	display: none;
	position: absolute;
	top: 100%;
	inset-inline: 0;
	background: var(--ar-card);
	border-bottom: 1px solid var(--ar-border);
	box-shadow: var(--ar-shadow-md);
	padding: 1rem 1.25rem 1.25rem;
}

.ar-nav.is-open {
	display: block;
}

.ar-nav__list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.ar-nav__link {
	display: block;
	padding: 0.7rem 0.85rem;
	color: var(--ar-text);
	font-weight: 600;
	font-size: 0.9375rem;
	border-radius: var(--ar-radius-sm);
	transition: background var(--ar-transition), color var(--ar-transition);
}

.ar-nav__link:hover,
.ar-nav__item.current-menu-item > .ar-nav__link,
.ar-nav__list > .current_page_item > a {
	background: var(--ar-teal-soft);
	color: var(--ar-teal-dark);
}

.ar-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.ar-header__search-btn span {
	display: none;
}

.ar-dark-toggle {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	background: var(--ar-bg-muted);
	border: 1px solid var(--ar-border);
	border-radius: var(--ar-radius-sm);
	color: var(--ar-text);
	transition: background var(--ar-transition), border-color var(--ar-transition);
}

.ar-dark-toggle:hover {
	border-color: var(--ar-teal);
	color: var(--ar-teal);
}

@media (min-width: 992px) {
	.ar-header__toggle {
		display: none;
	}

	.ar-nav {
		display: block;
		position: static;
		background: none;
		border: none;
		box-shadow: none;
		padding: 0;
		flex: 1;
	}

	.ar-nav__list {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 0.15rem;
	}

	.ar-nav__link {
		padding: 0.5rem 0.85rem;
		font-size: 0.9rem;
	}

	.ar-header__search-btn span {
		display: inline;
	}

	.ar-header__actions {
		order: 3;
	}
}

/* ==========================================================================
   Stage quick-nav strip
   ========================================================================== */

.ar-stage-nav {
	background: var(--ar-card);
	border-bottom: 1px solid var(--ar-border);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.ar-stage-nav::-webkit-scrollbar {
	display: none;
}

.ar-stage-nav__inner {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-block: 0.75rem;
	min-width: max-content;
}

.ar-stage-nav__label {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--ar-text-muted);
	white-space: nowrap;
	margin-inline-end: 0.35rem;
}

.ar-stage-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.9rem;
	border-radius: var(--ar-radius-pill);
	background: var(--ar-bg);
	border: 1px solid var(--ar-border);
	color: var(--ar-text);
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
	transition: background var(--ar-transition), border-color var(--ar-transition),
		color var(--ar-transition), transform var(--ar-transition);
}

.ar-stage-nav__link:hover {
	border-color: var(--ar-teal);
	color: var(--ar-teal);
	background: var(--ar-teal-soft);
	transform: translateY(-1px);
}

.ar-country-switcher {
	position: relative;
	margin-inline-start: auto;
}

.ar-country-switcher__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.95rem;
	border-radius: var(--ar-radius-pill);
	border: 1px solid var(--ar-ink);
	background: var(--ar-ink);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.ar-country-switcher__menu {
	position: absolute;
	inset-inline-end: 0;
	top: calc(100% + 0.4rem);
	z-index: 40;
	width: min(22rem, 86vw);
	max-height: 20rem;
	overflow: auto;
	padding: 0.4rem;
	border-radius: var(--ar-radius);
	border: 1px solid var(--ar-border);
	background: var(--ar-card);
	box-shadow: var(--ar-shadow-lg, 0 12px 32px rgba(10, 37, 64, 0.14));
}

.ar-country-switcher__item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.55rem;
	align-items: center;
	padding: 0.55rem 0.65rem;
	border-radius: calc(var(--ar-radius) - 2px);
	color: var(--ar-text);
	font-size: 0.875rem;
	font-weight: 600;
}

.ar-country-switcher__item small {
	color: var(--ar-text-muted);
	font-weight: 500;
	font-size: 0.75rem;
}

.ar-country-switcher__item:hover,
.ar-country-switcher__item.is-active {
	background: var(--ar-teal-soft);
	color: var(--ar-ink);
}

.ar-country-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 1.1rem;
}

.ar-country-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	border-radius: var(--ar-radius-pill);
	border: 1px solid var(--ar-border);
	background: var(--ar-card);
	color: var(--ar-text);
	font-size: 0.78rem;
	font-weight: 600;
	white-space: nowrap;
	transition: border-color var(--ar-transition), background var(--ar-transition), color var(--ar-transition);
}

.ar-country-pill:hover,
.ar-country-pill.is-active {
	border-color: var(--ar-teal);
	background: var(--ar-teal-soft);
	color: var(--ar-ink);
}

.ar-portal-hero {
	text-align: center;
}

.ar-portal-hero__flag {
	display: block;
	font-size: 3rem;
	line-height: 1;
	margin-bottom: 0.5rem;
}

.ar-portal-meta {
	color: var(--ar-text-muted);
	font-size: 0.95rem;
}

.ar-radio-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.ar-search-form__flag {
	font-size: 1.5rem;
	line-height: 1;
}

.ar-search-results {
	margin-top: 1.25rem;
}

.ar-search-form__messages.is-error {
	color: var(--ar-danger);
	margin-bottom: 0.75rem;
	font-weight: 600;
}


.ar-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(2.5rem, 6vw, 4rem) 0;
	background: linear-gradient(145deg, var(--ar-hero-from) 0%, var(--ar-hero-via) 48%, var(--ar-hero-to) 130%);
	color: #fff;
}

.ar-hero__mesh {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 70% 60% at 85% 15%, rgba(0, 168, 150, 0.35) 0%, transparent 55%),
		radial-gradient(ellipse 50% 45% at 10% 80%, rgba(14, 90, 120, 0.4) 0%, transparent 50%),
		radial-gradient(circle at 50% 50%, transparent 40%, rgba(6, 24, 40, 0.25) 100%);
	opacity: 0.9;
}

.ar-hero__inner {
	position: relative;
	z-index: 1;
}

.ar-hero__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 1.25rem;
}

.ar-hero__brand-mark {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.22);
	display: grid;
	place-items: center;
	font-family: var(--ar-font-display);
	font-weight: 800;
	font-size: 1.15rem;
	backdrop-filter: blur(8px);
}

.ar-hero__brand-name {
	font-family: var(--ar-font-display);
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.ar-hero__brand-en {
	display: block;
	font-size: 0.75rem;
	font-weight: 500;
	opacity: 0.7;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-top: 0.1rem;
}

.ar-hero__title {
	font-family: var(--ar-font-display);
	font-size: clamp(1.75rem, 4.5vw, 2.75rem);
	font-weight: 800;
	line-height: 1.25;
	color: #fff;
	margin: 0 0 1rem;
	max-width: 18ch;
}

.ar-hero__subtitle {
	font-size: clamp(1rem, 2vw, 1.125rem);
	line-height: 1.75;
	opacity: 0.88;
	margin: 0 0 1.75rem;
	max-width: 38rem;
	font-weight: 400;
}

.ar-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2.5rem;
}

.ar-hero__panel {
	position: relative;
	z-index: 2;
	margin-top: 0.5rem;
	margin-bottom: -3rem;
	background: var(--ar-card);
	border-radius: var(--ar-radius);
	box-shadow: var(--ar-shadow-lg);
	padding: 1.5rem 1.25rem 1.75rem;
	border: 1px solid var(--ar-border);
	color: var(--ar-text);
}

@media (min-width: 768px) {
	.ar-hero__panel {
		padding: 1.75rem 2rem 2rem;
		margin-bottom: -3.5rem;
	}
}

.ar-hero__panel-title {
	font-family: var(--ar-font-display);
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
	color: var(--ar-ink);
}

[data-theme="dark"] .ar-hero__panel-title {
	color: var(--ar-text);
}

.ar-hero__panel-desc {
	margin: 0 0 1.25rem;
	color: var(--ar-text-muted);
	font-size: 0.9375rem;
}

.ar-hero-spacer {
	height: 3.5rem;
	background: var(--ar-bg);
}

@media (min-width: 768px) {
	.ar-hero-spacer {
		height: 4rem;
	}
}

/* ==========================================================================
   Search form wizard
   ========================================================================== */

.ar-search-form {
	position: relative;
}

.ar-search-form__progress {
	height: 4px;
	background: var(--ar-bg-muted);
	border-radius: var(--ar-radius-pill);
	overflow: hidden;
	margin-bottom: 1.25rem;
}

.ar-search-form__progress-bar {
	height: 100%;
	background: linear-gradient(90deg, var(--ar-teal), var(--ar-ink));
	border-radius: inherit;
	transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ar-search-form__steps-indicator {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	margin-bottom: 1.5rem;
}

.ar-search-form__step-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ar-border-strong);
	transition: background var(--ar-transition), transform var(--ar-transition), width var(--ar-transition);
}

.ar-search-form__step-dot.is-active {
	background: var(--ar-teal);
	width: 22px;
	border-radius: var(--ar-radius-pill);
}

.ar-search-form__step-dot.is-complete {
	background: var(--ar-ink);
}

.ar-search-form__messages {
	min-height: 0;
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.ar-search-form__messages.is-error {
	color: var(--ar-danger);
	padding: 0.65rem 0.9rem;
	background: rgba(220, 38, 38, 0.08);
	border-radius: var(--ar-radius-sm);
	margin-bottom: 1rem;
}

.ar-search-form__step {
	border: none;
	padding: 0;
	margin: 0 0 1.5rem;
	min-height: 8rem;
	animation: ar-fade-in 0.3s ease;
}

.ar-search-form__step legend {
	font-family: var(--ar-font-display);
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 1rem;
	padding: 0;
	color: var(--ar-ink);
}

[data-theme="dark"] .ar-search-form__step legend {
	color: var(--ar-text);
}

.ar-search-form__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.65rem;
}

.ar-search-form__grid--2 {
	grid-template-columns: 1fr;
}

@media (min-width: 480px) {
	.ar-search-form__grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.ar-search-form__grid--2 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ar-search-form__option {
	cursor: pointer;
	margin: 0;
}

.ar-search-form__option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ar-search-form__option-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.85rem 0.5rem;
	border: 1.5px solid var(--ar-border);
	border-radius: var(--ar-radius-sm);
	background: var(--ar-bg);
	text-align: center;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ar-text);
	transition: border-color var(--ar-transition), background var(--ar-transition),
		box-shadow var(--ar-transition), transform var(--ar-transition);
	min-height: 4.5rem;
}

.ar-search-form__option-inner img {
	border-radius: 3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.ar-search-form__option:hover .ar-search-form__option-inner {
	border-color: var(--ar-teal);
	transform: translateY(-2px);
}

.ar-search-form__option input:checked + .ar-search-form__option-inner,
.ar-search-form__option input:focus-visible + .ar-search-form__option-inner {
	border-color: var(--ar-teal);
	background: var(--ar-teal-soft);
	box-shadow: 0 0 0 3px var(--ar-teal-soft);
}

.ar-search-form__grid--2 .ar-search-form__option-inner {
	flex-direction: row;
	min-height: auto;
	padding: 0.9rem 1rem;
}

.ar-search-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: flex-start;
	padding-top: 0.25rem;
	border-top: 1px solid var(--ar-border);
	margin-top: 0.5rem;
	padding-top: 1.25rem;
}

.ar-search-form__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1.5rem;
	color: var(--ar-text-muted);
}

.ar-search-form--compact .ar-search-form__step {
	min-height: 6rem;
}

.ar-search-page-form {
	max-width: 720px;
	margin-inline: auto;
}

@keyframes ar-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Stats strip
   ========================================================================== */

.ar-stats-section {
	padding-block: 2.5rem;
}

.ar-stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

@media (min-width: 768px) {
	.ar-stats-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 1.25rem;
	}
}

.ar-stat-card {
	background: var(--ar-card);
	border: 1px solid var(--ar-border);
	border-radius: var(--ar-radius);
	padding: 1.35rem 1.25rem;
	text-align: center;
	box-shadow: var(--ar-shadow);
	transition: transform var(--ar-transition), box-shadow var(--ar-transition);
}

.ar-stat-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--ar-shadow-hover);
}

.ar-stat-card__icon {
	width: 1.75rem;
	height: 1.75rem;
	color: var(--ar-teal);
	margin-inline: auto 0;
	margin-bottom: 0.65rem;
}

.ar-stat-card__value {
	display: block;
	font-family: var(--ar-font-display);
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--ar-ink);
	line-height: 1.2;
}

[data-theme="dark"] .ar-stat-card__value {
	color: var(--ar-text);
}

.ar-stat-card__label {
	display: block;
	font-size: 0.8125rem;
	color: var(--ar-text-muted);
	margin-top: 0.35rem;
	font-weight: 500;
}

/* ==========================================================================
   Countries grid
   ========================================================================== */

.ar-countries-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.85rem;
}

@media (min-width: 640px) {
	.ar-countries-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 992px) {
	.ar-countries-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 1.1rem;
	}
}

.ar-country-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	padding: 1.35rem 1rem;
	background: var(--ar-card);
	border: 1px solid var(--ar-border);
	border-radius: var(--ar-radius);
	box-shadow: var(--ar-shadow);
	text-decoration: none;
	color: var(--ar-text);
	text-align: center;
	transition: transform var(--ar-transition), box-shadow var(--ar-transition),
		border-color var(--ar-transition);
}

.ar-country-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ar-shadow-hover);
	border-color: color-mix(in srgb, var(--ar-teal) 40%, var(--ar-border));
	color: var(--ar-text);
}

.ar-country-card__flag img {
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(10, 37, 64, 0.12);
}

.ar-country-card__name {
	font-family: var(--ar-font-display);
	font-weight: 700;
	font-size: 1.05rem;
}

.ar-country-card__count {
	font-size: 0.75rem;
	color: var(--ar-text-muted);
}

.ar-country-card__chip {
	margin-top: 0.15rem;
}

.ar-country-card--lg {
	padding: 1.75rem 1.25rem;
}

.ar-country-card--lg .ar-country-card__name {
	font-size: 1.2rem;
}

/* ==========================================================================
   Available results list
   ========================================================================== */

.ar-results-list {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.ar-result-listing-card {
	display: grid;
	gap: 0.75rem;
	padding: 1.25rem 1.35rem;
	transition: transform var(--ar-transition), box-shadow var(--ar-transition);
}

.ar-result-listing-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--ar-shadow-hover);
}

.ar-result-listing-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.ar-result-listing-card__date {
	font-size: 0.8125rem;
	color: var(--ar-text-muted);
}

.ar-result-listing-card__title {
	font-family: var(--ar-font-display);
	font-size: 1.05rem;
	margin: 0;
}

.ar-result-listing-card__title a {
	color: var(--ar-ink);
}

[data-theme="dark"] .ar-result-listing-card__title a {
	color: var(--ar-text);
}

.ar-result-listing-card__title a:hover {
	color: var(--ar-teal);
}

.ar-result-listing-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	font-size: 0.875rem;
	color: var(--ar-text-muted);
}

.ar-result-listing-card__meta span::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--ar-teal);
	margin-inline-end: 0.4rem;
	vertical-align: middle;
}

.ar-result-listing-card .ar-btn {
	justify-self: start;
}

@media (min-width: 640px) {
	.ar-result-listing-card {
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.ar-result-listing-card__header,
	.ar-result-listing-card__title,
	.ar-result-listing-card__meta {
		grid-column: 1;
	}

	.ar-result-listing-card .ar-btn {
		grid-column: 2;
		grid-row: 1 / span 3;
		align-self: center;
	}
}

/* Region filter */
.ar-region-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	align-items: center;
}

.ar-region-filter__input {
	flex: 1;
	min-width: 200px;
	max-width: 360px;
}

.ar-region-filter__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.ar-region-filter__chip {
	padding: 0.35rem 0.85rem;
	border-radius: var(--ar-radius-pill);
	border: 1px solid var(--ar-border);
	background: var(--ar-card);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ar-text-muted);
	cursor: pointer;
	transition: all var(--ar-transition);
}

.ar-region-filter__chip:hover,
.ar-region-filter__chip.is-active {
	background: var(--ar-ink);
	border-color: var(--ar-ink);
	color: #fff;
}

/* ==========================================================================
   Steps howto
   ========================================================================== */

.ar-steps {
	list-style: none;
	display: grid;
	gap: 1.25rem;
	counter-reset: none;
}

@media (min-width: 768px) {
	.ar-steps {
		grid-template-columns: repeat(4, 1fr);
		gap: 1.5rem;
	}
}

.ar-step {
	position: relative;
	background: var(--ar-card);
	border: 1px solid var(--ar-border);
	border-radius: var(--ar-radius);
	padding: 1.5rem 1.25rem;
	box-shadow: var(--ar-shadow);
	text-align: center;
}

.ar-step__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--ar-ink), var(--ar-teal));
	color: #fff;
	font-family: var(--ar-font-display);
	font-weight: 800;
	font-size: 1.05rem;
	margin-bottom: 1rem;
}

.ar-step__title {
	font-size: 1.05rem;
	margin: 0 0 0.5rem;
}

.ar-step__desc {
	margin: 0;
	font-size: 0.875rem;
	color: var(--ar-text-muted);
	line-height: 1.6;
}

/* ==========================================================================
   News cards
   ========================================================================== */

.ar-posts-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.ar-posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ar-posts-grid--3 {
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.ar-posts-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ar-post-card {
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform var(--ar-transition), box-shadow var(--ar-transition);
}

.ar-post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ar-shadow-hover);
}

.ar-post-card__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--ar-bg-muted);
}

.ar-post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ar-post-card:hover .ar-post-card__thumb img {
	transform: scale(1.04);
}

.ar-post-card__body {
	padding: 1.25rem 1.35rem 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ar-post-card__title {
	font-size: 1.05rem;
	margin: 0;
}

.ar-post-card__title a {
	color: var(--ar-ink);
}

[data-theme="dark"] .ar-post-card__title a {
	color: var(--ar-text);
}

.ar-post-card__meta {
	font-size: 0.8125rem;
	color: var(--ar-text-muted);
}

.ar-post-card__excerpt {
	margin: 0;
	font-size: 0.9rem;
	color: var(--ar-text-muted);
	flex: 1;
}

/* ==========================================================================
   Tools row
   ========================================================================== */

.ar-tools-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.ar-tools-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.ar-tools-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.25rem;
	}
}

.ar-tool-card {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 1.5rem 1.35rem;
	background: var(--ar-card);
	border: 1px solid var(--ar-border);
	border-radius: var(--ar-radius);
	box-shadow: var(--ar-shadow);
	text-decoration: none;
	color: var(--ar-text);
	transition: transform var(--ar-transition), box-shadow var(--ar-transition),
		border-color var(--ar-transition);
}

.ar-tool-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ar-shadow-hover);
	border-color: color-mix(in srgb, var(--ar-teal) 35%, var(--ar-border));
	color: var(--ar-text);
}

.ar-tool-card__icon {
	width: 2.25rem;
	height: 2.25rem;
	color: var(--ar-teal);
	padding: 0.55rem;
	background: var(--ar-teal-soft);
	border-radius: 12px;
	box-sizing: content-box;
}

.ar-tool-card h3 {
	font-size: 1.05rem;
	margin: 0;
}

.ar-tool-card p {
	margin: 0;
	font-size: 0.875rem;
	color: var(--ar-text-muted);
	line-height: 1.6;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.ar-accordion {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.ar-accordion__item {
	background: var(--ar-card);
	border: 1px solid var(--ar-border);
	border-radius: var(--ar-radius);
	overflow: hidden;
	box-shadow: var(--ar-shadow);
}

.ar-accordion__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	background: none;
	border: none;
	text-align: right;
	font-family: var(--ar-font-display);
	font-weight: 700;
	font-size: 1rem;
	color: var(--ar-text);
	cursor: pointer;
}

.ar-accordion__trigger .ar-icon {
	transition: transform var(--ar-transition);
	color: var(--ar-text-muted);
	flex-shrink: 0;
}

.ar-accordion__trigger[aria-expanded="true"] .ar-icon {
	transform: rotate(180deg);
	color: var(--ar-teal);
}

.ar-accordion__panel {
	padding: 0 1.25rem 1.25rem;
	color: var(--ar-text-muted);
	font-size: 0.95rem;
	line-height: 1.75;
}

.ar-accordion__panel p {
	margin: 0;
}

/* ==========================================================================
   Newsletter
   ========================================================================== */

.ar-newsletter {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
	.ar-newsletter {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 2.25rem 2.5rem;
	}
}

.ar-newsletter__content h2 {
	font-size: clamp(1.25rem, 2.5vw, 1.65rem);
	margin: 0 0 0.4rem;
}

.ar-newsletter__content p {
	margin: 0;
	opacity: 0.85;
	font-size: 0.95rem;
}

.ar-newsletter__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	flex-shrink: 0;
	width: 100%;
	max-width: 420px;
}

.ar-newsletter__form input {
	flex: 1;
	min-width: 180px;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.ar-newsletter__form input::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.ar-newsletter__form input:focus {
	border-color: var(--ar-teal);
	box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.25);
	background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.ar-footer {
	background: var(--ar-ink);
	color: rgba(255, 255, 255, 0.78);
	padding-block: 3.5rem 0;
	margin-top: 2rem;
}

.ar-footer a {
	color: rgba(255, 255, 255, 0.78);
}

.ar-footer a:hover {
	color: var(--ar-teal);
}

.ar-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
	.ar-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.ar-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr 1fr;
		gap: 2.5rem;
	}
}

.ar-footer__logo {
	display: inline-flex;
	flex-direction: column;
	text-decoration: none;
	margin-bottom: 0.85rem;
}

.ar-footer__logo span {
	font-family: var(--ar-font-display);
	font-weight: 800;
	font-size: 1.25rem;
	color: #fff;
}

.ar-footer__logo small {
	font-size: 0.75rem;
	opacity: 0.55;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ar-footer__desc {
	font-size: 0.9rem;
	line-height: 1.7;
	margin: 0;
	max-width: 28ch;
}

.ar-footer__links h3,
.ar-footer__social h3 {
	font-size: 0.9rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 1rem;
}

.ar-footer__menu {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.ar-footer__menu a {
	font-size: 0.9rem;
}

.ar-social-links {
	display: flex;
	gap: 0.65rem;
	flex-wrap: wrap;
}

.ar-social-links__item {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: background var(--ar-transition), border-color var(--ar-transition);
}

.ar-social-links__item:hover {
	background: var(--ar-teal);
	border-color: var(--ar-teal);
	color: #fff;
}

.ar-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-block: 1.35rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.8125rem;
}

.ar-footer__bottom p {
	margin: 0;
}

.ar-footer__disclaimer {
	opacity: 0.6;
}

@media (min-width: 768px) {
	.ar-footer__bottom {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

/* ==========================================================================
   Page chrome
   ========================================================================== */

.ar-breadcrumb {
	margin-bottom: 1.5rem;
}

.ar-breadcrumb__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.8125rem;
	color: var(--ar-text-muted);
}

.ar-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.ar-breadcrumb__item a {
	color: var(--ar-text-muted);
}

.ar-breadcrumb__item a:hover {
	color: var(--ar-teal);
}

.ar-breadcrumb__separator {
	opacity: 0.5;
	margin-inline: 0.15rem;
}

.ar-page-header {
	margin-bottom: 2rem;
}

.ar-page-header__title,
.ar-page-header h1 {
	font-size: clamp(1.65rem, 3vw, 2.15rem);
	margin: 0 0 0.5rem;
	color: var(--ar-ink);
}

[data-theme="dark"] .ar-page-header__title,
[data-theme="dark"] .ar-page-header h1 {
	color: var(--ar-text);
}

.ar-page-header__desc,
.ar-page-header p {
	margin: 0;
	color: var(--ar-text-muted);
	font-size: 1.05rem;
	max-width: 40rem;
}

.ar-page__content,
.ar-prose {
	line-height: 1.8;
}

.ar-prose h2 {
	margin-top: 2rem;
	font-size: 1.35rem;
}

.ar-prose h3 {
	margin-top: 1.5rem;
	font-size: 1.15rem;
}

.ar-prose ul,
.ar-prose ol {
	padding-inline-start: 1.5rem;
	margin-bottom: 1em;
}

.ar-prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ar-alert {
	padding: 1rem 1.25rem;
	border-radius: var(--ar-radius);
	margin-bottom: 1.25rem;
}

.ar-alert--warning {
	background: rgba(217, 119, 6, 0.1);
	border: 1px solid rgba(217, 119, 6, 0.25);
	color: #92400E;
}

.ar-alert--danger {
	background: rgba(220, 38, 38, 0.08);
	border: 1px solid rgba(220, 38, 38, 0.2);
	color: #991B1B;
}

.ar-alert--info {
	background: var(--ar-teal-soft);
	border: 1px solid rgba(0, 168, 150, 0.25);
	color: var(--ar-ink);
}

.ar-alert--success {
	background: var(--ar-teal-soft);
	border: 1px solid rgba(0, 168, 150, 0.3);
	color: var(--ar-teal-dark);
}

[data-theme="dark"] .ar-alert--warning { color: #FBBF24; }
[data-theme="dark"] .ar-alert--danger { color: #FCA5A5; }
[data-theme="dark"] .ar-alert--info,
[data-theme="dark"] .ar-alert--success { color: var(--ar-text); }

.ar-content-block {
	margin-bottom: 2rem;
}

.ar-content-block h2 {
	margin-top: 0;
}

.ar-form-hint {
	font-size: 0.875rem;
	color: var(--ar-text-muted);
	margin: 0 0 1.25rem;
	line-height: 1.6;
}

.ar-page-header--with-flag {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.25rem;
}

.ar-page-header__flag {
	border-radius: 6px;
	box-shadow: var(--ar-shadow);
}

.ar-ministries-list {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.ar-ministry-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.ar-ministry-card__country {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ar-teal);
	margin-bottom: 0.25rem;
}

.ar-ministry-card h2 {
	font-size: 1.1rem;
	margin: 0 0 0.35rem;
}

.ar-ministry-card__note {
	margin: 0;
	font-size: 0.875rem;
	color: var(--ar-text-muted);
}

.ar-stages-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.85rem;
	margin-bottom: 2rem;
}

@media (min-width: 768px) {
	.ar-stages-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.ar-stages-grid .ar-stage-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	text-align: center;
	padding: 1.5rem 1rem;
}

.ar-stages-grid .ar-stage-card .ar-icon {
	width: 2rem;
	height: 2rem;
	color: var(--ar-teal);
}

.ar-contact-form {
	padding: 1.75rem;
}

/* ==========================================================================
   Student result card (print-ready)
   ========================================================================== */

.ar-student-result {
	max-width: 640px;
	margin-inline: auto;
	padding: 2rem 1.5rem;
	border-top: 4px solid var(--ar-teal);
}

.ar-student-result__header {
	text-align: center;
	margin-bottom: 1.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--ar-border);
}

.ar-student-result__badge {
	margin-bottom: 0.75rem;
}

.ar-student-result__title {
	font-size: 1.5rem;
	margin: 0;
	color: var(--ar-ink);
}

[data-theme="dark"] .ar-student-result__title {
	color: var(--ar-text);
}

.ar-student-result__details {
	margin: 0 0 1.75rem;
}

.ar-student-result__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding-block: 0.85rem;
	border-bottom: 1px dashed var(--ar-border);
}

.ar-student-result__row dt {
	font-weight: 600;
	color: var(--ar-text-muted);
	font-size: 0.9rem;
}

.ar-student-result__row dd {
	margin: 0;
	font-weight: 700;
	font-size: 1.05rem;
	text-align: left;
}

.ar-student-result__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: center;
	margin-bottom: 1.25rem;
}

.ar-student-result__disclaimer {
	text-align: center;
	font-size: 0.8125rem;
	color: var(--ar-text-muted);
	margin: 0;
}

.ar-masked {
	font-family: var(--ar-font-mono);
	letter-spacing: 0.05em;
}

.ar-loading {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--ar-text-muted);
}

.ar-loading__spinner,
.ar-spinner {
	display: inline-block;
	width: 2rem;
	height: 2rem;
	border: 3px solid var(--ar-border);
	border-top-color: var(--ar-teal);
	border-radius: 50%;
	animation: ar-spin 0.7s linear infinite;
}

@keyframes ar-spin {
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   Calculator
   ========================================================================== */

.ar-calculator {
	max-width: 420px;
	margin-inline: auto;
}

.ar-calculator__result {
	margin-top: 1.5rem;
	text-align: center;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ar-border);
}

.ar-calculator__label {
	display: block;
	font-size: 0.875rem;
	color: var(--ar-text-muted);
	margin-bottom: 0.35rem;
}

.ar-calculator__value {
	display: block;
	font-family: var(--ar-font-display);
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--ar-teal);
	line-height: 1.2;
}

.ar-calculator__bar {
	height: 8px;
	background: var(--ar-bg-muted);
	border-radius: var(--ar-radius-pill);
	overflow: hidden;
	margin-top: 1rem;
}

.ar-calculator__bar-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--ar-teal), var(--ar-ink));
	border-radius: inherit;
	transition: width 0.5s ease;
}

/* ==========================================================================
   Ministries / tools / contact / legal pages
   ========================================================================== */

.ar-ministries-grid {
	display: grid;
	gap: 1rem;
}

@media (min-width: 640px) {
	.ar-ministries-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ar-ministry-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
	text-decoration: none;
	color: var(--ar-text);
	transition: transform var(--ar-transition), box-shadow var(--ar-transition);
}

.ar-ministry-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--ar-shadow-hover);
	color: var(--ar-text);
}

.ar-ministry-card__flag img {
	border-radius: 4px;
}

.ar-ministry-card__name {
	font-weight: 700;
	font-family: var(--ar-font-display);
}

.ar-ministry-card__url {
	font-size: 0.8125rem;
	color: var(--ar-text-muted);
	direction: ltr;
	text-align: right;
}

.ar-contact-grid {
	display: grid;
	gap: 2rem;
}

@media (min-width: 768px) {
	.ar-contact-grid {
		grid-template-columns: 1fr 1.2fr;
		align-items: start;
	}
}

.ar-contact-info {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ar-contact-info__item {
	padding: 1rem 1.15rem;
	background: var(--ar-card);
	border: 1px solid var(--ar-border);
	border-radius: var(--ar-radius);
}

.ar-contact-info__item strong {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--ar-ink);
}

[data-theme="dark"] .ar-contact-info__item strong {
	color: var(--ar-text);
}

.ar-legal-page .ar-prose {
	max-width: 720px;
}

.ar-dataset-meta {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.ar-dataset-meta__row {
	display: flex;
	justify-content: space-between;
	padding: 0.85rem 1.15rem;
	background: var(--ar-card);
	border: 1px solid var(--ar-border);
	border-radius: var(--ar-radius-sm);
}

.ar-dataset-meta__row dt {
	color: var(--ar-text-muted);
	font-weight: 600;
}

.ar-dataset-meta__row dd {
	margin: 0;
	font-weight: 700;
}

.ar-stage-grid,
.ar-region-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.85rem;
}

@media (min-width: 768px) {
	.ar-stage-grid,
	.ar-region-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ar-stage-card,
.ar-region-card {
	display: block;
	padding: 1.25rem;
	background: var(--ar-card);
	border: 1px solid var(--ar-border);
	border-radius: var(--ar-radius);
	box-shadow: var(--ar-shadow);
	text-decoration: none;
	color: var(--ar-text);
	font-weight: 700;
	font-family: var(--ar-font-display);
	transition: transform var(--ar-transition), box-shadow var(--ar-transition);
}

.ar-stage-card:hover,
.ar-region-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--ar-shadow-hover);
	color: var(--ar-teal);
}

/* ==========================================================================
   Empty / 404 / maintenance
   ========================================================================== */

.ar-empty-state {
	text-align: center;
	padding: 3rem 1.5rem;
}

.ar-empty-state__icon {
	width: 3rem;
	height: 3rem;
	color: var(--ar-text-muted);
	margin: 0 auto 1rem;
	opacity: 0.5;
}

.ar-404__code {
	display: block;
	font-family: var(--ar-font-display);
	font-size: clamp(4rem, 12vw, 7rem);
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, var(--ar-ink), var(--ar-teal));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 0.5rem;
}

.ar-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 1.75rem;
}

.ar-maintenance {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 3rem 1.5rem;
}

.ar-maintenance__icon {
	width: 4rem;
	height: 4rem;
	color: var(--ar-teal);
	margin: 0 auto 1.5rem;
}

.ar-maintenance h1 {
	font-size: 1.75rem;
	margin-bottom: 0.75rem;
}

.ar-maintenance p {
	color: var(--ar-text-muted);
	max-width: 28rem;
	margin-inline: auto;
}

/* ==========================================================================
   Single / archive / site search
   ========================================================================== */

.ar-single-post__header {
	margin-bottom: 2rem;
}

.ar-single-post__title {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	margin-bottom: 0.75rem;
}

.ar-single-post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	font-size: 0.875rem;
	color: var(--ar-text-muted);
	margin-bottom: 1.5rem;
}

.ar-single-post__thumbnail {
	border-radius: var(--ar-radius);
	overflow: hidden;
	margin-bottom: 2rem;
}

.ar-single-post__thumbnail img {
	width: 100%;
}

.ar-single-post__footer {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ar-border);
}

.ar-tags {
	font-size: 0.875rem;
	color: var(--ar-text-muted);
}

.ar-archive-header,
.ar-search-header {
	margin-bottom: 2rem;
}

.ar-archive-header__title,
.ar-search-header__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 0.5rem;
}

.ar-site-search {
	display: flex;
	gap: 0.65rem;
	margin-bottom: 2rem;
	max-width: 480px;
}

.ar-site-search input {
	flex: 1;
}

.ar-pagination {
	margin-top: 2.5rem;
	display: flex;
	justify-content: center;
}

.ar-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

.ar-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.65rem;
	border-radius: var(--ar-radius-sm);
	border: 1px solid var(--ar-border);
	background: var(--ar-card);
	color: var(--ar-text);
	font-weight: 600;
	font-size: 0.875rem;
}

.ar-pagination .page-numbers.current,
.ar-pagination .page-numbers:hover {
	background: var(--ar-ink);
	border-color: var(--ar-ink);
	color: #fff;
}

/* ==========================================================================
   Ad slots
   ========================================================================== */

.ar-ad,
.ar-ad-slot {
	margin-block: 1.25rem;
	text-align: center;
}

.ar-ad__inner {
	display: flex;
	justify-content: center;
}

.ar-ad-demo {
	width: min(100%, 970px);
	margin-inline: auto;
	padding: 1.25rem 1rem;
	border-radius: 12px;
	border: 2px dashed rgba(0, 168, 150, 0.45);
	background: linear-gradient(135deg, rgba(0, 168, 150, 0.08), rgba(10, 37, 64, 0.06));
	display: grid;
	gap: 0.35rem;
	justify-items: center;
	color: var(--ar-ink);
}

.ar-ad-demo__badge {
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	background: var(--ar-gold);
	color: #1a1300;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
}

.ar-ad-demo__title {
	font-family: var(--ar-font-display, Cairo, sans-serif);
	font-size: 1rem;
}

.ar-ad-demo__size {
	font-size: 0.8rem;
	color: var(--ar-text-muted);
}

.ar-ad-demo__hint {
	font-size: 0.75rem;
	color: var(--ar-text-muted);
	line-height: 1.5;
}

.ar-ad--mobile-sticky,
.ar-ad-slot--mobile-sticky {
	position: fixed;
	bottom: 0;
	inset-inline: 0;
	z-index: 150;
	margin: 0;
	padding: 0.5rem;
	background: var(--ar-card);
	border-top: 1px solid var(--ar-border);
	box-shadow: 0 -4px 20px rgba(10, 37, 64, 0.08);
}

@media (min-width: 768px) {
	.ar-ad--mobile-sticky,
	.ar-ad-slot--mobile-sticky {
		display: none;
	}
}

/* Services + Governorates */
.ar-services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

.ar-service-card {
	display: block;
	background: var(--ar-card);
	border: 1px solid var(--ar-border);
	border-radius: var(--ar-radius);
	padding: 1.2rem;
	box-shadow: var(--ar-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	color: inherit;
}

.ar-service-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--ar-shadow-lg);
	border-color: rgba(0, 168, 150, 0.35);
}

.ar-service-card__icon {
	display: inline-flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(0, 168, 150, 0.12);
	margin-bottom: 0.75rem;
}

.ar-service-card__title {
	font-size: 1.05rem;
	margin: 0 0 0.35rem;
	color: var(--ar-ink);
}

.ar-service-card__desc {
	margin: 0;
	font-size: 0.88rem;
	color: var(--ar-text-muted);
}

.ar-govs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 0.85rem;
}

.ar-gov-card {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	background: var(--ar-card);
	border: 1px solid var(--ar-border);
	border-radius: var(--ar-radius);
	padding: 1rem 0.9rem;
	box-shadow: var(--ar-shadow);
	transition: 0.2s ease;
	color: inherit;
	min-height: 140px;
}

.ar-gov-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--ar-shadow-lg);
	border-color: rgba(10, 37, 64, 0.2);
}

.ar-gov-card__name {
	font-size: 1.05rem;
	color: var(--ar-ink);
}

.ar-gov-card__meta {
	font-size: 0.78rem;
	color: var(--ar-text-muted);
	flex: 1;
}

.ar-gov-card__cta {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--ar-teal-dark, #008F7F);
}

.ar-results-list {
	display: grid;
	gap: 0.75rem;
}

@media (min-width: 900px) {
	.ar-results-list {
		grid-template-columns: 1fr 1fr;
	}
}

/* ==========================================================================
   Widgets
   ========================================================================== */

.ar-widget {
	margin-bottom: 1.5rem;
}

.ar-widget__title {
	font-size: 1.05rem;
	margin-bottom: 0.85rem;
}

/* ==========================================================================
   Dark mode refinements
   ========================================================================== */

[data-theme="dark"] .ar-header {
	background: color-mix(in srgb, var(--ar-card) 94%, transparent);
}

[data-theme="dark"] .ar-btn--primary {
	background: var(--ar-teal);
	border-color: var(--ar-teal);
}

[data-theme="dark"] .ar-btn--primary:hover {
	background: var(--ar-teal-dark);
	border-color: var(--ar-teal-dark);
}

[data-theme="dark"] .ar-search-form__progress-bar {
	background: linear-gradient(90deg, var(--ar-teal), #33B9AA);
}

[data-theme="dark"] .ar-step__number {
	background: linear-gradient(145deg, var(--ar-teal), #0D4A5C);
}
