/* Shared visual polish, responsive typography, Mushaf, and legal UI. */
/* v13.0.1-home — Production homepage visual polish based on the approved launch direction. */
.site-announcement{
    min-height:34px;
    display:flex;
    align-items:center;
    color:#f7fbf8;
    background:linear-gradient(90deg,#023a20,#075f36 52%,#023a20);
    border-bottom:1px solid rgba(255,255,255,.08);
    font-size:11px;
    font-weight:750;
}
.site-announcement-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:34px}
.site-announcement-inner>span,.site-announcement-inner>a{display:inline-flex;align-items:center;gap:7px}
.site-announcement-inner>span i{color:#e2b341;font-size:10px}
.site-announcement-inner>a{color:#ffe39a;font-weight:900}
.site-announcement-inner>a:hover{color:#fff}

.site-header-v2{background:rgba(255,255,255,.97);box-shadow:0 4px 24px rgba(3,75,40,.045)}
.site-header-v2 .nav-wrap{min-height:80px;position:relative;gap:20px}
.site-header-v2 .brand{flex:0 0 auto}
.site-header-v2 .brand img{width:202px;height:58px;object-fit:contain}
.public-nav{gap:15px;font-size:12.5px;white-space:nowrap}
.public-nav>a:not(.btn){position:relative;min-height:40px;display:inline-flex;align-items:center;gap:6px;color:#34483e}
.public-nav>a:not(.btn)::after{content:"";position:absolute;inset-inline:12%;bottom:2px;height:2px;border-radius:999px;background:var(--gold-500);transform:scaleX(0);transition:transform .2s ease}
.public-nav>a:not(.btn):hover::after,.public-nav>a.active::after{transform:scaleX(1)}
.public-nav>a.active{color:var(--green-900);font-weight:900}
.public-nav-divider{width:1px;height:22px;background:var(--line);margin-inline:1px}
.public-login-link{padding-inline:9px!important;border:1px solid #d8e1db;border-radius:10px;color:var(--green-900)!important;font-weight:850!important}
.public-login-link::after,.public-lang::after{display:none!important}
.public-start-link{min-height:40px;padding-inline:14px!important;border-color:#c89420!important;background:linear-gradient(180deg,#e4b03c,#c7921e)!important;color:#fff!important;box-shadow:0 8px 18px rgba(185,131,14,.2)!important}
.public-start-link:hover{background:linear-gradient(180deg,#edbd50,#b98213)!important}
.public-lang{width:40px;min-width:40px!important;height:40px;min-height:40px!important;border:1px solid #d9e2dc!important;border-radius:10px!important;color:var(--green-900)!important;background:#fff;font-weight:900!important}
.public-nav-backdrop{display:none}

.home-showcase{overflow:clip;background:#fff}
.home-hero{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(180deg,#fffdf8 0%,#f8f8f2 100%);border-bottom:1px solid #ece9df}
.home-hero::before{content:"";position:absolute;inset:-10% -6% auto auto;width:460px;height:460px;border-radius:50%;background:radial-gradient(circle,rgba(218,158,18,.11),transparent 66%);z-index:-1}
.home-hero::after{content:"";position:absolute;inset:auto 0 0 0;height:55%;opacity:.18;z-index:-1;background-image:radial-gradient(circle at 1px 1px,rgba(3,75,40,.18) 1px,transparent 0);background-size:24px 24px;mask-image:linear-gradient(to top,#000,transparent)}
.home-hero-grid{min-height:575px;display:grid;grid-template-columns:minmax(0,.92fr) minmax(460px,1.08fr);gap:54px;align-items:center;padding-block:48px 50px}
.home-hero-copy{position:relative;z-index:3}
.home-kicker,.home-section-heading>span,.home-final-card>div:nth-child(2)>span{display:inline-flex;align-items:center;gap:9px;color:var(--gold-600);font-size:12px;font-weight:900;letter-spacing:.015em}
.home-kicker::before,.home-section-heading>span::before,.home-final-card>div:nth-child(2)>span::before{content:"";width:30px;height:1.5px;border-radius:99px;background:currentColor}
.home-hero-copy h1{max-width:660px;margin:12px 0 17px;color:var(--green-900);font-size:clamp(45px,5.3vw,72px);font-weight:900;line-height:1.2;letter-spacing:-.035em;text-wrap:balance}
html[dir="ltr"] .home-hero-copy h1{line-height:1.08}
.home-hero-copy>p{max-width:630px;margin:0 0 24px;color:#53625a;font-size:16px;line-height:1.95}
.home-hero-actions{display:flex;flex-wrap:wrap;gap:11px;margin-bottom:16px}
.home-hero-actions .btn{min-height:47px;border-radius:10px;padding-inline:20px;font-size:13px}
.home-primary-cta{min-width:174px}
.home-secondary-cta{border-color:#98aa9f;background:rgba(255,255,255,.72)}
.home-secondary-cta i{color:var(--green-900)}
.home-hero-note{display:flex;align-items:center;gap:8px;color:#6d7d74;font-size:11px;font-weight:750}
.home-hero-note i{color:var(--green-700)}

.home-hero-visual{position:relative;min-height:470px;display:flex;align-items:center;justify-content:center;padding:8px 12px 18px}
.home-hero-visual::before{content:"";position:absolute;width:86%;height:86%;border-radius:46% 54% 52% 48% / 43% 44% 56% 57%;background:linear-gradient(145deg,rgba(3,75,40,.08),rgba(218,158,18,.13));transform:rotate(-4deg)}
.home-hero-photo{position:relative;width:min(100%,535px);height:405px;overflow:hidden;border:1px solid rgba(185,131,14,.22);border-radius:34px 34px 96px 34px;background:#eee9db;box-shadow:0 28px 70px rgba(3,75,40,.17)}
html[dir="ltr"] .home-hero-photo{border-radius:34px 34px 34px 96px}
.home-hero-photo>img{width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.92) contrast(.98)}
.home-hero-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 52%,rgba(255,255,255,.14));pointer-events:none}
.home-hero-fallback{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(circle at 18% 18%,rgba(218,158,18,.22),transparent 26%),linear-gradient(145deg,#e9eee3,#f6f0df 55%,#ddd0ad)}
.home-hero-fallback::before,.home-hero-fallback::after{content:"";position:absolute;border:1px solid rgba(3,75,40,.08);border-radius:50%}
.home-hero-fallback::before{width:320px;height:320px}
.home-hero-fallback::after{width:420px;height:420px}
.home-hero-fallback>img{position:absolute;top:32px;inset-inline-start:32px;width:176px;filter:drop-shadow(0 8px 18px rgba(3,75,40,.08))}
.home-fallback-halo{width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.52);box-shadow:0 0 0 30px rgba(255,255,255,.2)}
.home-fallback-quran{position:absolute;inset-inline-end:64px;bottom:66px;width:150px;height:122px;display:grid;place-items:center;border-radius:28px 28px 46px 28px;background:linear-gradient(145deg,#0b7243,#034b28);color:#f6d26c;font-size:58px;box-shadow:0 24px 45px rgba(3,75,40,.25);transform:rotate(-7deg)}
html[dir="rtl"] .home-fallback-quran{transform:rotate(7deg)}
.home-live-card{position:absolute;z-index:4;inset-inline-start:4px;bottom:15px;width:min(76%,315px);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;padding:12px 14px;border:1px solid rgba(3,75,40,.12);border-radius:15px;background:rgba(255,255,255,.96);box-shadow:0 16px 36px rgba(3,75,40,.15);backdrop-filter:blur(10px)}
.home-live-avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:var(--green-100);color:var(--green-900);font-size:16px}
.home-live-card>div:nth-child(2){min-width:0;display:grid;line-height:1.35}
.home-live-card>div:nth-child(2)>span{display:flex;align-items:center;gap:6px;color:#12824d;font-size:9px;font-weight:900;text-transform:uppercase}
.home-live-card>div:nth-child(2)>span i{width:6px;height:6px;border-radius:50%;background:#22a866;box-shadow:0 0 0 4px rgba(34,168,102,.12)}
.home-live-card strong{margin-top:3px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-live-card small{color:var(--ink-500);font-size:9px}
.home-live-camera{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--green-900);color:#fff;font-size:12px}
.home-quran-card{position:absolute;z-index:4;top:28px;inset-inline-end:0;display:flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid rgba(185,131,14,.22);border-radius:13px;background:#fff9e9;color:#79530a;box-shadow:0 12px 28px rgba(95,68,12,.1);font-size:10px;font-weight:900}
.home-quran-card i{font-size:18px;color:var(--gold-600)}

.home-trust-strip{position:relative;z-index:4;background:rgba(255,255,255,.97);border-bottom:1px solid #e9ece8;box-shadow:0 8px 22px rgba(3,75,40,.025)}
.home-trust-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-height:84px}
.home-trust-grid article{display:flex;align-items:center;justify-content:center;gap:11px;padding:14px 18px;position:relative}
.home-trust-grid article:not(:last-child)::after{content:"";position:absolute;inset-inline-end:0;top:23%;width:1px;height:54%;background:#ebeeec}
.home-trust-grid article>span{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border:1px solid #eadcb8;border-radius:50%;background:#fffdf8;color:var(--gold-600);font-size:15px}
.home-trust-grid article>div{display:grid;line-height:1.35}
.home-trust-grid strong{color:var(--green-900);font-size:11px}
.home-trust-grid small{margin-top:3px;color:#6f7e75;font-size:9px}

.home-section{position:relative;padding-block:68px}
.home-section-heading{max-width:760px;margin-bottom:27px}
.home-section-heading-centered{text-align:center;margin-inline:auto;margin-bottom:31px}
.home-section-heading-centered>span{justify-content:center}
.home-section-heading-centered>span::after{content:"";width:30px;height:1.5px;border-radius:99px;background:currentColor}
.home-section-heading-centered>span::before{display:none}
.home-section-heading h2{margin:6px 0 7px;color:var(--green-900);font-size:clamp(28px,3.6vw,42px);line-height:1.25;letter-spacing:-.025em;text-wrap:balance}
.home-section-heading p{max-width:690px;margin:0;color:#68776f;font-size:13px;line-height:1.8}
.home-section-heading-centered p{margin-inline:auto}
.home-section-heading-split{max-width:none;display:flex;align-items:end;justify-content:space-between;gap:28px}
.home-section-heading-split>div{max-width:720px}
.home-text-link{display:inline-flex;align-items:center;gap:8px;color:var(--gold-600);font-size:12px;font-weight:900;white-space:nowrap}
.home-text-link:hover{color:var(--green-900)}
.home-centered-action{display:flex;justify-content:center;margin-top:24px}

.home-programs-section{overflow:hidden;background:linear-gradient(180deg,#fff 0%,#fffdf9 100%)}
.home-programs-section::before,.home-programs-section::after{content:"";position:absolute;width:330px;height:330px;opacity:.28;pointer-events:none;background-image:radial-gradient(circle at 50% 50%,transparent 55%,rgba(218,158,18,.12) 56% 57%,transparent 58%),linear-gradient(45deg,transparent 48%,rgba(3,75,40,.05) 49% 51%,transparent 52%);background-size:70px 70px}
.home-programs-section::before{top:35px;inset-inline-start:-180px}
.home-programs-section::after{bottom:10px;inset-inline-end:-190px}
.home-program-grid{position:relative;z-index:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.home-program-card{min-height:248px;display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);overflow:hidden;border:1px solid #e0e5e1;border-radius:13px;background:#fff;box-shadow:0 10px 28px rgba(3,75,40,.045);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.home-program-card:hover{transform:translateY(-3px);border-color:#d5c18b;box-shadow:0 18px 38px rgba(3,75,40,.08)}
.home-program-card.is-reverse .home-program-media{order:2}
.home-program-media{position:relative;min-height:248px;overflow:hidden;background:#f0eee4}
.home-program-media::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.08),transparent)}
.home-program-media img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.home-program-card:hover .home-program-media img{transform:scale(1.035)}
.home-program-media.is-placeholder{display:grid;place-items:center;background:radial-gradient(circle at 30% 25%,rgba(218,158,18,.22),transparent 28%),linear-gradient(145deg,#e6eee5,#f7f0de)}
.home-program-placeholder-mark{width:112px;height:112px;display:grid;place-items:center;border-radius:30px;background:rgba(255,255,255,.72);border:1px solid rgba(3,75,40,.1);color:var(--green-900);font-size:47px;box-shadow:0 20px 44px rgba(3,75,40,.1)}
.home-program-content{position:relative;padding:22px 22px 20px;display:flex;flex-direction:column;align-items:flex-start}
.home-program-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:9px;background:#fff6dd;color:var(--gold-600);font-size:15px}
.home-program-meta{width:100%;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:10px;color:#7b887f;font-size:9px;font-weight:800}
.home-program-content h3{margin:7px 0 4px;color:var(--green-900);font-size:20px;line-height:1.35}
.home-program-content p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 14px;color:#606f67;font-size:11.5px;line-height:1.8}
.home-outline-link{margin-top:auto;display:inline-flex;align-items:center;gap:8px;min-height:36px;padding-inline:13px;border:1px solid #d4a330;border-radius:8px;color:#8b620b;background:#fffdf7;font-size:10px;font-weight:900}
.home-outline-link:hover{background:#fff4d4;color:var(--green-900)}

.home-pricing-section{background:#fbfbf8;border-block:1px solid #eceee9}
.home-pricing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch;padding-top:9px}
.home-price-card{position:relative;display:flex;flex-direction:column;min-height:410px;padding:26px 24px 23px;border:1px solid #e1e6e2;border-radius:13px;background:#fff;box-shadow:0 8px 24px rgba(3,75,40,.04);transition:transform .2s ease,box-shadow .2s ease}
.home-price-card:hover{transform:translateY(-3px);box-shadow:0 17px 38px rgba(3,75,40,.08)}
.home-price-card.is-featured{border:1.5px solid #d5a12a;box-shadow:0 16px 38px rgba(185,131,14,.12)}
.home-popular-badge{position:absolute;top:-12px;inset-inline-start:50%;transform:translateX(-50%);padding:4px 13px;border-radius:5px;background:var(--gold-600);color:#fff;font-size:9px;font-weight:900;white-space:nowrap;box-shadow:0 6px 12px rgba(185,131,14,.18)}
.home-price-icon{width:42px;height:42px;display:grid;place-items:center;margin-inline:auto;border-radius:12px;background:#fff8e7;color:var(--gold-600);font-size:19px}
.home-price-card>small{display:block;margin-top:9px;text-align:center;color:#708078;font-size:9px;font-weight:800}
.home-price-card h3{margin:4px 0 8px;text-align:center;color:var(--green-900);font-size:17px}
.home-price-main{display:flex;align-items:baseline;justify-content:center;gap:6px;margin-bottom:15px;color:var(--green-900)}
.home-price-main strong{font-size:33px;line-height:1;font-weight:900}
.home-price-main span{color:var(--gold-600);font-size:12px;font-weight:900}
.home-price-card ul{list-style:none;margin:0 0 19px;padding:0;display:grid;gap:9px;color:#53635a;font-size:10.5px}
.home-price-card li{display:flex;align-items:flex-start;gap:8px}
.home-price-card li i{margin-top:4px;color:#d09a20;font-size:9px}
.home-price-card li b{color:var(--green-900)}
.home-price-card .btn{margin-top:auto;min-height:42px;border-radius:8px;font-size:11px}

.home-journey-section{overflow:hidden;background:#fff}
.home-journey-grid{position:relative;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.home-journey-grid::before{content:"";position:absolute;top:44px;inset-inline:8%;height:1px;background:linear-gradient(90deg,rgba(185,131,14,.2),rgba(3,75,40,.22),rgba(185,131,14,.2));z-index:0}
.home-journey-grid li{position:relative;z-index:1;text-align:center;padding:2px 9px}
.home-step-number{position:absolute;top:-2px;inset-inline-start:calc(50% + 23px);width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:var(--green-900);color:#fff;font-size:8px;font-weight:900;box-shadow:0 0 0 3px #fff}
.home-step-icon{width:82px;height:82px;display:grid;place-items:center;margin-inline:auto;border:1px solid #eadfc5;border-radius:50%;background:#fff;color:var(--gold-600);font-size:27px;box-shadow:0 8px 22px rgba(3,75,40,.035)}
.home-journey-grid h3{margin:13px 0 4px;color:var(--green-900);font-size:13px}
.home-journey-grid p{margin:0;color:#68766e;font-size:9.8px;line-height:1.7}

.home-benefits-section{background:linear-gradient(180deg,#fbfaf6,#fffdf9);border-block:1px solid #eee9dd}
.home-benefit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.home-benefit-grid article{min-height:190px;padding:22px 19px;text-align:center;border:1px solid #e5e8e5;border-radius:12px;background:rgba(255,255,255,.92);box-shadow:0 8px 23px rgba(3,75,40,.035)}
.home-benefit-grid article>span{width:52px;height:52px;display:grid;place-items:center;margin-inline:auto;border-radius:14px;background:#fff8e7;color:var(--gold-600);font-size:22px}
.home-benefit-grid h3{margin:12px 0 6px;color:var(--green-900);font-size:14px}
.home-benefit-grid p{margin:0;color:#65746c;font-size:10.5px;line-height:1.75}

.home-reviews-section{background:#fff}
.home-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.home-review-card{position:relative;margin:0;min-height:190px;padding:21px 21px 19px;border:1px solid #e3e6e4;border-radius:11px;background:#fff;box-shadow:0 8px 24px rgba(3,75,40,.035)}
.home-quote-mark{position:absolute;top:16px;inset-inline-end:18px;color:#d9a52d;font-size:17px}
.home-review-card>p{margin:7px 0 13px;padding-inline-end:22px;color:#526159;font-size:11.5px;line-height:1.9}
.home-review-stars{color:#d49d1c;font-size:11px;letter-spacing:.07em;margin-bottom:12px}
.home-review-card footer{display:flex;align-items:center;gap:9px;margin-top:auto}
.home-review-card footer>span{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#eaf3ec,#fff5d9);color:var(--green-900);font-weight:900}
.home-review-card footer>div{display:grid;line-height:1.45}
.home-review-card footer strong{color:var(--green-900);font-size:10.5px}
.home-review-card footer small{color:#87938c;font-size:8.5px}

.home-articles-section{background:#fbfbf8;border-block:1px solid #eceee9}
.home-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.home-article-card{overflow:hidden;border:1px solid #e0e4e1;border-radius:11px;background:#fff;box-shadow:0 8px 24px rgba(3,75,40,.035);transition:transform .2s ease,box-shadow .2s ease}
.home-article-card:hover{transform:translateY(-3px);box-shadow:0 17px 35px rgba(3,75,40,.075)}
.home-article-media{height:166px;display:block;overflow:hidden;background:#e9eee9}
.home-article-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.home-article-card:hover .home-article-media img{transform:scale(1.035)}
.home-article-media.is-placeholder{display:grid;place-items:center;background:radial-gradient(circle at 20% 20%,rgba(218,158,18,.2),transparent 28%),linear-gradient(145deg,#eaf2ec,#f8f1df)}
.home-article-media.is-placeholder span{width:70px;height:70px;display:grid;place-items:center;border-radius:20px;background:rgba(255,255,255,.7);color:var(--green-900);font-size:27px}
.home-article-content{padding:17px}
.home-article-content>small{color:var(--gold-600);font-size:8.5px;font-weight:900}
.home-article-content h3{margin:5px 0 6px;color:#263c31;font-size:14px;line-height:1.55}
.home-article-content p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 9px;color:#738078;font-size:9.7px;line-height:1.65}

.home-faq-section{background:#fff}
.home-faq-wrap{display:grid;grid-template-columns:minmax(250px,.72fr) minmax(0,1.28fr);gap:54px;align-items:start}
.home-faq-wrap>.home-section-heading{position:sticky;top:112px;margin:0}
.home-faq-list{display:grid;gap:8px}
.home-faq-list details{border:1px solid #e2e6e3;border-radius:11px;background:#fff;overflow:hidden}
.home-faq-list summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 17px;color:var(--green-900);font-size:11.5px;font-weight:850;cursor:pointer}
.home-faq-list summary::-webkit-details-marker{display:none}
.home-faq-list summary i{font-size:10px;color:var(--gold-600);transition:transform .2s ease}
.home-faq-list details[open] summary i{transform:rotate(45deg)}
.home-faq-list details p{margin:0;padding:0 17px 16px;color:#66756d;font-size:10.5px;line-height:1.85}

.home-final-cta{padding:0 0 44px;background:#fff}
.home-final-card{position:relative;min-height:148px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;overflow:hidden;padding:27px 34px;border-radius:15px;color:#fff;background:linear-gradient(105deg,#04351f 0%,#075c36 56%,#034126 100%);box-shadow:0 16px 38px rgba(3,75,40,.16)}
.home-final-card::after{content:"";position:absolute;inset:0;opacity:.13;background-image:radial-gradient(circle at 1px 1px,#fff 1px,transparent 0);background-size:22px 22px;mask-image:linear-gradient(90deg,#000,transparent 60%);pointer-events:none}
.home-final-ornament{position:relative;z-index:1;width:96px;height:96px;display:grid;place-items:center;border-radius:26px;background:rgba(255,255,255,.08);color:#e6bb53;font-size:47px;transform:rotate(-5deg)}
html[dir="rtl"] .home-final-ornament{transform:rotate(5deg)}
.home-final-card>div:nth-child(2){position:relative;z-index:1}
.home-final-card>div:nth-child(2)>span{color:#f0c85f}
.home-final-card h2{margin:4px 0 2px;color:#fff;font-size:clamp(23px,3vw,35px);line-height:1.25}
.home-final-card p{margin:0;color:#d4e3da;font-size:11px}
.home-final-card>.btn{position:relative;z-index:1;min-width:155px;border-radius:9px;font-size:11px}

.public-footer{background:#fff;color:var(--ink-700);border-top:1px solid #e8ece9}
.public-footer .footer-main-grid{padding-block:38px;grid-template-columns:1.8fr repeat(3,1fr);gap:34px}
.public-footer .footer-main-grid strong{color:var(--green-900);font-size:12px;margin-bottom:5px}
.public-footer .footer-main-grid a{color:#68786f;font-size:10.5px}
.public-footer .footer-main-grid a:hover{color:var(--gold-600)}
.public-footer .footer-brand-block img{width:215px;filter:none;margin-bottom:8px}
.public-footer .footer-brand-block p{max-width:360px;color:#6f7f76;font-size:10.5px;line-height:1.8}
.public-footer .footer-socials{gap:7px;margin-top:6px}
.public-footer .footer-socials a{width:31px;height:31px;display:grid;place-items:center;padding:0;border:1px solid #d8e1db;border-radius:8px;color:var(--green-900);background:#fff}
.public-footer .footer-socials a:hover{border-color:#cda13e;background:#fff8e6;color:var(--gold-600)}
.footer-bottom-bar{background:#064328;color:#c8ddd0}
.public-footer .footer-bottom{padding-block:10px;border:0;color:#c0d4c6;font-size:9px}

@media (max-width:1180px){
    .site-header-v2 .brand img{width:180px}
    .public-nav{gap:10px;font-size:11.5px}
    .home-hero-grid{grid-template-columns:minmax(0,.9fr) minmax(430px,1.1fr);gap:34px}
    .home-hero-copy h1{font-size:clamp(43px,5vw,61px)}
    .home-program-content{padding:19px}
}

@media (max-width:1080px){
    .site-header-v2 .nav-toggle{display:grid;place-items:center;margin-inline-start:auto}
    .site-header-v2 .public-nav{display:none;position:absolute;z-index:60;top:calc(100% + 10px);inset-inline-end:0;inset-inline-start:auto;width:min(390px,calc(100vw - 32px));max-height:calc(100vh - 135px);overflow:auto;padding:15px;flex-direction:column;align-items:stretch;gap:4px;border:1px solid #dfe6e1;border-radius:16px;background:#fff;box-shadow:0 24px 65px rgba(3,45,25,.18)}
    .site-header-v2 .public-nav.is-open{display:flex}
    .site-header-v2 .public-nav>a:not(.btn){width:100%;min-height:42px;padding-inline:12px;border-radius:9px}
    .site-header-v2 .public-nav>a:not(.btn)::after{display:none}
    .site-header-v2 .public-nav>a.active,.site-header-v2 .public-nav>a:not(.btn):hover{background:var(--green-50);color:var(--green-900)}
    .public-nav-divider{width:100%;height:1px;margin-block:6px;background:var(--line)}
    .public-login-link{border:0!important}
    .public-start-link{width:100%;min-height:44px!important;margin-top:4px}
    .public-lang{width:100%!important;min-width:100%!important;justify-content:center!important}
    .public-nav-backdrop:not([hidden]){display:block;position:fixed;z-index:35;inset:0;background:rgba(2,27,16,.3);backdrop-filter:blur(2px)}
    body.public-nav-open{overflow:hidden}
    .home-hero-grid{grid-template-columns:1fr 1fr;gap:28px;min-height:530px}
    .home-hero-photo{height:365px}
    .home-hero-visual{min-height:420px}
    .home-program-grid{grid-template-columns:1fr}
    .home-program-card{grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr)}
    .home-program-card.is-reverse .home-program-media{order:0}
    .home-benefit-grid{grid-template-columns:repeat(2,1fr)}
    .public-footer .footer-main-grid{grid-template-columns:1.6fr 1fr 1fr}
    .public-footer .footer-main-grid>div:last-child{display:none}
}

@media (max-width:860px){
    .home-hero-grid{grid-template-columns:1fr;gap:18px;padding-block:40px 44px}
    .home-hero-copy{max-width:680px;margin-inline:auto;text-align:center}
    .home-hero-copy h1,.home-hero-copy>p{margin-inline:auto}
    .home-kicker{justify-content:center}
    .home-kicker::after{content:"";width:30px;height:1.5px;border-radius:99px;background:currentColor}
    .home-kicker::before{display:none}
    .home-hero-actions,.home-hero-note{justify-content:center}
    .home-hero-visual{min-height:410px;width:min(100%,620px);margin-inline:auto}
    .home-hero-photo{width:min(100%,540px);height:365px}
    .home-trust-grid{grid-template-columns:repeat(2,1fr)}
    .home-trust-grid article:nth-child(2)::after{display:none}
    .home-trust-grid article:nth-child(-n+2){border-bottom:1px solid #edf0ee}
    .home-pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .home-price-card.is-featured{order:-1}
    .home-journey-grid{grid-template-columns:repeat(3,1fr);row-gap:28px}
    .home-journey-grid::before{display:none}
    .home-review-grid,.home-article-grid{grid-template-columns:repeat(2,1fr)}
    .home-review-grid>*:last-child,.home-article-grid>*:last-child{grid-column:1/-1;max-width:520px;width:100%;margin-inline:auto}
    .home-faq-wrap{grid-template-columns:1fr;gap:22px}
    .home-faq-wrap>.home-section-heading{position:static;max-width:720px}
    .home-final-card{grid-template-columns:auto 1fr;gap:18px}
    .home-final-card>.btn{grid-column:2;justify-self:start}
}

@media (max-width:640px){
    .container{width:min(calc(100% - 24px),var(--container))}
    .site-announcement{font-size:9px}
    .site-announcement-inner{min-height:32px;gap:10px}
    .site-announcement-inner>span i{display:none}
    .site-announcement-inner>a{font-size:9px}
    .site-header-v2 .nav-wrap{min-height:68px}
    .site-header-v2 .brand img{width:158px;height:52px}
    .site-header-v2 .nav-toggle{width:40px;height:40px;border-radius:10px}
    .site-header-v2 .public-nav{top:calc(100% + 7px);width:calc(100vw - 24px);inset-inline:0;margin-inline:auto;max-height:calc(100vh - 115px)}
    .home-hero-grid{padding-block:32px 34px}
    .home-hero-copy h1{font-size:clamp(36px,11.3vw,49px);line-height:1.24;letter-spacing:-.03em}
    .home-hero-copy>p{font-size:13px;line-height:1.9}
    .home-hero-actions{display:grid;grid-template-columns:1fr;max-width:340px;margin-inline:auto;margin-bottom:14px}
    .home-hero-actions .btn{width:100%;min-height:46px}
    .home-hero-note{align-items:flex-start;font-size:9.5px;line-height:1.6}
    .home-hero-visual{min-height:330px;padding:3px 4px 15px}
    .home-hero-photo{height:285px;border-radius:24px 24px 66px 24px}
    html[dir="ltr"] .home-hero-photo{border-radius:24px 24px 24px 66px}
    .home-hero-fallback>img{top:22px;inset-inline-start:22px;width:135px}
    .home-fallback-halo{width:150px;height:150px}
    .home-fallback-quran{inset-inline-end:38px;bottom:42px;width:110px;height:92px;font-size:42px}
    .home-live-card{bottom:2px;inset-inline-start:0;width:min(86%,285px);padding:9px 10px}
    .home-live-avatar{width:36px;height:36px}
    .home-quran-card{top:10px;padding:8px 10px}
    .home-quran-card span{display:none}
    .home-trust-grid article{justify-content:flex-start;padding:12px 8px;gap:8px}
    .home-trust-grid article>span{width:35px;height:35px;flex-basis:35px;font-size:12px}
    .home-trust-grid strong{font-size:9.5px}
    .home-trust-grid small{font-size:8px}
    .home-section{padding-block:50px}
    .home-section-heading{margin-bottom:22px}
    .home-section-heading h2{font-size:clamp(25px,8vw,34px)}
    .home-section-heading p{font-size:11.5px}
    .home-program-card{grid-template-columns:1fr;min-height:0}
    .home-program-card.is-reverse .home-program-media{order:0}
    .home-program-media{min-height:190px;height:190px}
    .home-program-content{padding:18px}
    .home-program-content p{-webkit-line-clamp:4}
    .home-pricing-grid{grid-template-columns:1fr;gap:16px}
    .home-price-card{min-height:0;padding:24px 21px 20px}
    .home-price-card.is-featured{order:0}
    .home-journey-grid{grid-template-columns:repeat(2,1fr);gap:24px 10px}
    .home-step-icon{width:70px;height:70px;font-size:23px}
    .home-step-number{inset-inline-start:calc(50% + 18px)}
    .home-benefit-grid,.home-review-grid,.home-article-grid{grid-template-columns:1fr}
    .home-review-grid>*:last-child,.home-article-grid>*:last-child{grid-column:auto;max-width:none}
    .home-section-heading-split{display:grid;gap:10px}
    .home-article-media{height:180px}
    .home-faq-list summary{font-size:10.8px;padding:14px}
    .home-faq-list details p{padding-inline:14px;padding-bottom:14px;font-size:10px}
    .home-final-cta{padding-bottom:24px}
    .home-final-card{grid-template-columns:1fr;text-align:center;padding:25px 20px;gap:12px}
    .home-final-ornament{width:72px;height:72px;margin-inline:auto;font-size:34px}
    .home-final-card>div:nth-child(2)>span{justify-content:center}
    .home-final-card>div:nth-child(2)>span::before{display:none}
    .home-final-card h2{font-size:26px}
    .home-final-card p{font-size:10px}
    .home-final-card>.btn{grid-column:auto;justify-self:stretch;width:100%}
    .public-footer .footer-main-grid{grid-template-columns:1fr 1fr;gap:28px 18px;padding-block:30px}
    .public-footer .footer-brand-block{grid-column:1/-1}
    .public-footer .footer-main-grid>div:last-child{display:grid}
    .public-footer .footer-brand-block img{width:190px}
    .public-footer .footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:8px}
}

@media (max-width:430px){
    .site-announcement-inner>span{max-width:62%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .home-hero-copy h1{font-size:35px}
    .home-hero-photo{height:260px}
    .home-live-card{width:92%}
    .home-trust-grid{grid-template-columns:1fr 1fr}
    .home-trust-grid article{min-width:0}
    .home-trust-grid article>div{min-width:0}
    .home-trust-grid strong,.home-trust-grid small{overflow:hidden;text-overflow:ellipsis}
    .home-journey-grid{grid-template-columns:1fr}
    .home-step-number{inset-inline-start:calc(50% + 20px)}
    .public-footer .footer-main-grid{grid-template-columns:1fr}
    .public-footer .footer-brand-block{grid-column:auto}
}

@media (prefers-reduced-motion:reduce){
    .home-program-card,.home-article-card,.home-price-card,.home-program-media img,.home-article-media img,.public-nav>a:not(.btn)::after,.home-faq-list summary i{transition:none!important}
}

/* Explicit hero reading order: copy on the language-leading side, visual opposite. */
html[dir="rtl"] .home-hero-copy{grid-column:2}
html[dir="rtl"] .home-hero-visual{grid-column:1}
html[dir="ltr"] .home-hero-copy{grid-column:1}
html[dir="ltr"] .home-hero-visual{grid-column:2}
@media (max-width:860px){
    html[dir="rtl"] .home-hero-copy,html[dir="rtl"] .home-hero-visual,
    html[dir="ltr"] .home-hero-copy,html[dir="ltr"] .home-hero-visual{grid-column:auto}
}

/* v13.0.2-homefix — visual correction pass against the approved homepage reference. */
.public-home-page{--container:1240px;background:#fffdf9}
.public-home-page main{overflow:hidden}
.public-home-page .site-announcement{min-height:32px;font-size:12px}
.public-home-page .site-announcement-inner{min-height:32px}
.public-home-page .site-header-v2{box-shadow:0 3px 18px rgba(3,75,40,.055);border-bottom-color:#e7ebe8}
.public-home-page .site-header-v2 .nav-wrap{min-height:72px;gap:18px}
.public-home-page .site-header-v2 .brand img{width:194px;height:54px}
.public-home-page .public-nav{gap:17px;font-size:13px}
.public-home-page .public-nav>a:not(.btn){min-height:38px}
.public-home-page .public-login-link{min-height:40px;padding-inline:12px!important}
.public-home-page .public-start-link{min-height:40px!important;padding-inline:16px!important}

/* Hero: compact split composition, visually integrated like the approved reference. */
.public-home-page .home-hero{background:
    radial-gradient(circle at 88% 18%,rgba(218,158,18,.13),transparent 24%),
    linear-gradient(90deg,#f6f0e2 0%,#fffaf0 42%,#fffdf8 100%);
    border-bottom:0
}
.public-home-page .home-hero::before{width:340px;height:340px;inset:-120px -70px auto auto;opacity:.8}
.public-home-page .home-hero::after{height:100%;opacity:.08;background-size:28px 28px;mask-image:linear-gradient(90deg,#000,transparent 55%)}
.public-home-page .home-hero-grid{min-height:420px;grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr);gap:0;padding-block:0;align-items:stretch}
.public-home-page .home-hero-copy{display:flex;flex-direction:column;justify-content:center;padding:42px 30px 42px 26px}
html[dir="rtl"] .public-home-page .home-hero-copy{padding-inline:42px 16px}
html[dir="ltr"] .public-home-page .home-hero-copy{padding-inline:16px 42px}
.public-home-page .home-kicker{font-size:13px;gap:10px}
.public-home-page .home-kicker::before{width:38px}
.public-home-page .home-hero-copy h1{max-width:610px;margin:9px 0 12px;font-size:clamp(44px,4.45vw,61px);line-height:1.14;letter-spacing:-.035em}
.public-home-page .home-hero-copy>p{max-width:590px;margin-bottom:20px;font-size:15px;line-height:1.8;color:#526159}
.public-home-page .home-hero-actions{gap:12px;margin-bottom:12px}
.public-home-page .home-hero-actions .btn{min-height:46px;padding-inline:21px;border-radius:8px;font-size:13px}
.public-home-page .home-primary-cta{min-width:176px}
.public-home-page .home-secondary-cta{min-width:154px;background:#fff;border-color:#809b8b}
.public-home-page .home-hero-note{font-size:11px;color:#5f7067}
.public-home-page .home-hero-visual{min-height:420px;align-self:stretch;padding:0;overflow:visible}
.public-home-page .home-hero-visual::before{display:none}
.public-home-page .home-hero-photo{width:100%;max-width:none;height:100%;min-height:420px;border:0;border-radius:0;background:#eee4cf;box-shadow:none;overflow:hidden}
.public-home-page .home-hero-photo>img{object-position:center center;filter:saturate(.96) contrast(1.01)}
.public-home-page .home-hero-photo::after{background:linear-gradient(90deg,rgba(255,253,248,0) 64%,#fffdf8 100%)}
html[dir="ltr"] .public-home-page .home-hero-photo::after{background:linear-gradient(270deg,rgba(255,253,248,0) 64%,#fffdf8 100%)}
.public-home-page .home-live-card,.public-home-page .home-quran-card{display:none}

/* Trust strip: denser, more readable, directly attached to hero. */
.public-home-page .home-trust-strip{box-shadow:0 8px 22px rgba(3,75,40,.035);border-block:1px solid #e7e8e2}
.public-home-page .home-trust-grid{min-height:72px}
.public-home-page .home-trust-grid article{gap:12px;padding:10px 18px}
.public-home-page .home-trust-grid article>span{width:40px;height:40px;flex-basis:40px;font-size:16px;background:#fffaf0}
.public-home-page .home-trust-grid strong{font-size:12.5px;line-height:1.35}
.public-home-page .home-trust-grid small{font-size:10.5px;line-height:1.35}

/* Shared vertical rhythm. */
.public-home-page .home-section{padding-block:52px}
.public-home-page .home-section-heading{margin-bottom:24px}
.public-home-page .home-section-heading-centered{margin-bottom:27px}
.public-home-page .home-section-heading>span{font-size:12px}
.public-home-page .home-section-heading h2{margin:5px 0 6px;font-size:clamp(29px,3vw,38px);line-height:1.22}
.public-home-page .home-section-heading p{font-size:13px;line-height:1.7}
.public-home-page .home-text-link{font-size:12.5px}

/* Programs: larger readable cards and reference-like image/content balance. */
.public-home-page .home-programs-section{background:
    radial-gradient(circle at 2% 16%,rgba(218,158,18,.07),transparent 19%),
    radial-gradient(circle at 98% 86%,rgba(3,75,40,.055),transparent 20%),
    #fff}
.public-home-page .home-programs-section::before,.public-home-page .home-programs-section::after{opacity:.17}
.public-home-page .home-program-grid{gap:22px}
.public-home-page .home-program-grid.count-1{grid-template-columns:minmax(0,720px);justify-content:center}
.public-home-page .home-program-card{min-height:228px;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);border-radius:11px;border-color:#dddcd5;box-shadow:0 8px 22px rgba(3,75,40,.055)}
.public-home-page .home-program-media{min-height:228px}
.public-home-page .home-program-media::after{background:linear-gradient(90deg,transparent 72%,rgba(255,255,255,.15))}
.public-home-page .home-program-content{padding:21px 22px 20px}
.public-home-page .home-program-icon{width:38px;height:38px;font-size:17px;border-radius:8px}
.public-home-page .home-program-meta{margin-top:9px;font-size:10.5px}
.public-home-page .home-program-content h3{margin:7px 0 5px;font-size:21px}
.public-home-page .home-program-content p{margin-bottom:14px;font-size:13px;line-height:1.72;-webkit-line-clamp:3}
.public-home-page .home-outline-link{min-height:38px;padding-inline:14px;font-size:11.5px;border-radius:7px}

/* Pricing: compact but substantial cards. */
.public-home-page .home-pricing-section{background:#fcfbf7;border-block-color:#ece7da}
.public-home-page .home-pricing-grid{gap:20px;padding-top:7px}
.public-home-page .home-pricing-grid.count-1{grid-template-columns:minmax(0,390px);justify-content:center}
.public-home-page .home-pricing-grid.count-2{grid-template-columns:repeat(2,minmax(0,370px));justify-content:center}
.public-home-page .home-price-card{min-height:360px;padding:24px 25px 22px;border-radius:11px;box-shadow:0 8px 24px rgba(3,75,40,.05)}
.public-home-page .home-price-card.is-featured{transform:translateY(-5px);box-shadow:0 15px 34px rgba(185,131,14,.14)}
.public-home-page .home-price-card.is-featured:hover{transform:translateY(-7px)}
.public-home-page .home-price-icon{width:46px;height:46px;font-size:20px}
.public-home-page .home-price-card>small{font-size:10.5px}
.public-home-page .home-price-card h3{font-size:18px}
.public-home-page .home-price-main{margin-bottom:14px}
.public-home-page .home-price-main strong{font-size:36px}
.public-home-page .home-price-main span{font-size:13px}
.public-home-page .home-price-card ul{gap:9px;margin-bottom:18px;font-size:12.5px;line-height:1.55}
.public-home-page .home-price-card li i{font-size:10px;margin-top:5px}
.public-home-page .home-price-card .btn{min-height:43px;font-size:12px;border-radius:7px}
.public-home-page .home-popular-badge{font-size:10px;padding:5px 14px}

/* Journey: horizontal story line with legible copy. */
.public-home-page .home-journey-section{background:#fff}
.public-home-page .home-journey-grid{gap:10px}
.public-home-page .home-journey-grid::before{top:40px;inset-inline:7%;background:linear-gradient(90deg,rgba(185,131,14,.16),rgba(3,75,40,.18),rgba(185,131,14,.16))}
.public-home-page .home-step-icon{width:76px;height:76px;font-size:24px;background:#fffdf9;box-shadow:none}
.public-home-page .home-step-number{top:-4px;width:21px;height:21px;font-size:9px}
.public-home-page .home-journey-grid h3{margin:11px 0 4px;font-size:13.5px}
.public-home-page .home-journey-grid p{font-size:11px;line-height:1.65}

/* Benefits: stronger visual hierarchy, less empty vertical space. */
.public-home-page .home-benefits-section{background:linear-gradient(180deg,#fffdf8,#faf8f2)}
.public-home-page .home-benefit-grid{gap:16px}
.public-home-page .home-benefit-grid article{min-height:166px;padding:20px 18px;border-radius:10px;box-shadow:0 7px 20px rgba(3,75,40,.045)}
.public-home-page .home-benefit-grid article>span{width:48px;height:48px;font-size:20px;border-radius:10px}
.public-home-page .home-benefit-grid h3{margin:10px 0 5px;font-size:15px}
.public-home-page .home-benefit-grid p{font-size:11.5px;line-height:1.65}

/* Reviews: adaptive grid prevents dead space when CMS has fewer testimonials. */
.public-home-page .home-review-grid{gap:18px}
.public-home-page .home-review-grid.count-1{grid-template-columns:minmax(0,650px);justify-content:center}
.public-home-page .home-review-grid.count-2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:860px;margin-inline:auto}
.public-home-page .home-review-card{min-height:172px;padding:22px 23px 20px;border-radius:10px;box-shadow:0 7px 22px rgba(3,75,40,.045);display:flex;flex-direction:column}
.public-home-page .home-review-card>p{font-size:13px;line-height:1.82}
.public-home-page .home-review-stars{font-size:12px}
.public-home-page .home-review-card footer strong{font-size:12px}
.public-home-page .home-review-card footer small{font-size:10px}

/* Articles: real visual fallback and adaptive width for 1/2 entries. */
.public-home-page .home-articles-section{background:#fbfaf6}
.public-home-page .home-article-grid{gap:20px}
.public-home-page .home-article-grid.count-1{grid-template-columns:minmax(0,460px);justify-content:center}
.public-home-page .home-article-grid.count-2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:880px;margin-inline:auto}
.public-home-page .home-article-card{border-radius:10px;box-shadow:0 7px 22px rgba(3,75,40,.05)}
.public-home-page .home-article-media{height:178px}
.public-home-page .home-article-content{padding:16px 17px 18px}
.public-home-page .home-article-content>small{font-size:10px}
.public-home-page .home-article-content h3{font-size:15px;line-height:1.5}
.public-home-page .home-article-content p{font-size:11.5px;line-height:1.65}

/* FAQ and final CTA: compact, balanced, aligned with the reference. */
.public-home-page .home-faq-wrap{grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:42px;align-items:center}
html[dir="rtl"] .public-home-page .home-faq-wrap>.home-section-heading{grid-column:2}
html[dir="rtl"] .public-home-page .home-faq-list{grid-column:1;grid-row:1}
html[dir="ltr"] .public-home-page .home-faq-wrap>.home-section-heading{grid-column:1}
html[dir="ltr"] .public-home-page .home-faq-list{grid-column:2;grid-row:1}
.public-home-page .home-faq-wrap>.home-section-heading{position:static;margin:0}
.public-home-page .home-faq-list{gap:7px}
.public-home-page .home-faq-list details{border-radius:9px}
.public-home-page .home-faq-list summary{padding:14px 16px;font-size:12.5px}
.public-home-page .home-faq-list details p{padding:0 16px 15px;font-size:11.5px;line-height:1.75}
.public-home-page .home-final-cta{padding:0 0 34px}
.public-home-page .home-final-card{min-height:132px;grid-template-columns:110px 1fr auto;gap:22px;padding:22px 30px;border-radius:12px;box-shadow:0 14px 32px rgba(3,75,40,.15)}
.public-home-page .home-final-ornament{width:88px;height:88px;border-radius:18px;font-size:41px}
.public-home-page .home-final-card h2{font-size:clamp(24px,2.8vw,34px)}
.public-home-page .home-final-card p{font-size:12px}
.public-home-page .home-final-card>.btn{min-height:44px;min-width:168px;font-size:12px;border-radius:8px}

/* Footer: closer to the compact launch composition. */
.public-home-page .public-footer .footer-main-grid{padding-block:30px;gap:30px}
.public-home-page .public-footer .footer-main-grid strong{font-size:12.5px}
.public-home-page .public-footer .footer-main-grid a{font-size:11px}
.public-home-page .public-footer .footer-brand-block p{font-size:11px}
.public-home-page .public-footer .footer-bottom{font-size:9.5px}

@media (max-width:1180px){
    .public-home-page{--container:1120px}
    .public-home-page .site-header-v2 .brand img{width:176px}
    .public-home-page .public-nav{gap:11px;font-size:12px}
    .public-home-page .home-hero-copy{padding-inline:26px 16px}
    .public-home-page .home-hero-copy h1{font-size:clamp(40px,4.6vw,54px)}
}

@media (max-width:1080px){
    .public-home-page .site-header-v2 .nav-wrap{min-height:68px}
    .public-home-page .home-hero-grid{min-height:395px;grid-template-columns:1fr 1fr}
    .public-home-page .home-hero-visual,.public-home-page .home-hero-photo{min-height:395px}
    .public-home-page .home-hero-copy h1{font-size:clamp(38px,5vw,49px)}
    .public-home-page .home-program-card{grid-template-columns:minmax(220px,.86fr) minmax(0,1.14fr)}
}

@media (max-width:860px){
    .public-home-page .home-hero{background:linear-gradient(180deg,#fffaf0,#fffdf9)}
    .public-home-page .home-hero-grid{grid-template-columns:1fr;gap:0;min-height:0;padding:0}
    .public-home-page .home-hero-copy{order:1;max-width:none;padding:34px 24px 26px;text-align:center}
    .public-home-page .home-kicker{justify-content:center}
    .public-home-page .home-kicker::before{display:none}
    .public-home-page .home-kicker::after{content:"";width:32px;height:1.5px;background:currentColor}
    .public-home-page .home-hero-copy h1{max-width:650px;margin-inline:auto;font-size:clamp(36px,7vw,48px)}
    .public-home-page .home-hero-copy>p{max-width:650px;margin-inline:auto;margin-bottom:18px;font-size:14px}
    .public-home-page .home-hero-actions,.public-home-page .home-hero-note{justify-content:center}
    .public-home-page .home-hero-visual{order:2;width:100%;min-height:330px;max-width:720px;margin-inline:auto}
    .public-home-page .home-hero-photo{min-height:330px;height:330px;border-radius:16px 16px 0 0}
    .public-home-page .home-hero-photo::after{background:linear-gradient(0deg,#fffdf8 0%,transparent 25%)}
    .public-home-page .home-trust-grid{grid-template-columns:repeat(2,1fr)}
    .public-home-page .home-trust-grid article:nth-child(2)::after{display:none}
    .public-home-page .home-trust-grid article:nth-child(-n+2){border-bottom:1px solid #edf0ee}
    .public-home-page .home-program-grid,.public-home-page .home-pricing-grid.count-3{grid-template-columns:1fr 1fr}
    .public-home-page .home-pricing-grid.count-3 .home-price-card:last-child{grid-column:1/-1;width:min(100%,390px);justify-self:center}
    .public-home-page .home-benefit-grid{grid-template-columns:repeat(2,1fr)}
    .public-home-page .home-journey-grid{grid-template-columns:repeat(3,1fr);row-gap:24px}
    .public-home-page .home-journey-grid::before{display:none}
    .public-home-page .home-faq-wrap{grid-template-columns:1fr;gap:20px}
    html[dir="rtl"] .public-home-page .home-faq-wrap>.home-section-heading,
    html[dir="rtl"] .public-home-page .home-faq-list,
    html[dir="ltr"] .public-home-page .home-faq-wrap>.home-section-heading,
    html[dir="ltr"] .public-home-page .home-faq-list{grid-column:auto;grid-row:auto}
    .public-home-page .home-faq-wrap>.home-section-heading{text-align:center;margin-inline:auto}
    .public-home-page .home-final-card{grid-template-columns:88px 1fr}
    .public-home-page .home-final-card>.btn{grid-column:2;justify-self:start}
}

@media (max-width:640px){
    .public-home-page .site-announcement{font-size:9.5px}
    .public-home-page .site-header-v2 .brand img{width:156px;height:48px}
    .public-home-page .home-hero-copy{padding:27px 12px 22px}
    .public-home-page .home-hero-copy h1{font-size:clamp(34px,10.5vw,45px);line-height:1.2}
    .public-home-page .home-hero-copy>p{font-size:13px;line-height:1.75}
    .public-home-page .home-hero-actions{display:grid;grid-template-columns:1fr 1fr;max-width:430px;width:100%;margin-inline:auto;margin-bottom:12px}
    .public-home-page .home-hero-actions .btn{min-width:0;padding-inline:12px;font-size:11.5px}
    .public-home-page .home-hero-visual,.public-home-page .home-hero-photo{min-height:270px;height:270px}
    .public-home-page .home-section{padding-block:42px}
    .public-home-page .home-section-heading h2{font-size:clamp(25px,7.7vw,33px)}
    .public-home-page .home-section-heading p{font-size:12px}
    .public-home-page .home-program-grid,.public-home-page .home-pricing-grid.count-2,.public-home-page .home-pricing-grid.count-3{grid-template-columns:1fr}
    .public-home-page .home-pricing-grid.count-3 .home-price-card:last-child{grid-column:auto;width:auto}
    .public-home-page .home-program-card{grid-template-columns:1fr;min-height:0}
    .public-home-page .home-program-media{min-height:185px;height:185px;order:0!important}
    .public-home-page .home-program-content{padding:17px}
    .public-home-page .home-program-content h3{font-size:19px}
    .public-home-page .home-program-content p{font-size:12.5px}
    .public-home-page .home-price-card{min-height:0;padding:23px 20px 20px}
    .public-home-page .home-price-card.is-featured{transform:none}
    .public-home-page .home-price-card.is-featured:hover{transform:translateY(-2px)}
    .public-home-page .home-journey-grid{grid-template-columns:repeat(2,1fr);gap:22px 10px}
    .public-home-page .home-benefit-grid{grid-template-columns:1fr 1fr;gap:10px}
    .public-home-page .home-benefit-grid article{min-height:150px;padding:17px 12px}
    .public-home-page .home-benefit-grid p{font-size:10.8px}
    .public-home-page .home-review-grid,.public-home-page .home-article-grid,.public-home-page .home-review-grid.count-2,.public-home-page .home-article-grid.count-2{grid-template-columns:1fr;max-width:none}
    .public-home-page .home-review-card{min-height:0}
    .public-home-page .home-article-media{height:190px}
    .public-home-page .home-final-card{grid-template-columns:1fr;text-align:center;padding:24px 18px}
    .public-home-page .home-final-ornament{margin-inline:auto}
    .public-home-page .home-final-card>div:nth-child(2)>span{justify-content:center}
    .public-home-page .home-final-card>.btn{grid-column:auto;justify-self:stretch;width:100%}
}

@media (max-width:430px){
    .public-home-page .home-hero-actions{grid-template-columns:1fr}
    .public-home-page .home-hero-copy h1{font-size:34px}
    .public-home-page .home-hero-visual,.public-home-page .home-hero-photo{min-height:235px;height:235px}
    .public-home-page .home-trust-grid{grid-template-columns:1fr 1fr}
    .public-home-page .home-trust-grid article{padding:10px 7px;gap:7px}
    .public-home-page .home-trust-grid article>span{width:34px;height:34px;flex-basis:34px;font-size:12px}
    .public-home-page .home-trust-grid strong{font-size:9.5px}
    .public-home-page .home-trust-grid small{font-size:8.5px}
    .public-home-page .home-journey-grid{grid-template-columns:1fr}
    .public-home-page .home-benefit-grid{grid-template-columns:1fr}
}

/* Keep both program cards visually consistent: media on the physical left, copy on the right. */
.public-home-page .home-program-card{direction:ltr}
.public-home-page .home-program-card.is-reverse .home-program-media{order:0}
html[dir="rtl"] .public-home-page .home-program-content{direction:rtl;text-align:right}
html[dir="ltr"] .public-home-page .home-program-content{direction:ltr;text-align:left}
html[dir="rtl"] .public-home-page .home-hero-photo,
html[dir="ltr"] .public-home-page .home-hero-photo{border-radius:0}
@media (max-width:860px){
    html[dir="rtl"] .public-home-page .home-hero-photo,
    html[dir="ltr"] .public-home-page .home-hero-photo{border-radius:16px 16px 0 0}
}

/* Critical RTL/LTR hero grid fix: both halves must occupy the same desktop row. */
html[dir="rtl"] .public-home-page .home-hero-copy,
html[dir="rtl"] .public-home-page .home-hero-visual,
html[dir="ltr"] .public-home-page .home-hero-copy,
html[dir="ltr"] .public-home-page .home-hero-visual{grid-row:1}
@media (max-width:860px){
    html[dir="rtl"] .public-home-page .home-hero-copy,
    html[dir="rtl"] .public-home-page .home-hero-visual,
    html[dir="ltr"] .public-home-page .home-hero-copy,
    html[dir="ltr"] .public-home-page .home-hero-visual{grid-row:auto}
}

/* ================================================================
   v13.0.3-type — Global Typography System + Arabic Hero Refinement
   ----------------------------------------------------------------
   Readability contract:
   - 16px body copy across the platform
   - 14px dense UI copy and controls
   - 13px metadata/help text
   - 12px reserved for badges/timestamps only
   - no operational text below 12px
   ================================================================ */
:root{
    --type-2xs:.75rem;   /* 12px */
    --type-xs:.8125rem;  /* 13px */
    --type-sm:.875rem;   /* 14px */
    --type-md:1rem;      /* 16px */
    --type-lg:1.125rem;  /* 18px */
    --type-xl:1.25rem;   /* 20px */
    --type-2xl:1.5rem;   /* 24px */
    --type-3xl:1.875rem; /* 30px */
    --type-4xl:2.25rem;  /* 36px */
    --type-5xl:3rem;     /* 48px */
    --leading-ui:1.5;
    --leading-copy:1.7;
    --leading-heading:1.25;
}
html{font-size:16px}
body{font-size:var(--type-md);line-height:var(--leading-copy)}
html[dir="rtl"] body{font-family:var(--font-ui-ar);letter-spacing:0}
html[dir="ltr"] body{font-family:var(--font-ui-en);line-height:1.65}
button,input,select,textarea{font-size:var(--type-md);line-height:1.5}
.btn{font-size:var(--type-sm);line-height:1.3}
.btn-sm,.btn-xs{font-size:var(--type-xs)}

/* Public website baseline */
.public-site{font-size:var(--type-md)}
.public-site p,.public-site li{font-size:var(--type-md)}
.public-site small{font-size:var(--type-xs)}
.public-site .public-nav{font-size:var(--type-sm)}
.public-site .public-login-link,.public-site .public-start-link,.public-site .lang-switch{font-size:var(--type-sm)}
.public-site .site-announcement{font-size:var(--type-2xs)}
.public-site .site-announcement a{font-size:var(--type-2xs)}
.public-site .footer-main-grid strong{font-size:var(--type-sm)}
.public-site .footer-main-grid a,.public-site .footer-brand-block p{font-size:var(--type-xs)}
.public-site .footer-bottom{font-size:var(--type-2xs)}
.public-site .field>span,.public-site .form-stack label{font-size:var(--type-sm)}
.public-site .field-help,.public-site .form-foot,.public-site .form-inline-link{font-size:var(--type-xs)}
.public-site input,.public-site select,.public-site textarea{font-size:var(--type-md)}

/* Homepage typography hierarchy — readable at normal browser zoom. */
.public-home-page .home-kicker{font-size:var(--type-sm)}
.public-home-page .home-hero-copy>p{font-size:var(--type-md);line-height:1.8}
.public-home-page .home-hero-actions .btn{font-size:var(--type-sm)}
.public-home-page .home-hero-note{font-size:var(--type-xs)}
.public-home-page .home-trust-grid strong{font-size:var(--type-sm)}
.public-home-page .home-trust-grid small{font-size:var(--type-2xs)}
.public-home-page .home-section-heading>span{font-size:var(--type-xs)}
.public-home-page .home-section-heading p{font-size:var(--type-sm);line-height:1.75}
.public-home-page .home-text-link{font-size:var(--type-sm)}
.public-home-page .home-program-meta{font-size:var(--type-2xs)}
.public-home-page .home-program-content h3{font-size:var(--type-xl)}
.public-home-page .home-program-content p{font-size:var(--type-sm);line-height:1.75}
.public-home-page .home-outline-link{font-size:var(--type-xs)}
.public-home-page .home-price-card>small{font-size:var(--type-2xs)}
.public-home-page .home-price-card h3{font-size:var(--type-lg)}
.public-home-page .home-price-main span{font-size:var(--type-sm)}
.public-home-page .home-price-card ul{font-size:var(--type-sm);line-height:1.6}
.public-home-page .home-price-card .btn{font-size:var(--type-sm)}
.public-home-page .home-popular-badge{font-size:var(--type-2xs)}
.public-home-page .home-step-number{font-size:var(--type-2xs)}
.public-home-page .home-journey-grid h3{font-size:var(--type-md)}
.public-home-page .home-journey-grid p{font-size:var(--type-xs);line-height:1.7}
.public-home-page .home-benefit-grid h3{font-size:var(--type-md)}
.public-home-page .home-benefit-grid p{font-size:var(--type-xs);line-height:1.7}
.public-home-page .home-review-card>p{font-size:var(--type-sm);line-height:1.8}
.public-home-page .home-review-stars{font-size:var(--type-sm)}
.public-home-page .home-review-card footer strong{font-size:var(--type-sm)}
.public-home-page .home-review-card footer small{font-size:var(--type-2xs)}
.public-home-page .home-article-content>small{font-size:var(--type-2xs)}
.public-home-page .home-article-content h3{font-size:var(--type-lg);line-height:1.45}
.public-home-page .home-article-content p{font-size:var(--type-xs);line-height:1.7}
.public-home-page .home-faq-list summary{font-size:var(--type-sm)}
.public-home-page .home-faq-list details p{font-size:var(--type-xs);line-height:1.75}
.public-home-page .home-final-card p{font-size:var(--type-sm)}
.public-home-page .home-final-card>.btn{font-size:var(--type-sm)}

/* Arabic hero: deliberate 3-line composition instead of browser-dependent wrapping. */
html[dir="rtl"] .public-home-page .home-hero-grid{
    grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);
}
html[dir="rtl"] .public-home-page .home-hero-copy{
    padding-inline:48px 28px;
    align-items:flex-start;
    text-align:start;
}
html[dir="rtl"] .public-home-page .home-hero-title-ar{
    display:grid;
    gap:.02em;
    width:max-content;
    max-width:100%;
    margin:8px 0 14px;
    font-size:clamp(46px,4.2vw,60px);
    font-weight:900;
    line-height:1.18;
    letter-spacing:-.025em;
    text-wrap:initial;
}
html[dir="rtl"] .public-home-page .home-hero-title-ar span{
    display:block;
    white-space:nowrap;
}
html[dir="rtl"] .public-home-page .home-hero-copy>p{
    max-width:610px;
}
html[dir="rtl"] .public-home-page .home-hero-actions,
html[dir="rtl"] .public-home-page .home-hero-note{
    justify-content:flex-start;
}

/* Authentication typography */
.auth-page{font-size:var(--type-md)}
.auth-page .auth-quote p{font-size:var(--type-md)}
.auth-page .auth-tools{font-size:var(--type-sm)}
.auth-page .form-heading h1{font-size:clamp(2rem,3vw,2.5rem);line-height:1.25}
.auth-page .form-heading p{font-size:var(--type-md)}
.auth-page .form-stack label{font-size:var(--type-sm)}
.auth-page .form-stack input,.auth-page .form-stack select,.auth-page .form-stack textarea{font-size:var(--type-md)}
.auth-page .form-foot{font-size:var(--type-sm)}

/* Dashboard / admin / teacher / student / guardian typography */
.dashboard-body{font-size:var(--type-sm);line-height:1.6}
.dashboard-body p,.dashboard-body li{font-size:var(--type-sm)}
.dashboard-body small{font-size:var(--type-2xs)}
.dashboard-body button,.dashboard-body input,.dashboard-body select,.dashboard-body textarea{font-size:var(--type-sm)}
.dashboard-body .nav-section{font-size:var(--type-2xs);letter-spacing:.08em}
.dashboard-body .sidebar-nav a,.dashboard-body .sidebar-nav button{font-size:var(--type-sm)}
.dashboard-body .sidebar-nav small{font-size:var(--type-2xs)}
.dashboard-body .topbar-heading>strong{font-size:var(--type-lg)}
.dashboard-body .topbar-breadcrumb,.dashboard-body .topbar-timezone{font-size:var(--type-2xs)}
.dashboard-body .topbar-action-button{font-size:var(--type-xs)}
.dashboard-body .topbar-user-copy strong{font-size:var(--type-xs)}
.dashboard-body .topbar-user-copy small{font-size:var(--type-2xs)}
.dashboard-body .dashboard-welcome p{font-size:var(--type-sm)}
.dashboard-body .dashboard-kicker{font-size:var(--type-2xs)}
.dashboard-body .dashboard-health small{font-size:var(--type-2xs)}
.dashboard-body .dashboard-health strong{font-size:var(--type-xs)}
.dashboard-body .welcome-timezone{font-size:var(--type-xs)}
.dashboard-body .dashboard-stats .stat-card>span:not(.stat-icon){font-size:var(--type-xs)}
.dashboard-body .dashboard-stats .stat-card>small{font-size:var(--type-2xs)}
.dashboard-body .dashboard-section-title h2,.dashboard-body .panel-head h2{font-size:var(--type-lg)}
.dashboard-body .field>span,.dashboard-body .form-stack label{font-size:var(--type-sm)}
.dashboard-body .field-help,.dashboard-body .heading-sub,.dashboard-body .table-sub{font-size:var(--type-2xs);line-height:1.55}
.dashboard-body .data-table{font-size:var(--type-sm)}
.dashboard-body .data-table th,.dashboard-body .data-table td{font-size:var(--type-sm);line-height:1.55}
.dashboard-body .status-badge,.dashboard-body .pill,.dashboard-body .metric-row span{font-size:var(--type-2xs)}
.dashboard-body .info-card span,.dashboard-body .detail-list span{font-size:var(--type-2xs)}
.dashboard-body .info-card strong,.dashboard-body .detail-list strong{font-size:var(--type-sm)}
.dashboard-body .quick-actions a,.dashboard-body .tab-bar a{font-size:var(--type-sm)}
.dashboard-body .notification-copy header strong{font-size:var(--type-sm)}
.dashboard-body .notification-preview-item strong{font-size:var(--type-xs)}
.dashboard-body .notification-preview-item small{font-size:var(--type-2xs)}
.dashboard-body .user-dropdown-links a,.dashboard-body .user-dropdown-logout button{font-size:var(--type-xs)}
.dashboard-body .user-dropdown-profile strong{font-size:var(--type-sm)}
.dashboard-body .user-dropdown-profile span,.dashboard-body .user-dropdown-profile small{font-size:var(--type-2xs)}
.dashboard-body .session-time strong,.dashboard-body .session-main b,.dashboard-body .agenda-copy strong{font-size:var(--type-xs)}
.dashboard-body .session-time small,.dashboard-body .session-main small,.dashboard-body .agenda-time small,.dashboard-body .agenda-copy small{font-size:var(--type-2xs)}
.dashboard-body .quick-actions-modern a strong{font-size:var(--type-xs)}
.dashboard-body .quick-actions-modern a small{font-size:var(--type-2xs)}
.dashboard-body .table-id,.dashboard-body .table-date{font-size:var(--type-2xs)}

/* Forms and tables must remain readable on touch devices and avoid iOS zoom. */
@media (max-width:860px){
    button,input,select,textarea{font-size:16px}
    .dashboard-body{font-size:var(--type-sm)}
    .public-site{font-size:var(--type-md)}
    html[dir="rtl"] .public-home-page .home-hero-copy{
        align-items:center;
        text-align:center;
        padding-inline:24px;
    }
    html[dir="rtl"] .public-home-page .home-hero-title-ar{
        width:auto;
        margin-inline:auto;
        font-size:clamp(38px,7.5vw,48px);
        line-height:1.2;
        text-align:center;
    }
    html[dir="rtl"] .public-home-page .home-hero-actions,
    html[dir="rtl"] .public-home-page .home-hero-note{justify-content:center}
}
@media (max-width:640px){
    .public-home-page .site-announcement,.public-home-page .site-announcement a{font-size:var(--type-2xs)}
    .public-home-page .home-hero-copy>p{font-size:var(--type-sm);line-height:1.75}
    .public-home-page .home-hero-actions .btn{font-size:var(--type-sm)}
    .public-home-page .home-hero-note{font-size:var(--type-2xs)}
    .public-home-page .home-section-heading p{font-size:var(--type-sm)}
    .public-home-page .home-program-content p,.public-home-page .home-benefit-grid p,.public-home-page .home-journey-grid p{font-size:var(--type-xs)}
    .public-home-page .home-faq-list summary{font-size:var(--type-sm)}
    .public-home-page .home-faq-list details p{font-size:var(--type-xs)}
    .public-home-page .home-final-card p{font-size:var(--type-xs)}
}
@media (max-width:430px){
    html[dir="rtl"] .public-home-page .home-hero-title-ar{font-size:34px;line-height:1.22}
}


/* Extended density normalization: legacy microcopy is lifted to the platform floor. */
.public-site .pricing-program-link,
.public-site .article-card small,
.public-site .blog-filters a,
.public-site .breadcrumb-link,
.public-site .article-meta,
.public-site .payment-method-badge,
.public-site .bank-details span,
.public-site .form-inline-link,
.public-site .cms-image-preview label{font-size:var(--type-xs)}
.public-site .public-pricing-card>p,
.public-site .public-pricing-card li,
.public-site .article-card p,
.public-site .feature-list p{font-size:var(--type-sm);line-height:1.7}
.public-site .testimonial-card footer strong{font-size:var(--type-sm)}
.public-site .stars{font-size:var(--type-sm)}
.public-site .small-stars{font-size:var(--type-2xs)}

.dashboard-body .action-preview span,
.dashboard-body .calendar-event small,
.dashboard-body .calendar-event span,
.dashboard-body .progress-card header span,
.dashboard-body .report-card header span,
.dashboard-body .join-note,
.dashboard-body .class-card time,
.dashboard-body .report-detail-card footer,
.dashboard-body .timeline-card header small,
.dashboard-body .timeline-card time,
.dashboard-body .timeline-card>small,
.dashboard-body .notification-copy time,
.dashboard-body .notification-copy small,
.dashboard-body .setting-switch small,
.dashboard-body .day-session-item small,
.dashboard-body .month-weekdays span,
.dashboard-body .month-day header span,
.dashboard-body .month-event,
.dashboard-body .month-day small,
.dashboard-body .availability-row label span,
.dashboard-body .program-from,
.dashboard-body .sidebar-user-copy small,
.dashboard-body .dropdown-head small,
.dashboard-body .dropdown-count,
.dashboard-body .quick-menu-grid a,
.dashboard-body .notification-preview-icon,
.dashboard-body .dropdown-empty,
.dashboard-body .dropdown-footer-link,
.dashboard-body .subscription-ring small,
.dashboard-body .subscription-copy>small,
.dashboard-body .dashboard-report-card header>div small,
.dashboard-body .entity-meta-chips>span,
.dashboard-body .entity-hero-aside small,
.dashboard-body .detail-kpi small,
.dashboard-body .detail-kpi em,
.dashboard-body .panel-count,
.dashboard-body .detail-list-modern span,
.dashboard-body .activity-row small,
.dashboard-body .progress-summary-item small,
.dashboard-body .entity-tag,
.dashboard-body .usage-ring small,
.dashboard-body .usage-progress-card>small,
.dashboard-body .proof-card small,
.dashboard-body .review-state span,
.dashboard-body .field-label-icon,
.dashboard-body .alert-ui-icon,
.dashboard-body .operations-title small,
.dashboard-body .selection-status,
.dashboard-body .records-summary,
.dashboard-body .pagination-summary,
.dashboard-body .page-size-control,
.dashboard-body .page-size-control select,
.dashboard-body .pager-button,
.dashboard-body .pager-number,
.dashboard-body .advanced-filter-head small,
.dashboard-body .filter-field>span,
.dashboard-body .date-shortcut,
.dashboard-body .filter-chip,
.dashboard-body .filter-chip-title,
.dashboard-body .grid-result-meta,
.dashboard-body .server-pagination-summary,
.dashboard-body .server-page-size,
.dashboard-body .server-page-size select,
.dashboard-body .server-page-button,
.dashboard-body .server-page-number,
.dashboard-body .grid-preset-empty,
.dashboard-body .grid-preset-apply,
.dashboard-body .grid-preset-create label,
.dashboard-body .grid-preset-create input{font-size:var(--type-2xs)}

.dashboard-body .progress-summary-item p,
.dashboard-body .message-card p,
.dashboard-body .subscription-copy p,
.dashboard-body .entity-hero-aside span,
.dashboard-body .detail-list-modern strong,
.dashboard-body .activity-row strong,
.dashboard-body .progress-summary-item strong,
.dashboard-body .message-card strong,
.dashboard-body .proof-card strong,
.dashboard-body .review-state strong,
.dashboard-body .switch-card strong,
.dashboard-body .operations-title strong,
.dashboard-body .selection-count,
.dashboard-body .bulk-action-form select,
.dashboard-body .advanced-filter-head strong,
.dashboard-body .grid-preset-head strong,
.dashboard-body .grid-loading-overlay strong{font-size:var(--type-xs)}

/* 13.4.0 - Local Student/Teacher Mushaf reader */
@font-face{
  font-family:"NAF Uthmanic Hafs";
  src:url("../quran/hafs/fonts/uthmanic-hafs.ttf") format("truetype");
  font-display:swap;
  font-style:normal;
  font-weight:400;
}

.mushaf-heading{align-items:flex-end;gap:18px}
.mushaf-source-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;margin-bottom:18px;border:1px solid rgba(7,86,54,.12);background:linear-gradient(135deg,rgba(250,247,238,.96),rgba(255,255,255,.98))}
.mushaf-source-copy{display:flex;align-items:center;gap:14px;min-width:0}
.mushaf-source-copy>div{min-width:0}
.mushaf-source-copy strong{display:block;color:var(--green-900,#075636);font-size:1rem;margin:5px 0 4px}
.mushaf-source-copy p{margin:0;color:var(--text-muted,#68756f);max-width:780px;line-height:1.75}
.mushaf-source-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;flex:0 0 auto;background:rgba(194,143,27,.12);color:var(--gold-700,#a86f00);font-size:1.18rem;border:1px solid rgba(194,143,27,.16)}
.mushaf-badges{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.mushaf-badge{display:inline-flex;align-items:center;gap:6px;width:max-content;border:1px solid rgba(7,86,54,.12);border-radius:999px;background:#fff;color:#52645a;padding:4px 9px;font-size:.72rem;font-weight:800}
.mushaf-badge i{color:#b47a08}
.mushaf-badge-local{background:#eef8f2;color:#075636;border-color:rgba(7,86,54,.16)}
.mushaf-badge-local i{color:#0b6a45}

.mushaf-install-panel{display:flex;align-items:flex-start;gap:18px;padding:26px;border:1px dashed rgba(7,86,54,.24);background:linear-gradient(135deg,#fff,#f7fbf8)}
.mushaf-install-icon{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;flex:0 0 auto;background:#075636;color:#fff;font-size:1.35rem;box-shadow:0 12px 30px rgba(7,86,54,.16)}
.mushaf-install-copy h2{margin:5px 0 8px;color:#075636;font-size:1.25rem}
.mushaf-install-copy p{margin:0 0 15px;color:#5f6f67;line-height:1.8;max-width:760px}
.mushaf-install-copy>small{display:block;margin-top:12px;color:#79867f}
.mushaf-install-command{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.mushaf-install-command span{font-size:.78rem;font-weight:800;color:#65756d}
.mushaf-install-command code{direction:ltr;unicode-bidi:isolate;border:1px solid #d9e6de;border-radius:10px;background:#f3f7f4;color:#134c33;padding:8px 11px;font:600 .82rem/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}

.mushaf-reader-panel{--mushaf-text-size:44px;padding:0;overflow:hidden;border:1px solid rgba(7,86,54,.13);background:#fff}
.mushaf-reader-head{padding:20px 22px 18px;margin:0;border-bottom:1px solid rgba(7,86,54,.1);background:#fff;gap:18px}
.mushaf-reader-head h2{margin:3px 0 5px;color:var(--green-900,#075636)}
.mushaf-reader-head p{margin:0;color:var(--text-muted,#68756f);line-height:1.7;max-width:700px}
.mushaf-reader-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.mushaf-local-status{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:6px 10px;background:#eef8f2;color:#075636;font-size:.73rem;font-weight:800;white-space:nowrap}
.mushaf-local-status i{color:#c2870b}

.mushaf-toolbar{display:grid;grid-template-columns:minmax(220px,1.8fr) minmax(120px,.7fr) minmax(150px,.8fr) auto;align-items:end;gap:12px;padding:14px 18px;background:#fbfaf6;border-bottom:1px solid rgba(7,86,54,.1)}
.mushaf-control{display:grid;gap:6px;min-width:0}
.mushaf-control>span{font-size:.72rem;font-weight:800;color:#66766e}
.mushaf-control select,.mushaf-control input{width:100%;height:42px;border:1px solid #dce6e0;border-radius:11px;background:#fff;color:#173c2b;padding:0 11px;font:inherit;outline:none;transition:border-color .18s ease,box-shadow .18s ease}
.mushaf-control select:focus,.mushaf-control input:focus{border-color:#2b7b58;box-shadow:0 0 0 3px rgba(43,123,88,.11)}
.mushaf-control select:disabled{opacity:.62;cursor:wait}
.mushaf-page-input-wrap{display:grid;grid-template-columns:minmax(72px,1fr) auto;align-items:center;gap:8px}
.mushaf-page-input-wrap small{font-size:.72rem;color:#77847e;white-space:nowrap}
.mushaf-zoom-controls{display:flex;align-items:center;gap:5px;height:42px}
.mushaf-icon-btn{height:42px;min-width:42px;border:1px solid #dce6e0;border-radius:10px;background:#fff;color:#075636;display:grid;place-items:center;cursor:pointer;font:700 .78rem/1 inherit;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.mushaf-icon-btn:hover{background:#f1f8f4;border-color:#bcd3c6}
.mushaf-icon-btn:active{transform:translateY(1px)}
.mushaf-zoom-reset{min-width:58px;padding-inline:8px}

.mushaf-page-meta{display:flex;align-items:center;justify-content:center;gap:22px;flex-wrap:wrap;padding:9px 16px;background:#075636;color:#fff;font-size:.76rem}
.mushaf-page-meta span{display:inline-flex;align-items:center;gap:7px;min-width:0}
.mushaf-page-meta i{color:#e8bd55}
.mushaf-page-meta b{font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:320px}

.mushaf-book-shell{position:relative;min-height:0;padding:24px 20px 20px;background-color:#eee9dc;background-image:radial-gradient(circle at 12% 8%,rgba(194,143,27,.08),transparent 28%),radial-gradient(circle at 88% 90%,rgba(7,86,54,.07),transparent 30%)}
.mushaf-page{position:relative;width:min(900px,100%);min-height:0;margin:0 auto;padding:34px clamp(24px,4vw,50px) 44px;border:1px solid rgba(149,113,37,.24);border-radius:4px;background:#fffef8;box-shadow:0 18px 50px rgba(65,54,28,.12),inset 0 0 0 8px rgba(197,154,59,.025);color:#151813;font-family:"NAF Uthmanic Hafs","Amiri Quran","Traditional Arabic",serif;font-size:var(--mushaf-text-size);font-weight:400;line-height:2.22;text-align:justify;text-align-last:auto;text-justify:inter-word;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"calt" 1,"liga" 1,"kern" 1;word-spacing:.04em;transition:font-size .18s ease}
.mushaf-page::before{content:"";position:absolute;inset:12px;border:1px solid rgba(194,143,27,.16);pointer-events:none}
.mushaf-page::after{content:"";position:absolute;inset:17px;border:1px solid rgba(7,86,54,.07);pointer-events:none}
.mushaf-ayah-flow{position:relative;z-index:1;margin:0 0 14px;text-wrap:pretty}
.mushaf-ayah{unicode-bidi:isolate;cursor:text}
.mushaf-ayah:hover{background:rgba(228,190,96,.1);border-radius:5px}
.mushaf-ayah-separator{display:inline-flex;align-items:center;justify-content:center;width:1.52em;height:1.52em;margin-inline:.18em .28em;border:1.5px solid rgba(194,143,27,.86);border-radius:50%;background:#fffaf0;color:#8f6410;font-family:Cairo,Tahoma,Arial,sans-serif;font-size:.48em;font-weight:900;line-height:1;vertical-align:middle;box-shadow:inset 0 0 0 2px rgba(194,143,27,.08)}
.mushaf-ayah-circle{display:grid;place-items:center;min-width:1em;transform:translateY(.02em)}
.mushaf-surah-banner{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:15px;margin:5px auto 20px;padding:8px 20px;width:min(520px,88%);border:1px solid rgba(194,143,27,.28);border-radius:999px;background:linear-gradient(180deg,#fbf7e9,#f6efd9);color:#075636;font-family:Cairo,Tahoma,Arial,sans-serif;font-size:clamp(.9rem,1.6vw,1.05rem);font-weight:900;line-height:1.5;text-align:center}
.mushaf-surah-ornament{color:#b27c0d;font-size:.8rem}
.mushaf-page-number{position:absolute;z-index:2;inset-inline-start:50%;bottom:15px;translate:-50% 0;min-width:34px;height:28px;padding:0 8px;border-radius:999px;display:grid;place-items:center;border:1px solid rgba(194,143,27,.22);background:#fffaf0;color:#8f6410;font-family:Cairo,Tahoma,Arial,sans-serif;font-size:.72rem;font-weight:800}

.mushaf-page-loading,.mushaf-page-error{min-height:420px;width:min(900px,100%);margin:0 auto;border:1px solid rgba(149,113,37,.14);background:#fffef8;display:grid;place-items:center;align-content:center;gap:13px;text-align:center;padding:35px;color:#65746d}
.mushaf-page-loading[hidden],.mushaf-page-error[hidden],.mushaf-page[hidden]{display:none!important}
.mushaf-loading-mark{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#edf7f1;color:#075636;font-size:1.25rem;animation:mushafPulse 1.5s ease-in-out infinite}
.mushaf-page-loading p{margin:0}
.mushaf-page-error i{font-size:1.45rem;color:#b47a08}
.mushaf-page-error strong{max-width:520px;color:#5e5140;line-height:1.7}
@keyframes mushafPulse{50%{transform:scale(1.06);box-shadow:0 0 0 10px rgba(7,86,54,.045)}}

.mushaf-reader-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:14px 18px;border-top:1px solid rgba(7,86,54,.08);background:#fff}
.mushaf-reader-nav .btn:first-child{justify-self:start}
.mushaf-reader-nav .btn:last-child{justify-self:end}
.mushaf-reader-nav .btn:disabled{opacity:.45;cursor:not-allowed}
.mushaf-page-counter{display:flex;align-items:baseline;justify-content:center;gap:5px;color:#748179;white-space:nowrap}
.mushaf-page-counter span,.mushaf-page-counter small{font-size:.72rem}
.mushaf-page-counter strong{color:#075636;font-size:1.05rem}
.mushaf-reader-foot{display:flex;align-items:flex-start;gap:9px;padding:13px 18px;background:#fbfaf6;border-top:1px solid rgba(7,86,54,.08);color:var(--text-muted,#68756f);font-size:.82rem}
.mushaf-reader-foot i{margin-top:4px;color:var(--green-700,#0b6a45)}
.mushaf-reader-foot p{margin:0;line-height:1.65;flex:1}
.mushaf-reader-foot a{font-weight:800;color:var(--green-800,#075636);white-space:nowrap}
.mushaf-frame-fallback{padding:30px;margin:0;text-align:center}

.mushaf-local-reader:fullscreen{overflow:auto;background:#eee9dc;padding-bottom:0}
.mushaf-local-reader:fullscreen .mushaf-reader-head{position:sticky;top:0;z-index:6}
.mushaf-local-reader:fullscreen .mushaf-toolbar{position:sticky;top:94px;z-index:5}
.mushaf-local-reader:fullscreen .mushaf-book-shell{min-height:calc(100vh - 220px)}
.mushaf-local-reader:fullscreen .mushaf-page{min-height:0}

@media (max-width:980px){
  .mushaf-toolbar{grid-template-columns:1.4fr .7fr .8fr}
  .mushaf-zoom-controls{grid-column:1/-1;justify-content:flex-end;height:auto}
  .mushaf-book-shell{padding-inline:14px}
  .mushaf-page{padding-inline:clamp(24px,6vw,48px)}
}

@media (max-width:760px){
  .mushaf-heading{align-items:stretch}
  .mushaf-heading .heading-actions{width:100%}
  .mushaf-heading .heading-actions .btn{width:100%;justify-content:center}
  .mushaf-source-card{align-items:stretch;flex-direction:column;padding:16px}
  .mushaf-source-card>.btn{width:100%;justify-content:center}
  .mushaf-source-copy{align-items:flex-start}
  .mushaf-install-panel{padding:20px 16px;flex-direction:column}
  .mushaf-reader-head{align-items:stretch;flex-direction:column;padding:17px 16px 15px}
  .mushaf-reader-head-actions{justify-content:stretch;align-items:stretch;flex-direction:column}
  .mushaf-local-status{justify-content:center;white-space:normal;text-align:center}
  .mushaf-reader-head-actions>.btn{width:100%;justify-content:center}
  .mushaf-toolbar{grid-template-columns:1fr 1fr;padding:12px;gap:10px}
  .mushaf-control-surah{grid-column:1/-1}
  .mushaf-zoom-controls{grid-column:1/-1;justify-content:center}
  .mushaf-page-meta{gap:10px 16px;justify-content:flex-start;padding-inline:14px}
  .mushaf-page-meta b{max-width:220px}
  .mushaf-book-shell{min-height:0;padding:14px 7px 18px}
  .mushaf-page,.mushaf-page-loading,.mushaf-page-error{min-height:0}
  .mushaf-page{border-radius:2px;padding:28px 21px 42px;font-size:var(--mushaf-text-size);line-height:2.16}
  .mushaf-page::before{inset:7px}
  .mushaf-page::after{display:none}
  .mushaf-surah-banner{width:92%;margin-bottom:15px;padding:7px 12px}
  .mushaf-reader-nav{grid-template-columns:1fr 1fr;padding:12px}
  .mushaf-page-counter{grid-column:1/-1;grid-row:1}
  .mushaf-reader-nav .btn:first-child,.mushaf-reader-nav .btn:last-child{width:100%;justify-content:center}
  .mushaf-reader-foot{flex-wrap:wrap;padding:12px 14px}
  .mushaf-reader-foot a{width:100%;padding-inline-start:24px;white-space:normal}
}

@media (max-width:430px){
  .mushaf-toolbar{grid-template-columns:1fr}
  .mushaf-control-surah,.mushaf-zoom-controls{grid-column:auto}
  .mushaf-page-meta span:first-child{width:100%}
  .mushaf-page{padding-inline:16px;font-size:var(--mushaf-text-size);line-height:2.1}
  .mushaf-source-icon{width:42px;height:42px;border-radius:13px}
  .mushaf-install-command{align-items:stretch;flex-direction:column}
  .mushaf-install-command code{font-size:.72rem;overflow-wrap:anywhere}
}

@media (prefers-reduced-motion:reduce){
  .mushaf-loading-mark{animation:none}
  .mushaf-page,.mushaf-icon-btn{transition:none}
}

/* Phase 4: legal-consent and production footer links */
.legal-consent-field{align-items:flex-start;min-height:auto;padding:10px 12px;border:1px solid rgba(7,86,54,.12);border-radius:12px;background:#f8fbf9;font-weight:600;line-height:1.7}
.legal-consent-field input[type="checkbox"]{flex:0 0 auto;margin-top:4px}
.legal-consent-field a{color:var(--green-900,#075636);font-weight:800;text-decoration:underline;text-underline-offset:2px}
.legal-consent-field a:hover{color:var(--gold-700,#a86f00)}
.footer-legal-links{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.public-footer .footer-legal-links a{color:inherit;font-size:inherit}
.public-footer .footer-legal-links a:hover{color:#fff}
@media (max-width:640px){.footer-legal-links{justify-content:flex-start}.public-footer .footer-bottom{align-items:flex-start;flex-direction:column}}

