
/* Mawaddah Academy — visual identity layer v1.2 */
:root{
  --maw-emerald:#075a46;
  --maw-emerald-deep:#053d31;
  --maw-emerald-soft:#eaf6f1;
  --maw-gold:#d7a93b;
  --maw-gold-soft:#fff1c8;
  --maw-cream:#fffaf0;
  --maw-paper:#fffdf9;
  --maw-ink:#102f27;
  --maw-muted:#687871;
  --maw-line:rgba(7,90,70,.12);
  --maw-shadow:0 22px 60px rgba(7,61,49,.09);
}
body.mawaddah-body{font-family:"Manrope","Cairo",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--maw-paper);color:var(--maw-ink)}
body.rtl.mawaddah-body{font-family:"Cairo","Manrope",sans-serif}
body.mawaddah-body h1,body.mawaddah-body h2,body.mawaddah-body h3,body.mawaddah-body h4,.brand-copy strong,.footer-wordmark{font-family:"Manrope","Cairo",sans-serif}
body.rtl.mawaddah-body h1,body.rtl.mawaddah-body h2,body.rtl.mawaddah-body h3,body.rtl.mawaddah-body h4{font-family:"Cairo","Manrope",sans-serif}
.site-header{box-shadow:0 8px 30px rgba(7,61,49,.04)}
.brand-lockup{min-width:max-content}
.brand-copy strong{font-size:1.22rem;font-weight:800;letter-spacing:.08em}
.brand-copy small{font-size:.61rem;letter-spacing:.06em}
.desktop-nav{font-weight:650}
.header-wa{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border-radius:999px;background:#eefaf5;border:1px solid rgba(7,90,70,.12)}
.header-wa:before{content:"";width:8px;height:8px;border-radius:50%;background:#22a663;box-shadow:0 0 0 4px rgba(34,166,99,.12)}

/* Generic branded pages */
.maw-page{overflow:hidden}
.maw-page-hero{position:relative;padding:72px 0 58px;background:
 radial-gradient(circle at 12% 15%,rgba(215,169,59,.20),transparent 26%),
 radial-gradient(circle at 90% 18%,rgba(0,167,123,.13),transparent 24%),
 linear-gradient(180deg,#fffefa,#fff9ec)}
.maw-page-hero:after{content:"";position:absolute;inset:auto 0 0;height:1px;background:linear-gradient(90deg,transparent,rgba(7,90,70,.18),transparent)}
.maw-page-hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);align-items:center;gap:56px}
.maw-page-kicker,.maw-blog-kicker{display:inline-flex;align-items:center;gap:8px;margin-bottom:16px;color:#946a13;font-size:.74rem;font-weight:800;letter-spacing:.18em;text-transform:uppercase}
.maw-page-kicker:before,.maw-blog-kicker:before{content:"";width:28px;height:1px;background:var(--maw-gold)}
.maw-page-title{margin:0;color:var(--maw-emerald-deep);font-size:clamp(2.7rem,5vw,5.2rem);line-height:1.02;letter-spacing:-.045em}
.rtl .maw-page-title{letter-spacing:0;line-height:1.17}
.maw-page-lead{max-width:760px;margin:22px 0 0;color:var(--maw-muted);font-size:1.08rem;line-height:1.85}
.maw-brand-panel{position:relative;display:flex;flex-direction:column;min-height:310px;padding:28px;border-radius:30px;background:linear-gradient(145deg,#073f32,#08624d);box-shadow:0 28px 70px rgba(5,61,49,.22);overflow:hidden;color:#fff}
.maw-brand-panel:before{content:"";position:absolute;width:260px;height:260px;border:1px solid rgba(255,220,126,.26);border-radius:50%;right:-80px;top:-90px}
.rtl .maw-brand-panel:before{right:auto;left:-80px}
.maw-brand-panel img{position:relative;width:76px;height:88px;object-fit:contain;filter:drop-shadow(0 8px 20px rgba(0,0,0,.16))}
.maw-brand-panel h2{position:relative;margin:20px 0 8px;font-size:1.5rem;color:#fff}
.maw-brand-panel p{position:relative;margin:0;color:rgba(255,255,255,.74);line-height:1.75}
.maw-brand-chips{position:relative;left:auto;right:auto;bottom:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:auto;padding-top:22px}
.maw-brand-chips span{padding:9px 8px;border:1px solid rgba(255,255,255,.15);border-radius:12px;background:rgba(255,255,255,.08);font-size:.72rem;text-align:center;color:#fff}

.maw-page-body{padding:56px 0 78px}
.maw-page-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:56px;align-items:start}
.maw-rich-content{font-size:1.02rem;line-height:1.9;color:#40534c}
.maw-rich-content>p:first-child{font-size:1.14rem;color:#455f56}
.maw-rich-content h2{margin:46px 0 14px;color:var(--maw-emerald-deep);font-size:clamp(1.65rem,2.5vw,2.35rem);letter-spacing:-.025em}
.rtl .maw-rich-content h2{letter-spacing:0}
.maw-rich-content h3{margin:30px 0 10px;color:var(--maw-emerald);font-size:1.28rem}
.maw-rich-content p{margin:0 0 19px}
.maw-rich-content ul,.maw-rich-content ol{margin:16px 0 24px;padding-inline-start:24px}
.maw-rich-content li{margin:8px 0}
.maw-rich-content a{color:var(--maw-emerald);font-weight:750;text-decoration:underline;text-decoration-color:rgba(215,169,59,.55);text-underline-offset:4px}
.maw-rich-content blockquote{margin:30px 0;padding:22px 24px;border-inline-start:4px solid var(--maw-gold);border-radius:0 18px 18px 0;background:var(--maw-cream);color:#496057}
.rtl .maw-rich-content blockquote{border-radius:18px 0 0 18px}
.maw-rich-content img{border-radius:22px;box-shadow:var(--maw-shadow)}
.maw-page-aside{position:sticky;top:112px;display:grid;gap:16px}
.maw-aside-card{padding:22px;border:1px solid var(--maw-line);border-radius:20px;background:#fff;box-shadow:0 15px 45px rgba(7,61,49,.055)}
.maw-aside-card h3{margin:0 0 8px;font-size:1.08rem;color:var(--maw-emerald-deep)}
.maw-aside-card p{margin:0 0 15px;color:var(--maw-muted);font-size:.9rem;line-height:1.65}
.maw-aside-links{display:grid;gap:8px}
.maw-aside-links a{padding:10px 12px;border-radius:12px;background:#f7fbf9;color:#174a3d;font-size:.88rem;font-weight:700}
.maw-aside-links a:hover{background:var(--maw-emerald-soft)}

/* Contact identity */
.maw-contact-band{padding:24px 0 58px;background:linear-gradient(180deg,#fffdf9,#f7f1e4)}
.maw-contact-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:18px}
.maw-contact-head h2{margin:5px 0 0;font-size:clamp(1.7rem,3vw,2.6rem);color:var(--maw-emerald-deep)}
.maw-contact-head p{max-width:560px;margin:0;color:var(--maw-muted);line-height:1.7}
.maw-contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.maw-contact-card{display:flex;align-items:center;gap:14px;min-height:96px;padding:16px 18px;border:1px solid var(--maw-line);border-radius:19px;background:rgba(255,255,255,.88);box-shadow:0 13px 35px rgba(7,61,49,.06);transition:.2s ease}
.maw-contact-card:hover{transform:translateY(-2px);border-color:rgba(215,169,59,.45);box-shadow:0 18px 40px rgba(7,61,49,.1)}
.maw-contact-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border-radius:15px;background:var(--maw-emerald-soft);color:var(--maw-emerald)}
.maw-contact-icon svg{width:23px;height:23px;fill:currentColor}
.maw-contact-card b{display:block;color:var(--maw-emerald-deep);font-size:.96rem}
.maw-contact-card span{display:block;margin-top:4px;color:#64736d;font-size:.82rem}
.maw-contact-card small{display:block;margin-top:3px;color:#9a711d;font-size:.69rem}
.maw-contact-card.whatsapp .maw-contact-icon{background:#eaf9f0;color:#159957}
.maw-contact-card.call .maw-contact-icon{background:#fff4d7;color:#9d7215}
.maw-contact-card.trial .maw-contact-icon{background:#eaf4ff;color:#33699b}

/* Footer identity */
.site-footer{border-top:1px solid var(--maw-line);background:#fff}
.footer-wordmark{font-size:1.4rem;letter-spacing:.12em;color:var(--maw-emerald-deep)}
.footer-brand-mark{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.footer-brand-mark img{width:48px;height:56px;object-fit:contain}

/* Blog library */
.maw-blog-hero{padding:68px 0 54px;background:
 radial-gradient(circle at 88% 12%,rgba(0,167,123,.13),transparent 24%),
 radial-gradient(circle at 9% 8%,rgba(215,169,59,.18),transparent 25%),
 #fffaf0}
.maw-blog-hero-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:48px;align-items:center}
.maw-blog-hero h1{margin:0;font-size:clamp(2.8rem,5vw,5rem);line-height:1.04;color:var(--maw-emerald-deep);letter-spacing:-.045em}
.rtl .maw-blog-hero h1{letter-spacing:0}
.maw-blog-hero p{max-width:720px;margin:20px 0 0;color:var(--maw-muted);font-size:1.06rem;line-height:1.8}
.maw-blog-emblem{display:grid;place-items:center;min-height:250px;border-radius:28px;background:linear-gradient(145deg,#064333,#08715a);box-shadow:var(--maw-shadow)}
.maw-blog-emblem img{width:110px;height:128px;object-fit:contain;filter:drop-shadow(0 12px 24px rgba(0,0,0,.2))}
.maw-blog-index{padding:52px 0 78px}
.maw-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.maw-post-card{overflow:hidden;border:1px solid var(--maw-line);border-radius:23px;background:#fff;box-shadow:0 16px 44px rgba(7,61,49,.06);transition:.25s ease}
.maw-post-card:hover{transform:translateY(-3px);box-shadow:0 22px 54px rgba(7,61,49,.11)}
.maw-post-card-media{display:block;aspect-ratio:16/9;overflow:hidden;background:#eaf3ef}
.maw-post-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.maw-post-card:hover .maw-post-card-media img{transform:scale(1.025)}
.maw-post-card-body{padding:20px}
.maw-post-meta{display:flex;gap:10px;flex-wrap:wrap;color:#8a7440;font-size:.72rem;font-weight:750;text-transform:uppercase;letter-spacing:.08em}
.maw-post-card h2{margin:10px 0 9px;font-size:1.28rem;line-height:1.35;color:var(--maw-emerald-deep)}
.maw-post-card p{margin:0;color:var(--maw-muted);font-size:.9rem;line-height:1.7}
.maw-post-read{display:inline-flex;margin-top:16px;color:var(--maw-emerald);font-weight:800;font-size:.86rem}
.maw-blog-pagination{margin-top:34px;display:flex;justify-content:center;gap:10px}
.maw-blog-pagination .page-numbers{min-width:40px;height:40px;display:grid;place-items:center;border-radius:12px;border:1px solid var(--maw-line);background:#fff}
.maw-blog-pagination .current{background:var(--maw-emerald);color:#fff}

/* Single article */
.maw-article-hero{padding:64px 0 42px;background:linear-gradient(180deg,#fffaf0,#fffdf9)}
.maw-article-hero-inner{max-width:980px;margin:auto}
.maw-article-hero h1{margin:10px 0 16px;font-size:clamp(2.5rem,5vw,4.7rem);line-height:1.08;letter-spacing:-.04em;color:var(--maw-emerald-deep)}
.rtl .maw-article-hero h1{letter-spacing:0}
.maw-article-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#7b827e;font-size:.82rem}
.maw-article-cover{max-width:1180px;margin:0 auto -70px;padding:0 20px;position:relative;z-index:2}
.maw-article-cover img{width:100%;max-height:520px;object-fit:cover;border-radius:28px;box-shadow:0 28px 70px rgba(7,61,49,.15)}
.maw-article-body{padding:110px 0 72px}
.maw-article-layout{display:grid;grid-template-columns:minmax(0,760px) 300px;justify-content:center;gap:55px;align-items:start}
.maw-article-content{font-size:1.04rem;line-height:1.95;color:#40534c}
.maw-article-content h2{margin:48px 0 14px;font-size:clamp(1.7rem,3vw,2.35rem);line-height:1.25;color:var(--maw-emerald-deep)}
.maw-article-content h3{margin:32px 0 10px;font-size:1.32rem;color:var(--maw-emerald)}
.maw-article-content p{margin:0 0 20px}
.maw-article-content ul,.maw-article-content ol{margin:18px 0 26px;padding-inline-start:24px}
.maw-article-content li{margin:8px 0}
.maw-article-content a{color:var(--maw-emerald);font-weight:800;text-decoration:underline;text-decoration-color:rgba(215,169,59,.55);text-underline-offset:4px}
.maw-article-content blockquote{margin:32px 0;padding:23px 25px;border-inline-start:4px solid var(--maw-gold);background:var(--maw-cream);border-radius:0 18px 18px 0}
.maw-article-aside{position:sticky;top:112px;display:grid;gap:15px}
.maw-article-aside .maw-aside-card:first-child{background:linear-gradient(145deg,#063f31,#07624d);color:#fff;border:0}
.maw-article-aside .maw-aside-card:first-child h3{color:#fff}
.maw-article-aside .maw-aside-card:first-child p{color:rgba(255,255,255,.72)}
.maw-related-posts{padding:48px 0 74px;background:#f8f5ed}
.maw-related-posts h2{margin:0 0 20px;color:var(--maw-emerald-deep)}
.maw-prevnext{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:38px}
.maw-prevnext a{display:block;padding:17px;border-radius:16px;border:1px solid var(--maw-line);background:#fff;color:var(--maw-emerald-deep);font-weight:750}

/* search / empty states */
.maw-simple-hero{padding:56px 0 32px;background:#fffaf0}
.maw-simple-hero h1{margin:7px 0 0;font-size:clamp(2.2rem,4vw,3.7rem);color:var(--maw-emerald-deep)}
.maw-simple-results{padding:42px 0 70px}
.maw-empty-card{max-width:720px;margin:auto;padding:42px;border:1px solid var(--maw-line);border-radius:24px;background:#fff;text-align:center;box-shadow:var(--maw-shadow)}

/* RTL refinements */
.rtl .maw-page-kicker,.rtl .maw-blog-kicker{letter-spacing:.03em}
.rtl .maw-contact-card,.rtl .maw-brand-panel,.rtl .maw-aside-card{text-align:right}
.rtl .maw-post-meta{letter-spacing:0}

@media(max-width:980px){
  .maw-page-hero-grid,.maw-blog-hero-grid,.maw-page-layout,.maw-article-layout{grid-template-columns:1fr}
  .maw-brand-panel{min-height:280px}
  .maw-page-aside,.maw-article-aside{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}
  .maw-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .maw-page-hero,.maw-blog-hero{padding:48px 0 38px}
  .maw-page-title,.maw-blog-hero h1{font-size:clamp(2.35rem,11vw,3.4rem)}
  .maw-page-body{padding:36px 0 56px}
  .maw-contact-head{align-items:flex-start;flex-direction:column}
  .maw-contact-grid,.maw-post-grid,.maw-page-aside,.maw-article-aside{grid-template-columns:1fr}
  .maw-brand-chips{grid-template-columns:1fr 1fr 1fr;left:18px;right:18px}
  .maw-article-cover{margin-bottom:-42px}
  .maw-article-body{padding-top:76px}
  .maw-prevnext{grid-template-columns:1fr}
}

/* Rich content building blocks */
.maw-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0 34px}
.maw-info-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.maw-info-card{padding:22px;border:1px solid var(--maw-line);border-radius:19px;background:linear-gradient(180deg,#fff,#fbfdfc);box-shadow:0 12px 34px rgba(7,61,49,.045)}
.maw-info-card h3{margin:0 0 8px!important;font-size:1.1rem!important;color:var(--maw-emerald-deep)!important}
.maw-info-card p{margin:0!important;font-size:.93rem;line-height:1.75;color:var(--maw-muted)}
.maw-highlight-box{margin:30px 0;padding:24px 26px;border-radius:22px;background:linear-gradient(145deg,#073f32,#08624d);color:#fff;box-shadow:0 20px 50px rgba(5,61,49,.16)}
.maw-highlight-box h2,.maw-highlight-box h3{margin-top:0!important;color:#fff!important}
.maw-highlight-box p{color:rgba(255,255,255,.78)!important}
.maw-highlight-box a{color:#ffe49a!important;text-decoration-color:#ffe49a!important}
.maw-step-list{counter-reset:mawstep;display:grid;gap:14px;margin:24px 0 34px;padding:0!important;list-style:none}
.maw-step-list li{counter-increment:mawstep;position:relative;margin:0!important;padding:18px 18px 18px 66px;border:1px solid var(--maw-line);border-radius:18px;background:#fff}
.rtl .maw-step-list li{padding:18px 66px 18px 18px}
.maw-step-list li:before{content:counter(mawstep,decimal-leading-zero);position:absolute;left:17px;top:17px;width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:var(--maw-gold-soft);color:#7f5b11;font-size:.77rem;font-weight:850}
.rtl .maw-step-list li:before{left:auto;right:17px}
.maw-tag-row{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0 30px}
.maw-tag-row span{padding:8px 11px;border-radius:999px;background:var(--maw-emerald-soft);color:var(--maw-emerald);font-size:.78rem;font-weight:750}
@media(max-width:700px){.maw-info-grid,.maw-info-grid.three{grid-template-columns:1fr}}


/* Mawaddah Arabic layout hotfix 2026-09-29 */
.rtl .maw-page-hero-grid{direction:rtl}
.rtl .maw-page-title{font-size:clamp(2.65rem,4.6vw,4.75rem);line-height:1.22;max-width:820px}
.rtl .maw-page-lead{font-size:1.03rem;line-height:2;max-width:780px}
.rtl .maw-brand-panel h2{line-height:1.45}
.rtl .maw-brand-panel p{line-height:1.9}

.rtl .journey-card{grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);gap:52px;align-items:center}
.rtl .journey-copy{min-width:0}
.rtl .journey-copy h2{font-size:clamp(2.65rem,4vw,4.35rem)!important;line-height:1.22!important;max-width:720px;margin-bottom:20px!important}
.rtl .journey-copy p{position:relative;display:block;max-width:690px;margin:0!important;font-size:1rem;line-height:2!important;color:rgba(255,255,255,.82)}
.rtl .journey-actions{margin-top:28px!important}
.rtl .journey-points{gap:14px}
.rtl .journey-points span{line-height:1.55}

.home-explore-section .section-head.compact{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.42fr);gap:42px;align-items:end;margin-bottom:28px}
.home-explore-section .section-head.compact h2{line-height:1.22}
.home-explore-section .section-head.compact>p{margin:0;line-height:1.85}
.home-explore-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}
.home-explore-grid>a{display:flex!important;min-width:0;min-height:128px;flex-direction:column!important;justify-content:space-between!important;gap:16px!important;padding:20px!important;border:1px solid rgba(15,90,71,.12)!important;border-radius:20px!important;background:#fff!important;box-shadow:0 12px 34px rgba(23,60,49,.06)!important;text-decoration:none!important}
.home-explore-grid>a strong{display:block;font-size:1.08rem;line-height:1.5;color:#183229}
.home-explore-grid>a span{display:block;font-size:.9rem;line-height:1.65;color:#64736d}
.rtl .home-explore-grid>a{text-align:right}

@media(max-width:980px){
  .rtl .journey-card{grid-template-columns:1fr;gap:28px}
  .home-explore-section .section-head.compact{grid-template-columns:1fr;gap:14px}
  .home-explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:640px){
  .rtl .maw-page-title{font-size:clamp(2.2rem,10vw,3.2rem)}
  .rtl .journey-copy h2{font-size:clamp(2.2rem,9.5vw,3.2rem)!important}
  .home-explore-grid{grid-template-columns:1fr!important}
}

/* Mawaddah fast sign-in — Google / Facebook / email */
.maw-apply-quick-auth{margin:0 0 30px;padding:22px;border:1px solid var(--maw-line);border-radius:24px;background:linear-gradient(180deg,#fff,#fbfdfc);box-shadow:0 16px 44px rgba(7,61,49,.06)}
.maw-quick-auth{display:grid;gap:16px}.maw-quick-auth-head{display:grid;gap:5px}
.maw-quick-auth-head strong{font-size:1.06rem;color:var(--maw-emerald-deep)}
.maw-quick-auth-head span{font-size:.88rem;line-height:1.65;color:var(--maw-muted)}
.maw-social-buttons{display:grid;gap:10px}
.maw-social-buttons.is-apply{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:center}
.maw-social-btn,.maw-google-button>div{width:100%!important;max-width:none!important}
.maw-social-btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:10px 16px;border:1px solid rgba(7,90,70,.15);border-radius:999px;background:#fff;color:#173f34;font-weight:750;text-decoration:none!important;transition:.2s ease}
.maw-social-btn:hover{transform:translateY(-1px);border-color:rgba(7,90,70,.3);box-shadow:0 8px 20px rgba(7,61,49,.08)}
.maw-social-btn.facebook{background:#1877f2;color:#fff;border-color:#1877f2}.maw-social-btn.facebook:hover{filter:brightness(.97)}
.maw-social-btn.apple{background:#111;color:#fff;border-color:#111}
.maw-google-button{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px}
.maw-google-button>div,.maw-google-button iframe{width:100%!important;max-width:100%!important}
.maw-social-buttons.is-apply .maw-social-btn{min-height:46px}
.maw-social-btn.is-disabled{opacity:.48;cursor:not-allowed;transform:none;box-shadow:none}
.maw-social-mark{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:.94rem;font-weight:900}
.facebook-mark{background:#fff;color:#1877f2;font-family:Arial,sans-serif}
.maw-auth-divider,.maw-portal-password-divider{display:flex;align-items:center;gap:12px;color:#87938e;font-size:.76rem}
.maw-auth-divider:before,.maw-auth-divider:after,.maw-portal-password-divider:before,.maw-portal-password-divider:after{content:"";height:1px;flex:1;background:rgba(7,90,70,.12)}
.maw-magic-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}
.maw-magic-form input{width:100%;min-height:46px;padding:0 14px;border:1px solid rgba(7,90,70,.15);border-radius:14px;background:#fff;font:inherit}
.maw-magic-form button{min-height:46px;padding:0 16px;border:0;border-radius:14px;background:var(--maw-emerald);color:#fff;font:inherit;font-weight:800;cursor:pointer}
.maw-auth-note{margin:0!important;font-size:.76rem!important;line-height:1.65!important;color:#7d8984!important}
.maw-manual-register-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:14px;border-top:1px solid rgba(7,90,70,.10);color:#71807a;font-size:.8rem}
.maw-manual-register-row a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border-radius:12px;background:#f4f8f6;color:var(--maw-emerald-deep);font-weight:800;text-decoration:none!important;white-space:nowrap}
.maw-manual-register-row a:hover{background:#edf5f1}
.maw-auth-alert{padding:11px 13px;border-radius:13px;font-size:.84rem;line-height:1.55}.maw-auth-alert.success{background:#ebf8f1;color:#166343}.maw-auth-alert.error{background:#fff1ef;color:#9a3d32}
.maw-application-shell .maw-form{position:relative;overflow:hidden}
.maw-application-shell .maw-form:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#d7a93b,#0b7a5d)}
.maw-application-shell .maw-field small{display:block;margin-top:2px;color:#7b8883;font-size:.72rem;line-height:1.5}
.maw-application-shell .maw-field input[readonly]{background:#f4f8f6;color:#61716b}
.maw-application-shell .maw-child-password[hidden]{display:none!important}
.maw-application-shell .maw-submit{min-width:220px;justify-content:center}
.maw-application-shell .maw-form-note{max-width:680px}
.portal-login-card .maw-quick-auth{margin-top:16px}.portal-login-card .maw-portal-password-divider{margin:18px 0 14px}
.rtl .maw-quick-auth,.rtl .maw-apply-quick-auth{text-align:right}
@media(max-width:720px){.maw-social-buttons.is-apply{grid-template-columns:1fr}.maw-manual-register-row{align-items:flex-start;flex-direction:column}.maw-manual-register-row a{width:100%}}
@media(max-width:600px){.maw-magic-form{grid-template-columns:1fr}.maw-social-btn{border-radius:16px}}

.maw-apply-intro{margin:0 0 18px;padding:0 2px}
.maw-apply-intro p{margin:0!important;color:#60736b;font-size:.96rem;line-height:1.8}
.maw-after-registration{margin-top:34px;padding:24px 26px;border:1px solid rgba(7,90,70,.10);border-radius:20px;background:linear-gradient(145deg,#fffaf0,#f7fbf8);box-shadow:0 12px 34px rgba(7,61,49,.045)}
.maw-after-registration h2{margin:0 0 10px!important;font-size:clamp(1.45rem,2.4vw,1.9rem)!important;color:var(--maw-emerald-deep)}
.maw-after-registration p{margin:0!important;color:#60736b;line-height:1.8}

/* Apply/mobile hardening */
@media(max-width:780px){
  html,body.mawaddah-body{max-width:100%;overflow-x:hidden}
  .site-header,.maw-page,.maw-page-hero,.maw-page-body{max-width:100%;overflow-x:clip}
  .header-inner{min-width:0;gap:10px}
  .brand-lockup{min-width:0;flex:1}
  .brand-copy{min-width:0}
  .brand-copy strong{font-size:1rem;white-space:nowrap}
  .header-actions{margin-inline-start:auto;gap:8px;flex:0 0 auto}
  .header-actions .header-wa,.header-actions .header-language,.header-actions .header-portal,.header-actions>.btn{display:none!important}
  .mobile-menu-button{display:block!important;flex:0 0 42px}
  .maw-page-hero-grid,.maw-page-layout,.maw-rich-content,.maw-page-aside,.maw-brand-panel,.maw-apply-quick-auth,.maw-suite-form-wrap{min-width:0;max-width:100%}
  .maw-brand-panel,.maw-apply-quick-auth,.maw-suite-form-wrap{width:100%}
  .maw-suite-grid>*{min-width:0}
  .maw-suite-form-wrap .maw-suite-grid input,.maw-suite-form-wrap .maw-suite-grid select,.maw-suite-form-wrap .maw-suite-grid textarea{min-width:0;max-width:100%}
}
@media(max-width:600px){
  .maw-page-hero-grid,.maw-page-layout{gap:24px}
  .maw-brand-panel{padding:22px}
  .maw-apply-quick-auth{padding:18px}
  .maw-suite-form-wrap{padding:20px 16px!important}
}

/* Portal UX simplification */
.portal-hero{padding:64px 0 76px}
.portal-grid{grid-template-columns:minmax(0,1fr) minmax(390px,.78fr);gap:54px}
.portal-copy h1{max-width:700px;font-size:clamp(2.8rem,4.4vw,4.45rem);line-height:1.08;letter-spacing:-.035em}
.portal-copy>p{max-width:620px}
.portal-points{grid-template-columns:1fr;gap:9px;margin-top:24px;max-width:620px}
.portal-login-card{width:100%;max-width:460px;justify-self:end;padding:30px;border-radius:28px}
.rtl .portal-login-card{justify-self:start}
.portal-login-head{margin-bottom:18px}
.portal-login-head strong{font-size:1.35rem}
.portal-login-card .maw-quick-auth{margin-top:8px;gap:12px}
.portal-login-card .maw-quick-auth-head{gap:4px}
.portal-login-card .maw-social-buttons{gap:9px}
.portal-login-card .maw-google-button,
.portal-login-card .maw-social-btn{min-height:48px}
.portal-login-card .maw-portal-password-divider{margin:16px 0 14px}
.portal-login-card form{gap:12px}
.portal-login-card input[type=text],
.portal-login-card input[type=password]{min-height:50px}
.portal-login-card input[type=submit]{min-height:50px}
.portal-links{margin-top:14px}
.portal-apply{margin-top:18px;padding-top:15px}
@media(max-width:900px){
  .portal-hero{padding:44px 0 64px}
  .portal-grid{grid-template-columns:1fr;gap:30px}
  .portal-copy{text-align:center}
  .portal-copy h1,.portal-copy>p,.portal-points{margin-inline:auto}
  .portal-login-card,.rtl .portal-login-card{justify-self:center;max-width:520px}
}
@media(max-width:640px){
  .portal-copy h1{font-size:clamp(2.2rem,11vw,3rem)}
  .portal-copy>p{font-size:.96rem}
  .portal-login-card{padding:22px 16px;border-radius:22px}
  .portal-login-head img{width:48px;height:48px}
  .portal-login-head strong{font-size:1.2rem}
  .portal-points{font-size:.86rem}
}


/* Signed-in account awareness */
.header-session{display:flex;flex-direction:column;gap:2px;max-width:150px;color:#73817c;font-size:.65rem;line-height:1.2}
.header-session strong{overflow:hidden;color:#174c3f;font-size:.78rem;white-space:nowrap;text-overflow:ellipsis}
.header-portal.is-account{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 13px;border:1px solid rgba(7,90,70,.12);border-radius:13px;background:#f1f8f5;color:#075f49;font-weight:800}
.header-logout{font-size:.75rem;font-weight:700;color:#8a5b12}
.mobile-account-status{display:grid;gap:3px;padding:13px 10px;border-radius:14px;background:#f2f8f5;border:1px solid rgba(7,90,70,.09)}
.mobile-account-status strong{color:#075f49}
.mobile-account-status span{color:#71807a;font-size:.78rem}

.maw-account-status-card{position:relative;overflow:hidden;padding:34px;border:1px solid rgba(7,90,70,.10);border-radius:26px;background:linear-gradient(145deg,#fff,#f4faf7 62%,#fff8e9);box-shadow:0 22px 60px rgba(7,61,49,.07)}
.maw-account-status-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#d7a93b,#0b7a5d)}
.maw-account-status-kicker{display:inline-block;margin-bottom:10px;color:#987017;font-size:.7rem;font-weight:900;letter-spacing:.12em}
.maw-account-status-card h2{margin:0 0 12px!important;color:#075f49;font-size:clamp(1.8rem,3vw,2.65rem)!important}
.maw-account-status-card p{max-width:720px;margin:0!important;color:#5f7069;line-height:1.8}
.maw-account-status-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.maw-account-status-actions .btn{min-width:180px}

@media(max-width:1180px){.header-session{display:none}}
@media(max-width:780px){
  .header-actions .header-session,
  .header-actions .header-portal.is-account,
  .header-actions .header-logout{display:none!important}
}
@media(max-width:600px){
  .maw-account-status-card{padding:24px 18px;border-radius:22px}
  .maw-account-status-actions{display:grid;grid-template-columns:1fr}
  .maw-account-status-actions .btn{width:100%;min-width:0}
}


/* Unified dashboard polish */
.maw-dashboard{position:relative}
.maw-dash-head{align-items:center;margin-bottom:24px}
.maw-dash-head .eyebrow{display:block;margin-bottom:7px;color:#9a711d;font-size:.68rem;font-weight:900;letter-spacing:.16em}
.maw-dash-head h2{color:#083f33}
.maw-dash-grid{align-items:start;grid-template-columns:1.15fr 1fr .72fr;gap:18px}
.maw-dash-grid>.maw-dash-card{align-self:start;height:auto;min-height:0;margin-bottom:0}
.maw-dash-card{border-color:rgba(7,90,70,.10);border-radius:22px;padding:22px;box-shadow:0 12px 38px rgba(7,61,49,.055)}
.maw-dash-card h3{color:#083f33;font-size:1.05rem}
.maw-upcoming{background:linear-gradient(145deg,#fff,#fffaf0)}
.maw-session-row{padding:12px 0}
.maw-session-row strong{color:#123f34}
.maw-attendance-stats>div{min-width:74px;background:#f1f8f5;border:1px solid rgba(7,90,70,.07)}
.maw-metric-grid>div{background:#f3f8f6}
.maw-history-row{border-radius:16px;background:#fbfdfc}
.maw-payment-card,.maw-request-card{background:linear-gradient(180deg,#fff,#fbfdfc)}
.rtl .maw-dashboard,.rtl .maw-dashboard input,.rtl .maw-dashboard textarea,.rtl .maw-dashboard select{text-align:right}
.rtl .maw-dash-head,.rtl .maw-session-row{direction:rtl}
.rtl .maw-score small{margin-right:4px;margin-left:0}

@media(max-width:900px){
  .maw-dash-grid{grid-template-columns:1fr 1fr}
  .maw-dash-grid>.maw-upcoming{grid-column:1/-1}
}
@media(max-width:640px){
  .maw-dash-grid{grid-template-columns:1fr}
  .maw-dash-grid>.maw-upcoming{grid-column:auto}
  .maw-dash-card{padding:18px;border-radius:19px}
}


/* Dashboard visual refinement v8 */
.maw-dashboard{
  width:min(1260px,calc(100% - 36px))!important;
  margin:0 auto!important;
  padding:42px 0 72px!important;
}
.maw-dash-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:24px!important;
  margin-bottom:22px!important;
}
.maw-dash-head h2{
  max-width:920px;
  margin:0!important;
  font-size:clamp(2rem,3.6vw,3.35rem)!important;
  line-height:1.08!important;
  letter-spacing:-.035em!important;
}
.maw-dash-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(220px,.62fr)!important;
  gap:18px!important;
  align-items:start!important;
  margin-bottom:18px!important;
}
.maw-dash-grid>.maw-dash-card{
  align-self:start!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
}
.maw-dash-card{
  position:relative;
  overflow:hidden;
  padding:22px!important;
  border:1px solid rgba(7,90,70,.10)!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,#fff,#fcfefd)!important;
  box-shadow:0 12px 34px rgba(7,61,49,.055)!important;
}
.maw-dash-card:before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:2px;
  background:linear-gradient(90deg,rgba(215,169,59,.95),rgba(11,122,93,.82));
  opacity:.7;
}
.maw-dash-card h3{
  margin:0 0 14px!important;
  color:#083f33!important;
  font-size:1.02rem!important;
}
.maw-upcoming{
  background:linear-gradient(145deg,#fffdf7,#fff)!important;
}
.maw-session-row{
  gap:18px!important;
  padding:10px 0!important;
}
.maw-session-row>div{
  min-width:0;
}
.maw-session-row strong{
  font-size:.95rem;
}
.maw-score{
  margin:0 0 14px!important;
  font-size:2.7rem!important;
}
.maw-metric-grid{
  gap:8px!important;
  margin:10px 0 14px!important;
}
.maw-metric-grid>div{
  padding:10px 11px!important;
  border-radius:13px!important;
}
.maw-attendance-stats{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
}
.maw-attendance-stats>div{
  min-width:0!important;
  padding:13px!important;
  border-radius:14px!important;
  background:#f2f8f5!important;
}
.maw-lesson-history{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
.maw-history-row{
  height:100%;
  padding:17px!important;
  border-radius:17px!important;
  background:#fbfdfc!important;
}
.maw-payment-card,.maw-request-card,#maw-notifications{
  margin-top:18px!important;
}
.maw-inline-form input,
.maw-inline-form select,
.maw-inline-form textarea,
.maw-mini-form input,
.maw-mini-form select,
.maw-mini-form textarea{
  min-height:46px;
  border-radius:13px!important;
  background:#fff!important;
}
.rtl .maw-dashboard{
  direction:rtl;
}
.rtl .maw-session-row,
.rtl .maw-dash-head{
  direction:rtl!important;
}
@media(max-width:980px){
  .maw-dash-grid{
    grid-template-columns:1fr 1fr!important;
  }
  .maw-dash-grid>.maw-upcoming{
    grid-column:1/-1!important;
  }
  .maw-attendance-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:700px){
  .maw-dashboard{
    width:min(100% - 22px,1260px)!important;
    padding-top:30px!important;
  }
  .maw-dash-head{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
  .maw-dash-grid{
    grid-template-columns:1fr!important;
  }
  .maw-dash-grid>.maw-upcoming{
    grid-column:auto!important;
  }
  .maw-lesson-history{
    grid-template-columns:1fr!important;
  }
}


/* Live classroom controls v9 */
.maw-classroom{width:min(1260px,calc(100% - 36px))!important;padding:42px 0 72px!important}
.maw-classroom-head{display:flex!important;justify-content:space-between;gap:22px;align-items:flex-end!important;text-align:inherit!important;margin-bottom:20px!important}
.maw-classroom-head h2{font-size:clamp(2rem,3.8vw,3.5rem)!important}
.maw-classroom-time{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:10px 0 0;color:#5f7069}
.maw-classroom-status{display:inline-flex;align-items:center;min-height:28px;padding:4px 10px;border-radius:999px;background:#eef7f3;color:#087056;font-size:.76rem;font-weight:800}
.maw-classroom-stage{display:block!important;min-height:0!important;padding:28px!important;text-align:inherit!important;background:linear-gradient(145deg,#073f32,#0a6a52)!important}
.maw-classroom-stage.is-cancelled{background:linear-gradient(145deg,#5d2922,#8a3e31)!important}
.maw-classroom-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.maw-classroom-stage .btn-outline{background:#fff;color:#075f49!important;border-color:#fff}
.maw-classroom-wait{display:grid;gap:5px;flex:1 1 340px;padding:16px 18px;border:1px solid rgba(255,255,255,.16);border-radius:16px;background:rgba(255,255,255,.08)}
.maw-classroom-wait strong{color:#fff;font-size:1rem}
.maw-classroom-wait span{color:rgba(255,255,255,.78);font-size:.86rem;line-height:1.6}
.maw-teacher-live-controls{display:grid;gap:16px;margin-top:20px;padding-top:20px;border-top:1px solid rgba(255,255,255,.15)}
.maw-teacher-live-primary{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.maw-teacher-live-primary>span{color:rgba(255,255,255,.72);font-size:.8rem;line-height:1.55}
.maw-classroom-schedule{border:1px solid rgba(255,255,255,.16);border-radius:16px;background:rgba(255,255,255,.07);overflow:hidden}
.maw-classroom-schedule>summary{cursor:pointer;padding:14px 16px;color:#fff;font-weight:800;list-style:none}
.maw-classroom-schedule>summary::-webkit-details-marker{display:none}
.maw-classroom-schedule-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:0 16px 16px}
.maw-classroom-schedule-grid form{display:grid;gap:10px;padding:14px;border-radius:14px;background:rgba(255,255,255,.09)}
.maw-classroom-schedule-grid label{display:grid;gap:6px;color:#fff;font-size:.8rem;font-weight:700}
.maw-classroom-schedule-grid input{width:100%;min-height:44px;box-sizing:border-box;border:1px solid rgba(255,255,255,.22);border-radius:11px;padding:9px 11px;background:#fff;color:#173f34}
.maw-classroom-stage .maw-danger{color:#842c20!important}
.rtl .maw-classroom,.rtl .maw-classroom-head,.rtl .maw-classroom-actions,.rtl .maw-teacher-live-controls{text-align:right;direction:rtl}
@media(max-width:760px){
  .maw-classroom{width:min(100% - 22px,1260px)!important;padding-top:30px!important}
  .maw-classroom-stage{padding:20px 16px!important}
  .maw-classroom-actions{display:grid}
  .maw-classroom-actions .btn{width:100%}
  .maw-teacher-live-primary{display:grid}
  .maw-classroom-schedule-grid{grid-template-columns:1fr}
}


/* Student Learning Hub v12 */
.maw-student-hub{width:min(1320px,calc(100% - 40px))!important;padding:36px 0 74px!important}
.maw-learning-header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:26px;margin-bottom:22px;padding:26px 28px;border:1px solid rgba(7,90,70,.09);border-radius:25px;background:linear-gradient(135deg,#fffdf8,#f2faf6);box-shadow:0 14px 45px rgba(7,61,49,.055)}
.maw-learning-welcome h2{margin:5px 0 7px!important;font-size:clamp(2rem,3.4vw,3.15rem)!important;line-height:1.1!important;color:#073f32}
.maw-learning-welcome p{margin:0;color:#687871;font-size:.96rem;line-height:1.7}
.maw-learning-head-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.maw-mushaf-shortcut{display:inline-flex;align-items:center;gap:9px;min-height:48px;padding:0 15px;border:1px solid rgba(7,90,70,.12);border-radius:15px;background:#fff;color:#075a46;text-decoration:none;font-size:.86rem}
.maw-mushaf-shortcut span{font-size:1.35rem;color:#b88718}
.maw-notification-bell{position:relative}
.maw-notification-bell>summary{position:relative;display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(7,90,70,.12);border-radius:15px;background:#fff;cursor:pointer;list-style:none}
.maw-notification-bell>summary::-webkit-details-marker{display:none}
.maw-notification-bell>summary svg{width:22px;height:22px;fill:#075a46}
.maw-notification-bell>summary>b{position:absolute;top:-6px;right:-6px;display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#c43f34;color:#fff;font-size:.66rem;line-height:1}
.rtl .maw-notification-bell>summary>b{right:auto;left:-6px}
.maw-notification-popover{position:absolute;z-index:50;top:58px;right:0;width:min(390px,88vw);max-height:500px;overflow:auto;padding:10px;border:1px solid rgba(7,90,70,.12);border-radius:20px;background:#fff;box-shadow:0 28px 80px rgba(5,45,36,.18)}
.rtl .maw-notification-popover{right:auto;left:0}
.maw-notification-popover-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px 12px;border-bottom:1px solid #edf2f0}
.maw-notification-popover-head strong{color:#073f32}
.maw-notification-popover-head span{font-size:.72rem;color:#7a8782}
.maw-notification-item{display:grid;grid-template-columns:8px minmax(0,1fr);gap:10px;padding:12px 10px;border-bottom:1px solid #f0f3f2;text-decoration:none}
.maw-notification-item>i{width:7px;height:7px;margin-top:7px;border-radius:50%;background:#c8d2ce}
.maw-notification-item.is-unread{background:#f7fbf9}
.maw-notification-item.is-unread>i{background:#d7a93b;box-shadow:0 0 0 4px rgba(215,169,59,.13)}
.maw-notification-item strong,.maw-notification-item span,.maw-notification-item small{display:block}
.maw-notification-item strong{color:#174a3d;font-size:.84rem}
.maw-notification-item span{margin-top:3px;color:#60726b;font-size:.76rem;line-height:1.55}
.maw-notification-item small{margin-top:5px;color:#99a39f;font-size:.65rem}
.maw-notification-popover form{padding:10px}
.maw-notification-popover form button{width:100%;min-height:38px;border:0;border-radius:11px;background:#edf6f2;color:#075a46;font-weight:800;cursor:pointer}

.maw-learning-primary-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(260px,.82fr);gap:17px;align-items:stretch}
.maw-next-class-card,.maw-progress-card,.maw-learning-tools-card{position:relative;overflow:hidden;min-width:0;padding:24px;border:1px solid rgba(7,90,70,.10);border-radius:23px;background:#fff;box-shadow:0 12px 38px rgba(7,61,49,.05)}
.maw-next-class-card{background:linear-gradient(145deg,#073f32,#075e49);color:#fff}
.maw-next-class-card:after{content:"";position:absolute;width:250px;height:250px;top:-150px;right:-95px;border:1px solid rgba(255,216,115,.2);border-radius:50%}
.rtl .maw-next-class-card:after{right:auto;left:-95px}
.maw-card-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.maw-card-topline>span{font-size:.68rem;font-weight:900;letter-spacing:.16em;color:#a47a1c}
.maw-next-class-card .maw-card-topline>span{color:#f4cf72}
.maw-card-topline em{padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font-size:.68rem;font-style:normal}
.maw-next-class-card h3{position:relative;margin:0 0 8px!important;color:#fff!important;font-size:clamp(1.45rem,2.2vw,2rem)!important}
.maw-next-time{position:relative;margin:0;color:rgba(255,255,255,.78);font-size:1rem;line-height:1.7}
.maw-next-meta{position:relative;display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}
.maw-next-meta span{padding:7px 10px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.07);font-size:.73rem;color:#fff}
.maw-next-actions{position:relative;display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}
.maw-next-class-card .btn-outline{border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.08);color:#fff!important}

.maw-progress-card h3{margin:0 0 10px!important;color:#073f32!important;font-size:1.05rem!important}
.maw-progress-card p{margin:8px 0;color:#54675f;line-height:1.65;font-size:.84rem}
.maw-progress-score{display:flex;align-items:flex-end;gap:4px;margin:-3px 0 10px;color:#087056}
.maw-progress-score strong{font-size:3rem;line-height:1;font-weight:850}
.maw-progress-score span{padding-bottom:5px;color:#84918c;font-size:.75rem}
.maw-homework-highlight{display:flex;gap:10px;align-items:flex-start;margin:13px 0;padding:12px 13px;border-radius:14px;background:#f3f8f5}
.maw-homework-highlight>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e7f5ee;color:#0a765b;font-weight:900}
.maw-homework-highlight small,.maw-homework-highlight strong{display:block}
.maw-homework-highlight small{color:#9a711d;font-size:.62rem;font-weight:900;letter-spacing:.11em}
.maw-homework-highlight strong{margin-top:3px;color:#274e42;font-size:.8rem;line-height:1.55}

.maw-learning-tools-card{display:flex;flex-direction:column}
.maw-learning-tool{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;margin-bottom:9px;padding:11px;border:1px solid #e8efec;border-radius:15px;background:#fbfdfc;text-decoration:none}
.maw-learning-tool>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eef8f4;color:#075a46;font-size:1.25rem}
.maw-learning-tool strong,.maw-learning-tool small{display:block}
.maw-learning-tool strong{color:#174a3d;font-size:.82rem}
.maw-learning-tool small{margin-top:2px;color:#82908a;font-size:.68rem;line-height:1.4}
.maw-learning-tool>b{color:#b18422}
.maw-attendance-compact{margin-top:auto;padding-top:13px;border-top:1px solid #edf1ef}
.maw-attendance-compact>strong{display:block;margin-bottom:8px;color:#244d41;font-size:.78rem}
.maw-attendance-compact>div{display:flex;flex-wrap:wrap;gap:7px}
.maw-attendance-compact>div>span{display:flex;align-items:center;gap:5px;padding:6px 9px;border-radius:10px;background:#f4f8f6;color:#63736d;font-size:.67rem}
.maw-attendance-compact>div>span b{color:#075a46;font-size:.85rem}

.maw-empty-state{display:grid;gap:6px;padding:26px 0}
.maw-empty-state strong{font-size:1.03rem}
.maw-empty-state span{color:#788781;font-size:.82rem;line-height:1.6}
.maw-next-class-card .maw-empty-state span{color:rgba(255,255,255,.72)}
.maw-learning-section{margin-top:20px}
.maw-section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:10px}
.maw-section-heading span{color:#9a711d;font-size:.65rem;font-weight:900;letter-spacing:.14em}
.maw-section-heading h3{margin:4px 0 0!important;color:#073f32!important;font-size:1.25rem!important}
.maw-student-hub .maw-lesson-history{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.maw-student-hub .maw-history-row{position:relative;padding:17px 18px!important}
.maw-history-title strong,.maw-history-title span{display:block}
.maw-history-title strong{color:#174a3d}
.maw-history-title span{margin-top:4px;color:#8b9692;font-size:.68rem}
.maw-student-hub .maw-history-row p{margin:9px 0 0;font-size:.8rem;line-height:1.6;color:#566a62}

/* Payments v12 */
.maw-payment-card{margin-top:20px!important;padding:24px!important}
.maw-payment-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:17px}
.maw-payment-head h3{margin:4px 0 6px!important;font-size:1.35rem!important}
.maw-payment-head p{margin:0!important}
.maw-payment-count{padding:6px 10px;border-radius:999px;background:#eef7f3;color:#087056;font-size:.7rem;font-weight:800;white-space:nowrap}
.maw-payment-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:15px 0}
.maw-payment-details>div{display:grid;gap:3px;padding:12px 13px;border:1px solid #e4ece8;border-radius:13px;background:#fbfdfc}
.maw-payment-details span{color:#87938e;font-size:.66rem}
.maw-payment-details strong{color:#204d40;font-size:.82rem;overflow-wrap:anywhere}
.maw-payment-wait{grid-column:1/-1!important}
.maw-payment-instructions{margin:10px 0 15px;padding:12px 14px;border-inline-start:3px solid #d7a93b;border-radius:10px;background:#fffaf0;color:#5f675d;font-size:.82rem;line-height:1.7}
.maw-payment-success{margin:10px 0 14px;padding:11px 13px;border-radius:12px;background:#eaf8f1;color:#087056;font-weight:800;font-size:.82rem}
.maw-payment-upload-form{display:grid;gap:13px}
.maw-payment-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.maw-payment-fields label{display:grid;gap:6px}
.maw-payment-fields label>span{color:#38594f;font-size:.72rem;font-weight:800}
.maw-payment-fields input,.maw-payment-fields select{width:100%;min-height:44px;border:1px solid #d9e5e0;border-radius:12px;background:#fff;padding:0 11px}
.maw-money-input{display:flex;align-items:center;border:1px solid #d9e5e0;border-radius:12px;background:#fff;overflow:hidden}
.maw-money-input input{border:0!important}
.maw-money-input b{padding:0 11px;color:#7b8883;font-size:.72rem}
.maw-payment-proof-drop{display:flex;align-items:center;gap:12px;min-height:90px;padding:16px;border:1.5px dashed #bfd5cc;border-radius:16px;background:#f8fcfa;cursor:pointer}
.maw-payment-proof-drop input{position:absolute;opacity:0;pointer-events:none}
.maw-payment-proof-drop>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e7f5ee;color:#087056;font-size:1.2rem}
.maw-payment-proof-drop strong,.maw-payment-proof-drop small{display:block}
.maw-payment-proof-drop small{color:#7d8c86;font-size:.7rem}
.maw-payment-history{margin-top:18px;padding-top:16px;border-top:1px solid #edf1ef}
.maw-payment-history h4{margin:0 0 10px;color:#234d40}
.maw-payment-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #f0f3f2}
.maw-payment-history-row>div strong,.maw-payment-history-row>div span{display:block}
.maw-payment-history-row>div span{margin-top:2px;color:#8a9691;font-size:.66rem}
.maw-payment-status{padding:5px 8px;border-radius:999px;background:#fff5d9;color:#8d6915;font-size:.67rem;font-weight:800}
.maw-payment-history-row.is-confirmed .maw-payment-status{background:#e9f7ef;color:#087056}
.maw-payment-history-row.is-rejected .maw-payment-status{background:#fff0ee;color:#a34539}
.maw-request-compact{margin-top:16px!important}
.maw-request-compact>details>summary{cursor:pointer;color:#174a3d;font-weight:850}

@media(max-width:1050px){
  .maw-learning-primary-grid{grid-template-columns:1fr 1fr}
  .maw-learning-tools-card{grid-column:1/-1}
  .maw-payment-details{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .maw-student-hub{width:min(100% - 22px,1320px)!important;padding-top:24px!important}
  .maw-learning-header{align-items:flex-start;flex-direction:column;padding:20px}
  .maw-learning-head-actions{width:100%;justify-content:space-between}
  .maw-learning-primary-grid{grid-template-columns:1fr}
  .maw-learning-tools-card{grid-column:auto}
  .maw-student-hub .maw-lesson-history{grid-template-columns:1fr!important}
  .maw-payment-details,.maw-payment-fields{grid-template-columns:1fr}
  .maw-payment-history-row{grid-template-columns:1fr auto}
  .maw-payment-history-row>a{grid-column:1/-1}
}


/* Mawaddah bilingual typography + direction system v13 — 2026-10-01 */
html[dir="rtl"] body.mawaddah-body,
body.rtl.mawaddah-body{
  direction:rtl;
  text-align:right;
  font-family:"Cairo","Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-kerning:normal;
}
html:not([dir="rtl"]) body.mawaddah-body,
body.translatepress-en_US.mawaddah-body{
  direction:ltr;
  text-align:left;
  font-family:"Manrope","Cairo",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-kerning:normal;
}

body.rtl.mawaddah-body :where(h1,h2,h3,h4,h5,h6,p,li,label,button,a,span,strong,small){
  letter-spacing:0;
}
body.rtl.mawaddah-body :where(p,li){
  word-spacing:.025em;
}
body.mawaddah-body :where(.maw-page-title,.maw-blog-hero h1,.maw-article-hero h1,.registration-cta-card h2,.kids-copy h2,.portal-copy h1,.maw-dash-head h2){
  text-wrap:balance;
  word-break:normal;
  overflow-wrap:normal;
  hyphens:none;
}
body.mawaddah-body :where(.maw-page-lead,.maw-rich-content p,.maw-rich-content li,.maw-brand-panel p,.maw-aside-card p,.maw-contact-head p,.maw-post-card p,.registration-cta-card p,.kids-copy>p,.portal-copy>p){
  text-wrap:pretty;
  word-break:normal;
  overflow-wrap:break-word;
  hyphens:none;
}

/* Public-page reading rhythm */
.maw-page-hero{
  padding:64px 0 52px;
}
.maw-page-hero-grid{
  grid-template-columns:minmax(0,1.14fr) minmax(330px,.86fr);
  gap:48px;
}
.maw-page-title{
  max-width:100%;
  font-size:clamp(2.6rem,4.45vw,4.7rem);
  line-height:1.06;
  letter-spacing:-.04em;
}
.maw-page-lead{
  max-width:700px;
  margin-top:20px;
  font-size:1.03rem;
  line-height:1.78;
}
.maw-brand-panel{
  width:100%;
  max-width:430px;
  min-height:300px;
  justify-self:end;
  padding:28px;
}
.maw-brand-panel h2{
  line-height:1.32;
}
.maw-brand-panel p{
  font-size:.94rem;
  line-height:1.78;
}
.maw-page-body{
  padding:52px 0 76px;
}
.maw-page-layout{
  grid-template-columns:minmax(0,1fr) 300px;
  gap:48px;
}
.maw-rich-content{
  min-width:0;
  font-size:1rem;
  line-height:1.86;
}
.maw-rich-content>p:first-child{
  max-width:820px;
  font-size:1.08rem;
  line-height:1.9;
}
.maw-rich-content p{
  max-width:820px;
  margin-bottom:20px;
}
.maw-rich-content h2{
  max-width:820px;
  margin:42px 0 14px;
  line-height:1.28;
}
.maw-rich-content h3{
  max-width:820px;
  margin:28px 0 10px;
  line-height:1.4;
}
.maw-rich-content ul,
.maw-rich-content ol{
  max-width:820px;
  line-height:1.78;
}
.maw-aside-card{
  line-height:1.65;
}
.maw-aside-links a{
  line-height:1.5;
}

/* Arabic public pages */
body.rtl .maw-page-hero-grid,
html[dir="rtl"] .maw-page-hero-grid{
  direction:rtl;
  grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);
}
body.rtl .maw-page-title{
  max-width:760px;
  font-size:clamp(2.5rem,4.05vw,4.2rem);
  line-height:1.24;
  letter-spacing:0;
}
body.rtl .maw-page-lead{
  max-width:720px;
  font-size:1.01rem;
  line-height:1.95;
}
body.rtl .maw-page-kicker,
body.rtl .maw-blog-kicker{
  text-transform:none;
  letter-spacing:.025em;
}
body.rtl :where(.maw-rich-content,.maw-brand-panel,.maw-aside-card,.maw-info-card,.registration-cta-card,.plan-preview-card,.learning-path-grid article,.maw-plan-card,.kids-copy,.kids-stages>div,.maw-post-card-body,.maw-contact-card){
  direction:rtl;
  text-align:right;
}
body.rtl .maw-rich-content{
  line-height:1.95;
}
body.rtl .maw-rich-content>p:first-child{
  font-size:1.07rem;
  line-height:2;
}
body.rtl .maw-rich-content h2{
  line-height:1.38;
}
body.rtl .maw-rich-content h3{
  line-height:1.5;
}
body.rtl .maw-brand-panel{
  justify-self:start;
}
body.rtl .maw-brand-panel h2{
  line-height:1.45;
}
body.rtl .maw-brand-panel p{
  line-height:1.95;
}
body.rtl .learning-path-grid ol,
body.rtl .maw-plan-card ul{
  padding-left:0;
  padding-right:22px;
}
body.rtl .maw-rich-content ul,
body.rtl .maw-rich-content ol{
  padding-left:0;
  padding-right:24px;
}
body.rtl .kids-stages>div,
body.rtl .learning-path-grid,
body.rtl .plan-preview-grid,
body.rtl .maw-plan-grid{
  direction:rtl;
}

/* English public pages */
body.translatepress-en_US .maw-page-title{
  max-width:900px;
  font-size:clamp(2.55rem,4.25vw,4.55rem);
  line-height:1.05;
  letter-spacing:-.038em;
}
body.translatepress-en_US .maw-page-lead{
  max-width:690px;
  line-height:1.76;
}
body.translatepress-en_US :where(.maw-rich-content,.maw-brand-panel,.maw-aside-card,.maw-info-card,.registration-cta-card,.plan-preview-card,.learning-path-grid article,.maw-plan-card,.kids-copy,.kids-stages>div,.maw-post-card-body,.maw-contact-card){
  direction:ltr;
  text-align:left;
}
body.translatepress-en_US .learning-path-grid ol,
body.translatepress-en_US .maw-plan-card ul{
  padding-left:22px;
  padding-right:0;
}

/* Cards / sections: consistent vertical rhythm */
.registration-cta-card h2,
.kids-copy h2{
  line-height:1.15;
}
body.rtl .registration-cta-card h2,
body.rtl .kids-copy h2{
  line-height:1.32;
  letter-spacing:0;
}
.registration-cta-card p,
.kids-copy>p,
.plan-preview-card small,
.maw-plan-card p,
.learning-path-grid ol{
  line-height:1.75;
}
body.rtl .registration-cta-card p,
body.rtl .kids-copy>p,
body.rtl .plan-preview-card small,
body.rtl .maw-plan-card p,
body.rtl .learning-path-grid ol{
  line-height:1.9;
}
.learning-path-grid h3,
.plan-preview-card h3,
.maw-plan-card h3{
  line-height:1.35;
}
body.rtl .learning-path-grid h3,
body.rtl .plan-preview-card h3,
body.rtl .maw-plan-card h3{
  line-height:1.5;
}
.maw-info-card p{
  line-height:1.78;
}
body.rtl .maw-info-card p{
  line-height:1.92;
}

/* Blog / article bilingual rhythm */
body.rtl .maw-blog-hero h1,
body.rtl .maw-article-hero h1{
  line-height:1.25;
  letter-spacing:0;
}
body.rtl .maw-blog-hero p,
body.rtl .maw-article-content{
  line-height:1.95;
}
body.rtl .maw-post-card h2{
  line-height:1.48;
}
body.translatepress-en_US .maw-post-card h2{
  line-height:1.36;
}

/* Header: prevent crowding and clipped language names */
.site-header .site-shell.header-inner{
  width:min(1320px,calc(100% - 32px));
  gap:18px;
}
.brand-lockup{
  min-width:0;
  flex:0 1 auto;
}
.brand-copy{
  min-width:0;
}
.brand-copy strong,
.brand-copy small{
  white-space:nowrap;
}
.desktop-nav{
  gap:clamp(14px,1.35vw,22px);
  white-space:nowrap;
}
.header-actions{
  min-width:0;
  gap:8px;
  flex:0 0 auto;
}
.header-session{
  max-width:170px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.72rem;
}
.header-language{
  display:block;
  flex:0 0 124px;
  width:124px;
  min-width:124px;
  direction:ltr!important;
  text-align:left!important;
  unicode-bidi:isolate;
  overflow:visible!important;
}
.header-language .trp-shortcode-switcher__wrapper,
.header-language .trp-language-switcher{
  width:124px!important;
  min-width:124px!important;
  max-width:none!important;
  overflow:visible!important;
  direction:ltr!important;
}
.header-language .trp-current-language-item__wrapper{
  min-width:120px!important;
}
.header-language .trp-language-item{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  direction:ltr!important;
}
.header-language .trp-language-item-name{
  display:inline!important;
  width:auto!important;
  max-width:none!important;
  overflow:visible!important;
  white-space:nowrap!important;
  text-overflow:clip!important;
}
.header-language .trp-flag-image{
  flex:0 0 auto;
}
.mobile-language .trp-shortcode-switcher__wrapper{
  direction:ltr!important;
}

/* Forms and mixed-direction values */
body.rtl :where(input,textarea,select){
  text-align:right;
}
body.rtl :where(input[type="email"],input[type="tel"],input[type="url"],input[type="number"]){
  direction:ltr;
  text-align:left;
  unicode-bidi:isolate;
}
body.rtl :where(a[href^="tel:"],a[href^="mailto:"],.maw-contact-card span){
  unicode-bidi:isolate;
}
body.mawaddah-body :where(button,.btn,input[type="submit"],.maw-social-btn){
  line-height:1.35;
}
body.rtl :where(button,.btn,input[type="submit"],.maw-social-btn){
  letter-spacing:0;
}

/* Footer and navigation alignment */
body.rtl :where(.site-footer,.footer-grid,.footer-bottom,.mobile-nav){
  direction:rtl;
  text-align:right;
}
body.translatepress-en_US :where(.site-footer,.footer-grid,.footer-bottom,.mobile-nav){
  direction:ltr;
  text-align:left;
}

/* Responsive bilingual layout */
@media(max-width:1240px){
  .site-header .site-shell.header-inner{gap:12px}
  .desktop-nav{gap:14px;font-size:.86rem}
  .brand-copy small{font-size:.57rem}
  .header-session{max-width:120px}
}
@media(max-width:1080px){
  .header-language{
    width:118px;
    min-width:118px;
    flex-basis:118px;
  }
  .header-language .trp-shortcode-switcher__wrapper,
  .header-language .trp-language-switcher{
    width:118px!important;
    min-width:118px!important;
  }
}
@media(max-width:980px){
  .maw-page-hero-grid,
  body.rtl .maw-page-hero-grid{
    grid-template-columns:1fr;
    gap:30px;
  }
  .maw-brand-panel,
  body.rtl .maw-brand-panel{
    max-width:100%;
    justify-self:stretch;
  }
  .maw-page-layout{
    gap:32px;
  }
}
@media(max-width:700px){
  .maw-page-hero{padding:44px 0 36px}
  .maw-page-title,
  body.rtl .maw-page-title,
  body.translatepress-en_US .maw-page-title{
    max-width:100%;
    font-size:clamp(2.2rem,10vw,3.15rem);
  }
  body.rtl .maw-page-title{line-height:1.28}
  .maw-page-lead,
  body.rtl .maw-page-lead{font-size:.98rem}
  .maw-page-body{padding:34px 0 54px}
  .maw-rich-content h2{margin-top:34px}
}


/* Bilingual v13.1 — mobile overflow correction */
@media(max-width:980px){
  .maw-page-layout{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .maw-rich-content,
  .maw-page-aside,
  .maw-page-hero-grid>*{
    min-width:0;
    width:100%;
    max-width:100%;
  }
}
@media(max-width:700px){
  .maw-brand-chips{
    left:auto!important;
    right:auto!important;
    width:100%;
    min-width:0;
  }
  .maw-brand-chips span{
    min-width:0;
    overflow-wrap:break-word;
  }
  .maw-page-title,
  .maw-page-lead,
  .maw-brand-panel{
    min-width:0;
    width:100%;
    max-width:100%;
  }
}


/* Bilingual v13.2 — RTL trust-grid separators */
body.rtl .trust-grid>div,
html[dir="rtl"] .trust-grid>div{
  border-right:0;
  border-left:1px solid rgba(0,107,79,.08);
}
body.rtl .trust-grid>div:last-child,
html[dir="rtl"] .trust-grid>div:last-child{
  border-left:0;
}
