/**
 * UAEHub Engine — frontend styles.
 * Premium editorial newspaper aesthetic inspired by Arabian Business.
 * Mobile-first, scoped under .uaehub / .uaehub-* classes.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

:root {
	--uaehub-accent: #c8102e;
}

/* ------------------------------------------------------------------ *
 * Base tokens & resets
 * ------------------------------------------------------------------ */
.uaehub,
.uaehub-home,
.uaehub-jobs-page {
	--uh-ink: #0d0d0d;
	--uh-muted: #5e6977;
	--uh-line: #e2e8f0;
	--uh-bg-soft: #fcfdfe;
	--uh-bg-alt: #f1f5f9;
	--uh-radius: 0px; /* Sharp corners for editorial layout */
	--uh-shadow: none;
	--uh-shadow-hover: none;
	--uh-font-serif: 'Playfair Display', Georgia, Cambria, "Times New Roman", Times, serif;
	--uh-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	
	color: var(--uh-ink);
	font-family: var(--uh-font-sans);
	line-height: 1.6;
	box-sizing: border-box;
}

.uaehub *,
.uaehub-home *,
.uaehub-jobs-page * {
	box-sizing: border-box;
}

.uaehub-home,
.uaehub-jobs-page {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 16px;
}

/* ------------------------------------------------------------------ *
 * Editorial Sections & Headers
 * ------------------------------------------------------------------ */
.uaehub-section {
	margin-block: 44px;
}

.uaehub-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	border-bottom: 2px solid var(--uh-ink);
	padding-bottom: 8px;
}

.uaehub-section__title,
.uaehub-section-title {
	font-family: var(--uh-font-serif);
	font-size: clamp(1.4rem, 1.15rem + 1.25vw, 1.95rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0;
	position: relative;
	padding-left: 0;
	text-transform: capitalize;
	color: var(--uh-ink);
}

.uaehub-section-title {
	border-bottom: 2px solid var(--uh-ink);
	padding-bottom: 8px;
	margin-bottom: 24px;
}

.uaehub-section__title::before,
.uaehub-section-title::before {
	display: none; /* Hide standard vertical red line */
}

.uaehub-section__rule {
	display: none; /* Flex line hidden in favor of bottom border */
}

/* ------------------------------------------------------------------ *
 * Newspaper Grids
 * ------------------------------------------------------------------ */
.uaehub-grid {
	display: grid;
	gap: 30px;
	grid-template-columns: 1fr;
}

@media (min-width: 620px) {
	.uaehub-grid--jobs,
	.uaehub-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
	.uaehub-grid--3,
	.uaehub-cols-3 { grid-template-columns: repeat(2, 1fr); }
	.uaehub-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
	.uaehub-grid--3,
	.uaehub-cols-3 { grid-template-columns: repeat(3, 1fr); }
	.uaehub-cols-4 { grid-template-columns: repeat(4, 1fr); }
	.uaehub-grid--jobs { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ------------------------------------------------------------------ *
 * Hero Cover Section
 * ------------------------------------------------------------------ */
.uaehub-hero__grid {
	display: grid;
	gap: 30px;
	grid-template-columns: 1fr;
}

.uaehub-hero__secondary {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
}

@media (min-width: 620px) {
	.uaehub-hero__secondary { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
	.uaehub-hero__grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
	.uaehub-hero__secondary { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ *
 * Editorial News Cards
 * ------------------------------------------------------------------ */
.uaehub-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--uh-line);
	border-radius: var(--uh-radius); /* 0px */
	overflow: hidden;
	box-shadow: none;
	transition: border-color 0.25s ease;
}

.uaehub-card:hover {
	transform: none;
	box-shadow: none;
	border-color: var(--uaehub-accent);
}

.uaehub-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000000;
}

.uaehub-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.95;
	transition: opacity 0.25s ease, transform 0.35s ease;
}

.uaehub-card:hover .uaehub-card__img {
	opacity: 1;
	transform: scale(1.03);
}

.uaehub-card__img--placeholder { 
	object-fit: cover; 
}
.uaehub-card:hover .uaehub-card__img--placeholder { 
	transform: none; 
}

.uaehub-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px 20px 20px;
	flex: 1;
}

.uaehub-card__title {
	font-family: var(--uh-font-serif);
	font-size: 1.22rem;
	line-height: 1.35;
	font-weight: 700;
	margin: 0;
	letter-spacing: -0.012em;
	color: var(--uh-ink);
}

.uaehub-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.uaehub-card__title a:hover {
	color: var(--uaehub-accent);
}

.uaehub-card__excerpt {
	margin: 0;
	color: var(--uh-muted);
	font-family: var(--uh-font-sans);
	font-size: 0.9rem;
	line-height: 1.6;
}

.uaehub-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin-top: auto;
	font-family: var(--uh-font-sans);
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--uh-muted);
	font-weight: 500;
}

