/* =========================================================================
   v1.5.1 - BAMENOO floating glass footer (all pages except the landing page)
   ========================================================================= */
.bmf{
	--bmf-gold:#ffaa19;
	--bmf-gold-d:#ffaa19;
	--bmf-ink:#e8edf4;
	--bmf-pw:430px;
	--bmf-tl:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M0 0A7 7 0 0 1 7 7A7 7 0 0 0 14 14L0 14Z'/%3E%3C/svg%3E");
	--bmf-tr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M14 0A7 7 0 0 0 7 7A7 7 0 0 1 0 14L14 14Z'/%3E%3C/svg%3E");
	position:relative;
	direction:rtl;
	font-family:var(--akt-font);
	color:var(--bmf-ink);
	padding:96px 24px 60px;
	overflow:hidden;
	background:
		radial-gradient(900px 380px at 50% 8%,rgba(28,39,63,.30),transparent 70%),
		radial-gradient(620px 280px at 0% 100%,rgba(255,170,25,.08),transparent 70%),
		radial-gradient(620px 280px at 100% 100%,rgba(255,170,25,.08),transparent 70%),
		repeating-linear-gradient(90deg,rgba(255,255,255,.014) 0 1px,transparent 1px 7px),
		linear-gradient(180deg,#1c273f 0%,#1c273f 52%,#1c273f 100%);
}
.bmf *,.bmf *::before,.bmf *::after{box-sizing:border-box}
:where(.bmf) a{color:inherit;text-decoration:none}
:where(.bmf) ul{list-style:none;margin:0;padding:0}
.bmf .bmf-i{display:block;width:1em;height:1em}

/* ---------- floating card ---------- */
.bmf__wrap{max-width:1180px;margin:0 auto}
.bmf__card{position:relative;isolation:isolate;border-radius:32px}

.bmf__hot,.bmf__glow,.bmf__edge,.bmf__glass{position:absolute;display:block;pointer-events:none;border-radius:inherit}

/* soft golden light bleeding around the card */
.bmf__hot{
	inset:-6px;z-index:-4;filter:blur(11px);opacity:.85;border-radius:38px;
	background:
		radial-gradient(circle 230px at 0 100%,rgba(255,170,25,.55),transparent 70%),
		radial-gradient(circle 230px at 100% 100%,rgba(255,170,25,.55),transparent 70%),
		radial-gradient(circle 200px at 100% 0,rgba(255,170,25,.38),transparent 70%);
}
.bmf__glow{inset:0;z-index:-3;box-shadow:0 0 35px -5px rgba(255,170,25,.25),0 34px 60px -34px rgba(0,0,0,.75)}

/* 1px glowing gold border (gradient: brighter at the corners) */
.bmf__edge{
	inset:0;z-index:-2;
	background:
		radial-gradient(circle 260px at 0 100%,#ffaa19 0,rgba(255,170,25,0) 100%),
		radial-gradient(circle 260px at 100% 100%,#ffaa19 0,rgba(255,170,25,0) 100%),
		radial-gradient(circle 240px at 100% 0,rgba(255,170,25,.95) 0,rgba(255,170,25,0) 100%),
		radial-gradient(circle 200px at 0 0,rgba(255,170,25,.55) 0,rgba(255,170,25,0) 100%),
		linear-gradient(180deg,rgba(255,237,206,.62),rgba(255,170,25,.40));
}
/* dark glass */
.bmf__glass{
	inset:1px;z-index:-1;border-radius:31px;
	background:rgba(28,39,63,.65);
	-webkit-backdrop-filter:blur(24px) saturate(1.25);
	backdrop-filter:blur(24px) saturate(1.25);
}
.bmf__glass::before,.bmf__glass::after{content:"";position:absolute;inset:0;border-radius:inherit}
.bmf__glass::before{z-index:-1;background:linear-gradient(180deg,rgba(28,39,63,.80),rgba(12,17,28,.84))}
.bmf__glass::after{
	background:
		radial-gradient(circle 240px at 0 100%,rgba(255,170,25,.11),transparent 100%),
		radial-gradient(circle 240px at 100% 100%,rgba(255,170,25,.11),transparent 100%),
		linear-gradient(135deg,rgba(255,255,255,.07) 0,rgba(255,255,255,0) 36%);
}

/* blurred architecture photo behind the logo column */
.bmf__clip{position:absolute;inset:1px;border-radius:31px;overflow:hidden;z-index:0;pointer-events:none}
.bmf__art{
	position:absolute;top:0;bottom:0;right:0;width:40%;
	background-size:cover;background-position:center;background-repeat:no-repeat;
	opacity:1;filter:blur(0) saturate(1.12) contrast(1.08);
	-webkit-mask-image:linear-gradient(to left,#000 0,#000 40%,transparent 100%);
	mask-image:linear-gradient(to left,#000 0,#000 40%,transparent 100%);
}
.bmf__art::after{
	content:"";position:absolute;inset:0;
	background:
		linear-gradient(180deg,rgba(13,18,29,.3) 0,rgba(13,18,29,0) 30%),
		linear-gradient(0deg,rgba(13,18,29,.25) 0,rgba(13,18,29,0) 36%);
}

/* ---------- floating top CTA ---------- */
.bmf__cta{
	position:absolute;z-index:4;top:-47px;left:50%;transform:translateX(-50%);
	width:var(--bmf-pw);max-width:calc(100% - 32px);height:64px;
	display:flex;align-items:center;justify-content:center;gap:18px;
	border-radius:999px;color:#ffaa19;font-weight:700;font-size:20px;line-height:1.3;
	background:linear-gradient(180deg,rgba(28,39,63,.94),rgba(28,39,63,.96));
	border:1.5px solid rgba(255,170,25,.92);
	box-shadow:0 0 0 1px rgba(255,170,25,.14),0 0 22px rgba(255,170,25,.48),0 0 64px -8px rgba(255,170,25,.38),inset 0 0 20px rgba(255,170,25,.13);
	transition:transform .25s ease,box-shadow .25s ease;
}
a.bmf__cta:hover{transform:translateX(-50%) translateY(-2px);box-shadow:0 0 0 1px rgba(255,170,25,.22),0 0 28px rgba(255,170,25,.62),0 0 72px -6px rgba(255,170,25,.5),inset 0 0 22px rgba(255,170,25,.18)}
.bmf__cta-btn,.bmf__form-btn{
	flex:none;display:grid;place-items:center;border-radius:50%;color:#1c273f;
	background:linear-gradient(145deg,#ffaa19 0,#ffaa19 55%,#ffaa19 100%);
	box-shadow:0 0 14px rgba(255,170,25,.5),inset 0 1px 1px rgba(255,255,255,.55);
}
.bmf__cta-btn{width:42px;height:42px;font-size:21px}
.bmf__cta-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- content ---------- */
.bmf__body{position:relative;z-index:2;padding:46px 50px 30px}
.bmf__grid{display:grid;grid-template-columns:1.12fr .76fr .76fr 1.36fr;align-items:stretch}
.bmf__col{min-width:0}

/* brand */
.bmf__brand{display:flex;align-items:center;justify-content:center}
.bmf__brand-box{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
.bmf__logo{display:block;line-height:0}
.bmf__logo-img{display:block;width:auto;max-width:190px;max-height:96px;height:auto}
.bmf__mono{display:block;width:62px;height:auto}
.bmf__brand-title{
	direction:ltr;font-family:'Cormorant Garamond','Cinzel','Trajan Pro','Times New Roman',Georgia,serif;
	font-size:34px;font-weight:500;line-height:1.1;letter-spacing:.3em;margin-inline-end:-.3em;
	background:linear-gradient(180deg,#ffaa19,#ffaa19);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.bmf__brand-sub{direction:ltr;font-size:10.5px;letter-spacing:.26em;margin-inline-end:-.26em;color:#ffaa19;white-space:nowrap;font-family:'Helvetica Neue',Arial,sans-serif}

/* link columns */
.bmf__links{position:relative;text-align:center;padding:2px 26px}
.bmf__exp::after,.bmf__quick::after{
	content:"";position:absolute;top:0;bottom:0;inset-inline-end:0;width:1px;
	background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.3) 18%,rgba(255,255,255,.3) 82%,rgba(255,255,255,0));
}
.bmf__h{font-size:19px;font-weight:700;line-height:1.5;color:var(--bmf-gold);margin-bottom:12px}
.bmf__h a:hover{color:#fff}
.bmf__links li{line-height:28px;font-size:15px;white-space:nowrap}
.bmf__links li a,.bmf__legal li a{transition:color .2s ease}
.bmf__links li a:hover,.bmf__legal li a:hover{color:var(--bmf-gold)}

/* newsletter */
.bmf__news{padding-inline-start:34px}
.bmf__news-h{font-size:22px;font-weight:700;line-height:1.5;color:#fff}
.bmf__news-d{font-size:12px;line-height:1.9;color:#d3dae6;margin:4px 0 16px}
.bmf__form{
	display:flex;align-items:center;gap:10px;height:48px;padding:4px 14px 4px 5px;border-radius:999px;
	border:1px solid rgba(255,255,255,.36);background:rgba(12,16,26,.38);
	transition:border-color .2s ease,box-shadow .2s ease;
}
.bmf__form:focus-within{border-color:rgba(255,170,25,.85);box-shadow:0 0 0 3px rgba(255,170,25,.16)}
.bmf__form-ic{flex:none;display:grid;place-items:center;font-size:19px;color:#d9dfe9;padding-inline-start:6px}
.bmf__form input[type=email]{
	flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;box-shadow:none;
	color:#fff;font:inherit;font-size:14px;padding:0;
}
.bmf__form input[type=email]::placeholder{color:rgba(255,255,255,.46);opacity:1}
.bmf__form-btn{width:38px;height:38px;font-size:19px;border:0;padding:0;cursor:pointer;transition:transform .2s ease,filter .2s ease}
.bmf__form-btn:hover{transform:scale(1.06);filter:brightness(1.06)}
.bmf__sc{margin-top:2px}
.bmf__sc input[type=email],.bmf__sc input[type=text]{width:100%;height:46px;border-radius:999px;border:1px solid rgba(255,255,255,.36);background:rgba(12,16,26,.38);color:#fff;padding:0 18px;font:inherit}
.bmf__sc button,.bmf__sc input[type=submit]{margin-top:10px;border:0;border-radius:999px;padding:10px 22px;font:inherit;font-weight:700;color:#1c273f;cursor:pointer;background:linear-gradient(145deg,#ffaa19,#ffaa19)}
.bmf__notice{margin-top:8px;font-size:12.5px;font-weight:700;color:#9be3b7}
.bmf__notice.is-err{color:#ffb3b3}
.bmf__social{display:flex;flex-wrap:nowrap;gap:8px;margin-top:20px}
.bmf__social a{
	display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border-radius:50%;font-size:17px;color:#fff;
	border:1px solid rgba(255,255,255,.2);
	background:radial-gradient(circle at 30% 22%,rgba(255,255,255,.13),rgba(255,255,255,.03) 70%);
	transition:border-color .2s ease,color .2s ease,transform .2s ease;
}
.bmf__social a:hover{color:var(--bmf-gold);border-color:rgba(255,170,25,.8);transform:translateY(-2px)}

/* trust seals (Enamad etc. - only if filled in the old footer settings) */
.bmf__trust{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:26px}
.bmf__trust-i{display:flex;align-items:center;justify-content:center;padding:5px;border-radius:10px;background:#fff;line-height:0}
.bmf__trust-i a{display:block;line-height:0}
.bmf__trust-i img{display:block;max-height:76px;width:auto;max-width:100%;height:auto}

/* sub-footer */
.bmf__bar{
	display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;
	margin-top:38px;padding-top:22px;border-top:1px solid rgba(255,255,255,.26);
	font-size:13.5px;color:#dfe5ee;
}
.bmf__legal{display:flex;flex-wrap:wrap;align-items:center}
.bmf__legal li{position:relative;line-height:1.8}
.bmf__legal li + li{margin-inline-start:15px;padding-inline-start:16px}
.bmf__legal li + li::before{content:"";position:absolute;inset-inline-start:0;top:50%;height:13px;margin-top:-6.5px;width:1px;background:rgba(255,255,255,.45)}
.bmf__copy{margin:0;color:#dfe5ee}

/* ---------- notch in the card's top edge (the CTA sits in it) - desktop & tablet ---------- */
@media (min-width:768px){
	.bmf__card.has-cta .bmf__edge,.bmf__card.has-cta .bmf__glass{
		-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
		-webkit-mask-image:linear-gradient(#000,#000),linear-gradient(#000,#000),linear-gradient(#000,#000),var(--bmf-tl),var(--bmf-tr);
		mask-image:linear-gradient(#000,#000),linear-gradient(#000,#000),linear-gradient(#000,#000),var(--bmf-tl),var(--bmf-tr);
		-webkit-mask-size:100% calc(100% - 14px),calc(50% - var(--nh) - 14px) 14px,calc(50% - var(--nh) - 14px) 14px,14px 14px,14px 14px;
		mask-size:100% calc(100% - 14px),calc(50% - var(--nh) - 14px) 14px,calc(50% - var(--nh) - 14px) 14px,14px 14px,14px 14px;
		-webkit-mask-position:0 14px,0 0,100% 0,calc(50% - var(--nh) - 7px) 0,calc(50% + var(--nh) + 7px) 0;
		mask-position:0 14px,0 0,100% 0,calc(50% - var(--nh) - 7px) 0,calc(50% + var(--nh) + 7px) 0;
	}
	.bmf__card.has-cta .bmf__edge{--nh:calc(var(--bmf-pw) / 2 - 4px)}
	.bmf__card.has-cta .bmf__glass{--nh:calc(var(--bmf-pw) / 2 - 3px)}
}

/* ---------- tablet ---------- */
@media (max-width:1023px){
	.bmf__art{left:0;right:0;width:auto;height:250px;bottom:auto;
		-webkit-mask-image:linear-gradient(to bottom,#000 0,#000 35%,transparent 100%);
		mask-image:linear-gradient(to bottom,#000 0,#000 35%,transparent 100%)}
	.bmf__body{padding:40px 36px 26px}
	.bmf__grid{grid-template-columns:1fr 1fr;row-gap:34px}
	.bmf__brand{grid-column:1 / -1;padding:6px 0 4px}
	.bmf__links{padding:2px 16px}
	.bmf__exp::after{display:block}
	.bmf__quick::after{display:none}
	.bmf__news{grid-column:1 / -1;padding-inline-start:0;padding-top:30px;border-top:1px solid rgba(255,255,255,.18)}
	.bmf__news-h,.bmf__news-d{text-align:center}
	.bmf__form{max-width:520px;margin-inline:auto}
	.bmf__social{justify-content:center}
}

/* ---------- mobile ---------- */
@media (max-width:767px){
	.bmf{padding:86px 16px 44px}
	.bmf__card{border-radius:26px}
	.bmf__glass{border-radius:25px}
	.bmf__clip{border-radius:25px}
	.bmf__hot{border-radius:32px}
	.bmf__art{height:230px}
	.bmf__cta{top:-31px;height:60px;width:calc(100% - 40px);max-width:380px;font-size:17px;gap:14px}
	.bmf__cta-btn{width:38px;height:38px;font-size:19px}
	.bmf__body{padding:48px 22px 24px}
	.bmf__grid{grid-template-columns:1fr;row-gap:30px}
	.bmf__links{padding:0}
	.bmf__exp::after{display:none}
	.bmf__h{margin-bottom:8px}
	.bmf__brand-title{font-size:30px}
	.bmf__bar{flex-direction:column;justify-content:center;text-align:center;margin-top:30px;padding-top:20px;gap:12px}
	.bmf__legal{justify-content:center;row-gap:2px}
}
@media (min-width:520px) and (max-width:767px){
	.bmf__grid{grid-template-columns:1fr 1fr}
	.bmf__brand,.bmf__news{grid-column:1 / -1}
	.bmf__exp::after{display:block}
}
@media (max-width:519px){
	.bmf__legal li + li{margin-inline-start:0;padding-inline-start:0}
	.bmf__legal li + li::before{display:none}
	.bmf__legal{gap:2px 20px}
	.bmf__art{background-position:72% center}
	.bmf__exp,.bmf__quick{padding-bottom:26px;border-bottom:1px solid rgba(255,255,255,.14)}
	.bmf__news{padding-top:0;border-top:0}
	.bmf__links li{line-height:30px}
}
@media (max-width:359px){
	.bmf__cta{font-size:15px;gap:10px}
	.bmf__brand-sub{letter-spacing:.16em;white-space:normal}
}
@media (prefers-reduced-motion:reduce){
	.bmf *{transition:none!important}
}

/* ---------- mobile: clean stacked layout, no overlaps ---------- */
@media (max-width:767px){
	.bmf{padding:70px 10px 28px}
	.bmf__card{border-radius:24px}
	.bmf__body{padding:36px 18px 20px}
	.bmf__art{height:150px;opacity:.55}

	/* grid: brand on top, two link columns side by side, form below */
	.bmf__grid{
		grid-template-columns:1fr 1fr;
		grid-template-areas:"brand brand" "exp quick" "news news";
		row-gap:26px;column-gap:0;align-items:start;
	}
	.bmf__brand{grid-area:brand;padding:0 0 18px;border-bottom:1px solid rgba(255,255,255,.14)}
	.bmf__exp{grid-area:exp}
	.bmf__quick{grid-area:quick}
	.bmf__news{grid-area:news;padding:22px 0 0;border-top:1px solid rgba(255,255,255,.14);padding-inline-start:0}
	/* v1.6.0: brand + newsletter blocks span both columns so their text is truly centered on mobile */
	.bmf__brand,.bmf__news{grid-column:1 / -1}

	/* small brand */
	.bmf__brand-box{gap:6px}
	.bmf__logo svg,.bmf__logo img{width:44px!important;height:auto!important;max-width:44px;max-height:52px}
	.bmf__logo-img{max-width:70px;max-height:56px}
	.bmf__brand-title{font-size:16px;letter-spacing:.18em;margin-inline-end:-.18em}
	.bmf__brand-sub{font-size:7.5px;letter-spacing:.14em;margin-inline-end:-.14em;white-space:nowrap}

	/* links: two tidy columns with a divider */
	.bmf__links{padding:0 8px;text-align:center}
	.bmf__exp{padding-inline-end:8px}
	.bmf__exp::after{display:block;top:4px;bottom:4px}
	.bmf__quick::after{display:none}
	.bmf__h{font-size:14px;line-height:1.4;margin-bottom:8px;white-space:nowrap}
	.bmf__links li{line-height:26px;font-size:12.5px;white-space:nowrap}
	.bmf__exp,.bmf__quick{padding-bottom:0;border-bottom:0}

	/* newsletter */
	.bmf__news-h{font-size:15px;line-height:1.5;text-align:center}
	.bmf__news-d{font-size:10.5px;line-height:1.7;text-align:center;margin:4px 0 12px}
	.bmf__form{height:42px;max-width:none;margin-inline:0;gap:6px;padding:3px 5px 3px 3px}
	.bmf__form-ic{font-size:14px;padding-inline-start:2px}
	.bmf__form input[type=email]{font-size:11.5px}
	.bmf__form input[type=email]::placeholder{font-size:11.5px}
	.bmf__form-btn{width:34px;height:34px;font-size:16px}
	.bmf__notice{font-size:11px}
	.bmf__social{justify-content:center;gap:7px;margin-top:14px}
	.bmf__social a{width:32px;height:32px;font-size:14px}

	/* CTA + trust + bottom bar */
	.bmf__cta{top:-24px;height:46px;width:calc(100% - 28px);max-width:300px;font-size:13px;gap:8px}
	.bmf__cta-btn{width:30px;height:30px;font-size:15px}
	.bmf__trust{margin-top:16px}
	.bmf__bar{flex-direction:column;justify-content:center;text-align:center;margin-top:22px;padding-top:14px;gap:8px;font-size:10.5px}
	.bmf__legal{justify-content:center;gap:0 14px}
	.bmf__legal li + li{margin-inline-start:0;padding-inline-start:0}
	.bmf__legal li + li::before{display:none}
	.bmf__copy{font-size:10.5px;line-height:1.6}
}
@media (max-width:359px){
	.bmf__links li{font-size:11.5px}
	.bmf__h{font-size:13px}
}

/* ---------- mobile fixes: centered brand & contact block, social icons in one row ---------- */
@media (max-width:767px){
	.bmf__brand{width:100%;justify-content:center;align-items:center;text-align:center}
	.bmf__brand-box{width:100%;align-items:center;justify-content:center;text-align:center}
	.bmf__logo{margin:0 auto}
	.bmf__news{width:100%;text-align:center}
	.bmf__news-h,.bmf__news-d{text-align:center}
	.bmf__form{margin-inline:auto;width:100%}
	.bmf__social{flex-wrap:nowrap;justify-content:center;gap:5px;width:100%}
	.bmf__social a{flex:0 1 auto;width:30px;height:30px;font-size:13px}
}

/* ---------- v1.15.6 mobile: footer picture lower + two link columns right-aligned, never crossing the divider ---------- */
@media (max-width:767px){
	/* golden/navy squares picture moves down, reaching about the middle of the «تخصص‌های ما» list; soft fade on both ends */
	.bmf__art{top:50px;bottom:auto;height:290px;background-position:center top;
		-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 22%,#000 58%,transparent 100%);
		mask-image:linear-gradient(to bottom,transparent 0,#000 22%,#000 58%,transparent 100%)}

	/* two equal columns that can never grow past their half, so long text cannot touch the centre line */
	.bmf__grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
	.bmf__links{min-width:0;text-align:right;padding:0}
	.bmf__exp{padding-inline-end:14px}
	.bmf__quick{padding-inline-start:14px}
	.bmf__h{text-align:right;white-space:normal;overflow-wrap:anywhere}
	.bmf__links li{white-space:normal;overflow-wrap:anywhere;text-align:right;line-height:1.9;padding-block:2px}
	.bmf__links li a{display:block}
}
