/* ==========================================================================
   Design System & Tokens
   ========================================================================== */

:root {
	/* Colors - From Theme Settings */
	--shwc-fg-primary: var(--shwc-setting-heading-color, #111827);
	--shwc-fg-secondary: var(--shwc-setting-text-color, #4b5563);

	--shwc-bg-base: var(--shwc-setting-site-background, #0a1172);
	--shwc-bg-elevated: var(--shwc-setting-content-background, #f9fafb);

	--shwc-bg-elevated-hover: var(--shwc-setting-content-hover-background, #f3f4f6);

	--shwc-brand-base: var(--shwc-setting-brand-color, #3b82f6);
	--shwc-brand-strong: var(--shwc-setting-brand-strong, #1d4ed8);
	--shwc-content-link: var(--shwc-setting-content-link-color, #2563eb);
	--shwc-content-link-hover: var(--shwc-setting-content-link-hover-color, #1d4ed8);
	--shwc-border-strong: var(--shwc-setting-border-color, #e4e4e7);
	--shwc-border-subtle: var(--shwc-setting-border-color, #e4e4e7);
	--shwc-header-bg: var(--shwc-setting-header-background, #f9fafb);
	--shwc-header-text: var(--shwc-setting-header-text-color, #111827);
	--shwc-header-nav: var(--shwc-setting-header-nav-color, #4b5563);
	--shwc-header-nav-hover: var(--shwc-setting-header-nav-hover-color, #111827);
	--shwc-header-dropdown-border: var(--shwc-setting-header-dropdown-border, #e4e4e7);
	--shwc-footer-bg: var(--shwc-setting-footer-background, #f9fafb);
	--shwc-footer-text: var(--shwc-setting-footer-text-color, #4b5563);
	--shwc-footer-link: var(--shwc-setting-footer-link-color, #3b82f6);
	--shwc-footer-link-hover: var(--shwc-setting-footer-link-hover-color, #1d4ed8);
	--shwc-button-bg: var(--shwc-setting-button-background, #3b82f6);
	--shwc-button-text: var(--shwc-setting-button-text-color, #ffffff);
	--shwc-button-bg-hover: var(--shwc-setting-button-hover-background, #1d4ed8);
	--shwc-button-text-hover: var(--shwc-setting-button-hover-text-color, #ffffff);
	--shwc-font-sans: var(--shwc-setting-font-family-base, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
	--shwc-font-heading: var(--shwc-setting-font-family-heading, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
	--shwc-font-weight-base: var(--shwc-setting-font-weight-base, 400);
	--shwc-base-font-size: var(--shwc-setting-font-size-base, 18px);
	--shwc-base-font-size-mobile: var(--shwc-setting-font-size-base-mobile, 15px);
	--shwc-h1-size: var(--shwc-setting-h1-size, 50px);
	--shwc-h2-size: var(--shwc-setting-h2-size, 34px);
	--shwc-h3-size: var(--shwc-setting-h3-size, 28px);
	--shwc-h4-size: var(--shwc-setting-h4-size, 24px);
	--shwc-h5-size: var(--shwc-setting-h5-size, 20px);
	--shwc-h6-size: var(--shwc-setting-h6-size, 18px);
	--shwc-base-font-size-tablet: var(--shwc-setting-font-size-base-tablet, 18px);
	--shwc-h1-size-tablet: var(--shwc-setting-h1-size-tablet, 42px);
	--shwc-h2-size-tablet: var(--shwc-setting-h2-size-tablet, 30px);
	--shwc-h3-size-tablet: var(--shwc-setting-h3-size-tablet, 24px);
	--shwc-h4-size-tablet: var(--shwc-setting-h4-size-tablet, 22px);
	--shwc-h5-size-tablet: var(--shwc-setting-h5-size-tablet, 18px);
	--shwc-h6-size-tablet: var(--shwc-setting-h6-size-tablet, 16px);
	--shwc-h1-size-mobile: var(--shwc-setting-h1-size-mobile, 32px);
	--shwc-h2-size-mobile: var(--shwc-setting-h2-size-mobile, 28px);
	--shwc-h3-size-mobile: var(--shwc-setting-h3-size-mobile, 24px);
	--shwc-h4-size-mobile: var(--shwc-setting-h4-size-mobile, 20px);
	--shwc-h5-size-mobile: var(--shwc-setting-h5-size-mobile, 18px);
	--shwc-h6-size-mobile: var(--shwc-setting-h6-size-mobile, 16px);
	--shwc-h1-weight: var(--shwc-setting-h1-weight, 700);
	--shwc-h2-weight: var(--shwc-setting-h2-weight, 700);
	--shwc-h3-weight: var(--shwc-setting-h3-weight, 700);
	--shwc-h4-weight: var(--shwc-setting-h4-weight, 700);
	--shwc-h5-weight: var(--shwc-setting-h5-weight, 700);
	--shwc-h6-weight: var(--shwc-setting-h6-weight, 700);
	--shwc-shadow-sm: 0 1px 2px 0 var(--shwc-setting-shadow-sm, rgba(75, 85, 99, 0.08));
	--shwc-shadow-md: 0 4px 6px -1px var(--shwc-setting-shadow-md, rgba(75, 85, 99, 0.14));
	--shwc-button-shadow-soft: 0 4px 6px -1px var(--shwc-setting-button-shadow-soft, rgba(59, 130, 246, 0.2));
	--shwc-button-shadow-strong: 0 10px 15px -3px var(--shwc-setting-button-shadow-strong, rgba(59, 130, 246, 0.32));

	/* Layout & Spacing - From Theme Settings */
	--shwc-site-box-width: 1300px;
	--shwc-container-max: var(--shwc-setting-container-width, 1240px);
	--radius-base: var(--shwc-setting-border-radius, 4px);
	--shwc-image-radius: var(--shwc-setting-image-border-radius, 4px);
	--shwc-border-soft: color-mix(in srgb, var(--shwc-border-strong) 65%, white);
	--shwc-table-border: #e0e0e0;
	--shwc-table-header-rule: #1a2b49;
	--archive-grid-cols: var(--shwc-archive-grid-cols, 2);

	/* Spacing */
	--shwc-space-1: 4px;
	--shwc-space-2: 8px;
	--shwc-space-3: 12px;
	--shwc-space-4: 16px;
	--shwc-space-5: 24px;
	--shwc-space-6: 32px;
	--shwc-space-8: 48px;
	--shwc-space-10: 64px;

	/* Layout — Mercury .space-page-wrapper parity */
	--shwc-container-padding: 24px;
	--shwc-header-height: 80px;

	/* Transitions */
	--shwc-transition-smooth: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

body {
	margin: 0;
	padding: 0;
	font-family: var(--shwc-font-sans);
	font-size: var(--shwc-base-font-size);
	font-weight: var(--shwc-font-weight-base);
	background-color: #ffffff;
	color: var(--shwc-fg-secondary);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.shwc-theme {
	color: #2e3246;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--shwc-fg-primary);
	margin-top: 0;
	margin-bottom: 0;
	line-height: 1.2;
	font-family: var(--shwc-font-heading);
}

h1 {
	font-size: var(--shwc-h1-size);
	font-weight: var(--shwc-h1-weight);
}

h2 {
	font-size: var(--shwc-h2-size);
	font-weight: var(--shwc-h2-weight);
}

h3 {
	font-size: var(--shwc-h3-size);
	font-weight: var(--shwc-h3-weight);
}

h4 {
	font-size: var(--shwc-h4-size);
	font-weight: var(--shwc-h4-weight);
}

h5 {
	font-size: var(--shwc-h5-size);
	font-weight: var(--shwc-h5-weight);
}

h6 {
	font-size: var(--shwc-h6-size);
	font-weight: var(--shwc-h6-weight);
}

@media screen and (max-width: 768px) {
	body {
		font-size: var(--shwc-base-font-size-mobile);
	}

	.shwc-entry-content {
		font-size: inherit;
	}

	.shwc-entry-content p,
	.shwc-entry-content li {
		font-size: 1em;
	}

	h1 {
		font-size: var(--shwc-h1-size-mobile);
	}

	h2 {
		font-size: var(--shwc-h2-size-mobile);
	}

	h3 {
		font-size: var(--shwc-h3-size-mobile);
	}

	h4 {
		font-size: var(--shwc-h4-size-mobile);
	}

	h5 {
		font-size: var(--shwc-h5-size-mobile);
	}

	h6 {
		font-size: var(--shwc-h6-size-mobile);
	}
}

a {
	color: var(--shwc-content-link);
	text-decoration: none;
	transition: color var(--shwc-transition-smooth);
}

a:hover {
	color: var(--shwc-content-link-hover);
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.button {
	background-color: var(--shwc-button-bg);
	color: var(--shwc-button-text);
	border: 1px solid var(--shwc-border-strong);
	border-radius: calc(var(--radius-base) - 2px);
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.button:hover {
	background-color: var(--shwc-button-bg-hover);
	color: var(--shwc-button-text-hover);
}

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

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

.shwc-container {
	max-width: var(--shwc-container-max, 1200px);
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--shwc-container-padding);
	box-sizing: border-box;
}

/* Mercury .space-box.enabled — outer white column */
html {
	height: 100%;
}

body.shwc-theme {
	min-height: 100%;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow-x: clip;
}

.shwc-site {
	width: 100%;
	max-width: var(--shwc-site-box-width, 1260px);
	margin: 0 auto;
	flex: 1 0 auto;
	min-height: 100%;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	background-color: #ffffff;
	box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
	overflow-x: clip;
}

@media (max-width: 767px) {
	html,
	body.shwc-theme {
		overflow-x: hidden;
		max-width: 100%;
	}

	.shwc-site {
		max-width: 100%;
		width: 100%;
		overflow-x: hidden;
		box-shadow: none;
	}
}

.shwc-site-content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	background-color: #ffffff;
}

.shwc-site-content > .shwc-site-main {
	flex: 0 0 auto;
}

.ace-site-content-fill {
	flex: 1 1 auto;
	min-height: 0;
	background-color: #ffffff;
	pointer-events: none;
}

.shwc-site-main.ace-archive--companies-grid + .ace-site-content-fill {
	background-color: #f2f2f2;
}

@media screen and (max-width: 768px) {
	.shwc-container {
		padding: 0 15px;
	}
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.shwc-site-header {
	background-color: var(--shwc-header-bg, #ffffff);
	border-bottom: 0;
	box-shadow: 0 10px 40px 0 rgba(109, 141, 173, 0.25);
	z-index: 100;
}

body.has-sticky-header .shwc-site-header {
	position: sticky;
	top: 0;
}

.shwc-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--shwc-header-height);
	min-height: var(--shwc-header-height);
	gap: 0;
	padding-inline-end: 55px;
}

.shwc-site-branding {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	order: 1;
}

.shwc-main-navigation {
	display: flex;
	align-items: center;
	order: 2;
	flex: 1 1 auto;
	min-width: 0;
	margin-inline-start: auto;
	justify-content: flex-end;
}

@media screen and (min-width: 1025px) {
	.shwc-site-branding {
		flex: 0 0 25%;
		max-width: 25%;
	}

	.shwc-main-navigation {
		flex: 0 0 75%;
		max-width: 75%;
	}
}

.ace-search-toggle {
	order: 3;
	flex-shrink: 0;
	margin-inline-start: 12px;
}

.custom-logo-link {
	display: block;
	line-height: 0;
}

.custom-logo {
	display: block;
	width: var(--shwc-setting-logo-width, 200px);
	height: auto;
}

@media (max-width: 991px) {
	.custom-logo {
		width: var(--shwc-setting-logo-width-tablet, 150px);
	}
}

@media (max-width: 767px) {
	.ace-site-header .shwc-site-branding .custom-logo {
		width: calc(var(--shwc-setting-logo-width-mobile, 120px) * 1.25);
	}
}

.shwc-site-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.025em;
}

.shwc-site-title a {
	color: var(--shwc-header-text);
}

.shwc-site-title a:hover {
	color: var(--shwc-header-nav-hover);
}

.shwc-site-description {
	margin: 0;
	font-size: 0.875rem;
	color: var(--shwc-fg-secondary);
}

/* Main Navigation */

.shwc-menu-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--shwc-header-nav);
	padding: 4px;
	cursor: pointer;
	transition: color var(--shwc-transition-smooth);
	line-height: 0;
}

.shwc-menu-toggle:hover {
	color: var(--shwc-header-nav-hover);
	background: none;
}

.shwc-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	align-items: stretch;
}

.shwc-menu-list li {
	position: relative;
	flex-shrink: 0;
}

.shwc-menu-list > li > a {
	display: block;
	color: var(--shwc-header-nav, #151515);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.2;
	padding: 31px 16px;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
}

.shwc-menu-list > li > a:hover,
.shwc-menu-list > li.current-menu-item > a {
	color: var(--shwc-header-nav-hover, #be2edd);
	border-bottom-color: var(--shwc-header-nav-hover, #be2edd);
}

/* ---- Dropdown / Sub-menu (Desktop) ---- */

@media screen and (min-width: 1025px) {
	/* Black filled triangle centered at bottom of each menu item (Mercury static) */
	.shwc-menu-list > li.menu-item-has-children > a {
		position: relative;
		display: block;
		text-align: center;
	}

	.shwc-menu-list > li.menu-item-has-children > a::after,
	html[dir="rtl"] .shwc-menu-list > li.menu-item-has-children > a::after,
	.shwc-menu-list > li.ace-lang-switcher.menu-item-has-children > a::after {
		content: '';
		position: absolute;
		left: 50%;
		bottom: 18px;
		width: 8px;
		height: 5px;
		margin-left: -4px;
		padding: 0;
		border: 0;
		background: #151515;
		clip-path: polygon(50% 100%, 0 0, 100% 0);
		transform: none;
		flex-shrink: 0;
		opacity: 1;
		pointer-events: none;
	}
}

/* Dropdown panel — Mercury .space-header-menu sub-menu */
.shwc-menu-list > li > .sub-menu {
	list-style: none;
	margin: 0;
	padding: 15px 0;
	position: absolute;
	top: calc(100% + 20px);
	left: -15px;
	width: 230px;
	min-width: 230px;
	max-width: 230px;
	background: #ffffff;
	border: 0;
	border-radius: 5px;
	box-shadow: 0 10px 40px 0 rgba(109, 141, 173, 0.25);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, top 0.3s ease-in-out;
	z-index: 9999;
}

.shwc-menu-list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 15px 0;
	position: absolute;
	background: #ffffff;
	border: 0;
	border-radius: 5px;
	box-shadow: 0 10px 40px 0 rgba(109, 141, 173, 0.25);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 9999;
}

/* Invisible hover bridge — fills the margin gap above the panel */
.shwc-menu-list .sub-menu::before {
	content: '';
	position: absolute;
	top: -10px;
	left: 0;
	right: 0;
	height: 10px;
}

/* Show on hover — Mercury slides panel up into place */
.shwc-menu-list > li.menu-item-has-children:hover > .sub-menu,
.shwc-menu-list > li.menu-item-has-children.is-open > .sub-menu {
	top: 100%;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Edge-flip helpers (JS also sets .is-flip-left / .is-flip-right) */
.shwc-menu-list li:last-child>.sub-menu,
.shwc-menu-list li.ace-lang-switcher>.sub-menu,
.shwc-menu-list li.is-flip-right>.sub-menu {
	left: auto;
	right: 0;
}

.shwc-menu-list li.is-flip-left>.sub-menu {
	left: 0;
	right: auto;
}

/* Nested flyouts */
.shwc-menu-list .sub-menu li.menu-item-has-children:hover > .sub-menu,
.shwc-menu-list .sub-menu li.menu-item-has-children.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.shwc-menu-list .sub-menu .sub-menu {
	top: 0;
	left: 100%;
	width: 230px;
	min-width: 230px;
	max-width: 230px;
	margin-top: 0;
	margin-inline-start: 4px;
	padding: 15px 0;
}

.shwc-menu-list .sub-menu li.is-flip-right>.sub-menu {
	left: auto;
	right: 100%;
	margin-inline-start: 0;
	margin-inline-end: 4px;
}

/* Sub-menu items — Mercury padding */
.shwc-menu-list .sub-menu > li {
	display: block;
	padding: 6px 30px;
	line-height: 1.2;
	width: 100%;
}

/* Sub-menu links — allow wrap on long Arabic labels instead of overflowing */
.shwc-menu-list .sub-menu a {
	display: inline-block;
	padding: 0;
	font-size: 15px;
	font-weight: 400;
	color: #34495e;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	border-bottom: 1px solid transparent;
	border-radius: 0;
	transition: color 0.1s ease;
}

.shwc-menu-list .sub-menu a:hover {
	background: transparent;
	color: var(--shwc-header-nav-hover, #be2edd);
}

/* No inherited chevron on leaf sub-items; keep for nested parents */
.shwc-menu-list .sub-menu > li:not(.menu-item-has-children) > a::after {
	display: none;
}

.shwc-menu-list .sub-menu li.menu-item-has-children > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.shwc-menu-list .sub-menu li.menu-item-has-children > a::after {
	content: '\25B6';
	display: inline-block;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 8px;
	border: 0;
	width: auto;
	height: auto;
	transform: none;
	margin-top: 0;
}

/* Mega menu panel */
.shwc-menu-list li.mega-menu>.sub-menu {
	min-width: min(400px, calc(100vw - 24px));
	max-width: min(720px, calc(100vw - 24px));
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
	padding: 10px;
}

.shwc-menu-list li.mega-menu.is-flip-right>.sub-menu,
.shwc-menu-list li:last-child.mega-menu>.sub-menu {
	left: auto;
	right: 0;
}

.shwc-menu-list li.mega-menu .sub-menu a {
	white-space: normal;
}

/* Desktop: drawer chrome hidden; menu list stays horizontal in the header */
.ace-mobile-drawer__backdrop,
.ace-mobile-drawer__top,
.ace-mobile-drawer__copy,
.ace-mobile-drawer__close {
	display: none;
}

.ace-mobile-drawer,
.ace-mobile-drawer__panel {
	display: contents;
}

/* Mobile Navigation — Mercury-style side drawer */
@media screen and (max-width: 1024px) {
	.shwc-site-header {
		position: relative;
		--shwc-header-height: 60px;
	}

	.shwc-site-branding,
	.shwc-main-navigation {
		flex: 0 1 auto;
		max-width: none;
	}

	.shwc-header-inner {
		padding-inline-end: 15px;
	}

	/* Logo | search | hamburger */
	.shwc-main-navigation {
		order: 3;
		margin-inline-start: 0;
	}

	.ace-search-toggle {
		order: 2;
		margin-inline-start: auto;
	}

	.shwc-menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		z-index: 10000;
	}

	.ace-mobile-drawer,
	.ace-mobile-drawer__panel {
		display: block;
	}

	.ace-mobile-drawer {
		position: fixed;
		inset: 0;
		z-index: 100000;
		margin: 0;
		padding: 0;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
	}

	.shwc-main-navigation.is-toggled .ace-mobile-drawer {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.ace-mobile-drawer__backdrop {
		display: block;
		position: absolute;
		inset: 0;
		border: 0;
		padding: 0;
		margin: 0;
		background: rgba(45, 52, 54, 0.95);
		cursor: pointer;
	}

	.ace-mobile-drawer__panel {
		position: absolute;
		top: 0;
		bottom: 0;
		right: 0;
		left: auto;
		width: 100%;
		max-width: 320px;
		background: #fff;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 45px 30px;
		box-sizing: border-box;
		transform: translateX(100%);
		transition: transform 0.3s ease-in-out;
	}

	.shwc-main-navigation.is-toggled .ace-mobile-drawer__panel {
		transform: translateX(0);
	}

	/* Always slide from the right (matches static Mercury), including RTL */
	html[dir="rtl"] .ace-mobile-drawer__panel {
		right: 0;
		left: auto;
		transform: translateX(100%);
	}

	html[dir="rtl"] .shwc-main-navigation.is-toggled .ace-mobile-drawer__panel {
		transform: translateX(0);
	}

	.ace-mobile-drawer__top {
		display: block;
		margin: 0 0 45px;
		position: relative;
		min-height: 40px;
		padding-right: 28px;
		direction: ltr;
		text-align: left;
	}

	.ace-mobile-drawer__brand {
		line-height: 0;
		text-align: left;
	}

	.ace-mobile-drawer__brand .custom-logo-link,
	.ace-mobile-drawer__brand .custom-logo {
		display: inline-block;
		line-height: 0;
	}

	.ace-mobile-drawer__brand .custom-logo {
		width: auto !important;
		max-width: min(237px, 78%);
		height: auto;
		max-height: 40px;
		object-fit: contain;
	}

	.ace-mobile-drawer__close {
		display: inline-flex;
		position: absolute;
		top: 20px;
		right: 20px;
		left: auto;
		width: 28px;
		height: 28px;
		align-items: center;
		justify-content: center;
		padding: 0;
		border: 0;
		background: transparent;
		color: #151515;
		cursor: pointer;
		z-index: 3;
	}

	html[dir="rtl"] .ace-mobile-drawer__close {
		right: 20px;
		left: auto;
	}

	.ace-mobile-drawer__close-icon {
		position: relative;
		display: block;
		width: 20px;
		height: 21px;
	}

	.ace-mobile-drawer__close-bar {
		position: absolute;
		top: 10px;
		left: 0;
		width: 20px;
		height: 1px;
		background: #151515;
	}

	.ace-mobile-drawer__close-bar--a {
		transform: rotate(135deg);
	}

	.ace-mobile-drawer__close-bar--b {
		transform: rotate(45deg);
	}

	.shwc-main-navigation .shwc-menu-list {
		display: flex;
		position: static;
		width: 100%;
		height: auto;
		background: transparent;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-start;
		padding: 0;
		gap: 0;
		overflow: visible;
	}

	/*
	 * Mobile drawer accordion — match Mercury .space-mobile-menu-list
	 * Carets on the LI (right edge), nested children indented in-flow (no popup).
	 */
	.ace-mobile-drawer__panel .shwc-menu-list,
	.ace-mobile-drawer__panel .shwc-menu-list .sub-menu {
		width: 100%;
		position: relative;
	}

	.ace-mobile-drawer__panel .shwc-menu-list li {
		width: 100%;
		position: relative;
		font-weight: 700;
		font-size: 1em;
		line-height: 1em;
		color: #2d3436;
		text-align: left;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list li {
		text-align: right;
	}

	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list > li > a,
	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list .sub-menu > li > a,
	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list .sub-menu a {
		direction: rtl !important;
		text-align: right !important;
	}

	.ace-mobile-drawer__panel .shwc-menu-list > li > a,
	.ace-mobile-drawer__panel .shwc-menu-list .sub-menu > li > a,
	.ace-mobile-drawer__panel .shwc-menu-list .sub-menu a {
		position: relative !important;
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 10px 22px 10px 0 !important; /* room for caret on the right (EN) */
		margin: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		border-bottom: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		font-size: 1em !important;
		font-weight: 700 !important;
		line-height: 1em !important;
		color: #2d3436 !important;
		white-space: normal !important;
		opacity: 1 !important;
		text-align: inherit !important;
		box-sizing: border-box !important;
	}

	/* AR: caret on the left — pad the label so the whole row is clickable */
	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list > li > a,
	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list .sub-menu > li > a,
	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list .sub-menu a {
		padding: 10px 0 10px 22px !important;
	}

	/* Kill desktop link carets / nested ► — drawer uses li::after instead */
	.ace-mobile-drawer__panel .shwc-menu-list li.menu-item-has-children > a::after,
	.ace-mobile-drawer__panel .shwc-menu-list .sub-menu li.menu-item-has-children > a::after,
	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list li.menu-item-has-children > a::after,
	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list .sub-menu li.menu-item-has-children > a::after {
		content: none !important;
		display: none !important;
		border: 0 !important;
		background: none !important;
		clip-path: none !important;
		width: 0 !important;
		height: 0 !important;
	}

	/* ▼ closed / ▲ open — on the LI, far right (static Mercury) */
	.ace-mobile-drawer__panel .shwc-menu-list li.menu-item-has-children::after {
		content: '\25BC' !important;
		font-family: Arial, Helvetica, sans-serif !important;
		font-weight: 700 !important;
		font-size: 8px !important;
		line-height: 1 !important;
		color: #151515 !important;
		position: absolute !important;
		top: 12px !important;
		right: 0 !important;
		left: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: none !important;
		clip-path: none !important;
		transform: none !important;
		opacity: 1 !important;
		pointer-events: none !important;
		z-index: 2 !important;
	}

	.ace-mobile-drawer__panel .shwc-menu-list li.menu-item-has-children.is-open::after {
		content: '\25B2' !important;
		top: 12px !important;
	}

	/* Arabic: caret on the LEFT of the label (matches static AR mobile) */
	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list li.menu-item-has-children::after {
		right: auto !important;
		left: 0 !important;
	}

	/* Kill desktop popup / flyout boxes inside drawer */
	.ace-mobile-drawer__panel .shwc-menu-list .sub-menu::before {
		display: none !important;
		content: none !important;
	}

	.ace-mobile-drawer__panel .shwc-menu-list > li > .sub-menu,
	.ace-mobile-drawer__panel .shwc-menu-list .sub-menu,
	.ace-mobile-drawer__panel .shwc-menu-list .sub-menu .sub-menu,
	.ace-mobile-drawer__panel .shwc-menu-list li.mega-menu > .sub-menu,
	.shwc-main-navigation.is-toggled .ace-mobile-drawer__panel .shwc-menu-list .sub-menu {
		position: static !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		inset: auto !important;
		float: none !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 0 0 15px !important;
		background: transparent !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		transform: none !important;
		z-index: auto !important;
		transition: none !important;
		display: none !important;
		grid-template-columns: none !important;
	}

	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list > li > .sub-menu,
	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list .sub-menu,
	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list .sub-menu .sub-menu {
		padding: 0 15px 0 0 !important; /* indent children away from the right edge */
		text-align: right !important;
	}

	/* Open accordion (any depth) */
	.ace-mobile-drawer__panel .shwc-menu-list li.is-open > .sub-menu,
	.ace-mobile-drawer__panel .shwc-menu-list li.mega-menu.is-open > .sub-menu,
	.shwc-main-navigation.is-toggled .ace-mobile-drawer__panel .shwc-menu-list li.is-open > .sub-menu {
		display: block !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.ace-mobile-drawer__panel .shwc-menu-list .sub-menu > li {
		display: block !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		line-height: 1em !important;
	}

	/* Drawer copyright (static .space-mobile-menu-copy) */
	.ace-mobile-drawer__copy {
		display: block;
		margin-top: 60px;
		padding: 30px 0;
		border-top: 1px solid #f5f6fa;
		font-size: 0.75em;
		font-weight: 400;
		line-height: 1.45;
		color: #7f8c8d;
		text-align: center;
	}
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.shwc-site-main {
	padding-top: var(--shwc-space-6);
	padding-bottom: var(--shwc-space-6);
	background-color: #ffffff;
}

/* Single posts: banner flush under header like Mercury static */
.shwc-site-main.ace-single--post,
.shwc-site-main.ace-single--banner {
	padding-top: 0;
}

@media screen and (max-width: 768px) {
	.shwc-site-main {
		padding-top: var(--shwc-space-4);
		padding-bottom: var(--shwc-space-4);
		overflow-x: hidden;
	}
}

.shwc-post-article {
	background-color: var(--shwc-bg-elevated);
	border: 1px solid var(--shwc-border-strong);
	border-radius: var(--radius-base);
	padding: var(--shwc-space-6);
	margin-bottom: var(--shwc-space-6);
	box-shadow: var(--shwc-shadow-sm);
	transition: background var(--shwc-transition-smooth);
}

.shwc-post-article:hover {
	background: var(--shwc-setting-content-hover-background);
}

.archive .site-main>article,
.tax-category .site-main>article,
.tax-post_tag .site-main>article,
.taxonomy .site-main>article {
	background-color: var(--shwc-bg-elevated);
	border: 1px solid var(--shwc-border-strong);
	border-radius: var(--radius-base);
	padding: var(--shwc-space-5);
	margin-bottom: var(--shwc-space-5);
	transition: background var(--shwc-transition-smooth);
}

.archive .site-main>article:hover,
.tax-category .site-main>article:hover,
.tax-post_tag .site-main>article:hover,
.taxonomy .site-main>article:hover {
	background: var(--shwc-setting-content-hover-background);
}

.shwc-entry-title {
	font-size: var(--shwc-h1-size);
	font-weight: 800;
	margin-bottom: 12px;
	color: var(--shwc-fg-primary);
}

.shwc-entry-content a {
	color: var(--shwc-green, #6e8477);
	text-decoration: none;
}

.shwc-entry-content a:hover {
	color: #5a7164;
	text-decoration: none;
}

/* Language-specific content + breadcrumb links */
.ace-lang-en {
	--ace-content-link: #b22222;
	--ace-content-link-hover: #8b1a1a;
}

.ace-lang-ar {
	--ace-content-link: #33a659;
	--ace-content-link-hover: #2a8f4a;
}

.ace-lang-en .shwc-entry-content :where(p, li, td, th, figcaption, nav, blockquote, dd, dt) a:not(.wp-block-button__link):not(.ace-post-cat):not(.ace-btn):not(.ace-btn--play):not(.ace-bonus-banner-play):not(.ace-bonus-content-play):not(.ace-summary-play):not(.ace-banner-play):not(.maxbutton),
.ace-lang-en .shwc-entry-content .wp-block-rank-math-toc-block a,
.ace-lang-en .shwc-entry-content #rank-math-toc a,
.ace-lang-en .shwc-entry-content .wp-block-table-of-contents a,
.ace-lang-en .shwc-entry-content .ub_table-of-contents a,
.ace-lang-en .ace-breadcrumbs a {
	color: var(--shwc-green, #6e8477);
	text-decoration: none;
	background: transparent;
	box-shadow: none;
}

.ace-lang-en .shwc-entry-content :where(p, li, td, th, figcaption, nav, blockquote, dd, dt) a:not(.wp-block-button__link):not(.ace-post-cat):not(.ace-btn):not(.ace-btn--play):not(.ace-bonus-banner-play):not(.ace-bonus-content-play):not(.ace-summary-play):not(.ace-banner-play):not(.maxbutton):hover,
.ace-lang-en .shwc-entry-content .wp-block-rank-math-toc-block a:hover,
.ace-lang-en .shwc-entry-content #rank-math-toc a:hover,
.ace-lang-en .shwc-entry-content .wp-block-table-of-contents a:hover,
.ace-lang-en .shwc-entry-content .ub_table-of-contents a:hover,
.ace-lang-en .ace-breadcrumbs a:hover {
	color: #5a7164;
	text-decoration: none;
}

.ace-lang-ar .shwc-entry-content :where(p, li, td, th, figcaption, nav, blockquote, dd, dt) a:not(.wp-block-button__link):not(.ace-post-cat):not(.ace-btn):not(.ace-btn--play):not(.ace-bonus-banner-play):not(.ace-bonus-content-play):not(.ace-summary-play):not(.ace-banner-play):not(.maxbutton),
.ace-lang-ar .shwc-entry-content .wp-block-rank-math-toc-block a,
.ace-lang-ar .shwc-entry-content #rank-math-toc a,
.ace-lang-ar .shwc-entry-content .wp-block-table-of-contents a,
.ace-lang-ar .shwc-entry-content .ub_table-of-contents a,
.ace-lang-ar .ace-breadcrumbs a {
	color: var(--shwc-green, #6e8477);
	text-decoration: none;
	background: transparent;
	box-shadow: none;
}

.ace-lang-ar .shwc-entry-content :where(p, li, td, th, figcaption, nav, blockquote, dd, dt) a:not(.wp-block-button__link):not(.ace-post-cat):not(.ace-btn):not(.ace-btn--play):not(.ace-bonus-banner-play):not(.ace-bonus-content-play):not(.ace-summary-play):not(.ace-banner-play):not(.maxbutton):hover,
.ace-lang-ar .shwc-entry-content .wp-block-rank-math-toc-block a:hover,
.ace-lang-ar .shwc-entry-content #rank-math-toc a:hover,
.ace-lang-ar .shwc-entry-content .wp-block-table-of-contents a:hover,
.ace-lang-ar .shwc-entry-content .ub_table-of-contents a:hover,
.ace-lang-ar .ace-breadcrumbs a:hover {
	color: #5a7164;
	text-decoration: none;
}

.shwc-entry-content a:not(.wp-block-button__link):not(.ace-btn):not(.ace-btn--play):not(.ace-bonus-banner-play):not(.ace-bonus-content-play):not(.ace-summary-play):not(.ace-banner-play):not(.ace-post-cat):not(.maxbutton) {
	background: transparent;
	background-color: transparent;
	box-shadow: none;
}

.shwc-entry-content .space-organizations-3-archive-item-button-ins a,
.shwc-entry-content .space-organizations-3-archive-item-logo-ins a {
	text-decoration: none;
	box-shadow: none;
}

/* Buttons never underlined (MaxButton / theme CTAs). */
.shwc-entry-content .maxbutton,
.shwc-entry-content a.maxbutton,
.shwc-entry-content .maxbutton .mb-text,
.shwc-entry-content .maxbutton span,
.shwc-entry-content .wp-block-button__link,
.shwc-entry-content .ace-btn,
.shwc-entry-content .ace-btn--play,
.shwc-entry-content .ace-bonus-banner-play,
.shwc-entry-content .ace-bonus-content-play,
.shwc-entry-content .ace-summary-play,
.shwc-entry-content .ace-banner-play,
.shwc-entry-content .ace-btn--bonus-grid,
.shwc-entry-content .space-aces-single-offer-info-button-ins a,
.shwc-entry-content .space-organizations-3-archive-item-button-ins a,
.ace-btn,
.ace-btn--play,
.ace-btn--bonus-grid,
.ace-bonus-banner-play,
.ace-bonus-content-play,
.maxbutton,
a.maxbutton,
.maxbutton .mb-text {
	text-decoration: none !important;
}

.shwc-entry-content .maxbutton:hover,
.shwc-entry-content a.maxbutton:hover,
.shwc-entry-content .maxbutton .mb-text:hover,
.shwc-entry-content .wp-block-button__link:hover,
.shwc-entry-content .ace-btn:hover,
.shwc-entry-content .ace-btn--play:hover,
.shwc-entry-content .space-aces-single-offer-info-button-ins a:hover,
.maxbutton:hover,
a.maxbutton:hover {
	text-decoration: none !important;
}

.shwc-entry-content mark,
.shwc-entry-content .mark,
.shwc-entry-content .search-highlight,
.shwc-entry-content .ez-toc-highlight,
.shwc-entry-content .has-inline-color,
.shwc-entry-content [class*="has-"][class*="background"] {
	background: transparent !important;
	background-color: transparent !important;
	color: inherit !important;
	box-shadow: none !important;
}

.shwc-entry-content .wp-block-rank-math-toc-block a,
.shwc-entry-content .wp-block-rank-math-toc-block a *,
.shwc-entry-content #rank-math-toc a,
.shwc-entry-content #rank-math-toc a *,
.shwc-entry-content .wp-block-table-of-contents a,
.shwc-entry-content .wp-block-table-of-contents a *,
.shwc-entry-content .ub_table-of-contents a,
.shwc-entry-content .ub_table-of-contents a * {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

/* Table of contents — boxed (Rank Math + core + Ultimate Blocks) */
.shwc-entry-content .wp-block-rank-math-toc-block,
.shwc-entry-content #rank-math-toc,
.shwc-entry-content .wp-block-table-of-contents,
.shwc-entry-content .ub_table-of-contents {
	margin: 1.45em 0 2.9em;
	padding: 22px 24px;
	background: #f5f6fa;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
}

.shwc-entry-content .wp-block-rank-math-toc-block > h2,
.shwc-entry-content #rank-math-toc > h2,
.shwc-entry-content .wp-block-table-of-contents > h2,
.shwc-entry-content .ub_table-of-contents-header,
.shwc-entry-content .ub_table-of-contents-header-container .ub_table-of-contents-header {
	margin: 0 0 16px;
	padding: 0;
	color: #151515;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.45;
}

.shwc-entry-content .wp-block-rank-math-toc-block nav > ul,
.shwc-entry-content #rank-math-toc nav > ul,
.shwc-entry-content .wp-block-table-of-contents ul,
.shwc-entry-content .ub_table-of-contents-container ul {
	margin: 0;
	padding-inline-start: 1.25em;
	list-style: disc;
}

html[dir="rtl"] .shwc-entry-content .wp-block-rank-math-toc-block nav > ul,
html[dir="rtl"] .shwc-entry-content #rank-math-toc nav > ul,
html[dir="rtl"] .shwc-entry-content .wp-block-table-of-contents ul,
html[dir="rtl"] .shwc-entry-content .ub_table-of-contents-container ul {
	padding-inline-start: 0;
	padding-inline-end: 1.25em;
}

.shwc-entry-content .wp-block-rank-math-toc-block li,
.shwc-entry-content #rank-math-toc li,
.shwc-entry-content .wp-block-table-of-contents li,
.shwc-entry-content .ub_table-of-contents-container li {
	margin-bottom: 8px;
	line-height: 1.45;
}

.shwc-entry-content .wp-block-rank-math-toc-block li:last-child,
.shwc-entry-content #rank-math-toc li:last-child,
.shwc-entry-content .wp-block-table-of-contents li:last-child,
.shwc-entry-content .ub_table-of-contents-container li:last-child {
	margin-bottom: 0;
}

/* Typography Elements (Lists, Quotes, Tables, Images) */
.shwc-entry-content h1,
.shwc-entry-content h2,
.shwc-entry-content h3,
.shwc-entry-content h4,
.shwc-entry-content h5,
.shwc-entry-content h6 {
	margin-top: 20px;
	margin-bottom: 20px;
	line-height: 1.3;
}

.shwc-entry-content ul,
.shwc-entry-content ol {
	margin: 0 0 var(--shwc-space-5) 24px;
	padding: 0;
}

.shwc-entry-content li {
	margin-bottom: var(--shwc-space-2);
}

.shwc-entry-content li:last-child {
	margin-bottom: 0;
}

.shwc-entry-content blockquote {
	margin: var(--shwc-space-5) 0;
	padding: var(--shwc-space-4) var(--shwc-space-5);
	background: var(--shwc-bg-elevated);
	border-left: 4px solid var(--shwc-brand-base);
	border-radius: 0 var(--radius-base) var(--radius-base) 0;
	font-style: italic;
	color: var(--shwc-fg-secondary);
}

.shwc-entry-content blockquote p {
	margin-bottom: 0;
}

.shwc-entry-content blockquote p:last-child {
	margin-bottom: 0;
}

/* ---- Tables (Gutenberg + classic) — fill contained width ---- */
.shwc-entry-content .wp-block-table,
.shwc-entry-content .shwc-table-scroll {
	width: 100%;
	max-width: 100%;
	margin: var(--shwc-space-5) 0;
	overflow: visible;
	border: 1px solid var(--shwc-table-border);
	border-radius: var(--radius-base);
	background: #ffffff;
}

.shwc-entry-content .wp-block-table table,
.shwc-entry-content .shwc-table-scroll table,
.shwc-entry-content > table {
	width: 100%;
	max-width: 100%;
	margin: 0;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
	background: #ffffff;
	border: none;
}

.shwc-entry-content > table {
	display: table;
	width: 100%;
	max-width: 100%;
	margin: var(--shwc-space-5) 0;
	border: 1px solid var(--shwc-table-border);
	border-radius: var(--radius-base);
	border-collapse: collapse;
	border-spacing: 0;
	overflow: hidden;
	background: #ffffff;
}

.shwc-entry-content .wp-block-table th,
.shwc-entry-content .wp-block-table td,
.shwc-entry-content .shwc-table-scroll th,
.shwc-entry-content .shwc-table-scroll td,
.shwc-entry-content > table th,
.shwc-entry-content > table td {
	padding: 12px 16px;
	border: 1px solid var(--shwc-table-border) !important;
	text-align: left;
	vertical-align: top;
	word-break: break-word;
	overflow-wrap: anywhere;
	background: #ffffff !important;
	color: var(--shwc-fg-secondary);
	font-weight: 400;
}

.shwc-entry-content .wp-block-table thead th,
.shwc-entry-content .wp-block-table thead td,
.shwc-entry-content .shwc-table-scroll thead th,
.shwc-entry-content .shwc-table-scroll thead td,
.shwc-entry-content > table thead th,
.shwc-entry-content > table thead td,
.shwc-entry-content .wp-block-table table:not(:has(thead)) tbody tr:first-child td,
.shwc-entry-content .wp-block-table table:not(:has(thead)) tbody tr:first-child th,
.shwc-entry-content > table:not(:has(thead)) tbody tr:first-child td,
.shwc-entry-content > table:not(:has(thead)) tbody tr:first-child th {
	background: #ffffff !important;
	font-weight: 700;
	color: var(--shwc-fg-primary);
}

.shwc-entry-content .wp-block-table tbody tr:nth-child(odd) td,
.shwc-entry-content .wp-block-table tbody tr:nth-child(even) td,
.shwc-entry-content .shwc-table-scroll tbody tr:nth-child(odd) td,
.shwc-entry-content .shwc-table-scroll tbody tr:nth-child(even) td,
.shwc-entry-content > table tbody tr:nth-child(odd) td,
.shwc-entry-content > table tbody tr:nth-child(even) td,
.shwc-entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
	background: #ffffff !important;
	color: var(--shwc-fg-secondary);
}

.shwc-entry-content .wp-block-table figcaption,
.shwc-entry-content .wp-block-table .wp-element-caption {
	padding: 10px 12px;
	font-size: 0.875rem;
	color: var(--shwc-fg-secondary);
	border-top: 1px solid var(--shwc-table-border);
	background: #ffffff;
}

@media (max-width: 768px) {
	.shwc-entry-content .wp-block-table th,
	.shwc-entry-content .wp-block-table td,
	.shwc-entry-content .shwc-table-scroll th,
	.shwc-entry-content .shwc-table-scroll td,
	.shwc-entry-content > table th,
	.shwc-entry-content > table td {
		padding: 10px 12px;
		font-size: 0.875rem;
		white-space: normal;
	}
}

.shwc-entry-content>img,
.shwc-entry-content p>img,
.shwc-entry-content figure>img {
	max-width: 100%;
	height: auto;
	border-radius: var(--shwc-image-radius, 8px);
	margin: var(--shwc-space-5) 0;
	display: block;
}

/* Featured image */
.shwc-featured-image {
	margin: 0 0 var(--shwc-space-5);
	padding: 0;
}

.shwc-featured-image .shwc-featured-img,
.shwc-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--shwc-image-radius, 8px);
	margin: 0;
}

/* Content + sidebar layout */
.shwc-site-main > .shwc-container {
	display: block;
}

.shwc-site-main > .shwc-container.shwc-container--with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 70%) minmax(0, 30%);
	gap: 0;
	align-items: start;
}

.shwc-container--fullwidth {
	max-width: none !important;
	width: 100%;
	padding-left: var(--shwc-container-padding);
	padding-right: var(--shwc-container-padding);
}

body.layout-fullwidth .shwc-site-main > .shwc-container {
	max-width: none;
}

.shwc-content-area {
	min-width: 0;
}

.shwc-widget-area {
	min-width: 0;
}

.shwc-widget {
	margin-bottom: var(--shwc-space-5);
	padding: var(--shwc-space-4);
	background: var(--shwc-bg-elevated);
	border: 1px solid var(--shwc-border-strong);
	border-radius: var(--radius-base);
}

.shwc-widget-title {
	margin: 0 0 var(--shwc-space-3);
	font-size: 1.05rem;
	color: var(--shwc-fg-primary);
}

.shwc-page-links {
	margin-top: var(--shwc-space-5);
}

@media (max-width: 900px) {
	.shwc-site-main > .shwc-container.shwc-container--with-sidebar {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		direction: ltr;
	}

	.shwc-site-main > .shwc-container.shwc-container--with-sidebar > .shwc-content-area,
	.shwc-site-main > .shwc-container.shwc-container--with-sidebar > .has-sidebar {
		order: 1;
	}

	.shwc-site-main > .shwc-container.shwc-container--with-sidebar > .shwc-widget-area,
	.shwc-site-main > .shwc-container.shwc-container--with-sidebar > .ace-archive-sidebar {
		order: 2;
	}

	.ace-lang-ar .ace-archive--editorial .shwc-content-area,
	.ace-lang-ar .ace-archive--editorial .ace-archive-sidebar,
	.ace-lang-ar .ace-single--bonus-sidebar .shwc-content-area,
	.ace-lang-ar .ace-single--bonus-sidebar .ace-archive-sidebar,
	html[dir="rtl"] .ace-single--bonus-sidebar .shwc-content-area,
	html[dir="rtl"] .ace-single--bonus-sidebar .ace-archive-sidebar {
		order: unset;
	}

	.ace-lang-ar .ace-archive--editorial .shwc-content-area,
	.ace-lang-ar .ace-single--bonus-sidebar .shwc-content-area,
	html[dir="rtl"] .ace-single--bonus-sidebar .shwc-content-area {
		order: 1;
	}

	.ace-lang-ar .ace-archive--editorial .ace-archive-sidebar,
	.ace-lang-ar .ace-single--bonus-sidebar .ace-archive-sidebar,
	html[dir="rtl"] .ace-single--bonus-sidebar .ace-archive-sidebar {
		order: 2;
	}

	.shwc-site-main.ace-single--bonus-sidebar > .shwc-container.shwc-container--with-sidebar,
	.ace-lang-ar .shwc-site-main.ace-single--bonus-sidebar > .shwc-container.shwc-container--with-sidebar,
	html[dir="rtl"] .shwc-site-main.ace-single--bonus-sidebar > .shwc-container.shwc-container--with-sidebar {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
}

/* Author & Meta Area */
.shwc-author-meta {
	display: flex !important;
	/* Force flex to prevent stacking */
	flex-direction: row;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.shwc-author-photo img,
.shwc-author-photo .avatar {
	width: 42px !important;
	height: 42px !important;
	border-radius: 50% !important;
	object-fit: cover;
	display: block;
}

.shwc-author-details {
	display: flex;
	align-items: center;
	gap: 8px;
}

.shwc-meta-author-name {
	font-weight: 600;
	color: var(--shwc-fg-secondary);
	font-size: 1rem;
	text-decoration: none;
}

.shwc-meta-sep {
	width: 3px;
	height: 3px;
	background: var(--shwc-border-strong);
	border-radius: 50%;
	flex-shrink: 0;
}

.shwc-author-date {
	font-weight: 600;
	font-size: 1rem;
	color: var(--shwc-fg-secondary);
}

@media screen and (max-width: 768px) {
	.shwc-author-meta {
		gap: 12px;
		margin-bottom: 16px;
	}

	.shwc-author-photo img,
	.shwc-author-photo .avatar {
		width: 42px !important;
		height: 42px !important;
	}

	.shwc-author-details {
		flex-direction: column;
		align-items: flex-start;
		gap: 1px;
	}

	.shwc-meta-sep {
		display: none;
	}

	.shwc-meta-author-name {
		font-size: 0.875rem;
		line-height: 1.3;
	}

	.shwc-author-date {
		font-size: 0.875rem;
		line-height: 1.3;
	}
}

/* Refined Sidebar Widget */
.shwc-sidebar-widget-refined {
	position: sticky;
	top: 40px;
}

.shwc-sidebar-widget-refined .shwc-widget-title {
	font-size: 1.5rem;
	font-weight: 800;
	margin-bottom: 12px;
	color: var(--shwc-fg-primary);
}

.shwc-sidebar-authors-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.shwc-sidebar-author-item {
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	padding: 12px;
	border-radius: 12px;
	transition: background 0.2s;
}

.shwc-sidebar-author-item:hover {
	background: var(--shwc-bg-elevated);
}

.shwc-sidebar-author-item.is-active {
	background: var(--shwc-bg-elevated);
}

.shwc-sidebar-avatar-small img {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	background: var(--shwc-bg-elevated);
}

.shwc-sidebar-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.shwc-sidebar-name {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 800;
	color: var(--shwc-fg-primary);
}

.shwc-sidebar-meta-stack {
	display: flex;
	flex-direction: column;
}

.shwc-sidebar-role-meta {
	margin: 0;
	font-size: 0.75rem;
	color: var(--shwc-fg-secondary);
	font-weight: 500;
}

.shwc-sidebar-count-meta {
	margin: 0;
	font-size: 0.75rem;
	color: var(--shwc-fg-secondary);
}

/* Pagination Refined */
.shwc-pagination-nav {
	grid-column: 1 / -1;
	margin-top: 40px;
	display: flex;
	justify-content: flex-start;
	gap: 12px;
}

.shwc-pagination-nav .page-numbers {
	padding: 8px 16px;
	background: var(--shwc-bg-elevated);
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--shwc-fg-secondary);
	text-decoration: none;
}

.shwc-pagination-nav .current {
	background: var(--shwc-fg-primary);
	color: var(--shwc-bg-base);
}

/* Responsive Author Archive */
@media screen and (max-width: 1024px) {
	.shwc-author-main-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.shwc-sidebar-widget-refined {
		position: static;
	}
}

@media screen and (max-width: 768px) {
	.shwc-post-cards-grid {
		grid-template-columns: 1fr;
	}

	.shwc-author-header-refined {
		margin-bottom: 24px;
	}

	.shwc-author-profile-grid {
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		gap: 12px;
	}

	.shwc-author-avatar-big img {
		width: 80px;
		height: 80px;
		border-radius: 8px;
	}

	.shwc-author-info-stack {
		gap: 4px;
	}

	.shwc-author-name {
		font-size: 1.6rem;
		line-height: 1.05;
	}

	.shwc-author-role {
		font-size: 0.8125rem;
		line-height: 1.2;
	}

	.shwc-author-badge-row {
		margin-top: 0;
	}

	.shwc-articles-counter {
		font-size: 0.6875rem;
		padding: 4px 10px;
		border-radius: 6px;
	}

	.shwc-archive-title-section {
		font-size: 1.75rem;
		margin-top: 0;
		margin-bottom: 20px;
	}

	.shwc-author-bio-refined {
		margin-top: 14px;
		font-size: 0.9375rem;
	}
}

.shwc-error-404 {
	max-width: 760px;
	margin: 0 auto;
	padding: 72px 0 96px;
	text-align: center;
}

.shwc-error-404__eyebrow {
	margin: 0 0 12px;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6e8477;
}

.shwc-error-404__title {
	margin-bottom: 16px;
}

.shwc-error-404__text {
	max-width: 620px;
	margin: 0 auto 28px;
	font-size: 1.0625rem;
	color: var(--shwc-fg-secondary);
}

.shwc-error-404__actions {
	display: flex;
	justify-content: center;
}

.shwc-error-404__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 22px;
	border-radius: 999px;
	background: #6e8477;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
	box-shadow: none;
}

.shwc-error-404__button:hover {
	background: #5a7164;
	color: #fff !important;
	box-shadow: none;
}

/* ==========================================================================
   Header extras, footer, affiliate layouts
   ========================================================================== */

:root {
	--ace-play-bg: var(--shwc-setting-play-button-background, #ffd700);
	--ace-play-text: var(--shwc-setting-play-button-text, #0a1172);
	--ace-star: #ffd604;
}

.ace-site-header {
	border-top: 3px solid #0a1172;
}

.ace-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	color: var(--shwc-header-nav);
	cursor: pointer;
	padding: 8px;
	line-height: 0;
}

.ace-search-toggle:hover {
	background: none;
	color: var(--shwc-header-nav-hover);
}

.ace-hamburger {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 20px;
}

.ace-hamburger span {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.ace-search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 17, 114, 0.92);
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.ace-search-overlay[hidden] {
	display: none;
}

.ace-search-overlay__inner {
	width: min(640px, 100%);
	position: relative;
}

.ace-search-overlay .ace-search-form {
	display: flex;
	gap: 8px;
}

.ace-search-overlay input[type="search"] {
	flex: 1;
	min-height: 52px;
	border: 0;
	border-radius: 6px;
	padding: 0 16px;
	font-size: 1.125rem;
	background: #fff;
	color: #151515;
}

.ace-search-overlay button[type="submit"] {
	border: 0;
	border-radius: 6px;
	padding: 0 20px;
	font-weight: 700;
}

.ace-search-overlay__close {
	position: absolute;
	top: -48px;
	inset-inline-end: 0;
	width: 36px;
	height: 36px;
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
}

.ace-search-overlay__close::before,
.ace-search-overlay__close::after {
	content: "";
	position: absolute;
	inset: 17px 8px auto;
	height: 2px;
	background: #fff;
}

.ace-search-overlay__close::before {
	transform: rotate(45deg);
}

.ace-search-overlay__close::after {
	transform: rotate(-45deg);
}

.ace-site-footer {
	margin-top: auto;
	background-color: var(--shwc-footer-bg, #ffffff);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.ace-footer-top {
	background: #f1f3f4;
	padding: 45px 0;
	width: 100%;
}

.ace-footer-top .shwc-container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.ace-social-links {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row-reverse;
	justify-content: flex-start;
	align-items: center;
	align-self: auto;
	direction: ltr;
	width: max-content;
	max-width: calc(100% - 48px);
	margin: 0 auto 0 24px;
	padding: 0;
	gap: 6px;
	list-style: none;
}

/* EN: social icons left; AR: social icons right — same 24px inset as trust badges */
body.ace-lang-en .ace-social-links,
html[lang^="en"] .ace-social-links {
	margin: 0 auto 0 24px;
}

html[lang^="ar"] .ace-social-links,
body.ace-lang-ar .ace-social-links,
.rtl .ace-social-links {
	justify-content: flex-start;
	margin: 0 24px 0 auto;
}

.ace-social-links__item {
	margin: 0;
	padding: 0;
	line-height: 0;
}

.ace-social-links__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 46px;
	padding: 5px 3px;
	border: 0;
	border-radius: 999px;
	box-sizing: border-box;
	overflow: hidden;
	background: var(--ace-social-brand, #222);
	color: #fff;
	text-decoration: none;
	transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.ace-social-links__link:hover,
.ace-social-links__link:focus-visible {
	transform: translateY(-2px);
	filter: brightness(1.08);
	color: #fff;
	outline: none;
}

.ace-social-links__link:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ace-social-brand, #222);
}

.ace-social-links__icon {
	display: block;
	width: 24px;
	height: 24px;
	max-width: 24px;
	max-height: 24px;
	flex: 0 0 auto;
	fill: currentColor;
}

.ace-social-links__item--tiktok .ace-social-links__link {
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.ace-trust-badges {
	display: flex;
	flex-wrap: nowrap;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 18px;
	width: 100%;
	margin: 8px 0 0;
	padding: 0 24px 10px;
	box-sizing: border-box;
	direction: ltr;
}

html[lang^="ar"] .ace-trust-badges,
body.ace-lang-ar .ace-trust-badges,
.rtl .ace-trust-badges {
	justify-content: center;
	direction: ltr;
}

.ace-trust-badges a,
.ace-trust-badges > img {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	line-height: 0;
	background: transparent;
}

.ace-trust-badges img {
	display: block;
	width: auto;
	height: 80px;
	max-height: 80px;
	max-width: none;
	object-fit: contain;
	object-position: center;
	margin: 0;
}

.ace-footer-copy {
	background: #111;
	color: #777;
	padding: 30px 0;
	font-size: 0.75em;
	line-height: 1.25em;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

.ace-footer-copy__inner {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	direction: ltr;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* AR default: links left · copyright middle-right */
.ace-footer-copy__menu {
	order: 1;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	display: flex;
	justify-content: flex-start;
}

.ace-footer-copy__copyright {
	order: 2;
	flex: 0 0 auto;
	align-self: center;
	margin: 0;
	color: #777;
	font-size: inherit;
	line-height: inherit;
	text-align: right;
	white-space: nowrap;
}

.ace-footer-copy a,
.ace-footer-menu a {
	color: #777;
	text-decoration: underline;
}

.ace-footer-copy a:hover,
.ace-footer-menu a:hover {
	color: #999;
	text-decoration: underline;
}

/* LTR wrap (Mercury-style) — keeps EN + AR links in one continuous flow */
.ace-footer-menu {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	direction: ltr;
	unicode-bidi: isolate;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	width: auto;
	max-width: 100%;
}

.ace-footer-menu > li {
	margin: 0 30px 0 0;
	padding: 0;
	direction: ltr;
	unicode-bidi: isolate;
}

.ace-footer-menu > li:last-child {
	margin-right: 0;
}

@media screen and (max-width: 767px) {
	.ace-site-footer {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	.ace-footer-top {
		padding: 28px 0;
	}

	.ace-footer-widgets {
		align-items: center;
		gap: 18px;
	}

	.ace-social-links,
	body.ace-lang-en .ace-social-links,
	html[lang^="en"] .ace-social-links {
		flex-direction: row-reverse;
		flex-wrap: wrap;
		justify-content: flex-start;
		margin: 0 auto 0 16px;
		width: auto;
		max-width: calc(100% - 32px);
		box-sizing: border-box;
	}

	html[lang^="ar"] .ace-social-links,
	body.ace-lang-ar .ace-social-links,
	.rtl .ace-social-links {
		flex-direction: row-reverse;
		flex-wrap: wrap;
		justify-content: flex-start;
		margin: 0 16px 0 auto;
		width: auto;
		max-width: calc(100% - 32px);
	}

	.ace-social-links__link {
		width: 32px;
		height: 42px;
		padding: 4px 3px;
		border-radius: 999px;
	}

	.ace-social-links__icon {
		width: 22px;
		height: 22px;
		max-width: 22px;
		max-height: 22px;
	}

	.ace-trust-badges,
	html[lang^="ar"] .ace-trust-badges,
	body.ace-lang-ar .ace-trust-badges,
	.rtl .ace-trust-badges {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: 10px 12px;
		padding: 0 16px 8px;
		margin-top: 8px;
		width: 100%;
		max-width: 100%;
		overflow: hidden;
		box-sizing: border-box;
	}

	.ace-trust-badges a,
	.ace-trust-badges > img {
		flex: 0 1 auto;
		max-width: calc(33.333% - 8px);
		min-width: 0;
	}

	.ace-trust-badges img {
		height: auto;
		max-height: 44px;
		width: auto;
		max-width: 100%;
		object-fit: contain;
	}

	.ace-footer-copy {
		padding: 24px 0;
		text-align: center;
	}

	.ace-footer-copy__inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 10px;
		direction: ltr;
	}

	.ace-footer-copy__menu,
	.ace-footer-copy__copyright {
		width: 100%;
		text-align: center;
		justify-self: center;
	}

	.ace-footer-copy__copyright {
		order: -1;
		white-space: normal;
	}

	.ace-footer-menu {
		justify-content: center;
	}

	.ace-footer-menu > li {
		margin: 0 10px;
	}
}

/* EN: copyright middle-left · link block right, items wrap LTR inside */
body.ace-lang-en .ace-footer-copy__copyright,
html[lang^="en"] .ace-footer-copy__copyright {
	order: 1;
	text-align: left;
	align-self: center;
}

body.ace-lang-en .ace-footer-copy__menu,
html[lang^="en"] .ace-footer-copy__menu {
	order: 2;
	justify-content: flex-end;
	text-align: right;
}

body.ace-lang-en .ace-footer-menu,
html[lang^="en"] .ace-footer-menu {
	justify-content: flex-start;
	width: auto;
	max-width: 100%;
}

body.ace-lang-en .ace-footer-menu > li,
html[lang^="en"] .ace-footer-menu > li {
	margin: 0 0 0 30px;
}

body.ace-lang-en .ace-footer-menu > li:first-child,
html[lang^="en"] .ace-footer-menu > li:first-child {
	margin-left: 30px;
}

/* AR: copyright middle-right · links left */
body.ace-lang-ar .ace-footer-copy__copyright {
	order: 2;
	text-align: right;
	align-self: center;
}

body.ace-lang-ar .ace-footer-copy__menu {
	order: 1;
	justify-content: flex-start;
	text-align: left;
}

body.ace-lang-ar .ace-footer-menu {
	justify-content: flex-start;
}

.ace-footer-menu a {
	display: inline-block;
	padding: 8px 6px;
	min-height: 24px;
	line-height: 1.4;
	font-weight: 400;
}

.ace-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 23px;
	font-weight: 700;
	text-align: center;
	line-height: 1.2;
}

.ace-btn--play {
	background: var(--ace-play-bg);
	color: var(--ace-play-text) !important;
	box-shadow: 0 4px 10px rgba(255, 215, 0, 0.28);
	gap: 0.35em;
}

.ace-btn--play__arrow {
	padding-inline-start: 0;
}

.ace-btn--play:hover {
	filter: brightness(0.95);
	color: var(--ace-play-text) !important;
}

.ace-btn--review {
	background: #fff;
	color: #0a1172 !important;
	border: 1px solid #d7dbe7;
}

.ace-btn--review:hover {
	background: #f5f6fa;
}

.ace-stars {
	position: relative;
	display: inline-block;
	font-size: 16px;
	letter-spacing: 1px;
	line-height: 1;
}

.ace-stars__empty {
	color: #d5d8e0;
}

.ace-stars__fill {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
	color: var(--ace-star);
	white-space: nowrap;
}

.ace-stars--ten {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 1px;
	font-size: 0.75em;
	line-height: 1;
	letter-spacing: 0;
}

.ace-stars--ten .ace-stars__star {
	display: inline-block;
}

.ace-stars--ten .ace-stars__star--full,
.ace-stars--ten .ace-stars__star--half {
	color: #ffc107;
}

.ace-stars--ten .ace-stars__star--half {
	opacity: 0.55;
}

.ace-stars--ten .ace-stars__star--empty {
	color: #d5d8e0;
}

.ace-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

/* Archive / category pages — Mercury-style (arabictopcasinos.com reference) */
.ace-archive-hero {
	background: #878787;
	margin: 0 0 28px;
}

.ace-archive-hero .shwc-container {
	padding-top: 28px;
	padding-bottom: 28px;
}

.ace-archive-header {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: start;
}

.ace-archive-header .shwc-page-title {
	margin: 0;
	font-size: clamp(2.15rem, 4vw, 2.85rem);
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
	letter-spacing: 0;
}

.ace-archive-header .shwc-archive-description {
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: 1rem;
	line-height: 1.6;
	max-width: none;
	text-align: start;
}

.ace-archive-header .ace-term-chips {
	justify-content: flex-start;
	margin: 16px 0 0;
	gap: 8px 10px;
}

.ace-page-hero__header .shwc-page-title {
	margin: 0;
}

.ace-page-hero__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.875rem;
	font-weight: 500;
}

.ace-page-hero__clock {
	display: inline-flex;
	line-height: 0;
	color: rgba(255, 255, 255, 0.75);
}

.ace-lang-ar .ace-page-hero .ace-archive-header,
.rtl .ace-page-hero .ace-archive-header {
	text-align: right;
}

.ace-lang-en .ace-page-hero .ace-archive-header {
	text-align: left;
}

.ace-archive--editorial .shwc-content-area {
	min-width: 0;
	padding-inline-end: 15px;
}

.ace-archive--editorial .ace-archive-sidebar {
	padding-inline: 15px;
}

.ace-archive--editorial .shwc-widget-area {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
}

.ace-lang-ar .ace-archive--editorial > .shwc-container--with-sidebar {
	grid-template-columns: minmax(0, 30%) minmax(0, 70%);
	direction: ltr;
}

.ace-lang-ar .ace-archive--editorial .shwc-content-area {
	order: 2;
	text-align: right;
}

.ace-lang-ar .ace-archive--editorial .ace-archive-sidebar {
	order: 1;
}

.ace-lang-ar .ace-archive--editorial .ace-post-card__body {
	text-align: right;
}

.ace-lang-ar .ace-archive-sidebar__posts,
.ace-lang-ar .ace-archive-sidebar__comments {
	text-align: right;
}

.ace-archive-sidebar {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: transparent;
	border: 0;
	padding: 0;
}

.ace-archive-sidebar__widget {
	margin: 0 0 30px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.ace-archive-sidebar__widget:last-child {
	margin-bottom: 15px;
}

.ace-archive-sidebar .shwc-widget-title {
	margin: 0 0 30px;
	padding: 0;
	font-size: 1.333em;
	font-weight: 700;
	line-height: 1.45;
	color: #151515;
}

.ace-archive-sidebar__widget--search .shwc-widget-title {
	margin-bottom: 1em;
}

.ace-archive-sidebar__casinos-title {
	margin-bottom: 15px;
	padding: 0;
	font-size: 1.333em;
	font-weight: 700;
	line-height: 1.45;
	color: #151515;
}

.ace-archive-sidebar__casinos-title span {
	position: relative;
	z-index: 1;
	padding-left: 23px;
}

.ace-archive-sidebar__casinos-title span::before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	z-index: 1;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background-color: var(--ace-archive-accent, #b22222);
	opacity: 0.8;
}

.ace-archive-sidebar__casinos-title span::after {
	content: '';
	position: absolute;
	left: 0;
	top: 11px;
	z-index: -1;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background-color: #000;
}

.ace-lang-ar .ace-archive-sidebar__casinos-title span {
	padding-left: 0;
	padding-right: 23px;
}

.ace-lang-ar .ace-archive-sidebar__casinos-title span::before,
.ace-lang-ar .ace-archive-sidebar__casinos-title span::after {
	left: auto;
	right: 0;
}

.ace-archive-search-form__inner {
	display: block;
}

.ace-archive-search-form input[type="search"] {
	display: block;
	width: 100%;
	margin-bottom: 10px;
	padding: 8px 10px;
	border: 1px solid #d6d7db;
	border-radius: 3px;
	background: #fff;
	font: inherit;
	box-sizing: border-box;
}

.ace-archive-search-form button {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid #111827;
	border-radius: 3px;
	background: linear-gradient(#f5f6fa, #e4e7ec);
	color: #151515;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.ace-archive-sidebar__posts,
.ace-archive-sidebar__comments {
	list-style: none;
	margin: 1.45em 0 2.9em;
	padding: 30px;
	background: #f5f6fa;
	border: 0;
	border-radius: 5px;
}

.ace-archive-sidebar__posts li,
.ace-archive-sidebar__comments li {
	margin: 0;
	padding: 0 0 12px;
	border-bottom: 1px solid #dfe6e9;
}

.ace-archive-sidebar__posts li:last-child,
.ace-archive-sidebar__comments li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.ace-archive-sidebar__posts a,
.ace-archive-sidebar__comments a {
	color: #151515;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.45;
	font-size: 1em;
}

.ace-archive-sidebar__posts a:hover,
.ace-archive-sidebar__comments a:hover {
	color: #b2bec3;
	text-decoration: none;
}

.ace-archive-sidebar__empty {
	margin: 1.45em 0 2.9em;
	color: #7f8c8d;
	font-size: 1em;
	line-height: 1.45;
}

.ace-archive-sidebar__casinos {
	display: block;
	margin-top: 15px;
	direction: ltr;
}

.ace-sidebar-casino {
	display: block;
	overflow: hidden;
	margin: 0 0 30px;
	padding: 0 15px;
}

.ace-sidebar-casino::after {
	content: '';
	display: table;
	clear: both;
}

.ace-sidebar-casino:last-child {
	margin-bottom: 0;
}

.ace-sidebar-casino__logo {
	float: left;
	width: 100px;
	height: 100px;
	margin: 0 15px 0 0;
	line-height: 0;
}

.ace-sidebar-casino__body {
	display: block;
	overflow: hidden;
	min-height: 100px;
}

.ace-sidebar-casino__logo a {
	display: block;
	overflow: hidden;
	border-radius: 5px;
	background: #fff;
	box-shadow: 0 10px 40px rgba(109, 141, 173, 0.25);
}

.ace-sidebar-casino__logo img {
	display: block;
	width: 100px;
	height: 100px;
	object-fit: cover;
}

.ace-sidebar-casino__logo-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100px;
	height: 100px;
	background: #111827;
	color: #fff;
	font-weight: 700;
	font-size: 1.25rem;
}

.ace-sidebar-casino__title {
	margin: 0 0 6px;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.35;
}

.ace-sidebar-casino__title a {
	color: #151515;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.ace-sidebar-casino__title a:hover {
	color: #b2bec3;
}

.ace-sidebar-casino__rating {
	margin: 0 0 5px;
}

.ace-sidebar-casino__rating .ace-stars {
	font-size: 0.75em;
}

.ace-sidebar-casino__desc {
	color: #7f8c8d;
	font-size: 0.75em;
	line-height: 1.2;
}

.ace-sidebar-casino__desc strong {
	color: #374151;
	font-weight: 700;
}

.ace-archive--editorial {
	--ace-archive-accent: #b22222;
	--ace-archive-accent-hover: #8b1a1a;
}

.ace-lang-ar .ace-archive--editorial {
	--ace-archive-accent: #33a659;
	--ace-archive-accent-hover: #2a8f4a;
}

.ace-archive--editorial .ace-post-card__cat {
	background: var(--ace-archive-accent);
}

.ace-archive--editorial .ace-post-card__cat:hover {
	background: var(--ace-archive-accent-hover);
}

.ace-archive--editorial .ace-post-card__readmore a:hover {
	color: var(--ace-archive-accent);
}

.ace-archive-pagination {
	justify-content: center;
	margin-top: 15px;
	padding-top: 0;
	text-align: center;
	width: 100%;
}

.shwc-pagination-nav.ace-archive-pagination {
	justify-content: center;
	width: 100%;
}

.ace-archive-pagination .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
}

.ace-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	padding: 0;
	border-radius: 3px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	margin: 0 5px 5px;
	background: var(--ace-archive-accent, #b22222);
	border: 0;
	transition: background 0.2s ease;
}

.ace-archive-pagination .page-numbers:hover,
.ace-archive-pagination .page-numbers:focus-visible {
	background: #57606f;
	color: #fff;
}

.ace-archive-pagination .page-numbers.current {
	background: #57606f;
	color: #fff;
}

.ace-archive-pagination .dots {
	background: transparent;
	color: #7f8c8d;
	width: auto;
	min-width: 24px;
}

/* Licence, casino-category, currency, casino-language — Mercury 4-column casino grid */
.ace-archive--companies-grid {
	background: #f2f2f2;
	--ace-archive-accent: #b22222;
	--ace-archive-accent-hover: #8b1a1a;
}

/* Vendor taxonomy — Mercury units game grid */
.ace-archive--vendor {
	background: #fff;
}

.ace-archive-hero--vendor {
	background: #f2f2f2;
	margin: 0;
	padding: 28px 0;
	border: 0;
}

.ace-archive-hero--vendor .ace-archive-header {
	margin: 0;
	text-align: start;
}

.ace-lang-ar .ace-archive-hero--vendor .ace-archive-header,
.rtl .ace-archive-hero--vendor .ace-archive-header {
	text-align: right;
}

.ace-lang-en .ace-archive-hero--vendor .ace-archive-header {
	text-align: left;
}

.ace-archive-hero--vendor .shwc-page-title {
	margin: 0;
	font-size: clamp(1.75rem, 3.2vw, 2.35rem);
	font-weight: 800;
	line-height: 1.2;
	color: #151515;
}

.ace-archive--vendor > .shwc-container {
	padding-top: 28px;
	padding-bottom: 40px;
}

.ace-archive-grid--vendor {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px 16px;
	align-items: start;
}

/* Game-category taxonomy — Mercury units game grid + intro tabs */
.ace-archive--game-category {
	background: #fff;
	--ace-archive-accent: #b22222;
	--ace-archive-accent-hover: #8b1a1a;
}

.ace-lang-ar .ace-archive--game-category {
	--ace-archive-accent: #33a659;
	--ace-archive-accent-hover: #2a8f4a;
}

.ace-archive-hero--game-category {
	background: #878787;
	margin: 0 0 28px;
}

.ace-lang-ar .ace-archive-hero--game-category .ace-archive-header,
.rtl .ace-archive-hero--game-category .ace-archive-header {
	text-align: right;
}

.ace-lang-en .ace-archive-hero--game-category .ace-archive-header {
	text-align: left;
}

.ace-archive--game-category > .shwc-container {
	padding-top: 0;
	padding-bottom: 40px;
}

.ace-game-category-intro {
	margin: 0 0 28px;
}

.ace-archive-grid--game-category {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px 16px;
	align-items: start;
}

.ace-game-card--units {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	min-height: 0;
	height: auto;
	background: #fff;
	border: 0;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(109, 141, 173, 0.25);
	overflow: hidden;
	text-align: center;
}

.ace-game-card--units:not(.ace-game-card--media) {
	align-self: start;
	height: auto;
}

.ace-game-card--units .ace-game-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 450 / 317;
	height: auto;
	background: #f3f4f6;
	flex: 0 0 auto;
	overflow: hidden;
	line-height: 0;
}

.ace-game-card--units .ace-game-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	object-position: center;
	aspect-ratio: unset;
}

.ace-game-card--units .ace-game-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	flex: 0 0 auto;
	padding: 16px 14px 18px;
}

.ace-game-card--units:not(.ace-game-card--media) .ace-game-card__body {
	gap: 24px;
	padding: 20px 14px 18px;
}

.ace-game-card--units .ace-game-card__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

.ace-game-card--units .ace-game-card__title a {
	color: #111;
	text-decoration: none;
}

.ace-game-card--units .ace-related-card__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	min-height: 40px;
	min-width: 120px;
	padding: 10px 26px;
	border-radius: 999px;
	background: #111 !important;
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none !important;
	border: 0;
	box-shadow: none;
}

.ace-game-card--units .ace-related-card__play:hover,
.ace-game-card--units .ace-related-card__play:focus-visible {
	background: #000 !important;
	color: #fff !important;
}

.ace-lang-ar .ace-archive--companies-grid {
	--ace-archive-accent: #33a659;
	--ace-archive-accent-hover: #2a8f4a;
}

.ace-archive--companies-grid .shwc-container {
	padding-top: 28px;
	padding-bottom: 40px;
}

.ace-archive-hero--licence,
.ace-archive-hero--companies {
	margin-bottom: 0;
	text-align: right;
}

.ace-archive-hero--licence .ace-archive-header,
.ace-archive-hero--companies .ace-archive-header {
	text-align: right;
}

.ace-archive-hero--licence .shwc-archive-description,
.ace-archive-hero--companies .shwc-archive-description {
	text-align: right;
	margin-left: 0;
	margin-right: 0;
}

.ace-casino-category-intro {
	margin: 0 0 28px;
}

.ace-casino-category-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ace-casino-category-tabs li {
	margin: 0;
	padding: 0;
}

.ace-casino-category-tabs a,
.ace-casino-category-tabs .is-active span {
	display: inline-flex;
	align-items: center;
	padding: 6px 20px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.35;
	text-decoration: none;
}

.ace-casino-category-tabs a {
	background: #fff;
	color: var(--ace-archive-accent, #b22222);
	border: 1px solid var(--ace-archive-accent, #b22222);
}

.ace-casino-category-tabs a:hover,
.ace-casino-category-tabs a:focus-visible {
	background: transparent;
	color: #7f8c8d;
	border-color: #d6d7db;
}

.ace-casino-category-tabs .is-active span {
	background: transparent;
	color: #9aa0a6;
	border: 1px solid #d1d5db;
	cursor: default;
}

.ace-bonus-category-tabs .is-active span {
	border: 0;
	color: #9aa0a6;
	padding-inline: 10px;
}

.ace-archive--bonus-category {
	--ace-archive-accent: #b22222;
	--ace-archive-accent-hover: #8b1a1a;
	--ace-bonus-accent: #b22222;
	--ace-bonus-accent-hover: #8b1a1a;
}

.ace-lang-ar .ace-archive--bonus-category {
	--ace-archive-accent: #33a659;
	--ace-archive-accent-hover: #2a8f4a;
	--ace-bonus-accent: #33a659;
	--ace-bonus-accent-hover: #2a8f4a;
}

.ace-archive--bonus-category > .shwc-container {
	padding-top: 28px;
	padding-bottom: 40px;
}

.ace-archive--bonus-category .ace-archive-grid.ace-shortcode--bonus {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ace-archive--bonus-category .ace-bonus-card--grid .ace-btn--play,
.ace-archive--bonus-category .ace-bonus-card--grid .ace-btn--bonus-grid {
	background: var(--ace-bonus-accent, #b22222);
}

.ace-archive--bonus-category .ace-bonus-card--grid .ace-btn--play:hover,
.ace-archive--bonus-category .ace-bonus-card--grid .ace-btn--bonus-grid:hover {
	background: var(--ace-bonus-accent-hover, #8b1a1a);
}

.ace-lang-ar .ace-archive--bonus-category .ace-bonus-card--grid .ace-btn--play,
.ace-lang-ar .ace-archive--bonus-category .ace-bonus-card--grid .ace-btn--bonus-grid {
	background: #33a659;
}

.ace-lang-ar .ace-archive--bonus-category .ace-bonus-card--grid .ace-btn--play:hover,
.ace-lang-ar .ace-archive--bonus-category .ace-bonus-card--grid .ace-btn--bonus-grid:hover {
	background: #2a8f4a;
}

.ace-archive--bonus-category .ace-archive-pagination,
.ace-archive--bonus-category .shwc-pagination-nav.ace-archive-pagination {
	justify-content: center;
	text-align: center;
	width: 100%;
	margin-top: 28px;
}

.ace-archive-grid--licence {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px 16px;
	align-items: stretch;
}

.ace-casino-card--licence {
	display: flex !important;
	flex-direction: column;
	grid-template-columns: unset !important;
	padding: 0 !important;
	background: #fff;
	border: 0;
	border-radius: 5px;
	box-shadow: 0 10px 40px rgba(109, 141, 173, 0.25);
	height: 100%;
	min-height: 380px;
	overflow: hidden;
}

.ace-casino-card--licence .ace-casino-card__wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	width: 100%;
	padding: 45px 30px 30px;
	height: 100%;
	min-height: 100%;
	flex: 1 1 auto;
}

.ace-casino-card--licence .ace-casino-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	width: 100%;
	flex: 1 1 auto;
	gap: 0;
}

.ace-casino-card--licence.ace-casino-card--no-thumb .ace-casino-card__body {
	justify-content: center;
}

.ace-casino-card--licence .ace-casino-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100px;
	height: 100px;
	margin: 0 auto 30px;
	flex: 0 0 auto;
	border-radius: 5px;
	overflow: visible;
	background: transparent;
}

.ace-casino-card--licence .ace-casino-card__logo img {
	width: 100px !important;
	height: 100px !important;
	max-width: 100px;
	max-height: 100px;
	object-fit: contain;
	border-radius: 5px;
	background: transparent;
	border: 0;
}

.ace-casino-card--licence .ace-casino-card__logo-fallback {
	display: none;
}

.ace-casino-card--licence .ace-casino-card__title {
	width: 100%;
	margin: 0 0 10px;
	font-size: 1.333em;
	font-weight: 700;
	line-height: 1.25;
	text-align: center !important;
}

.ace-casino-card--licence .ace-casino-card__title a {
	display: inline-block;
	color: #151515;
	text-decoration: none;
	text-align: center;
}

.ace-casino-card--licence .ace-casino-card__title a:hover {
	color: #0a1172;
}

.ace-casino-card--licence .ace-casino-card__rating {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 0 0 15px;
}

.ace-casino-card--licence .ace-stars--ten {
	display: inline-flex;
	justify-content: center;
	margin-inline: auto;
}

.ace-casino-card--licence .ace-stars--ten .ace-stars__star {
	color: #ffd604;
	font-size: 1em;
}

.ace-casino-card--licence .ace-casino-card__terms {
	width: 100%;
	margin: 0 0 20px;
	color: #7f8c8d;
	font-size: 0.75em;
	line-height: 1.45;
	font-weight: 400;
	text-align: center !important;
	min-height: 2.9em;
}

.ace-casino-card--licence .ace-casino-card__terms strong {
	display: block;
	font-weight: 400;
	color: #7f8c8d;
	text-align: center;
}

.ace-casino-card--licence .ace-casino-card__actions {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: auto;
	width: 100%;
	min-width: 0 !important;
	flex: 0 0 auto;
	padding-top: 30px;
}

.ace-casino-card--licence .ace-btn--play,
.ace-casino-card--licence .ace-btn--play-licence {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	padding: 13px 40px;
	border-radius: 23px;
	background: #111;
	color: #fff !important;
	box-shadow: none;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.25;
}

.ace-casino-card--licence .ace-btn--play:hover,
.ace-casino-card--licence .ace-btn--play-licence:hover {
	background: #333;
	color: #fff !important;
	filter: none;
}

.ace-archive--companies-grid .ace-archive-pagination,
.ace-archive--companies-grid .shwc-pagination-nav.ace-archive-pagination {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 28px;
	text-align: center;
}

.ace-archive--companies-grid .ace-archive-pagination .nav-links {
	justify-content: center;
	margin-inline: auto;
}

.ace-term-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.ace-term-chips a,
.ace-pill {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border-radius: 999px;
	background: #f1f3f4;
	color: #2e3246;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background 0.15s ease, color 0.15s ease;
}

.ace-term-chips a:hover,
.ace-pill--link:hover {
	background: #e4e7ec;
	color: #0a1172;
}

.ace-term-chips .is-active a {
	background: #0a1172;
	color: #fff;
}

/* Post / category / author list cards */
.ace-archive-list--posts {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ace-archive--editorial .ace-post-card {
	grid-template-columns: minmax(0, 33.333%) minmax(0, 66.666%);
	grid-template-areas: "media body";
	gap: 0;
	margin: 0 0 45px;
	padding: 0;
	border-bottom: 0;
}

.ace-archive--editorial .ace-post-card:last-child {
	margin-bottom: 0;
}

.ace-archive--editorial .ace-post-card__media-wrap {
	grid-area: media;
	padding: 0 15px;
}

.ace-archive--editorial .ace-post-card__body {
	grid-area: body;
	padding: 30px 15px 0;
}

.ace-archive--editorial .ace-post-card__cats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0 0 8px;
}

.ace-archive--editorial .ace-post-card--no-thumb {
	grid-template-columns: 1fr;
	grid-template-areas: "body";
}

.ace-archive--editorial .ace-post-card--no-thumb .ace-post-card__body {
	padding: 0 15px 15px;
}

.ace-archive--editorial .ace-post-card--no-thumb .ace-post-card__excerpt {
	margin-bottom: 15px;
}

.ace-archive--editorial .ace-post-card__cat {
	display: inline-block;
	padding: 4px 15px;
	border-radius: 3px;
	font-size: 0.75em;
	font-weight: 700;
	line-height: 1.45;
	white-space: nowrap;
}

.ace-archive--editorial .ace-post-card__cat:hover {
	background: #57606f;
}

.ace-archive--editorial .ace-post-card__meta {
	margin: 0 0 10px;
	font-size: 0.75em;
	line-height: 1.45;
	color: #7f8c8d;
}

.ace-archive--editorial .ace-post-card__title {
	margin: 10px 0 15px;
	font-size: 1.777em;
	line-height: 1.25;
	color: #151515;
}

.ace-archive--editorial .ace-post-card__title a {
	color: #151515;
}

.ace-archive--editorial .ace-post-card__title a:hover {
	color: #b2bec3;
}

.ace-archive--editorial .ace-post-card__excerpt {
	margin: 0 0 30px;
	font-size: 1em;
	line-height: 1.65;
	color: #7f8c8d;
}

.ace-archive--editorial .ace-post-card__readmore {
	font-size: 16px;
	line-height: 1;
}

.ace-archive--editorial .ace-post-card__readmore a {
	font-weight: 700;
	color: #151515;
}

.ace-archive--editorial .ace-post-card__readmore a:hover {
	color: #b2bec3;
}

.ace-post-card {
	display: grid;
	grid-template-columns: minmax(180px, 33%) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	padding: 24px 0;
	margin: 0;
	border: 0;
	border-bottom: 1px solid #e5e7eb;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}

.ace-post-card--no-thumb {
	grid-template-columns: 1fr;
}

.ace-post-card:first-child {
	padding-top: 8px;
}

.ace-post-card__media-wrap {
	position: relative;
	min-width: 0;
}

.ace-post-card__media {
	display: block;
	overflow: hidden;
	border-radius: 4px;
	background: #f1f3f4;
}

.ace-post-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.ace-post-card__media-cats {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	max-width: calc(100% - 20px);
	z-index: 1;
}

.ace-post-card__cat {
	display: inline-flex;
	padding: 4px 8px;
	border-radius: 3px;
	background: #d63031;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.3;
}

.ace-post-card__cat:hover {
	background: #b71c1c;
	color: #fff;
}

.ace-post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 10px;
	color: #8a91a3;
	font-size: 0.8125rem;
	font-weight: 500;
}

.ace-post-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.ace-post-card__comments::before {
	content: "💬";
	font-size: 0.75rem;
	line-height: 1;
}

.ace-post-card__date .ace-post-meta__clock {
	display: inline-flex;
	align-items: center;
	color: inherit;
}

.ace-post-card__date .ace-post-meta__clock svg {
	display: block;
}

.ace-post-card__date time {
	color: inherit;
	direction: ltr;
	unicode-bidi: isolate;
	display: inline-block;
}

.ace-post-card__title {
	margin: 0 0 10px;
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	font-weight: 700;
	line-height: 1.35;
	color: #111827;
}

.ace-post-card__title a {
	color: inherit;
	text-decoration: none;
}

.ace-post-card__title a:hover {
	color: #1d4ed8;
}

.ace-post-card__excerpt {
	margin: 0 0 12px;
	color: #6b7280;
	font-size: 0.95em;
	line-height: 1.65;
}

.ace-post-card__readmore {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
}

.ace-post-card__readmore a {
	color: #111827;
	text-decoration: none;
}

.ace-post-card__readmore a:hover {
	color: #1d4ed8;
}

/* Casino ranked list (casino-language, currency) */
.ace-archive-list.ace-shortcode--list,
.ace-archive-list.ace-shortcode--rank {
	display: grid;
	gap: 14px;
}

.ace-casino-card {
	display: grid;
	grid-template-columns: minmax(180px, 1.15fr) minmax(180px, 1.35fr) auto;
	gap: 16px;
	align-items: center;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #e6e8ef;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(10, 17, 114, 0.04);
}

.ace-casino-card--rank {
	grid-template-columns: 42px minmax(180px, 1.15fr) minmax(180px, 1.35fr) auto;
}

.ace-casino-card__rank {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #0a1172;
	color: #fff;
	font-weight: 800;
	font-size: 0.9rem;
}

.ace-casino-card__brand {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.ace-casino-card__logo {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 10px;
	overflow: hidden;
	background: #f5f6fa;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ace-casino-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ace-casino-card__title {
	margin: 0 0 6px;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.25;
}

.ace-casino-card__title a {
	color: #0a1172;
	text-decoration: none;
}

.ace-casino-card__title a:hover {
	color: #1d4ed8;
}

.ace-casino-card__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.ace-casino-card__score {
	font-weight: 800;
	color: #0a1172;
	font-size: 0.9rem;
}

.ace-casino-card__terms {
	margin: 0;
	color: #374151;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.45;
}

.ace-casino-card__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 140px;
}

.ace-casino-card__actions .ace-btn,
.ace-bonus-card__actions .ace-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 10px 14px;
	border-radius: 8px;
	font-weight: 800;
	font-size: 0.875rem;
	text-decoration: none;
	border: 0;
}

.ace-btn--review {
	background: #0a1172;
	color: #fff !important;
}

.ace-btn--play {
	background: var(--ace-play-bg, #ffd700);
	color: var(--ace-play-text, #0a1172) !important;
}

/* Bonus / game grids */
.ace-archive-grid.ace-shortcode--grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ace-bonus-card:not(.ace-bonus-card--grid),
.ace-game-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e6e8ef;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(10, 17, 114, 0.04);
}

.ace-bonus-card:not(.ace-bonus-card--grid) .ace-bonus-card__media img,
.ace-game-card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}

.ace-bonus-card:not(.ace-bonus-card--grid) .ace-bonus-card__body,
.ace-game-card__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.ace-bonus-card:not(.ace-bonus-card--grid) .ace-bonus-card__title,
.ace-game-card__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.3;
}

.ace-bonus-card:not(.ace-bonus-card--grid) .ace-bonus-card__title a,
.ace-game-card__title a {
	color: #0a1172;
	text-decoration: none;
}

.ace-bonus-card__amount {
	margin: 0;
	font-weight: 800;
	color: #0a1172;
}

/* Bonus single — Mercury dark hero, sidebar, More Bonuses grid */
.ace-single--bonus {
	--ace-bonus-accent: #b22222;
	--ace-bonus-accent-hover: #8b1a1a;
	padding-top: 28px;
}

.ace-lang-ar .ace-single--bonus {
	--ace-bonus-accent: #33a659;
	--ace-bonus-accent-hover: #2a8f4a;
}

/* Theme never invents a black intro; hide leftover banner template. */
.ace-bonus-banner {
	display: none;
}

.ace-bonus-banner__container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.ace-bonus-banner__card {
	background: #151515;
	border-radius: 8px;
	padding: 36px 30px 34px;
	text-align: center;
	color: #fff;
}

/* Existing Mercury/ACES black offer box in content — static size. */
.ace-single--bonus .shwc-entry-content .space-aces-single-offer-box {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 0;
	height: auto;
	margin: 0 0 28px;
	box-sizing: border-box;
	border-radius: 5px;
	overflow: hidden;
}

.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info {
	width: 100%;
	max-width: 100%;
	min-height: 0;
	height: auto;
	margin: 0;
	background: #151515;
	border-radius: 5px;
	box-sizing: border-box;
}

.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-ins,
.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-ins-wrap {
	width: 100%;
	max-width: 100%;
	padding: 28px 24px 24px;
	box-sizing: border-box;
	text-align: center;
	color: #fff;
}

.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-cat {
	margin: 0 0 10px;
}

.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-cat a {
	color: #b22222;
	text-decoration: none;
	font-size: 0.875rem;
	margin: 0 0.35em;
	background: transparent;
}

.ace-lang-ar .ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-cat a,
.ace-single--bonus-ar .shwc-entry-content .space-aces-single-offer-info-cat a {
	color: #33a659;
}

.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-title {
	margin: 0 0 10px;
}

.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-title h1,
.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-title h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(1.85rem, 2.8vw, 2.35rem);
	line-height: 1.25;
	font-weight: 700;
}

.ace-single--bonus .shwc-entry-content h2.wp-block-heading,
.ace-single--bonus .shwc-entry-content > h2 {
	font-size: 1.55rem;
	line-height: 1.3;
}

.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-short-desc {
	margin: 0 0 16px;
	color: #fff;
	font-size: 0.95rem;
	line-height: 1.4;
	font-weight: 700;
}

.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-short-desc p {
	margin: 0;
	color: #fff;
}

.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-code-button {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
}

.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-code,
.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-button {
	float: none;
	width: auto;
	max-width: 100%;
}

.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-code-value {
	margin: 0;
	padding: 10px 24px;
	border: 2px solid #777;
	border-radius: 999px;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	min-width: 140px;
	box-sizing: border-box;
}

.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-code-value legend {
	padding: 0 6px;
	color: #9aa0a6;
	font-size: 0.75rem;
	font-weight: 500;
}

.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-button-ins {
	padding: 0;
}

.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-button-ins a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 12px 26px;
	border-radius: 999px;
	background: #b22222 !important;
	color: #fff !important;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none !important;
	box-shadow: none;
	border: 0;
}

.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-button-ins a:hover {
	background: #8b1a1a !important;
	color: #fff !important;
	box-shadow: none;
}

.ace-lang-ar .ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-button-ins a,
.ace-single--bonus-ar .shwc-entry-content .space-aces-single-offer-info-button-ins a {
	background: #b22222 !important;
}

.ace-lang-ar .ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-button-ins a:hover,
.ace-single--bonus-ar .shwc-entry-content .space-aces-single-offer-info-button-ins a:hover {
	background: #8b1a1a !important;
}

.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-button-ins a i {
	padding: 0;
	margin: 0;
	color: #fff;
}

@media (max-width: 768px) {
	.ace-single--bonus .shwc-entry-content .space-aces-single-offer-box,
	.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info {
		min-height: 0;
		height: auto;
	}

	.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-ins,
	.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-ins-wrap {
		padding: 20px 16px 18px;
	}

	.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-cat {
		margin: 0 0 8px;
	}

	.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-title {
		margin: 0 0 8px;
	}

	.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-title h1,
	.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-title h2 {
		font-size: 1.55rem;
		line-height: 1.3;
	}

	.ace-single--bonus .shwc-entry-content h2.wp-block-heading,
	.ace-single--bonus .shwc-entry-content > h2 {
		font-size: 1.3rem;
		line-height: 1.3;
	}

	.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-short-desc {
		margin: 0 0 14px;
		font-size: 0.875rem;
	}

	.ace-single--bonus .shwc-entry-content .space-aces-single-offer-info-code-button {
		flex-direction: column;
		gap: 12px;
	}
}

.ace-bonus-banner__category {
	margin: 0 0 14px;
	color: #9aa0a6;
	font-size: 0.875rem;
	line-height: 1.45;
	font-weight: 400;
}

.ace-bonus-banner__title {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	line-height: 1.25;
	font-weight: 700;
}

.ace-bonus-banner__subtitle {
	margin: 0 0 22px;
	color: #fff;
	font-size: 1rem;
	line-height: 1.45;
	font-weight: 700;
}

.ace-bonus-banner-play {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px 13px 28px;
	border-radius: 999px;
	background: #b22222;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	border: 0;
	transition: background 0.2s ease;
}

.ace-bonus-banner-play:hover,
.ace-bonus-banner-play:focus-visible {
	color: #fff;
	background: #8b1a1a;
}

.ace-bonus-banner-play .ace-play-arrow-icon {
	width: 1.15em;
	height: 1.15em;
	display: block;
}

.ace-bonus-banner-play .ace-play-arrow-icon circle {
	fill: #fff;
}

.ace-bonus-banner-play .ace-play-arrow-icon path {
	stroke: #b22222;
}

.ace-bonus-static-header {
	margin: 0 0 22px;
}

.ace-bonus-static-header__title {
	margin: 0 0 10px;
	color: #151515;
	font-size: clamp(1.85rem, 2.8vw, 2.35rem);
	line-height: 1.2;
	font-weight: 700;
}

.ace-bonus-static-header__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #6b7280;
	font-size: 0.875rem;
	font-weight: 500;
}

.ace-bonus-static-header__clock {
	display: inline-flex;
	line-height: 0;
	color: #9ca3af;
}

.ace-lang-ar .ace-bonus-static-header,
.ace-single--bonus-ar .ace-bonus-static-header {
	text-align: right;
}

.ace-single--bonus .shwc-container {
	padding-top: 0;
}

.ace-single--bonus .ace-breadcrumbs {
	margin: 0 0 22px;
}

.ace-single--bonus .shwc-entry-content .ace-btn--play,
.ace-single--bonus .shwc-entry-content .ace-bonus-content-play,
.ace-single--bonus .shwc-entry-content .ace-summary-play {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 1.5em auto;
	padding: 13px 22px 13px 28px;
	border-radius: 999px;
	background: #b22222;
	color: #fff;
	font-size: 1em;
	font-weight: 700;
	text-decoration: none;
	box-shadow: none;
}

.ace-single--bonus .shwc-entry-content .ace-btn--play:hover,
.ace-single--bonus .shwc-entry-content .ace-bonus-content-play:hover {
	background: #8b1a1a;
	color: #fff;
}

.ace-single--bonus .shwc-entry-content .ace-play-arrow-icon circle {
	fill: #fff;
}

.ace-single--bonus .shwc-entry-content .ace-play-arrow-icon path {
	stroke: #b22222;
}

.ace-single--bonus .shwc-entry-content p:has(.ace-btn--play),
.ace-single--bonus .shwc-entry-content p:has(.ace-bonus-content-play),
.ace-single--bonus .shwc-entry-content p:has(.ace-summary-play),
.ace-single--bonus .shwc-entry-content .wp-block-buttons,
.ace-single--bonus .shwc-entry-content .wp-block-button {
	text-align: center;
}

.ace-single--bonus .ace-author-box {
	margin-top: 36px;
	padding: 0 0 28px;
	border: 0;
	border-bottom: 1px solid #e5e7eb;
	display: block;
}

.ace-single--bonus .ace-author-box__inner {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	max-width: 100%;
}

.ace-single--bonus .ace-author-box__body {
	flex: 1 1 auto;
	min-width: 0;
}

.ace-lang-ar .ace-single--bonus .ace-author-box__inner,
html[dir="rtl"] .ace-single--bonus .ace-author-box__inner {
	flex-direction: row-reverse;
}

.shwc-site-main.ace-single--bonus-sidebar > .shwc-container.shwc-container--with-sidebar {
	grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
	gap: 28px;
}

.ace-lang-ar .shwc-site-main.ace-single--bonus > .shwc-container.shwc-container--with-sidebar,
html[dir="rtl"] .shwc-site-main.ace-single--bonus > .shwc-container.shwc-container--with-sidebar,
.ace-lang-ar .shwc-site-main.ace-single--bonus-sidebar > .shwc-container.shwc-container--with-sidebar,
html[dir="rtl"] .shwc-site-main.ace-single--bonus-sidebar > .shwc-container.shwc-container--with-sidebar {
	grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
	direction: ltr;
	gap: 28px;
}

.ace-lang-ar .ace-single--bonus .shwc-content-area,
html[dir="rtl"] .ace-single--bonus .shwc-content-area,
.ace-lang-ar .ace-single--bonus-sidebar .shwc-content-area,
html[dir="rtl"] .ace-single--bonus-sidebar .shwc-content-area {
	order: 2;
	text-align: right;
}

.ace-lang-ar .ace-single--bonus .shwc-widget-area,
html[dir="rtl"] .ace-single--bonus .shwc-widget-area,
.ace-lang-ar .ace-single--bonus-sidebar .ace-archive-sidebar,
html[dir="rtl"] .ace-single--bonus-sidebar .ace-archive-sidebar {
	order: 1;
}

.ace-single--bonus .ace-author-box__name a {
	color: var(--ace-bonus-accent);
}

.ace-more-bonuses {
	margin-top: 40px;
}

.ace-more-bonuses__title {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 20px;
	font-size: 1.75rem;
	font-weight: 700;
	color: #151515;
}

.ace-more-bonuses__icon {
	position: relative;
	display: inline-block;
	width: 11px;
	height: 22px;
	flex: 0 0 auto;
	margin-top: 3px;
	background: transparent;
	border-radius: 0;
}

.ace-more-bonuses__icon::before,
.ace-more-bonuses__icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
}

.ace-more-bonuses__icon::before {
	top: 0;
	z-index: 2;
	background: var(--ace-bonus-accent, #b22222);
	opacity: 0.85;
}

.ace-more-bonuses__icon::after {
	top: 7px;
	z-index: 1;
	background: #151515;
}

.ace-lang-ar .ace-more-bonuses__icon::before {
	background: #33a659;
}

.ace-more-bonuses__grid,
.ace-shortcode--bonus.ace-shortcode--grid,
.ace-archive-grid.ace-shortcode--bonus {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.ace-bonus-card--grid {
	background: #151515;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(109, 141, 173, 0.25);
	text-align: center;
	min-height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ace-bonus-card--grid .ace-bonus-card__body {
	padding: 40px 28px 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	min-height: 280px;
	flex: 1 1 auto;
	background: transparent;
}

.ace-bonus-card--grid .ace-bonus-card__category {
	margin: 0;
	color: #9aa0a6;
	font-size: 0.8125rem;
	line-height: 1.45;
	font-weight: 400;
}

.ace-bonus-card--grid .ace-bonus-card__category-link {
	color: #9aa0a6;
	text-decoration: none;
	background: transparent;
	box-shadow: none;
}

.ace-bonus-card--grid .ace-bonus-card__category-link:hover,
.ace-bonus-card--grid .ace-bonus-card__category-link:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.ace-bonus-card--grid .ace-bonus-card__title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.3;
	font-weight: 700;
	color: #fff;
}

.ace-bonus-card--grid .ace-bonus-card__title a {
	color: #fff;
	text-decoration: none;
}

.ace-bonus-card--grid .ace-bonus-card__title a:hover {
	color: #fff;
	opacity: 0.92;
}

.ace-bonus-card--grid .ace-bonus-card__terms {
	margin: 0;
	color: #9aa0a6;
	font-size: 0.8125rem;
	line-height: 1.5;
	font-weight: 400;
	max-width: 28em;
}

.ace-bonus-card--grid .ace-bonus-card__actions {
	margin-top: auto;
	padding-top: 18px;
	width: 100%;
	display: flex;
	justify-content: center;
}

.ace-bonus-card--grid .ace-btn--play,
.ace-bonus-card--grid .ace-btn--bonus-grid {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 148px;
	max-width: 100%;
	padding: 12px 32px;
	border-radius: 999px;
	background: var(--ace-bonus-accent, #b22222);
	color: #fff !important;
	box-shadow: none;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.25;
	text-decoration: none;
	border: 0;
}

.ace-bonus-card--grid .ace-btn--play:hover,
.ace-bonus-card--grid .ace-btn--bonus-grid:hover {
	background: var(--ace-bonus-accent-hover, #8b1a1a);
	color: #fff !important;
}

.ace-lang-ar .ace-bonus-card--grid .ace-btn--play,
.ace-lang-ar .ace-bonus-card--grid .ace-btn--bonus-grid,
.ace-lang-ar .ace-shortcode--bonus .ace-btn--bonus-grid,
.ace-single--bonus-ar .ace-bonus-card--grid .ace-btn--play,
.ace-single--bonus-ar .ace-bonus-card--grid .ace-btn--bonus-grid {
	background: #b22222;
}

.ace-lang-ar .ace-bonus-card--grid .ace-btn--play:hover,
.ace-lang-ar .ace-bonus-card--grid .ace-btn--bonus-grid:hover,
.ace-single--bonus-ar .ace-bonus-card--grid .ace-btn--play:hover,
.ace-single--bonus-ar .ace-bonus-card--grid .ace-btn--bonus-grid:hover {
	background: #8b1a1a;
}

.ace-archive--bonus,
.ace-shortcode--bonus {
	--ace-bonus-accent: #b22222;
	--ace-bonus-accent-hover: #8b1a1a;
}

.ace-lang-ar .ace-archive--bonus,
.ace-lang-ar .ace-shortcode--bonus {
	--ace-bonus-accent: #b22222;
	--ace-bonus-accent-hover: #8b1a1a;
}

@media (max-width: 1100px) {
	.ace-archive--bonus-category .ace-archive-grid.ace-shortcode--bonus {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.ace-more-bonuses__grid,
	.ace-shortcode--bonus.ace-shortcode--grid,
	.ace-archive-grid.ace-shortcode--bonus,
	.ace-archive--bonus-category .ace-archive-grid.ace-shortcode--bonus {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ace-bonus-banner__card {
		padding: 28px 20px 26px;
	}

	.ace-more-bonuses__grid,
	.ace-shortcode--bonus.ace-shortcode--grid,
	.ace-archive-grid.ace-shortcode--bonus {
		grid-template-columns: minmax(0, 1fr);
	}

	.ace-bonus-card--grid .ace-bonus-card__body {
		min-height: 0;
		padding: 32px 22px 28px;
	}
}

/* Author archive */
.ace-author-archive-header {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
	margin: 8px 0 28px;
	padding-bottom: 22px;
	border-bottom: 1px solid rgba(10, 17, 114, 0.1);
}

.ace-author-archive-header__media img,
.ace-author-archive-header__media .avatar {
	width: 120px;
	height: 120px;
	border-radius: 12px;
	object-fit: cover;
	display: block;
}

.ace-author-archive-header__name {
	margin: 0 0 6px;
	font-size: clamp(1.6rem, 2.5vw, 2rem);
	font-weight: 800;
	color: #0a1172;
	line-height: 1.2;
}

.ace-author-archive-header__count {
	margin: 0 0 12px;
	color: #6b7280;
	font-size: 0.9rem;
	font-weight: 600;
}

.ace-author-archive-header__bio {
	color: #4b5563;
	font-size: 1em;
	line-height: 1.65;
	max-width: 44rem;
}

.ace-author-archive-header__bio p:last-child {
	margin-bottom: 0;
}

.shwc-pagination-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-start;
	margin: 28px 0 8px;
}

@media screen and (max-width: 1024px) {
	.ace-archive-grid.ace-shortcode--grid,
	.ace-archive-grid--licence,
	.ace-archive-grid--vendor,
	.ace-archive-grid--game-category {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ace-casino-card,
	.ace-casino-card--rank {
		grid-template-columns: 1fr;
	}

	.ace-casino-card__actions {
		flex-direction: row;
		min-width: 0;
	}
}

@media screen and (max-width: 1100px) and (min-width: 1025px) {
	.ace-archive-grid--vendor,
	.ace-archive-grid--game-category {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (max-width: 767px) {
	.ace-archive-header {
		text-align: start;
	}

	.ace-archive-header .ace-term-chips {
		justify-content: flex-start;
	}

	.ace-post-card {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 18px 0;
	}

	.ace-post-card__media img {
		aspect-ratio: 16 / 10;
	}

	.ace-archive-grid.ace-shortcode--grid:not(.ace-shortcode--bonus),
	.ace-archive-grid--licence,
	.ace-archive-grid--vendor,
	.ace-archive-grid--game-category {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.ace-archive--bonus-category .ace-archive-grid.ace-shortcode--bonus {
		grid-template-columns: 1fr;
	}

	.ace-archive-hero--licence .ace-archive-header,
	.ace-archive-hero--companies .ace-archive-header {
		text-align: right;
	}

	/* Casino licence cards — compact 2-col mobile (logo / title / stars / Play Now). */
	.ace-casino-card--licence {
		min-height: 0;
		height: auto;
		border-radius: 8px;
	}

	.ace-casino-card--licence .ace-casino-card__wrap {
		padding: 18px 12px 16px;
		min-height: 0;
	}

	.ace-casino-card--licence .ace-casino-card__logo {
		width: 72px;
		height: 72px;
		margin: 0 auto 12px;
	}

	.ace-casino-card--licence .ace-casino-card__logo img {
		width: 72px !important;
		height: 72px !important;
		max-width: 72px;
		max-height: 72px;
	}

	.ace-casino-card--licence .ace-casino-card__title {
		font-size: 0.95rem;
		margin: 0 0 8px;
	}

	.ace-casino-card--licence .ace-casino-card__terms {
		display: none;
	}

	.ace-casino-card--licence .ace-casino-card__actions {
		padding-top: 12px;
	}

	.ace-casino-card--licence .ace-btn--play,
	.ace-casino-card--licence .ace-btn--play-licence {
		width: auto;
		max-width: 100%;
		min-height: 36px;
		padding: 8px 18px;
		border-radius: 999px;
		font-size: 0.8125rem;
	}

	/* Casino CPT rank / list archives → vertical 2-col cards on mobile. */
	.ace-archive--casino .ace-archive-list.ace-shortcode--rank,
	.ace-archive--casino .ace-archive-list.ace-shortcode--list,
	.ace-shortcode.ace-shortcode--rank:not(.ace-shortcode--bonus),
	.ace-shortcode.ace-shortcode--list:not(.ace-shortcode--bonus) {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.ace-archive--casino .ace-casino-card--rank,
	.ace-archive--casino .ace-casino-card--list,
	.ace-shortcode--rank .ace-casino-card--rank,
	.ace-shortcode--list .ace-casino-card--list,
	.ace-shortcode--rank .ace-casino-card,
	.ace-shortcode--list .ace-casino-card {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		text-align: center;
		gap: 10px;
		padding: 16px 12px;
		grid-template-columns: unset;
		min-width: 0;
		box-shadow: 0 10px 40px rgba(109, 141, 173, 0.25);
		border: 0;
		border-radius: 8px;
	}

	.ace-archive--casino .ace-casino-card__rank,
	.ace-shortcode--rank .ace-casino-card__rank {
		display: none;
	}

	.ace-archive--casino .ace-casino-card__brand,
	.ace-shortcode--rank .ace-casino-card__brand,
	.ace-shortcode--list .ace-casino-card__brand {
		flex-direction: column;
		align-items: center;
		text-align: center;
		width: 100%;
		gap: 10px;
	}

	.ace-archive--casino .ace-casino-card__identity,
	.ace-shortcode--rank .ace-casino-card__identity,
	.ace-shortcode--list .ace-casino-card__identity {
		width: 100%;
		text-align: center;
	}

	.ace-archive--casino .ace-casino-card__logo,
	.ace-shortcode--rank .ace-casino-card__logo,
	.ace-shortcode--list .ace-casino-card__logo {
		width: 72px;
		height: 72px;
		flex: 0 0 72px;
		margin: 0 auto;
	}

	.ace-archive--casino .ace-casino-card__title,
	.ace-shortcode--rank .ace-casino-card__title,
	.ace-shortcode--list .ace-casino-card__title {
		font-size: 0.95rem;
		text-align: center;
	}

	.ace-archive--casino .ace-casino-card__rating,
	.ace-shortcode--rank .ace-casino-card__rating,
	.ace-shortcode--list .ace-casino-card__rating {
		justify-content: center;
	}

	.ace-archive--casino .ace-casino-card__terms,
	.ace-shortcode--rank .ace-casino-card__terms,
	.ace-shortcode--list .ace-casino-card__terms,
	.ace-archive--casino .ace-term-pills,
	.ace-shortcode--rank .ace-term-pills,
	.ace-shortcode--list .ace-term-pills,
	.ace-archive--casino .ace-btn--review,
	.ace-shortcode--rank .ace-btn--review,
	.ace-shortcode--list .ace-btn--review,
	.ace-archive--casino .ace-casino-card__score,
	.ace-shortcode--rank .ace-casino-card__score,
	.ace-shortcode--list .ace-casino-card__score,
	.ace-archive--casino .ace-btn--play__arrow,
	.ace-shortcode--rank .ace-btn--play__arrow,
	.ace-shortcode--list .ace-btn--play__arrow {
		display: none !important;
	}

	.ace-archive--casino .ace-casino-card__actions,
	.ace-shortcode--rank .ace-casino-card__actions,
	.ace-shortcode--list .ace-casino-card__actions {
		display: flex;
		justify-content: center;
		width: 100%;
		margin-top: auto;
		padding-top: 4px;
	}

	.ace-archive--casino .ace-btn--play,
	.ace-shortcode--rank .ace-btn--play,
	.ace-shortcode--list .ace-btn--play {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: auto;
		min-height: 36px;
		padding: 8px 18px;
		border-radius: 999px;
		background: #111 !important;
		color: #fff !important;
		font-size: 0.8125rem;
		font-weight: 700;
		box-shadow: none;
	}

	/* Game archive / shortcode grids stay 2-col (units already covered). */
	.ace-archive--game .ace-archive-grid.ace-shortcode--game,
	.ace-shortcode.ace-shortcode--grid:not(.ace-shortcode--bonus) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.ace-archive--game .ace-game-card:not(.ace-game-card--units) .ace-game-card__actions .ace-btn--play,
	.ace-shortcode--grid:not(.ace-shortcode--bonus) .ace-game-card .ace-btn--play {
		background: #111 !important;
		color: #fff !important;
		border-radius: 999px;
		box-shadow: none;
		padding: 8px 16px;
		font-size: 0.8125rem;
	}

	.ace-archive--game .ace-game-card:not(.ace-game-card--units) .ace-btn--play__arrow,
	.ace-shortcode--grid:not(.ace-shortcode--bonus) .ace-game-card .ace-btn--play__arrow {
		display: none !important;
	}

	.ace-author-archive-header {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 14px;
	}

	.ace-author-archive-header__media img,
	.ace-author-archive-header__media .avatar {
		width: 72px;
		height: 72px;
		border-radius: 8px;
	}
}

/* Legacy article card classes kept for compatibility */
.ace-archive .shwc-post-cards-grid {
	display: grid;
	grid-template-columns: repeat(var(--archive-grid-cols, 2), minmax(0, 1fr));
	gap: 28px 24px;
}

.shwc-article-card-minimal {
	display: block;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

.shwc-article-card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.shwc-article-title {
	margin: 0 0 8px;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--shwc-fg-primary);
}

.shwc-article-card-minimal:hover .shwc-article-title {
	color: var(--shwc-brand-base, #0a1172);
}

.shwc-article-excerpt {
	margin: 0 0 10px;
	color: var(--shwc-fg-secondary);
	font-size: 0.95em;
	line-height: 1.6;
}

.ace-archive .shwc-article-footer-meta,
.ace-archive .shwc-article-card-inner .shwc-article-footer-meta {
	margin-top: auto;
	font-size: 0.8125rem;
	color: #6b7280;
}

/* Soften default archive article boxes (match static white content) */
.ace-archive.shwc-site-main > .shwc-container > article,
.archive .site-main > article,
.tax-category .site-main > article,
.tax-post_tag .site-main > article,
.taxonomy .site-main > article {
	background: transparent;
	border: 0;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
	margin-bottom: 0;
}

.ace-archive.shwc-site-main > .shwc-container > article:hover,
.archive .site-main > article:hover,
.tax-category .site-main > article:hover,
.tax-post_tag .site-main > article:hover,
.taxonomy .site-main > article:hover {
	background: transparent;
}

.ace-shortcode--list,
.ace-shortcode--rank,
.ace-search-results {
	display: grid;
	gap: 14px;
}

.ace-shortcode--grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.ace-casino-card {
	display: grid;
	grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1.4fr) auto;
	gap: 16px;
	align-items: center;
	padding: 16px;
	background: var(--shwc-bg-elevated);
	border: 1px solid var(--shwc-border-strong);
	border-radius: var(--radius-base);
}

.ace-casino-card--rank {
	grid-template-columns: 42px minmax(180px, 1.1fr) minmax(180px, 1.4fr) auto;
}

.ace-casino-card__rank {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #0a1172;
	color: #fff;
	font-weight: 800;
}

.ace-casino-card__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ace-casino-card__logo img,
.ace-casino-card__logo-fallback {
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--shwc-border-strong);
}

.ace-casino-card__logo-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	color: #0a1172;
}

.ace-casino-card__title {
	margin: 0 0 6px;
	font-size: 1.0625rem;
}

.ace-casino-card__rating {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ace-casino-card__score {
	font-weight: 800;
	color: var(--shwc-fg-primary);
}

.ace-casino-card__terms {
	color: var(--shwc-fg-secondary);
	font-size: 0.9375rem;
}

.ace-casino-card__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 160px;
}

.ace-bonus-card:not(.ace-bonus-card--grid),
.ace-game-card {
	background: var(--shwc-bg-elevated);
	border: 1px solid var(--shwc-border-strong);
	border-radius: var(--radius-base);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ace-bonus-card:not(.ace-bonus-card--grid) .ace-bonus-card__media img,
.ace-game-card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.ace-bonus-card:not(.ace-bonus-card--grid) .ace-bonus-card__body,
.ace-game-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.ace-bonus-card__title,
.ace-game-card__title {
	font-size: 1.0625rem;
	margin: 0;
}

.ace-bonus-card__amount {
	font-weight: 800;
	color: #0a1172;
	margin: 0;
}

.ace-game-card__media {
	position: relative;
	display: block;
}

.ace-game-card__badge {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	background: #0a1172;
	color: #fff;
	border-radius: 999px;
	padding: 4px 10px;
	font-weight: 800;
	font-size: 0.8125rem;
}

.ace-hero {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	margin-bottom: 32px;
	padding: 24px;
	background: var(--shwc-bg-elevated);
	border: 1px solid var(--shwc-border-strong);
	border-radius: var(--radius-base);
}

.ace-hero__logo {
	position: relative;
}

.ace-hero__logo img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	background: #fff;
}

.ace-hero__score {
	position: absolute;
	bottom: -10px;
	inset-inline-start: 50%;
	transform: translateX(-50%);
	background: #0a1172;
	color: #fff;
	border-radius: 999px;
	padding: 4px 10px;
	font-weight: 800;
}

.ace-hero__title {
	margin-bottom: 8px;
}

.ace-hero__terms {
	margin: 0 0 16px;
}

/* ==========================================================================
   Casino / Game CPT banner, author box, related grid
   ========================================================================== */

.ace-single--banner {
	padding-top: 0;
}

.ace-cpt-banner {
	background: #f2f2f2;
	padding: 28px 0;
	margin-bottom: 24px;
	border-bottom: 1px solid #e5e5e5;
	overflow: visible;
}

.ace-cpt-banner__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	overflow: visible;
}

.ace-cpt-banner__main {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-width: 0;
}

.ace-cpt-banner__media {
	position: relative;
	flex: 0 0 140px;
	width: 140px;
	overflow: visible;
	z-index: 1;
}

.ace-cpt-banner__thumb {
	display: block;
	width: 140px;
	height: 140px;
	object-fit: cover;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(10, 17, 114, 0.08);
}

.ace-cpt-banner__thumb--empty {
	background: #dde1ea;
}

.ace-cpt-banner__rating {
	position: absolute;
	top: -15px;
	inset-inline-end: -15px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 8px 7px 10px;
	border-radius: 15px;
	background: #fff;
	color: #111;
	font-size: 1em;
	font-weight: 700;
	line-height: 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
	white-space: nowrap;
}

.ace-cpt-banner__rating--inline {
	position: static;
	top: auto;
	inset: auto;
	flex: 0 0 auto;
	align-self: center;
	direction: ltr;
}

/* No featured image: keep rating on the physical right for EN and AR. */
.ace-cpt-banner--no-media .ace-cpt-banner__main {
	direction: ltr;
}

.ace-lang-ar .ace-cpt-banner--no-media .ace-cpt-banner__info,
html[lang^="ar"] .ace-cpt-banner--no-media .ace-cpt-banner__info,
.rtl .ace-cpt-banner--no-media .ace-cpt-banner__info {
	direction: rtl;
	text-align: right;
	margin-inline-end: auto;
}

.ace-cpt-banner__star {
	color: #ffc107;
	font-size: 13px;
	line-height: 1;
}

.ace-cpt-banner__info {
	flex: 1 1 auto;
	min-width: 0;
}

.ace-cpt-banner__title {
	margin: 0 0 8px;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 800;
	color: #111;
	line-height: 1.15;
}

.ace-cpt-banner__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
	color: #6b7280;
	font-size: 0.875rem;
	font-weight: 500;
}

.ace-cpt-banner__clock {
	display: inline-flex;
	line-height: 0;
	color: #9ca3af;
}

.ace-cpt-banner__byline,
.ace-cpt-banner__text {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #6b7280;
	font-size: 0.9375rem;
}

.ace-cpt-banner__by {
	color: #6b7280;
}

.ace-cpt-banner__tag {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border: 1px solid #cfd3dc;
	border-radius: 6px;
	background: #fff;
	color: #1f2937;
	font-weight: 600;
	text-decoration: none;
}

a.ace-cpt-banner__tag:hover {
	border-color: #9aa3b2;
	color: #111;
}

.ace-cpt-banner__text {
	font-weight: 600;
	color: #1f2937;
}

.ace-cpt-banner__cta {
	flex: 0 0 auto;
	margin-inline-start: auto;
}

.ace-banner-play {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 0 18px 0 22px;
	border-radius: 10px;
	background: var(--shwc-setting-play-button-background, #ffd700);
	color: var(--shwc-setting-play-button-text, #0a1172);
	font-size: 1.05rem;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(10, 17, 114, 0.12);
	transition: transform 0.15s ease, filter 0.15s ease;
}

.ace-banner-play:hover,
.ace-banner-play:focus-visible {
	transform: translateY(-1px);
	filter: brightness(1.03);
	color: var(--shwc-setting-play-button-text, #0a1172);
}

/* Casino / Game banner CTA — Mercury-style gold Play Now */
.ace-banner-play--casino,
.ace-banner-play--game,
.ace-cpt-banner--casino .ace-banner-play,
.ace-cpt-banner--game .ace-banner-play {
	background: gold;
	color: #0a1172;
	border-radius: 5px;
	padding: 17px 55px;
	min-height: 0;
	font-weight: 300;
	font-size: 1.333em;
	line-height: 1.25;
	box-shadow: 0 5px 15px rgba(255, 215, 0, 0.55);
	gap: 8px;
}

.ace-banner-play--casino:hover,
.ace-banner-play--casino:focus-visible,
.ace-banner-play--game:hover,
.ace-banner-play--game:focus-visible,
.ace-cpt-banner--casino .ace-banner-play:hover,
.ace-cpt-banner--casino .ace-banner-play:focus-visible,
.ace-cpt-banner--game .ace-banner-play:hover,
.ace-cpt-banner--game .ace-banner-play:focus-visible {
	color: #0a1172;
	filter: none;
	box-shadow: 0 5px 15px rgba(255, 215, 0, 0);
}

.ace-banner-play--casino .ace-banner-play__arrow,
.ace-banner-play--game .ace-banner-play__arrow,
.ace-cpt-banner--casino .ace-banner-play__arrow,
.ace-cpt-banner--game .ace-banner-play__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-size: 1em;
	line-height: 1;
	padding-inline-start: 0.35em;
}

.ace-play-arrow-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: #0a1172;
	transform: none;
	vertical-align: middle;
}

.ace-play-arrow-icon {
	display: block;
	width: 1.125em;
	height: 1.125em;
	flex-shrink: 0;
}

.ace-play-arrow-icon circle {
	fill: currentColor;
}

.ace-play-arrow-icon path {
	stroke: #fff;
}

.ace-banner-play--casino .ace-play-arrow-icon,
.ace-banner-play--game .ace-play-arrow-icon,
.ace-cpt-banner--casino .ace-play-arrow-icon,
.ace-cpt-banner--game .ace-play-arrow-icon,
.ace-summary-play .ace-play-arrow-icon,
.ace-float-bar__play .ace-play-arrow-icon {
	width: 1.125em;
	height: 1.125em;
}

.ace-cpt-banner--casino .ace-cpt-banner__text {
	margin-top: 2px;
	color: #7f8c8d;
	font-weight: 500;
	font-size: 1em;
}

.ace-banner-play__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-size: 1em;
	line-height: 1;
	padding-inline-start: 0.35em;
}

html[dir="rtl"] .ace-author-box__inner,
.ace-lang-ar .ace-author-box__inner {
	flex-direction: row-reverse;
}

.ace-single--casino .ace-author-box {
	margin: 28px 0 0;
	padding: 24px 0 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	display: block;
}

.ace-single--casino .ace-author-box__inner {
	display: flex;
	align-items: flex-start;
	gap: 16px 20px;
	width: 100%;
	max-width: 100%;
}

.ace-single--casino .ace-author-box__body {
	flex: 1 1 auto;
	min-width: 0;
}

.ace-lang-ar .ace-single--casino .ace-author-box__inner,
html[dir="rtl"] .ace-single--casino .ace-author-box__inner {
	flex-direction: row-reverse;
}

.ace-author-box {
	display: block;
	margin: 36px 0 28px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.ace-author-box__inner {
	display: flex;
	align-items: flex-start;
	gap: 16px 20px;
	width: 100%;
	max-width: 100%;
}

.ace-author-box__media {
	flex: 0 0 auto;
}

.ace-author-box__body {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
}

.ace-author-box__media img,
.ace-author-box__media .avatar {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 6px;
}

.ace-author-box__name {
	margin: 0 0 8px;
	font-size: 1.125rem;
	font-weight: 800;
}

.ace-author-box__name a {
	color: #111;
	text-decoration: none;
}

.ace-author-box__name a:hover {
	color: var(--shwc-brand, #0a1172);
}

.ace-author-box__bio {
	width: 100%;
	color: #4b5563;
	font-size: 0.9375rem;
	line-height: 1.65;
}

.ace-author-box__bio p:last-child {
	margin-bottom: 0;
}

/* Normal post article layout (Mercury-style) */
.ace-single--post {
	--ace-post-accent: #b22222;
	--ace-post-accent-hover: #8b1a1a;
}

.ace-lang-en .ace-single--post {
	--ace-post-accent: #b22222;
	--ace-post-accent-hover: #8b1a1a;
}

.ace-lang-ar .ace-single--post {
	--ace-post-accent: #33a659;
	--ace-post-accent-hover: #2a8f4a;
}

.ace-single--post .ace-author-box {
	margin-top: 40px;
	padding: 0;
	border: 0;
	border-radius: 0;
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 28px;
	display: block;
}

.ace-single--post .ace-author-box__inner {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	max-width: 100%;
}

.ace-single--post .ace-author-box__media {
	flex: 0 0 auto;
}

.ace-single--post .ace-author-box__body {
	flex: 1 1 auto;
	min-width: 0;
}

.ace-lang-en .ace-single--post .ace-author-box,
html[dir="ltr"] .ace-single--post .ace-author-box {
	text-align: left;
}

.ace-lang-en .ace-single--post .ace-author-box__inner,
html[dir="ltr"] .ace-single--post .ace-author-box__inner {
	flex-direction: row;
}

.ace-lang-ar .ace-single--post .ace-author-box,
html[dir="rtl"] .ace-single--post .ace-author-box {
	text-align: right;
}

.ace-lang-ar .ace-single--post .ace-author-box__inner,
html[dir="rtl"] .ace-single--post .ace-author-box__inner {
	flex-direction: row-reverse;
}

.ace-single--post .ace-author-box__bio {
	width: 100%;
}

.ace-single--post .ace-author-box__media img,
.ace-single--post .ace-author-box__media .avatar {
	width: 48px;
	height: 48px;
	border-radius: 4px;
}

.ace-single--post .ace-author-box__name {
	margin: 0 0 8px;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.45;
}

.ace-single--post .ace-author-box__name a {
	color: var(--ace-post-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ace-single--post .ace-author-box__name a:hover {
	color: var(--ace-post-accent-hover);
}

.ace-single--post .ace-breadcrumbs,
.ace-breadcrumbs--post {
	margin: 8px 0 28px;
	font-size: 1em;
	line-height: 1.5;
	color: #2c3e50;
}

.ace-single--post .ace-breadcrumbs__current,
.ace-breadcrumbs--post .ace-breadcrumbs__current {
	color: #2c3e50;
	text-decoration: none;
}

.ace-post-banner {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 280px;
	margin: 0;
	overflow: hidden;
	background: #2d3436;
}

.ace-post-banner--has-image {
	min-height: 375px;
}

.ace-post-banner__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.ace-post-banner__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.7);
}

.ace-post-banner__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-top: 60px;
	padding-bottom: 36px;
}

.ace-post-banner__title {
	margin: 0;
	max-width: 900px;
	color: #fff;
	font-size: clamp(1.75rem, 3.2vw, 3.157em);
	font-weight: 700;
	line-height: 1.1;
}

.ace-post-banner-cats {
	position: relative;
	z-index: 3;
	margin-top: -14px;
	margin-bottom: 8px;
}

.ace-post-cats,
.ace-related-post__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ace-post-cat {
	display: inline-block;
	padding: 5px 16px;
	border-radius: 3px;
	background: #b22222;
	color: #fff !important;
	font-size: 0.75em;
	font-weight: 400;
	line-height: 1.45;
	text-decoration: none !important;
}

.ace-post-cat:hover {
	background: #57606f;
	color: #fff !important;
}

.ace-lang-en .ace-single--post .ace-post-cat {
	background: #b22222 !important;
}

.ace-lang-ar .ace-single--post .ace-post-cat,
html[dir="rtl"] .ace-single--post .ace-post-cat {
	background: #33a659 !important;
}

.ace-post-meta {
	display: flex;
	align-items: center;
	gap: 15px;
	min-height: 50px;
	margin: 28px 0 24px;
}

.ace-post-meta__avatar img,
.ace-post-meta__avatar .avatar {
	display: block;
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 50%;
}

.ace-post-meta__byline {
	margin-bottom: 4px;
	color: #7f8c8d;
	font-size: 1em;
	line-height: 1.45;
}

.ace-post-meta__byline a {
	color: #151515;
	font-weight: 500;
	text-decoration: none;
}

.ace-post-meta__byline a:hover {
	text-decoration: underline;
}

.ace-post-meta__date,
.ace-related-post__meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #7f8c8d;
	font-size: 0.75em;
	line-height: 1;
}

.ace-post-meta__clock {
	display: inline-flex;
	color: #7f8c8d;
}

/* More Relevant Articles — Mercury latest-posts block */
.ace-relevant-articles {
	margin: 48px 0 28px;
	padding: 0;
	background: transparent;
}

.ace-relevant-articles__title {
	margin: 0 0 18px;
	color: #151515;
	font-size: 1.75em;
	font-weight: 700;
	line-height: 1.35;
}

.ace-relevant-articles__panel {
	padding: 22px 24px;
	background: #f5f6fa;
	border-radius: 8px;
}

.ace-relevant-articles__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ace-relevant-articles__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

.ace-relevant-articles__media {
	flex-shrink: 0;
}

.ace-relevant-articles__media img {
	display: block;
	width: 150px;
	height: 150px;
	object-fit: cover;
	border-radius: 4px;
}

.ace-relevant-articles__link {
	color: #151515;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ace-relevant-articles__link:hover {
	color: var(--ace-post-accent, #b22222);
}

.ace-relevant-articles__author {
	margin-top: 2px;
	color: #7f8c8d;
	font-size: 0.875rem;
	line-height: 1.45;
}

html[dir="rtl"] .ace-relevant-articles__title,
.ace-lang-ar .ace-relevant-articles__title {
	text-align: right;
}

html[dir="rtl"] .ace-relevant-articles__item {
	align-items: flex-end;
}

html[dir="rtl"] .ace-relevant-articles__link {
	text-align: right;
}

html[dir="rtl"] .ace-related-posts__title,
.ace-lang-ar .ace-related-posts__title {
	text-align: right;
}

.ace-single--post .ace-related-posts .ace-post-cat {
	background: var(--ace-post-accent);
}

.ace-single--post .ace-related-posts .ace-post-cat:hover {
	background: #57606f;
}

.ace-related-posts {
	margin: 8px 0 32px;
	padding-top: 8px;
}

.ace-related-posts__title {
	margin: 0 0 22px;
	color: #151515;
	font-size: 1.333em;
	font-weight: 700;
	line-height: 1.45;
}

.ace-related-posts__label {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
}

.ace-related-posts__text {
	display: inline-block;
	line-height: 1.45;
}

.ace-related-posts__icon {
	position: relative;
	display: inline-block;
	width: 11px;
	height: 22px;
	flex: 0 0 auto;
	margin-top: 3px;
}

.ace-related-posts__icon::before,
.ace-related-posts__icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
}

.ace-related-posts__icon::before {
	top: 0;
	z-index: 2;
	background: var(--ace-post-accent, #b22222);
	opacity: 0.8;
}

.ace-related-posts__icon::after {
	top: 7px;
	z-index: 1;
	background: #111;
}

.ace-related-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.ace-related-post__media {
	display: block;
	margin-bottom: 0;
	overflow: hidden;
	border-radius: 5px;
	line-height: 0;
}

.ace-related-post__media img,
.ace-related-post__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 450 / 338;
	object-fit: cover;
	background: #e5e7eb;
}

.ace-related-post__cats {
	position: relative;
	z-index: 1;
	margin-top: -8px;
	margin-bottom: 14px;
}

.ace-related-post__name {
	margin: 0 0 12px;
	font-size: 1.333em;
	font-weight: 700;
	line-height: 1.25;
}

.ace-related-post__name a {
	color: #151515;
	text-decoration: none;
}

.ace-related-post__name a:hover {
	color: #b2bec3;
}

.ace-related-cpt {
	--ace-related-accent: #b22222;
	margin: 8px 0 32px;
}

.ace-lang-ar .ace-related-cpt,
.ace-single--game-ar .ace-related-cpt,
.ace-single--casino-ar .ace-related-cpt {
	--ace-related-accent: #33a659;
}

.ace-related-cpt__title {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 20px;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.25;
	color: #151515;
}

.ace-related-cpt__text {
	flex: 1 1 auto;
	min-width: 0;
}

.ace-related-cpt__icon {
	position: relative;
	display: inline-block;
	width: 11px;
	height: 22px;
	flex: 0 0 auto;
	margin-top: 3px;
	background: transparent;
	border-radius: 0;
	font-size: 0;
	line-height: 0;
}

.ace-related-cpt__icon::before,
.ace-related-cpt__icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
}

.ace-related-cpt__icon::before {
	top: 0;
	z-index: 2;
	background: var(--ace-related-accent, #b22222);
	opacity: 0.85;
}

.ace-related-cpt__icon::after {
	top: 7px;
	z-index: 1;
	background: #151515;
}

.ace-related-cpt__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.ace-related-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 0;
	height: auto;
	background: #fff;
	border: 0;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(109, 141, 173, 0.25);
	overflow: hidden;
	text-align: center;
}

/* No featured image — compact card (title + Play Now), don’t stretch with media cards. */
.ace-related-card:not(.ace-related-card--media) {
	align-self: start;
	min-height: 0;
	height: auto;
}

.ace-related-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 450 / 317;
	height: auto;
	background: #f3f4f6;
	flex: 0 0 auto;
	overflow: hidden;
	line-height: 0;
}

.ace-related-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	aspect-ratio: unset;
}

.ace-related-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	flex: 0 0 auto;
	padding: 16px 14px 18px;
}

.ace-related-card:not(.ace-related-card--media) .ace-related-card__body {
	justify-content: flex-start;
	gap: 24px;
	padding: 20px 14px 18px;
	min-height: 0;
}

.ace-related-card__name {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

.ace-related-card__name a {
	color: #111;
	text-decoration: none;
}

.ace-related-card__name a:hover {
	color: #111;
	opacity: 0.85;
}

.ace-related-card__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	min-height: 40px;
	min-width: 120px;
	padding: 10px 26px;
	border-radius: 999px;
	background: #111 !important;
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none !important;
	border: 0;
	box-shadow: none;
}

.ace-related-card__play:hover,
.ace-related-card__play:focus-visible {
	background: #000 !important;
	color: #fff !important;
}

.ace-details,
.ace-ratings,
.ace-bonus-summary,
.ace-callout {
	margin: 28px 0;
	padding: 20px;
	border: 1px solid var(--shwc-border-strong);
	border-radius: var(--radius-base);
	background: #fff;
}

.ace-details__row + .ace-details__row {
	margin-top: 16px;
}

.ace-details h2 {
	font-size: 1rem;
	margin-bottom: 8px;
}

/* Mercury-style casino details (icon + label | pills) */
.ace-org-details {
	margin: 28px 0 0;
	padding: 0;
	background: #fff;
}

.ace-org-details__title {
	margin-bottom: 15px;
}

.ace-org-details__title h3 {
	margin: 0;
	font-size: 1.777em;
	line-height: 1.2em;
	font-weight: 700;
	color: #151515;
}

.ace-org-details__item {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px 16px;
	padding: 20px 0;
	border-top: 1px solid #dfe6e9;
	margin-top: 0;
}

.ace-org-details__item:first-of-type {
	margin-top: 30px;
}

.ace-org-details__label {
	flex: 0 0 33.333%;
	max-width: 33.333%;
	display: flex;
	align-items: center;
	gap: 10px;
	line-height: 30px;
	color: #2e3246;
	font-size: 1em;
}

.ace-org-details__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #f1f3f4;
	color: var(--ace-casino-accent, #b22222);
}

.ace-single--casino {
	--ace-casino-accent: #b22222;
	--ace-casino-accent-hover: #8b1a1a;
}

.ace-lang-ar .ace-single--casino {
	--ace-casino-accent: #33a659;
	--ace-casino-accent-hover: #2a8f4a;
}

.ace-org-details__pills {
	flex: 1 1 60%;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 4px;
}

.ace-org-details__pill {
	display: inline-block;
	color: #2e3246;
	font-size: 1em;
	line-height: 1.333em;
	padding: 5px 20px 6px;
	border-radius: 16px;
	background: #f1f3f4;
	text-decoration: none !important;
}

a.ace-org-details__pill--link:hover {
	color: #fff !important;
	background: var(--ace-casino-accent, #b22222);
}

@media screen and (max-width: 767px) {
	.ace-org-details__label,
	.ace-org-details__pills {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.ace-org-details__label {
		margin-bottom: 8px;
	}

	.ace-org-details__title h3 {
		font-size: 1.333em;
	}
}

.ace-ratings {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 180px;
	gap: 16px;
	align-items: center;
}

.ace-ratings__item,
.ace-ratings__overall {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--shwc-border-strong);
}

.ace-ratings__overall {
	flex-direction: column;
	align-items: center;
	text-align: center;
	border: 0;
}

.ace-ratings__overall strong {
	font-size: 2rem;
	color: #0a1172;
}

.ace-callout {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
	background: #f6fff8;
}

/* Casino bonus + ratings summary (Mercury call-to-action card) */
.ace-rating-summary {
	margin: 36px 0 28px;
	padding: 28px 30px;
	border-radius: 8px;
	background: #f1f3f4;
	border: 0;
}

.ace-rating-summary__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding-bottom: 22px;
}

.ace-rating-summary__offer {
	margin: 0;
	flex: 1 1 240px;
	font-size: 1.35rem;
	line-height: 1.3;
	color: #111;
}

.ace-rating-summary__offer strong {
	font-weight: 700;
}

.ace-rating-summary__play {
	flex: 0 0 auto;
}

.ace-summary-play {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 0;
	padding: 13px 40px;
	border-radius: 23px;
	background: gold;
	color: #0a1172;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	box-shadow: 0 5px 15px rgba(255, 215, 0, 0.55);
	transition: box-shadow 0.2s ease;
}

.ace-summary-play:hover,
.ace-summary-play:focus-visible {
	color: #0a1172;
	box-shadow: 0 5px 15px rgba(255, 215, 0, 0);
}

.ace-summary-play__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-size: 1em;
	line-height: 1;
	padding-inline-start: 0.35em;
}

.ace-summary-play .ace-play-arrow-icon {
	width: 1.125em;
	height: 1.125em;
}

.ace-rating-summary__scores {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 24px;
	padding-top: 22px;
	border-top: 1px solid #dcdde1;
}

.ace-rating-summary__grid {
	flex: 1 1 280px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 20px;
}

.ace-rating-summary__item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.ace-rating-summary__pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex: none;
	padding: 8px 8px 6px 10px;
	border-radius: 15px;
	background: #fff;
	color: #111;
	font-weight: 700;
	font-size: 1em;
	line-height: 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.ace-rating-summary__star {
	color: #ffc107;
	font-size: 13px;
	line-height: 1;
}

.ace-rating-summary__label {
	color: #2e3246;
	font-size: 1em;
	line-height: 1.3;
	font-weight: 400;
}

.ace-rating-summary__overall {
	flex: 0 0 auto;
	min-width: 140px;
	text-align: center;
	margin-inline-start: auto;
}

.ace-rating-summary__overall-score {
	display: block;
	font-size: 3.157em;
	line-height: 1;
	font-weight: 700;
	color: #111;
}

.ace-rating-summary__overall-label {
	display: block;
	margin-top: 6px;
	font-size: 1em;
	line-height: 1.35;
	font-weight: 400;
	color: #2e3246;
}

html[dir="rtl"] .ace-rating-summary__cta,
html[dir="rtl"] .ace-rating-summary__scores,
html[dir="rtl"] .ace-rating-summary__item {
	direction: rtl;
}

html[dir="rtl"] .ace-rating-summary__overall {
	margin-inline-start: 0;
	margin-inline-end: auto;
}

@media screen and (max-width: 767px) {
	.ace-rating-summary {
		padding: 22px 18px;
	}

	.ace-rating-summary__cta {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.ace-rating-summary__play .ace-summary-play {
		width: 100%;
		justify-content: center;
	}

	.ace-rating-summary__grid {
		grid-template-columns: 1fr;
		width: 100%;
	}

	.ace-rating-summary__scores {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.ace-rating-summary__overall {
		width: 100%;
		margin: 0 0 8px;
		padding-bottom: 16px;
		border-bottom: 1px solid #dcdde1;
	}

	.ace-rating-summary__offer {
		font-size: 1.15rem;
	}
}

.ace-facts {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 28px;
}

.ace-facts th,
.ace-facts td {
	border: 1px solid var(--shwc-border-strong);
	padding: 10px 12px;
	text-align: start;
}

.ace-breadcrumbs {
	margin-bottom: 16px;
	font-size: 1em;
	line-height: 1.5;
	color: var(--shwc-fg-secondary);
}

.ace-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ace-breadcrumbs li {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
}

.ace-breadcrumbs li:not(:last-child)::after {
	content: "|";
	margin: 0 8px;
	color: #5c6770;
	text-decoration: none;
}

.ace-breadcrumbs--affiliate .ace-breadcrumbs__current,
.ace-breadcrumbs--post .ace-breadcrumbs__current {
	color: #151515;
	font-weight: 400;
}

.ace-float-bar {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 999;
	background: #1b1d21;
	color: #fff;
	padding: 15px 0;
	transform: translateY(100%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.ace-float-bar.is-visible {
	transform: none;
	opacity: 1;
	visibility: visible;
}

.ace-float-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ace-float-bar__brand {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.ace-float-bar__logo-wrap {
	flex: 0 0 110px;
	max-width: 110px;
	line-height: 0;
}

.ace-float-bar__logo {
	display: block;
	width: 80px;
	height: 80px;
	max-width: 80px;
	max-height: 80px;
	object-fit: contain;
	background: #fff;
	border-radius: 5px;
}

.ace-float-bar__meta {
	flex: 1 1 auto;
	min-width: 0;
}

.ace-float-bar__title {
	color: #fff;
	font-weight: 700;
	font-size: 1.777em;
	line-height: 1.25;
}

.ace-float-bar__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.ace-float-bar__rating .ace-stars--ten .ace-stars__star--full,
.ace-float-bar__rating .ace-stars--ten .ace-stars__star--half {
	color: #fed330;
}

.ace-float-bar__score {
	display: inline-flex;
	align-items: center;
	color: #7f8c8d;
	font-size: 1em;
	line-height: 1;
}

.ace-float-bar__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 200px;
	min-height: 60px;
	padding: 17px 40px;
	border-radius: 5px;
	background: gold;
	color: #0a1172 !important;
	font-size: 1.333em;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none !important;
	box-shadow: 0 5px 15px rgba(255, 215, 0, 0.55);
	transition: box-shadow 0.3s ease;
	gap: 0.35em;
}

.ace-float-bar__play-arrow {
	padding-inline-start: 0;
}

.ace-float-bar__play:hover,
.ace-float-bar__play:focus-visible {
	color: #0a1172 !important;
	box-shadow: 0 5px 15px rgba(255, 215, 0, 0);
}

.shwc-article-thumb {
	margin-bottom: 12px;
	overflow: hidden;
	border-radius: var(--shwc-image-radius);
}

.shwc-article-thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

@media screen and (max-width: 1024px) {
	.ace-shortcode--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ace-casino-card,
	.ace-casino-card--rank {
		grid-template-columns: 1fr;
	}

	.ace-casino-card__actions {
		flex-direction: row;
		min-width: 0;
	}

	.ace-hero,
	.ace-ratings,
	.ace-cpt-banner__inner {
		grid-template-columns: 1fr;
	}

	.ace-author-box {
		display: block;
		text-align: center;
	}

	.ace-author-box__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.ace-cpt-banner__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.ace-cpt-banner__main {
		width: 100%;
		flex-direction: column;
		align-items: center;
	}

	.ace-cpt-banner__media {
		flex-basis: auto;
	}

	.ace-cpt-banner__cta {
		margin-inline-start: 0;
		width: 100%;
		display: flex;
		justify-content: center;
	}

	.ace-cpt-banner__byline,
	.ace-cpt-banner__text {
		justify-content: center;
	}

	.ace-single--post .ace-author-box {
		display: block;
		text-align: start;
	}

	.ace-single--post .ace-author-box__inner {
		flex-direction: row;
		align-items: flex-start;
		text-align: start;
	}

	.ace-single--casino .ace-author-box {
		text-align: start;
	}

	.ace-single--casino .ace-author-box__inner {
		flex-direction: row;
		align-items: flex-start;
		text-align: start;
	}

	.ace-lang-ar .ace-single--casino .ace-author-box,
	html[dir="rtl"] .ace-single--casino .ace-author-box {
		text-align: right;
	}

	.ace-lang-ar .ace-single--casino .ace-author-box__inner,
	html[dir="rtl"] .ace-single--casino .ace-author-box__inner {
		flex-direction: row-reverse;
	}

	.ace-lang-ar .ace-single--post .ace-author-box,
	html[dir="rtl"] .ace-single--post .ace-author-box {
		text-align: right;
	}

	.ace-related-cpt__grid,
	.ace-related-posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ace-relevant-articles__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ace-post-banner,
	.ace-post-banner--has-image {
		min-height: 260px;
	}

	.ace-post-banner__inner {
		padding-top: 45px;
		padding-bottom: 28px;
	}

	.ace-callout {
		justify-content: center;
		text-align: center;
	}
}

@media screen and (max-width: 640px) {
	.ace-footer-copy__inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 10px;
		grid-template-columns: none;
	}

	.ace-footer-copy__menu,
	.ace-footer-copy__copyright {
		grid-column: auto;
		justify-self: center;
		align-self: center;
		width: 100%;
		text-align: center;
		white-space: normal;
	}

	.ace-footer-copy__copyright {
		order: -1;
	}

	.ace-footer-menu {
		justify-content: center;
	}

	.ace-footer-menu > li {
		margin: 0 10px;
	}

	body.ace-lang-en .ace-footer-copy__copyright,
	html[lang^="en"] .ace-footer-copy__copyright,
	body.ace-lang-ar .ace-footer-copy__copyright,
	html[lang^="ar"] .ace-footer-copy__copyright {
		order: -1;
		text-align: center;
		justify-self: center;
	}

	body.ace-lang-en .ace-footer-menu,
	html[lang^="en"] .ace-footer-menu,
	body.ace-lang-ar .ace-footer-menu,
	html[lang^="ar"] .ace-footer-menu {
		justify-content: center;
	}

	body.ace-lang-en .ace-footer-menu > li,
	html[lang^="en"] .ace-footer-menu > li,
	body.ace-lang-ar .ace-footer-menu > li,
	html[lang^="ar"] .ace-footer-menu > li {
		margin: 0 10px;
	}

	.ace-shortcode--grid:not(.ace-shortcode--bonus) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.ace-shortcode--bonus.ace-shortcode--grid,
	.ace-archive-grid.ace-shortcode--bonus {
		grid-template-columns: 1fr;
	}

	.ace-casino-card__actions,
	.ace-float-bar__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.ace-related-cpt__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.ace-related-posts__grid,
	.ace-relevant-articles__list {
		grid-template-columns: 1fr;
	}

	.ace-post-banner,
	.ace-post-banner--has-image {
		min-height: 220px;
	}

	.ace-post-banner__inner {
		padding-top: 30px;
		padding-bottom: 22px;
	}

	.ace-single--post .ace-author-box__media img,
	.ace-single--post .ace-author-box__media .avatar {
		width: 72px;
		height: 72px;
	}

	.ace-cpt-banner {
		padding: 20px 0;
	}

	.ace-cpt-banner__thumb {
		width: 120px;
		height: 120px;
	}

	.ace-banner-play {
		width: 100%;
		justify-content: center;
	}
}

html[dir="rtl"] .shwc-header-inner {
	/* Keep logo left / search right like the live Arabic header */
	direction: ltr;
}

html[dir="rtl"] .shwc-main-navigation,
html[dir="rtl"] .shwc-menu-list {
	/* Keep DOM order: language switcher first (near logo), then Arabic items */
	direction: ltr;
}

html[dir="rtl"] .shwc-menu-list > li > a,
html[dir="rtl"] .shwc-menu-list .sub-menu a {
	direction: rtl;
	text-align: right;
}

@media screen and (min-width: 1025px) {
	html[dir="rtl"] .shwc-menu-list > li.menu-item-has-children > a {
		text-align: center;
	}
}

/* Top-level dropdowns: align under the item, prefer right edge for Arabic labels */
html[dir="rtl"] .shwc-menu-list > li > .sub-menu {
	left: auto;
	right: 0;
	text-align: right;
}

html[dir="rtl"] .shwc-menu-list li.ace-lang-switcher > .sub-menu,
html[dir="rtl"] .shwc-menu-list li.is-flip-left > .sub-menu {
	left: 0;
	right: auto;
}

html[dir="rtl"] .shwc-menu-list li.is-flip-right > .sub-menu {
	left: auto;
	right: 0;
}

/* Nested flyouts open LEFT in Arabic (toward viewport center) */
html[dir="rtl"] .shwc-menu-list .sub-menu .sub-menu {
	left: auto;
	right: 100%;
	margin-inline-start: 0;
	margin-inline-end: 4px;
}

/* If clipped on the left, JS adds .is-flip-right → open to the right instead */
html[dir="rtl"] .shwc-menu-list .sub-menu li.is-flip-right > .sub-menu {
	left: 100%;
	right: auto;
	margin-inline-start: 4px;
	margin-inline-end: 0;
}

html[dir="rtl"] .shwc-menu-list .sub-menu li.is-flip-left > .sub-menu {
	left: auto;
	right: 100%;
	margin-inline-start: 0;
	margin-inline-end: 4px;
}

html[dir="rtl"] .ace-stars__fill {
	inset: 0 0 0 auto;
}

/* Mobile accordion: chevron stays down; rotate when open */
@media screen and (max-width: 1024px) {
	html[dir="rtl"] .shwc-menu-list {
		direction: rtl;
		text-align: right;
	}

	html[dir="rtl"] .shwc-menu-list > li > a {
		flex-direction: row;
		justify-content: space-between;
	}

	html[dir="rtl"] .shwc-menu-list > li.menu-item-has-children > a::after,
	html[dir="rtl"] .shwc-menu-list .sub-menu li.menu-item-has-children > a::after {
		transform: rotate(45deg);
		margin-inline-start: 0;
		margin-inline-end: 0;
		order: -1; /* keep chevron on the visual start (right) in RTL accordion */
	}

	html[dir="rtl"] .shwc-menu-list li.is-open > a::after {
		transform: rotate(225deg);
		margin-top: 2px;
	}

	html[dir="rtl"] .shwc-menu-list .sub-menu {
		padding-inline-start: 0;
		padding-inline-end: 14px;
	}

	html[dir="rtl"] .shwc-menu-list .sub-menu .sub-menu {
		left: auto;
		right: auto;
		margin: 0;
		padding-inline-end: 14px;
	}

	/* Drawer: keep Mercury ▲/▼ on the LI; hide any leftover a::after carets */
	.ace-mobile-drawer__panel .shwc-menu-list li.menu-item-has-children > a::after,
	.ace-mobile-drawer__panel .shwc-menu-list .sub-menu li.menu-item-has-children > a::after,
	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list li.menu-item-has-children > a::after,
	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list .sub-menu li.menu-item-has-children > a::after {
		content: none !important;
		display: none !important;
	}

	.ace-mobile-drawer__panel .shwc-menu-list li.menu-item-has-children::after,
	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list li.menu-item-has-children::after {
		content: '\25BC' !important;
		font-family: Arial, Helvetica, sans-serif !important;
		font-weight: 700 !important;
		font-size: 8px !important;
		line-height: 1 !important;
		color: #151515 !important;
		position: absolute !important;
		top: 12px !important;
		transform: none !important;
		order: initial !important;
		background: none !important;
		clip-path: none !important;
		border: 0 !important;
	}

	/* EN: caret right | AR: caret left */
	.ace-mobile-drawer__panel .shwc-menu-list li.menu-item-has-children::after {
		right: 0 !important;
		left: auto !important;
	}

	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list li.menu-item-has-children::after {
		right: auto !important;
		left: 0 !important;
	}

	.ace-mobile-drawer__panel .shwc-menu-list li.menu-item-has-children.is-open::after,
	html[dir="rtl"] .ace-mobile-drawer__panel .shwc-menu-list li.menu-item-has-children.is-open::after {
		content: '\25B2' !important;
	}
}

.ace-lang-switcher > a {
	color: #0c9100;
	box-shadow: inset 0 -2px 0 #0c9100;
}

.ace-lang-switcher .sub-menu a {
	direction: ltr;
	text-align: left;
}

body.has-float-bar .shwc-site-main {
	padding-bottom: 0;
}

/* Keep casino footer clear of the fixed float bar when it is visible. */
body.has-float-bar.ace-float-bar-visible .shwc-site-footer,
body.has-float-bar.ace-float-bar-visible .ace-site-footer {
	padding-bottom: 120px;
}

@media (max-width: 767px) {
	body.has-float-bar.ace-float-bar-visible .shwc-site-footer,
	body.has-float-bar.ace-float-bar-visible .ace-site-footer {
		padding-bottom: 180px;
	}
}

/* Back to top — Mercury #scrolltop (circle-up icon) */
.ace-back-to-top {
	position: fixed;
	z-index: 9999;
	inset-inline-end: 15px;
	bottom: 7px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--ace-back-to-top-color, #b22222);
	cursor: pointer;
	box-shadow: none;
	opacity: 0;
	visibility: hidden;
	transform: none;
	transition: opacity 0.3s ease, visibility 0.3s ease, color 0.2s ease, bottom 0.3s ease;
}

.ace-lang-en .ace-back-to-top {
	--ace-back-to-top-color: #b22222;
}

.ace-lang-ar .ace-back-to-top {
	--ace-back-to-top-color: #33a659;
}

.ace-back-to-top__icon {
	display: block;
	width: 42px;
	height: 42px;
}

.ace-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	bottom: 21px;
}

.ace-back-to-top:hover,
.ace-back-to-top:focus-visible {
	background: transparent;
	color: #57606f;
}

body.has-float-bar.ace-float-bar-visible .ace-back-to-top.is-visible {
	bottom: 110px;
}

@media (max-width: 767px) {
	.ace-back-to-top {
		inset-inline-end: 15px;
		bottom: 7px;
		width: 42px;
		height: 42px;
	}

	.ace-back-to-top__icon {
		width: 42px;
		height: 42px;
	}

	body.has-float-bar.ace-float-bar-visible .ace-back-to-top.is-visible {
		bottom: 100px;
	}

	.ace-float-bar__play {
		min-width: 100px;
		min-height: 50px;
		padding: 15px 10px;
		font-size: 1em;
		line-height: 20px;
		width: 100%;
	}

	.ace-float-bar__title {
		font-size: 1.333em;
	}

	.ace-float-bar__logo {
		width: 64px;
		height: 64px;
		max-width: 64px;
		max-height: 64px;
	}

	.ace-float-bar__logo-wrap {
		flex-basis: 80px;
		max-width: 80px;
	}
}