.uaehub-card__source {
	font-weight: 800;
	color: var(--uaehub-accent);
}

.uaehub-card__source::after {
	content: "|";
	margin-left: 12px;
	color: var(--uh-line);
	font-weight: 300;
}

.uaehub-card__more {
	align-self: flex-start;
	font-family: var(--uh-font-sans);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uh-ink);
	text-decoration: none;
	border-bottom: 2px solid var(--uaehub-accent);
	padding-bottom: 2px;
	transition: color 0.2s, border-color 0.2s;
}

.uaehub-card__more:hover { 
	color: var(--uaehub-accent);
	border-color: var(--uh-ink);
	text-decoration: none; 
}

/* Featured cover item (first item in grid) */
.uaehub-card--featured .uaehub-card__title { 
	font-size: clamp(1.4rem, 1.2rem + 1.4vw, 2.1rem); 
	line-height: 1.25;
}
.uaehub-card--featured .uaehub-card__excerpt { 
	font-size: 0.98rem; 
	line-height: 1.6;
}
@media (min-width: 960px) {
	.uaehub-card--featured .uaehub-card__body { 
		padding: 24px 28px 28px; 
		gap: 16px;
	}
}

/* ------------------------------------------------------------------ *
 * Editorial Badges
 * ------------------------------------------------------------------ */
.uaehub-badge {
	display: inline-block;
	font-family: var(--uh-font-sans);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 0px; /* Sharp corners badge */
	line-height: 1;
}

.uaehub-badge--cat {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--uaehub-accent);
	color: #ffffff;
	box-shadow: none;
	z-index: 2;
}

.uaehub-badge--standalone {
	position: static;
	margin: 16px 20px 0;
	align-self: flex-start;
}

/* ------------------------------------------------------------------ *
 * Job Cards Redesign
 * ------------------------------------------------------------------ */
.uaehub-card--job {
	border: 1px solid var(--uh-line);
	padding: 24px;
	gap: 14px;
	background: #ffffff;
}

.uaehub-card--job .uaehub-card__body {
	padding: 0;
}

.uaehub-card--job .uaehub-card__title {
	font-family: var(--uh-font-serif);
	font-size: 1.28rem;
	line-height: 1.3;
	font-weight: 700;
}

.uaehub-job__head { 
	display: flex; 
	flex-direction: column; 
	gap: 4px; 
}

.uaehub-job__company { 
	margin: 0; 
	color: var(--uaehub-accent); 
	font-family: var(--uh-font-sans);
	font-weight: 800; 
	font-size: 0.85rem; 
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.uaehub-job__facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	border-top: 1px solid var(--uh-line);
	border-bottom: 1px solid var(--uh-line);
	padding-block: 10px;
}

.uaehub-job__fact {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--uh-font-sans);
	font-size: 0.82rem;
	color: var(--uh-muted);
	font-weight: 500;
}

.uaehub-job__fact .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: var(--uaehub-accent);
}

.uaehub-job__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 4px;
	flex-wrap: wrap;
}

/* ------------------------------------------------------------------ *
 * Editorial Buttons
 * ------------------------------------------------------------------ */
.uaehub-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--uaehub-accent);
	color: #ffffff;
	font-family: var(--uh-font-sans);
	font-weight: 800;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	line-height: 1;
	padding: 12px 20px;
	border: none;
	border-radius: 0px; /* Sharp corners */
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.uaehub-btn:hover { 
	background: var(--uh-ink); 
	color: #ffffff; 
}

.uaehub-btn--apply { 
	padding: 10px 20px; 
}

/* ------------------------------------------------------------------ *
 * Jobs Filters Interface
 * ------------------------------------------------------------------ */
.uaehub-jobs-filters {
	background: #fafafa;
	border: 1px solid var(--uh-line);
	border-radius: 0px;
	padding: 24px;
	margin-bottom: 34px;
}

.uaehub-filter-row {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
}

