/* ==========================================================
   ALFARiD UX fixes - same look, better readability,
   mobile behaviour and conversion. Loaded after style.css.
   ========================================================== */

/* Readability: darker body text (was #7a7a7a) */
p,
.feature-description,
.service-description {
	color: #555;
	line-height: 1.7;
}

/* Keyboard focus is visible again */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid #e74c3c !important;
	outline-offset: 2px;
}

/* Shorter reveal animations, none for users who ask for less motion */
.wow { -webkit-animation-duration: .6s !important; animation-duration: .6s !important; }
@media (prefers-reduced-motion: reduce) {
	.wow { visibility: visible !important; -webkit-animation: none !important; animation: none !important; }
}

/* Hero: H1 keeps the old H2 look, video always fills the section */
#hero h1.home-heading { margin-top: 0; }
#hero #vossen-youtube {
	top: 0;
	left: 0 !important;
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-transform: none;
	transform: none;
}
/* The videos have no sound now, and these buttons only worked with the old YouTube player */
#mute-toggle,
#play-toggle { display: none !important; }

/* Header call to action */
.navbar-nav > li.nav-cta > a {
	background: #e74c3c;
	color: #fff !important;
	border-radius: 3px;
	margin: 8px 6px 0;
	padding: 8px 14px !important;
}
.navbar-nav > li.nav-cta > a:hover { background: #c9302c; }

/* About video */
.video-container video {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: #000;
}

/* Contact links */
#contact address a,
.contact-details a { color: #e74c3c; }
address div strong { width: 70px; }

/* Newsletter popup title (was an H1) */
.popup-news h2.popup-title {
	font-size: 20px;
	color: #fff;
	margin-top: 20px;
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
	/* Solid header on the home page so the logo never sits on top of the content */
	header .navbar-default,
	header .navbar-alt,
	header .navbar-small {
		background: rgba(28, 28, 28, .96);
		box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
	}
	header .navbar-small .navbar-nav > li > a { color: #fff; }
	header .navbar-default .navbar-brand .logo-big,
	header .navbar-default .navbar-brand .logo-small {
		width: 42px;
		margin-top: -7px;
	}
	header .navbar-small .navbar-brand .logo-big { opacity: 1; }
	header .navbar-small .navbar-brand .logo-small { opacity: 0; }
	header .navbar-default .navbar-toggle { margin-top: 10px; margin-bottom: 10px; }

	/* Ghost icons behind the service icons add noise on small screens */
	.back-icon { display: none; }

	.navbar-nav > li.nav-cta > a { display: inline-block; margin: 8px 0; }
}

@media (max-width: 600px) {
	/* Services line under the hero title was hidden and the button text was 6px */
	#hero h5 {
		display: block;
		font-size: 11px;
		line-height: 1.8;
		padding: 0 10px;
	}
	#hero .btn { font-size: 12px; }
	.home-heading { font-size: 22px; }

	/* Leave room so the WhatsApp button never covers the copyright */
	#footer .footer-copyright { padding-bottom: 80px; }
}

/* ---------- Global home page ---------- */

/* Hero: small brand line above the H1, two actions */
.hero-eyebrow {
	color: #e74c3c;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 3px;
	margin-bottom: 14px;
}
.hero-actions .btn { margin: 6px 6px 0; }
.btn-ghost {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, .85);
	color: #fff;
}
.btn-ghost:hover,
.btn-ghost:focus {
	background: #fff;
	color: #1c1c1c;
}

/* Highlights strip under the hero */
.highlights {
	background: #1c1c1c;
	padding: 34px 0;
}
.highlights-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 20px;
}
.highlights-list li {
	flex: 1 1 180px;
	text-align: center;
	border-left: 1px solid rgba(255, 255, 255, .12);
}
.highlights-list li:first-child { border-left: 0; }
.highlights-list strong {
	display: block;
	color: #e74c3c;
	font-size: 28px;
	line-height: 1.2;
}
.highlights-list span {
	color: #bdbdbd;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

/* Contact intro line */
.contact-intro {
	margin: -10px 0 30px;
	font-size: 16px;
}

/* Footer site map */
.footer-sitemap {
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding-top: 35px;
	padding-bottom: 15px;
}
.footer-sitemap ul {
	list-style: none;
	padding: 0;
	margin: 0 0 25px;
}
.footer-sitemap li { margin-bottom: 9px; }
.footer-sitemap a {
	color: #a0a0a0;
	font-size: 13px;
}
.footer-sitemap a:hover,
.footer-sitemap a:focus { color: #e74c3c; }

@media (max-width: 600px) {
	.hero-eyebrow { font-size: 11px; letter-spacing: 2px; margin-bottom: 8px; }
	.highlights { padding: 24px 0; }
	.highlights-list li { flex-basis: 40%; border-left: 0; }
	.highlights-list strong { font-size: 22px; }
}
@media (max-width: 767px) {
	.footer-sitemap .col-xs-6:nth-child(odd) { clear: left; }
	.footer-sitemap h4 { font-size: 14px; }
}

/* Services carousel: cards were a fixed 30rem tall and cut off longer descriptions.
   Now they grow with the text, every card in a row has the same height,
   and the layout is tighter: spacing between cards, light border, smaller icon. */
#service-slider .owl-wrapper { display: flex !important; }
#service-slider .owl-item {
	float: none;
	display: flex;
	padding: 6px 10px 14px;
}
#service-slider .service {
	width: 100%;
	height: auto;
	min-height: 0;
	margin-top: 0;
	padding: 36px 26px 30px;
	background: #fff;
	border: 1px solid #eee;
	border-top: 3px solid #e74c3c;
	border-radius: 4px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
	transition: transform .25s ease, box-shadow .25s ease;
}
#service-slider .service:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 26px rgba(0, 0, 0, .09);
}
#service-slider .service img {
	width: 88px;
	height: auto;
	margin: 0 auto;
	display: block;
}
#service-slider .service-info { margin-top: 22px; }
#service-slider .service-info h4 {
	font-size: 17px;
	margin: 0 0 12px;
}
#service-slider .service-info h4:after {
	content: "";
	display: block;
	width: 36px;
	height: 2px;
	margin: 12px auto 0;
	background: #e74c3c;
}
#service-slider .service-description {
	font-size: 14px;
	line-height: 1.65;
	margin: 0;
}
#service-slider .owl-controls { margin-top: 18px; }

