/* Timeline */
section.timeline {
	width: 100%;
	margin: 50px 0 0;
	position: relative;
	float: left;
	padding-bottom: 120px;
}

section.timeline:before {
	background: #505050;
	background: linear-gradient(to bottom, rgba(80, 80, 80, 0) 0%, #505050 8%, #505050 92%, rgba(80, 80, 80, 0) 100%);
	content: "";
	display: block;
	height: 100%;
	left: 50%;
	margin-left: -2px;
	position: absolute;
	top: -60px;
	width: 3px;
	z-index: 0;
	filter: alpha(opacity=35);
	opacity: 0.35;
}

section.timeline .timeline-body {
	position: relative;
	z-index: 1 !important;
}

section.timeline .timeline-date {
	box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.04);
	position: relative;
	display: block;
	clear: both;
	width: 200px;
	height: 45px;
	padding: 5px;
	border: 1px solid #E5E5E5;
	margin: 0 auto 10px;
	text-shadow: 0 1px 1px #fff;
	border-radius: 4px;
	background: #FFF;
	z-index: 1;
}

section.timeline .timeline-date h3 {
	display: block;
	text-align: center;
	color: #757575;
	font-size: 0.9em;
	line-height: 32px;
}

section.timeline .timeline-title {
	background: #f7f7f7;
	padding: 12px;
}

section.timeline .timeline-title h4 {
	padding: 0;
	margin: 0;
	color: #151719;
	font-size: 1.4em;
}

section.timeline .timeline-title a {
	color: #151719;
}

section.timeline .timeline-title .timeline-title-tags {
	color: #B1B1B1;
	font-size: 0.9em;
}

section.timeline .timeline-title .timeline-title-tags a {
	color: #B1B1B1;
	font-size: 0.9em;
}

section.timeline .timeline-box {
	box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.04);
	border: 1px solid #E5E5E5;
	border-radius: 4px;
	margin: 20px 10px 10px 10px;
	padding: 10px;
	width: 45.7%;
	float: left;
	z-index: 1;
	margin-bottom: 30px;
	background: #FFF;
}

section.timeline .timeline-box.left {
	clear: both;
}

section.timeline .timeline-box.left:before {
	background: none repeat scroll 0 0 #E5E5E5;
	border-radius: 50%;
	box-shadow: 0 0 0 3px #FFF, 0 0 0 6px #E5E5E5;
	content: "";
	display: block;
	height: 7px;
	margin-right: -5px;
	position: absolute;
	left: 50%;
	margin-top: 22px;
	width: 8px;
	transform: translate3d(-50%, 0, 0);
	z-index: 1;
}

section.timeline .timeline-box.left .timeline-box-arrow {
	transform: rotate(45deg);
	content: '';
	display: block;
	background: #FFF;
	border-right: 1px solid #E5E5E5;
	border-top: 1px solid #E5E5E5;
	float: right;
	height: 14px;
	margin-top: 17px;
	margin-right: -18px;
	width: 14px;
	z-index: 0;
}

section.timeline .timeline-box.right {
	clear: right;
	float: right;
	right: -1px;
	margin-top: 40px;
}

section.timeline .timeline-box.right:before {
	background: none repeat scroll 0 0 #E5E5E5;
	border-radius: 50%;
	box-shadow: 0 0 0 3px #FFF, 0 0 0 6px #E5E5E5;
	content: "";
	display: block;
	height: 7px;
	position: absolute;
	left: 50%;
	margin-top: 32px;
	width: 8px;
	transform: translate3d(-50%, 0, 0);
	z-index: 1;
}

section.timeline .timeline-box.right .timeline-box-arrow {
	transform: rotate(45deg);
	content: '';
	display: block;
	background: #FFF;
	border-left: 1px solid #E5E5E5;
	border-bottom: 1px solid #E5E5E5;
	float: left;
	height: 14px;
	margin-top: 28px;
	margin-left: -18px;
	width: 14px;
	z-index: 0;
}

section.timeline .timeline-box .owl-carousel {
	border-radius: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
}

@media (max-width: 991px) {
	section.timeline .timeline-box {
		float: none;
		clear: both;
		right: auto;
		left: auto;
		margin: 25px auto;
		max-width: 70%;
		width: auto;
	}

	section.timeline .timeline-box.right {
		float: none;
		clear: both;
		right: auto;
		left: auto;
		margin: 25px auto;
		max-width: 70%;
		width: auto;
	}

	section.timeline .timeline-box.left:after, section.timeline .timeline-box.right:after, section.timeline .timeline-box.left:before, section.timeline .timeline-box.right:before {
		display: none;
	}
}

@media (max-width: 767px) {
	section.timeline {
		width: 100%;
		margin: 0;
	}
}

@media (max-width: 575px) {
	section.timeline {
		width: auto;
		float: none;
		margin-left: 0;
		margin-right: 0;
	}

	section.timeline .timeline-box {
		margin: 15px auto;
		max-width: 90%;
	}

	section.timeline .timeline-box.right {
		margin: 15px auto;
		max-width: 90%;
	}

	article.post-large {
		margin-left: 0;
	}

	article.post-large .post-image, article.post-large .post-date {
		margin-left: 0;
	}
}