@media (min-width: 720px) {
	.uaehub-filter-row {
		grid-template-columns: 2fr 1fr 1fr auto;
		align-items: center;
	}
	.uaehub-filter-search { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
	.uaehub-filter-row { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr auto; }
	.uaehub-filter-search { grid-column: auto; }
}

.uaehub-jobs-filters input[type="text"],
.uaehub-jobs-filters select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--uh-line);
	border-radius: 0px;
	background: #ffffff;
	font-family: var(--uh-font-sans);
	font-size: 0.88rem;
	color: var(--uh-ink);
	box-shadow: none;
}

.uaehub-jobs-filters input:focus,
.uaehub-jobs-filters select:focus {
	outline: 1px solid var(--uh-ink);
	border-color: var(--uh-ink);
}

.uaehub-btn-primary { 
	justify-content: center; 
}

/* ------------------------------------------------------------------ *
 * Classic Newspaper Pagination
 * ------------------------------------------------------------------ */
.uaehub-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 36px;
}

.uaehub-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--uh-line);
	border-radius: 0px;
	text-decoration: none;
	color: var(--uh-ink);
	font-family: var(--uh-font-sans);
	font-weight: 700;
	font-size: 0.88rem;
	background: #ffffff;
	transition: all 0.2s ease;
}

.uaehub-page:hover { 
	border-color: var(--uh-ink); 
	color: var(--uh-ink); 
	background: #fafafa;
}

.uaehub-page.current { 
	background: var(--uh-ink); 
	border-color: var(--uh-ink); 
	color: #ffffff; 
}

/* ------------------------------------------------------------------ *
 * Empty state
 * ------------------------------------------------------------------ */
.uaehub-empty {
	padding: 48px 24px;
	text-align: center;
	color: var(--uh-muted);
	background: #fafafa;
	border: 1px dashed var(--uh-line);
	border-radius: 0px;
	font-family: var(--uh-font-sans);
}

/* ------------------------------------------------------------------ *
 * Headline Stock Ticker (Newspaper Style)
 * ------------------------------------------------------------------ */
.uaehub-ticker {
	--uaehub-ticker-speed: 45s;
	position: relative;
	overflow: hidden;
	background: #000000;
	color: #ffffff;
	border-radius: 0px;
	padding: 12px 0;
	white-space: nowrap;
	border-top: 1px solid #1a1a1a;
	border-bottom: 1px solid #1a1a1a;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	        mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.uaehub-ticker-track {
	display: inline-flex;
	align-items: center;
	gap: 40px;
	padding-left: 40px;
	will-change: transform;
	animation: uaehub-ticker-scroll var(--uaehub-ticker-speed) linear infinite;
}

.uaehub-ticker:hover .uaehub-ticker-track { 
	animation-play-state: paused; 
}

.uaehub-ticker-item {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	font-family: var(--uh-font-sans);
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.uaehub-ticker-symbol { 
	font-weight: 800; 
	color: #ffffff;
}

.uaehub-ticker-price { 
	color: #a0aec0; 
	font-variant-numeric: tabular-nums; 
}

.uaehub-ticker-change { 
	font-weight: 700; 
	font-variant-numeric: tabular-nums; 
}
.uaehub-ticker-change.uaehub-up { 
	color: #48bb78; 
}
.uaehub-ticker-change.uaehub-down { 
	color: #f56565; 
}

@keyframes uaehub-ticker-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.uaehub-ticker-track { animation: none; }
	.uaehub-ticker { overflow-x: auto; }
}

/* ------------------------------------------------------------------ *
 * FAQ (AI blog single, progressive enhancement)
 * ------------------------------------------------------------------ */
.uaehub-faq { 
	margin: 32px 0; 
}

.uaehub-faq__item { 
	border: 1px solid var(--uh-line); 
	border-radius: 0px; 
	margin-bottom: 12px; 
	overflow: hidden; 
}

.uaehub-faq__q {
	width: 100%;
	text-align: left;
	background: #fafafa;
	border: 0;
	padding: 16px 20px;
	font-family: var(--uh-font-serif);
	font-weight: 700;
	font-size: 1.05rem;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	color: var(--uh-ink);
}

.uaehub-faq__a { 
	padding: 16px 20px; 
	font-family: var(--uh-font-sans);
	font-size: 0.95rem;
	color: var(--uh-muted);
}

.uaehub-faq__a > *:first-child { margin-top: 0; }
.uaehub-faq__a > *:last-child { margin-bottom: 0; }