/* ---------- Our Clients ---------- */
#clients {
	padding-top: 95px;
	padding-bottom: 85px;
	/* darker overlay so logos and text read clearly on the photo */
	box-shadow: inset 0 0 0 2000px rgba(12, 12, 12, .72);
}
.section-eyebrow {
	color: #e74c3c;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 3px;
	margin-bottom: 10px;
}
#clients .subheading { color: #cfcfcf; }
#clients .subheading:after { background: #e74c3c; }

/* soft fade at both edges of the logo strip */
#client-slider .owl-wrapper-outer {
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
	padding: 8px 0;
}
#client-slider .owl-item { padding: 0 10px; }
#client-slider a { display: block; }
#client-slider a[href="#"] { pointer-events: none; cursor: default; }

/* equal logo tiles */
#clients #client-slider .logo-light {
	width: 100%;
	height: 130px;
	margin: 0;
	padding: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 6px;
	transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
#clients #client-slider .logo-light img {
	width: auto;
	max-width: 100%;
	max-height: 92px;
	object-fit: contain;
}
#clients #client-slider .logo-light:hover {
	transform: translateY(-4px);
	border-color: #e74c3c;
	background: rgba(255, 255, 255, .08);
}

.clients-cta { margin-top: 40px; }
.clients-cta p {
	color: #cfcfcf;
	font-size: 15px;
	margin: 0;
}
.clients-cta a {
	color: #fff;
	font-weight: 700;
	border-bottom: 2px solid #e74c3c;
	padding-bottom: 2px;
	margin-left: 6px;
	display: inline-block;
	white-space: nowrap;
}
.clients-cta a:hover { color: #e74c3c; }

@media (max-width: 600px) {
	#clients { padding-top: 70px; padding-bottom: 60px; }
	#clients #client-slider .logo-light { height: 90px; padding: 12px; }
	#clients #client-slider .logo-light img { max-height: 66px; }
	#client-slider .owl-item { padding: 0 6px; }
	#client-slider .owl-wrapper-outer {
		-webkit-mask-image: none;
		mask-image: none;
	}
}

/* ---------- Greatest Works ---------- */
/* The grid sat outside .container (edge to edge, 4 + 2 layout).
   Keep it inside the page width so 6 works sit as 3 + 3, with gaps. */
