/* ==========================================================================
   آکادمی احمدانی — سازگاری با ابزارک‌های قالب قبلی (Edubin) در المنتور
   صفحه اساتید و ...
   ========================================================================== */

/* برگه‌های المنتور با سربرگ قالب */
.fullwidth--elementor { position: relative; padding: 50px 0 90px; isolation: isolate; }
.fullwidth__pattern { position: absolute; inset: 0; z-index: -1; background: var(--pattern); background-size: 88px; opacity: .05; pointer-events: none; -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%); }
.fullwidth--elementor .elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--container); margin-inline: auto; }
.fullwidth--elementor .e-con { --container-max-width: var(--container); }

/* ---------- کارت اساتید (edubin-teacher-addons) ---------- */
.elementor-widget-edubin-teacher-addons .row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 34px 28px;
	margin: 0;
	padding: 20px 0 0;
}
.elementor-widget-edubin-teacher-addons .row::before,
.elementor-widget-edubin-teacher-addons .row::after { display: none; }
.elementor-widget-edubin-teacher-addons .row > [class*="col-"] { max-width: none; width: auto; flex: none; padding: 0; }

.edubin-single-teacher {
	position: relative;
	margin: 0 !important;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 34px 26px 28px;
	text-align: center;
	background: var(--surface) !important;
	border: 1px solid var(--line);
	border-radius: 220px 220px var(--radius) var(--radius) / 150px 150px var(--radius) var(--radius);
	box-shadow: 0 16px 36px -28px rgba(6, 41, 31, .6);
	overflow: hidden;
	isolation: isolate;
	transition: transform .5s var(--ease), box-shadow .5s, border-color .5s;
	animation: ahmTeacherIn .9s var(--ease) both;
}
.elementor-widget-edubin-teacher-addons .row > :nth-child(2) .edubin-single-teacher { animation-delay: .1s; }
.elementor-widget-edubin-teacher-addons .row > :nth-child(3) .edubin-single-teacher { animation-delay: .2s; }
.elementor-widget-edubin-teacher-addons .row > :nth-child(4) .edubin-single-teacher { animation-delay: .3s; }
.elementor-widget-edubin-teacher-addons .row > :nth-child(5) .edubin-single-teacher { animation-delay: .4s; }
.elementor-widget-edubin-teacher-addons .row > :nth-child(6) .edubin-single-teacher { animation-delay: .5s; }
.elementor-widget-edubin-teacher-addons .row > :nth-child(n+7) .edubin-single-teacher { animation-delay: .6s; }
@keyframes ahmTeacherIn { from { opacity: 0; transform: translateY(34px); } }

/* نیم‌دایره زمردی بالای کارت با نقش هندسی */
.edubin-single-teacher::before {
	content: "";
	position: absolute; z-index: -1;
	top: 0; left: 0; right: 0; height: 150px;
	background: var(--pattern) center / 64px, linear-gradient(160deg, var(--em-700), var(--em-900));
	background-blend-mode: soft-light, normal;
	border-radius: inherit;
	border-bottom-left-radius: 50% 40px;
	border-bottom-right-radius: 50% 40px;
}
.edubin-single-teacher:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--line-gold); }