.uaehub-faq.is-enhanced .uaehub-faq__q::after { 
	content: "+"; 
	font-size: 1.25rem; 
	color: var(--uaehub-accent); 
}

.uaehub-faq.is-enhanced .uaehub-faq__item.is-open .uaehub-faq__q::after { 
	content: "\2212"; 
}

.uaehub-faq.is-enhanced .uaehub-faq__a { 
	padding: 0 20px; 
	max-height: 0; 
	overflow: hidden; 
	transition: max-height .25s ease, padding .25s ease; 
}

.uaehub-faq.is-enhanced .uaehub-faq__item.is-open .uaehub-faq__a { 
	padding: 16px 20px; 
	max-height: 1000px; 
}

/* ------------------------------------------------------------------ *
 * Homepage Header Navigation (Arabian Business Style)
 * ------------------------------------------------------------------ */
.uaehub-homepage-header {
	background: #ffffff;
	border-top: 3px solid var(--uh-ink);
	border-bottom: 1px solid var(--uh-line);
	margin-bottom: 34px;
	padding-block: 16px;
}

.uaehub-homepage-header__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

@media (min-width: 768px) {
	.uaehub-homepage-header__inner {
		flex-direction: row;
		justify-content: space-between;
	}
}

.uaehub-homepage-header__title {
	font-family: var(--uh-font-serif);
	font-size: 1.6rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: var(--uh-ink);
}

.uaehub-homepage-header__title::after {
	content: ".";
	color: var(--uaehub-accent);
}

.uaehub-homepage-header__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 20px;
}

.uaehub-homepage-header__link {
	font-family: var(--uh-font-sans);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uh-ink);
	text-decoration: none;
	transition: color 0.15s ease;
	position: relative;
	padding-bottom: 4px;
}

.uaehub-homepage-header__link:hover {
	color: var(--uaehub-accent);
}

/* Smooth scrolling style */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 20px;
}

/* ------------------------------------------------------------------ *
 * Single News Source Link (Redirection Box)
 * ------------------------------------------------------------------ */
.uaehub-single-source-wrapper {
	margin-top: 40px;
	padding: 24px;
	background: #fafafa;
	border: 1px solid var(--uh-line);
	border-left: 4px solid var(--uaehub-accent);
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
}

@media (min-width: 620px) {
	.uaehub-single-source-wrapper {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 20px;
	}
}

.uaehub-single-source-text {
	margin: 0;
	font-family: var(--uh-font-sans);
	font-size: 0.92rem;
	color: var(--uh-muted);
	line-height: 1.5;
}

.uaehub-single-source-btn {
	white-space: nowrap;
	flex-shrink: 0;
}

/* ------------------------------------------------------------------ *
 * Homepage Hero Stock Ticker Banner
 * ------------------------------------------------------------------ */
.uaehub-hero-ticker-wrap {
	margin-top: 10px;
	margin-bottom: 30px;
}

/* ------------------------------------------------------------------ *
 * Homepage Header Branding Refinements
 * ------------------------------------------------------------------ */
.uaehub-homepage-header {
	background: #ffffff;
	border-top: 4px solid var(--uh-ink);
	border-bottom: 2px solid var(--uh-ink);
	margin-bottom: 34px;
	padding-top: 24px;
	padding-bottom: 12px;
	text-align: center;
}

.uaehub-homepage-header__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.uaehub-homepage-header__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
}

.uaehub-homepage-header__title {
	font-family: var(--uh-font-serif);
	font-size: 2.8rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--uh-ink);
	line-height: 1;
}

.uaehub-homepage-header__title::after {
	content: ".";
	color: var(--uaehub-accent);
}

.uaehub-homepage-header__tagline {
	margin: 0;
	font-family: var(--uh-font-sans);
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--uh-muted);
	border-top: 1px solid var(--uh-line);
	border-bottom: 1px solid var(--uh-line);
	padding-block: 6px;
	width: 100%;
	max-width: 600px;
}

.uaehub-homepage-header__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 24px;
	width: 100%;
	border-top: 1px solid var(--uh-line);
	padding-top: 14px;
}

.uaehub-homepage-header__link {
	font-family: var(--uh-font-sans);
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uh-ink);
	text-decoration: none;
	transition: color 0.15s ease;
	position: relative;
}

.uaehub-homepage-header__link:hover {
	color: var(--uaehub-accent);
}

