/* MA Jobs VIP 1.3 — owner-controlled theme, design reference from the supplied screenshots. */
:root{--green:var(--vip-primary);--deep:var(--vip-primary-dark);--dark:var(--vip-primary-dark);--ink:var(--vip-text);--line:#dbeae6}
body{font-size:var(--vip-font);background:linear-gradient(180deg,#f8fcfb,#fff 35%,#f7fbfa);color:var(--vip-text)}
.shell{width:min(var(--vip-width),calc(100% - 40px))}
.topbar{background:var(--vip-header-background);box-shadow:0 3px 18px #003e3a12}
.navrow{min-height:76px;gap:16px}
.brand-image{object-fit:contain;width:70px;height:52px}
.brand-title{font:800 23px/1 system-ui,Arial,sans-serif;color:var(--vip-primary-dark)}
.brand-title b{color:var(--vip-primary)}
.live-tag{display:none!important}
nav#primaryNav a.active,nav#primaryNav a:hover{background:#dff6eb;color:var(--vip-primary)}
.btn,.btn-soft{border-radius:12px}
.hero{background:linear-gradient(118deg,var(--vip-primary-dark),#087452 55%,#032d3c)!important;position:relative;isolation:isolate}
.hero:before{background:radial-gradient(ellipse at 15% 35%,#29d1a428,transparent 45%),repeating-radial-gradient(circle at 100% -15%,transparent 0 92px,#ffffff0a 95px 110px)!important;opacity:1}
.hero-inner{grid-template-columns:minmax(0,1.4fr) minmax(260px,.9fr);gap:24px;min-height:300px}
.hero-copy{order:2;padding:34px 0;max-width:840px}
.hero-copy h1{font-size:clamp(29px,3.4vw,47px);line-height:1.8;text-shadow:0 3px 12px #022f284a}
.hero-copy>p{font-size:clamp(16px,1.4vw,20px)}
.hero-visual{order:1;height:300px;align-items:flex-end;justify-content:flex-start;overflow:hidden;isolation:isolate}
.hero-building{object-fit:cover;width:min(100%,465px);height:268px;max-height:none;opacity:1;border-radius:18px 18px 0 0;filter:drop-shadow(0 8px 20px #00282055);box-shadow:0 0 38px #2cb88814}
.hero-float{display:none}
.hero-search{border:3px solid #ffffffa8;box-shadow:0 12px 30px #002c235e;margin:18px 0}
.hero-search .btn{background:linear-gradient(135deg,var(--vip-primary),#00a16f);font:750 15px system-ui,Arial}
.hero-tag{display:inline-flex;align-items:center;background:#ffffff12;border:1px solid #ffffff50;padding:7px 12px;border-radius:999px;letter-spacing:.8px}
.categories-wrap{margin-top:12px;background:var(--vip-surface);border-radius:var(--vip-radius);padding:12px}
.cat-grid{grid-template-columns:repeat(var(--vip-category-columns),minmax(0,1fr));gap:11px}
.cat-tile{border-radius:14px;background:linear-gradient(155deg,var(--tilebg),color-mix(in srgb,var(--tile) 22%,white));border:1px solid color-mix(in srgb,var(--tile) 15%,white);min-height:91px}
.cat-tile .cat-icon,.cat-tile .cat-icon .ui-icon{color:var(--tile)}
.cat-tile .cat-icon .ui-icon{width:39px;height:39px}
.cat-tile:hover{box-shadow:0 12px 22px color-mix(in srgb,var(--tile) 20%,transparent)}
.cat-govt.cat-tile{background:linear-gradient(135deg,var(--vip-primary-dark),var(--tile))}
.cat-govt.cat-tile b,.cat-govt.cat-tile small,.cat-govt.cat-tile .cat-icon{color:white}
.section-heading h2{color:var(--vip-primary-dark)}
.vip-listing-wrap{display:grid;grid-template-columns:minmax(220px,260px) minmax(0,1fr);gap:15px;direction:ltr}
.vip-listing-wrap>.job-list{min-width:0}
.vip-hide-sidebar .vip-listing-wrap{grid-template-columns:1fr}
.vip-job-sidebar{border:1px solid #d9ebe6;box-shadow:0 8px 25px #003e2e08;padding:15px;border-radius:var(--vip-radius);background:#fff;height:max-content;direction:rtl}
.vip-job-sidebar h3{font-size:20px;color:var(--vip-primary-dark);margin:20px 5px 8px}
.vip-sidebar-search{display:flex;gap:8px;border:1px solid #d9e7e4;border-radius:11px;padding:6px;align-items:center}
.vip-sidebar-search input{width:100%;min-width:0;border:0;padding:7px;background:none;color:#154347}
.vip-sidebar-search button{background:#e7f6f0;border:0;color:#087251;padding:5px 8px;border-radius:8px}
.vip-sidebar-search button .ui-icon{width:18px;height:18px}
.vip-side-categories{display:grid;gap:4px}
.vip-side-categories a{padding:8px 12px;border-radius:10px;display:flex;justify-content:space-between;align-items:center;font-weight:700}
.vip-side-categories a.active,.vip-side-categories a:hover{background:#e6f7ee;color:#065c45}
.side-color{width:12px;height:12px;border-radius:4px;background:var(--tile)}
.vip-subscribe-card{border-radius:14px;background:linear-gradient(135deg,#e6f9ef,#e9f5ff);padding:17px;margin-top:17px;display:grid;gap:8px}
.vip-subscribe-card p{margin:0;font-size:14px}.vip-subscribe-card .btn{display:inline-flex;justify-content:center;align-items:center}
.job-row{border-radius:var(--vip-radius);grid-template-columns:72px minmax(0,1fr) 144px;gap:12px;padding:14px;background:var(--vip-surface);box-shadow:0 5px 14px #003c2807;transition:box-shadow .15s,transform .15s}
.job-row:hover{transform:translateY(-1px)}
.job-symbol{width:66px;height:66px;border-radius:14px}
.job-title{font-size:clamp(16px,1.3vw,20px);line-height:1.85}
.job-actions .btn{background:linear-gradient(120deg,var(--tile),color-mix(in srgb,var(--tile) 65%,#092d38));border-radius:12px;color:#fff;font:800 13px system-ui,Arial;display:flex;justify-content:center;align-items:center}
.job-actions .btn-outline{font-size:12px}
.vip-compact .job-row{padding:8px 12px;min-height:78px}
.vip-compact .job-symbol{width:49px;height:49px}.vip-compact .job-row .job-body p{display:none}
.featured-card{background:var(--vip-surface);border-radius:var(--vip-radius)}
.main-footer{background:linear-gradient(115deg,var(--vip-footer-background),color-mix(in srgb,var(--vip-footer-background) 80%,#11775a))!important;color:#fff;position:relative;isolation:isolate;overflow:hidden}
.main-footer:after{background-image:url('/assets/brand/footer-mosque.webp');background-position:right bottom;background-size:contain;background-repeat:no-repeat;opacity:.42;width:270px;height:210px;right:0;bottom:28px}
.main-footer .footer-grid{position:relative;z-index:1}
.footer-grid{grid-template-columns:1.2fr .78fr .9fr 1.05fr 1.07fr;gap:25px}
.footer-grid section{min-width:0}
.footer-chat{background:#0a9d6531;border-color:#26bd82}
.footer-logo img{background:#fff;object-fit:contain}
.footer-bottom{background:transparent;padding-block:14px}
@media(max-width:1190px){.cat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hero-inner{grid-template-columns:1fr .8fr}.vip-listing-wrap{grid-template-columns:minmax(200px,240px) minmax(0,1fr)}}
@media(max-width:950px){.hero-inner{grid-template-columns:1fr}.hero-copy{order:1;padding:34px 0 12px}.hero-visual{order:2;height:185px}.hero-building{height:185px;width:330px}.vip-listing-wrap{grid-template-columns:1fr}.vip-job-sidebar{display:none}.footer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.shell{width:calc(100% - 24px)}.navrow{min-height:64px;gap:7px}.brand-image{width:48px;height:41px}.brand-title{font-size:18px}.hero-copy{padding:22px 2px 12px}.hero-copy h1{font-size:clamp(25px,7vw,37px)}.hero-visual{height:126px}.hero-building{width:240px;height:130px}.cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cat-tile{min-height:88px}.job-row{grid-template-columns:50px minmax(0,1fr);padding:12px 10px}.job-symbol{width:45px;height:45px}.job-actions{grid-column:2;display:flex;flex-wrap:wrap;gap:7px}.job-actions>*{flex:1}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-company,.footer-chat{grid-column:1/-1}}
/* Override the retired 1.2 screenshot embed on mobile as well. */
.hero-building{display:block!important}
.hero-visual::before{content:none!important}
@media(max-width:950px){.hero-visual{display:flex!important}}

/* VIP 1.3.1 — Screenshot-specific RTL hero, unified Urdu glyphs, stable imagery. */
/* Latin characters fall back to system-ui via the unicode-range on MAUrdu. */
body,body :is(h1,h2,h3,h4,h5,h6,p,span,small,b,strong,em,i,li,a,div,summary,label,button,input,textarea,select,option,td,th,blockquote,time){
 font-family:MAUrdu,system-ui,Arial,"Noto Nastaliq Urdu","Noto Naskh Arabic",sans-serif!important;
}
/* Main Urdu text is set explicitly RTL; English navigation stays LTR. */
.hero-inner{direction:rtl;grid-template-columns:minmax(0,1.4fr) minmax(260px,.9fr)}
.hero-copy{order:1;grid-column:1;direction:rtl;text-align:right;min-width:0;max-width:none}
.hero-visual{order:2;grid-column:2;direction:ltr;justify-content:flex-start;min-width:0}
.hero-search{direction:rtl}
.hero-copy h1,.hero-copy>p,.hero-search input{line-height:2.05}
.hero-search input{direction:rtl;text-align:right}
.hero-search .btn{line-height:1.7}
/* Keep Nastaleeq ascenders/descenders visible and reserve card geometry. */
.featured-grid{direction:rtl;align-items:stretch}
.featured-card{padding:13px;gap:10px;min-width:0;overflow:hidden}
.featured-media{display:block;width:100%;aspect-ratio:16/9;border-radius:13px;overflow:hidden;background:var(--tilebg,#e6f6ee);border:1px solid color-mix(in srgb,var(--tile,#057849) 18%,white)}
.featured-media img{display:block;width:100%;height:100%;aspect-ratio:16/9;object-fit:cover;object-position:center}
.featured-fallback{display:grid;place-items:center;width:100%;height:100%;color:var(--tile,#057849)}
.featured-fallback .ui-icon{width:58px;height:58px}
.featured-title{display:block;color:var(--vip-text);font-weight:800;font-size:clamp(17px,1.35vw,21px);line-height:2.1;text-align:right;overflow-wrap:anywhere}
.featured-title:hover{color:var(--tile,#057849)}
.featured-actions{display:flex;gap:9px;align-items:stretch;direction:rtl;margin-top:auto}
.featured-actions .btn,.featured-actions .btn-outline{flex:1;min-width:0;min-height:42px;line-height:1.5}
.job-title,.job-body p,.vip-job-sidebar,.cat-tile small,.foot-urdu,.article-content,.article-top h1,.article-info,.faq-grid,.trust-strip b,.trust-strip small,.section-heading span,.section-heading p{line-height:2.05}
.job-title,.job-body p,.featured-title,.article-top h1,.article-content,.foot-urdu{direction:rtl;text-align:right}
/* Admin is unaffected: this stylesheet is loaded on public pages only. */
@media(max-width:950px){.hero-inner{grid-template-columns:1fr}.hero-copy{grid-column:1;order:1}.hero-visual{grid-column:1;order:2;justify-content:flex-start;height:185px}}
@media(max-width:650px){.hero-copy{padding:22px 2px 12px}.hero-copy h1{line-height:1.95}.hero-visual{height:125px}.hero-building{height:130px;width:240px}.featured-grid{grid-template-columns:1fr}.featured-actions{flex-wrap:wrap}}