/* Center hero text/button only â€” do NOT touch hero-item padding/height (causes white gap) */
.woocomerce__hero-content {
	text-align: center;
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
}

.woocomerce__hero-content .btn_wrapper {
	margin-left: auto !important;
	margin-right: auto !important;
}

.woocomerce__hero-htitle,
.woocomerce__hero-subtitle {
	text-align: center;
}

.google-map iframe {
	width: 100%;
	height: 450px;
	border: 0;
}

/* Arabic titles: keep letters connected (no uppercase / letter-spacing) */
.dir-rtl .team__member-name-7,
.dir-rtl .portfolio__area-12 .sec-title-wrapper .title,
.dir-rtl .portfolio__area-12 .sec-title-wrapper .sub-title,
.dir-rtl .animation__char_come,
.dir-rtl .animation__char_come_long,
.dir-rtl .sec-title,
.dir-rtl .sec-sub-title {
	letter-spacing: 0 !important;
	text-transform: none !important;
	font-family: 'Tajawal', sans-serif;
}

/* Hide decorative vertical line above footer */
.footer-line::after {
	display: none;
}

/* Header logo â€” prevent grid column from clipping 180px logo */
@media only screen and (min-width: 1200px) {
	.header__inner-3 {
		grid-template-columns: minmax(180px, auto) 1fr 150px;
	}
}

.header__logo-2 a {
	display: flex;
	align-items: center;
}

.header__logo-2 img {
	display: block;
	max-width: 180px;
	width: 180px;
	height: auto;
	object-fit: contain;
}

/* Hero slider arrows â€” center icon inside circle */
.woocomerce__hero-prev,
.woocomerce__hero-next {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	cursor: pointer;
}

.woocomerce__hero-prev img,
.woocomerce__hero-next img {
	display: block;
	margin: 0;
	max-width: 100%;
	height: auto;
}

/* Hero CTA ring â€” center arrow button inside outer circle */
.woocomerce__hero-content .btn_wrapper .btn-item {
	inset: 0;
	margin: auto;
}

/* Header nav â€” match legacy master.css (transparent at top, secondary on scroll) */
.header__area-3 {
	background: transparent !important;
	background-image: none !important;
}

.header__area-3.sticky-3 {
	background-color: var(--secondary) !important;
	border-bottom: 1px solid var(--secondary);
}

.header__area-3:not(.sticky-3) #open_offcanvas img {
	filter: brightness(0) invert(1);
}

.header__area-3.sticky-3 #open_offcanvas img {
	filter: none;
}

.header__nav-icon-3 #open_offcanvas {
	display: inline-flex;
	align-items: center;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.header__nav-icon-3 #open_offcanvas img {
	display: block;
	max-width: none;
}

/* Hero text animation â€” start sooner (CSS waits for .swiper-slide-active from Swiper) */
.woocomerce-active .swiper-slide-active .woocomerce__hero-htitle {
	animation: wcfadeUp 0.7s 0.1s forwards;
}

.woocomerce-active .swiper-slide-active .woocomerce__hero-subtitle {
	animation: wcfadeUp 0.8s 0.15s forwards;
}

/* Offcanvas search â€” white border & text (legacy theme on secondary background) */
.offcanvas__search input {
	color: #fff;
	border: 1px solid #fff;
	background-color: transparent;
}

.offcanvas__search input::placeholder,
.offcanvas__search input::-webkit-input-placeholder,
.offcanvas__search input::-moz-placeholder,
.offcanvas__search input:-ms-input-placeholder,
.offcanvas__search input::-ms-input-placeholder {
	color: rgba(255, 255, 255, 0.85);
	opacity: 1;
}

.offcanvas__search button {
	color: #fff;
}

/* WhatsApp + Newstyle AI launcher + Scroll-top — aligned stack (from Newstyle MVC) */
:root {
    --fab-edge-x: 24px;
    --fab-gap: 12px;
    --fab-size: 56px;
}

.site-fab-stack {
    position: fixed;
    right: var(--fab-edge-x);
    bottom: var(--fab-edge-x);
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--fab-gap);
    width: var(--fab-size);
    z-index: 2147483644;
}

.site-fab-stack .scroll-top,
.site-fab-stack .site-chat-launcher,
.site-fab-stack .ns-chat__launcher {
    position: relative !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    top: auto !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.site-fab-stack .scroll-top {
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.site-chat-launcher {
    width: var(--fab-size);
    height: var(--fab-size);
    border: 0;
    border-radius: 50%;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    z-index: 2147483645 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none !important;
    cursor: pointer;
    padding: 0;
    background: #25d366;
}

.site-chat-launcher:hover,
.site-chat-launcher:focus {
    color: #fff !important;
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
    outline: none;
}

body .scroll-top,
body.dir-rtl .scroll-top,
html[dir="rtl"] body .scroll-top {
    width: var(--fab-size) !important;
    height: var(--fab-size) !important;
    z-index: 2147483644 !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

body .scroll-top i {
    font-size: 22px;
    line-height: 1;
}

body.dir-rtl .site-fab-stack,
html[dir="rtl"] .site-fab-stack {
    right: var(--fab-edge-x) !important;
    left: auto !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