/* ------------------------------------------------------------------ *
 * Alternating Category Grid Layouts (Split & Columns Divider)
 * ------------------------------------------------------------------ */

/* 1. Grid Split Layout (Odd Category Sections) */
@media (min-width: 960px) {
	.uaehub-grid--cat-split {
		display: grid;
		grid-template-columns: 1.4fr 1fr;
		gap: 30px;
	}
	.uaehub-grid--cat-split > article:first-child {
		grid-row: span 2;
	}
	.uaehub-grid--cat-split > article:not(:first-child) {
		display: grid;
		grid-template-columns: 100px 1fr;
		gap: 16px;
		align-items: start;
		border: none;
		padding-bottom: 16px;
		border-bottom: 1px solid var(--uh-line);
	}
	.uaehub-grid--cat-split > article:not(:first-child) .uaehub-card__media {
		aspect-ratio: 1 / 1;
		width: 100px;
	}
	.uaehub-grid--cat-split > article:not(:first-child) .uaehub-card__body {
		padding: 0;
	}
	.uaehub-grid--cat-split > article:not(:first-child) .uaehub-card__excerpt {
		display: none; /* Hide excerpt on stacked list items */
	}
}

/* 2. Grid Columns Divider Layout (Even Category Sections) */
@media (min-width: 768px) {
	.uaehub-grid--cat-columns {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 0;
	}
	.uaehub-grid--cat-columns > article {
		border: none;
		border-right: 1px solid var(--uh-line);
		padding-inline: 20px;
	}
	.uaehub-grid--cat-columns > article:first-child {
		padding-left: 0;
	}
	.uaehub-grid--cat-columns > article:last-child {
		border-right: none;
		padding-right: 0;
	}
}

/* ------------------------------------------------------------------ *
 * Premium Currency Converter Strip (Slate & Gold Editorial Theme)
 * ------------------------------------------------------------------ */
.uaehub-converter-strip {
	background: #ffffff;
	border: 1px solid var(--uh-line);
	border-top: 4px solid var(--uh-ink);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	margin-bottom: 35px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.uaehub-converter-strip:hover {
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.uaehub-converter-strip__controls {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 18px 24px;
	background: linear-gradient(135deg, #0f172a, #1e293b);
	border-bottom: 2px solid #c5a880; /* Elegant gold boundary line */
	flex-wrap: wrap;
}

.uaehub-converter-strip__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 0 0 auto;
}

.uaehub-converter-strip__label {
	font-family: var(--uh-font-sans);
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #94a3b8; /* Soft blue-gray for legibility against dark slate */
}

.uaehub-converter-strip__input {
	width: 130px;
	padding: 10px 12px;
	border: 1px solid #334155;
	border-radius: 0px;
	background: #1e293b;
	font-family: var(--uh-font-sans);
	font-size: 0.95rem;
	font-weight: 700;
	color: #ffffff;
	transition: border-color 0.25s, box-shadow 0.25s;
}

.uaehub-converter-strip__select {
	width: 120px;
	padding: 10px 12px;
	border: 1px solid #334155;
	border-radius: 0px;
	background: #1e293b;
	font-family: var(--uh-font-sans);
	font-size: 0.95rem;
	font-weight: 700;
	color: #ffffff;
	cursor: pointer;
	transition: border-color 0.25s, box-shadow 0.25s;
}

.uaehub-converter-strip__input:focus,
.uaehub-converter-strip__select:focus {
	outline: none;
	border-color: #c5a880;
	box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.25);
}

.uaehub-converter-strip__rates {
	display: flex;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #c5a880 transparent;
	gap: 0;
	background: #f8fafc;
}

.uaehub-converter-strip__rates::-webkit-scrollbar {
	height: 5px;
}

.uaehub-converter-strip__rates::-webkit-scrollbar-thumb {
	background: #c5a880;
}

.uaehub-converter-strip__pill {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 22px;
	border-right: 1px solid var(--uh-line);
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.uaehub-converter-strip__pill:hover {
	background: #ffffff;
	border-bottom: 2px solid #c5a880;
}

.uaehub-converter-strip__pill.is-active {
	background: #ffffff;
	pointer-events: none;
	border-bottom: 3px solid var(--uh-ink);
	font-weight: 700;
}

.uaehub-converter-strip__pill-flag {
	font-size: 1.25rem;
	flex-shrink: 0;
}

.uaehub-converter-strip__pill-code {
	font-family: var(--uh-font-sans);
	font-size: 0.76rem;
	font-weight: 800;
	color: var(--uh-ink);
	letter-spacing: 0.02em;
}

.uaehub-converter-strip__pill-value {
	font-family: var(--uh-font-sans);
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--uh-ink);
	letter-spacing: -0.01em;
	transition: opacity 0.15s ease;
}

.uaehub-converter-strip__pill-value.is-updating {
	opacity: 0.4;
}

.uaehub-converter-strip__pill-rate {
	font-family: var(--uh-font-sans);
	font-size: 0.68rem;
	color: var(--uh-muted);
	font-weight: 500;
}

.uaehub-converter-strip__footer {
	padding: 10px 24px;
	background: #ffffff;
	border-top: 1px solid var(--uh-line);
	display: flex;
	justify-content: flex-end;
}

.uaehub-converter-strip__update {
	font-family: var(--uh-font-sans);
	font-size: 0.68rem;
	color: var(--uh-muted);
	font-weight: 600;
}

/* ------------------------------------------------------------------ *
 * UAE Expat & Business Tools — Standalone Card Grid (Premium Theme)
 * ------------------------------------------------------------------ */
.uaehub-tools-grid {
	display: grid;
	gap: 30px;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.uaehub-tools-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.uaehub-tool-card {
	background: #ffffff;
	border: 1px solid var(--uh-line);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.uaehub-tool-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.uaehub-tool-card--wide {
	grid-column: 1 / -1;
}

.uaehub-tool-card__header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 24px;
	background: linear-gradient(135deg, #1e293b, #0f172a);
	border-bottom: 2px solid #c5a880;
	flex-wrap: wrap;
}

.uaehub-tool-card__icon {
	font-size: 1.4rem;
	flex-shrink: 0;
}

.uaehub-tool-card__title {
	font-family: var(--uh-font-serif);
	font-size: 1.15rem;
	font-weight: 800;
	margin: 0;
	color: #ffffff;
	flex: 1 1 auto;
	letter-spacing: -0.01em;
}

.uaehub-tool-card__select-wrap {
	flex: 0 0 auto;
}

.uaehub-tool-card__select,
.uaehub-tool-card__input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--uh-line);
	border-radius: 0px;
	background: #ffffff;
	font-family: var(--uh-font-sans);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--uh-ink);
	min-height: 44px;
	transition: border-color 0.25s, box-shadow 0.25s;
}