#grid-container-fullwidth {
	max-width: 1140px;
	margin: 0 auto;
	/* no padding here: cubeportfolio measures the width with and without it and ends up with one column too few */
}
@media (max-width: 1170px) {
	#grid-container-fullwidth { margin: 0 15px; }
}
/* cubeportfolio picks the column count from this base size:
   floor(1140 / (270 + 15 gap)) = 4 columns on desktop: the home page shows its 4 projects in one row (17 Nov 2026) */
#grid-container-fullwidth .cbp-item { width: 270px; height: 270px; }
@media (max-width: 991px) {
	/* 2 columns on tablets */
	#grid-container-fullwidth .cbp-item { width: 330px; height: 248px; }
}

/* Filters: thin pills, active one in red */
#filters-container-fullwidth { margin-bottom: 35px; }
#filters-container-fullwidth .cbp-filter-item {
	background: transparent;
	border: 1px solid #ddd;
	border-radius: 30px;
	color: #555;
	font-size: 12px;
	letter-spacing: 1px;
	padding: 8px 18px;
	margin: 4px;
	transition: all .2s ease;
}
#filters-container-fullwidth .cbp-filter-item:hover {
	border-color: #e74c3c;
	color: #e74c3c;
}
#filters-container-fullwidth .cbp-filter-item-active,
#filters-container-fullwidth .cbp-filter-item-active:hover {
	background: #e74c3c;
	border-color: #e74c3c;
	color: #fff;
}

/* Hover overlay: same reveal, cleaner type */
#portfolio .cbp-item .img { border-radius: 4px; overflow: hidden; }
#portfolio .overlay { background: rgba(18, 18, 18, .82); }
#portfolio .expand { line-height: 1.4; }
#portfolio .expand .cbp-l-caption-title {
	display: block;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}
#portfolio .expand .cbp-l-caption-title:after {
	content: "";
	display: block;
	width: 32px;
	height: 2px;
	margin: 10px auto;
	background: #e74c3c;
}
#portfolio .expand .cbp-l-caption-desc {
	display: block;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #cfcfcf;
	margin-bottom: 14px;
}
#portfolio .expand .cbp-l-icon a {
	display: inline-block;
	width: 40px;
	height: 40px;
	line-height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .5);
	color: #fff;
	font-size: 15px;
}
#portfolio .expand .cbp-l-icon a:hover { background: #e74c3c; border-color: #e74c3c; }

.portfolio-cta { margin-top: 45px; }

/* "See more on Behance" next to the portfolio call to action */
.btn-outline-dark {
	background: transparent;
	border: 2px solid #1c1c1c;
	color: #1c1c1c;
	margin-left: 8px;
}
.btn-outline-dark:hover,
.btn-outline-dark:focus {
	background: #1c1c1c;
	color: #fff;
}
.btn-outline-dark .fa { margin-right: 6px; }
@media (max-width: 600px) {
	.portfolio-cta .btn { display: block; margin: 0 auto 12px; max-width: 300px; }
}

/* Selected Work: the whole tile opens the project popup inside the site */
#grid-container-fullwidth .cbp-item-wrapper { position: relative; }
#grid-container-fullwidth .tile-link {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 120;
	cursor: pointer;
}
#portfolio .tile-icon {
	display: inline-block;
	width: 40px;
	height: 40px;
	line-height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .5);
	color: #fff;
	font-size: 15px;
	transition: all .2s ease;
}
#portfolio .cbp-item:hover .tile-icon { background: #e74c3c; border-color: #e74c3c; }

