/*
 * IRANSansXFaNum — self-hosted site-wide font (no online dependency).
 * The 'IRANSans' alias faces mirror the exact weight/style descriptors of the
 * src:local()-only @font-face blocks declared inside the ahulearn-* plugin
 * stylesheets, so (loading last) they override them — existing
 * 'IRANSans','Vazirmatn',Tahoma stacks resolve to these files with zero plugin edits.
 * Only base text and form elements are targeted; icon fonts (<i>, svg) stay untouched.
 */

@font-face {
	font-family: 'IRANSansXFaNum';
	src: url('fonts/IRANSansXFaNum-Regular.woff2') format('woff2'),
		url('fonts/IRANSansXFaNum-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'IRANSansXFaNum';
	src: url('fonts/IRANSansXFaNum-Medium.woff2') format('woff2'),
		url('fonts/IRANSansXFaNum-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'IRANSansXFaNum';
	src: url('fonts/IRANSansXFaNum-Bold.woff2') format('woff2'),
		url('fonts/IRANSansXFaNum-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'IRANSans';
	src: url('fonts/IRANSansXFaNum-Regular.woff2') format('woff2'),
		url('fonts/IRANSansXFaNum-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'IRANSans';
	src: url('fonts/IRANSansXFaNum-Medium.woff2') format('woff2'),
		url('fonts/IRANSansXFaNum-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'IRANSans';
	src: url('fonts/IRANSansXFaNum-Bold.woff2') format('woff2'),
		url('fonts/IRANSansXFaNum-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Redirect Elementor global typography variables to the local font */
:root {
	--e-global-typography-primary-font-family: 'IRANSansXFaNum' !important;
	--e-global-typography-secondary-font-family: 'IRANSansXFaNum' !important;
	--e-global-typography-text-font-family: 'IRANSansXFaNum' !important;
	--e-global-typography-accent-font-family: 'IRANSansXFaNum' !important;
}

body,
button,
input,
select,
textarea {
	font-family: 'IRANSansXFaNum', 'IRANSans', Tahoma, sans-serif !important;
}
