/* ==========================================================================
   Mobilo — shared styles (variables, header, search, cards, footer)
   ========================================================================== */

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

:root {
	/* Gradients run from the start side (where banner characters sit) to the end.
	   RTL by default; LTR languages (French) flip it below. */
	--to-end: left;

	/* Brand palette */
	--primary-color: #0B5CFF;
	--secondary-color: #3B82F6;
	--accent-color: #FFC83D;
	--danger-color: #FF5B6B;
	--success-color: #22C55E;
	--dark-color: #0F172A;
	--bg-color: #F1F5F9;
	--text-color: #0F172A;
	--muted-color: #64748B;
	--border-color: #E2E8F0;
	--container: 1140px;
	--radius: 3px;
}

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	border: none;
	list-style: none;
	text-decoration: none;
	outline: none;
}

body {
	font-family: "Cairo", sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.6;
	/* Sticky footer: the footer stays at the bottom of the screen on short pages. */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

/* LTR pages: WordPress only sets dir="rtl", so LTR is "not rtl". */
html:not([dir="rtl"]) {
	--to-end: right;
}

/* Flex items with auto side margins don't stretch, so keep containers full width. */
.site-header,
.site-main,
.site-main-elementor,
.app-page {
	width: 100%;
	flex-shrink: 0;
}

.site-footer,
.elementor-location-footer {
	margin-top: auto;
}

/* The admin bar pushes the page down; subtract it so short pages don't scroll. */
body.admin-bar {
	min-height: calc(100vh - 32px);
	min-height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
	body.admin-bar {
		min-height: calc(100vh - 46px);
		min-height: calc(100dvh - 46px);
	}
}

button,
input,
textarea,
select {
	font-family: inherit;
	font-size: inherit;
}

a {
	color: inherit;
	transition: color 0.3s ease-in-out;
}

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

:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	top: 10px;
	inset-inline-start: 10px;
	z-index: 10000;
	padding: 10px 20px;
	background: #fff;
}

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	cursor: pointer;
	line-height: 1;
	color: inherit;
}

.button,
input[type="submit"] {
	display: inline-block;
	padding: 8px 24px;
	border-radius: var(--radius);
	background-color: var(--primary-color);
	color: #fff;
	cursor: pointer;
	transition: opacity 0.3s ease-in-out;
}

.button:hover,
input[type="submit"]:hover {
	opacity: 0.8;
}

/* Header
   ========================================================================== */

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	max-width: var(--container);
	margin: 20px auto;
}

.site-logo img {
	display: block;
	width: auto;
	height: 36px;
}

/* The stacked logo needs more height for its name to stay readable. */
.site-logo .logo-stacked img {
	height: 56px;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-nav ul.menu {
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-nav ul.menu li a {
	color: var(--text-color);
}

.site-nav ul.menu li a:hover,
.site-nav ul.menu li.current-menu-item > a {
	color: var(--primary-color);
}

.grp-icon-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

#menu-mobile {
	display: none;
}

#menu-mobile img {
	height: 30px;
	width: auto;
}

/* Search window
   ========================================================================== */

.search-overlay {
	--search-ease: cubic-bezier(0.16, 1, 0.3, 1);
	position: fixed;
	inset: 0;
	z-index: 1100;
	padding-top: 24px;
	visibility: hidden;
	pointer-events: none;
	/* Stay visible until the closing animation has finished. */
	transition: visibility 0s linear 0.25s;
}

