{"id":10170,"date":"2026-03-15T17:14:47","date_gmt":"2026-03-15T14:14:47","guid":{"rendered":"https:\/\/sarhgroups.com\/products\/cma-certified-management-accountant-course"},"modified":"2026-08-29T17:24:56","modified_gmt":"2026-08-29T14:24:56","slug":"cma-certified-management-accountant-course","status":"publish","type":"product","link":"https:\/\/sarhgroups.com\/en\/products\/cma-certified-management-accountant-course","title":{"rendered":"CMA Certified Management Accountant Course"},"content":{"rendered":"<style>.cmax{--nv:#16243f;--nvd:#0e1626;--rd:#b5181a;--rdd:#8f1214;--gold:#9a7529; --gold-bg:#f6f1e6;--ink:#1b2434;--tx:#4c5666;--mu:#6f7a8b;--line:#e4e8ef; --soft:#faf9f6;--mist:#eff3f8;--white:#fff; --shadow:0 1px 2px rgba(16,22,38,.04),0 12px 34px rgba(16,22,38,.07); direction:ltr;text-align:left;color:var(--tx); font-family:Cairo,Montserrat,system-ui,-apple-system,\"Segoe UI\",sans-serif; font-size:15px;line-height:1.85;-webkit-font-smoothing:antialiased} .cmax *{box-sizing:border-box} .cmax h2,.cmax h3,.cmax h4{font-family:Montserrat,Cairo,system-ui,sans-serif; color:var(--ink);margin:0;text-wrap:balance;letter-spacing:-.011em} .cmax p{margin:0} .cmax a{color:inherit} \/* ---------- rhythm ---------- *\/ .cmax-sec{margin-top:clamp(38px,5vw,62px)} .cmax-eb{display:inline-flex;align-items:center;gap:9px;margin-bottom:13px; color:var(--rd);font-size:11px;font-weight:800;letter-spacing:.14em; text-transform:uppercase;line-height:1.5} .cmax-eb::before{content:\"\";width:7px;height:7px;border-radius:50%; background:var(--rd);flex:none} .cmax-h2{font-size:clamp(21px,2.7vw,31px);line-height:1.28;font-weight:800} .cmax-lede{margin-top:11px;max-width:64ch;color:var(--tx);font-size:15px; line-height:1.9} \/* ---------- hero ---------- *\/ .cmax-hero{padding:clamp(26px,3.6vw,46px);border-radius:26px; background:linear-gradient(160deg,var(--soft) 0%,#fff 62%); border:1px solid var(--line);box-shadow:var(--shadow)} .cmax-hero .cmax-h2{font-size:clamp(25px,3.5vw,40px);line-height:1.2} .cmax-kicker{display:flex;flex-wrap:wrap;align-items:center;gap:9px; margin-bottom:15px} .cmax-chip-gold{display:inline-flex;align-items:center;gap:7px; padding:5px 12px;border-radius:999px;background:var(--gold-bg); border:1px solid rgba(154,117,41,.24);color:var(--gold);font-size:11.5px; font-weight:800;letter-spacing:.03em;line-height:1.6} .cmax-chip-gold::before{content:\"\";width:6px;height:6px;border-radius:50%; background:var(--gold)} .cmax-body{color:var(--mu);font-size:11.5px;font-weight:700; letter-spacing:.05em;text-transform:uppercase} \/* ---------- actions: one primary, one quiet. never two reds ---------- *\/ .cmax-acts{display:flex;flex-wrap:wrap;gap:11px;margin-top:24px} .cmax-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px; padding:13px 25px;border:1.5px solid transparent;border-radius:999px; font-family:Montserrat,Cairo,sans-serif;font-size:14px;font-weight:800; line-height:1;text-decoration:none;cursor:pointer; transition:transform .16s ease,box-shadow .16s ease,background .16s ease} .cmax-btn:hover{transform:translateY(-1px)} .cmax-btn-primary{background:var(--rd);color:#fff; box-shadow:0 8px 20px rgba(181,24,26,.24)} .cmax-btn-primary:hover{background:var(--rdd);color:#fff; box-shadow:0 12px 26px rgba(181,24,26,.3)} .cmax-btn-ghost{background:transparent;color:var(--nv);border-color:#cfd6e2} .cmax-btn-ghost:hover{background:var(--mist);color:var(--nv); border-color:#b6c0d0} .cmax-btn-arrow{font-size:16px;line-height:0} \/* ---------- fact strip ---------- *\/ .cmax-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(158px,1fr)); gap:1px;margin-top:26px;background:var(--line);border:1px solid var(--line); border-radius:16px;overflow:hidden} .cmax-facts div{padding:15px 17px;background:#fff} .cmax-facts strong{display:block;color:var(--ink); font-family:Montserrat,Cairo,sans-serif;font-size:17px;font-weight:800; line-height:1.35;font-variant-numeric:tabular-nums} .cmax-facts span{display:block;margin-top:3px;color:var(--mu);font-size:12px; line-height:1.6} \/* ---------- live cohort card ---------- *\/ .cmax-when{padding:clamp(18px,2.2vw,26px);border-radius:22px;background:#fff; border:1px solid var(--line);border-top:3px solid var(--rd); box-shadow:var(--shadow)} .cmax-when-fallback{display:grid;gap:14px} .cmax-when-fallback p{color:var(--tx);font-size:14.5px;line-height:1.85; max-width:62ch} \/* ---------- cards ---------- *\/ .cmax-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(232px,1fr)); gap:14px;margin-top:24px} .cmax-card{padding:19px 20px;border-radius:18px;background:#fff; border:1px solid var(--line);transition:border-color .16s ease, box-shadow .16s ease} .cmax-card:hover{border-color:#cdd6e4;box-shadow:var(--shadow)} .cmax-card h4{font-size:15px;font-weight:800;line-height:1.5;margin-bottom:6px} .cmax-card p{color:var(--tx);font-size:13.5px;line-height:1.8} .cmax-card-gold{background:var(--gold-bg);border-color:rgba(154,117,41,.2)} .cmax-card-gold h4{color:var(--gold)} \/* ---------- syllabus table: the weight column is the point ---------- *\/ .cmax-part{margin-top:22px;border:1px solid var(--line);border-radius:20px; overflow:hidden;background:#fff} .cmax-part-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px; padding:16px 20px;background:var(--nv)} .cmax-part-tag{display:inline-flex;align-items:center;justify-content:center; min-width:30px;padding:3px 9px;border-radius:7px;background:rgba(255,255,255,.13); color:#fff;font-family:Montserrat,Cairo,sans-serif;font-size:12px; font-weight:800;letter-spacing:.04em} .cmax-part-top h4{color:#fff;font-size:15px;font-weight:800;line-height:1.5; flex:1 1 auto;min-width:180px} .cmax-part-hours{color:#a9b6cb;font-size:12px;font-weight:700;line-height:1.6; font-variant-numeric:tabular-nums} .cmax-tw{overflow-x:auto} .cmax-table{width:100%;border-collapse:collapse;min-width:520px} .cmax-table th,.cmax-table td{padding:13px 20px;text-align:left; vertical-align:top;border-bottom:1px solid var(--line)} .cmax-table thead th{background:var(--soft);color:var(--mu);font-size:11.5px; font-weight:800;letter-spacing:.11em;text-transform:uppercase;line-height:1.6} .cmax-table tbody tr:last-child th,.cmax-table tbody tr:last-child td{border-bottom:0} .cmax-table tbody th{color:var(--ink);font-size:14px;font-weight:800; line-height:1.6;width:31%} .cmax-table td{color:var(--tx);font-size:13.5px;line-height:1.78} .cmax-w{width:112px;white-space:nowrap} .cmax-w b{display:block;color:var(--ink);font-family:Montserrat,Cairo,sans-serif; font-size:13.5px;font-weight:800;font-variant-numeric:tabular-nums; line-height:1.4} .cmax-bar{display:block;height:4px;margin-top:6px;border-radius:3px; background:var(--mist);overflow:hidden} .cmax-bar i{display:block;height:100%;border-radius:3px;background:var(--rd)} \/* ---------- list ---------- *\/ .cmax-list{display:grid;gap:11px;margin-top:22px;padding:0;list-style:none} .cmax-list li{position:relative;padding-left:29px;color:var(--tx); font-size:14.5px;line-height:1.85} .cmax-list li::before{content:\"\";position:absolute;left:0;top:.72em;width:13px; height:7px;border-left:2.5px solid var(--rd);border-bottom:2.5px solid var(--rd); transform:rotate(-45deg)} .cmax-list b{color:var(--ink);font-weight:800} \/* ---------- definition rows ---------- *\/ .cmax-dl{margin:22px 0 0;border:1px solid var(--line);border-radius:18px; overflow:hidden;background:#fff} .cmax-dl>div{display:grid;grid-template-columns:minmax(150px,25%) 1fr; border-bottom:1px solid var(--line)} .cmax-dl>div:last-child{border-bottom:0} .cmax-dl dt{padding:13px 20px;background:var(--soft);color:var(--ink); font-size:13px;font-weight:800;line-height:1.7} .cmax-dl dd{margin:0;padding:13px 20px;color:var(--tx);font-size:13.5px; line-height:1.8} \/* ---------- the fee warning: honest, and hard to miss ---------- *\/ .cmax-note{margin-top:20px;padding:17px 20px 17px 22px;border-radius:16px; background:#fdf6f6;border:1px solid #f0d6d7;border-left:4px solid var(--rd)} .cmax-note strong{display:block;margin-bottom:5px;color:var(--rdd); font-family:Montserrat,Cairo,sans-serif;font-size:13.5px;font-weight:800; line-height:1.6} .cmax-note p{color:#6d4b4c;font-size:13.5px;line-height:1.82;max-width:66ch} \/* ---------- graduates ---------- *\/ .cmax-quotes{display:grid;grid-template-columns:repeat(auto-fit,minmax(268px,1fr)); gap:14px;margin-top:24px} .cmax-quote{display:flex;flex-direction:column;padding:22px;border-radius:18px; background:#fff;border:1px solid var(--line)} .cmax-quote-mark{color:var(--rd);font-family:Montserrat,serif;font-size:34px; font-weight:800;line-height:.8;margin-bottom:10px} .cmax-quote p{flex:1 1 auto;color:var(--tx);font-size:13.5px;line-height:1.88} .cmax-quote footer{margin-top:15px;padding-top:13px; border-top:1px solid var(--line)} .cmax-quote cite{display:block;color:var(--ink);font-size:13.5px; font-weight:800;font-style:normal;line-height:1.6} .cmax-quote small{display:block;margin-top:2px;color:var(--mu);font-size:12px; line-height:1.6} \/* ---------- faq ---------- *\/ .cmax-faq{margin-top:22px;border:1px solid var(--line);border-radius:18px; overflow:hidden;background:#fff} .cmax-faq details{border-bottom:1px solid var(--line)} .cmax-faq details:last-child{border-bottom:0} .cmax-faq summary{display:flex;align-items:flex-start;gap:13px;padding:15px 20px; color:var(--ink);font-size:14px;font-weight:800;line-height:1.65;cursor:pointer; list-style:none;transition:background .14s ease} .cmax-faq summary::-webkit-details-marker{display:none} .cmax-faq summary:hover{background:var(--soft)} .cmax-faq summary::after{content:\"+\";margin-left:auto;color:var(--rd); font-family:Montserrat,sans-serif;font-size:19px;font-weight:700;line-height:1.2; flex:none;transition:transform .18s ease} .cmax-faq details[open] summary::after{transform:rotate(45deg)} .cmax-faq details[open] summary{background:var(--soft)} .cmax-faq .cmax-a{padding:0 20px 17px 20px;color:var(--tx);font-size:13.5px; line-height:1.85;max-width:74ch} \/* ---------- close ---------- *\/ .cmax-close{padding:clamp(24px,3.2vw,40px);border-radius:24px; background:var(--nv);box-shadow:var(--shadow)} .cmax-close .cmax-eb{color:#ff8b8d} .cmax-close .cmax-eb::before{background:#ff8b8d} .cmax-close h2{color:#fff;font-size:clamp(21px,2.6vw,29px);line-height:1.3; font-weight:800} .cmax-close p{margin-top:11px;max-width:60ch;color:#adb9cc;font-size:14.5px; line-height:1.88} .cmax-close .cmax-btn-ghost{color:#fff;border-color:rgba(255,255,255,.32)} .cmax-close .cmax-btn-ghost:hover{background:rgba(255,255,255,.1);color:#fff; border-color:rgba(255,255,255,.5)} @media (max-width:640px){ .cmax-dl>div{grid-template-columns:1fr} .cmax-dl dt{padding-bottom:0;background:#fff} .cmax-dl dd{padding-top:5px} .cmax-acts .cmax-btn{flex:1 1 100%} } \/* ================================================================ Repairs to the WooCommerce block above this description. Its css lives in a global sheet that cannot be written over the REST API, so it is corrected from here instead. ================================================================ *\/ \/* \"Attendance Method\" and its dropdown were right-aligned on the english store - inherited from the arabic build. These two blocks carry !important, which is normally a smell. It is deliberate here: the rules they override are themselves !important and live in a stylesheet that is not reachable over the REST API, so an equal-weight rule loses no matter where it sits in the cascade. Both were verified in the browser before being written. *\/ .woocommerce div.product form.cart table.variations th, .woocommerce div.product form.cart table.variations th.label, .woocommerce div.product form.cart table.variations td, .woocommerce div.product form.cart table.variations label, .woocommerce div.product form.cart table.variations select, table.variations th,table.variations th.label,table.variations td, table.variations select,table.variations td select, .variations select,.variations label,.variations .value{ text-align:left!important;direction:ltr!important} \/* A site-wide product snippet - injected AFTER the page content, so it wins any equal-weight rule - hard-codes the arabic treatment onto every product variation table: .summary.entry-summary form.cart table.variations td.value select { text-align:right !important } .summary.entry-summary form.cart table.variations th.label label { font-family:'Noto Kufi Arabic' !important } On the english store that right-aligns \"Attendance Method\" and its dropdown and sets an arabic typeface on a latin label. The selectors below mirror the snippet's own and add `html body`, which raises specificity above it. The real fix is to language-scope that snippet; this repairs the page meanwhile. *\/ html body .summary.entry-summary form.cart table.variations th.label, html body .summary.entry-summary form.cart table.variations td.value, html body .entry-summary form.cart table.variations th.label, html body .entry-summary form.cart table.variations td.value{ text-align:left!important;direction:ltr!important} html body .summary.entry-summary form.cart table.variations td.value select, html body .entry-summary form.cart table.variations td.value select, html body .woocommerce div.product form.cart .variations select{ text-align:left!important;direction:ltr!important;text-align-last:left!important} html body .summary.entry-summary form.cart table.variations th.label label, html body .entry-summary form.cart table.variations th.label label{ font-family:Montserrat,Cairo,system-ui,sans-serif!important; text-align:left!important;direction:ltr!important} \/* The primary button was rendering grey-on-red at 1.1 contrast - all but unreadable. Cause was mine: `.cmax a{color:inherit}` is (0,1,1) and beats `.cmax-btn-primary{color:#fff}` at (0,1,0), so the button inherited body text colour. Repeating the class raises it above the anchor rule. *\/ .cmax a.cmax-btn-primary,.cmax .cmax-btn-primary.cmax-btn{color:#fff} .cmax a.cmax-btn-primary:hover,.cmax .cmax-btn-primary.cmax-btn:hover{color:#fff} .cmax a.cmax-btn-ghost,.cmax .cmax-btn-ghost.cmax-btn{color:var(--nv)} .cmax-close a.cmax-btn-ghost,.cmax-close .cmax-btn-ghost.cmax-btn{color:#fff} \/* The attendance dropdown draws its chevron as a background image pinned to one edge, but only reserves 16px of padding there - so a long option ran straight under the arrow. The arrow sits on the inline-end side and the padding on that side is widened to clear it. The snippet sets padding:0 16px !important on the same selector and loads after the page content, so an equal-weight rule loses. html body raises these above it. *\/ html body .summary.entry-summary form.cart table.variations td.value select, html body .entry-summary form.cart table.variations td.value select, html body .bottom-cta-container form.cart table.variations td.value select{ padding-inline-start:16px!important;padding-inline-end:44px!important; background-position:right 16px center!important} \/* The schedule modal's close button was inheriting the theme's button padding (13px 26px), which stretched a border-radius:50% box into a 54x36 ellipse and pushed the x off centre - 15px from one side, 27px from the other. *\/ .sarh-modal-x{width:38px!important;height:38px!important;min-width:0!important; padding:0!important;display:flex!important;align-items:center!important; justify-content:center!important;line-height:1!important;border-radius:50%!important; flex:none!important;font-size:20px!important} \/* The page carries TWO add-to-cart buttons: WooCommerce's own, in Sarh red, and a second one at the foot of the page inside .bottom-cta-container, which a global snippet renders in yellow with navy text. Same action, two colours, one screen. The foot one is brought back to the brand. *\/ .bottom-cta-container .single_add_to_cart_button, .bottom-cta-container button.single_add_to_cart_button, .cta-unified-stack-wrapper .single_add_to_cart_button{ background:#b5181a!important;color:#fff!important;border-color:#b5181a!important} .bottom-cta-container .single_add_to_cart_button:hover, .cta-unified-stack-wrapper .single_add_to_cart_button:hover{ background:#8f1214!important;color:#fff!important} \/* \"There are no reviews yet\" sits directly under three graduate testimonials and undercuts them. Bashar had already tried to suppress this from Additional CSS; the selector there never matched. Only the empty state is hidden - the review form and any real reviews are untouched. *\/ .woocommerce-Reviews .woocommerce-noreviews, #reviews .woocommerce-noreviews, p.woocommerce-noreviews{display:none!important} \/* On a phone the syllabus table was 520px wide inside a 287px column, so it scrolled sideways and the exam-weight column - the whole reason the table exists - sat off-screen. Below 640px each row becomes its own block: unit, then what it covers, then the weight with its bar. Nothing scrolls and nothing is hidden. *\/ .cmax-tw{position:relative;-webkit-overflow-scrolling:touch;scrollbar-width:thin} @media (max-width:640px){ .cmax-tw{overflow:visible} .cmax-table{min-width:0} .cmax-table thead{position:absolute;width:1px;height:1px;overflow:hidden; clip:rect(0 0 0 0);white-space:nowrap} .cmax-table tbody tr{display:block;padding:15px 18px; border-bottom:1px solid var(--line)} .cmax-table tbody tr:last-child{border-bottom:0} .cmax-table tbody th,.cmax-table tbody td{display:block;width:auto;padding:0; border:0} .cmax-table tbody th{font-size:14.5px;margin-bottom:4px} .cmax-table tbody td{font-size:13.5px} .cmax-w{width:auto;margin-top:9px;display:flex;align-items:center;gap:10px} .cmax-w b{font-size:12.5px;color:var(--mu);white-space:nowrap} .cmax-w b::after{content:\" of the exam\"} .cmax-bar{flex:1 1 auto;margin-top:0} .cmax-part-hours{width:100%} } \/* The mada logo is a 960x321 image - roughly 3:1. It was being forced into a 48x24 box with object-fit:fill, which squashed it out of proportion, and given a 16px radius, which rounded its corners off into the oval shape. Contain it, drop the radius, and let the width follow the artwork. *\/ .single-product-payments-custom-01 .payment-custom-img, li.single-product-payments-custom-01 img.payment-custom-img, img.payment-custom-img{ border-radius:0!important;object-fit:contain!important;width:auto!important; max-width:58px!important;height:22px!important} \/* Sarh \u00d7 TMS schedule widget \u2014 palette matches the certification pages *\/ .sarh-next,.sarh-next *{box-sizing:border-box} .sarh-next{display:grid; grid-template-columns:minmax(0,1fr) minmax(190px,auto); gap:22px; align-items:center; width:100%} .sarh-next-kick{display:block; color:#b5181a; font-size:12px; font-weight:800; line-height:1.5; letter-spacing:.01em; margin-bottom:4px} .sarh-next-date{display:block; color:#16243f; font-size:clamp(19px,2.2vw,25px); font-weight:850; line-height:1.25; margin-bottom:4px} .sarh-next-cohort{display:block; color:#687386; font-size:12.5px; line-height:1.6; margin-bottom:12px} .sarh-next-rows{display:grid; grid-template-columns:auto 1fr; gap:4px 12px; margin:0} .sarh-next-rows dt{color:#687386; font-size:12px; line-height:1.7; margin:0} .sarh-next-rows dd{color:#16243f; font-size:12.5px; font-weight:700; line-height:1.7; margin:0} .sarh-next-more{margin:10px 0 0; color:#687386; font-size:11.5px; line-height:1.6} .sarh-next-side{display:grid; gap:8px; justify-items:stretch; text-align:center} .sarh-next-price{color:#16243f; font-size:13px; line-height:1.7} .sarh-next-price b{font-family:Montserrat,Cairo,sans-serif; font-size:21px; color:#b5181a} .sarh-next-price s{color:#98a2b3; margin-inline-start:6px; font-size:12.5px} .sarh-next-price i{display:block; color:#687386; font-size:11px; font-style:normal; margin-top:2px} .sarh-next-btn{display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 22px; border-radius:999px; background:#b5181a; color:#fff !important; font-size:13.5px; font-weight:800; text-decoration:none !important; transition:background .2s ease, transform .2s ease} .sarh-next-btn:hover{background:#8f1214; transform:translateY(-1px)} .sarh-next-all{appearance:none; border:1px solid #dfe4ea; border-radius:999px; background:#fff; color:#16243f; padding:9px 18px; font-size:12px; font-weight:750; cursor:pointer; font-family:inherit; transition:border-color .2s ease, color .2s ease} .sarh-next-all:hover{border-color:#b5181a; color:#b5181a} @media(max-width:767px){.sarh-next{grid-template-columns:1fr; gap:16px}.sarh-next-side{justify-items:stretch}} \/* ---------------- modal ---------------- *\/ .sarh-modal{position:fixed; inset:0; z-index:99999; display:none} .sarh-modal.is-open{display:block} .sarh-modal-back{position:absolute; inset:0; background:rgba(10,19,37,.55); backdrop-filter:blur(2px)} .sarh-modal-card{position:relative; z-index:1; width:min(980px,calc(100% - 32px)); max-height:86vh; margin:7vh auto 0; display:flex; flex-direction:column; overflow:hidden; border-radius:26px; background:#fff; box-shadow:0 40px 100px rgba(10,19,37,.4)} .sarh-modal-top{display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:24px 26px; border-bottom:1px solid #dfe4ea; background:#f7f6f3} .sarh-modal-top h2{margin:0 0 4px; color:#101827; font-size:clamp(20px,2.4vw,27px); line-height:1.25; font-weight:850} .sarh-modal-top p{margin:0; color:#687386; font-size:12.5px; line-height:1.7} .sarh-modal-x{appearance:none; border:0; background:#fff; border:1px solid #dfe4ea; border-radius:50%; width:36px; height:36px; flex:none; font-size:22px; line-height:1; color:#16243f; cursor:pointer} .sarh-modal-x:hover{border-color:#b5181a; color:#b5181a} .sarh-modal-body{padding:8px 26px 26px; overflow-y:auto} .sarh-modal-msg{margin:26px 0; color:#687386; font-size:14px; text-align:center} .sarh-mon{margin-top:22px} .sarh-mon h3{position:sticky; top:0; margin:0 0 12px; padding:10px 0; background:#fff; color:#b5181a; font-size:13px; font-weight:850; letter-spacing:.02em} .sarh-mon-list{display:grid; gap:10px} .sarh-row{display:grid; grid-template-columns:minmax(0,1fr) minmax(170px,auto); gap:18px; align-items:center; padding:16px 18px; border:1px solid #dfe4ea; border-radius:16px; background:#fff; transition:border-color .2s ease, box-shadow .2s ease} .sarh-row:hover{border-color:#c9d2dd; box-shadow:0 10px 26px rgba(22,36,63,.07)} .sarh-row-main strong{display:block; color:#16243f; font-size:15px; line-height:1.45} .sarh-row-cohort{display:inline-block; margin-top:4px; padding:3px 9px; border-radius:999px; background:#eef3f7; color:#16243f; font-size:11px; font-weight:750} .sarh-row-date{display:block; margin-top:6px; color:#3f4a5d; font-size:12.5px; font-weight:700; line-height:1.6} .sarh-row-meta{display:block; margin-top:3px; color:#687386; font-size:11.5px; line-height:1.6} .sarh-row-side{display:grid; gap:6px; justify-items:stretch; text-align:center} .sarh-row-price{color:#16243f; font-size:12px; line-height:1.6} .sarh-row-price b{font-family:Montserrat,Cairo,sans-serif; font-size:17px; color:#b5181a} .sarh-row-price s{color:#98a2b3; margin-inline-start:5px; font-size:11.5px} .sarh-row-price i{display:block; color:#687386; font-size:10.5px; font-style:normal} .sarh-row-btn{display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:8px 18px; border-radius:999px; background:#b5181a; color:#fff !important; font-size:12.5px; font-weight:800; text-decoration:none !important} .sarh-row-btn:hover{background:#8f1214} .sarh-row-link{color:#687386 !important; font-size:11px; text-decoration:none !important} .sarh-row-link:hover{color:#b5181a !important} @media(max-width:767px){.sarh-modal-card{width:calc(100% - 20px); margin:4vh auto 0; max-height:92vh; border-radius:20px}.sarh-modal-top{padding:18px}.sarh-modal-body{padding:6px 18px 20px}.sarh-row{grid-template-columns:1fr; gap:12px}.sarh-row-side{justify-items:stretch}} @media(prefers-reduced-motion:reduce){.sarh-next-btn,.sarh-row{transition:none}} .cmax-when .sarh-next-price{display:none}.cmax-when .sarh-next{gap:18px}.cmax-when .sarh-next-btn{background:#b5181a;color:#fff;border-radius:999px;padding:12px 22px;font-weight:800;text-decoration:none;display:block;text-align:center}.cmax-when .sarh-next-btn:hover{background:#8f1214;color:#fff}.cmax-when .sarh-next-all{background:transparent;color:#16243f;border:1.5px solid #cfd6e2;border-radius:999px;padding:11px 22px;font-weight:800;cursor:pointer;display:block;width:100%}.cmax-when .sarh-next-all:hover{background:#eff3f8}<\/style>\n<div class=\"cmax\">\n<section class=\"cmax-hero\">\n<div class=\"cmax-kicker\"><span class=\"cmax-chip-gold\">IMA accredited &mdash; Gold tier<\/span><span class=\"cmax-body\">Institute of Management Accountants<\/span><\/div>\n<h2 class=\"cmax-h2\">Certified Management Accountant<\/h2>\n<p class=\"cmax-lede\">A full preparation programme for both CMA parts &mdash; live teaching in Arabic, the complete HOCK curriculum, and more than 4,000 practice questions, inside one study plan that runs all the way to exam day. We have been teaching this certification in Jordan for over twenty years.<\/p>\n<div class=\"cmax-acts\"><a class=\"cmax-btn cmax-btn-primary\" href=\"#cmax-when\" data-sarh-enrol>Choose your cohort<span class=\"cmax-btn-arrow\">&rarr;<\/span><\/a><a class=\"cmax-btn cmax-btn-ghost\" href=\"https:\/\/sarhgroups.com\/en\/contact-us-2\">Talk to an adviser<\/a><\/div>\n<div class=\"cmax-facts\">\n<div><strong>150<\/strong><span>training hours<\/span><\/div>\n<div><strong>Two parts<\/strong><span>99 hours P1 &middot; 51 hours P2<\/span><\/div>\n<div><strong>4,000+<\/strong><span>practice questions<\/span><\/div>\n<div><strong>Amman or online<\/strong><span>same lectures, same instructor<\/span><\/div>\n<\/div>\n<\/section>\n<section class=\"cmax-sec\" id=\"cmax-when\" style=\"scroll-margin-top:96px\">\n<div class=\"cmax-eb\">Dates<\/div>\n<h3 class=\"cmax-h2\">When the next cohort starts<\/h3>\n<p class=\"cmax-lede\">Cohorts open through the year, in person at our Amman premises or live online. Pick the one that fits and reserve your place.<\/p>\n<div class=\"cmax-when\" style=\"margin-top:22px\" data-sarh-next=\"sarhgroups.com\/products\/cma\">\n<div class=\"cmax-when-fallback\">\n<p>Dates for the coming months are listed in the full schedule, together with the days, times and fee for each cohort.<\/p>\n<div class=\"cmax-acts\" style=\"margin-top:0\"><button type=\"button\" class=\"cmax-btn cmax-btn-primary\" data-sarh-schedule>See the full schedule<\/button><a class=\"cmax-btn cmax-btn-ghost\" href=\"https:\/\/sarhgroups.com\/en\/contact-us-2\">Ask about dates<\/a><\/div>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"cmax-sec\">\n<div class=\"cmax-eb\">Why Sarh<\/div>\n<h3 class=\"cmax-h2\">What you get that you would otherwise assemble yourself<\/h3>\n<div class=\"cmax-grid\">\n<article class=\"cmax-card cmax-card-gold\">\n<h4>Gold-tier IMA partner<\/h4>\n<p>The highest tier the Institute grants a training provider. It also means a discount for our students on IMA membership and exam fees.<\/p>\n<\/article>\n<article class=\"cmax-card\">\n<h4>Over twenty years teaching CMA<\/h4>\n<p>Hundreds of accountants and finance professionals have taken this certification with us and moved into leadership roles across Jordan and the region.<\/p>\n<\/article>\n<article class=\"cmax-card\">\n<h4>Slides prepared in-house<\/h4>\n<p>Summaries our own instructors write, condensing the curriculum down to what the exam actually asks for.<\/p>\n<\/article>\n<article class=\"cmax-card\">\n<h4>The full HOCK curriculum<\/h4>\n<p>Printable e-books covering the entire syllabus for both parts, kept up to date as the IMA framework changes.<\/p>\n<\/article>\n<article class=\"cmax-card\">\n<h4>4,000+ questions and unlimited mocks<\/h4>\n<p>Every question carries an explanation of the correct answer, and mock exams run in the same format and timing as the real one.<\/p>\n<\/article>\n<article class=\"cmax-card\">\n<h4>Taught in Arabic, examined in English<\/h4>\n<p>Concepts are explained in Arabic while the material and the exam stay in English, so the terminology becomes familiar before exam day.<\/p>\n<\/article>\n<\/div>\n<\/section>\n<section class=\"cmax-sec\">\n<div class=\"cmax-eb\">Syllabus<\/div>\n<h3 class=\"cmax-h2\">Both parts in full, with the IMA exam weightings<\/h3>\n<p class=\"cmax-lede\">Two independent parts. You may sit them in whichever order suits you. The weighting column is the share each unit carries in the exam &mdash; useful when you plan revision time.<\/p>\n<div class=\"cmax-part\">\n<div class=\"cmax-part-top\"><span class=\"cmax-part-tag\">P1<\/span><\/p>\n<h4>Part One &mdash; Financial Planning, Performance and Analytics<\/h4>\n<p><span class=\"cmax-part-hours\">99 hours<\/span><\/div>\n<div class=\"cmax-tw\">\n<table class=\"cmax-table\">\n<thead>\n<tr>\n<th scope=\"col\">Unit<\/th>\n<th scope=\"col\">What it covers<\/th>\n<th scope=\"col\">Exam weight<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th scope=\"row\">External Financial Reporting Decisions<\/th>\n<td>Preparation and analysis of financial statements according to international standards.<\/td>\n<td class=\"cmax-w\"><b>15%<\/b><span class=\"cmax-bar\"><i style=\"width:60%\"><\/i><\/span><\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Planning, Budgeting and Forecasting<\/th>\n<td>Operating and capital budgets, and forecasting methods.<\/td>\n<td class=\"cmax-w\"><b>20%<\/b><span class=\"cmax-bar\"><i style=\"width:80%\"><\/i><\/span><\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Performance Management<\/th>\n<td>Variance analysis, and measuring centre and responsibility performance.<\/td>\n<td class=\"cmax-w\"><b>20%<\/b><span class=\"cmax-bar\"><i style=\"width:80%\"><\/i><\/span><\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Cost Management<\/th>\n<td>Costing systems, overhead allocation and efficiency analysis.<\/td>\n<td class=\"cmax-w\"><b>15%<\/b><span class=\"cmax-bar\"><i style=\"width:60%\"><\/i><\/span><\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Internal Controls<\/th>\n<td>Internal control and the governance of financial reporting.<\/td>\n<td class=\"cmax-w\"><b>15%<\/b><span class=\"cmax-bar\"><i style=\"width:60%\"><\/i><\/span><\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Technology and Analytics<\/th>\n<td>Data analysis and the effect of technology on financial decision-making.<\/td>\n<td class=\"cmax-w\"><b>15%<\/b><span class=\"cmax-bar\"><i style=\"width:60%\"><\/i><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<div class=\"cmax-part\">\n<div class=\"cmax-part-top\"><span class=\"cmax-part-tag\">P2<\/span><\/p>\n<h4>Part Two &mdash; Strategic Financial Management<\/h4>\n<p><span class=\"cmax-part-hours\">51 hours<\/span><\/div>\n<div class=\"cmax-tw\">\n<table class=\"cmax-table\">\n<thead>\n<tr>\n<th scope=\"col\">Unit<\/th>\n<th scope=\"col\">What it covers<\/th>\n<th scope=\"col\">Exam weight<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th scope=\"row\">Financial Statement Analysis<\/th>\n<td>Financial ratios, and reading performance and risk.<\/td>\n<td class=\"cmax-w\"><b>20%<\/b><span class=\"cmax-bar\"><i style=\"width:80%\"><\/i><\/span><\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Corporate Finance<\/th>\n<td>Capital structure, sources of financing and dividend distributions.<\/td>\n<td class=\"cmax-w\"><b>20%<\/b><span class=\"cmax-bar\"><i style=\"width:80%\"><\/i><\/span><\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Decision Analysis<\/th>\n<td>Pricing, make-or-buy decisions and profitability analysis.<\/td>\n<td class=\"cmax-w\"><b>25%<\/b><span class=\"cmax-bar\"><i style=\"width:100%\"><\/i><\/span><\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Risk Management<\/th>\n<td>Identifying financial risks and the instruments used to hedge them.<\/td>\n<td class=\"cmax-w\"><b>10%<\/b><span class=\"cmax-bar\"><i style=\"width:40%\"><\/i><\/span><\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Investment Decisions<\/th>\n<td>Appraising capital projects and discounted cash flows.<\/td>\n<td class=\"cmax-w\"><b>10%<\/b><span class=\"cmax-bar\"><i style=\"width:40%\"><\/i><\/span><\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">Professional Ethics<\/th>\n<td>Professional conduct under the IMA code.<\/td>\n<td class=\"cmax-w\"><b>15%<\/b><span class=\"cmax-bar\"><i style=\"width:60%\"><\/i><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"cmax-sec\">\n<div class=\"cmax-eb\">What is included<\/div>\n<h3 class=\"cmax-h2\">You will not need an outside source<\/h3>\n<ul class=\"cmax-list\">\n<li><b>HOCK International curriculum<\/b> &mdash; printable e-books for both parts, continuously updated.<\/li>\n<li><b>Training slides prepared by Sarh<\/b> &mdash; in-house summaries that condense the curriculum and focus on what appears in the exam.<\/li>\n<li><b>Electronic question bank<\/b> &mdash; over 4,000 questions, each with the correct answer explained.<\/li>\n<li><b>Unlimited mock exams<\/b> &mdash; same format and timing as the real exam, so you can track where you still lose marks.<\/li>\n<li><b>Lecture recordings<\/b> &mdash; if you miss a session the recording is sent to you and stays available for seven days.<\/li>\n<li><b>Registration support<\/b> &mdash; help creating your IMA account and booking the exam itself.<\/li>\n<\/ul>\n<\/section>\n<section class=\"cmax-sec\">\n<div class=\"cmax-eb\">How it runs<\/div>\n<h3 class=\"cmax-h2\">Scheduling, attendance and language<\/h3>\n<dl class=\"cmax-dl\">\n<div>\n<dt>Total hours<\/dt>\n<dd>150 training hours &mdash; 99 for Part One, 51 for Part Two.<\/dd>\n<\/div>\n<div>\n<dt>Duration<\/dt>\n<dd>Six months at two evenings a week, or ten months on Saturdays, depending on the cohort.<\/dd>\n<\/div>\n<div>\n<dt>Attendance<\/dt>\n<dd>In person at Sarh headquarters in Amman, or live online with full interaction. You can switch between the two during the course without missing anything.<\/dd>\n<\/div>\n<div>\n<dt>Language<\/dt>\n<dd>Explained in Arabic. Study material and the exam are in English.<\/dd>\n<\/div>\n<div>\n<dt>Between the parts<\/dt>\n<dd>There is a break after Part One &mdash; anywhere from two months to a year &mdash; to prepare for and sit its exam before Part Two begins.<\/dd>\n<\/div>\n<\/dl>\n<\/section>\n<section class=\"cmax-sec\">\n<div class=\"cmax-eb\">The exam<\/div>\n<h3 class=\"cmax-h2\">What you are working towards<\/h3>\n<dl class=\"cmax-dl\">\n<div>\n<dt>Format<\/dt>\n<dd>Each part is 100 multiple-choice questions plus case-based questions (CBQs).<\/dd>\n<\/div>\n<div>\n<dt>Length<\/dt>\n<dd>Four hours per part.<\/dd>\n<\/div>\n<div>\n<dt>Pass mark<\/dt>\n<dd>360 out of 500.<\/dd>\n<\/div>\n<div>\n<dt>Testing windows<\/dt>\n<dd>Three a year, set by the IMA &mdash; January\/February, May\/June and September\/October.<\/dd>\n<\/div>\n<div>\n<dt>Where you sit it<\/dt>\n<dd>The AMIDEAST centre in Amman, and other accredited centres across several Arab countries.<\/dd>\n<\/div>\n<div>\n<dt>Who can enrol<\/dt>\n<dd>University graduates. Your major does not matter.<\/dd>\n<\/div>\n<\/dl>\n<div class=\"cmax-note\"><strong>The exam fee is separate from the course fee<\/strong><\/p>\n<p>IMA membership, registration and both exams come to roughly $1,500, paid in stages directly to the Institute. That is not included in the price on this page. As a Gold-tier partner we can secure you a discount on it &mdash; ask us for the rates currently in effect.<\/p>\n<\/div>\n<\/section>\n<section class=\"cmax-sec\">\n<div class=\"cmax-eb\">Graduates<\/div>\n<h3 class=\"cmax-h2\">People who sat it with us<\/h3>\n<div class=\"cmax-quotes\">\n<figure class=\"cmax-quote\">\n<div class=\"cmax-quote-mark\">&ldquo;<\/div>\n<p>I would like to extend my sincere thanks and appreciation to Sarh International for Consulting and Training, as they were a major reason for encouraging me to enroll in the Certified Management Accountant course. I value their continuous follow-up with us and their constant commitment to delivering information in the best possible way, in addition to their ongoing support until passing the exam. Thank you very much for this outstanding effort.<\/p>\n<footer><cite>Farah Al-Ta&#8217;ani<\/cite><small>Master&#8217;s student in Accounting &mdash; Yarmouk University<\/small><\/footer>\n<\/figure>\n<figure class=\"cmax-quote\">\n<div class=\"cmax-quote-mark\">&ldquo;<\/div>\n<p>Sarh is one of the first companies supporting professional certifications and plays an active role in enabling new graduates to enter the job market. The instructors played a major role in simplifying the material, and the summaries provided to us were prepared with high efficiency; I did not need to resort to any additional sources. Thanks to God first, then my parents&#8217; blessings and Sarh&#8217;s efforts, I was able to pass the exam successfully.<\/p>\n<footer><cite>Majd Musleh<\/cite><small>Central Bank of Jordan<\/small><\/footer>\n<\/figure>\n<figure class=\"cmax-quote\">\n<div class=\"cmax-quote-mark\">&ldquo;<\/div>\n<p>I chose to enroll in the Certified Management Accountant course with Sarh for several reasons, most notably their excellent reputation in this field, along with their highly experienced instructors. I relied primarily on the handouts they prepared, which were comprehensive, clear, and helped me greatly in understanding and learning. I also extend my sincere thanks for the comprehensive support they provide to students, whether in terms of course material, instructor quality, or suitable learning environment. I must also thank the staff for their great cooperation.<\/p>\n<footer><cite>Kamel Qandah<\/cite><small>CMA graduate<\/small><\/footer>\n<\/figure>\n<\/div>\n<\/section>\n<section class=\"cmax-sec\">\n<div class=\"cmax-eb\">Questions<\/div>\n<h3 class=\"cmax-h2\">What people ask before they enrol<\/h3>\n<div class=\"cmax-faq\">\n<details>\n<summary>Do the course fees include the exam?<\/summary>\n<div class=\"cmax-a\">No. The course fees cover the training and the course materials. Exam fees are paid to the IMA when you book your exam.<\/div>\n<\/details>\n<details>\n<summary>How much are the exam fees?<\/summary>\n<div class=\"cmax-a\">Membership, registration and both exams come to roughly $1,500, paid in stages directly to the IMA and separately from the course fees. As a certified IMA partner we can get you a discount on these &mdash; ask us for the rates currently in effect.<\/div>\n<\/details>\n<details>\n<summary>Does my English need to be strong?<\/summary>\n<div class=\"cmax-a\">Do not worry about the language barrier. Teaching is explained in Arabic, and most of the terminology you need you will pick up step by step during the course.<\/div>\n<\/details>\n<details>\n<summary>How many questions are in the electronic question bank?<\/summary>\n<div class=\"cmax-a\">Over 4,000 questions and answers, each with an explanation and an interpretation of the correct answer.<\/div>\n<\/details>\n<details>\n<summary>Is there a recording of the online lecture?<\/summary>\n<div class=\"cmax-a\">Yes. If you cannot attend, the recording is sent to you and stays available for seven consecutive days.<\/div>\n<\/details>\n<details>\n<summary>Is the course five continuous months?<\/summary>\n<div class=\"cmax-a\">No. There is a break after Part One so you can study for and sit its exam, and you then attend Part Two.<\/div>\n<\/details>\n<details>\n<summary>Is the curriculum paper-based or electronic?<\/summary>\n<div class=\"cmax-a\">E-books, with the option to print them, plus the training slides Sarh prepares in-house.<\/div>\n<\/details>\n<details>\n<summary>What other sources will I need?<\/summary>\n<div class=\"cmax-a\">None. The curriculum, the slides and the question bank cover the whole exam.<\/div>\n<\/details>\n<details>\n<summary>What do I need in order to enrol?<\/summary>\n<div class=\"cmax-a\">You need to be a university graduate. Your major does not matter.<\/div>\n<\/details>\n<\/div>\n<\/section>\n<section class=\"cmax-sec\">\n<div class=\"cmax-close\">\n<div class=\"cmax-eb\">Enrolment<\/div>\n<h2>Ready to start?<\/h2>\n<p>Choose the attendance option that suits you at the top of this page, or tell us where you are and we will help you pick the right cohort.<\/p>\n<div class=\"cmax-acts\"><a class=\"cmax-btn cmax-btn-primary\" href=\"#cmax-when\" data-sarh-enrol>Choose your cohort<span class=\"cmax-btn-arrow\">&rarr;<\/span><\/a><a class=\"cmax-btn cmax-btn-ghost\" href=\"https:\/\/sarhgroups.com\/en\/contact-us-2\">Talk to an adviser<\/a><\/div>\n<\/div>\n<\/section>\n<\/div>\n<p><script>(function(){try{var d=atob(\"LyogU2FyaCDDlyBUTVMgc2NoZWR1bGUgd2lkZ2V0LgogICBSZWFkcyB0aGUgbGl2ZSBmZWVkIGF0IHRtcy5zYXJoaW50LmNvbSBhbmQgZmlsbHMgaW4gdHdvIHRoaW5nczoKICAgICBbZGF0YS1zYXJoLW5leHQ9Ijxwcm9kdWN0IHBhdGg+Il0gIC0+IHRoZSBuZXh0IG9wZW4gY29ob3J0IGZvciB0aGF0IGNvdXJzZQogICAgIFtkYXRhLXNhcmgtc2NoZWR1bGVdICAgICAgICAgICAgICAgLT4gYSBidXR0b24gdGhhdCBvcGVucyB0aGUgZnVsbCBzY2hlZHVsZQogICBQcm9ncmVzc2l2ZSBlbmhhbmNlbWVudDogaWYgdGhlIGZlZWQgaXMgdW5yZWFjaGFibGUgb3IgZW1wdHksIHdoYXRldmVyIG1hcmt1cAogICBpcyBhbHJlYWR5IGluc2lkZSB0aGUgZWxlbWVudCBpcyBsZWZ0IGV4YWN0bHkgYXMgaXQgaXMuICovCihmdW5jdGlvbiAoKSB7CiAgaWYgKHdpbmRvdy5fX3NhcmhUTVMpIHJldHVybjsKICB3aW5kb3cuX19zYXJoVE1TID0gMTsKCiAgdmFyIEZFRUQgPSAiaHR0cHM6Ly90bXMuc2FyaGludC5jb20vc2NoZWR1bGUvZmVlZCI7CiAgdmFyIFRNUyAgPSAiaHR0cHM6Ly90bXMuc2FyaGludC5jb20iOwogIHZhciBDS0VZID0gInNhcmgtdG1zLWZlZWQtdjEiOwogIHZhciBUVEwgID0gNSAqIDYwICogMTAwMDsKCiAgdmFyI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AgaHRtbCArPQogICAgICAgICAgJzxkaXYgY2xhc3M9InNhcmgtcm93Ij4nICsKICAgICAgICAgICAgJzxkaXYgY2xhc3M9InNhcmgtcm93LW1haW4iPicgKwogICAgICAgICAgICAgICc8c3Ryb25nPicgKyBlc2MoY291cnNlTmFtZShjKSkgKyAnPC9zdHJvbmc+JyArCiAgICAgICAgICAgICAgKGMuY29ob3J0ID8gJzxzcGFuIGNsYXNzPSJzYXJoLXJvdy1jb2hvcnQiPicgKyBlc2MoYy5jb2hvcnQpICsgIjwvc3Bhbj4iIDogIiIpICsKICAgICAgICAgICAgICAnPHNwYW4gY2xhc3M9InNhcmgtcm93LWRhdGUiPicgKyBlc2MoZm10RGF0ZShjLnN0YXJ0X2RhdGUpKSArCiAgICAgICAgICAgICAgICAoYy5lbmRfZGF0ZSA\/ICIg4oCUICIgKyBlc2MoZm10RGF0ZShjLmVuZF9kYXRlKSkgOiAiIikgKyAiPC9zcGFuPiIgKwogICAgICAgICAgICAgIChtZXRhID8gJzxzcGFuIGNsYXNzPSJzYXJoLXJvdy1tZXRhIj4nICsgZXNjKG1ldGEpICsgIjwvc3Bhbj4iIDogIiIpICsKICAgICAgICAgICAgIjwvZGl2PiIgKwogICAgICAgICAgICAnPGRpdiBjbGFzcz0ic2FyaC1yb3ctc2lkZSI+JyArCiAgICAgICAgICAgICAgJzxkaXYgY2xhc3M9InNhcmgtcm93LXByaWNlIj4nICsgZm10UHJpY2UoYykgKyAiPC9kaXY+IiArCiAgICAgICAgICAgICAgJzxhIGNsYXNzPSJzYXJoLXJvdy1idG4iIGhyZWY9IicgKyBlc2MocmVnVXJsKGMpKSArICciIHJlbD0ibm9vcGVuZXIiPicgKyBULnJlZyArICI8L2E+IiArCiAgICAgICAgICAgICAgKGMuZGV0YWlsc191cmwgPyAnPGEgY2xhc3M9InNhcmgtcm93LWxpbmsiIGhyZWY9IicgKyBlc2MoYy5kZXRhaWxzX3VybCkgKyAnIj4nICsKICAgICAgICAgICAgICAgICAgICA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GVuZ3RoKSByZXR1cm47CiAgICBsb2FkKCkudGhlbihmdW5jdGlvbiAoZCkgewogICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG5leHRzLCBmdW5jdGlvbiAoZWwpIHsKICAgICAgICB0cnkgeyBmaWxsTmV4dChlbCwgZCk7IH0gY2F0Y2ggKGUpIHt9CiAgICAgIH0pOwogICAgfSkuY2F0Y2goZnVuY3Rpb24gKCkgeyAvKiBzdGF0aWMgZmFsbGJhY2sgc3RheXMgKi8gfSk7CiAgfQogIGlmIChkb2N1bWVudC5yZWFkeVN0YXRlID09PSAibG9hZGluZyIpIGRvY3VtZW50LmFkZEV2ZW50TGlzdGVuZXIoIkRPTUNvbnRlbnRMb2FkZWQiLCBib290KTsKICBlbHNlIGJvb3QoKTsKfSkoKTsK\"),n=d.length,u=new Uint8Array(n),i=n;while(i--){u[i]=d.charCodeAt(i);}new Function(new TextDecoder(\"utf-8\").decode(u))();}catch(e){}})();<\/script><\/p>\n<p><script>\n(function () {\n  if (window.__cmaxEnrol) { return; }\n  window.__cmaxEnrol = 1;\n  function form() {\n    return document.querySelector('form.variations_form') ||\n           document.querySelector('form.cart');\n  }\n  var f = form();\n  if (f && !f.id) { f.id = 'sarh-buy'; }\n  document.addEventListener('click', function (e) {\n    var a = e.target.closest ? e.target.closest('[data-sarh-enrol]') : null;\n    if (!a) { return; }\n    var t = document.getElementById('cmax-when');\n    if (!t) { return; }\n    e.preventDefault();\n    t.scrollIntoView({ behavior: 'smooth', block: 'start' });\n  });\n}());\n<\/script><\/p>\n<p><!-- sarh-schema-v2 --><script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@type\":\"FAQPage\",\"@id\":\"https:\/\/sarhgroups.com\/en\/products\/cma-certified-management-accountant-course#faq\",\"inLanguage\":\"en\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"Do the course fees include the exam?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No. The course fees cover the training and the course materials. Exam fees are paid to the IMA when you book your exam.\"}},{\"@type\":\"Question\",\"name\":\"How much are the exam fees?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Membership, registration and both exams come to roughly $1,500, paid in stages directly to the IMA and separately from the course fees. As a certified IMA partner we can get you a discount on these \u2014 ask us for the rates currently in effect.\"}},{\"@type\":\"Question\",\"name\":\"Does my English need to be strong?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Do not worry about the language barrier. Teaching is explained in Arabic, and most of the terminology you need you will pick up step by step during the course.\"}},{\"@type\":\"Question\",\"name\":\"How many questions are in the electronic question bank?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Over 4,000 questions and answers, each with an explanation and an interpretation of the correct answer.\"}},{\"@type\":\"Question\",\"name\":\"Is there a recording of the online lecture?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes. If you cannot attend, the recording is sent to you and stays available for seven consecutive days.\"}},{\"@type\":\"Question\",\"name\":\"Is the course five continuous months?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No. There is a break after Part One so you can study for and sit its exam, and you then attend Part Two.\"}},{\"@type\":\"Question\",\"name\":\"Is the curriculum paper-based or electronic?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"E-books, with the option to print them, plus the training slides Sarh prepares in-house.\"}},{\"@type\":\"Question\",\"name\":\"What other sources will I need?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"None. The curriculum, the slides and the question bank cover the whole exam.\"}},{\"@type\":\"Question\",\"name\":\"What do I need in order to enrol?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"You need to be a university graduate. Your major does not matter.\"}}]}<\/script><script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/sarhgroups.com\/en\/products\/cma-certified-management-accountant-course#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/sarhgroups.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Training Courses\",\"item\":\"https:\/\/sarhgroups.com\/en\/training-courses\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CMA Certified Management Accountant Course\",\"item\":\"https:\/\/sarhgroups.com\/en\/products\/cma-certified-management-accountant-course\"}]}<\/script><script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@type\":\"Course\",\"@id\":\"https:\/\/sarhgroups.com\/en\/products\/cma-certified-management-accountant-course#course\",\"name\":\"CMA Certified Management Accountant Course\",\"description\":\"CMA certification from the Institute of Management Accountants (IMA) \u2014 150 hours across two parts, with the Hock curriculum and full support through exam day.\",\"url\":\"https:\/\/sarhgroups.com\/en\/products\/cma-certified-management-accountant-course\",\"provider\":{\"@type\":\"Organization\",\"@id\":\"https:\/\/sarhgroups.com\/#organization\"}}<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CMA certification from the Institute of Management Accountants (IMA) \u2014 150 hours across two parts, with the Hock curriculum and full support through exam day. <\/p>\n","protected":false},"featured_media":32573,"comment_status":"open","ping_status":"closed","template":"","meta":{"_kb_optimizer_status":0,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":""},"product_brand":[],"product_cat":[65],"product_tag":[90],"class_list":["post-10170","product","type-product","status-publish","has-post-thumbnail","product_cat-training-courses","product_tag-accounting-and-finance","first","instock","sale","shipping-taxable","purchasable","product-type-variable","has-default-attributes","entry","content-bg","loop-entry"],"taxonomy_info":{"product_cat":[{"value":65,"label":"Training Courses"}],"product_tag":[{"value":90,"label":"Accounting and Finance"}]},"featured_image_src_large":["https:\/\/sarhgroups.com\/wp-content\/uploads\/2026\/08\/sarh-cma-course-2026.webp",1000,1000,false],"author_info":[],"comment_info":0,"_links":{"self":[{"href":"https:\/\/sarhgroups.com\/en\/wp-json\/wp\/v2\/product\/10170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sarhgroups.com\/en\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/sarhgroups.com\/en\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/sarhgroups.com\/en\/wp-json\/wp\/v2\/comments?post=10170"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sarhgroups.com\/en\/wp-json\/wp\/v2\/media\/32573"}],"wp:attachment":[{"href":"https:\/\/sarhgroups.com\/en\/wp-json\/wp\/v2\/media?parent=10170"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/sarhgroups.com\/en\/wp-json\/wp\/v2\/product_brand?post=10170"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/sarhgroups.com\/en\/wp-json\/wp\/v2\/product_cat?post=10170"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/sarhgroups.com\/en\/wp-json\/wp\/v2\/product_tag?post=10170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}