/* 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;
	}
}

/* Homepage header: transparent over hero until scroll (matches old MVC behavior) */
.header__area-3:not(.sticky-3) {
	background: transparent !important;
	background-image: none !important;
}

/* Home mobile: transparent header over full-screen hero (no forced dark body) */
@media only screen and (max-width: 991px) {
	body.page-home .header__area-3:not(.sticky-3) {
		background: transparent !important;
		background-image: none !important;
	}

	body.page-home .header__area-3.sticky-3 {
		background-color: #fff !important;
	}

	body.page-home .woocomerce__hero {
		margin-top: 0;
		padding-top: 0;
		background-color: #1a1a1a;
	}

	body.page-home .woocomerce__hero .swiper-slide {
		background-color: #1a1a1a;
	}
}

#smooth-wrapper {
	z-index: 0;
}

.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;
}

/* Center hero slider text */
.woocomerce__hero-item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Full-screen hero on phone/tablet (master.css sets height: unset on mobile) */
@media only screen and (max-width: 991px) {
	.woocomerce__hero {
		min-height: 100vh;
		min-height: 100svh;
	}

	.woocomerce__hero .woocomerce-active,
	.woocomerce__hero .swiper-wrapper,
	.woocomerce__hero .swiper-slide {
		min-height: 100vh;
		min-height: 100svh;
		height: 100vh;
		height: 100svh;
	}

	.woocomerce__hero-item {
		height: 100vh !important;
		height: 100svh !important;
		min-height: 100vh !important;
		min-height: 100svh !important;
		padding: 0 10px !important;
	}
}

.woocomerce__hero-content {
	text-align: center;
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
}

.woocomerce__hero-content .btn_wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-left: auto !important;
	margin-right: auto !important;
}

.woocomerce__hero-content .btn_wrapper .btn-item {
	position: relative;
	left: auto;
	right: auto;
	top: auto;
}

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