/*
Theme Name: Waziftac UI
*/

:root {
	--waz-navy: #0a2f66;
	--waz-navy-deep: #08244f;
	--waz-blue: #1e73be;
	--waz-gold: #d8a320;
	--waz-bg: #f4f7fb;
	--waz-card: #ffffff;
	--waz-text: #17253a;
	--waz-muted: #66758f;
	--waz-border: #dce5f0;
	--waz-shadow: 0 14px 34px rgba(11, 32, 67, 0.08);
	--waz-radius: 20px;
	--waz-radius-sm: 12px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--waz-bg);
	color: var(--waz-text);
	font-family: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

body.rtl {
	direction: rtl;
}

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

a {
	text-decoration: none;
}

.site,
#page {
	background: var(--waz-bg);
}

#masthead,
.site-header,
.cm-header,
#header-text-nav-container,
.header-text-nav-container,
.header-image,
.header-wrapper,
.footer-widgets-wrapper,
.footer-socket-wrapper,
.cm-footer-bar,
.tg-site-header,
.cm-breadcrumb,
.breadcrumb,
.main-navigation,
#site-navigation,
.cm-primary-nav,
.header-search-wrap,
.search-wrap,
.cm-top-search {
	display: none !important;
}

.cm-container,
.tg-container,
.container {
	max-width: 100%;
}

.waz-shell,
.waz-homepage__inner,
.waz-footer__inner {
	width: min(1180px, calc(100% - 32px));
	margin-inline: auto;
}

.waz-topbar {
	background: linear-gradient(90deg, var(--waz-navy-deep), var(--waz-navy));
	color: #fff;
}

.waz-topbar__inner {
	min-height: 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0;
}

.waz-topbar__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
}

.waz-topbar__toggle svg {
	width: 22px;
	height: 22px;
}

.waz-topbar__links,
.waz-topbar__social {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.waz-topbar__links {
	gap: 10px;
}

.waz-topbar__links a {
	color: rgba(255, 255, 255, 0.94);
	font-size: 14px;
	font-weight: 500;
	position: relative;
}

.waz-topbar__links a:not(:last-child)::after {
	content: "|";
	margin-inline-start: 10px;
	color: rgba(255, 255, 255, 0.4);
}

.waz-topbar__social {
	gap: 10px;
}

.waz-topbar__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: #fff;
	line-height: 0;
}

.waz-topbar__social svg {
	width: 18px;
	height: 18px;
	overflow: visible;
}

.waz-header {
	background: #fff;
	border-bottom: 1px solid #edf2f8;
}

.waz-header__inner {
	width: min(1180px, calc(100% - 32px));
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
}

.waz-header__brand {
	display: flex;
	align-items: center;
	gap: 16px;
}

.waz-privacy-page .waz-header__inner {
	justify-content: flex-end;
}

.waz-header__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	flex: 0 0 auto;
}

.waz-header__copy {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.waz-header__title {
	margin: 0;
	font-size: clamp(26px, 3vw, 40px);
	font-weight: 900;
	line-height: 1;
}

.waz-header__title a {
	color: var(--waz-blue);
}

.waz-header__tagline {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #51627d;
}

.waz-header__actions {
	display: flex;
	align-items: center;
}

.waz-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--waz-border);
	border-radius: 16px;
	background: #fff;
	color: var(--waz-navy);
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(11, 32, 67, 0.04);
}

.waz-search-toggle svg {
	width: 24px;
	height: 24px;
}

.waz-search-panel {
	border-top: 1px solid #edf2f8;
	background: #fff;
}

.waz-search-panel[hidden] {
	display: none !important;
}

.waz-search-panel.is-open {
	display: block !important;
}

.waz-search-panel__inner {
	width: min(1180px, calc(100% - 32px));
	margin-inline: auto;
	padding: 14px 0 18px;
}

.waz-search-form {
	display: flex;
	gap: 10px;
	padding: 14px;
	background: #f7faff;
	border: 1px solid var(--waz-border);
	border-radius: 18px;
	box-shadow: 0 10px 22px rgba(11, 32, 67, 0.05);
}

