/*===================================== 
YOU CAN WRIGHT CUSTOME CSS 
======================================*/

/* ---------- أساسيات تجاوب عامة ---------- */
html {
	overflow-x: hidden;
}
body {
	overflow-x: hidden;
	-webkit-text-size-adjust: 100%;
}
img {
	max-width: 100%;
	height: auto;
}
/* حاوية قياسية موحّدة: نفس الهوامش الجانبية على كل الشاشات */
.container {
	width: 100%;
	max-width: 1170px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}
@media (min-width: 1600px) {
	.container {
		max-width: 1320px;
	}
}
/* توحيد الرأس والتذييل مع نفس الحاوية القياسية */
.site-header .container,
.site-header .main-bar .container,
footer .container,
.site-footer .container,
.wt-bnr-inr .container {
	width: 100%;
	max-width: 1170px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}
@media (min-width: 1600px) {
	.site-header .container,
	.site-header .main-bar .container,
	footer .container,
	.site-footer .container,
	.wt-bnr-inr .container {
		max-width: 1320px;
	}
}
.container-fluid {
	padding-left: 20px;
	padding-right: 20px;
}
.container > .row,
.container-fluid > .row {
	margin-left: -15px;
	margin-right: -15px;
}
.page-content,
.section-full {
	overflow-x: hidden;
}

/* صفوف البطاقات بارتفاع متساوٍ */
.equal-card-row {
	display: flex;
	flex-wrap: wrap;
}
.equal-card-row > [class*="col-"] {
	display: flex;
	flex-direction: column;
}

/* ---------- بطاقات آراء العملاء + عجلة متجاوبة ---------- */
.testimonial-wrap .testimonial-clients-carousel {
	position: relative;
	padding: 0 4px 6px;
}
.testimonial-wrap .testimonial-clients-carousel .owl-stage {
	display: flex;
	align-items: stretch;
}
.testimonial-wrap .testimonial-clients-carousel .owl-item {
	display: flex;
	height: auto;
}
.testimonial-wrap .testimonial-clients-carousel .item {
	display: flex;
	width: 100%;
	padding: 8px 2px 10px;
}
.testimonial-card {
	background: #fff;
	border-radius: 10px;
	padding: 30px 25px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
	width: 100%;
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}
.testimonial-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.testimonial-rating {
	color: #FFBC13;
	font-size: 14px;
	margin-bottom: 12px;
	letter-spacing: 2px;
}
.testimonial-card .testimonial-text {
	padding: 0;
	position: static;
	flex: 1;
}
.testimonial-card .testimonial-text i.fa-quote-right {
	color: #FFBC13;
	font-size: 26px;
	opacity: .45;
	display: block;
	margin-bottom: 10px;
}
.testimonial-card .testimonial-text p {
	color: #555;
	line-height: 1.9;
	margin-bottom: 20px;
}
.testimonial-footer {
	display: flex;
	align-items: center;
	gap: 12px;
	border-top: 1px solid #eee;
	padding-top: 15px;
	margin-top: auto;
}
.testimonial-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #273447;
	color: #FFBC13;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 18px;
	flex-shrink: 0;
	overflow: hidden;
}
.testimonial-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.testimonial-footer .testimonial-detail {
	display: flex;
	flex-direction: column;
}
.testimonial-footer .testimonial-name {
	font-size: 14px;
}
.testimonial-footer .testimonial-position {
	font-size: 12px;
	color: #888;
}
/* إخفاء أسهم التنقل — الإبقاء على النقاط فقط */
.testimonial-wrap .owl-nav {
	display: none !important;
}
.testimonial-wrap .owl-dots {
	margin-top: 10px;
	text-align: center;
}
.testimonial-wrap .owl-dots .owl-dot {
	display: inline-block;
	margin: 0 4px;
}
.testimonial-wrap .owl-dots .owl-dot span {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #cfd5de;
	transition: background .2s ease, transform .2s ease;
}
.testimonial-wrap .owl-dots .owl-dot.active span,
.testimonial-wrap .owl-dots .owl-dot:hover span {
	background: #FFBC13;
	transform: scale(1.15);
}