.uaehub-tool-card__select:focus,
.uaehub-tool-card__input:focus {
	outline: none;
	border-color: var(--uh-ink);
	box-shadow: 0 0 0 2px rgba(13, 13, 13, 0.1);
}

.uaehub-tool-card__desc {
	font-family: var(--uh-font-sans);
	font-size: 0.78rem;
	color: var(--uh-muted);
	font-weight: 600;
	margin: 0;
	padding: 14px 24px 0;
	letter-spacing: 0.01em;
}

.uaehub-tool-card__body {
	padding: 24px;
	flex: 1 1 auto;
}

.uaehub-tool-card__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.uaehub-tool-card__field-row {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr 1fr;
}

.uaehub-tool-card__label {
	font-family: var(--uh-font-sans);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uh-muted);
}

.uaehub-tool-card__result-box {
	background: #f8fafc;
	border: 1px solid var(--uh-line);
	border-left: 4px solid #c5a880; /* Premium gold indicator */
	padding: 20px;
	margin-top: 10px;
}

.uaehub-tool-card__result-label {
	font-family: var(--uh-font-sans);
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--uh-muted);
	display: block;
	margin-bottom: 6px;
}

.uaehub-tool-card__result-value {
	font-family: var(--uh-font-sans);
	font-size: 1.85rem;
	font-weight: 900;
	color: var(--uaehub-accent);
	letter-spacing: -0.03em;
	margin-bottom: 14px;
}

.uaehub-tool-card__result-meta {
	border-top: 1px solid var(--uh-line);
	padding-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-family: var(--uh-font-sans);
	font-size: 0.8rem;
	color: var(--uh-ink);
}

.uaehub-tool-card__result-meta strong {
	font-weight: 700;
	color: var(--uh-ink);
}

