/*
Theme Name: Mr Ahmed Salah Academy
Theme URI: https://mrahmedsalah.com/
Author: mrahmedsalah.com
Description: Custom Arabic mathematics education theme for Mr Ahmed Salah, Tutor LMS and WooCommerce ready.
Version: 1.0.39
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ahmed-ezzat-academy
*/

:root{--aez-orange:#2563eb;--aez-orange-dark:#1d4ed8;--aez-ink:#111827;--aez-muted:#667085;--aez-border:#ece8e3;--aez-soft:#eff6ff;--aez-green:#2e7d32;--aez-radius:22px;--aez-shadow:0 16px 45px rgba(17,24,39,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--aez-ink);font-family:"Tajawal","Cairo",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.75;direction:rtl}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.container{width:min(1180px,92%);margin-inline:auto}.site-main{min-height:60vh}.aez-btn,.wp-element-button,.tutor-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:.55rem;border-radius:14px!important;padding:.82rem 1.25rem!important;font-weight:800!important;border:1px solid transparent!important;transition:.2s ease}.aez-btn-primary,.tutor-btn-primary{background:var(--aez-orange)!important;color:#fff!important}.aez-btn-primary:hover,.tutor-btn-primary:hover{background:var(--aez-orange-dark)!important;transform:translateY(-1px)}.aez-btn-outline{background:#fff;border-color:var(--aez-orange)!important;color:var(--aez-orange)!important}.aez-section{padding:74px 0}.aez-section-title{font-size:clamp(1.7rem,3vw,2.6rem);margin:0 0 10px;font-weight:900;letter-spacing:-.03em}.aez-section-sub{color:var(--aez-muted);margin:0 auto 28px;max-width:740px}.aez-kicker{display:inline-flex;background:var(--aez-soft);color:var(--aez-orange);border:1px solid #ffd8bd;border-radius:999px;padding:6px 12px;font-size:.88rem;font-weight:800}

/* Header */
.aez-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid rgba(236,232,227,.85)}.aez-nav{height:78px;display:flex;align-items:center;gap:26px}.aez-brand{display:flex;align-items:center;gap:10px;min-width:max-content}.aez-brand img{width:54px;height:54px}.aez-brand-text strong{display:block;font-size:1.02rem;line-height:1.2}.aez-brand-text span{font-size:.72rem;color:var(--aez-muted)}.aez-menu{display:flex;gap:24px;align-items:center;margin-right:auto;margin-left:auto}.aez-menu a{font-weight:800;font-size:.95rem;position:relative}.aez-menu a:hover,.aez-menu .current-menu-item>a{color:var(--aez-orange)}.aez-menu a:after{content:"";height:2px;width:0;background:var(--aez-orange);position:absolute;right:0;bottom:-8px;transition:.2s}.aez-menu a:hover:after{width:100%}.aez-actions{display:flex;align-items:center;gap:10px}.aez-menu-toggle{display:none;border:0;background:var(--aez-soft);border-radius:12px;padding:10px;font-size:1.25rem}