/* Project popup (cubeportfolio singlePage) */
.cbp-popup-singlePage .cbp-popup-content { max-width: 1000px; }
.project-popup { padding: 10px 0 40px; }
.project-head { text-align: center; max-width: 720px; margin: 0 auto 35px; }
.project-title {
	font-size: 32px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0 0 14px;
	color: #1c1c1c;
}
.project-intro { font-size: 16px; color: #555; margin-bottom: 18px; }
.project-tags { list-style: none; padding: 0; margin: 0; }
.project-tags li {
	display: inline-block;
	margin: 4px;
	padding: 6px 14px;
	border: 1px solid #ddd;
	border-radius: 30px;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #555;
}
.project-gallery img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 16px;
	border-radius: 4px;
	background: #f2f2f2;
}
.project-cta {
	text-align: center;
	margin-top: 35px;
	padding-top: 30px;
	border-top: 1px solid #eee;
}
.project-cta p { font-size: 18px; color: #1c1c1c; margin-bottom: 16px; }
@media (max-width: 600px) {
	.project-title { font-size: 24px; }
	.project-intro { font-size: 15px; }
}

/* Popup buttons: their PNG icons are missing on the server (404), so draw them in CSS */
.cbp-popup-close,
.cbp-popup-next,
.cbp-popup-prev {
	background-image: none !important;
	width: 38px !important;
	height: 38px !important;
	border-radius: 50%;
	border: 1px solid #ccc;
	text-align: center;
	cursor: pointer;
	transition: all .2s ease;
}
.cbp-popup-close:before,
.cbp-popup-next:before,
.cbp-popup-prev:before {
	font-family: Arial, sans-serif !important;
	font-size: 22px;
	line-height: 35px;
	color: #1c1c1c;
}
.cbp-popup-close:before { content: "\00d7"; font-size: 26px; }
.cbp-popup-next:before { content: "\203a"; }
.cbp-popup-prev:before { content: "\2039"; }
.cbp-popup-close:hover,
.cbp-popup-next:hover,
.cbp-popup-prev:hover { background-color: #e74c3c; border-color: #e74c3c; }
.cbp-popup-close:hover:before,
.cbp-popup-next:hover:before,
.cbp-popup-prev:hover:before { color: #fff; }
/* image lightbox has a dark background */
.cbp-popup-lightbox .cbp-popup-close,
.cbp-popup-lightbox .cbp-popup-next,
.cbp-popup-lightbox .cbp-popup-prev { border-color: rgba(255, 255, 255, .5); }
.cbp-popup-lightbox .cbp-popup-close:before,
.cbp-popup-lightbox .cbp-popup-next:before,
.cbp-popup-lightbox .cbp-popup-prev:before { color: #fff; }

/* keep the project title clear of the popup's top bar */
.cbp-popup-singlePage .project-popup { padding-top: 40px; }

/* Mobile menu: social icons side by side in one row instead of one per line */
@media (max-width: 991px) {
	.navbar-nav > li.nav-social {
		display: inline-block;
		float: none;
		border-bottom: 0;
	}
	.navbar-nav > li.nav-social > a {
		padding: 16px 14px !important;
		font-size: 16px;
	}
	.navbar-nav > li.nav-social:nth-last-child(5) > a { padding-left: 15px !important; }
	/* open menu sits above the hero arrow and ends with some breathing room */
	header .navbar { z-index: 1000; }
	header .navbar-collapse.in { padding-bottom: 14px; }
}

/* ---------- Why ALFARiD (replaces the plain highlights strip) ---------- */
.highlights {
	background: #1c1c1c;
	padding: 80px 0;
}
.why-intro { padding-right: 30px; }
.why-title {
	color: #fff;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0 0 18px;
}
.why-text {
	color: #bdbdbd;
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 30px;
}
.why-stats {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 40px;
}
.why-stats li { border-left: 2px solid #e74c3c; padding-left: 16px; }
.why-stats strong {
	display: block;
	color: #fff;
	font-size: 44px;
	line-height: 1;
	margin-bottom: 6px;
}
.why-stats span {
	color: #9a9a9a;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.why-stats strong span { font-size: inherit; letter-spacing: 0; color: inherit; text-transform: none; }

.why-steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.why-steps li {
	background: rgba(255, 255, 255, .03);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 6px;
	padding: 26px 24px;
	transition: border-color .25s ease, transform .25s ease;
}
.why-steps li:hover { border-color: #e74c3c; transform: translateY(-3px); }
.why-num {
	display: block;
	color: #e74c3c;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2px;
	margin-bottom: 12px;
}
.why-steps h3 {
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0 0 8px;
}
.why-steps p {
	color: #a9a9a9;
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

@media (max-width: 991px) {
	.why-intro { padding-right: 15px; margin-bottom: 40px; }
}
@media (max-width: 600px) {
	.highlights { padding: 55px 0; }
	.why-title { font-size: 28px; }
	.why-text { font-size: 15px; }
	.why-stats { gap: 28px; }
	.why-stats strong { font-size: 36px; }
	.why-steps { grid-template-columns: 1fr; gap: 12px; }
	.why-steps li { padding: 20px 18px; }
}

/* ---------- Blog ---------- */
.blog-hero { padding: 150px 0 20px; }
.blog-hero .section-title { margin-bottom: 10px; }
.blog-list { padding: 30px 0 70px; }
.blog-home { padding: 90px 0 80px; background: #fafafa; }
.blog-filters { margin-bottom: 35px; }
.blog-filter {
	background: transparent; border: 1px solid #ddd; border-radius: 30px; color: #555;
	font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 8px 18px; margin: 4px;
	transition: all .2s ease;
}
.blog-filter:hover { border-color: #e74c3c; color: #e74c3c; }
.blog-filter.active { background: #e74c3c; border-color: #e74c3c; color: #fff; }

.blog-card-col { margin-bottom: 30px; display: flex; }
.blog-card {
	display: flex; flex-direction: column; width: 100%;
	background: #fff; border: 1px solid #eee; border-radius: 6px; overflow: hidden;
	color: inherit; transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover, .blog-card:focus { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .08); color: inherit; }
.blog-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f2f2f2; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { display: flex; flex-direction: column; padding: 22px 22px 24px; flex: 1; }
.blog-meta { display: block; color: #8a8a8a; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.blog-card-title { display: block; font-size: 19px; font-weight: 700; line-height: 1.35; color: #1c1c1c; margin-bottom: 10px; }
.blog-card-excerpt { display: block; color: #555; font-size: 14px; line-height: 1.65; margin-bottom: 16px; }
.blog-more { margin-top: auto; color: #e74c3c; font-weight: 700; font-size: 13px; letter-spacing: .5px; }

/* Post */
.post-hero { padding: 150px 0 30px; text-align: center; }
.post-back { display: inline-block; color: #8a8a8a; font-size: 13px; margin-bottom: 26px; }
.post-back:hover { color: #e74c3c; }
.post-title { font-size: 40px; font-weight: 700; line-height: 1.2; max-width: 820px; margin: 0 auto 16px; text-transform: none; color: #1c1c1c; }
.post-cover { display: block; width: 100%; max-width: 1000px; margin: 10px auto 40px; border-radius: 8px; }
.post-body { max-width: 720px; margin: 0 auto 50px; }
.post-body p, .post-body li { font-size: 17px; line-height: 1.8; color: #333; }
.post-body .post-lead { font-size: 20px; line-height: 1.7; color: #1c1c1c; margin-bottom: 30px; }
.post-body h2 { font-size: 24px; font-weight: 700; margin: 38px 0 12px; color: #1c1c1c; text-transform: none; letter-spacing: 0; }
.post-body ul { padding-left: 20px; margin-bottom: 20px; }
.post-body a { color: #e74c3c; border-bottom: 1px solid rgba(231, 76, 60, .4); }
.post-share { display: flex; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #eee; }
.post-share span { color: #8a8a8a; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin-right: 6px; }
.post-share a {
	width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ddd; color: #1c1c1c !important;
	display: inline-flex; align-items: center; justify-content: center; border-bottom: 1px solid #ddd;
}
.post-share a:hover { background: #e74c3c; border-color: #e74c3c; color: #fff !important; }
.post-cta { background: #1c1c1c; padding: 60px 0; }
.post-cta h2 { color: #fff; font-size: 30px; font-weight: 700; text-transform: uppercase; margin: 0 0 10px; }
.post-cta p { color: #bdbdbd; font-size: 16px; margin-bottom: 24px; }
.blog-related { padding-top: 70px; }
.blog-related .section-title { margin-bottom: 40px; }

@media (max-width: 767px) {
	.blog-hero, .post-hero { padding-top: 110px; }
	.post-title { font-size: 28px; }
	.post-body p, .post-body li { font-size: 16px; }
	.post-body .post-lead { font-size: 18px; }
	.blog-card-col { display: block; }
}

/* ---------- Blog: language switch + Arabic (RTL) ---------- */
.lang-switch {
	display: inline-flex; align-items: center; gap: 6px;
	border: 1px solid #ddd; border-radius: 30px; padding: 6px 14px; margin-bottom: 18px;
	font-size: 13px; color: #555;
}
.lang-switch:hover { border-color: #e74c3c; color: #e74c3c; }
.post-top { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.post-top .post-back, .post-top .lang-switch { margin-bottom: 0; }
.blog-home-actions .btn { margin: 4px 6px; }

.blog-rtl { text-align: right; }
.blog-rtl .text-center, .blog-rtl .post-hero, .blog-rtl .blog-hero { text-align: center; }
/* Arabic letters: no letter-spacing, no uppercase, a little more line height */
.blog-rtl .section-eyebrow,
.blog-rtl .blog-meta,
.blog-rtl .blog-filter,
.blog-rtl .post-share span,
.blog-rtl .section-title,
.blog-rtl .post-cta h2 { letter-spacing: 0; text-transform: none; }
.blog-rtl .section-eyebrow { font-size: 14px; }
.blog-rtl .blog-filter { font-size: 14px; }
.blog-rtl .blog-card-title { font-size: 20px; line-height: 1.5; }
.blog-rtl .blog-card-excerpt { font-size: 15px; line-height: 1.8; }
.blog-rtl .post-title { line-height: 1.4; }
.blog-rtl .post-body p, .blog-rtl .post-body li { font-size: 18px; line-height: 2; }
.blog-rtl .post-body .post-lead { font-size: 21px; line-height: 1.9; }
.blog-rtl .post-body h2 { font-size: 25px; }
.blog-rtl .post-body ul { padding-left: 0; padding-right: 22px; }
.blog-rtl .post-share span { margin-right: 0; margin-left: 6px; }
@media (max-width: 767px) {
	.blog-rtl .post-body p, .blog-rtl .post-body li { font-size: 17px; }
}
/* Bootstrap 3 floats columns left; in Arabic the first article should be on the right */
@media (min-width: 768px) {
	.blog-rtl .row > [class*="col-"] { float: right; }
}

/* One blog, two languages: segmented toggle */
.lang-toggle {
	display: inline-flex; padding: 4px; margin-bottom: 22px;
	border: 1px solid #e5e5e5; border-radius: 30px; background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}
.lang-toggle a {
	padding: 7px 18px; border-radius: 30px; font-size: 14px; color: #555;
	transition: background .2s ease, color .2s ease; border: 0 !important;
}
.lang-toggle a[lang="ar"] { font-family: 'Almarai', sans-serif !important; font-size: 15px; }
.lang-toggle a:hover { color: #e74c3c; }
.lang-toggle a.active { background: #e74c3c; color: #fff; }
.post-top .lang-toggle { margin-bottom: 0; }

/* ---------- Testimonials & Team (hidden until real content is added) ---------- */
.testimonials-alf { padding: 90px 0; background: #fafafa; }
.testi-card { position: relative; height: 100%; margin: 0 0 30px; padding: 32px 28px 26px; background: #fff; border: 1px solid #eee; border-top: 3px solid #e74c3c; border-radius: 6px; }
.testi-mark { color: #e74c3c; font-size: 26px; opacity: .8; }
.testi-card blockquote { border: 0; margin: 14px 0 22px; padding: 0; font-size: 16px; line-height: 1.75; color: #333; }
.testi-card figcaption { display: flex; align-items: center; gap: 12px; }
.testi-card figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #f2f2f2; }
.testi-card figcaption b { display: block; color: #1c1c1c; }
.testi-card figcaption small { color: #8a8a8a; }
.team-alf { padding: 90px 0; }
.team-card { margin: 0 0 30px; text-align: center; }
.team-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; filter: grayscale(.2); transition: transform .3s ease; }
.team-card:hover img { transform: translateY(-4px); }
.team-card figcaption { margin-top: 14px; }
.team-card b { display: block; color: #1c1c1c; font-size: 17px; }
.team-card small { color: #e74c3c; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }

/* ---------- Smooth motion ---------- */
/* Our Clients: the dark layer was a 2000px inset box-shadow (expensive to repaint on scroll); use a gradient layer instead */
#clients {
	box-shadow: none;
	background-image: linear-gradient(rgba(12, 12, 12, .72), rgba(12, 12, 12, .72)), url(../img/bg-3.jpg);
}
/* Fixed backgrounds stutter on phones and tablets (and iOS ignores them): scroll normally there */
@media (hover: none), (max-width: 991px) {
	.parallax-section-1, .parallax-section-2, .parallax-section-3, .parallax-section-4,
	.parallax-section-5, .parallax-section-6, .parallax-section-7, .parallax-section-8 { background-attachment: scroll; }
}
/* Back-to-top: CSS transition (was a jQuery animation on every scroll event) */
#back-to-top {
	bottom: 16px !important;
	transform: translateY(80px);
	opacity: 0;
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
	will-change: transform;
}
#back-to-top.is-visible { transform: none; opacity: 1; }
/* One easing for all hover motion: quick and soft */
.blog-card, .testi-card, .team-card img, #service-slider .service, #clients #client-slider .logo-light,
.why-steps li, .lang-toggle a, .blog-filter, #filters-container-fullwidth .cbp-filter-item, .post-share a {
	transition-duration: .22s;
	transition-timing-function: cubic-bezier(.2, .8, .2, 1);
}
#filters-container-fullwidth .cbp-filter-item, .blog-filter, .post-share a { transition-property: background-color, border-color, color; }
.wow { -webkit-animation-duration: .5s !important; animation-duration: .5s !important; -webkit-animation-timing-function: cubic-bezier(.2, .8, .2, 1) !important; animation-timing-function: cubic-bezier(.2, .8, .2, 1) !important; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	#back-to-top { transition: none; }
}
/* Team card without a photo yet: the first letter of the name in a square of the same size (17 Nov 2026) */
.team-card .team-initials { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; border-radius: 6px; background: #1c1c1c; color: #e74c3c; font-size: 64px; font-weight: 700; }

/* ---------- 30 Nov 2026 (owner): newsletter popup, new look (dark card like the cookie bar). Overrides the old red box in style.css,
   including the inline styles custome.js puts on it (red border on an empty box, white box after subscribing). ---------- */
#delayedPopup.delayedPopupWindow {
	top: 50% !important; left: 50% !important; transform: translate(-50%, -50%);
	width: calc(100% - 32px) !important; max-width: 400px !important; height: auto !important; max-height: calc(100vh - 32px); overflow-y: auto;
	margin: 0 !important; padding: 26px 24px 20px !important;
	background: #161616 !important; border: 1px solid #2c2c2c !important; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
	font-family: inherit; text-align: left;
}
#delayedPopup #btnClose {
	position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center;
	border: 1px solid #333; border-radius: 50%; color: #bbb !important; font-size: 14px; line-height: 1; text-align: center;
}
#delayedPopup #btnClose:hover { color: #fff !important; border-color: #e74c3c; }
#delayedPopup .popup-eb { color: #e74c3c; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
#delayedPopup .popup-news h2.popup-title { margin: 8px 40px 6px 0; font-size: 22px; line-height: 1.25; color: #fff; text-transform: none; letter-spacing: 0; }
#delayedPopup .popup-news h2.popup-title span { color: #e74c3c; }
#delayedPopup .popup-news p { margin: 0 0 18px; color: #a9a9a9; font-size: 13.5px; line-height: 1.5; }
#delayedPopup .popup-news label { display: block; margin: 0 0 5px; color: #8d8d8d; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
#delayedPopup .popup-news input {
	display: block; width: 100%; margin: 0 0 12px; padding: 11px 13px; height: auto;
	background: #0f0f0f; border: 1px solid #2e2e2e !important; border-radius: 10px; color: #eee; font-size: 14px; text-transform: none; letter-spacing: 0;
}
#delayedPopup .popup-news input::placeholder { color: #666; text-transform: none; }
#delayedPopup .popup-news input:focus { outline: none; border-color: #e74c3c !important; }
#delayedPopup .popup-news input[style*="darkred"] { border-color: #e74c3c !important; }   /* empty box: custome.js marks it */
#delayedPopup .popup-news button {
	width: 100%; margin: 4px 0 0; padding: 12px; border: 0; border-radius: 30px; background: #e74c3c; color: #fff;
	font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: none;
}
#delayedPopup .popup-news button:hover { background: #c0392b; }
#delayedPopup .popup-small { display: block; margin-top: 10px; text-align: center; color: #777; font-size: 11.5px; }
#delayedPopup .contactalert { margin: 24px 40px 4px 0; padding: 0; background: none !important; color: #fff !important; font-size: 16px; font-weight: 600; }
#delayedPopup #error2 .contactalert { color: #e74c3c !important; }