.search-overlay.active {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

body.search-open {
	overflow: hidden;
}

.search-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.search-overlay.active .search-backdrop {
	opacity: 1;
}

/* Floating panel near the top of the screen, as wide as the site content (main). */
.search-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: min(var(--container), calc(100% - 40px));
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	margin: 0 auto;
	padding: 26px 28px 28px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
	opacity: 0;
	transform: translateY(-40px);
	/* Closing: quick and plain. */
	transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Opening: a little longer, with a soft deceleration. */
.search-overlay.active .search-panel {
	opacity: 1;
	transform: none;
	transition: opacity 0.3s ease, transform 0.45s var(--search-ease);
}

/* Contents arrive one after another once the panel is open. */
@keyframes search-rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

.search-overlay.active .search-head {
	animation: search-rise 0.4s var(--search-ease) 0.05s backwards;
}

.search-overlay.active .search-quick-title,
.search-overlay.active .search-chips a {
	animation: search-rise 0.4s var(--search-ease) backwards;
	animation-delay: calc(0.12s + var(--i, 0) * 0.04s);
}

/* Live results: --i is set per item by main.js. */
.search-results > * {
	animation: search-rise 0.35s var(--search-ease) backwards;
	animation-delay: calc(var(--i, 0) * 0.04s);
}

.search-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.search-bar {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 6px;
	min-width: 0;
	padding: 5px;
	padding-inline-start: 14px;
	border: 2px solid var(--border-color);
	border-radius: 14px;
	background: var(--bg-color);
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.search-bar:focus-within {
	border-color: var(--primary-color);
	background: #fff;
}

.search-bar-icon {
	display: flex;
	color: var(--muted-color);
}

.search-bar input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 50px;
	background: none;
	font-size: 18px;
	-webkit-appearance: none;
}

/* The bar itself shows focus (blue border), so the field needs no ring of its own. */
.search-bar input[type="search"]:focus {
	outline: none;
	box-shadow: none;
}

.search-bar input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.search-submit {
	flex: none;
	height: 50px;
	padding: 0 30px;
	border-radius: 10px;
	background: var(--primary-color);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.search-close {
	flex: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--bg-color);
	color: var(--dark-color);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.search-close:hover {
	background: var(--border-color);
}

/* Results list */
.search-results {
	display: none;
	flex-direction: column;
	gap: 2px;
	overflow-y: auto;
	min-height: 0;
}

.has-results .search-results {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 16px;
	align-content: start;
}

.search-all,
.search-status {
	grid-column: 1 / -1;
}

.has-results .search-quick {
	display: none;
}

.search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: 12px;
	color: var(--text-color);
	transition: background-color 0.15s ease;
}

.search-item:hover,
.search-item:focus-visible {
	background: var(--bg-color);
	outline: none;
}

.search-item:focus-visible {
	box-shadow: inset 0 0 0 2px var(--primary-color);
}

.search-item-thumb {
	display: flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 10px;
	background: #DBEAFE;
	color: var(--primary-color);
	font-weight: 700;
	font-size: 18px;
}

.search-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.search-item-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.search-item-title {
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.search-item-title mark {
	padding: 0 2px;
	border-radius: 4px;
	background: #FEF3C7;
	color: inherit;
}

.search-item-meta {
	overflow: hidden;
	font-size: 12px;
	color: var(--muted-color);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.search-item-type {
	flex: none;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.search-item-type.is-job {
	background: #DBEAFE;
	color: #1D4ED8;
}

.search-item-type.is-post {
	background: #DBEAFE;
	color: #1D4ED8;
}

.search-item-type.is-app {
	background: #EDE9FE;
	color: #6D28D9;
}

.search-item-type.is-game {
	background: #DCFCE7;
	color: #15803D;
}

.search-all {
	display: block;
	margin-top: 6px;
	padding: 12px;
	border-radius: 12px;
	background: var(--bg-color);
	color: var(--primary-color);
	font-weight: 700;
	text-align: center;
}

.search-all:hover {
	background: #DBEAFE;
}

.search-status {
	padding: 18px;
	text-align: center;
	color: var(--muted-color);
}

/* Quick links shown before typing */
.search-quick-title {
	display: block;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted-color);
}

.search-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.search-chips a {
	padding: 7px 14px;
	border: 1px solid var(--border-color);
	border-radius: 999px;
	color: var(--text-color);
	font-size: 14px;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.search-chips a:hover {
	border-color: var(--primary-color);
	background: #EFF6FF;
	color: var(--primary-color);
}

/* Phones: the window fills the screen. */
@media (max-width: 700px) {
	.search-overlay {
		padding: 0;
	}

	.search-panel {
		width: 100%;
		height: 100%;
		max-height: none;
		padding: 14px;
		border-radius: 0;
		transform: translateY(12px);
	}

	/* minmax(0, …): long titles must truncate, not widen the column. */
	.has-results .search-results {
		grid-template-columns: minmax(0, 1fr);
	}

	.search-bar input[type="search"] {
		height: 44px;
		font-size: 16px;
	}

	.search-submit,
	.search-close {
		height: 44px;
	}

	.search-close {
		width: 44px;
	}

	.search-bar {
		padding-inline-start: 10px;
	}

	.search-submit {
		padding: 0 14px;
	}

	.search-item-type {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.search-overlay,
	.search-overlay * {
		animation: none !important;
		transition-duration: 0s !important;
		transition-delay: 0s !important;
	}
}

/* Layout
   ========================================================================== */

.site-main {
	max-width: var(--container);
	margin: 0 auto;
}

.home-section {
	margin: 100px auto;
}

.site-main > .home-section:first-child {
	margin-top: 50px;
}

.top-section {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.top-section a {
	font-size: 14px;
	color: var(--muted-color);
}

.top-section a:hover {
	color: var(--primary-color);
}

.archive-header {
	margin-bottom: 20px;
}

.page-title {
	font-size: 27px;
}

.archive-description {
	color: var(--muted-color);
}

/* Job and post cards
   ========================================================================== */

.list-posts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.post-card {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 20px;
	border: 1px solid var(--border-color);
	background-color: #fff;
	border-radius: var(--radius);
}

.post-card .post-card-top {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 45px;
	color: var(--text-color);
}

.post-card .post-card-top h3 {
	font-size: 18px;
	line-height: 27px;
}

.post-card .post-card-top:hover h3 {
	color: var(--primary-color);
}

.post-card-thumb {
	flex: 0 0 50px;
	width: 50px;
	height: 45px;
}

.post-card-thumb img,
.post-card-thumb .thumb-placeholder {
	width: 100%;
	height: 100%;
	border-radius: var(--radius);
	object-fit: cover;
}

.post-card p {
	font-size: 14px;
	line-height: 21px;
	color: var(--muted-color);
}

.post-card-meta,
.post-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	color: var(--muted-color);
}

.post-card-meta .meta-item,
.post-meta .meta-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 14px;
}

.thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(11, 92, 255, 0.1);
	color: var(--primary-color);
	font-weight: 700;
}

/* App cards
   ========================================================================== */

.list-apps {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 15px 5px;
}

.app-card {
	display: flex;
	flex-direction: column;
	gap: 5px;
	text-align: center;
	padding: 10px;
	border-radius: 10px;
	transition: all 0.3s ease-in-out;
}

.app-card:hover {
	scale: 1.05;
	background-color: #fff;
}

.app-card-icon img,
.app-card-icon .thumb-placeholder {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	object-fit: cover;
	font-size: 32px;
}

.app-card h3 {
	font-size: 14px;
	line-height: 16px;
	font-weight: 600;
	color: var(--text-color);
}

.app-card p {
	font-size: 12px;
	line-height: 14px;
	color: var(--muted-color);
}

/* Pagination & empty states
   ========================================================================== */

.pagination {
	margin-top: 30px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 5px;
}

.pagination .page-numbers {
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	background: #fff;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	color: #fff;
}

.no-results,
.not-found {
	padding: 40px 20px;
	text-align: center;
}

.no-results p,
.not-found p {
	margin: 10px 0 20px;
	color: var(--muted-color);
}

.search-form {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.search-form .search-field {
	height: 40px;
	padding: 0 15px;
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
}

/* Footer
   ========================================================================== */

.site-footer {
	padding: 0 20px;
	background-color: var(--dark-color);
	color: #fff;
}

.footer-inner {
	max-width: var(--container);
	margin: 0 auto;
}

/* Subscription strip: overlaps the top edge of the footer like a card,
   with the character stepping out of it. */
.footer-cta {
	display: flex;
	align-items: center;
	gap: 22px;
	position: relative;
	top: -44px;
	margin-bottom: -14px;
	padding: 20px 28px;
	border-radius: 20px;
	background: linear-gradient(to var(--to-end), #0B5CFF, #3B82F6);
	box-shadow: 0 12px 30px rgba(11, 92, 255, 0.25);
}

.footer-cta-mascot {
	flex: none;
	width: 200px;
	height: auto;
	margin-block: -100px -30px;
	filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.25));
}

.footer-cta-text {
	flex: 1;
	min-width: 0;
}

.footer-cta h2 {
	font-size: 22px;
	line-height: 1.4;
}

.footer-cta p {
	font-size: 14px;
	color: #DBEAFE;
}

.footer-cta-form {
	flex: 0 1 430px;
	min-width: 0;
}

.footer-cta-form .alert-banner-form {
	max-width: none;
	margin-top: 0;
	border-color: transparent;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.footer-cta-form .alert-banner-note {
	margin-top: 6px;
	color: #DBEAFE;
}

.footer-cta-form .alert-banner-message {
	margin: 0 0 8px;
}

.footer-main {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
	gap: 30px;
	padding: 20px 0 40px;
}

.footer-logo img {
	display: block;
	width: auto;
	height: 34px;
}

.footer-logo.logo-stacked img {
	height: 64px;
}

.footer-brand p {
	max-width: 340px;
	margin-top: 14px;
	font-size: 14px;
	line-height: 1.8;
	color: #94A3B8;
}

.footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
	background: var(--accent-color);
	color: var(--dark-color);
}

.footer-menu h2 {
	margin-bottom: 14px;
	font-size: 16px;
}

.footer-menu ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-menu a {
	font-size: 14px;
	color: #94A3B8;
	transition: color 0.2s ease;
}

.footer-menu a:hover {
	color: var(--accent-color);
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 13px;
	color: #94A3B8;
}

.footer-top {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	transition: background-color 0.2s ease;
}

.footer-top:hover {
	background: var(--primary-color);
}

/* The overlapping strip and its character need room above the footer. */
.site-footer:has(.footer-cta) {
	margin-top: 100px;
}

@media (max-width: 950px) {
	.footer-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 700px) {
	.footer-cta {
		flex-direction: column;
		gap: 10px;
		top: -60px;
		margin-bottom: -30px;
		padding: 18px;
		text-align: center;
	}

	.footer-cta-mascot {
		width: 130px;
		margin: -70px 0 0;
	}

	.footer-cta h2 {
		font-size: 19px;
	}

	.footer-cta-form {
		flex: none;
		align-self: stretch;
	}

	.footer-main {
		gap: 26px 20px;
		padding-bottom: 30px;
	}

	.footer-brand {
		text-align: center;
	}

	.footer-logo img,
	.footer-brand p {
		margin-inline: auto;
	}

	.footer-social {
		justify-content: center;
	}

	.footer-bottom {
		font-size: 12px;
	}
}

/* Responsive
   ========================================================================== */

@media (max-width: 1180px) {
	.site-header,
	.site-main {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media (max-width: 950px) {
	.list-posts {
		grid-template-columns: 1fr;
	}

	.home-section {
		margin: 50px auto;
	}
}

@media (max-width: 700px) {
	.site-logo .logo-stacked img {
		height: 48px;
	}

	.site-logo .logo-horizontal img {
		height: 30px;
	}

	#menu-mobile {
		display: inline-flex;
	}

	.post-card .post-card-top h3 {
		font-size: 16px;
	}

	.post-card-thumb {
		display: none;
	}

}

/* Elementor
   ========================================================================== */

.site-main-elementor {
	width: 100%;
}

.mobilo-widget.home-section {
	margin: 0;
}

/* Restore list markers and borders removed by the global reset inside Elementor text content. */
.elementor-widget-text-editor ul,
.elementor-widget-theme-post-content ul {
	list-style: disc;
	padding-inline-start: 1.5em;
}

.elementor-widget-text-editor ol,
.elementor-widget-theme-post-content ol {
	list-style: decimal;
	padding-inline-start: 1.5em;
}

.elementor-widget-text-editor li,
.elementor-widget-theme-post-content li {
	list-style: inherit;
}

/* Search page header: mascot + speech bubble
   ========================================================================== */

.search-hero {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 30px;
	padding: 20px 30px;
	border: 1px solid var(--border-color);
	border-radius: 16px;
	background: linear-gradient(to var(--to-end), #EFF6FF, #fff 60%);
}

.search-hero-mascot {
	flex: 0 0 200px;
	width: 200px;
	height: auto;
}

.search-hero-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	flex: 1;
	min-width: 0;
}

.search-hero .page-title {
	font-size: 24px;
	line-height: 1.4;
}

.search-hero .page-title span {
	color: var(--primary-color);
	overflow-wrap: anywhere;
}

.search-hero-bubble {
	position: relative;
	max-width: 520px;
	padding: 12px 18px;
	border-radius: 14px;
	background-color: #DBEAFE;
	color: var(--dark-color);
	font-weight: 600;
	line-height: 1.7;
}

/* Tail pointing toward the mascot (start side in RTL). */
.search-hero-bubble::before {
	content: "";
	position: absolute;
	top: 50%;
	inset-inline-start: -10px;
	margin-top: -8px;
	border-block: 8px solid transparent;
	border-inline-end: 10px solid #DBEAFE;
}

.search-hero .search-form {
	justify-content: flex-start;
	width: 100%;
	max-width: 520px;
}

.search-hero .search-form label {
	flex: 1;
	min-width: 0;
}

.search-hero .search-form .search-field {
	width: 100%;
}

/* Phones: keep the text beside the mascot, just smaller. */
@media (max-width: 700px) {
	.search-hero {
		gap: 12px;
		padding: 16px;
	}

	.search-hero-mascot {
		flex-basis: 110px;
		width: 110px;
	}

	.search-hero-text {
		gap: 8px;
	}

	.search-hero .page-title {
		font-size: 18px;
	}

	.search-hero-bubble {
		padding: 8px 12px;
		font-size: 13px;
	}

	.search-hero .search-submit {
		padding: 8px 14px;
	}

	.search-hero-bubble::before {
		margin-top: -6px;
		inset-inline-start: -8px;
		border-block-width: 6px;
		border-inline-end-width: 8px;
	}
}

@media (max-width: 360px) {
	.search-hero-mascot {
		flex-basis: 85px;
		width: 85px;
	}
}

/* Email subscription banner (home page)
   ========================================================================== */

.alert-banner {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 60px auto;
	padding: 24px 40px;
	border-radius: 20px;
	background: linear-gradient(to var(--to-end), #DBEAFE, #EFF6FF 55%, #fff);
	border: 1px solid #BFDBFE;
}

.alert-banner-mascot {
	flex: 0 0 220px;
	width: 220px;
	height: auto;
}

.alert-banner-body {
	flex: 1;
	min-width: 0;
}

.alert-banner h2 {
	font-size: 26px;
	line-height: 1.4;
}

.alert-banner-text {
	margin-top: 6px;
	color: var(--muted-color);
	font-size: 16px;
}

.alert-banner-form {
	display: flex;
	align-items: center;
	gap: 6px;
	max-width: 520px;
	margin-top: 18px;
	padding: 5px;
	border: 1px solid var(--border-color);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.alert-banner-form:focus-within {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(11, 92, 255, 0.15);
}

.alert-banner-form input[type="email"] {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 12px;
	background: none;
	font-size: 15px;
}

/* Email is typed left-to-right; in RTL pages keep it aligned with the layout. */
html[dir="rtl"] .alert-banner-form input[type="email"],
html[dir="rtl"] .contact-field input[type="email"] {
	text-align: right;
}

.alert-banner-form button {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	height: 44px;
	padding: 0 20px;
	border-radius: 10px;
	background-color: var(--primary-color);
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition: opacity 0.2s ease-in-out;
}

.alert-banner-form button:hover {
	opacity: 0.88;
}

/* A shortcode form from a newsletter plugin keeps its own layout. */
div.alert-banner-form {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

/* Honeypot field, hidden from people. */
.alert-banner-hp {
	position: absolute;
	inset-inline-start: -9999px;
}

.alert-banner-note {
	margin-top: 8px;
	font-size: 13px;
	color: var(--muted-color);
}

.alert-banner-message {
	display: inline-block;
	margin-top: 14px;
	padding: 8px 14px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
}

.alert-banner-message.is-success {
	background: #DCFCE7;
	color: #166534;
}

.alert-banner-message.is-info {
	background: #DBEAFE;
	color: #1E40AF;
}

.alert-banner-message.is-error {
	background: #FFE4E6;
	color: #BE123C;
}

/* Phones: mascot on top, centered text and form underneath. */
@media (max-width: 700px) {
	.alert-banner {
		flex-direction: column;
		gap: 6px;
		margin: 40px 0;
		padding: 22px 18px 18px;
		border-radius: 18px;
		text-align: center;
		background: linear-gradient(to bottom, #DBEAFE, #EFF6FF 45%, #fff);
	}

	.alert-banner-mascot {
		flex: none;
		height: auto;
		width: 150px;
	}

	.alert-banner-body {
		width: 100%;
	}

	.alert-banner h2 {
		font-size: 20px;
	}

	.alert-banner-text {
		margin-top: 4px;
		font-size: 14px;
		line-height: 1.7;
	}

	.alert-banner-form {
		max-width: none;
		margin-top: 16px;
	}

	.alert-banner-form input[type="email"] {
		height: 42px;
		padding: 0 8px;
		font-size: 14px;
	}

	.alert-banner-form button {
		height: 42px;
		padding: 0 14px;
		font-size: 14px;
	}

	.alert-banner-note {
		font-size: 12px;
	}
}

/* Very small phones: icon-only button leaves room for the email. */
@media (max-width: 360px) {
	.alert-banner-form button {
		padding: 0 12px;
	}

	.alert-banner-form button .alert-banner-btn-text {
		display: none;
	}
}

/* Ads
   ========================================================================== */

.mobilo-ad {
	width: 100%;
	max-width: var(--container);
	margin: 24px auto;
	text-align: center;
	overflow: hidden;
}

.mobilo-ad-label {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	color: var(--muted-color);
	letter-spacing: 0.5px;
}

/* Ads between cards span the whole grid row. */
.list-posts > .mobilo-ad {
	grid-column: 1 / -1;
	margin: 6px 0;
}

.app-sidebar .mobilo-ad {
	margin-top: 24px;
}

/* Hide the slot (and its label) when Google has no ad to show. */
.mobilo-ad:has(ins[data-ad-status="unfilled"]) {
	display: none;
}

@media (max-width: 1180px) {
	body > .mobilo-ad {
		padding: 0 20px;
	}
}

/* Archive banners (jobs, apps, contact)
   ========================================================================== */

.page-hero {
	display: flex;
	align-items: center;
	gap: 30px;
	margin-bottom: 30px;
	padding: 20px 36px;
	border: 1px solid #BFDBFE;
	border-radius: 20px;
	background: linear-gradient(to var(--to-end), #DBEAFE, #EFF6FF 50%, #fff);
}

/* Apps: purple tint from the app icons. Jobs: warm tint from the desk. */
.page-hero--apps {
	border-color: #DDD6FE;
	background: linear-gradient(to var(--to-end), #EDE9FE, #EFF6FF 50%, #fff);
}

.page-hero--jobs {
	border-color: #FDE68A;
	background: linear-gradient(to var(--to-end), #FEF3C7, #EFF6FF 55%, #fff);
}


/* Contact: same blue as the headset and speech bubble (default .page-hero colors). */
.page-hero--contact .page-hero-mascot {
	flex-basis: 220px;
	width: 220px;
}

.page-hero-mascot {
	flex: 0 0 260px;
	width: 260px;
	height: auto;
}

.page-hero-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.page-hero .page-title {
	font-size: 28px;
	line-height: 1.4;
}

.page-hero p {
	text-wrap: pretty;
	max-width: 560px;
	color: var(--muted-color);
	font-size: 16px;
	line-height: 1.8;
}

.page-hero-count {
	padding: 4px 14px;
	border-radius: 999px;
	background-color: var(--primary-color);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

/* Phones: mascot on top, centered text underneath (like the subscription banner). */
@media (max-width: 700px) {
	.page-hero {
		flex-direction: column;
		gap: 8px;
		padding: 22px 18px 20px;
		border-radius: 18px;
		text-align: center;
	}

	.page-hero--apps {
		background: linear-gradient(to bottom, #EDE9FE, #EFF6FF 45%, #fff);
	}

	.page-hero--jobs {
		background: linear-gradient(to bottom, #FEF3C7, #EFF6FF 45%, #fff);
	}


	.page-hero-mascot {
		flex: none;
		height: auto;
		width: 190px;
	}

	.page-hero-text {
		align-items: center;
		gap: 8px;
	}

	.page-hero .page-title {
		font-size: 22px;
	}

	.page-hero p {
		font-size: 14px;
		line-height: 1.7;
	}

	.page-hero-count {
		padding: 3px 12px;
		font-size: 13px;
	}
}

/* Phone menu panel
   ========================================================================== */

/* Desktop: only the links are shown. */
.nav-head,
.nav-extra,
.nav-backdrop {
	display: none;
}

@media (max-width: 700px) {
	.site-nav {
		position: fixed;
		top: 0;
		right: 0;
		z-index: 1001;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: min(85%, 340px);
		height: 100vh;
		height: 100dvh;
		padding: 16px 18px 24px;
		overflow-y: auto;
		background: #fff;
		box-shadow: -8px 0 30px rgba(15, 23, 42, 0.18);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.3s ease, visibility 0.3s;
	}

	.site-nav.active {
		transform: none;
		visibility: visible;
	}

	.admin-bar .site-nav {
		top: 46px;
		height: calc(100dvh - 46px);
	}

	.nav-head {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding-bottom: 14px;
		margin-bottom: 10px;
		border-bottom: 1px solid var(--border-color);
	}

	.nav-head img {
		width: auto;
		height: 32px;
	}

	.nav-head .logo-stacked img {
		height: 48px;
	}

	#close-nav {
		width: 40px;
		height: 40px;
		border-radius: 50%;
		background: var(--bg-color);
		font-size: 26px;
		color: var(--dark-color);
	}

	.site-nav ul.menu {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.site-nav ul.menu li a {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 12px 14px;
		border-radius: 12px;
		font-size: 16px;
		font-weight: 600;
		color: var(--dark-color);
		transition: background-color 0.2s ease;
	}

	/* Chevron pointing forward: left in RTL, right in LTR. */
	.site-nav ul.menu li a::after {
		content: "";
		width: 8px;
		height: 8px;
		border-left: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		opacity: 0.35;
	}

	html:not([dir="rtl"]) .site-nav ul.menu li a::after {
		transform: rotate(-135deg);
	}

	.site-nav ul.menu li a:hover,
	.site-nav ul.menu li a:focus-visible {
		background-color: var(--bg-color);
	}

	.site-nav ul.menu li.current-menu-item > a {
		background-color: #EFF6FF;
		color: var(--primary-color);
	}

	.site-nav ul.menu li.current-menu-item > a::after {
		opacity: 1;
	}

	.nav-extra {
		display: flex;
		flex-direction: column;
		gap: 14px;
		margin-top: auto;
		padding-top: 20px;
	}

	.nav-search {
		display: flex;
		align-items: center;
		height: 46px;
		padding-inline-start: 14px;
		border: 1px solid var(--border-color);
		border-radius: 12px;
		background: var(--bg-color);
	}

	.nav-search input {
		flex: 1;
		min-width: 0;
		height: 100%;
		background: none;
	}

	.nav-search button {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 100%;
		background: none;
		color: var(--primary-color);
		cursor: pointer;
	}

	.nav-cta {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 12px 14px;
		border-radius: 14px;
		background: linear-gradient(to var(--to-end), #DBEAFE, #EFF6FF);
		color: var(--dark-color);
	}

	.nav-cta img {
		flex: 0 0 64px;
		width: 64px;
		height: auto;
	}

	.nav-cta span {
		display: flex;
		flex-direction: column;
	}

	.nav-cta strong {
		font-size: 15px;
	}

	.nav-cta small {
		font-size: 12px;
		color: var(--muted-color);
	}

	.nav-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1000;
		background: rgba(15, 23, 42, 0.5);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s;
	}

	.nav-backdrop.active {
		opacity: 1;
		visibility: visible;
	}

	body.nav-open {
		overflow: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-nav,
	.nav-backdrop {
		transition: none;
	}
}

/* Contact page
   ========================================================================== */

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

.contact-card {
	padding: 24px;
	border: 1px solid var(--border-color);
	border-radius: 16px;
	background: #fff;
}

.contact-form-card h2 {
	margin-bottom: 16px;
	font-size: 22px;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.contact-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.contact-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	background: var(--bg-color);
	color: var(--text-color);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-field textarea {
	resize: vertical;
	min-height: 140px;
	line-height: 1.7;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
	border-color: var(--primary-color);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(11, 92, 255, 0.15);
}

.contact-submit {
	align-self: flex-start;
	height: 48px;
	padding: 0 34px;
	border-radius: 12px;
	background-color: var(--primary-color);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.contact-submit:hover {
	opacity: 0.88;
}

.form-message {
	margin-bottom: 16px;
	padding: 10px 14px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
}

.form-message.is-success {
	background: #DCFCE7;
	color: #166534;
}

.form-message.is-error {
	background: #FFE4E6;
	color: #BE123C;
}

.contact-aside {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.contact-intro.entry-content {
	margin-top: 0;
	font-size: 15px;
}

.contact-info {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px;
}

.contact-info-icon {
	display: flex;
	flex: 0 0 42px;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #DBEAFE;
	color: var(--primary-color);
	font-size: 20px;
	font-weight: 700;
}

.contact-info h3 {
	font-size: 15px;
}

.contact-info p,
.contact-info a {
	font-size: 14px;
	color: var(--muted-color);
}

.contact-info a:hover {
	color: var(--primary-color);
}

@media (max-width: 950px) {
	.contact-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.contact-row {
		grid-template-columns: 1fr;
	}

	.contact-card {
		padding: 18px;
	}

	.contact-submit {
		align-self: stretch;
	}

	/* Top-to-bottom blue like the other phone banners, with a soft halo behind
	   the character. The speech bubble sits on the image's right side, so the
	   image is nudged right to centre the character's body. */
	.page-hero--contact {
		background:
			radial-gradient(circle at 50% 95px, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 95px),
			linear-gradient(to bottom, #DBEAFE, #EFF6FF 50%, #fff);
	}

	/* flex: none — in the stacked (column) layout a fixed flex-basis would set
	   the image height and stretch it. */
	.page-hero--contact .page-hero-mascot {
		flex: none;
		height: auto;
		width: 160px;
		transform: translateX(12px);
		filter: drop-shadow(0 8px 14px rgba(11, 92, 255, 0.18));
	}
}

/* Archives with a sidebar (jobs, apps)
   ========================================================================== */

/* RTL: the first grid column is on the right, so the sidebar is placed first
   visually (order) while the list stays first in the HTML. */
.sidebar-layout {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

/* One card per row beside the sidebar keeps long Arabic titles readable. */
.sidebar-layout .list-posts {
	grid-template-columns: 1fr;
}

.page-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	order: -1;
}

.sidebar-box {
	padding: 18px;
	border: 1px solid var(--border-color);
	border-radius: 16px;
	background: #fff;
}

.sidebar-title {
	margin-bottom: 12px;
	font-size: 17px;
	line-height: 1.4;
}

/* Most viewed: numbered list with view counts. */
.top-jobs {
	counter-reset: top-jobs;
}

.top-jobs li + li {
	border-top: 1px solid var(--border-color);
}

.top-jobs a {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 2px 10px;
	padding: 10px 0;
	color: var(--text-color);
}

.top-jobs a::before {
	counter-increment: top-jobs;
	content: counter(top-jobs);
	grid-row: 1 / span 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #DBEAFE;
	color: var(--primary-color);
	font-size: 14px;
	font-weight: 700;
}

.top-jobs li:first-child a::before {
	background: var(--accent-color);
	color: var(--dark-color);
}

.top-jobs-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.top-jobs a:hover .top-jobs-title {
	color: var(--primary-color);
}

.top-views {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--muted-color);
}

/* Most viewed apps: icon, name, subtitle and views. */
.top-apps li + li {
	border-top: 1px solid var(--border-color);
}

.top-apps a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	color: var(--text-color);
}

.top-apps-icon {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
}

.top-apps-icon img,
.top-apps-icon .thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 12px;
	object-fit: cover;
	font-size: 22px;
}

.top-apps-text {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.top-apps-title {
	font-size: 14px;
	font-weight: 700;
}

.top-apps a:hover .top-apps-title {
	color: var(--primary-color);
}

.top-apps-subtitle {
	overflow: hidden;
	font-size: 12px;
	color: var(--muted-color);
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Subscription box: compact version of the home banner. */
.sidebar-subscribe {
	text-align: center;
	background: linear-gradient(to bottom, #DBEAFE, #fff 70%);
	border-color: #BFDBFE;
}

.sidebar-subscribe img {
	display: block;
	width: 120px;
	height: auto;
	margin: 0 auto 8px;
}

.sidebar-subscribe .sidebar-title {
	margin-bottom: 4px;
}

.sidebar-subscribe > p {
	font-size: 13px;
	color: var(--muted-color);
}

.sidebar-subscribe .alert-banner-form {
	margin-top: 12px;
}

.sidebar-subscribe .alert-banner-form input[type="email"] {
	height: 40px;
	padding: 0 8px;
	font-size: 14px;
}

/* Narrow box: the button shows only its bell icon. */
.sidebar-subscribe .alert-banner-form button {
	height: 40px;
	padding: 0 12px;
}

.sidebar-subscribe .alert-banner-btn-text {
	display: none;
}

.sidebar-subscribe .alert-banner-note {
	font-size: 11px;
}

/* Job types / cities / app categories with counts. */
.sidebar-terms {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sidebar-terms a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 10px;
	border-radius: 10px;
	font-size: 14px;
	color: var(--text-color);
	transition: background-color 0.2s ease;
}

.sidebar-terms a:hover,
.sidebar-terms .is-current a {
	background: var(--bg-color);
	color: var(--primary-color);
}

.sidebar-count {
	min-width: 26px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--bg-color);
	color: var(--muted-color);
	font-size: 12px;
	text-align: center;
}

.page-sidebar .mobilo-ad {
	margin: 0;
}

@media (max-width: 950px) {
	.sidebar-layout {
		grid-template-columns: 1fr;
	}

	/* Phones/tablets: the list first, the sidebar under it. */
	.page-sidebar {
		order: 0;
	}
}

/* Language switcher (Polylang)
   ========================================================================== */

.lang-switcher {
	display: flex;
	gap: 6px;
}

.lang-switcher a {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border: 1px solid var(--border-color);
	border-radius: 999px;
	background: #fff;
	color: var(--text-color);
	font-size: 13px;
	font-weight: 600;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-switcher a:hover {
	border-color: var(--primary-color);
	color: var(--primary-color);
}

/* Phone menu: both languages side by side, current one highlighted. */
.lang-switcher--menu li {
	flex: 1;
}

.lang-switcher--menu a {
	justify-content: center;
	width: 100%;
	padding: 10px;
	border-radius: 12px;
	font-size: 14px;
}

.lang-switcher--menu .is-current a {
	border-color: var(--primary-color);
	background: #EFF6FF;
	color: var(--primary-color);
}

/* The phone menu has its own switcher; keep the header one compact. */
@media (max-width: 700px) {
	.lang-switcher--header a {
		padding: 3px 10px;
		font-size: 12px;
	}
}
