/* Reset */
:root {
	--bs-primary: #14a155;
}

.swiper-button-next,
.swiper-button-prev {
	width: 60px;
	height: 60px;
	background-color: white;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
}

.swiper-button-next::after,
.swiper-button-prev::after {
	font-size: 20px;
	color: var(--bs-primary);
}

.swiper-button-next {
	right: 10px;
}

.swiper-button-prev {
	left: 10px;
}


/* تغيير لون الأزرار */
.btn-primary {
	background-color: var(--bs-primary) !important;
	border-color: var(--bs-primary) !important;
	border-radius: 50vmax;
}

.btn-primary:hover {
	background-color: #365254 !important;
	border-color: #2e4648 !important;
}

/* تغيير لون حقول الإدخال */
.form-control:focus {
	border-color: var(--bs-primary) !important;
	box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25) !important;
}

body {
	font-family: 'Tajawal', sans-serif;
}

a {
	text-decoration: none;
	color: var(--primary-color);
}

ul {
	list-style: none;
}

.head-section {
	margin-block-end: 1rem;
	position: relative;
	color: var(--bs-dark);
	font-weight: 500;
	font-size: 29px;
}

.btn {
	padding: 11px 55px;
}

.swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	border-radius: 2px;
	background-color: #A7AC90;
	opacity: 0.5;
	transition: all 0.3s ease-in-out;
}

/* عند تحديد الصفحة النشطة */
.swiper-pagination-bullet-active {
	background-color: #436163;
	opacity: 1;
	transform: scale(1.2);
}

.swiper-pagination {
	bottom: 10px;
}

/* Header */
#masthead {
	position: fixed;
	top: 0;
	z-index: 9999;
	background: #FFF;
	box-shadow: 0px 4px 6px rgba(67, 97, 99, 0.1);
	inset-inline: 0;
}

button.menu-toggle {
	display: none;
}

#masthead.container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 19px;
	padding-inline: 30px;
	border-bottom-left-radius: 25px;
	border-bottom-right-radius: 25px;
}

#primary-menu {
	margin: 0;
	display: flex;
	gap: 2rem;
	font-weight: 600;
}

a.custom-logo-link img {
	max-width: 178px;
	height: auto;
}

header a[aria-current="page"],
header #primary-menu a:hover {
	color: var(--bs-primary) !important;
}

#primary-menu a {
	position: relative;
	transition: all 0.3s ease-in-out;
}

#primary-menu a::after {
	content: '';
	position: absolute;
	width: 18px;
	height: 1px;
	background-color: var(--bs-primary);
	bottom: -5px;
	inset-inline: 0;
	margin-inline: auto;
	transform: scaleX(0);
	transition: all 0.3s ease-in-out;
}

#primary-menu a[aria-current="page"]::after,
#primary-menu a:hover::after {
	transform: scaleX(1);
}

#site-navigation {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-block-start: 40px;
}

#site-navigation button {
	background: transparent;
	border: none;
}

#masthead.container .information {
	background-color: var(--bs-primary);
	color: #FFF;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 20px;
	padding-inline: 20px;
	position: absolute;
	top: 0;
	inset-inline-end: 0;
	padding-block: 10px;
}

#masthead.container .information ul {
	display: flex;
	gap: 14px;
	margin: 0;
}

.menu-item-has-children {
	position: relative;
}

.menu-item-has-children>a::before {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid currentColor;
	top: 50%;
	inset-inline-end: -13px;
}

.menu-item-has-children .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	background-color: #FFF;
	padding: 10px;
	border-radius: 8px;
	box-shadow: 0px 4px 6px rgba(67, 97, 99, 0.1);
	display: none;
	width: 200px;
}

.menu-item-has-children:hover .sub-menu {
	display: block;
}

.menu-item-has-children .sub-menu a {
	color: #222;
	font-weight: 500;
	padding: 10px;
	display: block;
}

.menu-item-has-children .sub-menu a::after {
	content: '';
	position: absolute;
	width: 18px;
	height: 1px;
	background-color: var(--bs-primary);
	bottom: -5px;
	inset-inline: 0;
	margin-inline: auto;
	transform: scaleX(0);
	transition: all 0.3s ease-in-out;
}

/* Slider */
#slider .item {
	min-height: 720px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	position: relative;
	background-color: hsla(127.7, 76.5%, 90%, 0.28)
		background-blend-mode: multiply;
}

#slider .item .swiper-caption {
	position: absolute;
	top: 55%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	color: #FFF;
	padding-inline-end: 580px;
	line-height: 27px;
}

#slider .item .swiper-caption h2 {
	position: relative;
	font-size: 60px;
	margin-block-end: 25px;
	width: fit-content;
	font-weight: 600;
}

#slider .item .swiper-caption p {
	margin-block-end: 25px;
	opacity: 75%;
}

/* About */

#about-us {
	position: relative;
}