.waz-search-form input[type="search"] {
	flex: 1;
	height: 52px;
	border: 1px solid #cfdced;
	border-radius: 14px;
	padding: 0 16px;
	font-size: 15px;
	background: #fff;
}

.waz-search-form button {
	height: 52px;
	min-width: 110px;
	padding: 0 18px;
	border: 0;
	border-radius: 14px;
	background: var(--waz-navy);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.waz-mainnav {
	background: #fff;
	border-bottom: 1px solid #e7eef7;
}

.waz-mainnav__inner {
	width: min(1180px, calc(100% - 32px));
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
	overflow-x: visible;
	scrollbar-width: none;
	padding: 0 0 2px;
}

.waz-mainnav__inner::-webkit-scrollbar {
	display: none;
}

.waz-mainnav__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 16px;
	color: var(--waz-text);
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
}

.waz-mainnav__icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
	color: var(--waz-blue);
}

.waz-mainnav__icon svg {
	width: 18px;
	height: 18px;
}

.waz-mainnav__link.is-active,
.waz-mainnav__link:hover {
	color: var(--waz-blue);
	border-bottom-color: var(--waz-gold);
}

.waz-homepage {
	padding: 22px 0 0;
}

.waz-homepage__ad-section {
	margin-bottom: 24px;
}

.waz-home-ad {
	display: flex;
	justify-content: center;
}

.waz-home-ad img,
.waz-home-ad__placeholder {
	width: min(728px, 100%);
	min-height: 90px;
	border: 1px dashed #cfd8e5;
	border-radius: 16px;
	background: #fff;
}

.waz-home-ad img {
	object-fit: cover;
}

.waz-home-ad__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #7b8798;
	font-size: 20px;
	font-weight: 700;
}

.waz-home-ad__placeholder small {
	font-size: 13px;
	font-weight: 500;
}

.waz-categories,
.waz-home-section {
	margin-bottom: 28px;
}

.waz-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.waz-section-head h2 {
	margin: 0;
	color: var(--waz-navy);
	font-size: 34px;
	font-weight: 900;
	line-height: 1.1;
	position: relative;
	padding-right: 18px;
}

.waz-section-head h2::before {
	content: "";
	position: absolute;
	right: 0;
	top: 4px;
	width: 5px;
	height: calc(100% - 8px);
	border-radius: 999px;
	background: var(--waz-gold);
}

.waz-section-head--inline a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 16px;
	border: 1px solid var(--waz-blue);
	border-radius: 999px;
	color: var(--waz-blue);
	font-weight: 700;
}

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

.waz-categories__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 130px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--waz-border);
	border-radius: 18px;
	box-shadow: var(--waz-shadow);
	color: var(--waz-navy);
	text-align: center;
}

.waz-categories__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 16px;
	background: #eff5ff;
	font-size: 28px;
}

.waz-categories__label {
	font-size: 20px;
	font-weight: 800;
}

.waz-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.waz-post-card {
	display: flex;
	flex-direction: column;
	background: var(--waz-card);
	border: 1px solid var(--waz-border);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--waz-shadow);
}

.waz-post-card__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #e9f0f9, #dbe5f3);
}

.waz-post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.waz-post-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 22px;
	font-weight: 800;
	color: var(--waz-navy);
}

.waz-post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px;
}

.waz-post-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
	font-size: 13px;
	color: var(--waz-muted);
}

.waz-post-card__meta a {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: #edf4ff;
	color: var(--waz-blue);
	font-weight: 700;
}

.waz-post-card__title {
	margin: 0 0 10px;
	font-size: 27px;
	font-weight: 900;
	line-height: 1.35;
}

.waz-post-card__title a {
	color: var(--waz-text);
}

.waz-post-card__excerpt {
	margin: 0 0 18px;
	color: var(--waz-muted);
	font-size: 16px;
	line-height: 1.85;
	flex: 1;
}