/* Prayer Timings Inside Card */
.uaehub-prayer-next-banner {
	background: #0f172a;
	color: #ffffff;
	border-bottom: 3px solid #c8102e; /* Red accent matching flag */
	padding: 18px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.uaehub-prayer-next-banner__label {
	font-family: var(--uh-font-serif);
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.uaehub-prayer-next-banner__label span {
	color: #fca5a5; /* Soft glowing red */
	font-weight: 900;
}

.uaehub-prayer-next-banner__countdown {
	font-family: var(--uh-font-sans);
	font-size: 1.65rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	color: #38bdf8; /* Digital blue countdown */
	font-variant-numeric: tabular-nums;
	text-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.uaehub-prayer-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, 1fr);
	padding: 24px;
	background: #ffffff;
}

@media (min-width: 580px) {
	.uaehub-prayer-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

.uaehub-prayer-card {
	background: #ffffff;
	border: 1px solid var(--uh-line);
	padding: 16px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: all 0.25s ease;
}

.uaehub-prayer-card.is-next {
	border-color: var(--uaehub-accent);
	background: #fff5f5;
	box-shadow: 0 4px 15px rgba(200, 16, 46, 0.08);
	transform: scale(1.03);
}

.uaehub-prayer-card__name {
	font-family: var(--uh-font-sans);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--uh-muted);
	letter-spacing: 0.03em;
}

.uaehub-prayer-card.is-next .uaehub-prayer-card__name {
	color: var(--uaehub-accent);
}

.uaehub-prayer-card__time {
	font-family: var(--uh-font-sans);
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--uh-ink);
}

/* Golden Visa Result Styling */
.uaehub-visa-results__badge {
	align-self: flex-start;
	padding: 6px 12px;
	font-family: var(--uh-font-sans);
	font-size: 0.78rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 12px;
	color: #ffffff;
	display: inline-block;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.uaehub-visa-results__badge.id-eligible {
	background: #10b981; /* Glowing green */
}

.uaehub-visa-results__badge.id-not-eligible {
	background: #ef4444; /* Alert red */
}

.uaehub-visa-results__text {
	font-family: var(--uh-font-sans);
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--uh-ink);
	margin-bottom: 16px;
	font-weight: 500;
}

.uaehub-visa-results__reqs {
	border-top: 1px solid var(--uh-line);
	padding-top: 14px;
}

.uaehub-visa-results__reqs h5 {
	margin: 0 0 10px 0;
	font-family: var(--uh-font-serif);
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--uh-ink);
}

.uaehub-visa-results__reqs ul {
	margin: 0;
	padding-left: 20px;
	font-family: var(--uh-font-sans);
	font-size: 0.82rem;
	color: var(--uh-muted);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.uaehub-hidden {
	display: none !important;
}

/* Weather Widget Inside Card */
.uaehub-weather-widget {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
	padding: 24px;
}

@media (min-width: 620px) {
	.uaehub-weather-widget {
		grid-template-columns: 1fr 1.6fr;
		align-items: center;
	}
}

.uaehub-weather-main {
	text-align: center;
	background: linear-gradient(135deg, #fffbeb, #fef3c7); /* Soft sun-glow warmth */
	border: 1px solid #fde68a;
	padding: 30px 24px;
	box-shadow: 0 4px 15px rgba(251, 191, 36, 0.05);
}

.uaehub-weather-temp-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 6px;
}

.uaehub-weather-icon {
	font-size: 2.8rem;
	filter: drop-shadow(0 2px 5px rgba(217, 119, 6, 0.2));
}

.uaehub-weather-temp {
	font-family: var(--uh-font-sans);
	font-size: 3rem;
	font-weight: 900;
	color: #78350f;
	letter-spacing: -0.03em;
}

.uaehub-weather-desc {
	font-family: var(--uh-font-serif);
	font-size: 1.1rem;
	font-weight: 800;
	color: #92400e;
}

.uaehub-weather-details {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

@media (min-width: 480px) {
	.uaehub-weather-details {
		grid-template-columns: repeat(2, 1fr);
	}
}

.uaehub-weather-detail {
	background: #ffffff;
	border: 1px solid var(--uh-line);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: box-shadow 0.2s;
}

.uaehub-weather-detail:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.uaehub-weather-detail__label {
	font-family: var(--uh-font-sans);
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--uh-muted);
}

.uaehub-weather-detail__value {
	font-family: var(--uh-font-sans);
	font-size: 1rem;
	font-weight: 700;
	color: var(--uh-ink);
}

/* Holidays Grid Inside Card */
.uaehub-holidays-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: 1fr;
	padding: 24px;
}

