/* ==========================================================================
   دارالقرآن احمدانی — استایل برگه‌ها: المنتور، تماس با ما، محتوای ساده، فرم پرداخت (Cupri)
   ========================================================================== */
/* برگه‌های المنتور با سربرگ قالب */
.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); }


/* ==========================================================================
   برگه تماس با ما
   ========================================================================== */
.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; }
}

/* ==========================================================================
   محتوای برگه‌های ساده (ویرایشگر کلاسیک)
   ========================================================================== */
.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; }

/* ==========================================================================
   فرم پرداخت وجه (افزونه 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); }
