/* AminH academy: home sections */
.amh-li { width: 100%; height: 100%; display: block; }
.amh-h2 { font-size: 25px; margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid #e3e3e3; color: var(--amh-ink, #1f1b2e); }
.amh-brand-w { color: var(--amh-a, #f99d1c); font-family: "digibold", "digi", inherit; }
.amh-btn-acc { background: var(--amh-a, #f99d1c); border-color: var(--amh-a, #f99d1c); color: #fff !important; }
.amh-btn-acc:hover { background: #e88a05; border-color: #e88a05; }

/* search form with a two-colour placeholder */
.amh-sform { position: relative; display: flex; align-items: center; gap: 10px; }
.amh-sform input[type=search] { flex: 1 1 auto; height: 56px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); color: #fff; padding: 0 24px; font-size: 15px; box-shadow: none; }
.amh-sform input[type=search]:focus { border-color: var(--amh-a, #f99d1c); background: rgba(255, 255, 255, .18); outline: 0; }
.amh-sform-ph { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); color: #fff; font-size: 15px; pointer-events: none; white-space: nowrap; }
.amh-sform input:focus + .amh-sform-ph, .amh-sform input:not(:placeholder-shown) + .amh-sform-ph { opacity: 0; }
.amh-sform button { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; border: 0; padding: 15px; background: var(--amh-a, #f99d1c); color: #fff; cursor: pointer; transition: transform .2s; }
.amh-sform button:hover { transform: scale(1.06); }
.amh-sform button .amh-li { stroke-width: 4; }

/* hero */
.amh-hero { position: relative; background: var(--amh-p, #533e96); color: #fff; overflow: hidden; padding: 30px 0 110px; }
.amh-hero-in { max-width: 1250px; margin: 0 auto; padding: 0 15px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 40px; position: relative; z-index: 1; }
.amh-hero-h { color: #fff; font-size: 40px; line-height: 1.4; margin: 0 0 22px; }
.amh-q { color: var(--amh-a, #f99d1c); display: inline-block; margin-right: 4px; }
.amh-sform-hero { max-width: 620px; margin-bottom: 26px; }
.amh-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 620px; }
.amh-area { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border-radius: var(--amh-r, 15px); color: var(--amh-ink, #1f1b2e) !important; box-shadow: 0 10px 26px rgba(20, 10, 60, .18); transition: transform .2s, box-shadow .2s; min-height: 84px; }
.amh-area:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 10, 60, .26); }
.amh-area-logos { display: flex; flex: 0 0 auto; }
.amh-area-logos i { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.amh-area-logos i + i { margin-right: -14px; }
.amh-area-logos img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.amh-area-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.amh-area-t b { font-size: 15px; }
.amh-area-t small { font-size: 12px; color: var(--amh-mute, #6f6a80); line-height: 1.6; }
.amh-hero-art { text-align: center; }
.amh-hero-art img { width: 100%; max-width: 470px; height: auto; }
.amh-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; }

/* selected categories */
.amh-cg-grid { display: grid; grid-template-columns: repeat(var(--amh-cg-cols, 7), minmax(0, 1fr)); gap: 16px; }
.amh-cg-i { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px 10px 18px; min-height: 138px; background: #ede8f6; border-radius: var(--amh-r, 15px); color: var(--amh-ink, #1f1b2e) !important; text-align: center; transition: background .2s, transform .2s, box-shadow .2s; }
.amh-cg-i:hover { background: #e2daf2; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(83, 62, 150, .14); }
.amh-cg-ic { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; color: #533e6e; }
.amh-cg-ic img { width: 100%; height: 100%; object-fit: contain; }
.amh-cg-i b { font-size: 14px; line-height: 1.5; }

/* logo grid */
.amh-lg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.amh-lg-i { display: flex; align-items: center; gap: 14px; padding: 14px 18px; min-height: 86px; background: #fff; border: 1px solid var(--amh-line, #e8e2f3); border-radius: var(--amh-r, 15px); color: var(--amh-ink, #1f1b2e) !important; transition: border-color .2s, box-shadow .2s, transform .2s; }
.amh-lg-i:hover { border-color: var(--amh-p, #533e96); box-shadow: 0 10px 24px rgba(83, 62, 150, .12); transform: translateY(-2px); }
.amh-lg-logo { flex: 0 0 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.amh-lg-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.amh-lg-t { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.amh-lg-t b { font-size: 15px; }
.amh-lg-t small { font-size: 12px; color: var(--amh-mute, #6f6a80); }
.amh-lg-go { flex: 0 0 22px; width: 22px; height: 22px; color: var(--amh-mute, #6f6a80); margin-right: auto; }
.amh-lg-grid.is-wide .amh-lg-logo { flex: 1 1 auto; height: 40px; justify-content: flex-start; }
.amh-lg-grid.is-wide .amh-lg-logo img { max-width: 150px; }

/* features strip */
.amh-ft { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; background: #f4f0fb; border-radius: var(--amh-r, 15px); padding: 26px 22px; }
.amh-ft-i { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.amh-ft-ic { width: 60px; height: 60px; padding: 13px; border-radius: 50%; background: #fff; color: var(--amh-p, #533e96); box-shadow: 0 6px 16px rgba(83, 62, 150, .12); }
.amh-ft-i b { font-size: 14px; line-height: 1.6; color: var(--amh-ink, #1f1b2e); }

/* subscription band */
.amh-sb .amh-btn { white-space: nowrap; flex: 0 0 auto; }
.amh-sb { display: flex; align-items: center; gap: 22px; padding: 26px 30px; border-radius: var(--amh-r, 15px); background: linear-gradient(120deg, #fff4e3, #f4f0fb); border: 1px solid #f6dcb4; }
.amh-sb-ic { flex: 0 0 64px; width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: var(--amh-a, #f99d1c); color: #fff; }
.amh-sb-t { flex: 1 1 auto; }
.amh-sb h2 { font-size: 25px; margin: 0 0 6px; color: var(--amh-p, #533e96); }
.amh-sb p { margin: 0; color: var(--amh-ink, #1f1b2e); line-height: 1.9; text-align: justify; }
.amh-sb p:empty { display: none; }

/* app install + social */
.amh-app { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 18px 26px; border-radius: var(--amh-r, 15px); background: var(--amh-p, #533e96); color: #fff; }
.amh-app-l { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.amh-app-l b { font-size: 18px; color: #fff; }
.amh-app-ic { width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--amh-a, #f99d1c); }
.amh-app button.amh-btn.amh-btn-acc { background: var(--amh-a, #f99d1c) !important; border-color: var(--amh-a, #f99d1c) !important; color: #fff !important; box-shadow: none; }
.amh-app-help { flex: 1 1 100%; font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, .85); }
.amh-soc { display: flex; flex-wrap: wrap; gap: 12px; }
.amh-app.is-social { background: none; padding: 0; justify-content: flex-start; }
@media (min-width: 1025px) { .amh-app:not(.is-social) .amh-app-l { flex: 1 1 auto; } .amh-app:not(.is-social) .amh-app-btn { margin-inline-start: auto; } }
.amh-soc-i { width: 50px; height: 50px; padding: 11px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff !important; transition: background .2s, transform .2s; }
.amh-soc-i:hover { background: var(--amh-a, #f99d1c); transform: translateY(-2px); }
.amh-soc-i svg { width: 100%; height: 100%; display: block; }

/* subscription plans */
.amh-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.amh-plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px 24px 26px; background: #fff; border: 1px solid var(--amh-line, #e8e2f3); border-radius: var(--amh-r, 15px); box-shadow: 0 8px 24px rgba(83, 62, 150, .06); }
.amh-plan.is-best { border: 2px solid var(--amh-a, #f99d1c); box-shadow: 0 14px 34px rgba(249, 157, 28, .18); }
.amh-plan-badge { position: absolute; top: -14px; right: 22px; padding: 4px 14px; border-radius: 999px; background: var(--amh-a, #f99d1c); color: #fff; font-size: 12px; font-weight: 700; }
.amh-plan h3 { margin: 0; font-size: 20px; color: var(--amh-p, #533e96); }
.amh-plan-price { font-size: 22px; font-weight: 700; color: var(--amh-ink, #1f1b2e); min-height: 34px; }
.amh-plan-price .amh-muted { font-size: 14px; font-weight: 400; }
.amh-plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.amh-plan li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.8; }
.amh-plan li .amh-li { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 4px; color: var(--amh-ok, #1f9d63); }
.amh-plan .amh-btn { width: 100%; }
.amh-btn.is-off { cursor: default; opacity: .7; }

/* product tabs / lists with no course yet */
.amh-tabsec .wd-tabs-content-wrapper:not(:has(.product-grid-item))::after { content: "به‌زودی دوره‌های این بخش اضافه می‌شود."; display: block; padding: 34px 20px; border: 1px dashed var(--amh-line, #e8e2f3); border-radius: var(--amh-r, 15px); background: #faf8fd; color: var(--amh-mute, #6f6a80); text-align: center; font-size: 14px; }

/* instructors rail */
.amh-ins.is-rail .amh-ins-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 8px; }
.amh-ins.is-rail .amh-ins-card { scroll-snap-align: start; }

/* promo top bar */
.amh-tb { position: relative; z-index: 400; background: var(--amh-tb-bg); color: var(--amh-tb-c); overflow: hidden; max-height: 80px; transition: max-height .35s ease, opacity .25s; }
.amh-tb.is-hidden { max-height: 0; opacity: 0; }
.amh-tb-in { max-width: 1250px; margin: 0 auto; padding: 9px 48px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 14px; font-weight: 700; line-height: 1.6; text-align: center; }
.amh-tb-timer { display: inline-flex; align-items: center; gap: 4px; direction: ltr; }
.amh-tb-timer i { font-style: normal; min-width: 34px; padding: 3px 6px; border-radius: 8px; background: rgba(255, 255, 255, .85); color: var(--amh-p, #533e96); font-size: 15px; text-align: center; }
.amh-tb-timer em { font-style: normal; }
.amh-tb-b { padding: 4px 14px; border-radius: 999px; background: var(--amh-p, #533e96); color: #fff !important; font-size: 13px; }
.amh-tb-x { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; padding: 6px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .1); color: inherit; cursor: pointer; }
.amh-tb-x .amh-li { stroke-width: 4; }

/* popular searches inside the theme's search overlays */
.amh-pop { padding: 16px 0 6px; text-align: right; }
.amh-pop b { display: block; font-size: 14px; margin-bottom: 10px; color: var(--amh-ink, #1f1b2e); }
.amh-pop div { display: flex; flex-wrap: wrap; gap: 8px; }
.amh-pop a { padding: 6px 14px; border-radius: 999px; background: #f4f0fb; color: var(--amh-p, #533e96) !important; font-size: 13px; }
.amh-pop a:hover { background: var(--amh-p, #533e96); color: #fff !important; }

/* header pieces (WoodMart header builder text elements + menu item classes) */
.amh-hdr-ic { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--amh-ic) center / contain no-repeat; mask: var(--amh-ic) center / contain no-repeat; }
.amh-hdr-ic.is-book, .amh-mi-book > a::before { --amh-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 12c-5-4-12-5-19-4v30c7-1 14 0 19 4 5-4 12-5 19-4V8c-7-1-14 0-19 4z'/%3E%3Cpath d='M24 12v30'/%3E%3C/svg%3E"); }
.amh-hdr-ic.is-crown, .amh-mi-crown > a::before { --amh-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 16 9 8 9-14 9 14 9-8-4 22H10z'/%3E%3Cpath d='M10 42h28'/%3E%3C/svg%3E"); }
.amh-mi-grid > a::before { --amh-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='3.4' stroke-linejoin='round'%3E%3Crect x='5' y='5' width='16' height='16' rx='3'/%3E%3Crect x='27' y='5' width='16' height='16' rx='3'/%3E%3Crect x='5' y='27' width='16' height='16' rx='3'/%3E%3Crect x='27' y='27' width='16' height='16' rx='3'/%3E%3C/svg%3E"); }
.amh-mi-home > a::before { --amh-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 22 24 6l19 16'/%3E%3Cpath d='M10 18v24h28V18M20 42V30h8v12'/%3E%3C/svg%3E"); }
.whb-header .amh-mi-book > a::before, .whb-header .amh-mi-crown > a::before, .whb-header .amh-mi-grid > a::before, .whb-header .amh-mi-home > a::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-left: 6px; vertical-align: -3px; background: currentColor; -webkit-mask: var(--amh-ic) center / contain no-repeat; mask: var(--amh-ic) center / contain no-repeat; }
.amh-hdr-link { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); color: #fff !important; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .2s, border-color .2s; }
.amh-hdr-link:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.amh-hph { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); pointer-events: none; white-space: nowrap; color: #fff; font-size: 14px; }
.amh-hph b { color: var(--amh-a, #f99d1c); font-family: "digibold", "digi", inherit; font-weight: 400; }
.amh-hph-wrap input:focus ~ .amh-hph, .amh-hph-wrap.has-text .amh-hph { opacity: 0; }
.amh-msub { display: inline-flex; align-items: center; gap: 8px; }
.amh-msub-logo { display: none; height: 36px; width: auto; }
.amh-msub-b { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--amh-a, #f99d1c); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; line-height: 1.2; }
.amh-msub-b .amh-hdr-ic { width: 16px; height: 16px; }
.amh-msbar { display: none; align-items: center; gap: 4px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: #fff !important; font-size: 13px; white-space: nowrap; }
.amh-msbar b { color: var(--amh-a, #f99d1c); font-family: "digibold", "digi", inherit; font-weight: 400; }
.whb-sticked .amh-msub-logo { display: inline-block; }
.whb-sticked .amh-msbar { display: inline-flex; }
/* r9: «تدریس کنید» beside the mobile search icon; the sticky bar shows the search pill instead */
.amh-mteach { display: inline-flex; align-items: center; }
.amh-mteach-wrap { padding: 0 !important; margin-inline-end: 6px; }
.amh-mteach .amh-msub-b { padding: 6px 10px; font-size: 12.5px; gap: 5px; }
.amh-mteach .amh-hdr-ic { width: 15px; height: 15px; }
.whb-general-header .whb-column_mobile4 .wd-header-search-mobile { padding-inline: 0 !important; }
.whb-sticked .amh-mteach-wrap { display: none !important; }
.whb-sticked .wd-header-search-mobile, .whb-sticked .whb-mobile-center { display: none !important; }
/* WoodMart hides the full-screen search close button under 1024px and relies on the header icon, which the sticky bar hides: show it */
@media (max-width: 1024px) { .wd-search-full-screen .wd-close-search { display: inline-flex !important; position: absolute; top: 14px; left: 14px; z-index: 5; width: 40px; height: 40px; align-items: center; justify-content: center; } }
.amh-mycourses { margin: 30px 0 60px; }
@media (max-width: 380px) { .whb-sticked .amh-msbar { padding: 0 10px; font-size: 12px; } .amh-msub-b, .amh-mteach .amh-msub-b { padding: 6px 9px; } }

@media (max-width: 1024px) {
	.amh-hero-h { font-size: 32px; }
	.amh-cg-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.amh-ins.is-rail .amh-ins-grid { grid-auto-columns: calc((100% - 36px) / 3); }
}
@media (max-width: 767px) {
	.amh-hero { padding: 84px 0 70px; }
	.amh-hero-in { grid-template-columns: 1fr; gap: 14px; }
	.amh-hero-h { font-size: 26px; margin-bottom: 14px; }
	.amh-sform input[type=search], .amh-sform button { height: 50px; }
	.amh-sform button { flex-basis: 50px; width: 50px; padding: 13px; }
	.amh-sform-hero { margin-bottom: 0; }
	.amh-hero-art { order: 2; }
	.amh-hero .amh-hero-art img { width: 210px; max-width: 60vw; }
	.amh-areas { order: 3; grid-column: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: none; }
	.amh-hero-text { display: contents; }
	.amh-hero-h { order: 0; }
	.amh-sform-hero { order: 1; }
	.amh-area { flex-direction: column; justify-content: flex-start; gap: 8px; padding: 10px 4px; min-height: 0; text-align: center; }
	.amh-area-logos i { width: 28px; height: 28px; }
	.amh-area-logos i + i { margin-right: -11px; }
	.amh-area-logos img { padding: 2px; }
	.amh-area-t b { font-size: 11px; line-height: 1.5; }
	.amh-area-t small { display: none; }
	.amh-hero-wave { height: 60px; }
	.amh-h2 { font-size: 20px; }
	.amh-cg-grid { grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
	.amh-cg-grid::-webkit-scrollbar { display: none; }
	.amh-cg-i { scroll-snap-align: start; min-height: 96px; padding: 12px 4px; gap: 8px; }
	.amh-cg-ic { width: 36px; height: 36px; }
	.amh-cg-i b { font-size: 12px; }
	.amh-lg-grid { grid-template-columns: 1fr; gap: 10px; }
	.amh-plans { grid-template-columns: 1fr; gap: 26px; }
	.amh-lg-grid.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.amh-lg-i { min-height: 72px; padding: 12px 14px; }
	.amh-ft { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 14px; }
	.amh-ft-i:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.amh-sb { flex-direction: column; text-align: center; padding: 22px 18px; }
	.amh-sb h2 { font-size: 20px; }
	.amh-app { justify-content: center; text-align: center; padding: 18px 14px; }
	.amh-app-l { justify-content: center; }
	.amh-ins.is-rail .amh-ins-grid { grid-auto-columns: 78%; }
	.amh-tb-in { padding: 8px 42px 8px 12px; gap: 8px; font-size: 13px; }
	.amh-tb-x { left: 8px; }
}

/* mobile bottom toolbar: full labels at 390px */
@media (max-width: 480px) { .wd-toolbar .wd-toolbar-label { font-size: 9px; letter-spacing: -.2px; white-space: nowrap; overflow: visible; text-overflow: clip; max-width: none; } }
.amh-free:has(.product-grid-item) .amh-free-empty { display: none; }

/* one button shape site-wide: the theme's 35px pill (theme buttons, add to cart, search) for our buttons, LearnDash, Elementor forms and Woo login */
.amh-btn, button.amh-btn, .amh-more-btn, .add_to_cart_button, .single_add_to_cart_button, .amh-app-btn, .learndash-wrapper .btn-join, .btn-join, .elementor-form .elementor-button, .woocommerce-form-login__submit, .woocommerce-form-register__submit, .learndash-wrapper .ld-button { border-radius: 35px !important; }
.amh-tb-x { border-radius: 50% !important; }
.amh-inq-form button.amh-btn { background: var(--amh-p, #533e96) !important; border-color: var(--amh-p, #533e96) !important; color: #fff !important; }
.amh-inq-form button.amh-btn:hover { background: var(--amh-a, #f99d1c) !important; border-color: var(--amh-a, #f99d1c) !important; }

/* ===== r8 ===== */
/* promo bar: larger on desktop (phones keep the compact size) */
@media (min-width: 1025px) {
	.amh-tb { max-height: 110px; }
	.amh-tb-in { padding: 14px 64px; gap: 22px; font-size: 18px; }
	.amh-tb-timer { gap: 6px; }
	.amh-tb-timer i { min-width: 44px; padding: 5px 8px; font-size: 19px; border-radius: 10px; }
	.amh-tb-b { padding: 8px 22px; font-size: 16px; }
	.amh-tb-x { width: 34px; height: 34px; padding: 8px; left: 18px; }
}

/* desktop header menu: every item is a pill with its icon, the same shape as «دوره‌های من» */
@media (min-width: 1025px) {
	.whb-header .wd-nav-main { gap: 10px; }
	.whb-header .wd-nav-main > li { margin: 0 !important; }
	.whb-header .wd-nav-main > li > a { display: inline-flex; align-items: center; height: 42px; padding: 0 16px !important; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; color: #fff !important; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .2s, border-color .2s; }
	.whb-header .wd-nav-main > li > a:hover, .whb-header .wd-nav-main > li.current-menu-item > a, .whb-header .wd-nav-main > li.wd-opened > a { background: rgba(255, 255, 255, .12); border-color: #fff; }
	.whb-header .wd-nav-main > li > a .nav-link-text::after, .whb-header .wd-nav-main.wd-style-underline > li > a .nav-link-text::after { display: none !important; }
	.whb-header .wd-nav-main > li > a::before { margin-left: 8px !important; vertical-align: 0 !important; }
	.whb-header .wd-nav-main > li.menu-item-has-children > a::after { margin-right: 6px; }
}
.amh-hdr-ic.is-cap { --amh-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18 24 8l21 10-21 10z'/%3E%3Cpath d='M12 23v10c3 3 7 4.5 12 4.5s9-1.5 12-4.5V23M45 18v12'/%3E%3C/svg%3E"); }
.amh-hdr-teach .amh-hdr-link { background: var(--amh-a, #f99d1c); border-color: var(--amh-a, #f99d1c); }
.amh-hdr-teach .amh-hdr-link:hover { background: #e88a05; border-color: #e88a05; }

/* line icons drawn by the plugin: same weight as the theme's category images */
.amh-cg-ic .amh-li { width: 100%; height: 100%; stroke-width: 2.2; }

/* phones: the category rail shows an arrow that it continues */
.amh-cg-wrap { position: relative; }
.amh-cg-wrap > .amh-cg-next { display: none; }
@media (max-width: 767px) {
	.amh-cg-wrap > .amh-cg-next { display: flex; position: absolute; left: -4px; top: 50%; z-index: 3; width: 36px; height: 36px; margin-top: -18px; padding: 9px; align-items: center; justify-content: center; border: 0; border-radius: 50% !important; background: var(--amh-p, #533e96); color: #fff; box-shadow: 0 6px 16px rgba(83, 62, 150, .35); cursor: pointer; transition: opacity .2s; animation: amh-nudge 1.6s ease-in-out 3; }
	.amh-cg-next .amh-li { width: 100%; height: 100%; stroke-width: 4; }
	.amh-cg-wrap > .amh-cg-next.is-end { opacity: 0; pointer-events: none; }
}
@keyframes amh-nudge { 50% { transform: translateX(-5px); } }

/* stats: smaller boxes; phones: four in one line */
.elementor-element-fdd71fc { justify-content: center; }
.elementor-element-fdd71fc > .e-con { width: 200px !important; max-width: 200px; flex: 0 0 auto; padding: 8px 6px !important; }
.elementor-element-fdd71fc .elementor-counter { padding: 12px 0 !important; }
.elementor-element-fdd71fc .elementor-counter-number-wrapper { font-size: 26px !important; line-height: 1.3; }
.elementor-element-fdd71fc .elementor-counter-title { font-size: 14px !important; line-height: 1.5; }
.elementor-element-fdd71fc .elementor-widget-counter > .elementor-widget-container { padding: 12px 0 !important; }
@media (max-width: 767px) {
	.elementor-element-fdd71fc { flex-wrap: nowrap !important; gap: 6px !important; margin: 0 !important; }
	.elementor-element-fdd71fc > .e-con { width: calc((100% - 18px) / 4) !important; max-width: none; min-width: 0; padding: 4px 2px !important; }
	.elementor-element-fdd71fc .elementor-widget-counter > .elementor-widget-container { padding: 8px 0 !important; border-radius: 12px !important; }
	.elementor-element-fdd71fc .elementor-counter-number-wrapper { font-size: 17px !important; }
	.elementor-element-fdd71fc .elementor-counter-title { font-size: 11px !important; white-space: nowrap; }
}

/* instructors row: air between the section line and the cards */
.amh-ins-grid { padding-top: 14px; }

/* course card: instructor + hours */
.amh-cmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 6px; color: #6b6780; font-size: 12.5px; line-height: 1.6; }
.amh-cmeta-i { display: inline-flex; align-items: center; gap: 4px; }
.amh-cmeta .amh-i { width: 15px; height: 15px; color: var(--amh-p, #533e96); }
.summary .amh-cmeta { font-size: 14px; gap: 6px 18px; margin: 10px 0 14px; }
.summary .amh-cmeta .amh-i { width: 18px; height: 18px; }

/* product page: instructor resume card */
.amh-pins { margin: 18px 0; padding: 16px; border: 1px solid #e6e1f2; border-radius: 15px; background: #faf8fe; }
.amh-pins-top { display: flex; align-items: center; gap: 12px; }
.amh-pins-top img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #ede8f6; }
.amh-pins-top div { display: flex; flex-direction: column; line-height: 1.6; }
.amh-pins-top small { color: #8a86a0; font-size: 12px; }
.amh-pins-top b { font-size: 16px; color: var(--amh-ink, #1f1b2e); }
.amh-pins-top span { color: #6b6780; font-size: 13px; }
.amh-pins-bio { margin: 12px 0 8px; color: #4a4660; font-size: 13.5px; line-height: 1.9; text-align: justify; }
.amh-pins-more { display: inline-flex; align-items: center; gap: 4px; color: var(--amh-p, #533e96) !important; font-weight: 700; font-size: 13px; }
.amh-pins-more .amh-li, .amh-cb-all .amh-li, .amh-cb-h .amh-li { width: 14px; height: 14px; stroke-width: 4; }

/* product page: intro videos as story circles + player */
.amh-vs { margin: 14px 0 18px; }
.amh-vs-h { display: block; margin-bottom: 10px; font-size: 14px; color: var(--amh-ink, #1f1b2e); }
.amh-vs-row { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.amh-vs .amh-vs-i { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 !important; border: 0 !important; background: none !important; cursor: pointer; flex: 0 0 auto; width: 82px; min-height: 0 !important; box-shadow: none !important; color: var(--amh-ink, #1f1b2e) !important; }
.amh-vs-ring { position: relative; display: block; width: 76px; height: 76px; padding: 3px; border-radius: 50%; background: conic-gradient(var(--amh-p, #533e96), var(--amh-a, #f99d1c), var(--amh-p, #533e96)); }
.amh-vs-ring img { display: block; width: 100%; height: 100%; border: 3px solid #fff; border-radius: 50%; object-fit: cover; background: #ede8f6; }
.amh-vs-ring i { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: rgba(31, 27, 46, .55); color: #fff; display: flex; align-items: center; justify-content: center; }
.amh-vs-ring i .amh-i { width: 22px; height: 22px; }
.amh-vs-i small { font-size: 12px; line-height: 1.4; text-align: center; font-weight: 700; }
.amh-vp { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; background: rgba(10, 8, 20, .92); }
.amh-vp-box { position: relative; width: min(420px, 100vw); height: min(746px, 100vh); background: #000; overflow: hidden; }
@media (min-width: 768px) { .amh-vp-box { border-radius: 15px; } }
.amh-vp video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.amh-vp-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 2; }
.amh-vp-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.amh-vp-bars span i { display: block; height: 100%; width: 0; background: #fff; }
.amh-vp-t { position: absolute; top: 22px; right: 14px; left: 56px; z-index: 2; color: #fff; font-weight: 700; font-size: 14px; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.amh-vp .amh-vp-x { position: absolute; top: 18px; left: 10px; z-index: 3; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 50% !important; background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; }
.amh-vp-x .amh-li { width: 100%; height: 100%; stroke-width: 4; }
.amh-vp .amh-vp-nav { position: absolute; top: 0; bottom: 0; width: 35%; z-index: 1; background: none; border: 0; cursor: pointer; }
.amh-vp-nav.is-prev { right: 0; } .amh-vp-nav.is-next { left: 0; }

/* category browser (mega menu on desktop, page on phones) */
.amh-cb { display: flex; background: #fff; color: var(--amh-ink, #1f1b2e); text-align: right; }
.amh-cb a { color: inherit; text-decoration: none; }
.amh-cb-side { flex: 0 0 230px; display: flex; flex-direction: column; padding: 8px 0; border-left: 1px solid #eee; overflow-y: auto; }
.amh-cb-tab { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 13.5px; font-weight: 700; color: #4a4660 !important; border-right: 3px solid transparent; transition: background .15s, color .15s; }
.amh-cb-tab.is-on { background: #f4f1fb; color: var(--amh-p, #533e96) !important; border-right-color: var(--amh-a, #f99d1c); }
.amh-cb-ic { flex: 0 0 auto; width: 22px; height: 22px; color: var(--amh-p, #533e96); display: inline-flex; }
.amh-cb-ic .amh-li { width: 100%; height: 100%; stroke-width: 2.6; }
.amh-cb-main { flex: 1 1 auto; min-width: 0; padding: 18px 24px; overflow-y: auto; }
.amh-cb-pane { display: none; }
.amh-cb-pane.is-on { display: block; }
.amh-cb-all { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; color: #1e88e5 !important; font-size: 13px; font-weight: 700; }
.amh-cb-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 24px; margin-bottom: 16px; }
.amh-cb-col { display: flex; flex-direction: column; gap: 6px; }
.amh-cb-h { display: inline-flex; align-items: center; gap: 6px; padding-right: 10px; border-right: 2px solid var(--amh-a, #f99d1c); font-size: 14px; font-weight: 700; line-height: 1.5; }
.amh-cb-h:hover, .amh-cb-l:hover { color: var(--amh-p, #533e96) !important; }
.amh-cb-l { padding-right: 12px; color: #6b6780 !important; font-size: 13px; line-height: 1.6; }
.amh-cb-pt { margin: 6px 0 10px; font-size: 13px; font-weight: 700; color: #8a86a0; }
.amh-cb-prods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.amh-cb-p { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid #eee; border-radius: 12px; transition: box-shadow .2s; }
.amh-cb-p:hover { box-shadow: 0 8px 20px rgba(83, 62, 150, .12); }
.amh-cb-p img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #ede8f6; }
.amh-cb-p b { font-size: 13px; line-height: 1.5; }
.amh-cb-pr { color: var(--amh-a, #f99d1c); font-size: 12.5px; font-weight: 700; }
.amh-cb-empty { color: #8a86a0; font-size: 13px; }
/* desktop mega panel */
.amh-mega > .wd-dropdown, .amh-mega > .wd-dropdown-menu { display: none !important; }
.amh-mega-panel { position: absolute; top: 100%; right: 0; z-index: 999; width: min(1100px, calc(100vw - 40px)); padding-top: 22px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; pointer-events: none; }
.amh-mega:hover > .amh-mega-panel, .amh-mega:focus-within > .amh-mega-panel, .amh-mega.is-open > .amh-mega-panel { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.amh-mega-panel .amh-cb { height: min(480px, calc(100vh - 160px)); border-radius: 15px; box-shadow: 0 18px 50px rgba(31, 27, 46, .22); overflow: hidden; }
.amh-mega-panel .amh-cb-tab { white-space: nowrap; }
@media (max-width: 1024px) { .amh-mega-panel { display: none !important; } }
/* page (phones): narrow rail on the right, sub-categories as tiles */
.amh-cb.is-page { min-height: 70vh; border: 1px solid #eee; border-radius: 15px; overflow: hidden; }
@media (max-width: 767px) {
	.amh-cb.is-page { margin: 0 -15px; border: 0; border-radius: 0; min-height: calc(100vh - 170px); }
	.amh-cb.is-page .amh-cb-side { flex: 0 0 96px; padding: 0; background: #f6f4fb; border-left: 0; }
	.amh-cb.is-page .amh-cb-tab { flex-direction: column; gap: 6px; padding: 12px 6px; font-size: 11.5px; line-height: 1.5; text-align: center; border-right-width: 3px; }
	.amh-cb.is-page .amh-cb-tab.is-on { background: #fff; }
	.amh-cb.is-page .amh-cb-ic { width: 26px; height: 26px; }
	.amh-cb.is-page .amh-cb-main { padding: 14px 12px; }
	.amh-cb.is-page .amh-cb-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.amh-cb.is-page .amh-cb-col { padding: 10px; border-radius: 12px; background: #f6f4fb; }
	.amh-cb.is-page .amh-cb-h { border-right: 0; padding-right: 0; font-size: 13px; }
	.amh-cb.is-page .amh-cb-h .amh-li { display: none; }
	.amh-cb.is-page .amh-cb-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.page .entry-content .amh-cb.is-page + p:empty { display: none; }

/* «تدریس کنید» page */
.amh-teach { display: flex; flex-direction: column; gap: 50px; margin-bottom: 60px; }
.amh-teach-hero { border-radius: 15px; background: linear-gradient(135deg, #533e96, #3d2c74); color: #fff; padding: 56px 40px; text-align: center; }
.amh-teach-hero-in { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.amh-teach-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 700; }
.amh-teach-kicker .amh-li { width: 18px; height: 18px; }
.amh-teach-hero h1 { margin: 0; color: #fff; font-size: 34px; line-height: 1.5; }
.amh-teach-hero h1 b { color: var(--amh-a, #f99d1c); }
.amh-teach-hero p { margin: 0; font-size: 16px; line-height: 2; opacity: .92; }
.amh-teach-cta { background: var(--amh-a, #f99d1c) !important; border-color: var(--amh-a, #f99d1c) !important; min-height: 48px; padding: 0 28px; font-size: 15px; }
.amh-teach-ben { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.amh-teach-b { flex: 0 0 calc((100% - 48px) / 4); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 16px; border-radius: 15px; background: #f6f4fb; text-align: center; }
.amh-teach-bi { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: #fff; color: var(--amh-p, #533e96); box-shadow: 0 6px 16px rgba(83, 62, 150, .12); }
.amh-teach-bi .amh-li { width: 100%; height: 100%; }
.amh-teach-b b { font-size: 15px; line-height: 1.6; color: var(--amh-ink, #1f1b2e); }
.amh-teach-b small { color: #6b6780; font-size: 13px; line-height: 1.8; }
.amh-teach-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; padding: 28px; border: 1px solid #ebe7f5; border-radius: 15px; background: #fff; }
.amh-teach-form .is-wide { grid-column: 1 / -1; }
.amh-tf { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.amh-tf > span { font-size: 14px; font-weight: 700; color: var(--amh-ink, #1f1b2e); }
.amh-tf i { color: #e53935; font-style: normal; }
.amh-tf input, .amh-tf textarea { width: 100%; border: 1px solid #ddd8ea; border-radius: 12px !important; padding: 10px 14px; background: #fcfbff; font-size: 14px; }
.amh-tf input[type=file] { padding: 8px; }
.amh-tf-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.8; }
.amh-tf-check input { margin-top: 6px; }
.amh-teach-form button.amh-btn { min-width: 220px; min-height: 48px; }
.amh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.amh-teach .amh-note { margin-bottom: 16px; }
@media (max-width: 1024px) { .amh-teach-b { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 767px) {
	.amh-teach { gap: 36px; }
	.amh-teach-hero { padding: 36px 18px; }
	.amh-teach-hero h1 { font-size: 24px; }
	.amh-teach-hero p { font-size: 14px; }
	.amh-teach-b { flex-basis: calc((100% - 12px) / 2); padding: 16px 10px; }
	.amh-teach-ben { gap: 12px; }
	.amh-teach-b b { font-size: 13.5px; }
	.amh-teach-b small { font-size: 12px; }
	.amh-teach-form { grid-template-columns: 1fr; padding: 18px 14px; }
	.amh-teach-form button.amh-btn { width: 100%; }
}

/* theme :is(button) sets position:relative/inline-flex with class weight: re-assert with a parent */
.amh-tb .amh-tb-x { position: absolute !important; display: flex !important; left: 10px !important; right: auto !important; top: 50% !important; transform: translateY(-50%) !important; width: 30px !important; height: 30px !important; min-height: 0 !important; padding: 8px !important; border: 0 !important; background: rgba(0, 0, 0, .12) !important; color: #1f1b2e !important; box-shadow: none !important; }
.amh-tb .amh-tb-x .amh-li { width: 100%; height: 100%; }
@media (min-width: 1025px) { .amh-tb .amh-tb-x { left: 18px !important; width: 34px !important; height: 34px !important; } }
@media (max-width: 767px) { .amh-cb.is-page { align-items: flex-start; } .amh-cb.is-page .amh-cb-side { position: sticky; top: 70px; max-height: calc(100vh - 160px); } }
.amh-teach-form button.amh-btn { background: var(--amh-p, #533e96) !important; border-color: var(--amh-p, #533e96) !important; color: #fff !important; }
.amh-teach-form button.amh-btn:hover { background: var(--amh-a, #f99d1c) !important; border-color: var(--amh-a, #f99d1c) !important; }
.amh-file { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px; border: 1px dashed #cfc7e6; border-radius: 12px; background: #fcfbff; cursor: pointer; }
.amh-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.amh-file b { padding: 8px 16px; border-radius: 35px; background: #ede8f6; color: var(--amh-p, #533e96); font-size: 13px; white-space: nowrap; }
.amh-file em { font-style: normal; color: #8a86a0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; }