.waz-post-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 12px;
	background: var(--waz-navy);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
}

.waz-empty-state {
	margin: 0;
	padding: 18px;
	background: #fff9df;
	border: 1px solid #ecd58a;
	border-radius: 16px;
	color: #6f5712;
}

.waz-footer {
	margin-top: 36px;
	padding: 38px 0;
	background: linear-gradient(180deg, #0a2f66 0%, #071c3d 100%);
	color: rgba(255, 255, 255, 0.92);
}

.waz-footer__inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
}

.waz-footer__about,
.waz-footer__column {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 22px;
	padding: 22px;
}

.waz-footer__brand {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 16px;
}

.waz-footer__brand img {
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.waz-footer__brand h3,
.waz-footer__column h3 {
	margin: 0 0 12px;
	font-size: 23px;
	font-weight: 900;
	color: #fff;
}

.waz-footer__eyebrow {
	display: inline-flex;
	margin-bottom: 8px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff2bf;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.waz-footer__brand p,
.waz-footer__column li,
.waz-footer__column a {
	font-size: 15px;
	line-height: 1.9;
}

.waz-footer__app-text {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.9;
	color: rgba(255, 255, 255, 0.84);
}

.waz-footer__column ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.waz-footer__column li + li {
	margin-top: 8px;
}

.waz-footer__column a {
	color: rgba(255, 255, 255, 0.88);
}

.waz-footer__column a:hover {
	color: #fff2bf;
}

.waz-footer__store {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 4px;
	margin-top: 18px;
	width: min(100%, 320px);
	min-height: 72px;
	padding: 16px 18px;
	border-radius: 18px;
	background: linear-gradient(135deg, #111827, #1f2937);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

.waz-footer__store strong {
	font-size: 24px;
	line-height: 1.1;
}

.waz-footer__store small {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.8);
}

.waz-adsense-square {
	width: min(100%, 336px);
	margin-inline: auto;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--waz-border);
	border-radius: 18px;
	box-shadow: var(--waz-shadow);
}

.waz-inline-article-ad {
	min-height: 280px;
}

.waziftac-single-page,
.waziftac-archive-page {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding-top: 28px;
}

.waz-single-card,
.waz-404-card {
	background: #fff;
	border: 1px solid var(--waz-border);
	border-radius: 20px;
	box-shadow: var(--waz-shadow);
	padding: 24px;
}

.waz-single-meta,
.waz-single-topbox-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.waz-job-category {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	background: #edf4ff;
	color: var(--waz-blue);
	font-weight: 700;
}

.waz-single-title {
	margin: 18px 0;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.4;
	color: var(--waz-navy);
}

.waz-single-topbox {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px;
	margin-bottom: 18px;
	background: #f8fbff;
	border: 1px solid var(--waz-border);
	border-radius: 16px;
}

.waz-single-share-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.waz-single-share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 12px;
	background: #25d366;
	color: #fff;
	font-weight: 700;
}

.waz-single-share--fb {
	background: #1877f2;
}

.waz-single-thumb {
	margin-bottom: 22px;
	border-radius: 18px;
	overflow: hidden;
}

.waz-single-thumb img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}

.waz-single-content {
	font-size: 17px;
	line-height: 2;
}

.waz-single-inline-ad {
	margin-top: 24px;
}

.waz-single-inline-ad--top {
	margin-top: 0;
	margin-bottom: 24px;
}

.waz-job-alert {
	margin-top: 24px;
	padding: 18px;
	background: #fff9df;
	border: 1px solid #ecd58a;
	border-radius: 16px;
	line-height: 1.9;
	color: #6f5712;
}

.waz-archive-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	background: #edf4ff;
	color: var(--waz-blue);
	font-weight: 700;
}

.waz-archive-desc {
	margin: -4px 0 18px;
	color: var(--waz-muted);
	font-size: 16px;
	line-height: 1.85;
}

.pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--waz-border);
	border-radius: 12px;
	background: #fff;
	color: var(--waz-text);
	font-weight: 700;
}

