@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700;800;900&display=swap");
/* ===================================================================
 * هسته مشاور — استایل بخش دانش‌آموز (فرانت‌اند)
 * راست‌به‌چپ، سبک، بدون وابستگی — روی هر قالبی کار می‌کند
 * ================================================================== */

.mc-card,
.mc-grid .mc-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 14px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
	direction: rtl;
	text-align: right;
	font-family: Vazirmatn, Tahoma, sans-serif;
}

.mc-card h2 { margin: 0 0 8px; font-size: 18px; color: #1e3a5f; }
.mc-card h3 { margin: 14px 0 6px; font-size: 15px; color: #1e3a5f; }

.mc-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 14px;
	direction: rtl;
}

.mc-span2 { grid-column: span 2; }

@media (max-width: 760px) {
	.mc-grid { grid-template-columns: 1fr; }
	.mc-span2 { grid-column: auto; }
}

.mc-muted { color: #64748b; font-size: 12.5px; }
.mc-ok    { border-color: #86efac; background: #f0fdf4; }
.mc-warn  { border-color: #fcd34d; background: #fffbeb; }
.mc-error { border-color: #fca5a5; background: #fef2f2; }
.mc-ok-text { color: #15803d; }

.mc-btn {
	display: inline-block;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	color: #0f172a;
	border-radius: 8px;
	padding: 8px 16px;
	font-family: inherit;
	font-size: 13.5px;
	cursor: pointer;
	text-decoration: none;
}

.mc-btn:hover { background: #e2e8f0; }

.mc-btn-primary { background: #1e3a5f; border-color: #1e3a5f; color: #fff; }
.mc-btn-primary:hover { background: #16304f; }
.mc-btn-block { display: block; width: 100%; text-align: center; margin-bottom: 8px; }
.mc-btn-sm { padding: 4px 10px; font-size: 12px; }

.mc-input {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 8px 10px;
	font-family: inherit;
	font-size: 13.5px;
	background: #fff;
	margin-bottom: 10px;
	direction: rtl;
}

.mc-input.mc-inline { display: inline-block; width: auto; margin-bottom: 0; }
.mc-input.mc-narrow { width: 84px; }

.mc-form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.mc-form-row label { flex: 1; min-width: 140px; }
.mc-card label { display: block; margin-bottom: 10px; }

.mc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.mc-chip {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	border: 1px solid #cbd5e1;
	border-radius: 20px;
	padding: 5px 12px;
	font-size: 12.5px;
	cursor: pointer;
	background: #fff;
	margin-bottom: 0 !important;
}

.mc-chip:has(input:checked) { background: #dbeafe; border-color: #60a5fa; }

.mc-list { margin: 6px 0; padding-right: 20px; }
.mc-list li { margin-bottom: 4px; }

.mc-plan-row {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 10px;
	background: #f8fafc;
}

.mc-plan-title { margin-bottom: 8px; }
.mc-plan-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.mc-table-wrap { overflow-x: auto; }

.mc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
	margin-bottom: 10px;
}

.mc-table th, .mc-table td {
	border: 1px solid #e2e8f0;
	padding: 6px 8px;
	text-align: right;
}

.mc-table th { background: #1e3a5f; color: #fff; white-space: nowrap; }
.mc-table tr:nth-child(even) td { background: #f8fafc; }

.mc-msg {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 10px;
}

.mc-msg-unread { border-right: 4px solid #3b82f6; background: #eff6ff; }
.mc-msg-read { opacity: .75; }

/* ===================================================================
 * لایه پریمیوم 0.26.2 — هم‌سان با طراحی جدید صفحه اول سایت
 * سرمه‌ای/طلایی/فیروزه‌ای، گوشه‌های گرد، سایه نرم، دکمه‌های پیلی
 * ================================================================== */
.mc-card,
.mc-grid .mc-card {
	background: #fff;
	border: 1px solid #e3eaf5;
	border-radius: 18px;
	padding: 20px 22px;
	margin-bottom: 16px;
	box-shadow: 0 10px 26px rgba(18, 41, 74, .08);
}

.mc-card h2 { color: #081c3d; font-weight: 800; font-size: 19px; }
.mc-card h2::after {
	content: "";
	display: block;
	width: 54px;
	height: 4px;
	border-radius: 99px;
	background: linear-gradient(90deg, #d4af37, #f3d47c);
	margin-top: 8px;
}
.mc-card h3 { color: #0e2f5c; font-weight: 800; }
.mc-muted { color: #5b6b85; }

.mc-btn {
	background: #f5f8fd;
	border: 1.5px solid #e3eaf5;
	color: #12294a;
	border-radius: 999px;
	padding: 9px 20px;
	font-weight: 700;
	transition: .2s;
}
.mc-btn:hover {
	background: #fff;
	border-color: #d4af37;
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(212, 175, 55, .18);
}
.mc-btn-primary {
	background: linear-gradient(150deg, #081c3d, #0e2f5c);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 8px 20px rgba(8, 28, 61, .28);
}
.mc-btn-primary:hover {
	background: linear-gradient(150deg, #0e2f5c, #123a63);
	border-color: transparent;
}

.mc-input {
	border: 1.5px solid #e3eaf5;
	border-radius: 12px;
	background: #f5f8fd;
	padding: 10px 12px;
}
.mc-input:focus { outline: none; border-color: #19b3a6; background: #fff; }

.mc-chip { border-radius: 999px; border-color: #e3eaf5; }
.mc-chip:has(input:checked) {
	background: rgba(25, 179, 166, .12);
	border-color: #19b3a6;
	color: #0d8579;
}

.mc-table th { background: linear-gradient(150deg, #081c3d, #0e2f5c); }
.mc-table th, .mc-table td { border-color: #e3eaf5; }
.mc-msg { border-radius: 14px; border-color: #e3eaf5; }
.mc-plan-row { border-radius: 14px; border-color: #e3eaf5; background: #f5f8fd; }

/* ===================================================================
 * لایه مدرن 0.26.5 — پنل دانش‌آموز هم‌سان با صفحه اول جدید
 * ================================================================== */
body .mc-hub-head {
	background: linear-gradient(150deg, #081c3d, #0e2f5c);
	color: #fff;
	border-radius: 20px;
	padding: 16px 20px;
	box-shadow: 0 12px 30px rgba(8, 28, 61, .25);
}
body .mc-hub-title { color: #f3d47c; font-weight: 900; }
body .mc-hub-badge { background: rgba(25, 179, 166, .2); color: #7ee8dc; border: 1px solid rgba(25, 179, 166, .5); }
body .mc-hub-head .mc-btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; }
body .mc-hub-head .mc-btn:hover { background: rgba(255, 255, 255, .22); border-color: #d4af37; }

body .mc-prio {
	background: radial-gradient(600px 200px at 90% -20%, rgba(25, 179, 166, .25), transparent 60%), linear-gradient(150deg, #081c3d, #0e2f5c);
	color: #fff;
	border-radius: 22px;
	padding: 24px 22px;
	box-shadow: 0 16px 40px rgba(8, 28, 61, .28);
	border: none;
}
body .mc-prio-title { color: #fff; font-size: 18px; font-weight: 900; }
body .mc-prio-sub { color: #dce6f5; }
body .mc-prio-note {
	background: rgba(255, 255, 255, .1);
	border: 1px dashed rgba(243, 212, 124, .5);
	color: #f6e9c8;
	border-radius: 14px;
	padding: 12px 16px;
}
body .mc-prio-badge { background: linear-gradient(135deg, #d4af37, #b8912a); color: #241a03; border-radius: 999px; padding: 4px 14px; font-weight: 800; }
body .mc-prio-closed { color: #fcd34d; }

body .mc-card { position: relative; overflow: hidden; }
body .mc-card:not(.mc-parents-card)::before {
	content: "";
	position: absolute;
	top: 0; right: 0; left: 0;
	height: 4px;
	background: linear-gradient(90deg, #d4af37, #19b3a6);
	opacity: .85;
}

body .mc-btn { font-family: Vazirmatn, Tahoma, sans-serif; transition: .2s; }
body .mc-btn:active { transform: scale(.97); }
body .mc-input { font-family: Vazirmatn, Tahoma, sans-serif; border-radius: 14px; }
body .mc-input:focus { box-shadow: 0 0 0 4px rgba(25, 179, 166, .15); }
body .mc-card label { font-weight: 600; color: #12294a; }

body .mc-chip { transition: .2s; }
body .mc-chip:hover { border-color: #d4af37; }
body .mc-chip:has(input:checked) {
	background: linear-gradient(135deg, rgba(25, 179, 166, .18), rgba(25, 179, 166, .08));
	box-shadow: 0 4px 12px rgba(25, 179, 166, .18);
}

body .mc-table-wrap { border-radius: 14px; overflow: hidden; box-shadow: 0 8px 22px rgba(18, 41, 74, .08); border: 1px solid #e3eaf5; }
body .mc-table th { font-weight: 800; }
body .mc-table tr:hover td { background: #f0f6fc; }

body .mc-msg { border-radius: 16px; }
body .mc-login-card { border-radius: 22px; box-shadow: 0 18px 44px rgba(18, 41, 74, .14); border: 1px solid #e3eaf5; }

body .mc-hub-next { color: #0e2f5c; font-weight: 900; position: relative; padding-right: 14px; }
body .mc-hub-next::before {
	content: "";
	position: absolute;
	right: 0; top: 50%;
	transform: translateY(-50%);
	width: 5px; height: 18px;
	border-radius: 99px;
	background: linear-gradient(180deg, #d4af37, #19b3a6);
}

/* لایه خوانایی 0.26.6 */
body .mc-card { font-size: 14.5px; }
body .mc-card p { line-height: 2.2; }
body .mc-card h3 { font-size: 16px; }
body .mc-btn { font-weight: 800; font-size: 13.5px; }
body .mc-muted { font-size: 13px; font-weight: 600; }
body .mc-input { font-weight: 600; }

/* ===================================================================
 * برندبار و منوی مدرن سرصفحه (v0.26.8)
 * ================================================================== */
.mc-brandbar {
	background: radial-gradient(600px 200px at 85% 0%, rgba(212, 175, 55, .14), transparent 60%), linear-gradient(180deg, #f8f3ea, #f1e9da);
	border-bottom: 2px solid rgba(212, 175, 55, .4);
	padding: 12px 0;
	max-width: 980px;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
	border-radius: 26px;
}
.mc-brand-lock {
	max-width: 940px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 18px;
	direction: rtl;
	text-align: right;
	justify-content: center;
	text-align: center;
	box-sizing: border-box;
}
.mc-brand-badge {
	position: relative;
	flex: 0 0 auto;
	width: 92px;
	height: 92px;
	overflow: hidden;
	border-radius: 22px;
	border: 2px solid rgba(184, 145, 42, .65);
	box-shadow: 0 12px 26px rgba(8, 28, 61, .18);
	background: #f6f1e7;
}
.mc-brand-badge img {
	position: absolute;
	top: -9px;
	right: -95px;
	width: 286px;
	height: auto;
	max-width: none;
}
.mc-brand-txt strong {
	display: block;
	font-size: clamp(17px, 3vw, 27px);
	font-weight: 900;
	color: #0b2447;
	line-height: 1.7;
}
.mc-brand-txt small {
	display: block;
	font-size: 13px;
	font-weight: 800;
	color: #0d8579;
	margin-top: 2px;
}
@media (max-width: 640px) {
	.mc-brand-badge { width: 68px; height: 68px; border-radius: 16px; }
	.mc-brand-badge img { top: -6px; right: -71px; width: 212px; }
}

body .mc-site-nav {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	background: linear-gradient(150deg, #0b2447, #123a63);
	border-radius: 999px;
	padding: 8px 14px;
	box-shadow: 0 12px 30px rgba(8, 28, 61, .28);
	margin: 10px auto 6px;
	max-width: 820px;
}
body .mc-site-nav .mc-nav-link {
	color: #eaf2fc;
	text-decoration: none;
	font-weight: 800;
	font-size: 14.5px;
	border-radius: 999px;
	padding: 9px 18px;
	transition: .2s;
}
body .mc-site-nav .mc-nav-link:hover {
	background: rgba(255, 214, 107, .16);
	color: #ffd66b;
	transform: translateY(-2px);
}
body .mc-site-nav .mc-nav-exit {
	color: #ffb4b4;
	text-decoration: none;
	font-weight: 800;
	font-size: 13.5px;
	border: 1.5px solid rgba(255, 120, 120, .55);
	border-radius: 999px;
	padding: 7px 16px;
	transition: .2s;
}
body .mc-site-nav .mc-nav-exit:hover {
	background: rgba(214, 54, 56, .18);
	color: #fff;
}

/* منوی روتین + خوشه پنل (v0.26.9) */
body .mc-site-nav { max-width: 980px; }
body .mc-site-nav .mc-nav-div {
	width: 1.5px;
	height: 22px;
	background: rgba(255, 255, 255, .25);
	border-radius: 99px;
	margin: 0 6px;
}
body .mc-site-nav .mc-nav-panel { color: #ffe08f; }
body .mc-site-nav .mc-nav-panel:hover { color: #fff; background: rgba(255, 214, 107, .2); }
body .mc-site-nav .mc-nav-login {
	background: linear-gradient(135deg, #ffd66b, #f6b93b);
	color: #3b2a05;
	border-radius: 999px;
	padding: 8px 18px;
	font-weight: 900;
	font-size: 13.5px;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(246, 185, 59, .35);
	transition: .2s;
}
body .mc-site-nav .mc-nav-login:hover { transform: translateY(-2px); color: #241a03; }

/* هدر ترکیبی v0.26.12 — v0.26.16 چسباندن: فاصله ۶px و حاشیه پایین ۴px تا تقریبا بچسبد */
body .mc-topwrap { width: 100%; flex-basis: 100%; max-width: 980px; margin: 0 auto 4px; box-sizing: border-box; padding: 0 12px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
body .mc-topwrap .mc-site-nav,
body .mc-topwrap .mc-brandbar { width: 100%; max-width: 980px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
/* فاصله سفید تم بعد از هدر را ببند — این سفید همان ضربدر کاربر بود */
body .wp-site-blocks > * + * { margin-block-start: 0 !important; }
header.wp-block-template-part { margin-bottom: 4px !important; }
main.wp-block-group { margin-top: 0 !important; }
.mch { margin-top: -8px; }
@media (min-width: 768px) {
	body .mc-brand-name { white-space: nowrap; }
}

/* زیرمنوی خدمات (v0.26.17) */
.mc-nav-hasdrop:hover .mc-nav-drop,
.mc-nav-hasdrop:focus-within .mc-nav-drop { display:flex !important; }
.mc-nav-drop-link:hover { background: rgba(255,214,107,.16) !important; color:#ffd66b !important; }
@media (max-width: 640px) {
  .mc-nav-hasdrop { flex: 0 0 auto; }
  .mc-nav-drop { right:50% !important; transform: translateX(50%); min-width: 200px; }
}

/* پل نامرئی برای هاور بدون کلیک (v0.26.18) */
.mc-nav-hasdrop::after{content:"";position:absolute;top:100%;right:0;left:0;height:14px;display:block}
.mc-nav-drop{margin-top:10px}