#about-us .inner-content {
	line-height: 1.8;
	position: relative;
	background: #FFF;
	padding: 30px;
	box-shadow: 0px 0px 11px #0000001f;
	border-radius: 8px;
}

#about-us .inner-content h1 {
	font-size: 26px;
	margin-block-end: 25px;
}

#about-us .inner-content a {
	margin-block-start: 20px;
}

#about-us figure {
	margin: 0;
	overflow: hidden;
	height: 450px;
	width: 690px;
}

#about-us figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#pages .item {
	background: #F6F6F6;
	border-radius: 50vmax;
	height: 360px;
	width: 360px;
	padding: 30px;
}

#pages .item figure {
	height: 120px;
}

#pages .item figure img {
	width: 100%;
	height: 100%;
	object-fit: scale-down;
}

#pages .item h2 {
	font-size: 22px;
	font-weight: 600;
}

#pages .item p {
	opacity: 90%;
}

#pages .item .btn-primary {
	background: transparent !important;
	color: #333 !important;
	border-color: #222 !important
}

#pages .item .btn-primary:hover {
	background-color: #14a155 !important;
	color: #FFF !important;
	border-color: #14a155 !important;
}

#qulity {
	box-shadow: 0px 0px 9px 2px #0000001a;
}

#qulity img {
	transition: 300ms;
}

#qulity img:hover {
	scale: 1.1;
}

#qulity::before {
	content: '';
	position: absolute;
	height: 100%;
	width: 27%;
	background: #12A055;
	inset-inline-end: 0;
	clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 50% 0%);
	opacity: 80%;
	top: 0;
}

#qulity .row {
	align-items: flex-end;
}

#qulity .gallery {
	display: flex;
	justify-content: space-between;
}

#qulity .gallery img {
	max-width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: scale-down;
}

@media screen and (max-width: 768px) {
	#qulity .gallery {
		flex-wrap: wrap;
		justify-content: center;
	}

	#qulity .gallery img {
		width: 100%;
	}

	#qulity .gallery-item {
		width: 50% !important;
		flex-basis: 50%;
	}

	#qulity::before,
	#qulity h3 {
		display: none;
	}

}

#qulity h3 {
	position: absolute;
	color: #FFF;
	inset-inline-end: 70px;
	bottom: 60px;
	font-size: 43px;
}

/* site-box */
.site-box {
	border: 1px solid #f0f0f0;
	padding: 1rem;
	border-radius: 8px;
	transition: all 0.3s ease-in-out;
	box-shadow: 0px 4px 6px rgba(67, 97, 99, 0.1);
	background: #fff;
	margin-block-end: 40px;
	min-height: 385px;
	text-align: center;
	position: relative;
}

.site-box>a {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.site-box:hover {
	box-shadow: 0px 8px 15px rgba(67, 97, 99, 0.3);
	transform: translateY(-5px);
}

.site-box p {
	font-weight: 300;
}

.site-box h3 {
	font-size: 19px;
	margin-block-end: 16px;
	font-weight: 500;
	position: relative;
	color: #222;
}

.site-box figure {
	height: 175px;
	overflow: hidden;
	border-radius: 8px;
}

.site-box figure img {
	width: 100%;
	height: 100%;
	object-fit: scale-down;
}

/* client */
.client-box {
	text-align: center;
	background: #f6f6f6;
	padding: 16px;
	border-radius: 8px;
}

.client-box figure {
	overflow: hidden;
	height: 60px;
	margin-inline: auto;
}

.client-box figure img {
	width: 100%;
	height: 100%;
	object-fit: scale-down;
}

.client-box h3 {
	font-size: 18px;
	font-weight: 500;
}

#map {
	height: 300px;
	filter: grayscale(1);
}

#map iframe {
	width: 100%;
	height: 100%;
}

footer {
	color: #FFF;
	font-size: 14px;
}