.page-numbers.current {
	background: var(--waz-navy);
	border-color: var(--waz-navy);
	color: #fff;
}

.waz-fab-group {
	position: fixed;
	left: 14px;
	bottom: 18px;
	z-index: 9998;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.waz-fab-wrap {
	position: relative;
}

.waz-fab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 12px 24px rgba(11, 32, 67, 0.22);
	background: #fff;
	text-decoration: none;
	cursor: pointer;
}

.waz-fab svg {
	width: 23px;
	height: 23px;
	display: block;
}

.waz-fab--totop {
	background: var(--waz-navy);
	color: #fff;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.waz-fab--totop.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.waz-fab--facebook {
	background: #1877f2;
	color: #fff;
}

.waz-fab--whatsapp {
	background: #25d366;
	color: #fff;
}

.waz-fab--play {
	background: #fff;
}

@media (max-width: 1100px) {
	.waz-categories__grid,
	.waz-post-grid,
	.waz-footer__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.waz-topbar__inner,
	.waz-header__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.waz-topbar__social {
		justify-content: flex-start;
	}

	.waz-header__brand {
		justify-content: center;
	}

	.waz-header__actions {
		justify-content: center;
	}
}

@media (max-width: 640px) {
	.waz-shell,
	.waz-homepage__inner,
	.waz-footer__inner,
	.waz-header__inner,
	.waz-search-panel__inner,
	.waz-mainnav__inner,
	.waziftac-single-page,
	.waziftac-archive-page {
		width: min(100% - 18px, 1180px);
	}

	.waz-topbar {
		position: relative;
	}

	.waz-topbar__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 6px 0;
	}

	.waz-topbar__toggle {
		display: inline-flex;
		width: 40px;
		height: 40px;
	}

	.waz-topbar__links {
		display: none;
		position: absolute;
		top: calc(100% + 8px);
		right: 12px;
		left: 12px;
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 12px;
		background: var(--waz-navy-deep);
		border: 1px solid rgba(255, 255, 255, 0.12);
		border-radius: 14px;
		box-shadow: 0 18px 30px rgba(5, 18, 39, 0.28);
		z-index: 20;
	}

	.waz-topbar__links.is-open {
		display: grid;
	}

	.waz-topbar__links a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 38px;
		padding: 6px 10px;
		background: rgba(255, 255, 255, 0.08);
		border-radius: 10px;
		font-size: 13px;
	}

	.waz-topbar__links a::after {
		display: none;
	}

	.waz-topbar__social {
		justify-content: center;
	}

	.waz-header__inner {
		padding: 14px 0;
	}

	.waz-header__brand {
		flex-direction: column;
		text-align: center;
	}

	.waz-header__logo {
		width: 74px;
		height: 74px;
	}

	.waz-header__title {
		font-size: 28px;
	}

	.waz-header__tagline {
		font-size: 14px;
	}

	.waz-mainnav__link {
		padding: 14px 16px;
		font-size: 15px;
	}

	.waz-mainnav__inner {
		justify-content: flex-start;
		gap: 0;
		flex-wrap: nowrap;
		overflow-x: auto;
	}

	.waz-home-ad img,
	.waz-home-ad__placeholder {
		width: min(320px, 100%);
		min-height: 100px;
	}

	.waz-home-ad__placeholder {
		font-size: 18px;
	}

	.waz-categories__grid,
	.waz-post-grid,
	.waz-footer__inner {
		grid-template-columns: 1fr;
	}

	.waz-footer__store {
		width: 100%;
	}

	.waz-categories__card {
		min-height: 112px;
	}

	.waz-section-head h2 {
		font-size: 26px;
	}

	.waz-section-head--inline {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.waz-post-card__title {
		font-size: 22px;
	}

	.waz-single-card {
		padding: 16px;
	}

	.waz-single-topbox {
		flex-direction: column;
		align-items: stretch;
	}

	.waz-fab {
		width: 46px;
		height: 46px;
	}

	.waz-fab svg {
		width: 21px;
		height: 21px;
	}
}