.edubin-single-teacher .image { position: relative; margin: 0 0 18px; background: none !important; }
.edubin-single-teacher .image > a { display: block; }
.edubin-single-teacher .teacher-image {
	position: relative;
	width: 210px; height: 210px;
	display: grid; place-items: center;
	margin: 0 auto;
	background: none !important;
	border-radius: 0 !important;
	overflow: visible !important;
}
/* ستاره هشت‌پر طلایی چرخان پشت عکس */
.edubin-single-teacher .teacher-image::before {
	content: "";
	position: absolute; inset: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 2 61.5 22.3 84 16 77.7 38.5 98 50 77.7 61.5 84 84 61.5 77.7 50 98 38.5 77.7 16 84 22.3 61.5 2 50 22.3 38.5 16 16 38.5 22.3Z' fill='%23f6e8bd' fill-opacity='.18' stroke='%23e3c67a' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: spin 50s linear infinite;
	transition: transform 1.2s var(--ease);
}
.edubin-single-teacher:hover .teacher-image::before { animation-duration: 8s; }
/* حلقه طلایی دور عکس */
.edubin-single-teacher .teacher-image::after {
	content: "";
	position: absolute; inset: 17.5%; z-index: 2;
	border-radius: 50%;
	border: 2.5px solid var(--gold);
	box-shadow: 0 0 0 4px var(--surface), inset 0 0 0 2px rgba(0, 0, 0, .08), 0 18px 34px -14px rgba(6, 41, 31, .8);
	pointer-events: none;
	transition: border-color .4s, box-shadow .5s;
}
.edubin-single-teacher:hover .teacher-image::after { border-color: var(--gold-2); box-shadow: 0 0 0 4px var(--surface), 0 0 30px 6px rgba(201, 162, 74, .4); }
/* مدار نورانی */
.edubin-single-teacher .image > a { position: relative; width: 210px; margin: 0 auto; }
.edubin-single-teacher .image > a::after {
	content: "";
	position: absolute; inset: 9%; z-index: 3;
	border-radius: 50%;
	border: 1px dashed rgba(201, 162, 74, .55);
	background: radial-gradient(circle at 50% 0, #fff6d6 0 3px, rgba(246, 227, 164, .55) 4px, transparent 7px);
	animation: spin 9s linear infinite;
	pointer-events: none;
}
/* عکس‌ها قاب تیره داخلی دارند؛ با برش دایره‌ای فقط چهره نمایش داده می‌شود */
.edubin-single-teacher .teacher-image img {
	position: relative; z-index: 1;
	width: 84% !important; height: 84% !important;
	max-width: none;
	padding: 0 !important; border: 0 !important;
	border-radius: 0 !important;
	object-fit: cover;
	background: transparent;
	clip-path: circle(39% at 50% 50%);
	transition: transform .7s var(--ease);
}
.edubin-single-teacher:hover .teacher-image img { filter: brightness(1.06) saturate(1.08); }

.edubin-single-teacher .teacher-content-area,
.edubin-single-teacher .teacher-content {
	position: static !important;
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	background: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100%;
}
.edubin-single-teacher .teacher-content-area { display: flex; flex-direction: column; flex: 1; }
.edubin-single-teacher .teacher-name {
	font-family: var(--f-body) !important;
	font-size: 19px !important;
	font-weight: 800 !important;
	line-height: 1.6;
	color: var(--text) !important;
	margin: 0 0 6px !important;
	transition: color .3s;
}
.edubin-single-teacher a:hover .teacher-name { color: var(--em-600) !important; }
[data-mode="dark"] .edubin-single-teacher a:hover .teacher-name { color: var(--gold-2) !important; }
.edubin-single-teacher .teacher-degree {
	display: inline-block !important;
	width: auto !important;
	padding: 4px 16px;
	border-radius: 999px;
	background: rgba(201, 162, 74, .13);
	color: var(--gold-d) !important;
	font-size: 13.5px !important;
	font-weight: 700;
}
[data-mode="dark"] .edubin-single-teacher .teacher-degree { color: var(--gold-2) !important; }

/* شبکه‌های اجتماعی استاد */
.edubin-single-teacher .techer-social,
.edubin-single-teacher .teacher-social {
	position: static !important;
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: auto !important;
	padding-top: 18px !important;
	background: none !important;
	min-height: 54px;
}
.edubin-single-teacher .social-link {
	display: inline-grid !important;
	place-items: center;
	width: 38px; height: 38px;
	margin: 0 !important;
	border-radius: 50%;
	border: 1px solid var(--line-gold);
	background: transparent !important;
	color: var(--gold-d) !important;
	transition: all .3s var(--ease);
}
.edubin-single-teacher .social-link:hover { background: var(--gold) !important; color: var(--em-900) !important; transform: translateY(-3px) rotate(-8deg); }
.edubin-single-teacher .social-link i {
	display: block;
	width: 18px; height: 18px;
	font-size: 0 !important;
	background: currentColor;
	-webkit-mask: var(--ico) center / contain no-repeat;
	mask: var(--ico) center / contain no-repeat;
	--ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 14a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1'/%3E%3C/svg%3E");
}
.edubin-single-teacher .social-link i::before { display: none !important; }
.edubin-single-teacher .social-link i[class*="flaticon-instagram"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.2' fill='%23000'/%3E%3C/svg%3E"); }
.edubin-single-teacher .social-link i[class*="flaticon-twitter"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h4.6l4 5.6L17.5 3H20l-6.2 7.1L21 21h-4.6l-4.4-6.1L6.6 21H4l6.7-7.6z'/%3E%3C/svg%3E"); }
.edubin-single-teacher .social-link i[class*="flaticon-facebook"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8h3V4h-3a4 4 0 0 0-4 4v2H8v4h2v7h4v-7h3l1-4h-4V8.5c0-.3.2-.5.5-.5z'/%3E%3C/svg%3E"); }
.edubin-single-teacher .social-link i[class*="flaticon-telegram"], .edubin-single-teacher .social-link i[class*="flaticon-paper-plane"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.5 3.5 2.8 10.7c-1 .4-1 1.6 0 1.9l4.7 1.5 1.8 5.6c.3.8 1.3 1 1.9.4l2.6-2.5 4.9 3.6c.7.5 1.7.1 1.9-.8L23 4.9c.2-1-.6-1.8-1.5-1.4zM9.6 14l8-6.4-6.2 7.3-.3 2.9z'/%3E%3C/svg%3E"); }
.edubin-single-teacher .social-link i[class*="flaticon-whatsapp"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M3.5 20.5 5 16a8.5 8.5 0 1 1 3.2 3z'/%3E%3Cpath d='M9 9.5c.3 2 1.8 3.8 4 4.8l1.2-1.1 1.8.8c-.2 1-1 1.7-2 1.7-3.3-.3-6-3-6.3-6.3 0-1 .7-1.8 1.7-2l.8 1.8z' fill='%23000' stroke='none'/%3E%3C/svg%3E"); }
.edubin-single-teacher .social-link i[class*="flaticon-youtube"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 8.2a3 3 0 0 0-2.1-2.1C18 5.6 12 5.6 12 5.6s-6 0-7.9.5A3 3 0 0 0 2 8.2 31 31 0 0 0 1.6 12 31 31 0 0 0 2 15.8a3 3 0 0 0 2.1 2.1c1.9.5 7.9.5 7.9.5s6 0 7.9-.5a3 3 0 0 0 2.1-2.1 31 31 0 0 0 .4-3.8 31 31 0 0 0-.4-3.8zM10 15.2V8.8l5.2 3.2z'/%3E%3C/svg%3E"); }
.edubin-single-teacher .social-link i[class*="flaticon-linkedin"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4v12H4zM6 3a2.2 2.2 0 1 1 0 4.4A2.2 2.2 0 0 1 6 3zM10 9h3.8v1.7c.6-1 1.9-2 3.9-2 4 0 4.3 2.6 4.3 6V21h-4v-5.6c0-1.4 0-3.1-1.9-3.1s-2.2 1.5-2.2 3V21h-4z'/%3E%3C/svg%3E"); }

/* لایه درخشش هنگام هاور */
.edubin-single-teacher > .fx-spot { z-index: -1; }

@media (max-width: 960px) {
	.elementor-widget-edubin-teacher-addons .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
	.edubin-single-teacher .teacher-image, .edubin-single-teacher .image > a { width: 180px; height: 180px; }
}
@media (max-width: 560px) {
	.elementor-widget-edubin-teacher-addons .row { grid-template-columns: 1fr; }
	.edubin-single-teacher { padding: 30px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.edubin-single-teacher { animation: none; }
}

/* عرض محتوای ابزارک اساتید */
.fullwidth--elementor .elementor-widget-edubin-teacher-addons { max-width: var(--container); margin-inline: auto; }
@media (max-width: 1280px) {
	.fullwidth--elementor .elementor-widget-edubin-teacher-addons { padding-inline: 16px; }
}

/* ==========================================================================
   برگه تماس با ما
   ========================================================================== */
.contact__ayah { text-align: center; margin: 0 auto 46px; }
.contact__ayah span { display: block; font-family: var(--f-quran); font-size: clamp(28px, 4vw, 44px); line-height: 1.8; color: var(--em-700); }
[data-mode="dark"] .contact__ayah span { color: var(--gold-3); }
.contact__ayah small { color: var(--muted); font-size: 14px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 34px; align-items: start; }
.contact__cards { display: grid; gap: 16px; }
.c-card {
	position: relative; display: flex; align-items: center; gap: 18px;
	padding: 18px 22px; border-radius: 20px;
	background: var(--surface); border: 1px solid var(--line);
	color: var(--text) !important;
	box-shadow: 0 12px 30px -26px rgba(6, 41, 31, .6);
	transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
a.c-card:hover { transform: translateX(-6px); box-shadow: var(--shadow); border-color: var(--line-gold); }
.c-card__ico { position: relative; flex: none; display: grid; place-items: center; width: 62px; height: 62px; color: var(--gold-2); }
.c-card__ico .ahm-star { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--em-800); transition: transform 1s var(--ease); }
[data-mode="dark"] .c-card__ico .ahm-star { color: var(--em-600); }
.c-card:hover .c-card__ico .ahm-star { transform: rotate(135deg); }
.c-card__ico .ahm-ico { position: relative; width: 24px; height: 24px; }
.c-card small { display: block; font-size: 13px; color: var(--muted); }
.c-card b { display: block; font-size: 16px; font-weight: 800; }
.c-card--social .socials { margin-top: 6px; }
.contact__form {
	position: relative; overflow: hidden;
	padding: clamp(22px, 4vw, 40px);
	border-radius: 28px;
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-lg);
}
.contact__form::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--gold-grad); }
.contact__title { display: flex; align-items: center; gap: 10px; font-size: 24px; margin-bottom: 18px; }
.contact__title-star { width: 22px; height: 22px; color: var(--gold); animation: spin 14s linear infinite; }
.contact__note { color: var(--text-2); line-height: 2.1; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.contact__extra { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line-gold); }
.contact__map { margin-top: 40px; border-radius: 28px; overflow: hidden; border: 1.5px solid var(--line-gold); box-shadow: var(--shadow); padding: 8px; background: var(--surface); }
.contact__map iframe { display: block; width: 100%; height: 420px; border: 0; border-radius: 20px; }

/* Contact Form 7 */
.wpcf7 form p { margin: 0 0 16px; }
.wpcf7 label { display: block; font-weight: 700; margin-bottom: 4px; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 .wpcf7-submit { padding: .9em 2.2em; font-size: 16px; cursor: pointer; box-shadow: 0 10px 24px -14px rgba(201, 162, 74, .9); }
.wpcf7 .wpcf7-response-output { border-radius: 12px; margin: 16px 0 0 !important; padding: 12px 16px !important; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 13px; color: var(--crimson); }

@media (max-width: 960px) {
	.contact__grid { grid-template-columns: 1fr; }
	.contact__map iframe { height: 320px; }
}

/* ==========================================================================
   ابزارک‌های عمومی Edubin / المنتور در برگه‌ها
   ========================================================================== */
.edubin-section-title { text-align: inherit; margin-bottom: 18px; }
.edubin-section-title .section-title-txt,
.edubin-section-title h2, .edubin-section-title h3 {
	font-family: var(--f-kufi) !important;
	font-size: clamp(24px, 3vw, 34px) !important;
	color: var(--text) !important;
	margin: 0 0 10px !important;
}
.edubin-title-sperator-sec, .edubin-section-title .edubin-title-sperator {
	display: flex !important; align-items: center; gap: 8px; width: auto !important; height: auto !important; background: none !important; border: 0 !important;
}
.edubin-title-sperator-sec::before {
	content: ""; width: 60px; height: 2px; background: linear-gradient(270deg, var(--gold), transparent);
}
.edubin-title-sperator-sec::after {
	content: ""; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg);
}
.edubin-title-sperator-sec > * { display: none !important; }

.fullwidth--elementor .elementor-icon-list-items { display: grid; gap: 12px; }
.fullwidth--elementor .elementor-icon-list-item {
	display: flex !important; align-items: center; gap: 14px;
	padding: 14px 18px !important; margin: 0 !important;
	border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
	transition: border-color .3s, transform .3s var(--ease);
}
.fullwidth--elementor .elementor-icon-list-item::after { display: none !important; }
.fullwidth--elementor .elementor-icon-list-item:hover { border-color: var(--line-gold); transform: translateX(-4px); }
.fullwidth--elementor .elementor-icon-list-icon {
	display: inline-grid !important; place-items: center; flex: none;
	width: 44px; height: 44px; border-radius: 14px; transform: rotate(45deg);
	background: var(--em-800);
}
.fullwidth--elementor .elementor-icon-list-icon i, .fullwidth--elementor .elementor-icon-list-icon svg { transform: rotate(-45deg); color: var(--gold-2) !important; fill: var(--gold-2) !important; font-size: 16px !important; }
.fullwidth--elementor .elementor-icon-list-text { font-weight: 700; color: var(--text) !important; padding: 0 !important; }
.fullwidth--elementor .elementor-widget-google_maps iframe, .fullwidth--elementor .elementor-custom-embed iframe {
	border-radius: 22px; border: 1.5px solid var(--line-gold) !important; box-shadow: var(--shadow);
}
.fullwidth--elementor .elementor-widget-heading .elementor-heading-title { font-family: var(--f-kufi); color: var(--text); }
.fullwidth--elementor .elementor-widget-text-editor { font-size: 16.5px; line-height: 2.1; color: var(--text-2); }
.fullwidth--elementor .elementor-button { border-radius: 999px !important; background: var(--gold-grad) !important; color: var(--em-900) !important; font-weight: 700 !important; font-family: var(--f-body) !important; }

/* ==========================================================================
   محتوای برگه‌های ساده (ویرایشگر کلاسیک)
   ========================================================================== */
.prose img { height: auto; box-shadow: 0 18px 40px -26px rgba(6, 41, 31, .6); transition: transform .5s var(--ease), box-shadow .5s; }
.prose a:hover > img { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prose img.alignnone { display: block; margin-inline: auto; }

/* شبکه کارت‌های تصویری (مثلاً ورود به کلاس آنلاین: چند تصویر لینک‌دار در یک پاراگراف) */
.prose p:has(> a:nth-of-type(3) > img) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 22px;
	margin-top: 26px;
}
.prose p:has(> a:nth-of-type(3) > img) > br { display: none; }
.prose p:has(> a:nth-of-type(3) > img) > a {
	position: relative; display: block; text-decoration: none;
	border-radius: 22px; overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line-gold);
	padding: 8px;
	box-shadow: 0 14px 30px -24px rgba(6, 41, 31, .7);
	transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
.prose p:has(> a:nth-of-type(3) > img) > a::after {
	content: "ورود به کلاس";
	position: absolute; bottom: 16px; right: 50%; transform: translate(50%, 12px);
	padding: 6px 18px; border-radius: 999px;
	background: var(--gold-grad); color: var(--em-900);
	font-size: 13.5px; font-weight: 800; white-space: nowrap;
	opacity: 0; transition: opacity .35s, transform .35s var(--ease);
	box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5);
}
.prose p:has(> a:nth-of-type(3) > img) > a:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.prose p:has(> a:nth-of-type(3) > img) > a:hover::after { opacity: 1; transform: translate(50%, 0); }
.prose p:has(> a:nth-of-type(3) > img) img { width: 100%; height: auto; margin: 0 !important; border-radius: 16px; box-shadow: none; }
.ahm-page-online .prose > p:first-child {
	padding: 16px 20px; border-radius: 16px;
	background: rgba(201, 162, 74, .12); border-right: 4px solid var(--gold);
	font-weight: 700;
}
.ahm-page-online .entry, .ahm-page-tajvid .entry { max-width: none; }

/* ==========================================================================
   برگه معرفی استاد
   ========================================================================== */
.ahm-teacher-page .entry__content {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	column-gap: 40px;
	align-items: start;
}
.ahm-teacher-page .entry__content > * { grid-column: 2; margin: 0 !important; }
.ahm-teacher-page .entry__content > p:first-child:has(img) {
	grid-column: 1; grid-row: 1 / span 30;
	position: sticky; top: 110px;
	padding: 10px; border-radius: 26px;
	background: var(--surface-2); border: 1.5px solid var(--line-gold);
}
.ahm-teacher-page .entry__content > p:first-child img { width: 100%; border-radius: 18px; margin: 0; }
.ahm-teacher-page .entry__content > p:not(:first-child) {
	position: relative;
	padding: 12px 34px 12px 8px;
	border-bottom: 1px dashed var(--line-gold);
	line-height: 2;
}
.ahm-teacher-page .entry__content > p:not(:first-child)::before {
	content: ""; position: absolute; right: 8px; top: 24px;
	width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg);
}
.ahm-teacher-page .entry__content > p:nth-child(2) {
	font-family: var(--f-kufi); font-size: 26px; border-bottom: 0; padding-right: 0; color: var(--em-700);
}
[data-mode="dark"] .ahm-teacher-page .entry__content > p:nth-child(2) { color: var(--gold-2); }
.ahm-teacher-page .entry__content > p:nth-child(2)::before { display: none; }
.ahm-teacher-page .entry__content > p:has(> a[href*="instagram"]) { border-bottom: 0; padding-right: 0; }
.ahm-teacher-page .entry__content > p:has(> a[href*="instagram"])::before { display: none; }
.ahm-teacher-page .entry__content a[href*="instagram"] {
	display: inline-flex; align-items: center; gap: 8px;
	padding: .6em 1.4em; border-radius: 999px;
	background: var(--gold-grad); color: var(--em-900) !important;
	font-weight: 800; text-decoration: none; direction: ltr; font-size: 14px;
	word-break: break-all;
}
.ahm-teacher-page .entry__content a[href*="instagram"]::before {
	content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ahm-teacher-page .entry { max-width: 1040px; margin-inline: auto; }
.ahm-teacher-page .ahm-container--narrow { max-width: 1100px; }
.teacher-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; padding-top: 26px; border-top: 1px dashed var(--line-gold); }
@media (max-width: 860px) {
	.ahm-teacher-page .entry__content { grid-template-columns: 1fr; }
	.ahm-teacher-page .entry__content > *, .ahm-teacher-page .entry__content > p:first-child:has(img) { grid-column: 1; grid-row: auto; position: static; }
	.ahm-teacher-page .entry__content > p:first-child:has(img) { max-width: 320px; margin: 0 auto 20px !important; }
}

/* ==========================================================================
   فرم پرداخت وجه (افزونه Cupri)
   ========================================================================== */
.prose form:has(.cupri_input_wrapper), .cupri_row {
	max-width: 560px; margin: 26px auto 0;
	padding: clamp(20px, 4vw, 34px);
	border-radius: 24px;
	background: var(--surface-2);
	border: 1.5px solid var(--line-gold);
	position: relative;
}
.prose form:has(.cupri_input_wrapper)::before {
	content: ""; position: absolute; top: -20px; right: 50%; transform: translateX(50%);
	width: 40px; height: 40px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 2 61.5 22.3 84 16 77.7 38.5 98 50 77.7 61.5 84 84 61.5 77.7 50 98 38.5 77.7 16 84 22.3 61.5 2 50 22.3 38.5 16 16 38.5 22.3Z' fill='%23c9a24a'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: spin 14s linear infinite;
}
.cupri_input_wrapper { margin: 0 0 16px !important; float: none !important; width: 100% !important; }
.cupri_input_wrapper label, .cupri_tbl { display: block !important; width: 100% !important; float: none !important; text-align: right !important; }
.cupri_input_title { display: block; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.cupri_input_wrapper input, .cupri_input_wrapper select, .cupri_input_wrapper textarea { width: 100% !important; max-width: none !important; background: var(--surface) !important; }
.cupri_submit_form_wrapper { text-align: center; margin-top: 8px; }
.cupri_submit_form_wrapper input[type="submit"], .cupri_submit_form_wrapper button, .cupri_submit_form_wrapper .cupri_submit {
	display: inline-flex; padding: .9em 2.4em !important; border: 0 !important; border-radius: 999px !important;
	background: var(--gold-grad) !important; color: var(--em-900) !important;
	font-family: var(--f-body) !important; font-size: 16px !important; font-weight: 800 !important; cursor: pointer;
	box-shadow: 0 12px 26px -12px rgba(201, 162, 74, .9);
	transition: transform .3s var(--ease);
}
.cupri_submit_form_wrapper input[type="submit"]:hover { transform: translateY(-2px); }