/* Header hardening: protects the custom theme header from legacy page-builder/custom CSS that hides generic header elements. */
#aez-site-header.aez-header{display:block!important;visibility:visible!important;opacity:1!important;position:sticky!important;top:0!important;width:100%!important;height:auto!important;min-height:78px!important;overflow:visible!important;transform:none!important;clip:auto!important;clip-path:none!important;z-index:999999!important;background:rgba(255,255,255,.98)!important;border-bottom:1px solid rgba(236,232,227,.95)!important}
#aez-site-header .aez-nav{display:flex!important;visibility:visible!important;opacity:1!important}
#aez-site-header .aez-brand{display:flex!important;visibility:visible!important;opacity:1!important}
#aez-site-header .aez-brand img{display:block!important;visibility:visible!important;opacity:1!important;width:54px!important;height:54px!important}
#aez-site-header .aez-brand-text{display:block!important;visibility:visible!important;opacity:1!important}
#aez-site-header .aez-brand-text strong{display:block!important}
body.admin-bar #aez-site-header.aez-header{top:32px!important}
@media(max-width:782px){body.admin-bar #aez-site-header.aez-header{top:46px!important}}

/* Hero */
.aez-hero{overflow:hidden;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border-bottom:1px solid var(--aez-border)}.aez-hero-grid{min-height:620px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:42px}.aez-hero-copy h1{font-size:clamp(2.4rem,5vw,4.8rem);line-height:1.07;margin:16px 0 18px;font-weight:950;letter-spacing:-.055em}.aez-hero-copy h1 span{color:var(--aez-orange)}.aez-hero-copy p{font-size:1.15rem;color:var(--aez-muted);max-width:650px}.aez-hero-ctas{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.aez-hero-points{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:30px}.aez-mini{border:1px solid var(--aez-border);background:#fff;border-radius:18px;padding:16px;box-shadow:0 10px 25px rgba(17,24,39,.04)}.aez-mini b{display:block;color:var(--aez-orange);font-size:1.05rem}.aez-mini span{color:var(--aez-muted);font-size:.86rem}.aez-hero-visual{position:relative;min-height:560px;display:flex;align-items:flex-end;justify-content:center}.aez-blob{position:absolute;inset:70px 10px 30px;border-radius:42% 58% 48% 52% / 44% 45% 55% 56%;background:radial-gradient(circle at 55% 30%,#ffb678 0,#ff8a35 38%,#2563eb 100%);opacity:.18}.aez-hero-visual img{position:relative;z-index:2;max-height:580px;object-fit:contain;filter:drop-shadow(0 18px 30px rgba(17,24,39,.15))}.aez-quote{position:absolute;z-index:3;left:0;top:90px;background:#fff;border:1px solid #ffd0af;border-radius:18px;padding:16px 18px;box-shadow:var(--aez-shadow);font-weight:900;max-width:180px}.aez-quote:before{content:'“';color:var(--aez-orange);font-size:2rem;line-height:.5}

/* Cards */
.aez-features{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.aez-feature{border:1px solid var(--aez-border);border-radius:18px;padding:20px 16px;background:#fff;box-shadow:0 10px 26px rgba(17,24,39,.035);transition:.2s}.aez-feature:hover{transform:translateY(-4px);border-color:#ffc79e}.aez-feature .icon{width:44px;height:44px;border-radius:14px;background:var(--aez-soft);display:grid;place-items:center;color:var(--aez-orange);font-size:1.35rem;margin-bottom:10px}.aez-feature h3{font-size:1rem;margin:0 0 5px}.aez-feature p{font-size:.86rem;color:var(--aez-muted);margin:0}.aez-about{background:#f8fbff}.aez-about-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:50px;align-items:center}.aez-about-image{position:relative;min-height:420px}.aez-about-image img{height:440px;object-fit:contain}.aez-about-copy p{color:var(--aez-muted)}.aez-badges{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:22px}.aez-badge{border:1px solid var(--aez-border);border-radius:14px;background:#fff;padding:13px 14px;font-weight:800}.aez-grades{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.aez-grade{border:1px solid var(--aez-border);border-radius:20px;padding:24px;background:#fff;box-shadow:0 10px 28px rgba(17,24,39,.045);position:relative;overflow:hidden}.aez-grade:before{content:"";position:absolute;left:-20px;top:-20px;width:90px;height:90px;border-radius:50%;background:var(--aez-soft)}.aez-grade h3{margin:0;font-size:1.2rem}.aez-grade p{color:var(--aez-muted);margin:5px 0 0}.aez-courses-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.aez-course-card{border:1px solid var(--aez-border);border-radius:20px;background:#fff;overflow:hidden;box-shadow:0 12px 32px rgba(17,24,39,.05)}.aez-course-card img{width:100%;aspect-ratio:16/9;object-fit:cover}.aez-course-card-body{padding:18px}.aez-course-card h3{margin:6px 0 4px;font-size:1.16rem}.aez-course-card p{color:var(--aez-muted);font-size:.9rem;margin:0 0 14px}.aez-course-meta{display:flex;gap:12px;color:var(--aez-muted);font-size:.85rem;margin:10px 0 14px}.aez-cta{background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;border-radius:28px;padding:42px;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden;position:relative}.aez-cta h2{margin:0 0 8px;font-size:2rem}.aez-cta p{margin:0;opacity:.9}.aez-cta img{height:210px;position:absolute;left:20px;bottom:-15px}

/* Generic pages */
.aez-page-hero{padding:50px 0 28px;background:#f8fbff;border-bottom:1px solid var(--aez-border)}.aez-page-hero h1{margin:0;font-size:2.4rem}.aez-content{padding:50px 0}.aez-content article{background:#fff;border:1px solid var(--aez-border);border-radius:20px;padding:30px}

/* Auth */
.aez-auth{padding:46px 0;background:linear-gradient(180deg,#fff,#f8fbff)}.aez-auth-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:34px;align-items:stretch}.aez-auth-brand,.aez-auth-card{border:1px solid var(--aez-border);border-radius:26px;background:#fff;box-shadow:var(--aez-shadow)}.aez-auth-brand{padding:34px;position:relative;overflow:hidden}.aez-auth-brand img{max-height:460px;display:block;margin:20px auto 0}.aez-auth-card{padding:34px}.aez-auth-card h1{margin-top:0}.aez-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.aez-field{display:flex;flex-direction:column;gap:7px}.aez-field.full{grid-column:1/-1}.aez-field label{font-weight:800}.aez-field input,.aez-field select{width:100%;border:1px solid #d9dde3;border-radius:13px;padding:13px 14px;font:inherit;background:#fff;outline:none}.aez-field input:focus,.aez-field select:focus{border-color:var(--aez-orange);box-shadow:0 0 0 3px rgba(255,107,0,.1)}.aez-radio-row{display:flex;gap:8px;flex-wrap:wrap}.aez-radio{flex:1;min-width:100px;border:1px solid #d9dde3;border-radius:12px;padding:11px 12px;text-align:center}.aez-notice{border-radius:14px;padding:12px 14px;margin-bottom:16px}.aez-notice.error{background:#fff1f1;color:#b42318}.aez-notice.success{background:#ecfdf3;color:#027a48}

/* Footer */
.aez-footer{border-top:1px solid var(--aez-border);padding:46px 0 20px;background:#fff}.aez-footer-grid{display:grid;grid-template-columns:1.3fr repeat(3,1fr);gap:32px}.aez-footer h4{margin:0 0 12px}.aez-footer ul{list-style:none;padding:0;margin:0}.aez-footer li{margin:7px 0;color:var(--aez-muted)}.aez-copy{text-align:center;color:var(--aez-muted);font-size:.82rem;border-top:1px solid var(--aez-border);margin-top:28px;padding-top:18px}

/* Tutor LMS compatibility */
.tutor-wrap,.tutor-container{max-width:1180px!important;margin-inline:auto!important}.tutor-dashboard,.tutor-course-single-content-wrapper,.tutor-course-details-page{font-family:inherit!important}.tutor-card,.tutor-dashboard .tutor-dashboard-content,.tutor-course-card,.tutor-course-details-tab,.tutor-course-single-sidebar-wrapper{border-radius:18px!important;border-color:var(--aez-border)!important;box-shadow:0 10px 28px rgba(17,24,39,.045)!important}.tutor-color-primary,.tutor-link{color:var(--aez-orange)!important}.tutor-bg-primary{background:var(--aez-orange)!important}.tutor-form-control{border-radius:12px!important}.tutor-form-control:focus{border-color:var(--aez-orange)!important;box-shadow:0 0 0 3px rgba(255,107,0,.1)!important}.tutor-dashboard-left-menu .tutor-dashboard-menu-item-link{border-radius:12px!important;margin-bottom:4px!important}.tutor-dashboard-left-menu .active .tutor-dashboard-menu-item-link,.tutor-dashboard-menu-item-link:hover{background:var(--aez-soft)!important;color:var(--aez-orange)!important}.tutor-course-card .tutor-card-image-top{border-radius:18px 18px 0 0!important}.tutor-ratings-stars{color:#ff9f43!important}.tutor-pagination-wrapper .page-numbers.current{background:var(--aez-orange)!important;color:#fff!important}.tutor-login-wrap,.tutor-registration-wrap{border-radius:22px!important;box-shadow:var(--aez-shadow)!important;border:1px solid var(--aez-border)!important;padding:28px!important}.tutor-course-single-content-wrapper{background:#fff!important}.tutor-course-single-sidebar-wrapper{background:#fff!important}.tutor-accordion-item-header.is-active{color:var(--aez-orange)!important}.tutor-course-topic-item.is-active a{color:var(--aez-orange)!important;background:var(--aez-soft)!important}.tutor-course-details-widget-col-2 .tutor-course-details-widget{border-radius:18px!important}.tutor-progress-bar .tutor-progress-value{background:var(--aez-orange)!important}.tutor-iconic-btn{border-radius:12px!important}

@media(max-width:980px){.aez-menu{display:none;position:absolute;top:78px;right:4%;left:4%;background:#fff;border:1px solid var(--aez-border);border-radius:18px;padding:18px;box-shadow:var(--aez-shadow);flex-direction:column;align-items:stretch}.aez-menu.open{display:flex}.aez-menu-toggle{display:block}.aez-actions .aez-btn{display:none!important}.aez-hero-grid,.aez-about-grid,.aez-auth-grid{grid-template-columns:1fr}.aez-hero-visual{min-height:440px}.aez-features{grid-template-columns:repeat(2,1fr)}.aez-grades,.aez-courses-grid{grid-template-columns:1fr 1fr}.aez-footer-grid{grid-template-columns:1fr 1fr}.aez-cta img{opacity:.22}}
@media(max-width:640px){.aez-nav{height:68px}.aez-brand img{width:46px;height:46px}.aez-brand-text strong{font-size:.87rem}.aez-brand-text span{display:none}.aez-hero-grid{min-height:auto;padding:34px 0}.aez-hero-copy h1{font-size:2.45rem}.aez-hero-points{grid-template-columns:1fr}.aez-hero-visual{min-height:360px}.aez-quote{left:8px;top:25px}.aez-features,.aez-grades,.aez-courses-grid,.aez-badges,.aez-footer-grid,.aez-form-grid{grid-template-columns:1fr}.aez-section{padding:52px 0}.aez-cta{padding:30px 24px}.aez-cta img{display:none}.aez-auth-card,.aez-auth-brand{padding:22px}.tutor-wrap{padding-inline:12px!important}}

/* =========================================================
   WooCommerce integration — AEZ Academy v1.0.2
   ========================================================= */
.aez-woo-main{padding:42px 0 70px;background:#f8fbff;min-height:65vh}
.aez-woo-container{direction:rtl}
.aez-woocommerce .woocommerce{font-family:inherit;color:#222}
.aez-woocommerce .woocommerce .woocommerce-breadcrumb{margin:0 0 24px;color:#777;font-size:14px}
.aez-woocommerce .woocommerce .woocommerce-breadcrumb a{color:#f36b21;text-decoration:none}
.aez-woocommerce .woocommerce h1,.aez-woocommerce .woocommerce h2,.aez-woocommerce .woocommerce h3{color:#1d1d1f}
.aez-woocommerce .woocommerce ul.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0;padding:0}
.aez-woocommerce .woocommerce ul.products::before,.aez-woocommerce .woocommerce ul.products::after{display:none}
.aez-woocommerce .woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;background:#fff;border:1px solid #f1e7df;border-radius:22px;padding:14px;box-shadow:0 10px 35px rgba(45,35,27,.06);overflow:hidden;transition:.2s ease}
.aez-woocommerce .woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(45,35,27,.10)}
.aez-woocommerce .woocommerce ul.products li.product a img{border-radius:16px;margin-bottom:14px}
.aez-woocommerce .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:19px;font-weight:800;padding:4px 3px}
.aez-woocommerce .woocommerce ul.products li.product .price{color:#f36b21;font-size:18px;font-weight:800}
.aez-woocommerce .woocommerce a.button,.aez-woocommerce .woocommerce button.button,.aez-woocommerce .woocommerce input.button,.aez-woocommerce .woocommerce #respond input#submit{background:#f36b21;color:#fff;border-radius:12px;padding:12px 18px;font-weight:800;border:0;line-height:1.35}
.aez-woocommerce .woocommerce a.button:hover,.aez-woocommerce .woocommerce button.button:hover,.aez-woocommerce .woocommerce input.button:hover{background:#d95716;color:#fff}
.aez-woocommerce .woocommerce span.onsale{background:#f36b21;min-height:auto;min-width:auto;line-height:1;border-radius:999px;padding:9px 12px;right:12px;left:auto;top:12px}
.aez-woocommerce .woocommerce div.product{background:#fff;border:1px solid #f1e7df;border-radius:26px;padding:26px;box-shadow:0 12px 40px rgba(45,35,27,.06)}
.aez-woocommerce .woocommerce div.product div.images img{border-radius:20px}
.aez-woocommerce .woocommerce div.product .product_title{font-weight:900;font-size:34px;line-height:1.3}
.aez-woocommerce .woocommerce div.product p.price,.aez-woocommerce .woocommerce div.product span.price{color:#f36b21;font-size:24px;font-weight:900}
.aez-woocommerce .woocommerce div.product form.cart{display:flex;gap:10px;align-items:center}
.aez-woocommerce .woocommerce .quantity .qty{height:44px;border:1px solid #e7ddd5;border-radius:10px;padding:0 8px}
.aez-woocommerce .woocommerce div.product .woocommerce-tabs{margin-top:38px}
.aez-woocommerce .woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;display:flex;gap:10px;border:0}
.aez-woocommerce .woocommerce div.product .woocommerce-tabs ul.tabs::before{display:none}
.aez-woocommerce .woocommerce div.product .woocommerce-tabs ul.tabs li{border:1px solid #eee0d7;background:#fff8f3;border-radius:12px;margin:0;padding:0 18px}
.aez-woocommerce .woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:#f36b21;border-color:#f36b21}
.aez-woocommerce .woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:#fff}
.aez-woocommerce .woocommerce-message,.aez-woocommerce .woocommerce-info,.aez-woocommerce .woocommerce-error{background:#fff;border:1px solid #f0e4da;border-top:4px solid #f36b21;border-radius:14px;box-shadow:none}
.aez-woocommerce .woocommerce-message::before,.aez-woocommerce .woocommerce-info::before{color:#f36b21}
.aez-woocommerce .woocommerce table.shop_table{border:1px solid #eee2d8;border-radius:16px;background:#fff;overflow:hidden}
.aez-woocommerce .woocommerce table.shop_table th{font-weight:800;background:#fff8f3}
.aez-woocommerce .woocommerce-cart-form,.aez-woocommerce .cart_totals,.aez-woocommerce .woocommerce-checkout-review-order,.aez-woocommerce form.checkout,.aez-woocommerce .woocommerce-MyAccount-content,.aez-woocommerce .woocommerce-MyAccount-navigation{background:#fff;border:1px solid #eee2d8;border-radius:18px;padding:20px;box-shadow:0 8px 30px rgba(45,35,27,.05)}
.aez-woocommerce .woocommerce form .form-row input.input-text,.aez-woocommerce .woocommerce form .form-row textarea,.aez-woocommerce .select2-container .select2-selection--single{border:1px solid #e6ddd5;border-radius:11px;min-height:46px;padding:10px;background:#fff}
.aez-woocommerce .woocommerce-checkout #payment{background:#fff8f3;border-radius:16px}
.aez-woocommerce .woocommerce-checkout #payment div.payment_box{background:#fff}
.aez-woocommerce .woocommerce-checkout #payment div.payment_box::before{border-bottom-color:#fff}
.aez-woocommerce .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0}
.aez-woocommerce .woocommerce-MyAccount-navigation li a{display:block;padding:11px 13px;border-radius:10px;text-decoration:none;color:#333;font-weight:700}
.aez-woocommerce .woocommerce-MyAccount-navigation li.is-active a,.aez-woocommerce .woocommerce-MyAccount-navigation li a:hover{background:#fff1e8;color:#f36b21}
.aez-woocommerce .woocommerce-account .woocommerce-MyAccount-navigation{float:right;width:25%}
.aez-woocommerce .woocommerce-account .woocommerce-MyAccount-content{float:left;width:72%}
@media(max-width:900px){
  .aez-woocommerce .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .aez-woocommerce .woocommerce-account .woocommerce-MyAccount-navigation,.aez-woocommerce .woocommerce-account .woocommerce-MyAccount-content{float:none;width:100%;margin-bottom:18px}
  .aez-woocommerce .woocommerce div.product{padding:18px}
}
@media(max-width:580px){
  .aez-woo-main{padding:24px 0 50px}
  .aez-woocommerce .woocommerce ul.products{grid-template-columns:1fr}
  .aez-woocommerce .woocommerce div.product .product_title{font-size:28px}
  .aez-woocommerce .woocommerce div.product form.cart{align-items:stretch;flex-wrap:wrap}
}

/* =========================================================
   Screenshot-matched homepage + header — v1.0.6
   ========================================================= */
:root{--aez-orange:#2563eb;--aez-orange-dark:#1d4ed8;--aez-ink:#101827;--aez-cream:#f8fbff}
#aez-site-header.aez-header{position:relative!important;top:auto!important;min-height:64px!important;background:#fff!important;border-top:3px solid var(--aez-orange)!important;border-bottom:1px solid #f2eee9!important;box-shadow:none!important;z-index:99999!important}
body.admin-bar #aez-site-header.aez-header{top:auto!important}
#aez-site-header .aez-nav{height:62px!important;display:grid!important;grid-template-columns:260px 1fr 230px;align-items:center;gap:16px;direction:rtl}
#aez-site-header .aez-brand{gap:8px!important;justify-self:start;min-width:0}.aez-brand img{width:48px!important;height:48px!important}.aez-brand-text{line-height:1.05;text-align:right}.aez-brand-text>span{display:block!important;color:#111827!important;font-size:13px!important;font-weight:900!important}.aez-brand-text strong{font-size:18px!important;font-weight:900!important;white-space:nowrap}.aez-brand-text small{display:block;font-size:10px;color:#6d7280;margin-top:4px}
#aez-site-header .aez-menu{margin:0!important;justify-content:center;gap:34px}.aez-menu a{font-size:13px;font-weight:900;color:#252b35;padding:19px 0 18px}.aez-menu a:after{height:3px;bottom:8px;border-radius:10px}.aez-menu a[href$="/"]{color:var(--aez-orange)}.aez-menu a[href$="/"]:after{width:100%}
#aez-site-header .aez-actions{justify-self:end;direction:ltr;gap:13px}.aez-header-cta{min-width:126px;border-radius:18px!important;padding:10px 17px!important;box-shadow:0 7px 15px rgba(255,102,0,.18);font-size:14px}.aez-user-glyph{font-size:17px}.aez-search-round{width:40px;height:40px;border-radius:50%;background:#fff;border:1px solid #eadfd6;position:relative;cursor:pointer}.aez-search-round span{position:absolute;width:13px;height:13px;border:2px solid #1f2937;border-radius:50%;left:12px;top:9px}.aez-search-round span:after{content:"";width:7px;height:2px;background:#1f2937;position:absolute;right:-6px;bottom:-3px;transform:rotate(45deg);border-radius:3px}.aez-search-panel{display:none;background:#fff;border-bottom:1px solid #eee;padding:12px 0}.aez-search-open .aez-search-panel{display:block}.aez-search-panel form{display:flex;gap:8px}.aez-search-panel input{flex:1;border:1px solid #ddd;border-radius:12px;padding:10px 14px;font:inherit}.aez-search-panel button{border:0;border-radius:12px;background:var(--aez-orange);color:#fff;padding:0 22px;font-weight:800}

.aez-home-hero{position:relative;overflow:hidden;background:linear-gradient(105deg,#fff7ef 0%,#fff 49%,#f8fbff 100%);border-bottom:1px solid #eee5dd}.aez-home-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 17% 50%,rgba(255,136,57,.12),transparent 23%),radial-gradient(circle at 84% 35%,rgba(255,136,57,.07),transparent 21%);pointer-events:none}.aez-home-hero-grid{min-height:360px;display:grid;grid-template-columns:50% 50%;align-items:stretch;position:relative;z-index:2}.aez-home-hero-copy{grid-column:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:right;padding:30px 32px 22px 0;position:relative}.aez-home-kicker{font-size:11px;color:var(--aez-orange);border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;padding:5px 10px;font-weight:800}.aez-home-hero-copy h1{font-size:clamp(31px,3.1vw,47px);line-height:1.13;margin:14px 0 8px;font-weight:950;letter-spacing:-1.5px}.aez-home-hero-copy h1 em{display:block;font-style:normal;color:var(--aez-orange)}.aez-home-hero-copy h3{margin:4px 0 5px;font-size:17px}.aez-home-hero-copy p{font-size:13px;line-height:1.85;color:#6a7280;margin:0}.aez-home-hero-actions{display:flex;gap:12px;margin-top:14px;flex-wrap:wrap}.aez-big-cta{padding:9px 18px!important;border-radius:13px!important;font-size:13px}.aez-big-cta b{font-size:12px}.aez-student-stat{position:absolute;left:8px;bottom:18px;display:flex;align-items:center;gap:8px;border:1px solid #eadfd6;border-radius:14px;background:rgba(255,255,255,.9);padding:8px 10px;box-shadow:0 8px 22px rgba(40,31,22,.05)}.aez-student-stat span{font-size:20px}.aez-student-stat b,.aez-student-stat small{display:block}.aez-student-stat b{font-size:11px}.aez-student-stat small{font-size:9px;color:#777}
.aez-home-hero-visual{grid-column:2;position:relative;display:flex;align-items:flex-end;justify-content:center;min-height:360px}.aez-hero-orb{position:absolute;width:330px;height:330px;border-radius:50%;left:50%;top:49%;transform:translate(-50%,-50%);background:linear-gradient(145deg,#ffb06f,#0ea5e9);opacity:.48;box-shadow:0 0 70px rgba(255,102,0,.09)}.aez-home-hero-visual>img{position:relative;z-index:3;height:350px;width:auto;max-width:72%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 18px 22px rgba(24,22,19,.18))}.aez-hero-quote{position:absolute;z-index:4;right:48px;top:60px;background:rgba(255,255,255,.94);border:1px solid #60a5fa;border-radius:9px;padding:12px 18px 12px 30px;text-align:center;line-height:1.35;box-shadow:0 8px 20px rgba(30,24,20,.04)}.aez-hero-quote i{position:absolute;right:-4px;top:-10px;color:var(--aez-orange);font-size:26px;font-style:normal}.aez-hero-quote strong{font-size:16px}.aez-hand-note{font-family:"Aref Ruqaa",serif;position:absolute;z-index:5;color:#101827}.aez-hand-name{left:24px;top:95px;font-size:25px;transform:rotate(-6deg);text-align:center}.aez-hand-name small{font-family:"Tajawal",sans-serif;display:block;font-size:11px;font-weight:700;line-height:1.55;transform:rotate(6deg);margin-top:8px}.aez-hand-bottom{left:18px;bottom:16px;font-size:20px;line-height:1.3;transform:rotate(-8deg)}.aez-science-doodle{position:absolute;color:#ff8b3a;opacity:.18;font-weight:900;z-index:1}.aez-doodle-1{font-size:80px;left:4%;top:10%}.aez-doodle-2{font-size:74px;right:39%;bottom:10%}.aez-doodle-3{font-size:64px;right:4%;top:18%;transform:rotate(90deg);letter-spacing:5px}

.aez-home-section{padding:27px 0;background:#fff}.aez-section-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;margin-bottom:17px;color:#8a8f98;font-size:10px}.aez-section-head h2,.aez-home-title{margin:0;color:#101827;font-size:22px;font-weight:950;text-align:center;position:relative}.aez-section-head h2:after,.aez-home-title:after{content:"";position:absolute;width:62px;height:2px;background:var(--aez-orange);left:50%;transform:translateX(-50%);bottom:-7px;border-radius:2px}.aez-section-head span:last-child{text-align:left}.aez-section-head.compact{margin-bottom:20px}.aez-section-head.compact a{text-align:left;color:var(--aez-orange);border:1px solid #93c5fd;border-radius:999px;padding:5px 10px;font-weight:800;font-size:10px}
.aez-features-ten{grid-template-columns:repeat(11,1fr)!important;gap:6px!important}.aez-feature{padding:12px 7px!important;border-radius:11px!important;text-align:center;min-height:120px}.aez-feature .icon{margin:0 auto 7px!important;width:30px!important;height:30px!important;font-size:17px!important;background:transparent!important}.aez-feature h3{font-size:11px!important;line-height:1.35;min-height:30px}.aez-feature p{font-size:9px!important;line-height:1.45}.aez-features-section{padding-top:16px}
.aez-about-home{background:#f8fbff;padding-top:23px}.aez-about-home-grid{display:grid;grid-template-columns:250px 1fr 250px;gap:22px;align-items:center;margin-top:22px}.aez-about-photo{height:165px;position:relative;overflow:hidden;display:flex;align-items:flex-end}.aez-about-circle{position:absolute;width:155px;height:155px;border-radius:50%;background:#dbeafe;right:0;bottom:-15px}.aez-about-photo img{height:172px;position:relative;z-index:2;object-fit:contain}.aez-about-photo strong{position:absolute;left:5px;top:35px;z-index:3;font-family:"Aref Ruqaa",serif;color:var(--aez-orange);font-size:20px;transform:rotate(-8deg);line-height:1.25}.aez-about-text{text-align:center;color:#5f6772;font-size:12px;line-height:1.7}.aez-about-text p{margin:0 0 8px}.aez-about-badges{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:10px}.aez-about-badges span{border:1px solid #eee3db;border-radius:8px;background:#fff;padding:6px 5px;color:#303640;font-size:9px;font-weight:800}.aez-mission-card{border:1px solid #93c5fd;border-radius:10px;background:#fff;padding:18px;text-align:center;position:relative}.aez-mission-card i{position:absolute;right:12px;top:4px;color:var(--aez-orange);font-size:24px;font-style:normal}.aez-mission-card p{font-size:17px;margin:6px 0;line-height:1.5}.aez-mission-card p b{color:var(--aez-orange)}.aez-mission-card strong{font-family:"Aref Ruqaa",serif;font-size:18px}
.aez-grades-home{padding-top:15px}.aez-grades-polished{gap:20px}.aez-grades-polished .aez-grade{display:flex;align-items:center;justify-content:space-between;padding:15px 22px;border-radius:12px}.aez-grades-polished .aez-grade>span{font-size:28px;color:var(--aez-orange)}.aez-grades-polished .aez-grade>div{flex:1;padding-right:13px}.aez-grades-polished .aez-grade h3{font-size:15px}.aez-grades-polished .aez-grade p{font-size:10px}.aez-grades-polished .aez-grade>b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#eff6ff;color:var(--aez-orange)}
.aez-courses-home{background:#fff;padding-top:17px}.aez-four-courses{grid-template-columns:repeat(4,1fr)!important;gap:18px}.aez-course-card{border-radius:11px!important}.aez-course-card img{aspect-ratio:16/7!important}.aez-course-card-body{padding:9px 10px 10px!important;position:relative}.aez-course-tag{position:absolute;right:12px;top:-20px;background:#fff;color:var(--aez-orange);border:1px solid #93c5fd;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:800}.aez-course-card h3{font-size:14px!important;margin:2px 0 5px!important}.aez-course-meta{font-size:9px!important;margin:5px 0!important;justify-content:center}.aez-course-go{display:block;background:var(--aez-orange);color:#fff;text-align:center;border-radius:7px;padding:6px;font-size:10px;font-weight:900}
.aez-testimonials-home{padding-top:8px}.aez-bottom-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:16px;align-items:stretch;margin-top:20px}.aez-testimonials{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.aez-testimonials article{border:1px solid #eee3db;border-radius:11px;padding:12px;background:#fff;box-shadow:0 8px 20px rgba(20,20,20,.04)}.aez-testimonials p{font-size:10px;line-height:1.55;min-height:47px;margin:0 0 6px}.aez-testimonials b,.aez-testimonials small{display:block}.aez-testimonials b{font-size:10px}.aez-testimonials small{font-size:8px;color:#7a8088}.stars{color:#ff8b37;letter-spacing:1px;font-size:10px}.aez-final-cta{min-height:145px;border-radius:13px;background:linear-gradient(120deg,#2563eb,#38bdf8);color:#fff;position:relative;overflow:hidden;padding:20px 24px}.aez-final-cta h2{font-size:24px;line-height:1.2;margin:0}.aez-final-cta p{font-size:11px;margin:3px 0 10px}.aez-final-cta a{display:inline-block;background:#fff;color:var(--aez-orange);border-radius:999px;padding:6px 14px;font-size:10px;font-weight:900}.aez-final-cta img{position:absolute;left:15px;bottom:-5px;height:145px;filter:drop-shadow(0 10px 15px rgba(0,0,0,.15))}

@media(max-width:980px){#aez-site-header .aez-nav{display:flex!important}.aez-menu{top:62px!important}.aez-home-hero-grid{grid-template-columns:1fr}.aez-home-hero-copy{grid-column:1;padding:36px 0 15px;align-items:center;text-align:center}.aez-home-hero-visual{grid-column:1;min-height:360px}.aez-student-stat{position:static;margin-top:15px}.aez-features-ten{grid-template-columns:repeat(4,1fr)!important}.aez-about-home-grid{grid-template-columns:1fr}.aez-about-photo{justify-content:center}.aez-about-badges{grid-template-columns:repeat(2,1fr)}.aez-four-courses{grid-template-columns:repeat(2,1fr)!important}.aez-bottom-grid{grid-template-columns:1fr}.aez-actions .aez-header-cta{display:inline-flex!important}.aez-brand-text small{display:none}}
@media(max-width:640px){#aez-site-header.aez-header{min-height:60px!important}#aez-site-header .aez-nav{height:58px!important}.aez-brand img{width:42px!important;height:42px!important}.aez-brand-text strong{font-size:14px!important}.aez-brand-text>span{font-size:10px!important}.aez-search-round{display:none}.aez-header-cta{min-width:auto!important;padding:8px 11px!important;font-size:11px}.aez-home-hero-copy h1{font-size:34px}.aez-home-hero-visual>img{height:315px;max-width:90%}.aez-hero-orb{width:280px;height:280px}.aez-hand-name{left:0}.aez-hand-bottom{display:none}.aez-hero-quote{right:6px;top:45px}.aez-features-ten{grid-template-columns:repeat(2,1fr)!important}.aez-section-head{grid-template-columns:1fr;text-align:center}.aez-section-head span,.aez-section-head span:last-child,.aez-section-head.compact a{text-align:center}.aez-four-courses{grid-template-columns:1fr!important}.aez-testimonials{grid-template-columns:1fr}.aez-about-badges{grid-template-columns:1fr 1fr}.aez-final-cta img{opacity:.32}}


/* v1.0.7 courses section fixes */
.aez-courses-home .aez-section-head.compact{grid-template-columns:auto 1fr auto;align-items:center;gap:12px}
.aez-courses-home .aez-section-head.compact h2{justify-self:center}
.aez-courses-home .aez-section-head.compact span:first-child{justify-self:end;white-space:nowrap}
.aez-courses-home .aez-section-head.compact a{justify-self:start;display:inline-flex;align-items:center;width:auto;white-space:nowrap;padding:7px 18px;font-size:12px}
.aez-four-courses{align-items:stretch}
.aez-course-card{display:flex;flex-direction:column;height:100%}
.aez-course-thumb{display:block}
.aez-course-card img{display:block}
.aez-course-card-body{display:flex;flex-direction:column;gap:8px;min-height:168px;padding:14px 14px 14px!important}
.aez-course-tag{top:-14px;font-size:10px;padding:4px 10px}
.aez-course-card h3{font-size:17px!important;line-height:1.5;min-height:3em;margin:2px 0 0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.aez-course-card h3 a{color:inherit;text-decoration:none}
.aez-course-excerpt{font-size:12px;color:#6b7280;line-height:1.7;margin:0;min-height:40px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.aez-course-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px!important;margin-top:auto!important;padding-top:2px}
.aez-course-meta span{white-space:nowrap}
.aez-course-go{margin-top:2px;padding:10px 12px;font-size:12px;border-radius:10px}
@media(max-width:980px){.aez-courses-home .aez-section-head.compact{grid-template-columns:1fr}.aez-courses-home .aez-section-head.compact a,.aez-courses-home .aez-section-head.compact span:first-child{justify-self:center}}


/* =========================================================
   v1.0.8 — Hero portrait corrected to match approved mockup
   ========================================================= */
.aez-home-hero{background:#f8fbff!important;min-height:370px}
.aez-home-hero:before{background:
  radial-gradient(circle at 18% 52%,rgba(255,132,54,.10),transparent 27%),
  linear-gradient(90deg,rgba(255,245,236,.65),rgba(255,255,255,.9))!important}
.aez-home-hero-grid{min-height:370px!important}
.aez-home-hero-visual{min-height:370px!important;overflow:visible!important}
.aez-hero-orb{
  width:342px!important;height:342px!important;
  left:50%!important;top:52%!important;
  background:linear-gradient(145deg,#ffbb82 0%,#ff8a35 100%)!important;
  opacity:.56!important;box-shadow:none!important
}
.aez-home-hero-visual>img{
  height:365px!important;max-width:78%!important;
  object-fit:contain!important;object-position:center bottom!important;
  filter:drop-shadow(0 16px 18px rgba(35,24,16,.14))!important;
  transform:translateX(8px)!important
}
.aez-hand-name{
  left:4px!important;top:104px!important;font-size:26px!important;
  transform:rotate(-6deg)!important;z-index:7!important
}
.aez-hand-name small{font-size:11px!important;line-height:1.55!important;margin-top:7px!important}
.aez-hand-bottom{
  left:0!important;bottom:17px!important;font-size:21px!important;
  line-height:1.25!important;transform:rotate(-8deg)!important;z-index:7!important
}
.aez-hero-quote{
  right:18px!important;top:52px!important;z-index:8!important;
  min-width:116px!important;padding:14px 17px!important;
  border-radius:10px!important;background:rgba(255,255,255,.96)!important
}
.aez-hero-quote strong{font-size:16px!important;line-height:1.42!important}
.aez-hero-quote i{font-size:28px!important;right:-6px!important;top:-12px!important}
/* Never show the old electricity/purple portrait as a CSS background. */
.aez-home-hero-visual,.aez-about-photo,.aez-auth-brand{background-image:none!important}

@media(max-width:980px){
  .aez-home-hero-visual>img{height:350px!important;max-width:78%!important;transform:none!important}
  .aez-hero-orb{width:330px!important;height:330px!important}
}
@media(max-width:640px){
  .aez-home-hero-visual{min-height:335px!important}
  .aez-home-hero-visual>img{height:325px!important;max-width:88%!important}
  .aez-hero-orb{width:286px!important;height:286px!important;top:53%!important}
  .aez-hero-quote{right:4px!important;top:42px!important;min-width:98px!important;padding:10px 12px!important}
  .aez-hand-name{left:2px!important;top:96px!important;font-size:21px!important}
}


/* v1.0.9 hero portrait centering fix */
.aez-home-hero-visual{display:flex!important;align-items:center!important;justify-content:center!important;min-height:390px!important;padding-top:8px!important;overflow:visible!important}
.aez-home-hero-grid{min-height:390px!important}
.aez-hero-orb{width:350px!important;height:350px!important;left:50%!important;top:54%!important;transform:translate(-50%,-50%)!important}
.aez-home-hero-visual>img{position:relative!important;z-index:3!important;height:330px!important;max-width:80%!important;width:auto!important;object-fit:contain!important;object-position:center center!important;transform:none!important;margin:0 auto!important;display:block!important}
@media(max-width:980px){.aez-home-hero-grid{min-height:370px!important}.aez-home-hero-visual{min-height:370px!important;padding-top:0!important}.aez-home-hero-visual>img{height:315px!important;max-width:82%!important}}
@media(max-width:640px){.aez-home-hero-grid{min-height:330px!important}.aez-home-hero-visual{min-height:320px!important}.aez-home-hero-visual>img{height:270px!important;max-width:84%!important}.aez-hero-orb{width:270px!important;height:270px!important;top:55%!important}}


/* v1.0.10 course badge visibility fix */
.aez-course-card{overflow:visible!important}
.aez-course-card-body{padding-top:28px!important}
.aez-course-tag{top:8px!important;right:12px!important;z-index:6!important;display:inline-flex!important;align-items:center;line-height:1.2;white-space:nowrap;box-shadow:0 4px 10px rgba(255,102,0,.08)}
.aez-course-card h3{margin-top:4px!important}


/* v1.0.11 — hero rebuilt to closely match the approved reference */
.aez-home-hero{position:relative!important;min-height:330px!important;background:#f8fbff!important;overflow:hidden!important;border-bottom:1px solid #eee7e0!important}
.aez-home-hero:before{content:""!important;position:absolute!important;inset:0!important;background:
 radial-gradient(circle at 18% 22%,rgba(255,145,78,.10),transparent 26%),
 radial-gradient(circle at 84% 58%,rgba(255,145,78,.08),transparent 23%),
 linear-gradient(90deg,#f8fbff 0%,#fffdfb 50%,#f8fbff 100%)!important;pointer-events:none!important}
.aez-home-hero-grid{min-height:330px!important;display:grid!important;grid-template-columns:52% 48%!important;align-items:stretch!important;position:relative!important;z-index:2!important;max-width:1180px!important}
.aez-home-hero-copy{grid-column:1!important;grid-row:1!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;text-align:right!important;padding:26px 0 22px 48px!important;position:relative!important;z-index:5!important}
.aez-home-kicker{font-size:10px!important;padding:4px 10px!important;margin-bottom:4px!important}
.aez-home-hero-copy h1{font-size:42px!important;line-height:1.08!important;margin:10px 0 7px!important;letter-spacing:-1.4px!important;max-width:520px!important}
.aez-home-hero-copy h1 em{display:block!important;color:var(--aez-orange)!important}
.aez-home-hero-copy h3{font-size:16px!important;margin:5px 0 5px!important}
.aez-home-hero-copy p{font-size:12px!important;line-height:1.7!important;margin:0!important;color:#707782!important}
.aez-home-hero-actions{margin-top:12px!important;gap:10px!important}.aez-big-cta{font-size:12px!important;padding:9px 17px!important;border-radius:12px!important}
.aez-student-stat{left:0!important;bottom:17px!important;padding:8px 11px!important;border-radius:13px!important}
.aez-home-hero-visual{grid-column:2!important;grid-row:1!important;position:relative!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;min-height:330px!important;padding:0!important;overflow:visible!important;z-index:4!important}
.aez-hero-orb{position:absolute!important;width:326px!important;height:326px!important;left:50%!important;top:52%!important;transform:translate(-50%,-50%)!important;background:linear-gradient(145deg,#ffb477 0%,#0ea5e9 100%)!important;opacity:.72!important;border-radius:50%!important;box-shadow:none!important}
.aez-home-hero-visual>.aez-teacher-hero{position:absolute!important;z-index:4!important;height:338px!important;width:auto!important;max-width:none!important;left:50%!important;bottom:-1px!important;transform:translateX(-50%)!important;object-fit:contain!important;filter:drop-shadow(0 12px 18px rgba(35,24,16,.15))!important;margin:0!important}
.aez-hero-dna{position:absolute!important;z-index:1!important;width:145px!important;height:auto!important;left:-18px!important;top:7px!important;opacity:.62!important}
.aez-hero-quote{right:16px!important;top:25px!important;z-index:8!important;min-width:108px!important;padding:13px 16px!important;border-radius:9px!important;background:rgba(255,255,255,.94)!important;border:1px solid #60a5fa!important}
.aez-hero-quote strong{font-size:15px!important;line-height:1.45!important}.aez-hero-quote i{font-size:27px!important;right:-6px!important;top:-12px!important}
.aez-hand-name{left:-8px!important;top:80px!important;font-size:24px!important;line-height:1.2!important;z-index:7!important;transform:rotate(-7deg)!important}
.aez-hand-name small{font-size:10px!important;line-height:1.5!important;margin-top:7px!important}
.aez-hand-bottom{left:-20px!important;bottom:18px!important;font-size:19px!important;line-height:1.22!important;z-index:7!important;transform:rotate(-8deg)!important}
.aez-hero-microscope{position:absolute!important;right:-6px!important;bottom:-5px!important;width:130px!important;height:auto!important;z-index:1!important;opacity:.72!important}
.aez-side-note{position:absolute!important;right:72px!important;top:48px!important;z-index:3!important;font-family:"Aref Ruqaa",serif!important;color:var(--aez-orange)!important;font-size:21px!important;line-height:1.2!important;transform:rotate(9deg)!important;text-align:center!important}
/* Hide old placeholder doodles completely */
.aez-science-doodle{display:none!important}
@media(max-width:980px){
 .aez-home-hero{min-height:auto!important}.aez-home-hero-grid{grid-template-columns:1fr!important;min-height:auto!important}
 .aez-home-hero-copy{grid-column:1!important;grid-row:1!important;align-items:center!important;text-align:center!important;padding:30px 16px 16px!important}
 .aez-home-hero-copy h1{font-size:38px!important}.aez-home-hero-visual{grid-column:1!important;grid-row:2!important;min-height:330px!important}
 .aez-home-hero-visual>.aez-teacher-hero{height:318px!important}.aez-hero-orb{width:306px!important;height:306px!important}
 .aez-hero-microscope,.aez-side-note{display:none!important}.aez-student-stat{position:static!important;margin-top:13px!important}
}
@media(max-width:640px){
 .aez-home-hero-copy h1{font-size:32px!important;line-height:1.12!important}.aez-home-hero-copy h3{font-size:14px!important}
 .aez-home-hero-visual{min-height:300px!important}.aez-home-hero-visual>.aez-teacher-hero{height:285px!important}.aez-hero-orb{width:270px!important;height:270px!important}
 .aez-hand-name{left:4px!important;top:72px!important;font-size:19px!important}.aez-hand-bottom{display:none!important}.aez-hero-quote{right:5px!important;top:28px!important}
}


/* =========================================================
   v1.0.12 — stable hero rebuild, fixed height and portrait scale
   ========================================================= */
.aez-home-hero{
  position:relative!important;
  min-height:360px!important;
  height:auto!important;
  overflow:hidden!important;
  background:linear-gradient(90deg,#f8fbff 0%,#fffdfb 50%,#f8fbff 100%)!important;
  border-bottom:1px solid #eee7e0!important;
}
.aez-home-hero:before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:
    radial-gradient(circle at 18% 36%,rgba(255,128,48,.10),transparent 28%),
    radial-gradient(circle at 82% 50%,rgba(255,150,85,.07),transparent 24%)!important;
  pointer-events:none!important;
}
.aez-home-hero-grid{
  width:min(1180px,92%)!important;
  max-width:1180px!important;
  min-height:360px!important;
  height:360px!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:52% 48%!important;
  align-items:stretch!important;
  position:relative!important;
  z-index:2!important;
  overflow:hidden!important;
}
.aez-home-hero-copy{
  grid-column:1!important;
  grid-row:1!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  text-align:right!important;
  padding:22px 0 22px 42px!important;
  position:relative!important;
  z-index:6!important;
  min-width:0!important;
}
.aez-home-kicker{font-size:10px!important;padding:4px 10px!important;margin:0 0 6px!important}
.aez-home-hero-copy h1{
  font-size:42px!important;
  line-height:1.08!important;
  margin:8px 0 7px!important;
  letter-spacing:-1.3px!important;
  max-width:520px!important;
}
.aez-home-hero-copy h3{font-size:16px!important;margin:4px 0 5px!important}
.aez-home-hero-copy p{font-size:12px!important;line-height:1.7!important;margin:0!important}
.aez-home-hero-actions{margin-top:12px!important;gap:10px!important}
.aez-big-cta{font-size:12px!important;padding:9px 17px!important;border-radius:12px!important}
.aez-student-stat{left:4px!important;bottom:16px!important;padding:8px 10px!important;border-radius:13px!important}

.aez-home-hero-visual{
  grid-column:2!important;
  grid-row:1!important;
  position:relative!important;
  min-height:360px!important;
  height:360px!important;
  padding:0!important;
  display:block!important;
  overflow:hidden!important;
  z-index:4!important;
}
.aez-home-hero-visual:before{
  content:""!important;
  position:absolute!important;
  left:18px!important;
  top:28px!important;
  width:180px!important;
  height:180px!important;
  opacity:.13!important;
  background:url("assets/images/hero-dna.svg") center/contain no-repeat!important;
  z-index:1!important;
  transform:rotate(-12deg)!important;
}
.aez-hero-orb{
  position:absolute!important;
  width:335px!important;
  height:335px!important;
  left:52%!important;
  top:53%!important;
  transform:translate(-50%,-50%)!important;
  border-radius:50%!important;
  background:linear-gradient(145deg,#60a5fa 0%,#0ea5e9 100%)!important;
  opacity:.64!important;
  box-shadow:none!important;
  z-index:2!important;
}
.aez-home-hero-visual>.aez-teacher-hero{
  position:absolute!important;
  z-index:4!important;
  height:352px!important;
  width:auto!important;
  max-width:none!important;
  left:52%!important;
  bottom:-5px!important;
  transform:translateX(-50%)!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  margin:0!important;
  filter:drop-shadow(0 12px 18px rgba(35,24,16,.14))!important;
}
.aez-hero-quote{
  position:absolute!important;
  right:10px!important;
  top:45px!important;
  z-index:8!important;
  min-width:112px!important;
  padding:13px 16px!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.96)!important;
  border:1px solid #60a5fa!important;
}
.aez-hero-quote strong{font-size:15px!important;line-height:1.42!important}
.aez-hero-quote i{font-size:27px!important;right:-6px!important;top:-12px!important}
.aez-hand-name{
  left:6px!important;
  top:92px!important;
  font-size:24px!important;
  line-height:1.2!important;
  transform:rotate(-7deg)!important;
  z-index:7!important;
}
.aez-hand-name small{font-size:10px!important;line-height:1.5!important;margin-top:7px!important}
.aez-hand-bottom{
  left:4px!important;
  bottom:24px!important;
  font-size:19px!important;
  line-height:1.22!important;
  transform:rotate(-8deg)!important;
  z-index:7!important;
}
/* hard-disable problematic v1.0.11 hero decorations */
.aez-hero-dna,.aez-hero-microscope,.aez-side-note,.aez-science-doodle{display:none!important}

@media(max-width:980px){
  .aez-home-hero-grid{height:auto!important;min-height:auto!important;grid-template-columns:1fr!important;overflow:hidden!important}
  .aez-home-hero-copy{grid-column:1!important;grid-row:1!important;align-items:center!important;text-align:center!important;padding:30px 16px 16px!important}
  .aez-home-hero-copy h1{font-size:38px!important}
  .aez-home-hero-visual{grid-column:1!important;grid-row:2!important;height:345px!important;min-height:345px!important}
  .aez-home-hero-visual>.aez-teacher-hero{height:335px!important;left:50%!important}
  .aez-hero-orb{width:315px!important;height:315px!important;left:50%!important}
  .aez-student-stat{position:static!important;margin-top:13px!important}
}
@media(max-width:640px){
  .aez-home-hero-copy h1{font-size:32px!important;line-height:1.12!important}
  .aez-home-hero-copy h3{font-size:14px!important}
  .aez-home-hero-visual{height:310px!important;min-height:310px!important}
  .aez-home-hero-visual>.aez-teacher-hero{height:300px!important}
  .aez-hero-orb{width:280px!important;height:280px!important;top:54%!important}
  .aez-hand-name{left:2px!important;top:84px!important;font-size:19px!important}
  .aez-hand-bottom{display:none!important}
  .aez-hero-quote{right:4px!important;top:36px!important;min-width:98px!important;padding:10px 12px!important}
}


/* =========================================================
   v1.0.13 — Hero matched closely to approved reference
   ========================================================= */
.aez-home-hero{
  position:relative!important;
  height:328px!important;
  min-height:328px!important;
  overflow:hidden!important;
  background:linear-gradient(90deg,#f8fbff 0%,#fffdfb 46%,#f8fbff 100%)!important;
  border-bottom:1px solid #eee5dd!important;
}
.aez-home-hero:before{
  content:""!important;position:absolute!important;inset:0!important;
  background:
    radial-gradient(circle at 17% 37%,rgba(255,132,54,.11),transparent 22%),
    radial-gradient(circle at 80% 35%,rgba(255,132,54,.065),transparent 22%)!important;
  pointer-events:none!important;
}
.aez-home-hero-grid{
  position:relative!important;
  height:328px!important;min-height:328px!important;
  display:grid!important;
  grid-template-columns:48% 52%!important;
  grid-template-areas:"visual copy"!important;
  align-items:stretch!important;
  direction:ltr!important;
  overflow:visible!important;
}
.aez-home-hero-copy{
  grid-area:copy!important;
  direction:rtl!important;
  position:relative!important;
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;
  text-align:center!important;
  padding:18px 30px 17px 45px!important;
  z-index:5!important;
}
.aez-home-kicker{
  font-size:10px!important;line-height:1!important;
  padding:5px 10px!important;margin:0 0 9px!important;
  border-radius:999px!important;background:#fff8f3!important;
}
.aez-home-hero-copy h1{
  max-width:520px!important;
  margin:0 0 8px!important;
  font-size:38px!important;line-height:1.05!important;
  letter-spacing:-1px!important;font-weight:950!important;
}
.aez-home-hero-copy h1 em{display:block!important;color:#2563eb!important;font-style:normal!important;margin-top:3px!important}
.aez-home-hero-copy h3{font-size:15px!important;margin:3px 0 6px!important;font-weight:900!important}
.aez-home-hero-copy p{font-size:11px!important;line-height:1.55!important;margin:0!important;color:#767d87!important}
.aez-home-hero-actions{display:flex!important;justify-content:center!important;gap:11px!important;margin-top:11px!important}
.aez-big-cta{font-size:11px!important;padding:9px 17px!important;border-radius:12px!important;min-width:142px!important;justify-content:center!important}
.aez-student-stat{
  position:absolute!important;right:10px!important;left:auto!important;bottom:16px!important;
  padding:7px 9px!important;border-radius:12px!important;z-index:8!important;
  background:rgba(255,255,255,.95)!important;
}
.aez-student-stat span{font-size:20px!important}.aez-student-stat b{font-size:10px!important}.aez-student-stat small{font-size:8px!important}

.aez-home-hero-visual{
  grid-area:visual!important;
  direction:rtl!important;
  position:relative!important;
  height:328px!important;min-height:328px!important;
  display:block!important;padding:0!important;margin:0!important;
  overflow:visible!important;z-index:4!important;
}
.aez-hero-orb{
  position:absolute!important;
  width:305px!important;height:305px!important;
  left:47%!important;top:52%!important;
  transform:translate(-50%,-50%)!important;
  border-radius:50%!important;
  background:linear-gradient(145deg,#60a5fa 0%,#ff7c17 100%)!important;
  opacity:.68!important;box-shadow:none!important;z-index:2!important;
}
.aez-home-hero-visual>.aez-teacher-hero{
  position:absolute!important;
  z-index:5!important;
  height:326px!important;width:auto!important;max-width:none!important;
  left:48%!important;bottom:-1px!important;
  transform:translateX(-50%)!important;
  object-fit:contain!important;object-position:center bottom!important;
  margin:0!important;filter:drop-shadow(0 13px 18px rgba(34,24,18,.12))!important;
}
.aez-home-hero-visual:after{
  content:""!important;position:absolute!important;z-index:1!important;
  left:-32px!important;top:16px!important;width:155px!important;height:260px!important;
  background:url("assets/images/hero-dna.svg") center/contain no-repeat!important;
  opacity:.24!important;transform:rotate(-17deg)!important;
}
.aez-hero-quote{
  position:absolute!important;z-index:9!important;
  right:11px!important;top:34px!important;min-width:108px!important;
  padding:12px 15px!important;border-radius:9px!important;
  background:rgba(255,255,255,.96)!important;border:1px solid #60a5fa!important;
  text-align:center!important;box-shadow:0 7px 18px rgba(50,35,24,.035)!important;
}
.aez-hero-quote strong{font-size:15px!important;line-height:1.35!important}.aez-hero-quote i{font-size:27px!important;right:-6px!important;top:-11px!important}
.aez-hand-name{
  left:8px!important;top:82px!important;z-index:8!important;
  font-size:24px!important;line-height:1.1!important;text-align:center!important;
  transform:rotate(-7deg)!important;
}
.aez-hand-name small{font-size:10px!important;line-height:1.45!important;margin-top:6px!important;transform:rotate(7deg)!important}
.aez-hand-bottom{
  left:6px!important;bottom:12px!important;z-index:8!important;
  font-size:18px!important;line-height:1.18!important;transform:rotate(-8deg)!important;
}
/* right-side microscope + handwritten note from the approved reference */
.aez-hero-microscope{
  display:block!important;position:absolute!important;right:-18px!important;bottom:-25px!important;
  width:115px!important;height:155px!important;object-fit:contain!important;opacity:.46!important;z-index:2!important;
}
.aez-side-note{
  display:block!important;position:absolute!important;right:58px!important;top:40px!important;z-index:7!important;
  color:#2563eb!important;font-family:"Aref Ruqaa",serif!important;font-size:19px!important;line-height:1.15!important;
  transform:rotate(-7deg)!important;text-align:center!important;
}
.aez-hero-dna,.aez-science-doodle{display:none!important}

@media(max-width:980px){
  .aez-home-hero{height:auto!important;min-height:0!important}
  .aez-home-hero-grid{height:auto!important;min-height:0!important;grid-template-columns:1fr!important;grid-template-areas:"copy" "visual"!important;direction:ltr!important}
  .aez-home-hero-copy{padding:30px 18px 18px!important}
  .aez-home-hero-copy h1{font-size:36px!important}
  .aez-home-hero-visual{height:330px!important;min-height:330px!important}
  .aez-home-hero-visual>.aez-teacher-hero{height:320px!important;left:50%!important}
  .aez-hero-orb{width:295px!important;height:295px!important;left:50%!important}
  .aez-student-stat{position:static!important;margin-top:12px!important}
  .aez-hero-microscope,.aez-side-note{display:none!important}
}
@media(max-width:640px){
  .aez-home-hero-copy h1{font-size:31px!important;line-height:1.08!important}
  .aez-home-hero-copy h3{font-size:13px!important}
  .aez-home-hero-visual{height:300px!important;min-height:300px!important}
  .aez-home-hero-visual>.aez-teacher-hero{height:285px!important}
  .aez-hero-orb{width:265px!important;height:265px!important}
  .aez-hand-name{left:2px!important;top:74px!important;font-size:19px!important}
  .aez-hand-bottom{display:none!important}.aez-hero-quote{right:3px!important;top:32px!important;min-width:94px!important;padding:9px 11px!important}
}


/* =========================================================
   v1.0.14 — clean hero rebuild from approved reference
   ========================================================= */
.aez-ref-hero{
  position:relative;overflow:hidden;background:#f8fbff;border-bottom:1px solid #eee4dc;
  min-height:348px;isolation:isolate
}
.aez-ref-hero:before{
  content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;
  background:radial-gradient(circle at 20% 48%,rgba(255,126,34,.13),transparent 24%),radial-gradient(circle at 75% 45%,rgba(255,126,34,.06),transparent 22%)
}
.aez-ref-hero-inner{
  min-height:348px;display:grid;grid-template-columns:51% 49%;align-items:stretch;position:relative;direction:ltr
}
.aez-ref-hero-visual{position:relative;min-height:348px;overflow:visible;direction:rtl}
.aez-ref-orb{position:absolute;width:315px;height:315px;border-radius:50%;left:51%;top:52%;transform:translate(-50%,-50%);background:linear-gradient(145deg,#60a5fa,#0ea5e9);opacity:.57}
.aez-ref-teacher{position:absolute;z-index:4;height:350px;width:auto;max-width:76%;left:51%;bottom:-2px;transform:translateX(-50%);object-fit:contain;object-position:center bottom;filter:drop-shadow(0 14px 18px rgba(33,24,18,.12))}
.aez-ref-dna{position:absolute;z-index:1;width:135px;height:250px;left:6px;top:35px;opacity:.18;transform:rotate(-7deg)}
.aez-ref-name{position:absolute;z-index:6;left:8px;top:98px;font-family:"Aref Ruqaa",serif;font-size:27px;line-height:1.05;transform:rotate(-7deg);text-align:center;color:#111827}
.aez-ref-name small{display:block;font-family:"Tajawal",sans-serif;font-size:10px;line-height:1.55;font-weight:800;transform:rotate(7deg);margin-top:8px}
.aez-ref-bottom-note{position:absolute;z-index:6;left:0;bottom:16px;font-family:"Aref Ruqaa",serif;font-size:20px;line-height:1.22;transform:rotate(-8deg);color:#111827}
.aez-ref-bottom-note:after{content:"";display:block;width:80px;height:3px;background:#2563eb;border-radius:10px;transform:rotate(-4deg);margin:3px auto 0}
.aez-ref-quote{position:absolute;z-index:7;right:17px;top:49px;min-width:112px;background:rgba(255,255,255,.94);border:1px solid #60a5fa;border-radius:9px;padding:12px 16px;text-align:center;line-height:1.35;box-shadow:0 8px 18px rgba(31,25,21,.035)}
.aez-ref-quote i{position:absolute;right:-5px;top:-12px;color:#2563eb;font-size:28px;font-style:normal}.aez-ref-quote strong{font-size:16px}
.aez-ref-hero-copy{position:relative;direction:rtl;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:right;padding:24px 28px 19px 0;min-width:0}
.aez-ref-kicker{font-size:10px;color:#2563eb;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;padding:5px 10px;font-weight:800}
.aez-ref-hero-copy h1{font-size:clamp(31px,3.05vw,45px);line-height:1.12;margin:12px 0 7px;font-weight:950;letter-spacing:-1.2px;color:#101827}.aez-ref-hero-copy h1 em{font-style:normal;display:block;color:#2563eb}.aez-ref-hero-copy h3{font-size:16px;margin:4px 0 4px;color:#111827}.aez-ref-hero-copy p{font-size:12px;line-height:1.75;color:#6d7480;margin:0}
.aez-ref-actions{display:flex;gap:11px;margin-top:13px;flex-wrap:wrap}.aez-ref-primary,.aez-ref-secondary{padding:9px 18px!important;border-radius:13px!important;font-size:12px!important}.aez-ref-actions b{font-size:11px}
.aez-ref-student-stat{position:absolute;left:15px;bottom:16px;display:flex;align-items:center;gap:7px;border:1px solid #eadfd6;border-radius:13px;background:rgba(255,255,255,.94);padding:7px 9px;box-shadow:0 8px 20px rgba(40,31,22,.04)}.aez-ref-student-stat span{font-size:19px}.aez-ref-student-stat b,.aez-ref-student-stat small{display:block}.aez-ref-student-stat b{font-size:10px}.aez-ref-student-stat small{font-size:8px;color:#777}
.aez-ref-side-note{position:absolute;right:-42px;top:78px;font-family:"Aref Ruqaa",serif;color:#2563eb;font-size:18px;line-height:1.2;transform:rotate(9deg);text-align:center;z-index:3}.aez-ref-microscope{position:absolute;right:-95px;bottom:-5px;width:150px;height:195px;opacity:.35;z-index:1}.aez-ref-hero-bg-mark{position:absolute;color:#ff8c42;opacity:.12;font-weight:900;z-index:-1;pointer-events:none}.aez-ref-mark-dna{font-size:0}.aez-ref-mark-atom{font-size:65px;left:47%;bottom:45px}
@media(max-width:1100px){.aez-ref-side-note{display:none}.aez-ref-microscope{right:-55px;width:125px}.aez-ref-hero-copy{padding-right:12px}.aez-ref-name{left:0}.aez-ref-bottom-note{left:0}}
@media(max-width:980px){.aez-ref-hero-inner{grid-template-columns:1fr;direction:rtl}.aez-ref-hero-copy{order:1;align-items:center;text-align:center;padding:32px 12px 16px}.aez-ref-hero-visual{order:2;min-height:345px}.aez-ref-student-stat{position:static;margin-top:13px}.aez-ref-orb{width:310px;height:310px}.aez-ref-teacher{height:335px;max-width:80%}.aez-ref-microscope,.aez-ref-side-note{display:none}}
@media(max-width:640px){.aez-ref-hero-copy h1{font-size:33px}.aez-ref-hero-visual{min-height:310px}.aez-ref-orb{width:265px;height:265px}.aez-ref-teacher{height:285px;max-width:84%}.aez-ref-name{font-size:21px;top:88px}.aez-ref-name small{font-size:9px}.aez-ref-bottom-note{font-size:17px;bottom:8px}.aez-ref-quote{right:5px;top:42px;min-width:92px;padding:9px 11px}.aez-ref-quote strong{font-size:14px}.aez-ref-dna{width:100px;height:190px}}


/* v1.0.18 registration visual from latest version */
.aez-register-page{padding:36px 0 50px!important;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)!important}
.aez-register-page .aez-auth-grid{grid-template-columns:1.08fr .92fr!important;gap:28px!important;align-items:stretch!important}
.aez-register-brand{position:relative!important;overflow:hidden!important;min-height:720px!important;padding:34px 34px 0!important;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)!important;display:flex!important;flex-direction:column!important}
.aez-register-copy{position:relative;z-index:5;text-align:right}
.aez-register-copy .aez-kicker{display:inline-block}
.aez-register-copy .aez-section-title{font-size:42px!important;margin:16px 0 12px!important;line-height:1.15!important}
.aez-register-copy p{font-size:16px!important;line-height:1.85!important;color:#5f6672!important;max-width:520px!important;margin:0!important}
.aez-register-visual{position:relative!important;flex:1!important;min-height:510px!important;margin-top:8px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;overflow:hidden!important}
.aez-register-glow{position:absolute!important;width:430px!important;height:430px!important;border-radius:50%!important;left:50%!important;bottom:20px!important;transform:translateX(-50%)!important;background:radial-gradient(circle at 50% 50%,rgba(255,153,72,.42) 0%,rgba(255,121,24,.22) 47%,rgba(255,121,24,0) 72%)!important;filter:blur(3px)!important;z-index:1!important}
.aez-register-visual:before{content:"";position:absolute;inset:70px 0 0;background:radial-gradient(circle at 50% 70%,rgba(255,107,0,.10),transparent 44%);z-index:0}
.aez-register-visual img{position:relative!important;z-index:3!important;width:auto!important;height:520px!important;max-height:none!important;max-width:106%!important;object-fit:contain!important;object-position:center bottom!important;margin:0 auto -24px!important;display:block!important;filter:drop-shadow(0 22px 28px rgba(63,36,14,.15))!important}
.aez-register-page .aez-auth-card{padding:34px!important;border-radius:24px!important}
@media(max-width:980px){
  .aez-register-page .aez-auth-grid{grid-template-columns:1fr!important}
  .aez-register-brand{min-height:610px!important}
  .aez-register-visual{min-height:425px!important}
  .aez-register-visual img{height:445px!important;margin-bottom:-18px!important}
  .aez-register-copy .aez-section-title{font-size:36px!important}
}
@media(max-width:640px){
  .aez-register-page{padding-top:18px!important}
  .aez-register-brand{min-height:500px!important;padding:22px 20px 0!important}
  .aez-register-copy .aez-section-title{font-size:30px!important}
  .aez-register-copy p{font-size:14px!important}
  .aez-register-visual{min-height:330px!important}
  .aez-register-visual img{height:350px!important;max-width:118%!important;margin-bottom:-14px!important}
  .aez-register-glow{width:300px!important;height:300px!important;bottom:8px!important}
}


/* v1.0.19 — make teacher portrait fill the orange circle */
.aez-ref-teacher{
  height:402px!important;
  max-width:none!important;
  left:51%!important;
  bottom:-18px!important;
  transform:translateX(-50%)!important;
}
@media(max-width:980px){
  .aez-ref-teacher{height:365px!important;bottom:-12px!important;left:50%!important}
}
@media(max-width:640px){
  .aez-ref-teacher{height:318px!important;bottom:-10px!important;left:50%!important;max-width:none!important}
}


/* =========================================================
   v1.0.20 — registration + final CTA image framing fixes
   ========================================================= */
/* Registration: make the teacher fill the empty vertical space cleanly without looking cropped. */
.aez-register-brand{min-height:720px!important}
.aez-register-copy{flex:0 0 auto!important}
.aez-register-visual{
  flex:1 1 auto!important;
  min-height:540px!important;
  margin-top:0!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  overflow:hidden!important;
}
.aez-register-visual img{
  height:570px!important;
  width:auto!important;
  max-width:112%!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  margin:0 auto -12px!important;
  transform:none!important;
  filter:drop-shadow(0 22px 28px rgba(63,36,14,.14))!important;
}
.aez-register-glow{
  width:470px!important;
  height:470px!important;
  bottom:4px!important;
}

/* Home CTA: use a dedicated padded portrait and keep the whole visible upper body inside the banner. */
.aez-final-cta{
  min-height:160px!important;
  padding:22px 24px!important;
  display:flex!important;
  align-items:center!important;
  overflow:hidden!important;
}
.aez-final-cta>div{
  position:relative!important;
  z-index:3!important;
  max-width:58%!important;
}
.aez-final-cta .aez-final-cta-teacher{
  position:absolute!important;
  left:14px!important;
  bottom:-24px!important;
  height:190px!important;
  width:auto!important;
  max-width:44%!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  opacity:1!important;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.14))!important;
}

@media(max-width:980px){
  .aez-register-brand{min-height:650px!important}
  .aez-register-visual{min-height:460px!important}
  .aez-register-visual img{height:485px!important;max-width:116%!important;margin-bottom:-10px!important}
  .aez-final-cta .aez-final-cta-teacher{height:176px!important;left:6px!important;bottom:-20px!important}
}
@media(max-width:640px){
  .aez-register-brand{min-height:540px!important}
  .aez-register-visual{min-height:360px!important}
  .aez-register-visual img{height:385px!important;max-width:124%!important;margin-bottom:-8px!important}
  .aez-register-glow{width:320px!important;height:320px!important;bottom:0!important}
  .aez-final-cta{min-height:154px!important;padding:18px 18px!important}
  .aez-final-cta>div{max-width:72%!important}
  .aez-final-cta .aez-final-cta-teacher{height:154px!important;max-width:40%!important;left:-4px!important;bottom:-18px!important;opacity:.95!important}
}


/* =========================================================
   v1.0.21 — fill teacher portraits inside the orange circles
   ========================================================= */
/* Hero circle portrait */
.aez-ref-hero-visual{overflow:hidden!important}
.aez-ref-orb{
  width:338px!important;
  height:338px!important;
  left:49.5%!important;
  top:54%!important;
  transform:translate(-50%,-50%)!important;
}
.aez-ref-teacher{
  height:392px!important;
  width:auto!important;
  max-width:none!important;
  left:49.5%!important;
  bottom:-14px!important;
  transform:translateX(-50%)!important;
  object-fit:contain!important;
  object-position:center bottom!important;
}
/* About circle portrait */
.aez-about-home-grid{grid-template-columns:280px 1fr 250px!important;align-items:center!important}
.aez-about-photo{
  height:190px!important;
  position:relative!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  padding-right:10px!important;
}
.aez-about-circle{
  width:180px!important;
  height:180px!important;
  right:14px!important;
  bottom:-10px!important;
  border-radius:50%!important;
  background:#dbeafe!important;
}
.aez-about-photo img{
  position:absolute!important;
  right:18px!important;
  bottom:-4px!important;
  height:204px!important;
  width:auto!important;
  max-width:none!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  z-index:2!important;
  filter:drop-shadow(0 10px 14px rgba(39,26,15,.10))!important;
}
.aez-about-photo strong{
  left:0!important;
  top:30px!important;
  z-index:3!important;
}
@media(max-width:980px){
  .aez-ref-orb{width:315px!important;height:315px!important;left:50%!important}
  .aez-ref-teacher{height:366px!important;left:50%!important;bottom:-10px!important}
  .aez-about-home-grid{grid-template-columns:1fr!important}
  .aez-about-photo{height:205px!important;justify-content:center!important;padding-right:0!important}
  .aez-about-circle{right:50%!important;transform:translateX(50%)!important}
  .aez-about-photo img{right:50%!important;transform:translateX(50%)!important;height:212px!important}
}
@media(max-width:640px){
  .aez-ref-orb{width:280px!important;height:280px!important}
  .aez-ref-teacher{height:326px!important;bottom:-8px!important}
  .aez-about-photo{height:180px!important}
  .aez-about-circle{width:160px!important;height:160px!important;bottom:-6px!important}
  .aez-about-photo img{height:182px!important;bottom:-2px!important}
}


/* =========================================================
   v1.0.22 — balanced section spacing & desktop rhythm
   ========================================================= */
/* Global homepage rhythm */
.aez-home-section{
  padding:64px 0!important;
}
.aez-section-head{
  margin-bottom:32px!important;
}
.aez-section-head h2,.aez-home-title{
  font-size:30px!important;
  line-height:1.25!important;
}
.aez-section-head h2:after,.aez-home-title:after{
  width:72px!important;
  height:3px!important;
  bottom:-11px!important;
}

/* Features: give the section real presence and allow two rows */
.aez-features-section{
  padding-top:58px!important;
  padding-bottom:68px!important;
}
.aez-features-ten{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:16px!important;
}
.aez-feature{
  min-height:168px!important;
  padding:22px 16px!important;
  border-radius:16px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
.aez-feature .icon{
  width:44px!important;
  height:44px!important;
  font-size:24px!important;
  margin:0 auto 12px!important;
}
.aez-feature h3{
  font-size:15px!important;
  min-height:auto!important;
  line-height:1.45!important;
  margin-bottom:7px!important;
}
.aez-feature p{
  font-size:12px!important;
  line-height:1.65!important;
}

/* About section */
.aez-about-home{
  padding-top:68px!important;
  padding-bottom:68px!important;
}
.aez-about-home-grid{
  margin-top:34px!important;
  gap:34px!important;
  min-height:260px!important;
}
.aez-about-text{
  font-size:14px!important;
  line-height:1.9!important;
}
.aez-about-text p{margin-bottom:12px!important}
.aez-about-badges{
  gap:10px!important;
  margin-top:18px!important;
}
.aez-about-badges span{
  padding:10px 8px!important;
  font-size:11px!important;
  border-radius:10px!important;
}
.aez-mission-card{
  padding:26px 20px!important;
  min-height:175px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
.aez-mission-card p{font-size:20px!important}

/* Grades section */
.aez-grades-home{
  padding-top:54px!important;
  padding-bottom:62px!important;
}
.aez-grades-polished{
  gap:22px!important;
}
.aez-grades-polished .aez-grade{
  min-height:110px!important;
  padding:20px 24px!important;
}
.aez-grades-polished .aez-grade h3{font-size:18px!important}
.aez-grades-polished .aez-grade p{font-size:12px!important}

/* Courses section */
.aez-courses-home{
  padding-top:58px!important;
  padding-bottom:70px!important;
}
.aez-courses-home .aez-section-head.compact{
  margin-bottom:30px!important;
}
.aez-course-card{
  box-shadow:0 12px 30px rgba(17,24,39,.07)!important;
}
.aez-course-card-body{
  min-height:190px!important;
}

/* Testimonials + CTA */
.aez-testimonials-home{
  padding-top:58px!important;
  padding-bottom:72px!important;
}
.aez-bottom-grid{
  margin-top:32px!important;
  gap:22px!important;
}
.aez-testimonials article{
  padding:18px!important;
  min-height:150px!important;
}
.aez-testimonials p{
  font-size:12px!important;
  line-height:1.7!important;
  min-height:62px!important;
}
.aez-testimonials b{font-size:12px!important}
.aez-testimonials small{font-size:10px!important}
.aez-final-cta{
  min-height:190px!important;
  padding:28px 30px!important;
}
.aez-final-cta h2{font-size:30px!important}
.aez-final-cta p{font-size:13px!important}
.aez-final-cta a{font-size:12px!important;padding:8px 18px!important}
.aez-final-cta .aez-final-cta-teacher{
  height:218px!important;
  bottom:-28px!important;
}

/* Keep hero intentionally compact but not cramped */
.aez-ref-hero,.aez-ref-hero-inner{
  min-height:380px!important;
}
.aez-ref-hero-visual{
  min-height:380px!important;
  height:380px!important;
}

@media(max-width:1100px){
  .aez-features-ten{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:980px){
  .aez-home-section{padding:48px 0!important}
  .aez-features-ten{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .aez-feature{min-height:155px!important}
  .aez-about-home-grid{min-height:0!important}
  .aez-grades-polished{grid-template-columns:1fr!important}
  .aez-ref-hero,.aez-ref-hero-inner{min-height:auto!important}
  .aez-ref-hero-visual{min-height:345px!important;height:345px!important}
  .aez-final-cta{min-height:175px!important}
}
@media(max-width:640px){
  .aez-home-section{padding:38px 0!important}
  .aez-section-head{margin-bottom:24px!important}
  .aez-section-head h2,.aez-home-title{font-size:25px!important}
  .aez-features-section{padding-top:38px!important;padding-bottom:44px!important}
  .aez-features-ten{grid-template-columns:1fr 1fr!important;gap:10px!important}
  .aez-feature{min-height:145px!important;padding:16px 10px!important}
  .aez-feature h3{font-size:13px!important}
  .aez-feature p{font-size:11px!important}
  .aez-about-home,.aez-grades-home,.aez-courses-home,.aez-testimonials-home{padding-top:40px!important;padding-bottom:44px!important}
  .aez-final-cta{min-height:160px!important;padding:22px 18px!important}
  .aez-final-cta h2{font-size:24px!important}
}


/* =========================================================
   v1.0.23 — cleaner portrait framing inside About orange circle
   ========================================================= */
.aez-about-home-grid{grid-template-columns:300px 1fr 250px!important;gap:28px!important}
.aez-about-photo{
  height:220px!important;
  min-height:220px!important;
  position:relative!important;
  overflow:visible!important;
  display:block!important;
  padding:0!important;
}
.aez-about-circle{
  position:absolute!important;
  width:196px!important;
  height:196px!important;
  right:18px!important;
  bottom:8px!important;
  border-radius:50%!important;
  background:linear-gradient(145deg,#dbeafe 0%,#ffc999 100%)!important;
  box-shadow:0 12px 30px rgba(255,107,0,.08)!important;
}
.aez-about-photo img{
  position:absolute!important;
  z-index:2!important;
  width:196px!important;
  height:196px!important;
  max-width:none!important;
  object-fit:contain!important;
  object-position:center center!important;
  right:18px!important;
  bottom:8px!important;
  transform:none!important;
  filter:drop-shadow(0 8px 12px rgba(25,20,16,.08))!important;
}
.aez-about-photo strong{
  left:0!important;
  top:48px!important;
  max-width:110px!important;
  text-align:center!important;
}
@media(max-width:980px){
  .aez-about-home-grid{grid-template-columns:1fr!important}
  .aez-about-photo{height:225px!important}
  .aez-about-circle,.aez-about-photo img{
    right:50%!important;
    transform:translateX(50%)!important;
  }
  .aez-about-photo strong{left:12px!important;top:58px!important}
}
@media(max-width:640px){
  .aez-about-photo{height:200px!important}
  .aez-about-circle,.aez-about-photo img{width:176px!important;height:176px!important;bottom:10px!important}
  .aez-about-photo strong{font-size:17px!important;max-width:95px!important;top:54px!important}
}


/* =========================================================
   v1.0.24 — new about portrait + functional grade pages
   ========================================================= */
.aez-about-photo{height:210px!important;overflow:hidden!important;border-radius:22px!important}
.aez-about-circle{width:188px!important;height:188px!important;right:18px!important;bottom:2px!important;background:linear-gradient(145deg,#ffe0c6,#ffc594)!important;box-shadow:inset 0 0 0 1px rgba(255,107,0,.08)!important}
.aez-about-photo img{height:205px!important;width:auto!important;right:4px!important;bottom:-2px!important;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 9px 12px rgba(35,24,18,.09))!important}
.aez-about-photo strong{left:3px!important;top:45px!important}
.aez-grades-polished .aez-grade{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important;cursor:pointer!important}
.aez-grades-polished .aez-grade:hover{transform:translateY(-4px)!important;border-color:#ffb37d!important;box-shadow:0 14px 30px rgba(255,107,0,.10)!important}
.aez-grade-page{background:#f8fbff;min-height:60vh}
.aez-grade-page-hero{padding:48px 0 34px;background:linear-gradient(135deg,#f8fbff,#fff);border-bottom:1px solid #eee4dc}
.aez-grade-page-hero .container{display:flex;align-items:center;gap:22px;direction:rtl}
.aez-grade-page-icon{width:74px;height:74px;border-radius:22px;background:#fff0e3;color:var(--aez-orange);display:grid;place-items:center;font-size:34px;flex:0 0 auto}
.aez-grade-page-hero h1{margin:8px 0 5px;font-size:38px;color:var(--aez-ink)}
.aez-grade-page-hero p{margin:0;color:var(--aez-muted)}
.aez-grade-course-section{padding:48px 0 70px;background:#fff}
.aez-grade-courses-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px!important}
.aez-grade-course-card{overflow:visible!important;height:100%!important}
.aez-grade-course-card .aez-course-thumb img{aspect-ratio:16/9!important;border-radius:11px 11px 0 0!important}
.aez-grade-course-card .aez-course-card-body{min-height:210px!important}
.aez-grade-pagination{display:flex;justify-content:center;gap:8px;margin-top:30px}
.aez-grade-pagination .page-numbers{min-width:38px;height:38px;padding:0 10px;border-radius:10px;border:1px solid #eee0d6;display:inline-grid;place-items:center;color:#343a44;background:#fff;font-weight:800}
.aez-grade-pagination .current{background:var(--aez-orange);border-color:var(--aez-orange);color:#fff}
.aez-empty-state{max-width:720px;margin:20px auto;padding:50px 28px;border:1px dashed #ffc89f;border-radius:22px;background:#f8fbff;text-align:center}
.aez-empty-state>span{font-size:42px}.aez-empty-state h2{margin:10px 0 8px}.aez-empty-state p{color:var(--aez-muted)}
@media(max-width:980px){.aez-grade-courses-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.aez-about-photo img{right:50%!important;transform:translateX(50%)!important}}
@media(max-width:640px){.aez-grade-page-hero{padding:34px 0 24px}.aez-grade-page-hero .container{align-items:flex-start}.aez-grade-page-icon{width:58px;height:58px;border-radius:16px;font-size:26px}.aez-grade-page-hero h1{font-size:28px}.aez-grade-page-hero p{font-size:13px}.aez-grade-course-section{padding:30px 0 50px}.aez-grade-courses-grid{grid-template-columns:1fr!important}.aez-about-photo{height:190px!important}.aez-about-circle{width:170px!important;height:170px!important}.aez-about-photo img{height:185px!important}}


/* =========================================================
   v1.0.25 — use the approved circle portrait in About section
   ========================================================= */
.aez-about-photo{
  width:260px!important;
  height:205px!important;
  position:relative!important;
  overflow:visible!important;
  margin-inline:auto!important;
  display:block!important;
}
.aez-about-circle{
  position:absolute!important;
  width:190px!important;
  height:190px!important;
  border-radius:50%!important;
  background:#ffd7b8!important;
  right:14px!important;
  bottom:0!important;
  overflow:hidden!important;
  z-index:1!important;
}
.aez-about-photo img{
  position:absolute!important;
  z-index:2!important;
  width:188px!important;
  height:188px!important;
  max-width:none!important;
  right:15px!important;
  bottom:0!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  margin:0!important;
  transform:none!important;
  filter:drop-shadow(0 8px 12px rgba(35,24,16,.08))!important;
}
.aez-about-photo strong{
  position:absolute!important;
  z-index:3!important;
  left:-2px!important;
  top:38px!important;
}
@media(max-width:980px){
  .aez-about-photo{width:270px!important;height:215px!important}
  .aez-about-circle{width:200px!important;height:200px!important;right:35px!important}
  .aez-about-photo img{width:198px!important;height:198px!important;right:36px!important}
  .aez-about-photo strong{left:-8px!important;top:45px!important}
}
@media(max-width:640px){
  .aez-about-photo{width:235px!important;height:190px!important}
  .aez-about-circle{width:175px!important;height:175px!important;right:30px!important}
  .aez-about-photo img{width:174px!important;height:174px!important;right:30px!important}
  .aez-about-photo strong{font-size:17px!important;left:-4px!important;top:44px!important}
}


/* =========================================================
   v1.0.27 — custom Tutor LMS single course page
   ========================================================= */
.aez-course-page{background:#f8fbff;color:#101827;padding-bottom:70px}
.aez-course-hero{position:relative;overflow:hidden;background:linear-gradient(105deg,#fff 0%,#fff8f1 58%,#dbeafe 100%);border-bottom:1px solid #f0e5dc;padding:42px 0 38px}
.aez-course-hero:before{content:"";position:absolute;width:360px;height:360px;border-radius:50%;background:rgba(255,107,0,.065);left:-110px;top:-160px}
.aez-course-hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:42px;align-items:center;direction:rtl}
.aez-course-hero-copy{min-width:0}
.aez-course-breadcrumbs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#8a9099;font-size:12px;margin-bottom:16px}
.aez-course-breadcrumbs a{color:#737a84;text-decoration:none}.aez-course-breadcrumbs a:hover{color:var(--aez-orange)}
.aez-course-category{display:inline-flex;align-items:center;background:#dbeafe;border:1px solid #ffd3b4;color:var(--aez-orange);border-radius:999px;padding:7px 13px;font-size:12px;font-weight:900}
.aez-course-hero h1{font-size:clamp(34px,4vw,58px);line-height:1.12;margin:14px 0 12px;letter-spacing:-1.2px;font-weight:950;color:#101827}
.aez-course-hero-copy>p{font-size:16px;line-height:1.9;color:#656d78;max-width:760px;margin:0}
.aez-course-hero-meta{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}.aez-course-hero-meta span{background:#fff;border:1px solid #eee2d8;border-radius:12px;padding:9px 12px;font-size:12px;font-weight:800;color:#555e69;box-shadow:0 6px 18px rgba(33,24,17,.035)}
.aez-course-hero-thumb{position:relative;border-radius:24px;padding:7px;background:#fff;border:1px solid #eaded5;box-shadow:0 18px 45px rgba(54,34,20,.09);overflow:hidden;min-height:245px}.aez-course-hero-thumb img{display:block;width:100%;height:100%;min-height:245px;max-height:310px;object-fit:cover;border-radius:18px}.aez-course-hero-placeholder{min-height:245px;border-radius:18px;background:linear-gradient(135deg,#2563eb,#ff9d59);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center;padding:30px}.aez-course-hero-placeholder span{font-size:58px}.aez-course-hero-placeholder strong{font-size:22px;margin-top:10px}
.aez-course-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:28px;align-items:start;padding-top:34px;direction:rtl}.aez-course-main{min-width:0}.aez-course-sidebar{min-width:0}
.aez-course-video-card,.aez-course-tabs-shell,.aez-entry-card,.aez-course-more-card{background:#fff;border:1px solid #eee2d8;border-radius:22px;box-shadow:0 12px 34px rgba(36,28,22,.045)}
.aez-course-video-card{padding:20px;margin-bottom:24px}.aez-course-card-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.aez-card-eyebrow{color:var(--aez-orange);font-size:11px;font-weight:900}.aez-course-card-heading h2{font-size:22px;margin:2px 0 0}.aez-video-source-badge{background:#eff6ff;color:var(--aez-orange);border-radius:999px;padding:7px 11px;font-size:10px;font-weight:900;white-space:nowrap}
.aez-course-video-wrap{overflow:hidden;border-radius:17px;background:#10151c}.aez-course-video-wrap iframe,.aez-course-video-wrap video,.aez-course-video-wrap .tutor-video-player,.aez-course-video-wrap .tutor-course-video-wrapper{width:100%!important;max-width:100%!important;border-radius:17px!important}.aez-course-video-wrap img{display:block;width:100%;height:auto}
.aez-course-tabs-shell{padding:0!important;overflow:hidden}.aez-course-tabs-nav{background:#fff;border-bottom:1px solid #eee7e0;padding:0 18px}.aez-course-tabs-content{padding:26px!important}.aez-course-tabs-shell .tutor-nav{gap:5px!important}.aez-course-tabs-shell .tutor-nav-link{font-weight:800!important;border-radius:10px!important}.aez-course-tabs-shell .tutor-nav-link.is-active{color:var(--aez-orange)!important;background:#dbeafe!important}
.aez-course-sidebar-sticky{position:sticky;top:88px}.aez-entry-card{padding:16px;overflow:hidden}.aez-entry-card .tutor-card{border:0!important;box-shadow:none!important}.aez-entry-card .tutor-btn,.aez-course-page .tutor-btn-primary{background:var(--aez-orange)!important;border-color:var(--aez-orange)!important;color:#fff!important;border-radius:13px!important;font-weight:900!important}.aez-entry-card .tutor-btn:hover,.aez-course-page .tutor-btn-primary:hover{background:#1d4ed8!important;border-color:#1d4ed8!important}.aez-entry-card .tutor-course-price{color:#101827!important;font-weight:950!important}
.aez-course-more-card{margin-top:18px;padding:18px}.aez-course-more-card>*{margin-bottom:18px}.aez-course-more-card>*:last-child{margin-bottom:0}
.aez-course-page .tutor-accordion-item{border:1px solid #eee4dc!important;border-radius:14px!important;margin-bottom:10px!important;overflow:hidden!important}.aez-course-page .tutor-accordion-item-header{background:#f8fbff!important;padding:16px 18px!important;font-weight:900!important}.aez-course-page .tutor-accordion-item-header.is-active{background:#dbeafe!important;color:var(--aez-orange)!important}.aez-course-page .tutor-course-content-list-item{padding:13px 16px!important;border-top:1px solid #f1ebe6!important}.aez-course-page .tutor-course-content-list-item:hover{background:#f8fbff!important}
.aez-course-page .tutor-progress-value{background:var(--aez-orange)!important}.aez-course-page .tutor-ratings-stars{color:#ff8b37!important}
.aez-mobile-entry-box{margin:0 0 24px}
@media(max-width:1024px){.aez-course-hero-grid{grid-template-columns:1fr 330px;gap:26px}.aez-course-layout{grid-template-columns:minmax(0,1fr) 300px;gap:20px}}
@media(max-width:880px){.aez-course-hero{padding:30px 0}.aez-course-hero-grid{grid-template-columns:1fr;gap:22px}.aez-course-hero-thumb{max-width:620px;width:100%;margin:0 auto}.aez-course-layout{grid-template-columns:1fr}.aez-course-sidebar-sticky{position:static}.aez-course-sidebar{order:2}.aez-course-main{order:1}}
@media(max-width:640px){.aez-course-page{padding-bottom:45px}.aez-course-hero h1{font-size:34px}.aez-course-hero-copy>p{font-size:14px}.aez-course-hero-meta{gap:7px}.aez-course-hero-meta span{font-size:10px;padding:7px 9px}.aez-course-hero-thumb{min-height:190px;border-radius:18px}.aez-course-hero-thumb img{min-height:190px;max-height:230px;border-radius:13px}.aez-course-layout{padding-top:20px}.aez-course-video-card{padding:12px;border-radius:17px}.aez-course-card-heading h2{font-size:18px}.aez-video-source-badge{display:none}.aez-course-tabs-content{padding:18px!important}.aez-entry-card,.aez-course-more-card{border-radius:17px}}


/* =========================================================
   v1.0.28 — streamlined Tutor LMS course page
   ========================================================= */
.aez-course-page .tutor-course-details-ratings,
.aez-course-page .tutor-ratings,
.aez-course-page .tutor-ratings-stars,
.aez-course-page .tutor-course-review,
.aez-course-page .tutor-course-reviews-wrap,
.aez-course-page [id*="review"],
.aez-course-page [class*="review"]{
  display:none!important;
}
/* The custom header no longer has a Tutor LMS source badge. */
.aez-course-page .aez-video-source-badge{display:none!important}


/* v1.0.29 — Tutor course cards: hide ratings and instructor presentation */
.tutor-courses-wrap .tutor-ratings,
.tutor-courses-wrap .tutor-ratings-stars,
.tutor-courses-wrap .tutor-course-rating,
.tutor-dashboard .tutor-ratings,
.tutor-dashboard .tutor-ratings-stars,
.tutor-dashboard .tutor-course-rating,
.tutor-dashboard .tutor-star-rating-container,
.tutor-dashboard .tutor-icon-star-bold,
.tutor-dashboard .tutor-icon-star-line{display:none!important}
.aez-course-category-only{font-size:13px!important;color:var(--aez-muted)!important}
.aez-course-category-only a{color:var(--aez-orange)!important;font-weight:800!important}


/* v1.0.30 — hide Tutor last-update / enrollment-validity metadata block */
.aez-course-page .tutor-course-details-widget-list-item:has(.tutor-icon-calendar),
.aez-course-page .tutor-course-details-widget-row:has(.tutor-icon-calendar){display:none!important}


/* v1.0.31 default course cover support */
.aez-course-thumb img, .tutor-course-thumbnail img, .aez-course-hero-thumb img{object-fit:cover;}


/* v1.0.33 latest courses phrase + nicer thumbnail edges */
.aez-course-thumb,.tutor-course-thumbnail{display:block;overflow:hidden;border-radius:14px 14px 0 0;}
.aez-course-thumb img,.tutor-course-thumbnail img{border-radius:14px 14px 0 0!important;}
.aez-course-card img{border-radius:14px 14px 0 0!important;}
.aez-four-courses .aez-course-thumb,.aez-four-courses .tutor-course-thumbnail{border-radius:12px 12px 0 0;}
.aez-four-courses .aez-course-thumb img,.aez-four-courses .tutor-course-thumbnail img{border-radius:12px 12px 0 0!important;}

/* =========================================================
   v1.0.35 — mobile polish for About section portrait
   ========================================================= */
@media(max-width:640px){
  .aez-about-home{
    padding-top:36px!important;
    padding-bottom:42px!important;
  }
  .aez-about-home .aez-home-title{
    font-size:25px!important;
    line-height:1.35!important;
    margin-bottom:22px!important;
  }
  .aez-about-home-grid{
    gap:20px!important;
    margin-top:18px!important;
  }
  .aez-about-photo{
    width:100%!important;
    max-width:320px!important;
    height:245px!important;
    margin:0 auto!important;
    overflow:visible!important;
  }
  .aez-about-circle{
    width:190px!important;
    height:190px!important;
    right:50%!important;
    bottom:35px!important;
    transform:translateX(50%)!important;
    border-radius:50%!important;
  }
  .aez-about-photo img{
    width:190px!important;
    height:190px!important;
    right:50%!important;
    bottom:35px!important;
    transform:translateX(50%)!important;
    object-fit:contain!important;
    object-position:center bottom!important;
  }
  .aez-about-photo strong{
    position:absolute!important;
    left:50%!important;
    right:auto!important;
    top:auto!important;
    bottom:0!important;
    transform:translateX(-50%) rotate(-4deg)!important;
    width:max-content!important;
    max-width:92%!important;
    text-align:center!important;
    font-size:16px!important;
    line-height:1.3!important;
    white-space:nowrap!important;
  }
  .aez-about-text{
    font-size:13px!important;
    line-height:1.85!important;
    padding:0 6px!important;
  }
  .aez-about-badges{
    gap:8px!important;
    margin-top:14px!important;
  }
  .aez-about-badges span{
    padding:9px 7px!important;
    font-size:10px!important;
  }
  .aez-mission-card{
    margin-top:2px!important;
    padding:20px 14px!important;
  }
}


/* =========================================================
   v1.0.36 — larger teacher image in mobile final CTA
   ========================================================= */
@media(max-width:640px){
  .aez-final-cta{min-height:168px!important;padding:18px 16px 16px!important}
  .aez-final-cta>div{max-width:66%!important;position:relative!important;z-index:3!important}
  .aez-final-cta .aez-final-cta-teacher{
    height:172px!important;
    max-width:46%!important;
    left:2px!important;
    bottom:-6px!important;
    opacity:1!important;
    object-fit:contain!important;
    object-position:left bottom!important;
  }
}


/* =========================================================
   v1.0.37 — mobile CTA portrait: taller and grounded from bottom
   ========================================================= */
@media(max-width:640px){
  .aez-final-cta{
    min-height:182px!important;
    padding:18px 16px 14px!important;
    align-items:flex-start!important;
  }
  .aez-final-cta>div{
    max-width:64%!important;
    padding-right:2px!important;
  }
  .aez-final-cta .aez-final-cta-teacher{
    height:188px!important;
    max-width:48%!important;
    left:2px!important;
    bottom:-16px!important;
    top:auto!important;
    opacity:1!important;
    object-fit:contain!important;
    object-position:left bottom!important;
    transform:none!important;
  }
}


/* =========================================================
   v1.0.38 — mobile CTA portrait fixed: full-height from bottom
   ========================================================= */
@media(max-width:640px){
  .aez-final-cta{
    min-height:190px!important;
    height:190px!important;
    padding:18px 16px!important;
    overflow:hidden!important;
  }
  .aez-final-cta>div{
    max-width:62%!important;
    position:relative!important;
    z-index:3!important;
  }
  .aez-final-cta .aez-final-cta-teacher{
    position:absolute!important;
    left:-2px!important;
    right:auto!important;
    bottom:0!important;
    top:auto!important;
    height:186px!important;
    width:auto!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    transform:none!important;
    opacity:1!important;
    object-fit:contain!important;
    object-position:left bottom!important;
  }
}


/* =========================================================
   v1.0.39 — mobile CTA teacher truly fills the card
   ========================================================= */
.aez-final-cta-picture{display:contents;}
@media(max-width:640px){
  .aez-final-cta{
    height:190px!important;
    min-height:190px!important;
    padding:18px 16px!important;
    overflow:hidden!important;
  }
  .aez-final-cta>div{
    max-width:60%!important;
    position:relative!important;
    z-index:3!important;
  }
  .aez-final-cta .aez-final-cta-picture .aez-final-cta-teacher,
  .aez-final-cta .aez-final-cta-teacher{
    position:absolute!important;
    left:0!important;
    right:auto!important;
    bottom:0!important;
    top:auto!important;
    width:42%!important;
    height:auto!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    transform:none!important;
    opacity:1!important;
    object-fit:contain!important;
    object-position:left bottom!important;
  }
}


/* =========================================================
   v1.0.40 — mobile CTA portrait fills the banner from the bottom
   ========================================================= */
@media(max-width:640px){
  .aez-final-cta{
    height:190px!important;
    min-height:190px!important;
    padding:18px 16px!important;
    overflow:hidden!important;
  }
  .aez-final-cta>div{
    max-width:55%!important;
    position:relative!important;
    z-index:3!important;
  }
  .aez-final-cta .aez-final-cta-picture{
    display:block!important;
    position:absolute!important;
    left:0!important;
    bottom:0!important;
    top:auto!important;
    width:55%!important;
    height:100%!important;
    margin:0!important;
    z-index:2!important;
    overflow:visible!important;
  }
  .aez-final-cta .aez-final-cta-picture .aez-final-cta-teacher{
    position:absolute!important;
    left:-3px!important;
    right:auto!important;
    bottom:0!important;
    top:auto!important;
    width:100%!important;
    height:auto!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    opacity:1!important;
    transform:none!important;
    object-fit:contain!important;
    object-position:left bottom!important;
  }
}


/* =========================================================
   v1.0.41 — mobile CTA face visible while image still fills the card
   ========================================================= */
@media(max-width:640px){
  .aez-final-cta{
    height:190px!important;
    min-height:190px!important;
    padding:18px 16px!important;
    overflow:hidden!important;
  }
  .aez-final-cta>div{
    max-width:56%!important;
    position:relative!important;
    z-index:3!important;
  }
  .aez-final-cta .aez-final-cta-picture{
    display:block!important;
    position:absolute!important;
    left:0!important;
    bottom:0!important;
    width:48%!important;
    height:100%!important;
    margin:0!important;
    z-index:2!important;
    overflow:hidden!important;
  }
  .aez-final-cta .aez-final-cta-picture .aez-final-cta-teacher,
  .aez-final-cta .aez-final-cta-teacher{
    position:absolute!important;
    left:-2px!important;
    bottom:0!important;
    top:auto!important;
    width:auto!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    opacity:1!important;
    transform:none!important;
    object-fit:contain!important;
    object-position:left bottom!important;
  }
}


/* =========================================================
   v1.0.47 — mobile CTA match desktop look better
   ========================================================= */
@media(max-width:640px){
  .aez-final-cta{
    height:188px!important;
    min-height:188px!important;
    padding:18px 16px!important;
    overflow:hidden!important;
  }
  .aez-final-cta > div{
    max-width:54%!important;
    margin-right:auto!important;
    position:relative!important;
    z-index:3!important;
  }
  .aez-final-cta .aez-final-cta-picture{
    display:block!important;
    position:absolute!important;
    left:0!important;
    right:auto!important;
    bottom:0!important;
    width:46%!important;
    height:100%!important;
    overflow:hidden!important;
    z-index:2!important;
  }
  .aez-final-cta .aez-final-cta-picture .aez-final-cta-teacher,
  .aez-final-cta .aez-final-cta-teacher{
    position:absolute!important;
    left:-8px!important;
    right:auto!important;
    bottom:0!important;
    top:auto!important;
    width:auto!important;
    height:108%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:left bottom!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
    opacity:1!important;
  }
}


/* =========================================================
   v1.0.48 — desktop CTA matches the mobile composition better
   ========================================================= */
@media(min-width:641px){
  .aez-final-cta{
    min-height:198px!important;
    height:198px!important;
    padding:22px 24px!important;
    overflow:hidden!important;
  }
  .aez-final-cta > div{
    max-width:56%!important;
    margin-right:auto!important;
    position:relative!important;
    z-index:3!important;
  }
  .aez-final-cta .aez-final-cta-picture{
    display:block!important;
    position:absolute!important;
    left:0!important;
    bottom:0!important;
    width:48%!important;
    height:100%!important;
    overflow:hidden!important;
    z-index:2!important;
  }
  .aez-final-cta .aez-final-cta-picture .aez-final-cta-teacher,
  .aez-final-cta .aez-final-cta-teacher{
    position:absolute!important;
    left:-8px!important;
    bottom:0!important;
    top:auto!important;
    width:auto!important;
    height:112%!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    object-fit:contain!important;
    object-position:left bottom!important;
    transform:none!important;
    opacity:1!important;
  }
}


/* =========================================================
   v1.0.49 — desktop CTA: larger image without affecting text/button layout
   ========================================================= */
@media(min-width:641px){
  .aez-final-cta{
    display:grid!important;
    grid-template-columns:42% 58%!important;
    align-items:center!important;
    min-height:198px!important;
    height:198px!important;
    padding:0 28px 0 0!important;
    overflow:hidden!important;
    position:relative!important;
  }
  .aez-final-cta > div{
    grid-column:2!important;
    max-width:none!important;
    width:100%!important;
    margin:0!important;
    padding:0 6px 0 0!important;
    position:relative!important;
    z-index:3!important;
    text-align:right!important;
  }
  .aez-final-cta .aez-final-cta-picture{
    grid-column:1!important;
    position:relative!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-height:198px!important;
    overflow:hidden!important;
    z-index:2!important;
  }
  .aez-final-cta .aez-final-cta-picture .aez-final-cta-teacher,
  .aez-final-cta .aez-final-cta-teacher{
    position:absolute!important;
    left:8px!important;
    bottom:0!important;
    top:auto!important;
    width:auto!important;
    height:115%!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    object-fit:contain!important;
    object-position:left bottom!important;
    transform:none!important;
    opacity:1!important;
    filter:drop-shadow(0 10px 16px rgba(0,0,0,.16))!important;
  }
  .aez-final-cta h2,
  .aez-final-cta p,
  .aez-final-cta a{position:relative!important;z-index:4!important}
}


/* =========================================================
   v1.0.51 — restore final CTA exactly to the approved v1.0.46 layout
   ========================================================= */
.aez-final-cta-picture{display:contents!important}

@media(min-width:641px){
  .aez-final-cta{
    display:flex!important;
    align-items:center!important;
    position:relative!important;
    min-height:190px!important;
    height:auto!important;
    padding:28px 30px!important;
    overflow:hidden!important;
  }
  .aez-final-cta>div{
    position:relative!important;
    z-index:3!important;
    max-width:58%!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    text-align:initial!important;
    grid-column:auto!important;
  }
  .aez-final-cta .aez-final-cta-picture{
    display:contents!important;
    position:static!important;
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  .aez-final-cta .aez-final-cta-picture .aez-final-cta-teacher,
  .aez-final-cta .aez-final-cta-teacher{
    position:absolute!important;
    left:14px!important;
    right:auto!important;
    bottom:-28px!important;
    top:auto!important;
    height:218px!important;
    width:auto!important;
    max-width:44%!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:none!important;
    opacity:1!important;
    filter:drop-shadow(0 10px 18px rgba(0,0,0,.14))!important;
  }
  .aez-final-cta h2{font-size:30px!important}
  .aez-final-cta p{font-size:13px!important}
  .aez-final-cta a{font-size:12px!important;padding:8px 18px!important}
}

@media(max-width:980px) and (min-width:641px){
  .aez-final-cta{min-height:175px!important}
  .aez-final-cta .aez-final-cta-picture .aez-final-cta-teacher,
  .aez-final-cta .aez-final-cta-teacher{
    height:176px!important;
    left:6px!important;
    bottom:-20px!important;
  }
}

@media(max-width:640px){
  .aez-final-cta{
    display:flex!important;
    height:190px!important;
    min-height:190px!important;
    padding:18px 16px!important;
    overflow:hidden!important;
    position:relative!important;
    align-items:center!important;
  }
  .aez-final-cta>div{
    max-width:56%!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    position:relative!important;
    z-index:3!important;
    grid-column:auto!important;
  }
  .aez-final-cta .aez-final-cta-picture{
    display:block!important;
    position:absolute!important;
    left:0!important;
    right:auto!important;
    bottom:0!important;
    top:auto!important;
    width:48%!important;
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    overflow:hidden!important;
    z-index:2!important;
  }
  .aez-final-cta .aez-final-cta-picture .aez-final-cta-teacher,
  .aez-final-cta .aez-final-cta-teacher{
    position:absolute!important;
    left:-2px!important;
    right:auto!important;
    bottom:0!important;
    top:auto!important;
    width:auto!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    opacity:1!important;
    transform:none!important;
    object-fit:contain!important;
    object-position:left bottom!important;
    filter:drop-shadow(0 10px 18px rgba(0,0,0,.14))!important;
  }
  .aez-final-cta h2{font-size:24px!important}
}


/* v1.0.52 — two active grade cards */
.aez-grades-polished{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:820px;margin-inline:auto;}
@media(max-width:640px){.aez-grades-polished{grid-template-columns:1fr!important;max-width:none;}}


/* =========================================================
   v1.0.55 — code-only Tutor checkout
   ========================================================= */
.aez-code-checkout-page{min-height:62vh;padding:70px 18px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);display:flex;align-items:flex-start;justify-content:center}
.aez-code-checkout-card{width:min(620px,100%);background:#fff;border:1px solid #eee2d8;border-radius:26px;padding:38px;box-shadow:0 18px 50px rgba(42,29,20,.08);text-align:center;direction:rtl}
.aez-code-checkout-icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 14px;border-radius:20px;background:#dbeafe;font-size:30px}
.aez-code-checkout-card h1{margin:10px 0 8px;font-size:34px;color:#111827}.aez-code-checkout-lead{margin:0 auto 22px;max-width:480px;color:#6b7280;line-height:1.8;font-size:15px}
.aez-code-course-name{margin:0 auto 20px;padding:12px 16px;border-radius:14px;background:#f8fbff;border:1px solid #ffd8bd;color:#222;font-weight:900}
.aez-code-form{text-align:right}.aez-code-form label{display:block;font-size:14px;font-weight:900;margin-bottom:8px}.aez-code-field-row{display:grid;grid-template-columns:1fr 150px;gap:10px}
.aez-code-field-row input{width:100%;height:52px;border:1px solid #ddd4cc;border-radius:14px;padding:0 16px;font:inherit;font-size:17px;letter-spacing:.5px;text-transform:uppercase;outline:none}.aez-code-field-row input:focus{border-color:var(--aez-orange);box-shadow:0 0 0 3px rgba(255,107,0,.09)}
.aez-code-field-row button,.aez-code-login{height:52px;border:0;border-radius:14px;background:var(--aez-orange);color:#fff;font:inherit;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.aez-code-field-row button:hover,.aez-code-login:hover{background:var(--aez-orange-dark);color:#fff}
.aez-code-note{margin:16px 0 0;color:#888;font-size:12px}.aez-code-alert{margin:0 0 18px;padding:12px 15px;border-radius:12px;font-weight:800;font-size:13px}.aez-code-alert.error{background:#fff1f1;color:#b42318;border:1px solid #ffd4d0}.aez-code-alert.success{background:#effcf4;color:#147a42;border:1px solid #c9efd8}.aez-code-login{padding:0 24px}
@media(max-width:640px){.aez-code-checkout-page{padding:38px 14px}.aez-code-checkout-card{padding:26px 18px;border-radius:20px}.aez-code-checkout-card h1{font-size:28px}.aez-code-field-row{grid-template-columns:1fr}.aez-code-field-row button{width:100%}}


/* =========================================================
   Mr Ahmed Salah Academy v1.0.0 — mathematics identity
   ========================================================= */
:root{--aez-orange:#2563eb;--aez-orange-dark:#1d4ed8;--aez-ink:#0f172a;--aez-muted:#64748b;--aez-border:#dbe5f0;--aez-soft:#eff6ff;--aez-green:#0f766e;--mras-cyan:#0ea5e9;--mras-orange:#f97316}
body{background:#fff;color:var(--aez-ink)}
#aez-site-header.aez-header{border-top:3px solid #2563eb!important}
.aez-brand img{border-radius:14px}.aez-brand-text small{color:#64748b!important}
.aez-btn-primary,.aez-course-go{background:linear-gradient(135deg,#2563eb,#0ea5e9)!important;border-color:transparent!important}
.aez-btn-outline{border-color:#93c5fd!important;color:#1d4ed8!important;background:#fff!important}
.aez-ref-hero.mras-hero{background:linear-gradient(115deg,#eff6ff 0%,#fff 52%,#f8fbff 100%)!important;min-height:430px!important}
.mras-hero .aez-ref-hero-inner{min-height:430px!important}.mras-hero-visual{min-height:430px!important;overflow:hidden!important}
.mras-hero .aez-ref-orb{width:355px!important;height:355px!important;background:linear-gradient(145deg,#bfdbfe,#38bdf8)!important;opacity:.72!important;box-shadow:0 28px 80px rgba(37,99,235,.15)!important}
.mras-hero .aez-ref-teacher{height:430px!important;bottom:-20px!important;left:49%!important;max-width:none!important;filter:drop-shadow(0 18px 25px rgba(15,23,42,.16))!important}
.mras-hero .aez-ref-name{color:#0f172a!important}.mras-hero .aez-ref-bottom-note:after{background:#f97316!important}.mras-hero .aez-ref-quote{border-color:#93c5fd!important}.mras-hero .aez-ref-quote i{color:#2563eb!important}
.mras-math-mark{position:absolute;font-weight:950;color:#2563eb;opacity:.07;z-index:0;pointer-events:none}.mras-math-mark.m1{font-size:130px;left:5%;top:25px}.mras-math-mark.m2{font-size:90px;right:4%;bottom:35px}.mras-math-mark.m3{font-size:100px;left:45%;bottom:-10px}
.aez-features-section{background:#fff!important}.aez-feature .icon{background:#eff6ff!important;color:#2563eb!important}.aez-feature:hover{border-color:#93c5fd!important}
.mras-about-photo .aez-about-circle{background:linear-gradient(145deg,#dbeafe,#bae6fd)!important}.mras-about-photo img{height:215px!important}
.aez-mission-card{border-color:#93c5fd!important}.aez-mission-card i,.aez-mission-card p b{color:#2563eb!important}
.mras-grade-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.mras-grade-group{background:#fff;border:1px solid #dbe5f0;border-radius:22px;padding:20px;box-shadow:0 14px 35px rgba(15,23,42,.06)}.mras-grade-group-head{display:flex;gap:12px;align-items:center;margin-bottom:14px}.mras-grade-group-head>span{width:48px;height:48px;border-radius:15px;background:#eff6ff;display:grid;place-items:center;color:#2563eb;font-size:22px;font-weight:900}.mras-grade-group-head h3{margin:0;font-size:19px}.mras-grade-group-head p{margin:4px 0 0;color:#64748b;font-size:11px}.mras-subject-links{display:grid;gap:9px}.mras-subject-links a{display:flex;align-items:center;gap:9px;border:1px solid #e2e8f0;border-radius:13px;padding:11px 12px;font-weight:800;color:#0f172a;background:#f8fafc}.mras-subject-links a:hover{border-color:#93c5fd;background:#eff6ff;transform:translateY(-1px)}.mras-subject-links a>span{min-width:30px;color:#2563eb;font-weight:950}.mras-subject-links a>b{margin-right:auto;color:#0ea5e9}
.mras-subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.mras-subject-card{background:#fff;border:1px solid #dbe5f0;border-radius:22px;padding:26px;text-align:center;box-shadow:0 12px 32px rgba(15,23,42,.05)}.mras-subject-card>span{width:68px;height:68px;display:grid;place-items:center;margin:0 auto 14px;border-radius:20px;background:linear-gradient(145deg,#eff6ff,#dbeafe);color:#2563eb;font-size:27px;font-weight:950}.mras-subject-card h2{font-size:20px;margin:0 0 7px}.mras-subject-card p{color:#64748b}.mras-subject-card b{color:#2563eb}
.aez-course-card{border-color:#dbe5f0!important}.aez-course-tag{color:#2563eb!important;border-color:#93c5fd!important}.aez-course-thumb img,.tutor-course-thumbnail img{background:#eaf2ff}
.mras-math-panel{min-height:190px;border-radius:20px;padding:30px;background:linear-gradient(135deg,#0f172a,#1e3a8a);color:#fff;position:relative;overflow:hidden}.mras-math-panel h2{font-size:28px;margin:0 0 8px}.mras-math-panel p{opacity:.82;max-width:600px;line-height:1.8}.mras-math-panel>div{display:flex;gap:12px;margin-top:20px}.mras-math-panel>div span{width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.1);display:grid;place-items:center;font-size:19px;font-weight:900}
.aez-final-cta{background:linear-gradient(135deg,#2563eb,#0ea5e9)!important}.mras-cta-teacher{height:215px!important;bottom:-18px!important;left:8px!important}
.aez-grade-page-hero{background:linear-gradient(120deg,#eff6ff,#fff)!important}.aez-grade-page-icon{background:#dbeafe!important;color:#2563eb!important}.aez-empty-state span{color:#2563eb}
.mras-login-brand{background:linear-gradient(180deg,#eff6ff,#fff)!important}.mras-login-brand img{max-height:460px!important;object-fit:contain!important;object-position:center bottom!important}
.aez-register-brand{background:linear-gradient(180deg,#eff6ff,#fff)!important}.aez-register-glow{background:radial-gradient(circle,rgba(37,99,235,.22),rgba(14,165,233,.12) 48%,transparent 72%)!important}
.aez-course-hero{background:linear-gradient(120deg,#eff6ff,#fff)!important}.aez-course-category,.aez-card-eyebrow{color:#2563eb!important}.aez-course-page .tutor-accordion-item-header.is-active{background:#eff6ff!important;color:#2563eb!important}
@media(max-width:980px){.mras-grade-groups{grid-template-columns:1fr}.mras-subject-grid{grid-template-columns:repeat(2,1fr)}.mras-hero .aez-ref-teacher{height:390px!important}.mras-hero-visual{min-height:390px!important}}
@media(max-width:640px){.mras-hero .aez-ref-hero-copy h1{font-size:36px!important}.mras-hero-visual{min-height:330px!important}.mras-hero .aez-ref-orb{width:285px!important;height:285px!important}.mras-hero .aez-ref-teacher{height:335px!important;bottom:-10px!important}.mras-hero .aez-ref-name{font-size:20px!important}.mras-subject-grid{grid-template-columns:1fr}.mras-math-panel{min-height:170px;padding:24px}.mras-math-panel h2{font-size:23px}.mras-cta-teacher{height:185px!important}.aez-register-visual img{height:390px!important}}

/* Subject/grade page teacher visuals */
.mras-subject-hero .container,.mras-grade-hub-page .aez-grade-page-hero .container{position:relative;overflow:hidden;min-height:220px;padding-left:250px!important}
.mras-subject-teacher,.mras-grade-teacher{position:absolute;left:26px;bottom:-28px;height:250px;width:auto;object-fit:contain;filter:drop-shadow(0 12px 18px rgba(15,23,42,.14))}
.mras-grade-teacher{height:235px;bottom:-20px}
@media(max-width:720px){.mras-subject-hero .container,.mras-grade-hub-page .aez-grade-page-hero .container{padding-left:20px!important;padding-bottom:180px!important;text-align:center}.mras-subject-teacher,.mras-grade-teacher{height:200px;left:50%;transform:translateX(-50%);bottom:-22px}}


/* =========================================================
   v1.0.1 — Hero rebuilt to match the approved UI reference
   ========================================================= */
.mras-ui-hero{
  position:relative;
  min-height:520px;
  overflow:hidden;
  color:#fff;
  background:
    radial-gradient(circle at 63% 48%,rgba(25,117,255,.24),transparent 28%),
    radial-gradient(circle at 20% 45%,rgba(15,104,218,.12),transparent 34%),
    linear-gradient(105deg,#071b31 0%,#08233f 48%,#0a2a4d 100%);
  border-bottom:1px solid rgba(255,255,255,.08);
  isolation:isolate;
}
.mras-ui-hero:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-3;
  background:
    linear-gradient(rgba(117,178,230,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(117,178,230,.07) 1px,transparent 1px);
  background-size:28px 28px;
  opacity:.9;
}
.mras-ui-hero:after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(90deg,transparent 0%,rgba(2,19,34,.16) 30%,transparent 52%),
    radial-gradient(circle at 68% 38%,rgba(41,144,255,.17),transparent 23%);
  pointer-events:none;
}
.mras-ui-hero-grid-bg{
  position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,rgba(0,0,0,.12),transparent 20%,transparent 80%,rgba(0,0,0,.1));
}
.mras-ui-hero-inner{
  min-height:520px;
  display:grid;
  grid-template-columns:52% 48%;
  direction:ltr;
  position:relative;
  z-index:3;
  align-items:stretch;
}
.mras-ui-hero-copy{
  grid-column:1;
  direction:rtl;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:42px 34px 30px 0;
  position:relative;
  z-index:5;
}
.mras-ui-headline{line-height:.96;margin:0 0 17px;letter-spacing:-1.8px;font-weight:950;text-shadow:0 3px 18px rgba(0,0,0,.15)}
.mras-ui-headline span{display:block;font-size:clamp(48px,5vw,76px);color:#fff;font-weight:950}
.mras-ui-headline strong{display:block;font-size:clamp(58px,6vw,88px);color:#2291ff;font-weight:950;margin-top:7px}
.mras-ui-subtitle{font-size:18px;line-height:1.6;margin:0;color:#fff;font-weight:800}
.mras-ui-teacher-line{font-size:16px;margin:1px 0 0;color:#e7f2ff;font-weight:800}
.mras-ui-hero-actions{display:flex;gap:16px;align-items:center;justify-content:center;margin-top:24px;direction:rtl;flex-wrap:wrap}
.mras-ui-primary,.mras-ui-secondary{min-width:190px;height:52px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:14px;font-weight:900;text-decoration:none;transition:.2s ease}
.mras-ui-primary{background:linear-gradient(135deg,#1485ff,#2e9aff);color:#fff;box-shadow:0 10px 24px rgba(14,124,255,.25)}
.mras-ui-primary:hover{transform:translateY(-2px);box-shadow:0 13px 28px rgba(14,124,255,.32);color:#fff}
.mras-ui-secondary{background:#fff;color:#12243b;box-shadow:0 10px 24px rgba(0,0,0,.12)}
.mras-ui-secondary:hover{transform:translateY(-2px);color:#0f172a}
.mras-ui-play{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#0d2a46;color:#fff;font-size:10px;padding-right:1px}
.mras-ui-proof-row{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;width:100%;max-width:610px;margin-top:32px;direction:rtl}
.mras-ui-proof-row>div{display:flex;align-items:center;justify-content:center;gap:9px;text-align:right}
.mras-proof-icon{font-size:35px;color:#2c95ff;line-height:1}
.mras-ui-proof-row p{margin:0;line-height:1.25}.mras-ui-proof-row b,.mras-ui-proof-row small{display:block}.mras-ui-proof-row b{font-size:14px;color:#fff}.mras-ui-proof-row small{font-size:11px;color:#d7e6f4;margin-top:3px}

.mras-ui-hero-visual{
  grid-column:2;
  position:relative;
  min-height:520px;
  overflow:visible;
  direction:rtl;
  z-index:4;
}
.mras-ui-teacher{
  position:absolute;
  z-index:5;
  left:49%;
  bottom:-28px;
  transform:translateX(-50%);
  height:505px;
  width:auto;
  max-width:none;
  object-fit:contain;
  object-position:center bottom;
  filter:drop-shadow(0 22px 28px rgba(0,0,0,.3));
}
.mras-teacher-card{
  position:absolute;
  z-index:8;
  right:4px;
  top:250px;
  width:168px;
  background:#fff;
  color:#12243b;
  padding:12px 15px 11px;
  border-radius:3px;
  box-shadow:0 8px 18px rgba(0,0,0,.2);
  transform:rotate(-4deg);
  text-align:right;
}
.mras-teacher-card:before{content:"";position:absolute;left:-18px;top:20px;border-width:10px 18px 10px 0;border-style:solid;border-color:transparent #fff transparent transparent}
.mras-teacher-card strong{display:block;font-size:17px;line-height:1.2}.mras-teacher-card small{display:block;font-size:8px;color:#4b6177;margin-top:4px;line-height:1.4;font-weight:800}
.mras-arrow-mark{position:absolute;z-index:7;right:157px;top:220px;color:#fff;font-size:43px;transform:rotate(15deg);font-family:"Aref Ruqaa",serif}
.mras-hand-note{position:absolute;z-index:6;color:#66afff;font-family:"Aref Ruqaa",serif;line-height:1.05;text-shadow:0 1px 0 rgba(255,255,255,.06)}
.mras-hand-left{left:-12px;top:155px;font-size:31px;transform:rotate(-7deg);text-align:left;direction:ltr}
.mras-hand-right{right:2px;bottom:37px;font-size:27px;transform:rotate(-8deg);text-align:center;color:#79bdff}
.mras-ui-formulas{position:absolute;inset:0;z-index:1;pointer-events:none;color:#49a7ff;font-family:Georgia,"Times New Roman",serif}
.mras-ui-formulas .mf{position:absolute;opacity:.5;font-style:italic;text-shadow:0 0 14px rgba(50,150,255,.12)}
.mf-integral{font-size:74px;left:62%;top:24px}.mf-sin{font-size:31px;right:6%;top:106px}.mf-pi{font-size:57px;right:16%;top:98px}.mf-emc{font-size:25px;right:6%;top:185px}.mf-triangle{font-size:58px;right:12%;top:37px}.mf-root{font-size:30px;left:57%;top:115px}

@media(max-width:1100px){
  .mras-ui-headline span{font-size:52px}.mras-ui-headline strong{font-size:65px}
  .mras-ui-teacher{height:470px}.mras-teacher-card{right:-8px}.mras-hand-left{left:-22px}
}
@media(max-width:900px){
  .mras-ui-hero-inner{grid-template-columns:1fr;min-height:auto}
  .mras-ui-hero-copy{grid-column:1;order:1;padding:40px 18px 22px}
  .mras-ui-hero-visual{grid-column:1;order:2;min-height:400px}
  .mras-ui-headline span{font-size:48px}.mras-ui-headline strong{font-size:60px}
  .mras-ui-teacher{height:420px;bottom:-20px;left:50%}
  .mras-teacher-card{right:8%;top:195px}.mras-arrow-mark{right:30%;top:173px}.mras-hand-left{left:7%;top:120px}.mras-hand-right{right:6%;bottom:28px}
  .mras-ui-proof-row{max-width:620px}
}
@media(max-width:640px){
  .mras-ui-hero{min-height:auto}
  .mras-ui-hero-copy{padding:31px 12px 16px}
  .mras-ui-headline{margin-bottom:12px}.mras-ui-headline span{font-size:39px}.mras-ui-headline strong{font-size:49px;margin-top:5px}
  .mras-ui-subtitle{font-size:13px}.mras-ui-teacher-line{font-size:12px}
  .mras-ui-hero-actions{gap:10px;margin-top:18px}.mras-ui-primary,.mras-ui-secondary{min-width:145px;height:45px;font-size:11px;border-radius:11px}
  .mras-ui-proof-row{gap:7px;margin-top:22px}.mras-ui-proof-row>div{gap:4px}.mras-proof-icon{font-size:24px}.mras-ui-proof-row b{font-size:10px}.mras-ui-proof-row small{font-size:8px}
  .mras-ui-hero-visual{min-height:340px;overflow:hidden}.mras-ui-teacher{height:355px;bottom:-10px}
  .mras-teacher-card{right:4px;top:165px;width:130px;padding:9px 10px}.mras-teacher-card strong{font-size:13px}.mras-teacher-card small{font-size:7px}
  .mras-arrow-mark{right:115px;top:142px;font-size:32px}.mras-hand-left{left:4px;top:102px;font-size:22px}.mras-hand-right{right:4px;bottom:22px;font-size:20px}
  .mf-integral{font-size:52px;left:54%;top:415px}.mf-sin{font-size:21px;right:3%;top:470px}.mf-pi{font-size:41px;right:13%;top:450px}.mf-emc{font-size:17px;right:3%;top:525px}.mf-triangle{font-size:39px;right:7%;top:410px}.mf-root{font-size:20px;left:50%;top:465px}
}


/* =========================================================
   v1.0.2 — staged /courses/ archive
   ========================================================= */
.mras-courses-hub{background:#f8fbff;color:#0b1f3a}
.mras-courses-hero{padding:76px 0 62px;background:linear-gradient(135deg,#07192d 0%,#0a2b4e 55%,#0c4da2 130%);color:#fff;overflow:hidden;position:relative}
.mras-courses-hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(89,164,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(89,164,255,.08) 1px,transparent 1px);background-size:32px 32px;mask-image:linear-gradient(to bottom,#000,transparent)}
.mras-courses-hero-inner{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:30px}
.mras-courses-hero h1{font-size:clamp(34px,4.5vw,62px);margin:12px 0 10px;line-height:1.15}.mras-courses-hero p{max-width:720px;color:#d8e7fb;font-size:16px;line-height:1.85;margin:0}.mras-courses-formula{font-size:34px;color:#69b1ff;opacity:.9;white-space:nowrap;font-weight:800}
.mras-stage-jump{margin-top:-28px;position:relative;z-index:5}.mras-stage-jump-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.mras-stage-jump-grid>a{background:#fff;border:1px solid #dce9f8;border-radius:18px;box-shadow:0 16px 38px rgba(8,35,67,.09);padding:20px;display:flex;align-items:center;gap:14px;color:#0b1f3a}.mras-stage-jump-grid>a>span{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#eaf4ff;color:#1474e8;font-size:22px;font-weight:900}.mras-stage-jump-grid b,.mras-stage-jump-grid small{display:block}.mras-stage-jump-grid b{font-size:17px}.mras-stage-jump-grid small{margin-top:4px;color:#728096}
.mras-stage-section{padding:68px 0 30px}.mras-stage-section:nth-of-type(even){background:#fff}.mras-stage-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.mras-stage-head>div{display:flex;align-items:center;gap:13px}.mras-stage-number{width:54px;height:54px;border-radius:17px;background:#0b2b4c;color:#55a5ff;display:grid;place-items:center;font-size:23px;font-weight:900}.mras-stage-head h2{font-size:28px;margin:0}.mras-stage-head p{margin:4px 0 0;color:#728096}.mras-stage-head>a{border:1px solid #b8d8ff;border-radius:999px;padding:9px 15px;color:#146fda;font-weight:800}
.mras-stage-subjects{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.mras-stage-subjects>a{display:inline-flex;align-items:center;gap:8px;background:#eef6ff;border:1px solid #d7e9ff;border-radius:999px;padding:9px 13px;color:#0c3d72}.mras-stage-subjects span{color:#1677e8;font-weight:900}.mras-stage-course-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.mras-stage-empty{padding:34px;border:1px dashed #bdd7f6;border-radius:18px;background:#fff;text-align:center;color:#6b7c91}
@media(max-width:980px){.mras-stage-jump-grid{grid-template-columns:1fr}.mras-stage-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.mras-courses-formula{display:none}}
@media(max-width:640px){.mras-courses-hero{padding:52px 0 54px}.mras-courses-hero-inner{display:block}.mras-courses-hero h1{font-size:37px}.mras-courses-hero p{font-size:14px}.mras-stage-section{padding:46px 0 18px}.mras-stage-head{align-items:flex-start}.mras-stage-head h2{font-size:23px}.mras-stage-head>a{font-size:11px;padding:7px 10px}.mras-stage-course-grid{grid-template-columns:1fr!important}}


/* =========================================================
   v1.0.3 — mobile blank-screen hardening
   ========================================================= */
@media(max-width:900px){
  html,body{min-height:100%!important;background:#fff!important;overflow-x:hidden!important}
  body,.site-main,#aez-site-header,.mras-ui-hero,.aez-home-section,.aez-footer{
    visibility:visible!important;
    opacity:1!important;
  }
  .site-main{display:block!important;min-height:60vh!important;position:relative!important;z-index:1!important}
  #aez-site-header{display:block!important;position:relative!important;top:auto!important;z-index:9999!important}
  .aez-nav{display:flex!important;width:100%!important;min-height:64px!important;height:auto!important;align-items:center!important}
  .aez-menu-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-right:auto!important}
  #aezMenu{max-width:100vw!important}
  .mras-ui-hero{display:block!important;position:relative!important;min-height:0!important;background:#071a2e!important}
  .mras-ui-hero-inner{display:grid!important;width:min(1180px,92%)!important;min-height:0!important}
  .mras-ui-hero-copy,.mras-ui-hero-visual{visibility:visible!important;opacity:1!important}
  .mras-ui-hero-grid-bg,.mras-ui-formulas{pointer-events:none!important}
  img{max-width:100%!important}
}
@media(max-width:640px){
  .mras-ui-formulas{display:none!important}
  .mras-ui-hero-copy{min-height:330px!important}
  .mras-ui-hero-visual{min-height:330px!important}
  .mras-ui-teacher{max-width:none!important}
}


/* =========================================================
   v1.0.4 — force MRAS theme header/footer over legacy UAE/HFE output
   ========================================================= */
#aez-site-header.aez-header{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative!important;
  z-index:999999!important;
}
.aez-footer{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative!important;
  z-index:20!important;
}
/* Hide legacy Elementor / UAE / HFE / old-theme header and footer containers only. */
body.mras-force-theme-shell .elementor-location-header,
body.mras-force-theme-shell .elementor-location-footer,
body.mras-force-theme-shell header#masthead:not(#aez-site-header),
body.mras-force-theme-shell #masthead:not(#aez-site-header),
body.mras-force-theme-shell .hfe-header,
body.mras-force-theme-shell .hfe-footer,
body.mras-force-theme-shell .elementor-hfe-header,
body.mras-force-theme-shell .elementor-hfe-footer,
body.mras-force-theme-shell #site-header:not(#aez-site-header),
body.mras-force-theme-shell #site-footer:not(.aez-footer),
body.mras-force-theme-shell .ast-primary-header-bar,
body.mras-force-theme-shell .ast-mobile-header-wrap,
body.mras-force-theme-shell .site-primary-footer-wrap,
body.mras-force-theme-shell .site-above-footer-wrap,
body.mras-force-theme-shell .site-below-footer-wrap{
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
@media(max-width:980px){
  #aez-site-header.aez-header{display:block!important;visibility:visible!important;opacity:1!important}
  #aez-site-header .aez-nav{display:flex!important}
  .aez-footer{display:block!important}
}


/* =========================================================
   v1.0.6 — mobile viewport / blank screen / horizontal scroll fix
   ========================================================= */
@media(max-width:900px){
  html,body{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:clip!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
  }
  body *{box-sizing:border-box}
  .site-main,
  #aez-site-header,
  .aez-footer,
  .mras-ui-hero,
  .aez-home-section,
  .mras-courses-hub,
  .aez-grade-page,
  .aez-course-page{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .container,
  #aez-site-header .container,
  .mras-ui-hero-inner{
    width:92%!important;
    max-width:92%!important;
    min-width:0!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  /* Mobile header: keep only the theme shell, no desktop sizing leakage. */
  #aez-site-header.aez-header{
    position:relative!important;
    top:auto!important;
    min-height:64px!important;
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  #aez-site-header .aez-nav{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:64px!important;
    height:auto!important;
    padding:6px 0!important;
    gap:8px!important;
    direction:rtl!important;
  }
  #aez-site-header .aez-brand{
    min-width:0!important;
    max-width:calc(100% - 54px)!important;
    gap:6px!important;
    overflow:hidden!important;
  }
  #aez-site-header .aez-brand img{width:42px!important;height:42px!important;flex:0 0 42px!important}
  #aez-site-header .aez-brand-text{min-width:0!important;overflow:hidden!important}
  #aez-site-header .aez-brand-text strong{font-size:14px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #aez-site-header .aez-brand-text span{font-size:9px!important}
  #aez-site-header .aez-brand-text small{display:none!important}
  #aez-site-header .aez-actions{display:none!important}
  #aez-site-header .aez-menu-toggle{
    display:inline-flex!important;
    flex:0 0 42px!important;
    width:42px!important;height:42px!important;
    margin:0!important;
    align-items:center!important;justify-content:center!important;
  }
  #aezMenu.aez-menu{
    display:none!important;
    position:absolute!important;
    top:64px!important;
    right:4%!important;
    left:4%!important;
    width:auto!important;
    max-width:92%!important;
    min-width:0!important;
    padding:12px!important;
    gap:0!important;
    background:#fff!important;
    border:1px solid #dbe5f0!important;
    border-radius:14px!important;
    box-shadow:0 18px 40px rgba(15,23,42,.14)!important;
    z-index:9999999!important;
  }
  #aezMenu.aez-menu.open{display:flex!important;flex-direction:column!important}
  #aezMenu.aez-menu a{padding:11px 8px!important;width:100%!important}

  /* Hero: force one-column flow fully inside the viewport. */
  .mras-ui-hero{
    display:block!important;
    min-height:0!important;
    overflow:hidden!important;
    background:#071a2e!important;
    color:#fff!important;
  }
  .mras-ui-hero-inner{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  .mras-ui-hero-copy{
    order:1!important;
    width:100%!important;
    min-width:0!important;
    padding:30px 0 18px!important;
    text-align:center!important;
    align-items:center!important;
  }
  .mras-ui-headline{letter-spacing:-1px!important}
  .mras-ui-headline span{font-size:clamp(34px,10vw,42px)!important}
  .mras-ui-headline strong{font-size:clamp(43px,13vw,54px)!important}
  .mras-ui-subtitle{font-size:13px!important;max-width:100%!important}
  .mras-ui-teacher-line{font-size:12px!important}
  .mras-ui-hero-actions{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:16px!important}
  .mras-ui-primary,.mras-ui-secondary{min-width:0!important;width:100%!important;height:44px!important;font-size:10px!important;padding:8px!important}
  .mras-ui-proof-row{width:100%!important;max-width:100%!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;margin-top:18px!important}
  .mras-ui-proof-row>div{min-width:0!important;gap:3px!important;flex-direction:column!important;text-align:center!important}
  .mras-proof-icon{font-size:22px!important}.mras-ui-proof-row b{font-size:9px!important}.mras-ui-proof-row small{font-size:7px!important}
  .mras-ui-hero-visual{
    order:2!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:320px!important;
    height:320px!important;
    overflow:hidden!important;
    position:relative!important;
  }
  .mras-ui-teacher{
    left:50%!important;
    right:auto!important;
    bottom:-8px!important;
    top:auto!important;
    transform:translateX(-50%)!important;
    height:332px!important;
    width:auto!important;
    max-width:92%!important;
    object-fit:contain!important;
  }
  .mras-teacher-card,.mras-arrow-mark,.mras-hand-note,.mras-ui-formulas{display:none!important}

  /* All home grids must collapse cleanly and never force page width. */
  .aez-features-ten,
  .aez-about-home-grid,
  .mras-grade-groups,
  .aez-four-courses,
  .aez-bottom-grid,
  .aez-footer-grid{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .aez-features-ten{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .aez-about-home-grid{grid-template-columns:1fr!important}
  .mras-grade-groups{grid-template-columns:1fr!important}
  .aez-four-courses{grid-template-columns:1fr!important}
  .aez-bottom-grid{grid-template-columns:1fr!important}
  .aez-footer-grid{grid-template-columns:1fr!important}
  .aez-course-card,.aez-feature,.mras-grade-group{min-width:0!important;max-width:100%!important}
  .aez-course-card img,.aez-course-thumb img{width:100%!important;max-width:100%!important}

  /* Defensive cleanup for old builders / stale wrappers. */
  .elementor,.elementor-section,.elementor-container,.elementor-widget-wrap,
  .ast-container,.site-content,.content-area,.site-content .ast-container{
    max-width:100%!important;
    min-width:0!important;
  }
}
@media(max-width:420px){
  .mras-ui-hero-actions{grid-template-columns:1fr!important}
  .aez-features-ten{grid-template-columns:1fr!important}
  .mras-ui-proof-row{grid-template-columns:1fr 1fr 1fr!important}
}


/* =========================================================
   v1.0.7 — hard mobile horizontal-overflow containment
   ========================================================= */
@media (max-width: 900px) {
  html {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    position: relative !important;
  }

  body > * ,
  #page,
  .site,
  .site-main,
  main,
  header,
  footer,
  section,
  .aez-header,
  .aez-footer,
  .mras-ui-hero,
  .aez-home-section,
  .mras-courses-hub,
  .aez-grade-page,
  .aez-course-page,
  .tutor-wrap,
  .tutor-container {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* The old theme had multiple absolute decorations extending outside the viewport. */
  .aez-ref-side-note,
  .aez-ref-microscope,
  .aez-hero-dna,
  .aez-hero-microscope,
  .aez-side-note,
  .aez-science-doodle,
  .mras-ui-formulas,
  .mras-hand-note,
  .mras-arrow-mark,
  .mras-teacher-card {
    display: none !important;
  }

  /* Keep all main page wrappers clipped, while the mobile nav can still render normally. */
  .site-main,
  .mras-ui-hero,
  .aez-home-section,
  .mras-courses-hub,
  .aez-grade-page,
  .aez-course-page,
  .aez-footer {
    overflow-x: hidden !important;
  }

  #aez-site-header.aez-header {
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  /* Prevent legacy 92% + extra padding rules from producing >100% boxes. */
  .container,
  #aez-site-header .container,
  .mras-ui-hero-inner,
  .mras-courses-hero .container,
  .mras-stage-section .container,
  .aez-grade-page .container,
  .aez-course-page .container,
  .tutor-container {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Subject/grade hero had a desktop 250px left padding in older CSS. */
  .mras-subject-hero .container,
  .mras-grade-hub-page .aez-grade-page-hero .container {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 180px !important;
  }

  /* Do not let any responsive image/absolute teacher generate layout width. */
  img,
  svg,
  video,
  iframe,
  canvas {
    max-width: 100% !important;
  }

  .mras-ui-hero-visual {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    contain: layout paint !important;
  }

  .mras-ui-teacher {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    max-width: 90% !important;
    height: 320px !important;
    width: auto !important;
  }

  .aez-about-photo,
  .mras-about-photo,
  .aez-final-cta,
  .mras-math-panel,
  .aez-course-card,
  .mras-grade-group,
  .mras-subject-card {
    overflow: hidden !important;
    max-width: 100% !important;
  }

  /* Grids/flex children can otherwise keep intrinsic widths and widen the page. */
  .aez-nav > *,
  .aez-menu > *,
  .mras-ui-hero-inner > *,
  .mras-ui-hero-actions > *,
  .mras-ui-proof-row > *,
  .aez-features-ten > *,
  .aez-about-home-grid > *,
  .mras-grade-groups > *,
  .aez-four-courses > *,
  .aez-bottom-grid > *,
  .aez-footer-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Old builder remnants and cached UAE/Elementor wrappers. */
  .elementor,
  .elementor-section,
  .elementor-container,
  .elementor-widget,
  .elementor-widget-wrap,
  .e-con,
  .e-con-inner,
  .ast-container,
  .site-content,
  .content-area,
  .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 480px) {
  .container,
  #aez-site-header .container,
  .mras-ui-hero-inner,
  .mras-courses-hero .container,
  .mras-stage-section .container,
  .aez-grade-page .container,
  .aez-course-page .container,
  .tutor-container {
    width: calc(100% - 22px) !important;
    max-width: calc(100% - 22px) !important;
  }
}


/* =========================================================
   v1.0.8 — always-visible native theme header/footer
   ========================================================= */
#aez-site-header.aez-header,
.mras-shell-header,
.aez-footer,
.mras-shell-footer{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  transform:none!important;
  clip:auto!important;
  clip-path:none!important;
}
#aez-site-header.aez-header{position:relative!important;z-index:999999!important;width:100%!important;max-width:100%!important}
.aez-footer{position:relative!important;z-index:30!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important}
body.mras-force-theme-shell > #aez-site-header,
body.mras-force-theme-shell > .aez-footer{display:block!important}
@media(max-width:900px){
  #aez-site-header.aez-header{overflow:visible!important}
  .aez-footer{overflow:hidden!important}
}


/* v1.0.9 — active nav underline only on the current page */
#aez-site-header .aez-menu a[href$="/"]{color:#252b35!important}
#aez-site-header .aez-menu a[href$="/"]:after{width:0!important}
#aez-site-header .aez-menu .current-menu-item>a,
#aez-site-header .aez-menu .current_page_item>a{color:var(--aez-orange)!important}
#aez-site-header .aez-menu .current-menu-item>a:after,
#aez-site-header .aez-menu .current_page_item>a:after{width:100%!important}
body.home #aez-site-header .aez-menu li:first-child>a{color:var(--aez-orange)!important}
body.home #aez-site-header .aez-menu li:first-child>a:after{width:100%!important}


/* =========================================================
   v1.0.10 — compact mobile features + clean About crop + proper 16:9 defaults
   ========================================================= */
@media(max-width:640px){
  /* Feature cards: compact 3-per-row to reduce excessive scrolling. */
  .aez-features-section{padding-top:30px!important;padding-bottom:36px!important}
  .aez-features-section .aez-section-head{margin-bottom:16px!important}
  .aez-features-ten{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
  }
  .aez-features-ten .aez-feature{
    min-height:94px!important;
    padding:9px 5px!important;
    border-radius:12px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
  }
  .aez-features-ten .aez-feature .icon{
    width:26px!important;
    height:26px!important;
    font-size:15px!important;
    margin:0 auto 4px!important;
  }
  .aez-features-ten .aez-feature h3{
    min-height:0!important;
    margin:0 0 3px!important;
    font-size:10px!important;
    line-height:1.3!important;
  }
  .aez-features-ten .aez-feature p{
    margin:0!important;
    font-size:7.5px!important;
    line-height:1.35!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }

  /* About portrait: circle becomes the clipping mask, so trousers cannot escape it. */
  .aez-about-home-grid{gap:14px!important}
  .mras-about-photo.aez-about-photo{
    width:184px!important;
    height:184px!important;
    margin:12px auto 4px!important;
    border-radius:50%!important;
    overflow:hidden!important;
    padding:0!important;
    position:relative!important;
  }
  .mras-about-photo .aez-about-circle{
    position:absolute!important;
    inset:0!important;
    width:184px!important;
    height:184px!important;
    transform:none!important;
    border-radius:50%!important;
    background:linear-gradient(145deg,#dbeafe,#bfdbfe)!important;
  }
  .mras-about-photo img{
    position:absolute!important;
    left:50%!important;
    right:auto!important;
    bottom:-4px!important;
    width:auto!important;
    height:188px!important;
    max-width:none!important;
    transform:translateX(-50%)!important;
    object-fit:contain!important;
    object-position:center bottom!important;
  }
  .mras-about-photo strong{display:none!important}

  /* Course thumbnails keep the full designed 16:9 cover instead of zooming into the shirt. */
  .aez-four-courses .aez-course-thumb,
  .aez-grade-course-card .aez-course-thumb,
  .tutor-course-thumbnail{
    aspect-ratio:16/9!important;
    overflow:hidden!important;
    background:#0b2448!important;
  }
  .aez-four-courses .aez-course-thumb img,
  .aez-grade-course-card .aez-course-thumb img,
  .tutor-course-thumbnail img{
    width:100%!important;
    height:100%!important;
    aspect-ratio:16/9!important;
    object-fit:cover!important;
    object-position:center!important;
    display:block!important;
  }
}
@media(min-width:430px) and (max-width:640px){
  .aez-features-ten{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

/* Desktop/tablet course covers also use the exact 16:9 artwork. */
.aez-four-courses .aez-course-thumb,
.aez-grade-course-card .aez-course-thumb,
.tutor-course-thumbnail{aspect-ratio:16/9!important;background:#0b2448!important;overflow:hidden!important}
.aez-four-courses .aez-course-thumb img,
.aez-grade-course-card .aez-course-thumb img,
.tutor-course-thumbnail img{width:100%!important;height:100%!important;aspect-ratio:16/9!important;object-fit:cover!important;object-position:center!important}


/* =========================================================
   v1.0.11 — custom student dashboard
   ========================================================= */
.mras-student-dashboard{background:#f7faff;min-height:70vh;padding-bottom:70px}
.mras-dashboard-hero{background:linear-gradient(135deg,#071c35 0%,#0b315b 56%,#135ca8 100%);color:#fff;position:relative;overflow:hidden}
.mras-dashboard-hero:before{content:"π   ∑   √x   sin θ";position:absolute;left:4%;top:18%;font-size:72px;letter-spacing:30px;color:rgba(255,255,255,.055);font-family:Georgia,serif;white-space:nowrap;direction:ltr}
.mras-dashboard-hero-inner{min-height:240px;display:flex;align-items:center;justify-content:space-between;gap:28px;position:relative;z-index:2}
.mras-dashboard-kicker{display:inline-flex;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.08);border-radius:999px;padding:5px 12px;font-size:12px;font-weight:800}
.mras-dashboard-hero h1{font-size:38px;margin:12px 0 4px;line-height:1.2}.mras-dashboard-hero p{margin:0;color:#d7e7f7;font-size:15px}
.mras-dashboard-grade-card{min-width:270px;background:#fff;color:#0b1e34;border-radius:20px;padding:20px 22px;box-shadow:0 18px 38px rgba(0,0,0,.18)}
.mras-dashboard-grade-card span{display:block;font-size:11px;color:#6b7d91;font-weight:800}.mras-dashboard-grade-card strong{display:block;font-size:21px;margin:3px 0 10px}.mras-dashboard-grade-card a{color:#2563eb;font-weight:900;font-size:12px}
.mras-dashboard-section{padding:46px 0 0}.mras-dashboard-latest{padding-top:55px}
.mras-dashboard-section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:20px}.mras-dashboard-section-head span{color:#2563eb;font-size:11px;font-weight:900}.mras-dashboard-section-head h2{font-size:27px;margin:2px 0 0}.mras-dashboard-section-head>b{background:#eaf3ff;color:#2563eb;border-radius:999px;padding:6px 12px;font-size:11px}.mras-dashboard-section-head>a{color:#2563eb;font-size:12px;font-weight:900}
.mras-dashboard-courses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.mras-dashboard-course-card{background:#fff;border:1px solid #dbe6f2;border-radius:18px;overflow:hidden;box-shadow:0 10px 26px rgba(11,30,52,.045);min-width:0}
.mras-dashboard-course-thumb{display:block;aspect-ratio:16/8.5;overflow:hidden;background:#eaf2ff}.mras-dashboard-course-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.mras-dashboard-course-body{padding:15px}.mras-dashboard-course-category{display:inline-flex;background:#eef5ff;color:#2563eb;border-radius:999px;padding:4px 9px;font-size:9px;font-weight:900}.mras-dashboard-course-body h3{font-size:16px;line-height:1.5;margin:9px 0 14px;min-height:48px}.mras-dashboard-course-body h3 a{color:#0c2038}
.mras-dashboard-course-footer{border-top:1px solid #edf1f5;padding-top:11px;display:flex;align-items:center;justify-content:space-between;gap:8px}.mras-dashboard-course-footer span{font-size:10px;color:#7b8897;font-weight:800}.mras-dashboard-course-footer span.is-active{color:#16834b}.mras-dashboard-course-footer a{font-size:10px;color:#2563eb;font-weight:900;white-space:nowrap}
.mras-dashboard-empty{background:#fff;border:1px dashed #bfd2e8;border-radius:20px;padding:34px;text-align:center}.mras-dashboard-empty>span{font-size:42px}.mras-dashboard-empty h3{font-size:19px;margin:8px 0 3px}.mras-dashboard-empty p{color:#748296;margin:0 0 15px}
@media(max-width:900px){.mras-dashboard-hero-inner{min-height:0;padding:34px 0;flex-direction:column;align-items:stretch}.mras-dashboard-grade-card{min-width:0}.mras-dashboard-courses{grid-template-columns:repeat(2,minmax(0,1fr))}.mras-dashboard-hero:before{font-size:42px}}
@media(max-width:560px){.mras-dashboard-hero h1{font-size:28px}.mras-dashboard-section{padding-top:32px}.mras-dashboard-section-head{align-items:center}.mras-dashboard-section-head h2{font-size:22px}.mras-dashboard-courses{grid-template-columns:1fr}.mras-dashboard-course-thumb{aspect-ratio:16/8}.mras-dashboard-empty{padding:26px 18px}}


/* =========================================================
   v1.0.12 — Mr Ahmed Salah code-only checkout
   ========================================================= */
.aez-code-checkout-page{min-height:68vh;padding:72px 16px;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);display:flex;justify-content:center;align-items:flex-start}
.aez-code-checkout-card{width:min(620px,100%);background:#fff;border:1px solid #dbe5f0;border-radius:26px;padding:38px;box-shadow:0 22px 60px rgba(15,23,42,.08);text-align:center;direction:rtl}
.aez-code-checkout-icon{width:68px;height:68px;border-radius:22px;background:linear-gradient(135deg,#dbeafe,#eff6ff);display:grid;place-items:center;margin:0 auto 12px;font-size:31px}
.mras-code-kicker{display:inline-block;color:#2563eb;background:#eff6ff;border:1px solid #bfdbfe;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:900}
.aez-code-checkout-card h1{font-size:34px;line-height:1.2;margin:12px 0 8px;color:#0f172a}.aez-code-checkout-lead{color:#64748b;line-height:1.8;font-size:15px;margin:0 auto 24px;max-width:470px}
.mras-code-course-list{display:grid;gap:10px;margin:0 0 18px}.mras-code-course{display:flex;align-items:center;gap:12px;text-align:right;border:1px solid #e2e8f0;background:#f8fbff;border-radius:16px;padding:9px}.mras-code-course img{width:82px;height:54px;object-fit:cover;border-radius:11px}.mras-code-course div{min-width:0}.mras-code-course small,.mras-code-course strong{display:block}.mras-code-course small{color:#64748b;font-size:10px}.mras-code-course strong{font-size:14px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aez-code-field-row{display:grid;grid-template-columns:1fr auto;gap:10px}.aez-code-field-row input{width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:14px;padding:14px 16px;font:inherit;font-weight:800;text-align:center;direction:ltr;outline:none}.aez-code-field-row input:focus{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.10)}.aez-code-field-row button{border:0;border-radius:14px;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;padding:0 24px;font:inherit;font-weight:900;cursor:pointer}
.aez-code-message{border-radius:13px;padding:11px 14px;margin:0 0 14px;font-size:13px;font-weight:800}.aez-code-message.error{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}.aez-code-message.success{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}.aez-code-checkout-note{margin:16px 0 0;color:#64748b;font-size:12px}
@media(max-width:640px){.aez-code-checkout-page{padding:38px 12px}.aez-code-checkout-card{padding:25px 16px;border-radius:20px}.aez-code-checkout-card h1{font-size:28px}.aez-code-field-row{grid-template-columns:1fr}.aez-code-field-row button{height:48px}.mras-code-course img{width:70px;height:48px}}


/* =========================================================
   v1.0.13 — mobile hamburger fixed to the physical left edge
   ========================================================= */
@media (max-width: 980px) {
  #aez-site-header .aez-nav{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    padding-left:52px!important;
    padding-right:0!important;
  }

  #aez-site-header .aez-brand{
    margin:0!important;
    margin-left:auto!important;
    flex:0 1 auto!important;
  }

  #aez-site-header .aez-menu-toggle{
    display:inline-flex!important;
    position:absolute!important;
    left:0!important;
    right:auto!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:42px!important;
    height:42px!important;
    margin:0!important;
    z-index:10000000!important;
    align-items:center!important;
    justify-content:center!important;
  }

  #aezMenu.aez-menu{
    top:64px!important;
  }
}

@media (max-width: 640px) {
  #aez-site-header .aez-nav{
    padding-left:50px!important;
  }

  #aez-site-header .aez-menu-toggle{
    left:0!important;
    right:auto!important;
    width:40px!important;
    height:40px!important;
  }
}


/* =========================================================
   v1.0.14 — homepage order + mobile About portrait correction
   ========================================================= */
@media (max-width: 640px) {
  .aez-about-home{
    padding-top:34px!important;
    padding-bottom:38px!important;
  }

  .aez-about-home .aez-home-title{
    margin-bottom:16px!important;
    font-size:26px!important;
    line-height:1.35!important;
  }

  .aez-about-home-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:16px!important;
  }

  .mras-about-photo.aez-about-photo{
    position:relative!important;
    width:220px!important;
    height:220px!important;
    min-height:220px!important;
    margin:0 auto!important;
    padding:0!important;
    overflow:hidden!important;
    border-radius:50%!important;
    display:block!important;
  }

  .mras-about-photo .aez-about-circle{
    position:absolute!important;
    inset:0!important;
    width:220px!important;
    height:220px!important;
    border-radius:50%!important;
    transform:none!important;
    margin:0!important;
    background:linear-gradient(145deg,#dbeafe,#bae6fd)!important;
  }

  .mras-about-photo img{
    position:absolute!important;
    left:50%!important;
    right:auto!important;
    bottom:0!important;
    top:auto!important;
    transform:translateX(-50%)!important;
    width:auto!important;
    height:216px!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    margin:0!important;
    padding:0!important;
    filter:drop-shadow(0 8px 12px rgba(15,23,42,.12))!important;
  }

  .mras-about-photo strong{
    display:none!important;
  }

  .aez-about-text{
    text-align:center!important;
    padding:0 2px!important;
  }

  .aez-about-badges{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }

  .aez-mission-card{
    margin-top:2px!important;
  }
}


/* =========================================================
   v1.0.16 — mobile menu account item + new default thumbnail
   ========================================================= */
.aez-menu-mobile-only{display:none!important}
@media (max-width:980px){
  .aez-menu .aez-menu-mobile-only,
  .aez-menu li.aez-menu-mobile-only{display:block!important}
  .aez-menu li.aez-menu-mobile-only>a,
  .aez-menu > a.aez-menu-mobile-only{
    color:var(--aez-blue)!important;
    font-weight:900!important;
    background:#eef6ff!important;
    border:1px solid rgba(59,130,246,.18)!important;
    border-radius:14px!important;
    margin-top:6px!important;
  }
}
.tutor-course-thumbnail,
.aez-course-thumb,
.mras-course-thumb{overflow:hidden!important}
.tutor-course-thumbnail img,
.aez-course-thumb img,
.mras-course-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
}


/* v1.0.17 — cache-busted branded default course thumbnail */
.aez-course-thumb,
.tutor-course-thumbnail,
.mras-course-thumb{
  aspect-ratio:16/9!important;
  background:#eaf2ff!important;
}
.aez-course-thumb img,
.tutor-course-thumbnail img,
.mras-course-thumb img{
  width:100%!important;
  height:100%!important;
  aspect-ratio:16/9!important;
  object-fit:cover!important;
  object-position:center center!important;
  display:block!important;
}


/* =========================================================
   v1.0.18 — simplified paid-course UI
   ========================================================= */
.aez-course-page .tutor-course-price,
.aez-course-page [class*="course-price"],
.aez-course-page .price,
.aez-course-page .woocommerce-Price-amount,
.aez-course-page .tutor-course-details-widget,
.aez-course-page .tutor-course-details-widget-list,
.aez-course-page .tutor-course-details-widget-col-2,
.aez-course-page .tutor-course-complete-form,
.aez-course-page .tutor-btn-complete-course,
.aez-course-page [class*="complete-course"],
.aez-course-page [class*="certificate"]{
  display:none!important;
}

/* Keep the purchase/enrollment action visually dominant. */
.aez-course-page .aez-entry-card .tutor-btn,
.aez-course-page .aez-entry-card a.button,
.aez-course-page .aez-entry-card button{
  width:100%!important;
}


/* v1.0.19 — student dashboard logout */
.mras-dashboard-topbar{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  padding-top:22px;
  margin-bottom:6px;
}
.mras-dashboard-logout{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 18px;
  border-radius:12px;
  background:#fff;
  border:1px solid #dbe6f3;
  box-shadow:0 6px 18px rgba(15,23,42,.06);
  font-weight:900;
  color:#b42318;
  text-decoration:none;
}
.mras-dashboard-logout:hover{
  background:#fff5f5;
  border-color:#fecaca;
  color:#991b1b;
}
@media(max-width:640px){
  .mras-dashboard-topbar{
    padding-top:14px;
  }
  .mras-dashboard-logout{
    width:100%;
  }
}


/* =========================================================
   v1.0.21 — compact red logout chip in student account
   ========================================================= */
.mras-dashboard-topbar{
  display:flex!important;
  justify-content:flex-start!important;
  align-items:center!important;
  padding-top:16px!important;
  margin-bottom:8px!important;
}
.mras-dashboard-logout{
  width:auto!important;
  min-width:0!important;
  min-height:34px!important;
  padding:6px 11px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  border-radius:10px!important;
  background:#fff!important;
  border:1px solid #ef4444!important;
  box-shadow:0 3px 10px rgba(239,68,68,.08)!important;
  color:#dc2626!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:900!important;
  text-decoration:none!important;
  flex:0 0 auto!important;
}
.mras-dashboard-logout:before{
  content:"↪";
  font-size:13px;
  line-height:1;
}
.mras-dashboard-logout:hover{
  background:#fff5f5!important;
  border-color:#dc2626!important;
  color:#b91c1c!important;
}
@media(max-width:640px){
  .mras-dashboard-topbar{
    padding-top:12px!important;
    margin-bottom:6px!important;
  }
  .mras-dashboard-logout{
    width:auto!important;
    min-height:32px!important;
    padding:6px 10px!important;
    font-size:11.5px!important;
  }
}


/* =========================================================
   v1.0.22 — logout lives only inside mobile menu
   ========================================================= */
.mras-dashboard-topbar,
.mras-dashboard-logout{
  display:none!important;
}

@media(max-width:980px){
  #aezMenu .aez-mobile-logout,
  #aezMenu li.aez-mobile-logout{
    display:block!important;
  }

  #aezMenu .aez-mobile-logout,
  #aezMenu li.aez-mobile-logout > a{
    color:#dc2626!important;
    background:#fff5f5!important;
    border:1px solid #fecaca!important;
    border-radius:14px!important;
    font-weight:900!important;
  }

  #aezMenu .aez-mobile-logout:hover,
  #aezMenu li.aez-mobile-logout > a:hover{
    color:#b91c1c!important;
    background:#fee2e2!important;
    border-color:#fca5a5!important;
  }
}


/* v1.0.23 — account/logout items are mobile-menu only */
@media(min-width:981px){
  #aezMenu .aez-menu-mobile-only,
  #aezMenu li.aez-menu-mobile-only{
    display:none!important;
  }
}


/* =========================================================
   v1.0.24 — activation selected-course remove button + mobile overflow fix
   ========================================================= */
.mras-remove-selected-course{
  position:absolute!important;
  top:8px!important;
  left:8px!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  border-radius:50%!important;
  border:1px solid #fecaca!important;
  background:#fff!important;
  color:#dc2626!important;
  font-size:20px!important;
  line-height:1!important;
  font-weight:900!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  cursor:pointer!important;
  z-index:5!important;
  box-shadow:0 3px 10px rgba(220,38,38,.08)!important;
}
.mras-remove-selected-course:hover{
  background:#fee2e2!important;
  border-color:#fca5a5!important;
}

/* Any "selected course / course that will open" card must stay inside viewport. */
.mras-selected-course,
.mras-selected-course-item,
.mras-activation-course,
.mras-checkout-course,
.selected-course,
.selected-course-item,
.mras-code-checkout,
.mras-code-checkout-card,
.mras-course-activation-card{
  position:relative!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}

/* Course names: wrap instead of stretching page horizontally. */
.mras-selected-course *,
.mras-selected-course-item *,
.mras-activation-course *,
.mras-checkout-course *,
.selected-course *,
.selected-course-item *,
.mras-code-checkout *,
.mras-code-checkout-card *,
.mras-course-activation-card *{
  min-width:0!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  white-space:normal!important;
}

@media(max-width:640px){
  .mras-code-checkout,
  .mras-code-checkout-card,
  .mras-course-activation-card,
  .mras-selected-course,
  .mras-selected-course-item,
  .mras-activation-course,
  .mras-checkout-course,
  .selected-course,
  .selected-course-item{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  .mras-remove-selected-course{
    top:7px!important;
    left:7px!important;
    width:26px!important;
    height:26px!important;
    min-width:26px!important;
    font-size:18px!important;
  }
}


/* =========================================================
   v1.0.25 — exact mobile containment for activation page
   ========================================================= */
.aez-code-checkout-page{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow-x:hidden!important;
}

.aez-code-checkout-card{
  width:min(620px, calc(100% - 24px))!important;
  max-width:calc(100% - 24px)!important;
  min-width:0!important;
  box-sizing:border-box!important;
  margin-left:auto!important;
  margin-right:auto!important;
  overflow:hidden!important;
}

.mras-code-course-list{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}

.mras-code-course{
  position:relative!important;
  display:grid!important;
  grid-template-columns:70px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  padding:9px 42px 9px 9px!important;
}

.mras-code-course img{
  width:70px!important;
  height:48px!important;
  max-width:70px!important;
  flex:none!important;
  object-fit:cover!important;
}

.mras-code-course-copy,
.mras-code-course > div{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}

.mras-code-course small,
.mras-code-course strong{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}

.mras-code-course strong{
  line-height:1.55!important;
}

.mras-code-course .mras-remove-selected-course{
  position:absolute!important;
  top:50%!important;
  right:8px!important;
  left:auto!important;
  transform:translateY(-50%)!important;
}

.aez-code-form,
.aez-code-field-row,
.aez-code-field-row input,
.aez-code-field-row button{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

@media(max-width:640px){
  .aez-code-checkout-page{
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .aez-code-checkout-card{
    width:100%!important;
    max-width:100%!important;
    padding:22px 12px!important;
    margin:0!important;
  }

  .mras-code-course{
    grid-template-columns:58px minmax(0,1fr)!important;
    padding:8px 38px 8px 8px!important;
    gap:8px!important;
  }

  .mras-code-course img{
    width:58px!important;
    height:42px!important;
    max-width:58px!important;
  }

  .mras-code-course strong{
    font-size:12px!important;
  }

  .mras-code-course .mras-remove-selected-course{
    right:6px!important;
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    font-size:17px!important;
  }
}


/* =========================================================
   v1.0.26 — custom frontend platform admin dashboard
   ========================================================= */
.mras-platform-admin{background:#f5f8fc;min-height:75vh;padding-bottom:70px}
.mras-admin-hero{background:linear-gradient(135deg,#071a38,#0f3d7a);color:#fff;padding:54px 0}
.mras-admin-hero h1{font-size:clamp(30px,5vw,50px);margin:7px 0 10px}
.mras-admin-hero p{max-width:720px;color:#d8e7fb}
.mras-admin-stats{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.mras-admin-stats>div{min-width:145px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);padding:14px 18px;border-radius:16px}
.mras-admin-stats b,.mras-admin-stats span{display:block}.mras-admin-stats b{font-size:24px}
.mras-admin-wrap{padding-top:24px}
.mras-admin-nav{display:flex;gap:8px;flex-wrap:wrap;position:sticky;top:8px;z-index:20;background:rgba(245,248,252,.92);backdrop-filter:blur(10px);padding:8px;border-radius:16px;margin-bottom:22px}
.mras-admin-nav a,.mras-admin-secondary{background:#fff;border:1px solid #dbe5f0;border-radius:11px;padding:9px 13px;font-weight:900}
.mras-admin-section{margin:26px 0 40px;scroll-margin-top:90px}
.mras-admin-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.mras-admin-section-head span{font-size:12px;color:#2470d8;font-weight:900}.mras-admin-section-head h2{margin:4px 0 0}
.mras-admin-two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.mras-admin-card{background:#fff;border:1px solid #e0e8f1;border-radius:20px;padding:20px;box-shadow:0 8px 30px rgba(15,23,42,.05)}
.mras-admin-card h3{margin-top:0}
.mras-admin-card label{display:block;font-weight:800;margin:12px 0 6px}
.mras-admin-card input:not([type=checkbox]):not([type=file]),.mras-admin-card select,.mras-admin-card textarea{width:100%;max-width:100%;box-sizing:border-box;border:1px solid #d9e3ef;border-radius:11px;padding:11px;background:#fff}
.mras-admin-primary{border:0;border-radius:12px;background:#1769d2;color:#fff;padding:11px 18px;font-weight:900;margin-top:15px;cursor:pointer}
.mras-admin-course-form{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.mras-admin-field.full{grid-column:1/-1}
.mras-admin-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mras-admin-categories label{margin:0;background:#f7faff;border:1px solid #e5edf6;border-radius:10px;padding:9px}
.mras-admin-course-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.mras-admin-course-list article{display:grid;grid-template-columns:92px minmax(0,1fr) auto;align-items:center;gap:10px;background:#fff;border:1px solid #e3eaf2;border-radius:15px;padding:9px;min-width:0}
.mras-admin-course-list img{width:92px;height:58px;object-fit:cover;border-radius:10px}.mras-admin-course-list strong,.mras-admin-course-list small{display:block;overflow-wrap:anywhere}.mras-admin-course-list small{color:#718096}
.mras-admin-table-wrap{overflow:auto;background:#fff;border:1px solid #e1e8f0;border-radius:18px}
.mras-admin-table{width:100%;border-collapse:collapse;min-width:850px}
.mras-admin-table th,.mras-admin-table td{text-align:right;padding:12px;border-bottom:1px solid #edf1f5;vertical-align:middle}.mras-admin-table th{background:#f8fbff}.mras-admin-table td small{display:block;color:#7b8794;margin-top:3px}
.mras-admin-table a{color:#1769d2;font-weight:900}
.mras-admin-notice{padding:13px 15px;border-radius:12px;margin-bottom:14px;font-weight:800}.mras-admin-notice.success{background:#ecfdf3;color:#166534;border:1px solid #bbf7d0}.mras-admin-notice.error{background:#fff1f2;color:#b42318;border:1px solid #fecdd3}

@media(max-width:800px){
  .mras-admin-hero{padding:36px 0}.mras-admin-two-col{grid-template-columns:1fr}
  .mras-admin-course-form{grid-template-columns:1fr}.mras-admin-field.full{grid-column:auto}
  .mras-admin-categories{grid-template-columns:1fr 1fr}.mras-admin-course-list{grid-template-columns:1fr}
}
@media(max-width:520px){
  .mras-admin-categories{grid-template-columns:1fr}
  .mras-admin-course-list article{grid-template-columns:70px minmax(0,1fr) auto}
  .mras-admin-course-list img{width:70px;height:48px}
}


/* v1.0.29 — video URL field in custom course editor */
.mras-admin-help{
  display:block;
  margin-top:6px;
  color:#6b7b8f;
  font-size:12px;
  line-height:1.6;
}
.mras-admin-course-form input[name="course_video_url"]{
  direction:ltr;
  text-align:left;
}


/* v1.0.30 — access-code generator */
.mras-generated-codes-card{min-width:0}
.mras-code-batch-meta{background:#f7faff;border:1px solid #e1eaf5;border-radius:11px;padding:10px 12px;margin:8px 0 10px;font-size:13px}
.mras-generated-codes{width:100%!important;max-width:100%!important;box-sizing:border-box!important;direction:ltr!important;text-align:left!important;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;font-weight:800!important;letter-spacing:.5px!important;line-height:1.8!important;background:#071a38!important;color:#dff1ff!important;border:0!important;border-radius:13px!important;padding:13px!important;resize:vertical!important}
.mras-copy-codes{margin-top:10px!important;cursor:pointer!important}


/* =========================================================
   v1.0.34 — Tutor LMS video ±4s controls
   ========================================================= */
.aez-course-video-wrap,
.mras-video-seek-host{
  position:relative!important;
}

.mras-video-seek-controls{
  direction:ltr!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:12px!important;
  padding:10px 12px!important;
  box-sizing:border-box!important;
  background:#0d1724!important;
  border-top:1px solid rgba(255,255,255,.08)!important;
}

.mras-video-seek-btn{
  width:62px!important;
  height:38px!important;
  min-width:62px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  padding:0 9px!important;
  border-radius:10px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  cursor:pointer!important;
  font-family:inherit!important;
  box-shadow:none!important;
  transition:.18s ease!important;
}

.mras-video-seek-btn:hover{
  background:rgba(255,255,255,.16)!important;
  transform:translateY(-1px)!important;
}

.mras-video-seek-btn:active{
  transform:translateY(0)!important;
}

.mras-video-seek-btn .mras-seek-icon{
  font-size:18px!important;
  line-height:1!important;
}
.mras-video-seek-btn b{
  font-size:14px!important;
  line-height:1!important;
}
.mras-video-seek-btn small{
  font-size:9px!important;
  opacity:.8!important;
  line-height:1!important;
}

.mras-video-seek-label{
  color:#cbd5e1!important;
  font-size:11px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}

@media(max-width:640px){
  .mras-video-seek-controls{
    gap:8px!important;
    padding:8px!important;
  }
  .mras-video-seek-btn{
    width:58px!important;
    min-width:58px!important;
    height:36px!important;
  }
  .mras-video-seek-label{
    font-size:10px!important;
  }
}


/* =========================================================
   v1.0.35 — generated coupon usage details
   ========================================================= */
.mras-generated-code-table-wrap{
  width:100%;
  overflow:auto;
  margin-top:12px;
  margin-bottom:12px;
  border:1px solid #e3eaf2;
  border-radius:14px;
  background:#fff;
}
.mras-generated-code-table{
  width:100%;
  border-collapse:collapse;
  min-width:620px;
}
.mras-generated-code-table th,
.mras-generated-code-table td{
  text-align:right;
  padding:10px 12px;
  border-bottom:1px solid #edf2f7;
  vertical-align:top;
}
.mras-generated-code-table th{
  background:#f8fbff;
  font-size:12px;
  color:#4b5b70;
}
.mras-generated-code-table code{
  direction:ltr;
  display:inline-block;
  background:#f4f7fb;
  border:1px solid #e1e8f0;
  padding:4px 7px;
  border-radius:8px;
  font-weight:900;
}
.mras-code-status{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.mras-code-status.used{
  background:#fff1f2;
  color:#b42318;
  border:1px solid #fecdd3;
}
.mras-code-status.unused{
  background:#ecfdf3;
  color:#166534;
  border:1px solid #bbf7d0;
}
.mras-code-used-by strong,
.mras-code-used-by small{
  display:block;
}
.mras-code-used-by small{
  color:#6f7f92;
  margin-top:2px;
  overflow-wrap:anywhere;
}
.mras-code-unused-label{
  color:#9aa6b2;
}


/* v1.0.36 — seek button feedback */
.mras-video-seek-btn.is-loading{
  opacity:.55!important;
  cursor:wait!important;
}
.mras-video-seek-btn:disabled{
  pointer-events:none!important;
}


/* =========================================================
   v1.0.37 — remove Mark as Complete + Reviews completely
   ========================================================= */

/* Tutor completion actions */
.tutor-btn-mark-complete,
.tutor-mark-complete,
.tutor-course-complete-form,
.tutor-course-complete-wrap,
.tutor-course-completion-form,
.tutor-course-completion-btn,
[class*="mark-complete"],
[class*="course-complete-form"],
button[name*="complete_course"],
input[name*="complete_course"]{
  display:none!important;
}

/* Reviews / ratings sections and nav */
.tutor-course-reviews,
.tutor-course-review,
.tutor-reviews,
.tutor-review,
.tutor-ratings,
.tutor-rating,
.tutor-course-details-tab-reviews,
.tutor-course-details-tab-review,
#tutor-course-reviews,
#tutor-course-review,
a[href*="#reviews"],
a[href*="#review"],
li[class*="review"],
li[class*="rating"],
[class*="tutor-review"],
[class*="tutor-rating"]{
  display:none!important;
}


/* =========================================================
   v1.0.39 — remove the entire Mark as Complete box/container
   ========================================================= */

/* Direct completion forms / buttons */
.tutor-course-complete-form,
.tutor-course-completion-form,
.tutor-course-complete-wrap,
.tutor-course-completion-wrap,
.tutor-mark-complete,
.tutor-btn-mark-complete,
.tutor-course-completion-btn,
[class*="mark-complete"],
[class*="course-complete"]{
  display:none!important;
}

/* Common Tutor lesson footer/action containers that contain only completion UI */
.tutor-lesson-content-area .tutor-course-complete-form,
.tutor-lesson-content-area .tutor-course-completion-form,
.tutor-lesson-content-area .tutor-course-complete-wrap,
.tutor-lesson-content-area .tutor-course-completion-wrap,
.tutor-course-spotlight-wrapper .tutor-course-complete-form,
.tutor-course-spotlight-wrapper .tutor-course-completion-form,
.tutor-course-spotlight-wrapper .tutor-course-complete-wrap,
.tutor-course-spotlight-wrapper .tutor-course-completion-wrap{
  display:none!important;
}