/* ---------- شبكة التصنيفات (رئيسية + صفحات التصنيف) ---------- */
.category-showcase-card,
.wt-product-box.category-showcase-card,
.wt-box.wt-product-box {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0,0,0,0.06);
	transition: transform .2s ease, box-shadow .2s ease;
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
}
.category-showcase-card:hover,
.wt-product-box.category-showcase-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.category-showcase-card .wt-thum-bx,
.wt-product-box .wt-thum-bx {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #eef1f5;
}
.category-showcase-card .wt-thum-bx img,
.wt-product-box .wt-thum-bx img,
.wt-gallery-bx .wt-thum-bx img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.category-showcase-card .wt-info,
.wt-product-box .wt-info {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.category-showcase-card .wt-info > .p-a10,
.wt-product-box .wt-info > .p-a10 {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.category-showcase-card .wt-title,
.wt-product-box .wt-title {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.5;
	word-break: break-word;
}
.category-showcase-card .site-button,
.wt-product-box .site-button {
	max-width: 100%;
	white-space: normal;
	line-height: 1.4;
	padding: 8px 14px;
	margin: 0 !important;
}

/* ---------- بطاقات المقالات ---------- */
.article-card,
.blog-post.latest-blog-1 {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0,0,0,0.06);
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
}
.article-card .wt-post-media,
.blog-post.latest-blog-1 .wt-post-media {
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #eef1f5;
}
.article-card .wt-post-media img,
.blog-post.latest-blog-1 .wt-post-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.article-card .wt-post-info,
.blog-post.latest-blog-1 .wt-post-info {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.article-card .post-title,
.blog-post.latest-blog-1 .post-title {
	font-size: 16px;
	line-height: 1.55;
	margin: 0 0 10px;
	word-break: break-word;
}
.article-card .post-title a,
.blog-post.latest-blog-1 .post-title a {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* معرض الصور */
.wt-gallery-bx {
	height: 100%;
}
.wt-gallery-bx .wt-thum-bx {
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

/* صفحة المقال المفرد */
.blog-post-single .wt-post-media img {
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
	border-radius: 8px;
}
.blog-post-single .wt-post-text {
	overflow-wrap: anywhere;
	word-break: break-word;
}
.blog-post-single .wt-post-text img {
	max-width: 100%;
	height: auto;
}

/* فوتر */
.site-footer .widget-post {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.site-footer .post-title {
	word-break: break-word;
}
.logo-footer img {
	max-width: 100%;
	height: auto;
}

/* رأس / قائمة */
.header-nav .nav > li > a {
	white-space: nowrap;
}
.extra-nav h4 {
	font-size: 14px;
	margin: 0;
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- نقاط التوقف ---------- */
@media (max-width: 991px) {
	.section-head h2,
	.section-head h1 {
		font-size: 26px;
		line-height: 1.4;
	}
	.article-card .post-title,
	.blog-post.latest-blog-1 .post-title {
		font-size: 15px;
	}
	.category-showcase-card .wt-title,
	.wt-product-box .wt-title {
		font-size: 15px;
	}
	.call-to-action-wrap .call-to-action-left,
	.call-to-action-wrap .call-to-action-right {
		text-align: center;
	}
	.call-to-action-wrap .col-md-3 {
		float: none;
		margin: 0 auto;
	}
}

@media (max-width: 767px) {
	.container,
	.container-fluid,
	.site-header .container,
	.site-header .main-bar .container,
	footer .container,
	.site-footer .container {
		padding-left: 16px;
		padding-right: 16px;
	}
	.section-full {
		padding-top: 50px !important;
		padding-bottom: 40px !important;
	}
	.testimonial-card {
		padding: 22px 16px;
	}
	.category-showcase-card .site-button,
	.wt-product-box .site-button {
		font-size: 13px;
		padding: 8px 12px;
	}
	.blog-post-single .wt-post-media img {
		max-height: 280px;
	}
	.icon-float,
	.icon-float-call {
		transform: scale(0.9);
	}
	.footer-top .col-md-3,
	.footer-top .col-sm-6 {
		margin-bottom: 20px;
	}
	.wt-footer-bot-left {
		text-align: center;
		width: 100%;
	}
	/* القائمة المنسدلة على الجوال */
	.header-nav .nav > li {
		float: none;
		width: 100%;
	}
	.header-nav .sub-menu {
		position: static !important;
		display: block;
		opacity: 1;
		visibility: visible;
		box-shadow: none;
		padding-right: 12px;
	}
}

@media (max-width: 480px) {
	.section-head h2 {
		font-size: 22px;
	}
	.category-showcase-card .wt-thum-bx,
	.wt-product-box .wt-thum-bx {
		aspect-ratio: 16 / 11;
	}
	.article-card .wt-post-media,
	.blog-post.latest-blog-1 .wt-post-media {
		aspect-ratio: 16 / 11;
	}
	.rev_slider_wrapper,
	.fullscreen-container {
		min-height: 280px !important;
	}
}