footer .top {
	padding-block: 50px;
	background-image: url(../images/footer-bg.jpg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

footer figure {
	height: 121px;
	width: 268px;
	margin-block-end: 20px;
	margin-inline: auto;
}

footer figure img {
	width: 100%;
	height: 140%;
	object-fit: scale-down;
	filter: brightness(0)invert(1);
}

footer figure~h2 {
	font-size: 15px;
	margin-block-end: 10px;
}

footer .top h3 {
	font-size: 18px;
	font-weight: 600;
	margin-block-end: 24px;
}

footer .top p {
	font-size: 15px;
	opacity: 83%;
}

footer .top .social-icons a:hover {
	color: var(--accent-color);
}

footer .top ul {
	list-style: none;
	padding: 0;
}

footer .top ul li {
	display: block;
	margin-block-end: 8px;
}

footer .copyright {
	font-size: 15px;
	color: #FFF;
	background: var(--bs-primary);
	padding-block: 10px;
}

footer .copyright .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

footer .copyright p {
	margin: 0;
}

#logo-close-container {
	display: none;
}

.form-control {
	border-radius: 50vmax;
	min-height: 50px;
	direction: rtl !important;
}

textarea.form-control {
	border-radius: 25px;
	height: 190px;
}

.entry-header-image {
	min-height: 390px;
	background-position: center;
	background-size: cover;
	background-color: #fdfdfd7d;
	background-blend-mode: multiply;
	color: #FFF;
	display: grid;
	place-content: center;
}

h1.entry-title {
	font-size: 28px;
	margin: 0;
	padding-block-start: 110px;
}

.post-thumbnail {
	text-align: center;
	margin-block-end: 40px;
}

.post-thumbnail img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

@media (max-width:992px) {
	#primary-menu {
		position: fixed;
		background: var(--bs-primary);
		height: 100vh;
		inset-inline-start: 0;
		width: 250px;
		flex-direction: column;
		top: 0;
		padding-block-start: 40px;
		padding-inline: 25px;
		z-index: 9999;
		transform: translateX(250px);
		transition: 300ms;
	}

	#primary-menu a {
		color: #FFF;
	}

	header a[aria-current="page"],
	header #primary-menu>li>a:hover {
		color: #FFF !important;
		transform: translateX(10px);
	}

	#primary-menu.active {
		transform: translateX(0);
	}

	#logo-close-container {
		display: flex;
		justify-content: space-between;
	}

	#logo {
		background-image: url(../images/logo_watany-ar-png-23.webp);
		width: 130px;
		height: 90px;
		background-size: contain;
		background-repeat: no-repeat;
		filter: brightness(0)invert(1);
	}

	#site-navigation button#btn-search {
		display: none;
	}

	#site-navigation button~a.btn.btn-primary {
		font-size: 12px;
		padding: 10px 20px;
	}

	a.custom-logo-link img {
		max-width: 60px;
	}

	#site-navigation {
		margin-block-start: 0;
	}

	#masthead.container .information {
		font-size: 12px;
		width: 100%;
		border-radius: 0;
	}

	#masthead.container {
		padding-block-start: 54px;
		padding-inline: 16px;
		position: sticky !important;
	}


	#masthead.container .information ul {
		padding: 0;
		gap: 11px;
	}

	#masthead.container .information>.d-flex.gap-4.align-items-center.justify-content-between>.d-flex.align-items-center.gap-3 {
		display: none !important;
	}

	footer .copyright .container {
		justify-content: center;
		gap: 16px;
	}

	#slider .item .swiper-caption h2 {
		font-size: 30px;
		font-weight: 500;
		background: transparent;
		width: 100%;
		text-align: center;
		padding: 0;
		margin-block-end: 11px;
	}

	#slider .item .swiper-caption {
		text-align: center;
		padding-inline: 16px;
		top: 50%;
	}

	#closeButton {
		border: 0;
		background: transparent;
		font-size: 20px;
		color: #FFF;
	}

	button.menu-toggle {
		display: block;
		background: transparent;
		border: none;
		font-size: 20px;
	}

	#slider .item {
		min-height: 170px;
	}

	#slider .item h2 {
		text-align: center;
	}

	#about-us .inner-content {
		padding-inline-end: 0;
		text-align: center;
		margin-block-end: 30px;
	}

	.site-box {
		margin-block-end: 30px;
	}

	.contact-info {
		padding-inline-end: 0;
	}



	footer .top {
		text-align: center;
		font-size: 14px;
	}

	footer .top .social-icons {
		justify-content: center;
		margin-block-end: 30px;
	}

	footer .copyright p {
		font-size: 11px;
	}

	#slider .item .swiper-caption p {
		font-size: 12px;
		margin-block-end: 9px;
	}

	#about-us figure {
		width: 100%;
		height: 340px;
	}

	#pages .item {
		margin-bottom: 40px;
	}

	#qulity figure.wp-block-gallery figure {
		width: 48% !important;
	}

	#qulity h3 {
		position: static;
		color: #333;
		text-align: center;
	}

	.menu-item-has-children:hover .sub-menu {
		display: none;
	}

	.menu-item-has-children .sub-menu {
		display: none;
	}

	.menu-item-has-children.active .sub-menu {
		display: block;
	}

	.menu-item-has-children .sub-menu a,
	.menu-item-has-children .sub-menu a:hover {
		color: #222 !important;
	}

	#primary-menu a::after {
		display: none;
	}

	#slider {
		margin-top: -20px;
	}
}

.entry-content{
	text-align: center;
	background-color: #FFF;
	border-radius: 8px;
	margin-top: -60px;
	margin-bottom: 40px;
	padding: 20px;
	box-shadow: 0px 4px 6px rgba(67, 97, 99, 0.1);
	position: relative;
	z-index: 1;
}

.entry-content iframe {
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	margin-block-end: 20px;
	border: 0;
}

@media screen and (max-width: 768px) {
	.entry-header-image{
		min-height: 220px;
	}

	h1.entry-title{
		padding: 0;
	}

}