/* Site footer — theme-native (no Codevz / WPBakery classes) */

:root {
	--postmba-footer-blue: #285bbb;
	--postmba-footer-blue-soft: rgba(40, 91, 187, 0.8);
	--postmba-footer-gold: #ccb892;
	--postmba-footer-text: rgba(255, 255, 255, 0.75);
	--postmba-footer-max: 1280px;
}

.site-footer {
	position: relative;
	direction: rtl;
	font-family: var(--postmba-font-sans);
	color: var(--postmba-footer-text);
	background-image: linear-gradient(0deg, var(--postmba-footer-blue), var(--postmba-footer-blue-soft));
	background-size: cover;
	border-bottom: 5px solid var(--postmba-footer-blue);
	border-radius: 0 100px 0 0;
	overflow: hidden;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
	border: 0;
	transition: color 0.2s ease;
}

.site-footer a:hover {
	color: var(--postmba-footer-gold);
}

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

.site-footer__main {
	padding: 100px 0 0;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	max-width: var(--postmba-footer-max);
	margin: 0 auto;
	padding: 0 40px;
	width: 100%;
	box-sizing: border-box;
}

.site-footer__col {
	min-width: 0;
	margin-bottom: 50px;
	padding: 0 15px 0 0;
	box-sizing: border-box;
}

.site-footer__heading {
	position: relative;
	display: inline-block;
	margin: 0 0 1.25rem;
	padding: 0 0 1rem;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
	border-bottom: 1px dashed rgba(167, 167, 167, 0.2);
}

.site-footer__logo {
	display: inline-block;
	line-height: 0;
	margin-bottom: 30px;
}

.site-footer__logo img {
	display: block;
	width: 160px;
	max-width: 100%;
	height: auto;
	border-radius: 5px;
}

.site-footer__about-text p {
	margin: 0;
	font-size: 15px;
	line-height: 1.9;
	text-align: justify;
	color: var(--postmba-footer-text);
}

/* Related links */
.site-footer__links li {
	margin: 0 0 0.65rem;
}

.site-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 15px;
	line-height: 1.6;
}

.site-footer__links i {
	flex-shrink: 0;
	width: 1em;
	font-size: 0.85em;
	color: var(--postmba-footer-gold);
	text-align: center;
	transition: margin 0.1s ease-in-out;
}

.site-footer__links a:hover i {
	margin-inline: 0.35rem;
}

/* Contact list */
.site-footer__contact-item {
	display: flex;
	align-items: flex-start;
	margin: 0 0 25px;
	transition: color 0.2s ease;
}

.site-footer__contact-item:hover {
	color: var(--postmba-footer-gold);
}

.site-footer__contact-item > a {
	display: flex;
	align-items: flex-start;
	width: 100%;
	color: inherit;
}

.site-footer__contact-icon {
	display: table-cell;
	vertical-align: top;
	flex-shrink: 0;
}

.site-footer__contact-icon i {
	display: block;
	width: 2em;
	height: 2em;
	line-height: 2em;
	font-size: 18px;
	text-align: center;
	color: var(--postmba-footer-blue);
	background: #fff;
	border-radius: 5px;
	margin-left: 20px;
	box-sizing: content-box;
	transition: color 0.1s ease-in-out, background-color 0.1s ease-in-out;
}

.site-footer__contact-item:hover .site-footer__contact-icon i {
	color: #fff;
	background: var(--postmba-footer-gold);
	animation: site-footer-icon-bounce 0.8s forwards;
}

.site-footer__contact-text {
	display: block;
	line-height: 1.6;
	font-size: 15px;
	color: inherit;
}

.site-footer__contact-item a:hover {
	color: var(--postmba-footer-gold);
}

.site-footer__enamad {
	margin-top: 0.5rem;
}

.site-footer__enamad img {
	display: block;
	max-width: 125px;
	height: auto;
	border-radius: 5px;
	cursor: pointer;
}

/* Sub-footer bar */
.site-footer__bar {
	background: rgba(204, 184, 146, 0.29);
	padding: 10px 0;
}

.site-footer__bar-inner {
	max-width: var(--postmba-footer-max);
	margin: 0 auto;
	padding: 10px 40px;
	text-align: center;
	box-sizing: border-box;
}

.site-footer__copyright,
.site-footer__credit {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.7);
}

.site-footer__credit {
	margin-top: 0.35rem;
}

.site-footer__credit a {
	color: var(--postmba-footer-gold);
	font-weight: 700;
}

.site-footer__credit a:hover {
	color: #f0dfbe;
}

/* Back to top */
.site-footer__back-top {
	display: none;
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 999;
	width: 2.4em;
	height: 2.4em;
	padding: 5px;
	margin: 0;
	border: 0;
	border-radius: 5px;
	background: var(--postmba-footer-blue);
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	box-sizing: content-box;
	transform: scale(1);
	transition: all 400ms cubic-bezier(0.77, 0, 0.175, 1);
}

.site-footer__back-top.is-visible {
	display: flex;
	align-items: center;
	justify-content: center;
}

.site-footer__back-top:hover {
	background: var(--postmba-footer-gold);
	color: #fff;
	transform: scale(1.1);
	box-shadow: 0 12px 30px 0 rgba(40, 91, 187, 0.15);
}

@keyframes site-footer-icon-bounce {
	0%,
	10%,
	20%,
	50%,
	80% {
		transform: translateY(0);
	}
	40%,
	60% {
		transform: translateY(-8px);
	}
}

@media screen and (max-width: 900px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
		padding: 0 24px;
	}

	.site-footer {
		border-radius: 0 60px 0 0;
	}

	.site-footer__main {
		padding-top: 60px;
	}

	.site-footer__col {
		padding: 0;
		margin-bottom: 40px;
	}

	.site-footer__bar-inner {
		padding-inline: 24px;
	}
}

@media screen and (max-width: 768px) {
	/* Clear fixed mobile nav (≈72px) + raised active tab + gap */
	.site-footer__back-top {
		bottom: calc(92px + env(safe-area-inset-bottom, 0px));
	}
}

@media screen and (max-width: 480px) {
	.site-footer {
		border-radius: 0 40px 0 0;
	}

	.site-footer__main {
		padding-top: 48px;
	}

	.site-footer__back-top {
		right: 16px;
	}
}