@media (min-width: 580px) {
	.uaehub-holidays-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.uaehub-holiday-card {
	background: #ffffff;
	border: 1px solid var(--uh-line);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: all 0.25s ease;
}

.uaehub-holiday-card:hover {
	border-color: #c5a880;
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(197, 168, 128, 0.1);
}

.uaehub-holiday-card__header {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.uaehub-holiday-card__name {
	font-family: var(--uh-font-serif);
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--uh-ink);
	line-height: 1.3;
}

.uaehub-holiday-card__date {
	font-family: var(--uh-font-sans);
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--uh-muted);
	letter-spacing: 0.02em;
}

.uaehub-holiday-card__countdown {
	font-family: var(--uh-font-sans);
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--uaehub-accent);
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
	border-top: 1px dashed var(--uh-line);
	padding-top: 10px;
}

/* ------------------------------------------------------------------ *
 * AdSense-Ready Spacing Utility
 * ------------------------------------------------------------------ */
.uaehub-ad-slot {
	margin-block: 36px;
	min-height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fafafa;
	border: 1px dashed var(--uh-line);
}

/* ------------------------------------------------------------------ *
 * Mobile Responsive Enhancements
 * ------------------------------------------------------------------ */
@media (max-width: 768px) {
	.uaehub-home,
	.uaehub-jobs-page {
		padding-inline: 12px;
	}

	/* Consistent section spacing for ad insertion */
	.uaehub-section {
		margin-block: 32px;
	}

	/* Hero grid stacks */
	.uaehub-hero__grid {
		grid-template-columns: 1fr;
	}

	/* All grids go single column */
	.uaehub-grid--3,
	.uaehub-grid--jobs,
	.uaehub-grid--cat-split,
	.uaehub-grid--cat-columns {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	/* Cat-columns: remove borders/padding on mobile */
	.uaehub-grid--cat-columns > article {
		border-right: none;
		padding-right: 0;
		padding-left: 0;
	}

	/* Section titles slightly smaller */
	.uaehub-section__title,
	.uaehub-section-title {
		font-size: 1.3rem;
	}

	/* Converter strip: controls stack */
	.uaehub-converter-strip__controls {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 16px 20px;
	}

	.uaehub-converter-strip__input,
	.uaehub-converter-strip__select {
		width: 100%;
	}

	.uaehub-converter-strip__pill {
		padding: 14px 18px;
		gap: 8px;
	}

	.uaehub-converter-strip__pill-value {
		font-size: 0.95rem;
	}

	/* Tools grid single column */
	.uaehub-tools-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	/* Prayer grid 2 columns on small screens */
	.uaehub-prayer-grid {
		grid-template-columns: repeat(2, 1fr);
		padding: 16px;
	}

	/* Weather widget stacks */
	.uaehub-weather-widget {
		grid-template-columns: 1fr;
		padding: 16px;
	}

	.uaehub-weather-temp {
		font-size: 2.2rem;
	}

	/* Holidays single column */
	.uaehub-holidays-grid {
		grid-template-columns: 1fr;
		padding: 16px;
	}

	/* Gratuity/Visa layouts single column */
	.uaehub-gratuity-layout,
	.uaehub-visa-layout {
		grid-template-columns: 1fr;
	}

	/* Touch-friendly inputs */
	.uaehub-tool-card__select,
	.uaehub-tool-card__input {
		min-height: 44px;
		font-size: 16px; /* Prevent iOS zoom */
	}

	/* Tool card padding tighter */
	.uaehub-tool-card__body {
		padding: 16px;
	}

	.uaehub-tool-card__header {
		padding: 14px 18px;
	}

	/* Result values smaller */
	.uaehub-tool-card__result-value {
		font-size: 1.45rem;
	}

	/* Ad slot reduced height on mobile */
	.uaehub-ad-slot {
		margin-block: 24px;
		min-height: 50px;
	}
}

/* Extra small screens */
@media (max-width: 380px) {
	.uaehub-section__title,
	.uaehub-section-title {
		font-size: 1.15rem;
	}

	.uaehub-prayer-grid {
		grid-template-columns: 1fr;
	}

	.uaehub-tool-card__field-row {
		grid-template-columns: 1fr;
	}

	.uaehub-converter-strip__pill {
		padding: 12px 12px;
	}

	.uaehub-converter-strip__pill-code {
		font-size: 0.68rem;
	}

	.uaehub-converter-strip__pill-value {
		font-size: 0.85rem;
	}
}

