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

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

@font-face {
	font-family: Vazirmatn;
	src: url('fonts/Vazirmatn-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

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

/* Calinja palette (brand book v4): firouzeh 700 for buttons, 800 for links */
:root {
	--pri-color: #0B7A71;
	--grady-color: #0A635C;
	--pg-ink: #14211F;
	--pg-ink-soft: #1B2C29;
	--pg-cream: #F4F8F7;
	--pg-text: #2A3A37;
	--pg-muted: #55645F;
	--pg-line: #D5E2DF;
	--headFont: Vazirmatn, sans-serif;
	--bodyFont: Vazirmatn, sans-serif;
}

.site-logo .custom-logo,
.custom-logo-link img,
.navbar-brand .custom-logo,
footer .mg-footer-bottom-area .custom-logo {
	width: auto !important;
	height: auto !important;
	max-height: 56px;
	max-width: 56px;
	object-fit: contain;
}

html,
body,
button,
input,
select,
textarea,
.navbar-wp,
.site-title,
.site-description,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: Vazirmatn, sans-serif !important;
}

::selection {
	background: #CDEFEA;
	color: #0A635C;
}

body,
.grey-bg {
	color: var(--pg-text);
	background: var(--pg-cream);
}

/* Header banner: no photo, faint orange dot pattern */
.mg-nav-widget-area-back {
	background-color: #E6F7F5 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='3' cy='3' r='1.15' fill='%23f97316' fill-opacity='0.14'/%3E%3C/svg%3E") !important;
	background-size: 28px 28px !important;
	background-repeat: repeat !important;
	background-position: 0 0 !important;
}

.mg-nav-widget-area-back .overlay,
.mg-nav-widget-area-back .inner {
	background-color: transparent !important;
}

.mg-headwidget .site-title a,
.mg-headwidget .site-description {
	color: var(--pg-ink);
}

/* Header: orange brand, top strip slightly deeper */
.mg-headwidget .mg-head-detail {
	background: #0B7A71;
}

.mg-headwidget .navbar-wp,
.mg-headwidget.center .navbar-wp {
	background: var(--pri-color);
}

.mg-headwidget .navbar-wp .navbar-nav > li > a:hover,
.mg-headwidget .navbar-wp .navbar-nav > li > a:focus,
.mg-headwidget .navbar-wp .navbar-nav > .active > a,
.mg-headwidget .navbar-wp .navbar-nav > .active > a:hover,
.mg-headwidget .navbar-wp .navbar-nav > .active > a:focus {
	background: var(--grady-color);
	color: #fff;
}

.navbar-wp .dropdown-menu,
.navbar-wp .dropdown-menu > li > a {
	background: var(--pg-ink-soft) !important;
}

.mg-blog-post-box a:hover,
.mg-blog-post-box a:focus,
.entry-content a:hover,
.entry-content a:focus,
.mg-sidebar a:hover,
.mg-sidebar a:focus {
	color: #0B7A71;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
button:hover,
input[type="submit"]:focus,
input[type="reset"]:focus,
button:focus,
.mg-search-modal .mg-search .btn:hover {
	background: #0B7A71;
	border-color: #0B7A71;
	color: #fff;
}

/* Footer */
.mg-footer,
.mg-footer-widget-area,
.mg-footer-copyright {
	background: var(--pg-ink);
	color: #E6F7F5;
}

.mg-footer a,
.mg-footer-copyright a,
body .site-title-footer a,
body .site-description-footer {
	color: #E6F7F5;
}

.mg-footer a:hover,
.mg-footer-copyright a:hover {
	color: #14A89A;
}

.mg-footer-widget-box .mg-widget .mg-wid-title h6,
.mg-footer .mg-widget h6 {
	color: #fff;
	border-color: #14A89A;
}

/* Cards, tags, accents */
.mg-tpt-txnlst ul li a {
	background: #E6F7F5;
	color: #0B7A71;
}

.mg-heading h3,
.mg-heading h3 a,
.mg-blog-post-box .mg-blog-title a {
	color: var(--pg-ink);
}

.mg-blog-post-box .mg-blog-title a:hover {
	color: #0A635C;
}

/* Category chips stay on-brand */
a.newsup-categories.category-color-1 {
	background: var(--grady-color);
}

a.newsup-categories.category-color-2 {
	background: #D0384F;
}

a.newsup-categories.category-color-3 {
	background: #0B7A71;
}

a.newsup-categories.category-color-4 {
	background: #14A89A;
}

/* Widget titles / section bars */
.mg-wid-title,
.mg-sec-title,
.mg-blog-post-box .small,
.nav-tabs .nav-link.active {
	border-color: #14A89A;
}

.nav-tabs .nav-link.active,
.mg-latest-news .bn_title {
	background: var(--pri-color);
	color: #fff;
}

/* Pagination */
.navigation.pagination .nav-links .page-numbers.current,
.navigation.pagination .nav-links a:hover {
	background: var(--pri-color);
	border-color: var(--pri-color);
	color: #fff;
}

/* Top tags / ticker */
.mg-latest-news .bn_title .title,
.mg-tpt-txnlst strong {
	color: var(--pg-ink);
}

/* Single post */
.mg-blog-post-box .mg-blog-meta a:hover,
.single-post .mg-blog-post-box a {
	color: #0A635C;
}

blockquote,
blockquote.wp-block-quote {
	background: #E6F7F5;
	border-color: #14A89A;
}

.mg-footer-bottom-area {
	display: none !important;
}

footer.footer {
	background: var(--pg-ink) !important;
	background-image: none !important;
}

footer.footer .overlay {
	background: transparent !important;
}

.mg-footer-copyright {
	display: block !important;
	padding: 40px 20px 32px;
	border-top: 3px solid #14A89A;
}

.pg-footer {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}

.pg-footer__brand {
	margin: 0 0 6px;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 700;
}

.pg-footer__tag {
	margin: 0 0 18px;
	color: #E6F7F5;
	font-size: 0.9rem;
}

.pg-footer__nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-bottom: 18px;
}

.pg-footer__nav a {
	color: #E6F7F5;
	font-weight: 600;
}

.pg-footer__nav a:hover,
.pg-footer__nav a:focus {
	color: #14A89A;
}

.pg-footer__copy {
	margin: 0;
	color: #9DB0AB;
	font-size: 0.8rem;
}

.mobilehomebtn,
.comments-link {
	display: none !important;
}

.media-heading span {
	margin-left: 0.35em;
}

.mg-fea-area .top-right-area {
	display: none !important;
}

.mg-fea-area .col-md-8 {
	max-width: 100%;
	flex: 0 0 100%;
}

.mg-fea-area .mg-blog-post.lg {
	margin-right: 0;
	border-radius: 16px;
}

.mg-blog-post-box {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #E6F7F5;
	box-shadow: 0 8px 24px rgba(234, 88, 12, 0.06);
	background: #fff;
}

/* Mobile: hamburger takes the search slot; search stays on desktop */
@media (max-width: 991.98px) {
	.m-header {
		justify-content: flex-end;
	}

	.m-header .mg-search-box {
		display: none !important;
	}

	.m-header .navbar-toggler.mx-auto {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}
