:root{--ocean:#082b3e;--ocean2:#0d5360;--sand:#dfc18f;--cream:#f5efe5;--paper:#fffdf8;--ink:#211b16;--muted:#6e6257;--coral:#9d6545;--copper:#b7794f;--line:rgba(33,28,23,.14);--shadow:0 22px 65px rgba(8,40,61,.14)}
*{box-sizing:border-box}html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}body{margin:0;background:var(--cream);color:var(--ink);font-family:Inter,Segoe UI,Arial,sans-serif;min-width:320px}body.public-menu-open{overflow:hidden}a{color:inherit}.skip-link{position:fixed;left:12px;top:-80px;z-index:100;background:#fff;padding:12px;border-radius:8px}.skip-link:focus{top:12px}
.public-header{position:absolute;inset:0 0 auto;z-index:50;padding:20px max(5vw,20px);display:flex;align-items:center;justify-content:space-between;color:#fff}.public-brand{display:flex;align-items:center;gap:12px;text-decoration:none}.public-brand span{display:grid;place-items:center;width:44px;height:44px;border:1px solid rgba(255,255,255,.55);border-radius:50%;font-family:Georgia,serif;font-weight:700}.public-brand strong{font-family:Georgia,serif;font-size:1.18rem;letter-spacing:.01em}.public-nav{display:flex;align-items:center;gap:24px}.public-nav a{text-decoration:none;font-size:.9rem;padding:8px 0;border-bottom:2px solid transparent}.public-nav a:hover,.public-nav a.active{border-color:var(--sand)}.public-nav .portal-link{border:0;background:var(--sand);color:#21180f;padding:11px 17px;border-radius:999px;font-weight:700}.public-menu-button{display:none}
.public-hero{min-height:92vh;display:flex;align-items:center;color:#fff;background:linear-gradient(105deg,rgba(4,25,40,.97) 4%,rgba(4,25,40,.78) 48%,rgba(4,25,40,.2)),url("images/hero.jpg") center/cover;padding:125px max(7vw,24px) 80px}.hero-inner{width:min(1120px,100%);margin:auto}.public-kicker{display:inline-block;padding:8px 14px;border:1px solid rgba(255,255,255,.45);border-radius:999px;text-transform:uppercase;letter-spacing:.15em;font-size:.72rem;background:rgba(0,0,0,.15)}.public-hero h1,.page-banner h1{font-family:Georgia,serif;font-weight:500;line-height:.98}.public-hero h1{font-size:clamp(3rem,7vw,6.5rem);max-width:960px;margin:24px 0 16px}.hero-subtitle{font:clamp(1.45rem,3vw,2.4rem) Georgia,serif;color:#f1cc91}.public-hero p{max-width:760px;color:rgba(255,255,255,.9);font-size:1.06rem;line-height:1.8}.public-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.public-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:13px 21px;border:1px solid rgba(255,255,255,.48);border-radius:999px;color:#fff;text-decoration:none;font-weight:700}.public-button.primary{background:var(--sand);border-color:var(--sand);color:#21180f}
.public-section{padding:90px max(7vw,24px)}.public-section.white{background:#fff}.public-wrap{width:min(1180px,100%);margin:auto}.public-split{display:grid;grid-template-columns:1.05fr .95fr;gap:64px;align-items:center}.public-eyebrow{text-transform:uppercase;letter-spacing:.16em;color:var(--coral);font-size:.75rem;font-weight:800;margin-bottom:12px}.public-section h2{font:500 clamp(2.35rem,4.4vw,4rem)/1.04 Georgia,serif;color:var(--ocean);margin:0 0 20px}.public-section p{line-height:1.8;color:#493f36}.public-lead{font-size:1.1rem}.public-photo{min-height:430px;border-radius:30px;background:center/cover;box-shadow:var(--shadow)}.public-photo.old{background-image:url("images/old-town.jpg")}.public-photo.fort{background-image:url("images/fort.jpg")}.public-photo.door{background-image:url("images/door.jpg")}
.public-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:-50px;position:relative;z-index:3}.public-stat{background:var(--paper);padding:25px;border-radius:20px;border:1px solid var(--line);box-shadow:var(--shadow)}.public-stat strong{display:block;font:600 1.55rem Georgia,serif;color:var(--ocean)}.public-stat span{color:var(--muted);font-size:.9rem}
.heritage-grid{display:grid;grid-template-columns:1.25fr .85fr .85fr;grid-auto-rows:240px;gap:18px;margin-top:34px}.heritage-item{position:relative;border-radius:24px;overflow:hidden;background:center/cover;box-shadow:var(--shadow)}.heritage-item.tall{grid-row:span 2}.heritage-item:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.68),transparent 58%)}.heritage-item span{position:absolute;z-index:1;left:22px;bottom:18px;color:#fff;font:1.55rem Georgia,serif}
.heritage-caption{font-size:.84rem;color:var(--muted)!important;margin-top:18px}
.tenant-appreciation{padding:88px max(7vw,24px);background:linear-gradient(115deg,#e5cda6,#f4e7d2);position:relative;overflow:hidden}.tenant-appreciation:after{content:"";position:absolute;right:-120px;top:-180px;width:470px;height:470px;border:1px solid rgba(8,43,62,.12);border-radius:50%;box-shadow:0 0 0 55px rgba(8,43,62,.025),0 0 0 110px rgba(8,43,62,.018)}.appreciation-inner{display:grid;grid-template-columns:150px 1fr;gap:40px;position:relative;z-index:1}.appreciation-mark{font:12rem/.7 Georgia,serif;color:rgba(8,43,62,.16)}.tenant-appreciation h2{font:500 clamp(2.4rem,4.5vw,4.2rem)/1.04 Georgia,serif;color:var(--ocean);margin:0 0 22px}.tenant-appreciation p{font-size:1.22rem;line-height:1.85;max-width:900px;color:#3d342c}.tenant-appreciation .appreciation-thanks{font:600 1.4rem/1.6 Georgia,serif;color:var(--ocean)}
.stewardship-section{background:#efe4d3}.stewardship-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:34px}.stewardship-grid article{padding:28px 24px;background:rgba(255,253,248,.76);border:1px solid rgba(8,43,62,.11);border-radius:22px}.stewardship-grid span{font:700 .8rem Georgia,serif;color:var(--copper);letter-spacing:.14em}.stewardship-grid h3{font:600 1.8rem Georgia,serif;color:var(--ocean);margin:12px 0 8px}.stewardship-grid p{margin-bottom:0;font-size:.94rem}
.public-dark{background:linear-gradient(110deg,rgba(5,31,48,.97),rgba(12,80,96,.9)),url("images/street.jpg") center/cover;color:#fff}.public-dark h2,.public-dark p{color:#fff}.benefit-list{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:25px}.benefit-item{padding:16px;border:1px solid rgba(255,255,255,.23);background:rgba(255,255,255,.1);border-radius:15px}.portal-card{background:var(--paper);color:var(--ink);padding:32px;border-radius:25px}.portal-card h3{font:600 2rem Georgia,serif;color:var(--ocean);margin-top:0}.portal-card p{color:#493f36}.portal-card .public-button{background:var(--ocean);color:#fff;border-color:var(--ocean)}
.value-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.value-card{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:30px}.value-card h3{font:600 1.9rem Georgia,serif;color:var(--ocean);margin:0 0 10px}.page-banner{min-height:52vh;display:flex;align-items:flex-end;padding:140px max(7vw,24px) 65px;color:#fff;background:linear-gradient(105deg,rgba(4,25,40,.94),rgba(4,25,40,.45)),url("images/building.jpg") center/cover}.page-banner>div{width:min(1180px,100%);margin:auto}.page-banner h1{font-size:clamp(3rem,6vw,5.6rem);margin:18px 0 10px}.page-banner p{color:rgba(255,255,255,.9);max-width:730px;line-height:1.7}
.public-form-card{background:#fff;padding:30px;border-radius:24px;border:1px solid var(--line);box-shadow:var(--shadow)}.public-form-card label{display:block;color:var(--ocean);font-weight:700;margin:15px 0 6px}.public-form-card input,.public-form-card select,.public-form-card textarea{width:100%;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fffaf5;font:inherit;min-height:46px}.public-form-card textarea{min-height:130px}.public-note{padding:24px;background:#fff;border:1px solid var(--line);border-radius:18px;margin-top:30px}.public-note strong{color:var(--ocean)}.contact-list{display:grid;gap:14px;margin-top:24px}.contact-item{padding:17px;background:#fff;border:1px solid var(--line);border-radius:16px}.contact-item strong{display:block;color:var(--ocean);margin-bottom:4px}.contact-info-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:22px}.contact-info-card{background:#fff;padding:30px;border:1px solid var(--line);border-radius:24px;box-shadow:0 14px 34px rgba(18,63,73,.06)}.contact-info-card h2{font-size:1.75rem;margin-bottom:12px}.contact-info-card ul{margin:16px 0 0;padding-left:20px;line-height:1.9}.contact-closing{background:linear-gradient(135deg,#f7efe1,#fffdfa)}
.assistance-banner{background-image:linear-gradient(105deg,rgba(4,25,40,.95),rgba(4,25,40,.5)),url("images/street.jpg")}.assistance-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:55px;align-items:start}.assistance-steps{list-style:none;padding:0;margin:28px 0;display:grid;gap:14px}.assistance-steps li{display:grid;grid-template-columns:100px 1fr;gap:12px;padding:16px;border-bottom:1px solid var(--line)}.assistance-steps strong{color:var(--ocean)}.assistance-steps span{color:var(--muted);line-height:1.5}.assistance-form h3{font:600 2rem Georgia,serif;color:var(--ocean);margin-top:0}.form-submit{width:100%;border:0;background:var(--ocean);color:#fff;min-height:50px;border-radius:12px;font-weight:800;margin-top:20px}.form-success,.form-error{padding:13px;border-radius:12px;margin-bottom:18px}.form-success{background:#e5f5e9;color:#185b2b}.form-error{background:#fff0ed;color:#8f251c}.verified-holder{padding:16px;background:#edf7f5;border:1px solid #badbd4;border-radius:14px}.verified-holder strong,.verified-holder span{display:block}.verified-holder span{font-size:.88rem;color:var(--muted);margin-top:4px}.consent-line{display:grid!important;grid-template-columns:22px 1fr;gap:10px;align-items:start;line-height:1.5;color:var(--ink)!important}.consent-line input{width:18px!important;min-height:18px!important;margin-top:3px}
.public-footer{background:linear-gradient(135deg,#061f31,#082b3e);color:#fff;padding:58px max(7vw,24px) 24px}.footer-grid{display:grid;grid-template-columns:1.1fr .9fr 1.15fr;gap:46px;align-items:start}.footer-brand{font:700 1.55rem Georgia,serif;letter-spacing:.04em}.footer-identity p,.footer-contact p,.footer-bottom{color:rgba(255,255,255,.72)}.footer-place{color:#dfc18f!important}.footer-contact,.footer-links{display:grid;gap:12px}.footer-contact span,.footer-links span{text-transform:uppercase;letter-spacing:.13em;color:#dfc18f;font-weight:800;font-size:.78rem}.footer-contact a,.footer-links a{color:rgba(255,255,255,.9);text-decoration:none}.footer-contact a:hover,.footer-links a:hover{text-decoration:underline}.footer-purpose{border-top:1px solid rgba(223,193,143,.28);border-bottom:1px solid rgba(223,193,143,.28);margin-top:44px;padding:28px 0;display:grid;grid-template-columns:1.3fr .8fr;gap:26px;align-items:center}.footer-purpose p{font:1.05rem/1.7 Georgia,serif;color:rgba(255,255,255,.86);margin:0}.footer-purpose strong{display:block;color:#dfc18f;font:700 1.55rem Georgia,serif;text-align:center}.footer-purpose em{display:block;color:rgba(255,255,255,.86);font:italic 1.05rem Georgia,serif;text-align:center;margin-top:6px}.footer-bottom{display:flex;justify-content:space-between;gap:20px;padding-top:22px;margin-top:0;font-size:.82rem}
.public-login-page{min-height:100vh;display:grid;grid-template-columns:1.08fr .92fr;background:var(--cream)}.login-visual{padding:60px max(6vw,30px);display:flex;flex-direction:column;justify-content:space-between;color:#fff;background:linear-gradient(115deg,rgba(4,25,40,.96),rgba(4,25,40,.5)),url("images/door.jpg") center/cover}.login-visual .public-brand{align-self:flex-start}.login-copy h1{font:500 clamp(2.8rem,5vw,5rem)/1 Georgia,serif;margin:0 0 18px}.login-copy p{color:rgba(255,255,255,.88);line-height:1.8;max-width:580px}.login-panel{display:flex;align-items:center;justify-content:center;padding:40px}.real-login{width:min(440px,100%)}.real-login h2{font:500 2.7rem Georgia,serif;color:var(--ocean);margin:0 0 8px}.real-login>p{color:var(--muted);line-height:1.6}.real-login form{margin-top:26px}.real-login label{display:block;font-weight:700;color:var(--ocean);margin:15px 0 6px}.real-login input{width:100%;padding:14px;border:1px solid var(--line);border-radius:12px;font:inherit;min-height:48px}.real-login button{width:100%;margin-top:22px;border:0;background:var(--ocean);color:#fff;padding:14px;border-radius:12px;font-weight:800;font-size:1rem}.login-back{display:inline-block;margin-top:20px;color:var(--ocean)}.login-back-top{margin:0 0 52px;text-decoration:underline;text-underline-offset:3px;font-weight:600;font-size:.9rem;color:#123f49}.login-back-top+.public-eyebrow{margin-top:0}.login-back-top:hover{color:#9b6042}.login-error{margin:18px 0;padding:12px;border:1px solid #efb2aa;border-radius:12px;background:#fff0ed;color:#8f251c}
@media(max-width:900px){.public-header{position:absolute}.public-menu-button{display:flex;width:46px;height:46px;border:1px solid rgba(255,255,255,.35);background:rgba(0,0,0,.16);border-radius:50%;flex-direction:column;justify-content:center;align-items:center;gap:5px}.public-menu-button i{width:20px;height:2px;background:#fff}.public-nav{display:flex;position:fixed;inset:0 0 0 auto;width:min(84vw,340px);background:var(--ocean);padding:95px 28px 30px;flex-direction:column;align-items:stretch;transform:translateX(105%);transition:.22s;box-shadow:-15px 0 50px rgba(0,0,0,.3)}.public-menu-open .public-nav{transform:translateX(0)}.public-nav a{padding:14px 0;font-size:1rem}.public-nav .portal-link{text-align:center;margin-top:10px}.public-split,.public-login-page,.assistance-layout,.contact-info-grid{grid-template-columns:1fr}.public-stats{grid-template-columns:repeat(2,1fr)}.heritage-grid{grid-template-columns:1fr 1fr}.heritage-item.tall{grid-row:span 1}.value-cards{grid-template-columns:1fr}.stewardship-grid{grid-template-columns:1fr 1fr}.appreciation-inner{grid-template-columns:90px 1fr}.appreciation-mark{font-size:8rem}.login-visual{min-height:45vh}.login-panel{padding:50px 24px}}
@media(max-width:600px){.public-brand strong{font-size:.98rem;max-width:180px}.public-header{padding:14px 16px}.public-hero{min-height:88vh;padding-inline:20px}.public-hero h1{font-size:2.8rem}.public-section{padding:65px 20px}.public-split{gap:35px}.public-photo{min-height:300px;border-radius:20px}.public-stats{grid-template-columns:1fr;margin-top:-35px}.heritage-grid{grid-template-columns:1fr;grid-auto-rows:230px}.benefit-list,.stewardship-grid{grid-template-columns:1fr}.appreciation-inner{display:block}.appreciation-mark{height:65px;font-size:7rem}.tenant-appreciation{padding:68px 20px}.tenant-appreciation p{font-size:1.05rem}.public-actions .public-button{width:100%}.footer-grid,.footer-bottom{display:block}.footer-links{margin-top:24px;display:grid;gap:12px}.footer-bottom span{display:block;margin-top:8px}.login-visual{padding:30px 20px;min-height:38vh}.login-panel{align-items:flex-start}.login-copy h1{font-size:2.6rem}}

/* Brighter public home page */
body{background:#faf7f0;color:#28231e}
.public-hero{min-height:84vh;color:#28231e;background:linear-gradient(90deg,rgba(255,254,250,.98) 0%,rgba(255,254,250,.91) 36%,rgba(255,254,250,.3) 61%,rgba(255,254,250,0) 78%),url("images/waqf-coastal-hero-v2.jpg") center/cover;padding-top:125px}
.public-hero .hero-inner>*{max-width:650px}.public-hero h1{font-size:clamp(2.7rem,5.4vw,5.25rem);line-height:1.02;color:#123f49}.hero-subtitle{font-size:clamp(1.25rem,2.4vw,2rem);line-height:1.25;color:#9b6042}.public-hero p{color:#4f4941;font-size:1.02rem;line-height:1.75}.public-hero .public-kicker{color:#123f49;border-color:rgba(18,63,73,.28);background:rgba(255,255,255,.68);font-weight:800}.public-hero .public-button{color:#123f49;border-color:#123f49}.public-hero .public-button.primary{background:#123f49;color:#fff}
.hero-copy{max-width:700px!important;padding:30px 34px 32px;border:1px solid rgba(18,63,73,.12);border-radius:28px;background:rgba(255,254,250,.95);box-shadow:0 18px 52px rgba(18,63,73,.16);-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}.hero-copy .waqf-name{margin-top:20px}.hero-copy .hero-subtitle{margin-top:4px}.hero-copy>p{max-width:620px;margin-bottom:0}
.hero-copy .hero-intro{font-size:1.05rem;line-height:1.72;margin-top:18px}.hero-copy .hero-closing{font:600 1rem/1.65 Georgia,serif;color:#123f49;margin-top:10px;padding-left:15px;border-left:3px solid #d8b778}.hero-copy .public-actions{margin-top:24px;gap:9px}.hero-copy .public-button{min-height:44px;padding:11px 16px;font-size:.9rem}
.home-page .public-header{color:#123f49}.home-page .public-brand span{border-color:rgba(18,63,73,.42)}.home-page .public-nav .portal-link{background:#123f49;color:#fff}.home-page .public-menu-button{border-color:rgba(18,63,73,.3);background:rgba(255,255,255,.5)}.home-page .public-menu-button i{background:#123f49}
.public-section{padding-top:82px;padding-bottom:82px}.public-section h2{font-size:clamp(2.15rem,3.8vw,3.55rem);line-height:1.08}.public-section p{line-height:1.75}
.purpose-principle{padding:36px;background:linear-gradient(145deg,#fffdf7,#f4ead8);border:1px solid rgba(155,96,66,.18);border-radius:28px;box-shadow:0 18px 48px rgba(36,67,70,.11)}.verse-number{display:inline-block;color:#9b6042;font-weight:800;font-size:.77rem;letter-spacing:.12em;text-transform:uppercase}.purpose-principle blockquote{font:500 clamp(1.55rem,2.5vw,2.2rem)/1.35 Georgia,serif;color:#123f49;margin:18px 0}.purpose-principle p{margin-bottom:0}
.tenant-appreciation{padding:84px max(7vw,24px);background:linear-gradient(120deg,#eef3e9,#f8edda)}.appreciation-inner{grid-template-columns:130px 1fr;gap:38px}.appreciation-mark{font-size:8rem;line-height:1;color:rgba(18,63,73,.16)}.tenant-appreciation h2{font-size:clamp(2.25rem,4vw,3.75rem);line-height:1.08}.tenant-appreciation p{font-size:1.1rem;line-height:1.78}.tenant-appreciation .appreciation-thanks{font-size:1.25rem;line-height:1.55}.tenant-appreciation .public-button{border-color:#123f49;color:#123f49}.tenant-appreciation .public-button.primary{background:#123f49;color:#fff}.public-button.subtle{background:rgba(255,255,255,.48)}
.tenant-appreciation .faith-note{font-size:.85rem;color:#6d665e;max-width:820px;border-left:3px solid rgba(18,63,73,.2);padding-left:14px}
.faith-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:32px}.faith-grid article{padding:28px;background:#fffefb;border:1px solid rgba(33,28,23,.12);border-radius:22px}.faith-grid>article>span{color:#b47747;font-weight:800;font-size:.75rem;letter-spacing:.15em}.faith-grid h3{font:600 1.65rem Georgia,serif;color:#123f49;margin:14px 0 10px}.faith-grid p{font-size:.98rem;margin-bottom:18px}.faith-grid small{color:#9b6042;font-weight:700}.history-callout{margin-top:22px;padding:25px 28px;border-left:4px solid #edcf91;background:#f8f5ed;border-radius:0 18px 18px 0}.history-callout strong{font:600 1.35rem Georgia,serif;color:#123f49}.history-callout p{margin:7px 0 0}
.faith-grid small a,.verse-number a{color:inherit;text-decoration-thickness:1px;text-underline-offset:3px}
.public-dark{background:linear-gradient(120deg,#e8f0ed,#f6efe2);color:#28231e}.public-dark h2{color:#123f49}.public-dark p{color:#493f36}.public-dark .public-eyebrow{color:#9b6042}.benefit-item{border-color:rgba(18,63,73,.13);background:rgba(255,255,255,.68);color:#28231e}.portal-card{background:#123f49;color:#fff;box-shadow:0 18px 48px rgba(36,67,70,.11)}.portal-card h3{color:#fff}.portal-card p{color:rgba(255,255,255,.84)}.portal-card .public-button{background:#edcf91;color:#21180f;border-color:#edcf91}
@media(max-width:900px){.faith-grid{grid-template-columns:1fr}.home-page .public-nav{color:#fff}.home-page .public-nav .portal-link{background:#edcf91;color:#21180f}}
@media(max-width:600px){.public-hero{min-height:84vh;padding:115px 20px 65px;background:linear-gradient(90deg,rgba(255,254,250,.97),rgba(255,254,250,.84)),url("images/waqf-coastal-hero-v2.jpg") 62% center/cover}.public-hero h1{font-size:2.65rem}.public-section{padding-top:62px;padding-bottom:62px}.appreciation-mark{font-size:5rem}.tenant-appreciation{padding:64px 20px}.tenant-appreciation p{font-size:1.03rem}}

/* Coordinated public tabs and refined Waqf title */
.waqf-name{font-family:"Palatino Linotype","Book Antiqua",Georgia,serif!important;font-size:clamp(2.65rem,4.65vw,4.7rem)!important;line-height:1.02!important;letter-spacing:-.035em;max-width:720px!important;text-wrap:balance}.waqf-name span{display:block}.waqf-name span:last-child{font-size:.91em;color:#1c5660}
.page-banner{min-height:48vh;align-items:center;padding-top:130px;padding-bottom:55px;color:#123f49;background-color:#f7f2e8;background-position:center;background-size:cover}.page-banner>div{max-width:1180px}.page-banner>div>*{max-width:650px}.page-banner h1{font-family:"Palatino Linotype","Book Antiqua",Georgia,serif;font-size:clamp(2.6rem,4.8vw,4.6rem);line-height:1.04;letter-spacing:-.025em;color:#123f49}.page-banner p{color:#514b44;font-size:1.02rem}.page-banner .public-kicker{color:#123f49;border-color:rgba(18,63,73,.3);background:rgba(255,255,255,.68)}
.waqf-page .page-banner{background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.9) 42%,rgba(255,254,250,.12) 76%),url("images/waqf-courtyard-v2.jpg")}
.properties-page .page-banner{background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.88) 42%,rgba(255,254,250,.08) 76%),url("images/waqf-properties-v2.jpg")}
.contact-page .page-banner,.assistance-page .page-banner{background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.88) 42%,rgba(255,254,250,.08) 76%),url("images/waqf-community-v2.jpg")}
.waqf-page .public-header,.properties-page .public-header,.contact-page .public-header,.assistance-page .public-header{color:#123f49}.waqf-page .public-brand span,.properties-page .public-brand span,.contact-page .public-brand span,.assistance-page .public-brand span{border-color:rgba(18,63,73,.4)}.waqf-page .public-nav .portal-link,.properties-page .public-nav .portal-link,.contact-page .public-nav .portal-link,.assistance-page .public-nav .portal-link{background:#123f49;color:#fff}
.public-photo.waqf-courtyard{background-image:url("images/waqf-courtyard-v2.jpg")}.public-photo.waqf-properties{background-image:url("images/waqf-properties-v2.jpg")}.public-photo.waqf-community{background-image:url("images/waqf-community-v2.jpg")}.public-photo{box-shadow:0 16px 42px rgba(36,67,70,.12);border:1px solid rgba(18,63,73,.09)}
.login-visual{background-image:linear-gradient(110deg,rgba(18,63,73,.88),rgba(18,63,73,.28)),url("images/waqf-courtyard-v2.jpg")}
.compact-guidance{margin-top:-46px;position:relative;margin-inline:24px;padding:24px}.compact-guidance h3{font:600 1.7rem "Palatino Linotype","Book Antiqua",Georgia,serif;color:#123f49;margin:0 0 15px}.compact-guidance .public-button{margin-top:18px}
@media(max-width:900px){.waqf-page .public-nav,.properties-page .public-nav,.contact-page .public-nav,.assistance-page .public-nav{color:#fff}.waqf-page .public-nav .portal-link,.properties-page .public-nav .portal-link,.contact-page .public-nav .portal-link,.assistance-page .public-nav .portal-link{background:#edcf91;color:#21180f}}
@media(max-width:600px){.waqf-name{font-size:2.38rem!important;letter-spacing:-.025em}.waqf-name span:last-child{font-size:.9em}.page-banner{min-height:43vh;padding:112px 20px 45px;background-position:62% center}.page-banner h1{font-size:2.55rem}.page-banner p{font-size:.97rem}.compact-guidance{margin:-30px 12px 0;padding:20px}}

/* High-contrast navigation over photographic banners */
@media(min-width:901px){
 .public-header{
  top:14px;
  left:max(2vw,14px);
  right:max(2vw,14px);
  width:auto;
  padding:10px 14px;
  border:1px solid rgba(18,63,73,.14);
  border-radius:18px;
  background:rgba(255,254,250,.92);
  color:#123f49;
  box-shadow:0 8px 28px rgba(18,63,73,.14);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
 }
 .public-brand span{border-color:rgba(18,63,73,.38)}
 .public-brand strong{color:#123f49}
 .public-nav{gap:8px}
 .public-nav a{
  color:#123f49;
  padding:10px 12px;
  border:0;
  border-radius:999px;
  font-weight:650;
 }
 .public-nav a:hover,.public-nav a.active{
  color:#123f49;
  background:#edf3ef;
  box-shadow:inset 0 0 0 1px rgba(18,63,73,.1);
 }
 .public-nav .plot-holder-nav{
  background:#f2ddb1;
  color:#5b351b;
  box-shadow:inset 0 0 0 1px rgba(91,53,27,.1);
  font-weight:800;
 }
 .public-nav .plot-holder-nav:hover{background:#e8ca8b;color:#442714}
 .public-nav .portal-link,
 .home-page .public-nav .portal-link,
 .waqf-page .public-nav .portal-link,
 .properties-page .public-nav .portal-link,
 .contact-page .public-nav .portal-link,
 .assistance-page .public-nav .portal-link{
  background:#123f49;
  color:#fff;
  padding-inline:18px;
 }
}
@media(max-width:900px){
 .public-header{
  margin:10px;
  padding:8px 10px;
  border:1px solid rgba(18,63,73,.14);
  border-radius:16px;
  background:rgba(255,254,250,.94);
  color:#123f49;
  box-shadow:0 7px 24px rgba(18,63,73,.14);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
 }
 .public-brand span{border-color:rgba(18,63,73,.38)}
 .public-brand strong{color:#123f49}
 .public-menu-button,.home-page .public-menu-button{
  border-color:rgba(18,63,73,.24);
  background:#edf3ef;
 }
 .public-menu-button i,.home-page .public-menu-button i{background:#123f49}
 .public-nav .plot-holder-nav{background:#f2ddb1;color:#442714;border-radius:12px;padding-inline:14px;font-weight:800}
}
@media(min-width:901px) and (max-width:1120px){
 .public-brand strong{font-size:1rem;max-width:190px}
 .public-nav a{padding-inline:8px;font-size:.82rem}
 .public-nav .portal-link{padding-inline:13px}
}

#plot-holders{scroll-margin-top:105px}
.waqf-plot-stats .public-stat{border-top:4px solid #b47747}.waqf-plot-stats .public-stat strong{font-size:1.2rem;letter-spacing:.025em}.waqf-plot-stats .public-stat span{display:block;margin-top:7px;color:#9b6042;font-weight:750;text-transform:uppercase;letter-spacing:.09em;font-size:.72rem}
@media(max-width:600px){.hero-copy{padding:24px 20px;border-radius:22px}.hero-copy .waqf-name{margin-top:17px}.hero-copy .hero-intro{font-size:.98rem}.hero-copy .hero-closing{font-size:.95rem}.public-hero{align-items:flex-start}.waqf-plot-stats .public-stat strong{font-size:1.12rem}}

/* Refined public information architecture */
.simplified-hero{min-height:78vh}.simplified-hero .hero-copy{max-width:760px!important}.simplified-hero .waqf-name span:first-child{font-size:.52em;letter-spacing:.01em;margin-bottom:8px;color:#9b6042}.simplified-hero .waqf-name span:last-child{font-size:.82em;line-height:1.08}.simplified-hero .hero-subtitle{max-width:600px;margin-top:20px;font-size:clamp(1.25rem,2.25vw,1.85rem)}
.narrow-copy{max-width:850px}.home-welcome{text-align:center}.home-welcome .public-eyebrow{justify-content:center}.simple-purpose-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:34px 0 28px}.simple-purpose-grid article{padding:27px 23px;border:1px solid var(--line);border-radius:20px;background:#fffdf8}.simple-purpose-grid span{color:#b47747;font-size:.75rem;font-weight:800;letter-spacing:.14em}.simple-purpose-grid h3{font:600 1.65rem Georgia,serif;color:#123f49;margin:12px 0 8px}.simple-purpose-grid p{font-size:.94rem;margin:0}.text-link{display:inline-flex;gap:8px;align-items:center;color:#123f49;font-weight:800;text-underline-offset:4px}.operation-section{background:#f1e8da}.public-service-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.public-service-card{padding:40px;border:1px solid var(--line);border-radius:26px;background:#f8f4eb}.public-service-card.member-card{background:#123f49;color:#fff}.public-service-card h2{font-size:clamp(2rem,3vw,3rem)}.public-service-card.member-card h2,.public-service-card.member-card p{color:#fff}.public-service-card.member-card .public-eyebrow{color:#edcf91}.public-service-card.member-card .public-button{background:#edcf91;color:#21180f;border-color:#edcf91}.responsibility-closing{text-align:center;background:linear-gradient(120deg,#eaf1ed,#f6eddf)}
.about-plot-list{grid-template-columns:1fr 1fr;margin:0}.about-plot-list .public-stat{min-height:125px}.footer-contact{display:grid;align-content:start;gap:6px}.footer-contact strong{font:600 1.05rem Georgia,serif}.footer-contact a{color:rgba(255,255,255,.78);text-decoration:none}.footer-contact a:hover{text-decoration:underline}.contact-link{text-decoration:none;transition:transform .18s,box-shadow .18s}.contact-link:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(18,63,73,.1)}.news-banner{background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.88) 42%,rgba(255,254,250,.08) 76%),url("images/waqf-courtyard-v2.jpg")}.news-page .public-header{color:#123f49}.news-layout{display:grid;grid-template-columns:1fr .85fr;gap:60px;align-items:start}.news-empty{padding:34px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:var(--shadow)}.news-date{color:#9b6042;font-size:.75rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.news-empty h3{font:600 2rem Georgia,serif;color:#123f49;margin:14px 0 10px}.news-empty .public-button{margin-top:12px;background:#edcf91;border-color:#edcf91;color:#21180f}
@media(max-width:900px){.simple-purpose-grid{grid-template-columns:1fr 1fr}.public-service-grid,.news-layout{grid-template-columns:1fr}.footer-grid{display:grid;grid-template-columns:1fr 1fr}.news-page .public-nav{color:#fff}}
@media(max-width:600px){.simplified-hero{min-height:74vh}.simplified-hero .waqf-name span:first-child{font-size:.56em}.simplified-hero .waqf-name span:last-child{font-size:.78em}.home-page .simplified-hero .waqf-name small{display:block;margin:6px 0 0;font-size:.26em}.simple-purpose-grid,.public-service-grid{grid-template-columns:1fr}.public-service-card{padding:28px 22px}.about-plot-list{grid-template-columns:1fr}.footer-grid{display:block}.footer-contact{margin-top:22px}.home-welcome{text-align:left}}
@media(max-width:900px){.footer-purpose{grid-template-columns:1fr;text-align:left}.footer-purpose strong,.footer-purpose em{text-align:left}}
@media(max-width:600px){.footer-purpose{margin-top:30px;padding:22px 0}.footer-bottom{display:block}.footer-bottom span{display:block;margin-top:8px}}

/* refined public footer */
.public-footer .footer-contact,.public-footer .footer-links{gap:14px!important}
.public-footer .footer-contact span,.public-footer .footer-links span{font:800 .86rem/1.2 Inter,Segoe UI,Arial,sans-serif!important;color:#dfb56e!important;letter-spacing:.16em;text-transform:uppercase;margin-bottom:6px}
.public-footer .footer-contact p{max-width:320px;margin:0 0 8px;color:rgba(255,255,255,.78)}
.public-footer .footer-links a{display:inline-flex;align-items:center;width:max-content;padding-bottom:6px;border-bottom:1px solid rgba(223,181,110,.28)}
.public-footer .footer-purpose{margin-top:48px;padding:30px 0;grid-template-columns:1.15fr .85fr}
.public-footer .footer-purpose strong{color:#dfb56e;font-size:1.75rem;line-height:1.2}
.public-footer .footer-purpose em{font-size:1.12rem;color:rgba(255,255,255,.9)}
.public-footer .footer-bottom{border-top:0;padding-top:22px;justify-content:flex-start}

/* Public content polish, gallery and learning resources */
#contact-details{scroll-margin-top:110px}.waqf-origin-section{background:linear-gradient(125deg,#e8f0ec,#f5ead7)}.origin-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:32px}.origin-story{padding:34px;background:rgba(255,255,255,.74);border:1px solid rgba(18,63,73,.12);border-radius:25px}.origin-story.featured-story{background:#123f49}.origin-story.featured-story h3,.origin-story.featured-story p,.origin-story.featured-story .text-link{color:#fff}.story-number{color:#b47747;font-weight:800;letter-spacing:.14em}.origin-story.featured-story .story-number{color:#edcf91}.origin-story h3{font:600 2rem Georgia,serif;color:#123f49;margin:14px 0 12px}.source-note{font-size:.82rem!important;color:#70675e!important;margin-top:22px}
.public-gallery{display:grid;grid-template-columns:1.25fr .75fr;grid-template-rows:260px 260px;gap:18px;margin-top:32px}.public-gallery figure{position:relative;margin:0;border-radius:24px;overflow:hidden;background:#d9d4ca}.public-gallery .gallery-large{grid-row:1/3}.public-gallery img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s}.public-gallery figure:hover img{transform:scale(1.025)}.public-gallery figcaption{position:absolute;inset:auto 0 0;padding:44px 22px 20px;color:#fff;background:linear-gradient(transparent,rgba(4,25,40,.86));font-size:.9rem;line-height:1.5}
.resource-intro{max-width:860px}.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:32px}.resource-card{display:block;padding:28px;background:#fbf8f1;border:1px solid var(--line);border-radius:22px;text-decoration:none;transition:transform .18s,box-shadow .18s,border-color .18s}.resource-card:hover{transform:translateY(-3px);border-color:rgba(18,63,73,.35);box-shadow:0 16px 38px rgba(18,63,73,.1)}.resource-card>span{color:#9b6042;font-size:.73rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.resource-card h3{font:600 1.55rem Georgia,serif;color:#123f49;margin:13px 0 8px}.resource-card p{font-size:.92rem;margin-bottom:18px}.resource-card b{color:#123f49;font-size:.86rem}
@media(max-width:900px){.origin-grid,.resource-grid{grid-template-columns:1fr 1fr}.public-gallery{grid-template-rows:220px 220px}}
@media(max-width:600px){.origin-grid,.resource-grid,.public-gallery{grid-template-columns:1fr}.origin-story{padding:27px 22px}.public-gallery{display:grid;grid-template-rows:none}.public-gallery .gallery-large{grid-row:auto}.public-gallery figure{height:240px}}

/* Landing hero: quieter editorial composition */
.home-page .simplified-hero{
 min-height:82vh;
 padding:145px max(6vw,24px) 74px;
 position:relative;
 overflow:hidden;
 background:linear-gradient(90deg,rgba(250,248,242,.86) 0%,rgba(250,248,242,.64) 25%,rgba(250,248,242,.22) 43%,rgba(250,248,242,.035) 60%,rgba(250,248,242,0) 100%),url("images/waqf-family-parents-daughter-sons-symbolic.png") 50% center/cover;
}
.home-page .simplified-hero:before{
 content:"";
 position:absolute;
 inset:0 auto 0 0;
 width:min(500px,40vw);
 background:linear-gradient(90deg,rgba(255,254,250,.7) 0%,rgba(255,254,250,.48) 68%,rgba(255,254,250,0) 100%);
 pointer-events:none;
}
.home-page .simplified-hero:after{display:none}
.home-page .simplified-hero .hero-inner{width:min(1200px,100%);position:relative;z-index:1}
.home-page .simplified-hero .hero-copy{
 width:min(500px,41%);
 max-width:none!important;
 padding:23px 25px 25px;
 border:0;
 border-radius:24px;
 background:rgba(255,254,250,.68);
 box-shadow:0 14px 36px rgba(18,63,73,.07);
 -webkit-backdrop-filter:blur(2px);
 backdrop-filter:blur(2px);
}
.home-page .simplified-hero .public-kicker{padding:0;border:0;border-radius:0;background:transparent;color:#2d5a61;font-size:.7rem;letter-spacing:.18em}
.hero-overline{margin-top:30px;color:#a36242;font:500 clamp(1.35rem,2vw,1.85rem)/1.2 "Palatino Linotype","Book Antiqua",Georgia,serif}
.home-page .simplified-hero .waqf-name{max-width:570px!important;margin:8px 0 0;color:#123f49;font-size:clamp(3rem,4.7vw,4.75rem)!important;line-height:.98!important;letter-spacing:-.045em}
.home-page .simplified-hero .waqf-name span,.home-page .simplified-hero .waqf-name span:last-child{font-size:1em;color:inherit}
.home-page .simplified-hero .waqf-name small{display:inline-block;font:italic 600 .22em/1.2 Georgia,serif;letter-spacing:.02em;color:#8e563b;vertical-align:middle;margin-left:8px}
.hero-rule{width:74px;height:3px;margin:25px 0 20px;background:#d5b26f;border-radius:99px}
.home-page .simplified-hero .hero-subtitle{max-width:520px;margin:0;color:#8e563b;font-size:clamp(1.28rem,2vw,1.7rem);line-height:1.28}
.home-page .simplified-hero .hero-summary{max-width:510px;margin:14px 0 0;color:#4d4943;font-size:.98rem;line-height:1.65}
.home-page .simplified-hero .public-actions{margin-top:25px}
.home-page .simplified-hero .public-button{min-height:45px;padding:11px 19px}
@media(max-width:900px){
 .home-page .simplified-hero{min-height:80vh;background:linear-gradient(90deg,rgba(250,248,242,.9) 0%,rgba(250,248,242,.74) 44%,rgba(250,248,242,.2) 100%),url("images/waqf-family-parents-daughter-sons-symbolic.png") 52% center/cover}
 .home-page .simplified-hero:before{width:min(575px,72vw);background:linear-gradient(90deg,rgba(255,254,250,.72),rgba(255,254,250,.46) 70%,rgba(255,254,250,0))}
 .home-page .simplified-hero .hero-copy{width:min(610px,78%)}
}
@media(max-width:600px){
 .home-page .simplified-hero{min-height:auto;padding:118px 20px 58px;background:linear-gradient(180deg,rgba(250,248,242,.95) 0%,rgba(250,248,242,.86) 58%,rgba(250,248,242,.76) 100%),url("images/waqf-family-parents-daughter-sons-symbolic.png") 58% center/cover}
 .home-page .simplified-hero:before{width:100%;background:linear-gradient(180deg,rgba(255,254,250,.93),rgba(255,254,250,.78) 62%,rgba(255,254,250,.58))}
 .home-page .simplified-hero:after{display:none}
 .home-page .simplified-hero .hero-copy{width:100%;padding:18px 16px 20px;border-radius:22px;background:rgba(255,254,250,.78);box-shadow:0 12px 32px rgba(18,63,73,.1);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
 .hero-overline{margin-top:25px;font-size:1.22rem}
 .home-page .simplified-hero .waqf-name{font-size:clamp(2.65rem,12vw,3.35rem)!important;line-height:1.01!important}
 .hero-rule{margin:21px 0 17px}
 .home-page .simplified-hero .hero-subtitle{font-size:1.28rem}
 .home-page .simplified-hero .hero-summary{font-size:.94rem}
 .home-page .simplified-hero .public-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
 .home-page .simplified-hero .public-actions .public-button{width:auto;padding-inline:12px;font-size:.84rem}
}

/* 1959 public narrative and page-specific historical imagery */
.fact-ribbon{background:#123f49;color:#fff;padding:23px max(7vw,24px)}.fact-ribbon .public-wrap{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.fact-ribbon div div{padding-left:22px;border-left:1px solid rgba(255,255,255,.22)}.fact-ribbon span{display:block;color:#edcf91;font-size:.7rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin-bottom:5px}.fact-ribbon strong{font:600 1.25rem Georgia,serif}
.home-pathways{background:#efe7da}.pathway-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.pathway-grid article{padding:27px;background:rgba(255,255,255,.72);border:1px solid rgba(18,63,73,.1);border-radius:20px}.pathway-grid article>span{color:#b47747;font-size:.72rem;font-weight:800;letter-spacing:.14em}.pathway-grid h3{font:600 1.55rem Georgia,serif;color:#123f49;margin:13px 0 9px}.pathway-grid p{font-size:.93rem;margin-bottom:16px}.pathway-grid a{color:#123f49;font-weight:800;text-underline-offset:4px}
.waqf-history-banner{background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.88) 42%,rgba(255,254,250,.08) 76%),url("images/waqf-history-1959.jpg")}.waqf-history-photo{background-image:url("images/waqf-history-1959.jpg")}.founder-callout{padding:42px;border-radius:28px;background:#123f49;color:#fff;text-align:center}.founder-callout span{display:block;color:#edcf91;text-transform:uppercase;letter-spacing:.16em;font-size:.74rem;font-weight:800}.founder-callout strong{display:block;font:500 clamp(4rem,8vw,7rem)/1 Georgia,serif;margin:10px 0}.founder-callout p{color:#fff;margin:0;font:600 1.2rem Georgia,serif}.founder-callout small{display:block;color:rgba(255,255,255,.62);line-height:1.5;margin-top:25px}
.founder-callout.amanah-callout{text-align:left}.founder-callout.amanah-callout strong{font-size:clamp(2.4rem,4vw,3.8rem);line-height:1.05}.founder-callout.amanah-callout p{font-size:1.08rem;color:#edcf91}.founder-callout.amanah-callout small{color:rgba(255,255,255,.82);font-size:.98rem;line-height:1.75}
.assistance-page .page-banner{background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.88) 42%,rgba(255,254,250,.08) 76%),url("images/waqf-community-care-1959.jpg")}.assistance-history-photo{background-image:url("images/waqf-community-care-1959.jpg")}.assistance-category-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:26px}.assistance-category-grid div{padding:15px 17px;border:1px solid rgba(18,63,73,.13);border-radius:14px;background:#fff}
.news-records-banner{background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.9) 42%,rgba(255,254,250,.1) 76%),url("images/waqf-records-1959.jpg")}.records-history-photo{background-image:url("images/waqf-records-1959.jpg")}.contact-page-banner{background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.88) 42%,rgba(255,254,250,.08) 76%),url("images/waqf-community-v2.jpg")}
.about-gallery img{filter:saturate(.88) contrast(.98)}
.login-services-heading{margin-top:24px;color:#d7b46a}.login-services{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.login-services span{display:grid;gap:5px;padding:13px 14px;border:1px solid rgba(255,255,255,.25);border-radius:12px;background:rgba(255,255,255,.08);font-size:.87rem}.login-services strong{color:#fff;font-size:.94rem}.login-services small{color:rgba(255,255,255,.78);line-height:1.45}.portal-protection-note{margin-top:16px;color:#123f49;font-weight:800}.portal-help{color:#64748b;font-size:.92rem;line-height:1.55}
@media(max-width:900px){.pathway-grid{grid-template-columns:1fr 1fr}.fact-ribbon .public-wrap{grid-template-columns:1fr 1fr}.fact-ribbon div div:last-child{grid-column:1/-1}.founder-section{grid-template-columns:1fr}}
@media(max-width:600px){.fact-ribbon .public-wrap,.pathway-grid,.assistance-category-grid,.login-services{grid-template-columns:1fr}.fact-ribbon div div,.fact-ribbon div div:last-child{grid-column:auto}.fact-ribbon div div{padding:8px 0 8px 15px}.pathway-grid article{padding:23px}.founder-callout{padding:32px 22px}}

/* Final public typography and responsive interaction pass */
body.public-page{font-size:16px;line-height:1.6;text-rendering:optimizeLegibility}
.public-page h1,.public-page h2,.public-page h3{text-wrap:balance}
.public-page p{max-width:72ch}
.public-section h2{font-family:"Palatino Linotype","Book Antiqua",Georgia,serif;font-size:clamp(2.15rem,3.55vw,3.45rem);line-height:1.1;letter-spacing:-.025em;margin-bottom:18px}
.public-lead{font-size:clamp(1.05rem,1.35vw,1.18rem);line-height:1.72!important;color:#3f3831!important}
.public-eyebrow{font-size:.73rem;line-height:1.4;letter-spacing:.145em;margin-bottom:13px}
.value-card h3,.simple-purpose-grid h3,.pathway-grid h3,.resource-card h3{line-height:1.18;letter-spacing:-.012em}
.page-banner h1{font-size:clamp(2.65rem,4.55vw,4.35rem);line-height:1.06;max-width:760px}
.page-banner p{font-size:clamp(1rem,1.35vw,1.1rem);line-height:1.7;max-width:670px}
.public-button{min-height:48px;font-size:.94rem;line-height:1.2;font-weight:800;transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease}
.public-button:hover{transform:translateY(-1px)}
.public-button:focus-visible,.public-nav a:focus-visible,.public-menu-button:focus-visible,.pathway-grid a:focus-visible{outline:3px solid #d8a84e;outline-offset:3px}
.public-nav-services{position:relative}
.public-nav-services>.services-trigger{display:inline-flex;align-items:center;gap:7px}
.public-nav-services>.services-trigger::after{content:'⌄';font-size:.76rem;line-height:1;transform:translateY(-1px)}
.public-nav-services.active>.services-trigger{border-color:var(--sand)}
.public-services-menu{position:absolute;top:calc(100% + 12px);right:0;width:min(360px,88vw);background:#fffdf8;color:#123f49;border:1px solid rgba(18,63,73,.16);border-radius:14px;box-shadow:0 20px 55px rgba(0,0,0,.16);padding:10px;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease;z-index:80}
.public-nav-services:hover .public-services-menu,.public-nav-services:focus-within .public-services-menu{opacity:1;visibility:visible;transform:translateY(0)}
.public-services-menu::before{content:'';position:absolute;right:34px;top:-8px;width:14px;height:14px;background:#fffdf8;border-left:1px solid rgba(18,63,73,.16);border-top:1px solid rgba(18,63,73,.16);transform:rotate(45deg)}
.public-services-menu a{position:relative;display:grid!important;grid-template-columns:1fr auto;gap:2px 12px;text-decoration:none;border:0!important;border-bottom:1px solid rgba(18,63,73,.12)!important;border-radius:0!important;background:transparent!important;color:#123f49!important;min-height:auto!important;padding:14px 12px!important}
.public-services-menu a:last-child{border-bottom:0!important}
.public-services-menu strong{font-size:.95rem;font-weight:850}
.public-services-menu small{grid-column:1;color:#50636a;font-size:.82rem}
.public-services-menu em{grid-column:2;grid-row:1 / span 2;align-self:center;justify-self:end;font-style:normal;text-transform:uppercase;letter-spacing:.07em;font-size:.68rem;font-weight:850;background:#eef3ee;color:#245541;border-radius:999px;padding:6px 9px}
.public-services-menu .view-all{display:block!important;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:850;color:#123f49!important}
.public-services-menu a:hover{background:#f7efe0!important}
.public-info-ribbon{position:absolute;inset:0 0 auto;z-index:80;background:rgba(18,63,73,.96);color:#fff;border-bottom:1px solid rgba(237,207,145,.32)}
.public-prayer-toggle{width:100%;min-height:38px;border:0;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;padding:7px max(5vw,18px);font:700 .82rem/1.35 system-ui,-apple-system,Segoe UI,sans-serif;cursor:pointer}
.public-prayer-toggle span{opacity:.92}.public-prayer-toggle strong{color:#edcf91;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}.mobile-ribbon{display:none}
.public-prayer-panel{position:absolute;top:100%;left:50%;transform:translateX(-50%);width:min(520px,calc(100vw - 28px));background:#fffaf3;color:#123f49;border:1px solid rgba(168,102,58,.22);border-radius:0 0 18px 18px;box-shadow:0 20px 45px rgba(0,0,0,.18);padding:18px;z-index:90}
.public-prayer-panel small{display:block;color:#6e5b45;margin-top:4px}.public-prayer-panel dl{display:grid;grid-template-columns:repeat(2,1fr);gap:8px 18px;margin:14px 0 8px}.public-prayer-panel dl div{display:flex;justify-content:space-between;border-bottom:1px solid rgba(18,63,73,.1);padding-bottom:6px}.public-prayer-panel dt{font-weight:800}.public-prayer-panel dd{margin:0}.public-prayer-panel p{font-size:.86rem;color:#6e5b45;margin:10px 0 0;line-height:1.45}
.public-hijri-summary{margin:0 0 14px;padding:0 0 12px;border-bottom:1px solid rgba(18,63,73,.12)}.public-hijri-summary b{display:block;color:#123f49;font-size:1rem}.public-hijri-summary small{font-size:.86rem}
.prayer-ribbon-on .public-header{top:38px}
@media(max-width:900px){.public-prayer-toggle{justify-content:flex-start;gap:8px;font-size:.78rem;min-height:42px;flex-wrap:nowrap;overflow:hidden;white-space:nowrap}.desktop-ribbon,.ribbon-hijri,.ribbon-local-hijri{display:none!important}.mobile-ribbon,.ribbon-next-prayer{display:inline;flex:0 0 auto}.ribbon-next-prayer{min-width:0;overflow:hidden;text-overflow:ellipsis}.public-prayer-toggle strong{margin-left:auto;flex:0 0 auto}.prayer-ribbon-on .public-header{top:42px}.public-prayer-panel{left:14px;right:14px;transform:none;width:auto}.public-prayer-panel dl{grid-template-columns:1fr}}
@media(max-width:430px){.ribbon-next-prayer{max-width:150px}.public-prayer-toggle strong{font-size:.7rem}}
.home-page .simplified-hero .public-button.primary{background:#123f49;border-color:#123f49;color:#fff;box-shadow:0 8px 20px rgba(18,63,73,.22)}
.home-page .simplified-hero .public-button:not(.primary){background:rgba(255,255,255,.94);border:2px solid #123f49;color:#123f49;box-shadow:0 7px 18px rgba(18,63,73,.13)}
.pathway-grid a{display:inline-flex;min-height:44px;align-items:center;padding:8px 0}
@media(max-width:900px){
 .public-menu-button{position:relative;z-index:3}
 .public-menu-button i{transition:transform .18s ease,opacity .18s ease}
 .public-menu-open .public-menu-button i:nth-child(1){transform:translateY(7px) rotate(45deg)}
 .public-menu-open .public-menu-button i:nth-child(2){opacity:0}
 .public-menu-open .public-menu-button i:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
 .public-nav{gap:8px;color:#fff!important}
 .public-nav a{min-height:50px;display:flex;align-items:center;padding:12px 15px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(255,255,255,.08);color:#fff!important;font-size:1rem;font-weight:750}
 .public-nav a:hover,.public-nav a.active{border-color:rgba(237,207,145,.7);background:rgba(237,207,145,.18)}
 .public-nav .portal-link,.home-page .public-nav .portal-link,.waqf-page .public-nav .portal-link,.properties-page .public-nav .portal-link,.contact-page .public-nav .portal-link,.assistance-page .public-nav .portal-link{min-height:52px;margin-top:6px;justify-content:center;background:#edcf91;border-color:#edcf91;color:#21180f!important;box-shadow:0 8px 20px rgba(0,0,0,.22)}
}
@media(max-width:600px){
 body.public-page{font-size:15.75px}
 .public-section{padding:58px 20px}
 .public-section h2{font-size:clamp(2rem,9vw,2.65rem);line-height:1.12}
 .public-lead{font-size:1.04rem}
 .page-banner{padding:112px 20px 43px}
 .page-banner h1{font-size:clamp(2.25rem,10vw,2.85rem);line-height:1.08}
 .page-banner p{font-size:.98rem}
 .home-page .simplified-hero{padding:116px 18px 54px;background:linear-gradient(180deg,rgba(250,248,242,.985) 0%,rgba(250,248,242,.96) 66%,rgba(250,248,242,.86) 100%),url("images/waqf-family-parents-daughter-sons-symbolic.png") 66% center/cover}
 .home-page .simplified-hero .waqf-name{font-size:clamp(2.45rem,11.4vw,3.15rem)!important;line-height:1.035!important;letter-spacing:-.035em}
 .home-page .simplified-hero .hero-subtitle{font-size:1.2rem;line-height:1.35}
 .home-page .simplified-hero .hero-summary{font-size:.96rem;line-height:1.65}
 .home-page .simplified-hero .public-actions{grid-template-columns:1fr;gap:11px;margin-top:23px}
 .home-page .simplified-hero .public-actions .public-button{width:100%;min-height:50px;padding:13px 16px;font-size:.95rem}
 .simple-purpose-grid h3,.pathway-grid h3{font-size:1.45rem}
 .public-menu-button{width:48px;height:48px;flex:0 0 48px}
}

/* Mobile navigation contrast fix: keep menu links readable on every public page */
@media(max-width:900px){
 body.public-menu-open .public-header{position:fixed;inset:0 0 auto 0;z-index:1200}
 .public-menu-button{position:relative;z-index:1202;background:#fffdf8!important;border:1px solid rgba(18,63,73,.22)!important;box-shadow:0 12px 30px rgba(0,0,0,.2)}
 .public-menu-button i{background:#123f49!important}
 .prayer-ribbon-on .public-header{top:42px!important;padding-top:10px!important}
 .prayer-ribbon-on .public-menu-button{width:54px!important;height:54px!important;flex:0 0 54px!important;border-radius:50%!important}
 .public-nav{
  position:fixed!important;
  z-index:1201!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  min-height:100dvh!important;
  padding:112px 22px 30px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:12px!important;
  overflow-y:auto!important;
  background:linear-gradient(180deg,#062c3a 0%,#0f4652 100%)!important;
  box-shadow:none!important;
  transform:translateX(105%)!important;
  transition:transform .24s ease!important;
 }
 .public-menu-open .public-nav{transform:translateX(0)!important}
 .public-nav a{
  width:100%!important;
  min-height:56px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:14px 18px!important;
  border:1px solid rgba(237,207,145,.38)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.12)!important;
  color:#fffdf8!important;
  font-size:1.05rem!important;
  font-weight:850!important;
  letter-spacing:.01em!important;
  text-align:center!important;
  text-shadow:none!important;
  opacity:1!important;
 }
 .public-nav a.active{
  background:rgba(237,207,145,.24)!important;
  border-color:#edcf91!important;
  color:#fff!important;
 }
 .public-nav .portal-link,
 .home-page .public-nav .portal-link,
 .waqf-page .public-nav .portal-link,
 .properties-page .public-nav .portal-link,
 .contact-page .public-nav .portal-link,
 .assistance-page .public-nav .portal-link,
 .gallery-page .public-nav .portal-link,
 .news-page .public-nav .portal-link{
  margin-top:4px!important;
  background:#edcf91!important;
  border-color:#edcf91!important;
  color:#21180f!important;
  box-shadow:0 14px 26px rgba(0,0,0,.24)!important;
 }
 .public-nav-services{display:block}
 .public-nav-services>.services-trigger{min-height:50px;display:flex!important;align-items:center;padding:12px 15px;border:1px solid rgba(255,255,255,.14)!important;border-radius:12px;background:rgba(255,255,255,.08);color:#fff!important;font-size:1rem;font-weight:750}
 .public-services-menu{position:static;width:100%;margin-top:8px;opacity:1;visibility:visible;transform:none;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14);box-shadow:none}
 .public-services-menu::before{display:none}
 .public-services-menu a{color:#fff!important;border-bottom-color:rgba(255,255,255,.12)!important}
 .public-services-menu small{color:rgba(255,255,255,.78)}
 .public-services-menu em{background:#edcf91;color:#21180f}
 .public-services-menu a:hover{background:rgba(237,207,145,.16)!important}
}

/* Mobile page-banner readability: protect text from bright gallery/background areas */
@media(max-width:700px){
 .page-banner{
  min-height:auto!important;
  padding:118px 18px 38px!important;
  align-items:flex-end!important;
  background-position:68% center!important;
 }
 .waqf-page .page-banner,
 .properties-page .page-banner,
 .assistance-page .page-banner,
 .contact-page .page-banner,
 .gallery-page .page-banner,
 .news-page .page-banner,
 .waqf-history-banner,
 .news-records-banner,
 .contact-page-banner{
  background-blend-mode:normal!important;
 }
 .page-banner>div{
  width:100%!important;
  padding:22px 20px 23px!important;
  border:1px solid rgba(18,63,73,.14)!important;
  border-radius:24px!important;
  background:rgba(255,253,248,.93)!important;
  box-shadow:0 18px 42px rgba(18,63,73,.16)!important;
  -webkit-backdrop-filter:blur(7px)!important;
  backdrop-filter:blur(7px)!important;
 }
 .page-banner .public-kicker{
  background:#fffdf8!important;
  color:#123f49!important;
  border-color:rgba(18,63,73,.28)!important;
  box-shadow:0 6px 16px rgba(18,63,73,.08)!important;
 }
 .page-banner h1{
  color:#123f49!important;
  font-size:clamp(2.2rem,10vw,2.85rem)!important;
  line-height:1.08!important;
  text-shadow:none!important;
 }
 .page-banner p{
  color:#342f2a!important;
  font-size:1rem!important;
  line-height:1.66!important;
  text-shadow:none!important;
 }
}

/* Home welcome and family legacy feature */
.home-welcome{
 background:#faf7f0;
}
.welcome-layout{
 display:grid;
 grid-template-columns:minmax(260px,.78fr) 1.22fr;
 gap:clamp(30px,5vw,70px);
 align-items:center;
}
.home-welcome .public-eyebrow{
 margin-bottom:14px;
}
.welcome-heading h2{
 margin:0;
 max-width:620px;
 font-size:clamp(2.55rem,4.2vw,4.25rem);
 line-height:1.05;
 letter-spacing:-.035em;
 color:#123f49;
}
.welcome-copy{
 padding:30px 34px;
 border-left:4px solid #d5b26f;
 background:rgba(255,253,248,.58);
 border-radius:0 24px 24px 0;
}
.welcome-copy p{
 margin:0;
 max-width:68ch;
 color:#37312b;
 font-size:1.05rem;
 line-height:1.82;
}
.welcome-copy p+p{
 margin-top:18px;
}
.family-legacy-feature{
 padding-top:18px;
 background:linear-gradient(180deg,#faf7f0 0%,#efe7da 100%);
}
.family-legacy-image{
 margin:0;
 overflow:hidden;
 border:1px solid rgba(18,63,73,.14);
 border-radius:30px;
 background:#fffdf8;
 box-shadow:0 22px 58px rgba(18,63,73,.16);
}
.family-legacy-image img{
 display:block;
 width:100%;
 height:auto;
 max-height:none;
 object-fit:contain;
}
.family-legacy-image figcaption{
 padding:16px 22px 18px;
 color:#625950;
 font-size:.86rem;
 line-height:1.55;
 background:#fffdf8;
 border-top:1px solid rgba(18,63,73,.1);
}
@media(max-width:900px){
 .welcome-layout{
  grid-template-columns:1fr;
  gap:24px;
 }
 .welcome-copy{
  padding:24px 24px;
 }
 .family-legacy-feature{
  padding-top:0;
 }
}
@media(max-width:600px){
 .home-welcome{
  text-align:left;
 }
 .welcome-heading h2{
  font-size:clamp(2.15rem,10vw,2.85rem);
 }
 .welcome-copy{
  padding:22px 20px;
  border-left:3px solid #d5b26f;
  border-radius:0 20px 20px 0;
 }
 .welcome-copy p{
  font-size:1rem;
  line-height:1.72;
 }
 .family-legacy-image{
  border-radius:22px;
 }
 .family-legacy-image figcaption{
  padding:14px 16px;
  font-size:.8rem;
 }
}

.news-list{display:grid;gap:18px}.news-list .news-empty{text-align:left}.news-list .label{color:#64748b;font-size:.92rem;margin-top:14px}

/* MAS Amanah official public notices */
.news-list .official-notice{
 position:relative;
 overflow:hidden;
 padding:34px 36px 38px;
 border:2px solid rgba(18,63,73,.34);
 border-top:7px solid #123f49;
 border-radius:20px;
 background:linear-gradient(180deg,#fffef9 0%,#f8f4e9 100%);
 box-shadow:0 18px 42px rgba(18,63,73,.16);
}
.news-list .official-notice:after{
 content:"";
 position:absolute;
 right:-42px;
 bottom:-52px;
 width:150px;
 height:150px;
 border:18px solid rgba(213,178,111,.13);
 border-radius:50%;
 pointer-events:none;
}
.official-notice-badge{
 display:inline-flex;
 align-items:center;
 margin:0 0 14px;
 padding:7px 12px;
 border-radius:999px;
 background:#123f49;
 color:#fff;
 font-size:.72rem;
 font-weight:900;
 letter-spacing:.12em;
 line-height:1;
 text-transform:uppercase;
}
.news-list .official-notice .news-date{
 margin:0 0 12px;
 color:#754427;
 font-size:.78rem;
 letter-spacing:.12em;
}
.news-list .official-notice h3{
 margin:8px 0 16px;
 color:#082f3a;
 font-size:clamp(1.65rem,3vw,2.25rem);
 line-height:1.08;
}
.news-list .official-notice>p:not(.news-date):not(.label){
 position:relative;
 z-index:1;
 color:#202a2e;
 font-family:Arial,Helvetica,sans-serif;
 font-size:1.02rem;
 line-height:1.75;
}
.news-list .official-notice>p:nth-of-type(2){
 padding:12px 15px;
 border-left:4px solid #d5b26f;
 background:rgba(255,255,255,.72);
 color:#102f37;
}
@media(max-width:600px){
 .news-list .official-notice{padding:25px 22px 28px;border-radius:17px}
 .news-list .official-notice>p:not(.news-date):not(.label){font-size:1rem;line-height:1.68}
}

/* v60 humble Waqf land image direction */
.home-page .simplified-hero{
 background:linear-gradient(90deg,rgba(250,248,242,.92) 0%,rgba(250,248,242,.78) 31%,rgba(250,248,242,.34) 55%,rgba(250,248,242,.05) 78%),url("images/waqf-home-coconut-v61.png") 50% center/cover!important;
}
.waqf-page .page-banner,.waqf-history-banner{
 background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.9) 42%,rgba(255,254,250,.12) 76%),url("images/waqf-about-amanah-v60.png")!important;
}
.properties-page .page-banner{
 background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.88) 42%,rgba(255,254,250,.08) 76%),url("images/waqf-properties-coconut-v60.png")!important;
}
.assistance-page .page-banner,.assistance-banner{
 background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.88) 42%,rgba(255,254,250,.08) 76%),url("images/waqf-community-assistance-v64.png")!important;
}
.news-page .page-banner,.news-banner,.news-records-banner{
 background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.9) 42%,rgba(255,254,250,.1) 76%),url("images/waqf-news-records-v60.png")!important;
}
.contact-page .page-banner,.contact-page-banner{
 background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.88) 42%,rgba(255,254,250,.08) 76%),url("images/waqf-contact-v60.png")!important;
}
.public-photo.waqf-courtyard,.waqf-history-photo{
 background-image:url("images/waqf-about-amanah-v60.png")!important;
}
.public-photo.waqf-properties{
 background-image:url("images/waqf-properties-coconut-v60.png")!important;
}
.public-photo.waqf-community,.assistance-history-photo{
 background-image:url("images/waqf-community-assistance-v64.png")!important;
}
.records-history-photo{
 background-image:url("images/waqf-news-records-v60.png")!important;
}
.login-visual{
 background-image:linear-gradient(110deg,rgba(18,63,73,.88),rgba(18,63,73,.28)),url("images/waqf-member-access-v60.png")!important;
}
.login-visual .public-brand{
 padding:9px 14px 9px 10px;
 border-radius:999px;
 background:rgba(255,254,250,.9);
 box-shadow:0 12px 30px rgba(0,0,0,.22);
 -webkit-backdrop-filter:blur(10px);
 backdrop-filter:blur(10px);
}
.login-visual .public-brand span{
 width:40px;
 height:40px;
 border-color:rgba(18,63,73,.32)!important;
 color:#123f49!important;
 background:rgba(255,255,255,.62);
}
.login-visual .public-brand strong{
 color:#123f49!important;
 text-shadow:none;
}
.platform-login-visual{
 justify-content:flex-start!important;
 gap:30px;
 overflow:auto;
}
.platform-login-visual .platform-brand{
 color:#123f49!important;
}
.platform-login-copy h1{
 margin-bottom:8px!important;
}
.platform-login-copy h2{
 margin:0 0 18px;
 color:#fff;
 font:600 clamp(1.55rem,2.2vw,2.3rem)/1.2 Georgia,serif;
}
.platform-login-copy h3{
 margin:8px 0 0;
 color:#fff;
 font:600 1.35rem/1.2 Georgia,serif;
}
.platform-login-note{
 margin-top:18px;
 padding:18px 20px;
 border:1px solid rgba(255,255,255,.24);
 border-radius:18px;
 background:rgba(255,255,255,.08);
}
.platform-login-note strong{
 display:block;
 margin-bottom:8px;
 color:#edcf91;
 font:800 .82rem/1.3 Inter,Segoe UI,Arial,sans-serif;
 letter-spacing:.12em;
 text-transform:uppercase;
}
.platform-login-note p{
 margin:0;
 color:rgba(255,255,255,.86);
 line-height:1.65;
}
.portal-access-note{
 margin-top:18px;
 padding-top:18px;
 border-top:1px solid rgba(18,63,73,.12);
}
.portal-access-note h3{
 margin:0 0 8px;
 color:#123f49;
 font:700 1.05rem/1.3 Inter,Segoe UI,Arial,sans-serif;
}
.portal-access-note p{
 margin:0 0 9px;
 color:#5c5148;
 line-height:1.58;
 font-size:.93rem;
}
.portal-access-note.legacy-note{
 margin-top:22px;
 padding:18px;
 border:1px solid rgba(180,119,71,.22);
 border-radius:18px;
 background:#fbf4e8;
}

/* Cleaner Secure Member Portal landing */
.public-login-page{
 grid-template-columns:1.08fr .92fr;
}
.platform-login-visual{
 min-height:100vh;
 padding-top:46px!important;
 padding-bottom:42px!important;
 background-image:linear-gradient(110deg,rgba(4,33,39,.93),rgba(4,33,39,.46)),url("images/waqf-member-access-v60.png")!important;
}
.platform-login-copy{
 max-width:620px;
 margin-top:26px;
}
.platform-login-copy .public-kicker{
 color:#edcf91;
}
.platform-login-copy h1{
 font-size:clamp(3.05rem,5.1vw,5.25rem)!important;
 line-height:.98!important;
}
.platform-login-copy h2{
 color:#edcf91;
 font-size:clamp(1.35rem,2vw,1.85rem);
 margin-bottom:22px;
}
.platform-login-copy p{
 max-width:560px;
 margin-bottom:14px;
 line-height:1.72!important;
}
.platform-login-copy .login-services-heading{
 margin-top:24px;
 padding-top:18px;
 border-top:1px solid rgba(237,207,145,.5);
}
.platform-login-copy h3{
 color:#edcf91;
 font-size:1.08rem;
 margin-bottom:14px;
}
.platform-login-copy .login-services{
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:10px;
}
.platform-login-copy .login-services span{
 min-height:112px;
 padding:18px 18px;
 border-color:rgba(255,255,255,.2);
 background:rgba(255,255,255,.055);
}
.platform-login-copy .login-services strong{
 font-family:Georgia,serif;
 font-size:1rem;
}
.platform-login-copy .login-services small{
 font-size:.82rem;
}
.platform-login-note.compact{
 display:grid;
 grid-template-columns:110px 1fr;
 gap:18px;
 align-items:start;
 margin-top:20px;
 padding:18px 0 0;
 border:0;
 border-top:1px solid rgba(237,207,145,.5);
 border-radius:0;
 background:transparent;
}
.platform-login-note.compact strong{
 margin:0;
 color:#fff;
 font:600 1.32rem/1.25 Georgia,serif;
 letter-spacing:0;
 text-transform:none;
}
.platform-login-note.compact p{
 margin:0;
 font-size:.92rem;
}
.login-panel{
 background:linear-gradient(135deg,#f8f1e4,#fffaf1);
}
.real-login{
 width:min(455px,100%);
}
.real-login .login-back-top{
 margin-bottom:54px!important;
 font-size:.85rem;
 font-weight:750;
 text-decoration:none;
}
.real-login h2{
 font-size:2.55rem!important;
 margin-bottom:14px!important;
}
.real-login input{
 min-height:54px;
 background:#fff;
}
.real-login input::placeholder{
 color:#8a8177;
}
.real-login button{
 min-height:54px;
 box-shadow:0 12px 28px rgba(18,63,73,.13);
}
.portal-protection-note{
 margin-top:22px;
 padding:0 0 22px;
 border-bottom:1px solid rgba(18,63,73,.13);
 color:#5a5148!important;
}
.portal-access-note{
 margin-top:26px;
 padding-top:0;
 border-top:0;
}
.portal-access-note h3{
 font-family:Georgia,serif;
 font-size:1.25rem;
}
@media(max-width:900px){
 .platform-login-visual{
  min-height:auto;
  padding-bottom:34px!important;
 }
 .platform-login-copy{
  margin-top:20px;
 }
}
@media(max-width:600px){
 .platform-login-copy .login-services{
  grid-template-columns:1fr;
 }
 .platform-login-note.compact{
  grid-template-columns:1fr;
  gap:8px;
 }
 .real-login .login-back-top{
  margin-bottom:38px!important;
 }
}
.real-login .login-back-top{
 display:block!important;
 width:max-content;
 margin:0 0 44px!important;
 line-height:1.2;
}
.real-login .login-back-top+.public-eyebrow{
 display:block;
 margin-top:0!important;
 margin-bottom:18px;
}
.real-login .login-back-top{
 margin:0 0 54px!important;
 font-size:.85rem;
 font-weight:750;
 text-decoration:none;
}
@media(max-width:600px){
 .real-login .login-back-top{
  margin-bottom:38px!important;
 }
}

/* Public gallery / Our Waqf in Pictures */
.gallery-page .page-banner,.gallery-page-banner{
 background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.88) 42%,rgba(255,254,250,.08) 76%),url("images/waqf-home-coconut-v61.png")!important;
}
.section-heading-center{
 max-width:900px;
 margin:0 auto 32px;
 text-align:center;
}
.section-heading-center h2{
 margin:8px 0 12px;
 font-size:clamp(2.25rem,4.4vw,4rem);
 line-height:1.08;
 color:#123f49;
 letter-spacing:-.035em;
}
.section-heading-center .public-lead{
 margin-left:auto;
 margin-right:auto;
}
.home-gallery-preview{
 background:linear-gradient(180deg,#efe7da 0%,#faf7f0 100%);
}
.home-gallery-hidden .home-gallery-preview,
.home-gallery-hidden .home-gallery-grid,
.home-gallery-hidden .home-gallery-card{
 display:none!important;
}
.home-gallery-grid,.gallery-grid{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:22px;
}
.home-gallery-card,.gallery-card{
 overflow:hidden;
 border:1px solid rgba(18,63,73,.12);
 border-radius:18px;
 background:#fffdf8;
 box-shadow:0 16px 38px rgba(18,63,73,.12);
}
.home-gallery-card{
 display:block;
 color:#123f49;
 text-decoration:none;
 transition:transform .18s ease, box-shadow .18s ease;
}
.home-gallery-card:hover{
 transform:translateY(-3px);
 box-shadow:0 22px 48px rgba(18,63,73,.18);
}
.home-gallery-card img,.gallery-card img{
 display:block;
 width:100%;
 height:220px;
 object-fit:cover;
 background:#efe7da;
}
.home-gallery-card span,.gallery-card-body span{
 display:block;
 margin:18px 18px 6px;
 color:#a7653d;
 font-size:.72rem;
 font-weight:900;
 letter-spacing:.18em;
 text-transform:uppercase;
}
.home-gallery-card strong{
 display:block;
 min-height:62px;
 padding:0 18px 20px;
 color:#123f49;
 font-family:Georgia,serif;
 font-size:1.22rem;
 line-height:1.2;
}
.public-actions.centered{
 justify-content:center;
 margin-top:30px;
}
.gallery-intro{
 background:#faf7f0;
}
.gallery-browser{
 padding-top:34px;
}
.gallery-filter-row{
 display:flex;
 flex-wrap:wrap;
 gap:10px;
 margin:0 0 28px;
}
.gallery-filter-row button{
 -webkit-appearance:none;
 appearance:none;
 display:inline-flex;
 align-items:center;
 justify-content:center;
 min-height:42px;
 padding:9px 15px;
 border:1px solid rgba(18,63,73,.16);
 border-radius:999px;
 background:#fffdf8;
 color:#123f49;
 cursor:pointer;
 font-family:inherit;
 font-size:.83rem;
 font-weight:850;
 letter-spacing:.04em;
 line-height:1;
 box-shadow:0 8px 18px rgba(18,63,73,.06);
 transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.gallery-filter-row button:hover{
 border-color:#a7653d;
 color:#a7653d;
 box-shadow:0 10px 24px rgba(167,101,61,.14);
}
.gallery-filter-row button.active{
 background:#a7653d;
 border-color:#a7653d;
 color:#fffdf8;
 box-shadow:0 12px 26px rgba(167,101,61,.22);
}
.gallery-card{
 display:flex;
 flex-direction:column;
}
.gallery-card[hidden]{
 display:none!important;
}
.gallery-card a{
 display:block;
 text-decoration:none;
}
.gallery-card-body{
 display:flex;
 flex:1;
 flex-direction:column;
 padding-bottom:18px;
}
.gallery-card-body h3{
 margin:0 18px 8px;
 color:#123f49;
 font-size:1.32rem;
 line-height:1.2;
}
.gallery-card-body p{
 margin:0 18px;
 color:#3d3730;
 line-height:1.62;
}
.gallery-meta{
 display:flex;
 gap:12px;
 justify-content:space-between;
 margin:auto 18px 0;
 padding-top:16px;
 color:#625950;
 font-size:.82rem;
}
.gallery-meta small{
 display:inline-flex;
 align-items:center;
 gap:6px;
}
.gallery-lightbox-open{overflow:hidden}
.gallery-lightbox[hidden]{display:none!important}
.gallery-lightbox{position:fixed;inset:0;z-index:3000;display:flex;align-items:center;justify-content:center;padding:32px;background:rgba(4,25,40,.86);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.gallery-lightbox-panel{width:min(1080px,100%);max-height:92vh;display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden;border-radius:24px;background:#fffdf8;box-shadow:0 30px 90px rgba(0,0,0,.42)}
.gallery-lightbox-panel img{display:block;width:100%;max-height:72vh;object-fit:contain;background:#0b2530}
.gallery-lightbox-caption{padding:18px 24px 22px}
.gallery-lightbox-caption span{display:block;color:#a7653d;font-size:.72rem;font-weight:900;letter-spacing:.18em;text-transform:uppercase;margin-bottom:6px}
.gallery-lightbox-caption h3{margin:0 0 7px;color:#123f49;font:600 1.5rem/1.2 Georgia,serif}
.gallery-lightbox-caption p{margin:0;color:#3d3730;line-height:1.6}
.gallery-lightbox-close{position:fixed;top:18px;right:20px;width:48px;height:48px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:#fffdf8;color:#123f49;font-size:2rem;line-height:1;cursor:pointer;box-shadow:0 12px 30px rgba(0,0,0,.28)}
.gallery-lightbox-close:hover{background:#edcf91}
.gallery-note{
 margin-top:34px;
}
@media(max-width:980px){
 .home-gallery-grid,.gallery-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 .home-gallery-card img,.gallery-card img{
  height:210px;
 }
}
@media(max-width:640px){
 .home-gallery-grid,.gallery-grid{
  grid-template-columns:1fr;
  gap:18px;
 }
 .home-gallery-card img,.gallery-card img{
  height:230px;
 }
 .gallery-filter-row{
  overflow-x:auto;
  flex-wrap:nowrap;
  padding-bottom:6px;
 }
 .gallery-filter-row button{
  flex:0 0 auto;
 }
 .gallery-meta{
  flex-direction:column;
  gap:5px;
 }
 .gallery-lightbox{padding:14px}
 .gallery-lightbox-panel{max-height:88vh;border-radius:18px}
 .gallery-lightbox-panel img{max-height:62vh}
 .gallery-lightbox-caption{padding:15px 16px 18px}
 .gallery-lightbox-caption h3{font-size:1.25rem}
 .gallery-lightbox-close{top:10px;right:10px;width:44px;height:44px}
}
@media(max-width:900px){
 .home-page .simplified-hero{
  background:linear-gradient(90deg,rgba(250,248,242,.94) 0%,rgba(250,248,242,.82) 47%,rgba(250,248,242,.22) 100%),url("images/waqf-home-coconut-v61.png") 57% center/cover!important;
 }
}
@media(max-width:600px){
 .home-page .simplified-hero{
  background:linear-gradient(180deg,rgba(250,248,242,.985) 0%,rgba(250,248,242,.96) 66%,rgba(250,248,242,.86) 100%),url("images/waqf-home-coconut-v61.png") 66% center/cover!important;
 }
}

/* About page: founder name explanation */
.founder-name-note{width:min(560px,100%);margin:22px 0 20px;border:1px solid rgba(180,119,71,.28);border-radius:20px;background:#fbf7ee;overflow:hidden}
.founder-name-note summary{cursor:pointer;list-style:none;padding:15px 19px;color:#123f49;font-weight:800}
.founder-name-note summary::-webkit-details-marker{display:none}
.founder-name-note summary:after{content:"▾";float:right;color:#b47747;transition:transform .18s}
.founder-name-note[open] summary:after{transform:rotate(180deg)}
.founder-name-table{border-top:1px solid rgba(180,119,71,.2)}
.founder-name-table>div{display:grid;grid-template-columns:140px 1fr;gap:16px;padding:10px 19px;border-top:1px solid rgba(18,63,73,.08)}
.founder-name-table>div:first-child{border-top:0;background:rgba(180,119,71,.08);text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;color:#9b6042}
.founder-name-table span{font-weight:800;color:#123f49}
.founder-name-table p{margin:0!important;line-height:1.55!important;color:#493f36!important}
@media(max-width:600px){.founder-name-table>div{grid-template-columns:1fr;gap:4px}}

/* MAS Platform rebrand */
.platform-brand{gap:13px!important}
.platform-brand .platform-mark{position:relative;width:46px!important;height:46px!important;flex:0 0 46px;border:2px solid currentColor!important;border-radius:50%!important;background:rgba(255,255,255,.08)!important}
.platform-brand .platform-mark:before,.platform-brand .platform-mark:after,.platform-brand .platform-mark i{content:"";position:absolute;border:2px solid currentColor;border-radius:50%;inset:7px;opacity:.9}
.platform-brand .platform-mark:after{inset:14px;opacity:.78}
.platform-brand .platform-mark i{inset:20px;background:currentColor;border:0;opacity:1}
.platform-brand strong{display:flex!important;flex-direction:column!important;gap:2px!important;line-height:1.05!important;font-family:Georgia,serif!important;font-size:1.12rem!important;letter-spacing:.01em!important}
.platform-brand strong small{display:block;font:700 .58rem/1.15 Inter,Segoe UI,Arial,sans-serif;text-transform:uppercase;letter-spacing:.12em;color:currentColor;opacity:.78}
.home-page .platform-brand,.waqf-page .platform-brand,.assistance-page .platform-brand,.gallery-page .platform-brand,.news-page .platform-brand,.contact-page .platform-brand{color:#123f49}
.platform-hero .waqf-name{font-size:clamp(3.2rem,6vw,6rem)!important;letter-spacing:-.045em}
.platform-footer .footer-tagline{color:#dfc18f!important;font:700 .9rem/1.4 Inter,Segoe UI,Arial,sans-serif;text-transform:uppercase;letter-spacing:.12em}
.platform-footer .footer-brand{font-size:1.85rem}
.closing-reflection{background:linear-gradient(120deg,#eef3e9,#f8edda)}
.closing-reflection .appreciation-inner{grid-template-columns:110px 1fr 110px;align-items:center}
.closing-reflection .appreciation-mark{font-size:7.6rem;line-height:.8;color:rgba(18,63,73,.18);height:auto}
.closing-reflection .appreciation-mark.closing{align-self:end;text-align:right}
.closing-reflection h2{max-width:980px}
.closing-reflection .reflection-lead{font:700 1.45rem/1.5 Georgia,serif;color:#123f49;margin-top:0}
.closing-reflection p{max-width:980px}
.our-commitment-section{background:#fffdf8}
.commitment-card{padding:46px 50px;border:1px solid rgba(180,119,71,.22);border-radius:30px;background:linear-gradient(135deg,#fffdf8,#f3eadb);box-shadow:0 18px 48px rgba(36,67,70,.09)}
.commitment-card h2{max-width:850px;margin-bottom:24px}
.commitment-lines{display:grid;gap:12px;max-width:960px}
.commitment-lines p{margin:0!important;font-size:1.05rem}
.commitment-lines strong{font:700 1.22rem/1.65 Georgia,serif;color:#123f49}
.home-page .home-pathways .pathway-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.home-page .home-pathways .pathway-grid article{padding:24px 18px;min-width:0}
.home-page .home-pathways .pathway-grid h3{font-size:1.35rem;line-height:1.1}
.home-page .home-pathways .pathway-grid p{font-size:.88rem;line-height:1.65}
.home-page .home-pathways .pathway-grid a{font-size:.9rem}
@media(max-width:1180px){.home-page .home-pathways .pathway-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.home-page .home-pathways .pathway-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){
 .platform-brand .platform-mark{width:42px!important;height:42px!important;flex-basis:42px}
 .platform-brand strong{font-size:.98rem!important;max-width:210px!important}
 .platform-brand strong small{font-size:.5rem;letter-spacing:.08em}
 .platform-hero .waqf-name{font-size:3rem!important}
 .closing-reflection .appreciation-inner{display:block}
 .closing-reflection .appreciation-mark{display:none}
 .home-page .home-pathways .pathway-grid{grid-template-columns:1fr}
 .commitment-card{padding:32px 22px;border-radius:24px}
}

/* Our Heritage page */
.heritage-platform-banner{background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.9) 44%,rgba(255,254,250,.18) 80%),url("images/waqf-courtyard-v2.jpg")}
.heritage-quote-card,.waqf-question-card,.legacy-card{padding:34px;border:1px solid rgba(180,119,71,.24);border-radius:28px;background:linear-gradient(135deg,#fffdf8,#f3eadb);box-shadow:0 18px 48px rgba(36,67,70,.09)}
.heritage-quote-card span{display:inline-block;text-transform:uppercase;letter-spacing:.14em;color:#9b6042;font-weight:800;font-size:.75rem;margin-bottom:14px}
.heritage-quote-card p,.waqf-question-card strong{font:600 clamp(1.45rem,2.3vw,2.2rem)/1.35 Georgia,serif;color:#123f49}
.heritage-quote-card small,.waqf-question-card small{display:block;color:#6e6257;line-height:1.65;margin-top:18px}
.waqf-question-card p{margin:10px 0;color:#5a4f45}
.legacy-lines{display:grid;gap:10px;margin:26px 0;padding:28px;border-left:4px solid #dfc18f;background:#fffdf8;border-radius:0 22px 22px 0}
.legacy-lines span,.legacy-lines strong{font:600 1.15rem/1.55 Georgia,serif;color:#123f49}
.heritage-endowment-grid{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:18px;margin-top:32px}
.heritage-endowment-grid article{padding:30px 26px;background:#fffdf8;border:1px solid rgba(18,63,73,.11);border-radius:24px;box-shadow:0 12px 34px rgba(36,67,70,.07)}
.heritage-endowment-grid span{color:#b47747;font-size:.75rem;font-weight:800;letter-spacing:.14em}
.heritage-endowment-grid h3{font:600 1.45rem/1.18 Georgia,serif;color:#123f49;margin:14px 0 12px}
.heritage-endowment-grid p{font-size:.95rem}
.legacy-card p{font-size:1.05rem}
@media(max-width:1000px){.heritage-endowment-grid{grid-template-columns:1fr}}
@media(max-width:600px){.heritage-quote-card,.waqf-question-card,.legacy-card{padding:26px 22px}.legacy-lines{padding:22px}.heritage-endowment-grid article{padding:25px 21px}}

/* Community Support page */
.support-platform-banner{
 background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.91) 46%,rgba(255,254,250,.18) 82%),url("images/community-assistance-v2.png");
}
.support-two-column{
 display:grid;
 grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
 gap:34px;
 align-items:center;
}
.support-two-column.align-start{
 align-items:start;
}
.support-story-card,.support-review-card,.support-note-card,.support-portal-card,.support-legacy-card{
 border:1px solid rgba(180,119,71,.24);
 border-radius:28px;
 background:#fffdf8;
 box-shadow:0 18px 48px rgba(36,67,70,.08);
}
.support-story-card{
 padding:38px;
 background:linear-gradient(135deg,#fffdf8,#f3eadb);
}
.support-story-card span,.support-note-card span,.support-legacy-card span{
 display:inline-block;
 margin-bottom:14px;
 color:#9b6042;
 font-size:.75rem;
 font-weight:850;
 letter-spacing:.15em;
 text-transform:uppercase;
}
.support-story-card h2{
 margin:0 0 18px;
 color:#123f49;
 font:600 clamp(2rem,3.5vw,3.4rem)/1.05 Georgia,serif;
 letter-spacing:-.035em;
}
.support-story-card p{
 margin:0 0 14px;
 color:#3d3730;
 line-height:1.75;
}
.support-photo{
 min-height:470px;
 border-radius:32px;
 box-shadow:0 20px 54px rgba(36,67,70,.16);
}
.support-section-heading{
 max-width:880px;
 margin-bottom:28px;
}
.support-section-heading h2{
 margin:8px 0 14px;
 color:#123f49;
 font:600 clamp(2.2rem,4vw,4rem)/1.05 Georgia,serif;
 letter-spacing:-.04em;
}
.support-section-heading p{
 color:#3d3730;
 font-size:1.08rem;
 line-height:1.75;
}
.support-review-card{
 padding:34px;
 background:linear-gradient(135deg,#fffdf8,#fbf4e8);
}
.support-review-card h3{
 margin:0 0 20px;
 color:#123f49;
 font:600 1.55rem/1.25 Georgia,serif;
}
.support-factor-grid{
 display:grid;
 grid-template-columns:repeat(5,minmax(0,1fr));
 gap:12px;
 margin:0 0 22px;
}
.support-factor-grid div{
 min-height:130px;
 padding:19px 17px;
 border:1px solid rgba(18,63,73,.1);
 border-radius:20px;
 background:#fff;
}
.support-factor-grid strong,.support-process-grid strong{
 display:block;
 margin-bottom:13px;
 color:#b47747;
 font-size:.78rem;
 font-weight:900;
 letter-spacing:.14em;
}
.support-factor-grid span{
 display:block;
 color:#123f49;
 font-weight:750;
 line-height:1.45;
}
.support-review-card p{
 margin:8px 0 0;
 color:#4d443c;
 line-height:1.65;
}
.support-muted-section{
 background:#eee6d8;
}
.support-category-grid{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:12px;
 margin-top:22px;
}
.support-category-grid div{
 padding:18px 20px;
 border:1px solid rgba(180,119,71,.2);
 border-radius:18px;
 background:#fffdf8;
 color:#123f49;
 font-weight:800;
 box-shadow:0 10px 28px rgba(36,67,70,.06);
}
.support-category-grid div:last-child{
 grid-column:1/-1;
}
.support-note-card{
 padding:32px;
 background:#123f49;
 color:#fff;
}
.support-note-card span{
 color:#dfc18f;
}
.support-note-card p{
 margin:0;
 color:#f7efe3;
 font:600 1.35rem/1.55 Georgia,serif;
}
.support-process-grid{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:18px;
 margin-top:28px;
}
.support-process-grid article{
 padding:28px 24px;
 border:1px solid rgba(18,63,73,.11);
 border-radius:24px;
 background:#fffdf8;
 box-shadow:0 12px 34px rgba(36,67,70,.07);
}
.support-process-grid h3{
 margin:0 0 10px;
 color:#123f49;
 font:600 1.38rem/1.15 Georgia,serif;
}
.support-process-grid p{
 margin:0;
 color:#50473f;
 line-height:1.62;
}
.support-portal-card{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:28px;
 margin-top:28px;
 padding:30px 34px;
 background:linear-gradient(135deg,#123f49,#0b2d38);
 color:#fff;
}
.support-portal-card h3{
 margin:6px 0 10px;
 color:#fff;
 font:600 1.5rem/1.2 Georgia,serif;
}
.support-portal-card p{
 max-width:760px;
 margin:0;
 color:#f4eadc;
 line-height:1.65;
}
.support-portal-card .public-button{
 flex:0 0 auto;
 background:#edcf91;
 color:#123f49;
}
.support-looking-section{
 background:linear-gradient(120deg,#fffdf8,#f3eadb);
}
.support-legacy-card{
 padding:42px;
 background:#123f49;
 color:#fff;
}
.support-legacy-card span{
 color:#dfc18f;
}
.support-legacy-card p{
 margin:0 0 16px;
 color:#fff;
 font:600 clamp(1.55rem,2.6vw,2.5rem)/1.3 Georgia,serif;
}
.support-legacy-card small{
 display:block;
 color:#f4eadc;
 font-size:1rem;
 line-height:1.75;
}
@media(max-width:1100px){
 .support-factor-grid,.support-process-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
@media(max-width:900px){
 .support-two-column{
  grid-template-columns:1fr;
 }
 .support-photo{
  min-height:360px;
 }
 .support-portal-card{
  align-items:flex-start;
  flex-direction:column;
 }
}
@media(max-width:600px){
 .support-story-card,.support-review-card,.support-note-card,.support-portal-card,.support-legacy-card{
  padding:26px 22px;
  border-radius:22px;
 }
 .support-factor-grid,.support-process-grid,.support-category-grid{
  grid-template-columns:1fr;
 }
 .support-category-grid div:last-child{
  grid-column:auto;
 }
 .support-photo{
  min-height:300px;
 }
}

/* Learning & Notices page */
.learning-tradition-note{
 margin-top:28px;
 background:linear-gradient(135deg,#fffdf8,#f3eadb);
 border-color:rgba(180,119,71,.24);
}
.learning-tradition-note p{
 max-width:980px;
}

/* MAS Platform contact page refinements */
.contact-topic-list{
 display:grid;
 gap:10px;
 margin:22px 0 24px;
 padding:0;
 list-style:none;
}
.contact-topic-list li{
 position:relative;
 padding-left:22px;
 color:#3f3831;
 line-height:1.65;
}
.contact-topic-list li:before{
 content:"";
 position:absolute;
 left:0;
 top:.78em;
 width:8px;
 height:8px;
 border-radius:50%;
 background:#b47747;
}
.contact-platform-closing{
 background:linear-gradient(135deg,#123f49,#0c303a);
 color:#fff;
}
.contact-platform-closing h2,
.contact-platform-closing p{
 color:#fff!important;
}
.contact-platform-closing .public-eyebrow{
 color:#edcf91;
}
.contact-page .contact-info-grid{
 grid-template-columns:repeat(4,minmax(0,1fr));
 align-items:stretch;
}
.contact-page .contact-info-card{
 min-width:0;
}
.contact-page .contact-info-card h2{
 font-size:clamp(2rem,2.7vw,3.45rem);
 line-height:1.05;
}
.contact-page .contact-list{
 gap:14px;
}
.contact-page .contact-item{
 padding:18px;
}
.platform-footer .footer-purpose p{
 max-width:760px;
 line-height:1.85;
}
@media(max-width:1180px){
 .contact-page .contact-info-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
@media(max-width:700px){
 .contact-page .contact-info-grid{
  grid-template-columns:1fr;
 }
}

/* MAS Amanah public platform repositioning */
.home-page .home-pathways .pathway-grid.platform-home-grid,
.pathway-grid.platform-home-grid{
 grid-template-columns:repeat(3,minmax(0,1fr));
}
.pathway-grid.platform-home-grid article{
 min-height:250px;
}
@media(max-width:900px){
 .home-page .home-pathways .pathway-grid.platform-home-grid,
 .pathway-grid.platform-home-grid{
  grid-template-columns:1fr;
 }
 .pathway-grid.platform-home-grid article{
  min-height:auto;
 }
}

/* About MAS Platform */
.about-vision-mission .pathway-grid article{
 min-height:285px;
}
.about-principles-grid{
 grid-template-columns:repeat(5,minmax(0,1fr));
}
.about-principles-grid article{
 padding:25px 18px;
}
.about-principles-grid h3{
 font-size:1.35rem;
}
.about-services-grid{
 grid-template-columns:repeat(3,minmax(0,1fr));
}
.about-services-grid div:last-child{
 grid-column:auto;
}
.faq-list{
 display:grid;
 gap:14px;
 margin-top:28px;
 max-width:980px;
}
.faq-list details{
 border:1px solid rgba(18,63,73,.13);
 border-radius:18px;
 background:#fffdf8;
 padding:0;
 box-shadow:0 12px 32px rgba(36,67,70,.06);
 overflow:hidden;
}
.faq-list summary{
 cursor:pointer;
 padding:18px 22px;
 font-weight:850;
 color:#123f49;
}
.faq-list p{
 margin:0;
 padding:0 22px 20px;
 color:#4d443c;
 line-height:1.7;
}
@media(max-width:1180px){
 .about-principles-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 .about-services-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
@media(max-width:650px){
 .about-principles-grid,.about-services-grid{
  grid-template-columns:1fr;
 }
}

/* Mobile Secure Member Portal login: one calm column, no squeezed split screen */
@media(max-width:900px){
 body:has(.public-login-page){
  overflow-x:hidden;
  background:#fffaf1;
 }
 .public-login-page{
  display:block!important;
  width:100%!important;
  min-height:100vh!important;
  background:#fffaf1!important;
 }
 .platform-login-visual{
  min-height:auto!important;
  display:block!important;
  padding:24px 22px 30px!important;
  border-radius:0 0 28px 28px;
  background-image:linear-gradient(135deg,rgba(4,33,39,.97),rgba(18,63,73,.86)),url("images/waqf-member-access-v60.png")!important;
  background-position:center!important;
  background-size:cover!important;
  box-shadow:0 18px 42px rgba(18,63,73,.22);
 }
 .platform-login-visual .platform-brand{
  margin-bottom:28px!important;
  transform:scale(.92);
  transform-origin:left top;
 }
 .platform-login-copy{
  margin:0!important;
  max-width:none!important;
 }
 .platform-login-copy h1{
  max-width:360px;
  margin:0 0 10px!important;
  font-size:clamp(2.25rem,12vw,3.15rem)!important;
  line-height:1.02!important;
  letter-spacing:-.035em;
 }
 .platform-login-copy h2{
  max-width:330px;
  margin:0!important;
  color:#edcf91!important;
  font-size:1.15rem!important;
  line-height:1.24!important;
 }
 .platform-login-copy>p,
 .platform-login-copy h3,
 .platform-login-copy .login-services-heading,
 .platform-login-copy .login-services,
 .platform-login-note,
 .platform-login-visual>small{
  display:none!important;
 }
 .login-panel{
  display:block!important;
  padding:36px 22px 50px!important;
  background:#fffaf1!important;
 }
 .real-login{
  width:100%!important;
  max-width:460px!important;
  margin:0 auto!important;
 }
 .real-login .login-back-top{
  display:inline-block!important;
  margin:0 0 38px!important;
  font-size:.93rem!important;
  font-weight:750!important;
  color:#123f49!important;
  text-decoration:none!important;
 }
 .real-login .login-back-top+.public-eyebrow{
  margin-bottom:17px!important;
 }
 .real-login h2{
  margin-bottom:14px!important;
  font-size:clamp(2.25rem,11vw,3rem)!important;
  line-height:1.08!important;
 }
 .real-login>p{
  margin-bottom:24px!important;
  color:#61564d!important;
  font-size:1rem!important;
  line-height:1.65!important;
 }
 .real-login form{
  margin-top:18px!important;
 }
 .real-login label{
  margin-top:18px!important;
  font-size:.98rem!important;
 }
 .real-login input{
  width:100%!important;
  min-height:58px!important;
  box-sizing:border-box!important;
  padding:15px 17px!important;
  border-radius:14px!important;
  font-size:1rem!important;
 }
 .real-login button{
  width:100%!important;
  min-height:58px!important;
  margin-top:24px!important;
  border-radius:14px!important;
  font-size:1.05rem!important;
 }
 .portal-protection-note,
 .login-help-block{
  font-size:.96rem!important;
  line-height:1.6!important;
 }
}

@media(max-width:420px){
 .platform-login-visual{
  padding:22px 18px 28px!important;
 }
 .platform-login-visual .platform-brand{
  transform:scale(.86);
  margin-bottom:24px!important;
 }
 .login-panel{
  padding:32px 18px 46px!important;
 }
 .real-login .login-back-top{
  margin-bottom:34px!important;
 }
}

/* Explore Waqfs page */
.explore-waqfs-banner{
 background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.91) 44%,rgba(255,254,250,.18) 80%),url("images/waqf-courtyard-v2.jpg");
}
.explore-values-card{
 align-self:stretch;
 min-height:310px;
 display:flex;
 flex-direction:column;
 justify-content:center;
 gap:18px;
 padding:42px;
 border-radius:30px;
 background:#123f49;
 color:#fff;
 box-shadow:0 18px 48px rgba(36,67,70,.12);
}
.explore-values-card span{
 color:#edcf91;
 text-transform:uppercase;
 letter-spacing:.16em;
 font-size:.78rem;
 font-weight:850;
}
.explore-values-card strong{
 font:500 clamp(2.1rem,3.5vw,3.8rem)/1.08 "Palatino Linotype","Book Antiqua",Georgia,serif;
}
.explore-values-card p{
 color:rgba(255,255,255,.9);
 font-size:1rem;
 line-height:1.75;
 margin:0;
}
.explore-detail-grid,
.explore-values-grid{
 grid-template-columns:repeat(4,minmax(0,1fr));
}
.explore-detail-grid article,
.explore-values-grid article{
 min-height:235px;
}
.explore-feature-section{
 background:linear-gradient(135deg,#efe7da,#faf7f0);
}
.explore-feature-card{
 padding:44px;
 border:1px solid rgba(180,119,71,.22);
 border-radius:32px;
 background:linear-gradient(100deg,rgba(255,253,248,.96),rgba(255,253,248,.78)),url("images/waqf-family-parents-daughter-sons-symbolic.png") right center/auto 100% no-repeat;
 box-shadow:0 20px 55px rgba(36,67,70,.12);
 overflow:hidden;
}
.explore-feature-card>div{
 max-width:700px;
}
.explore-feature-card span,
.explore-choice-list h3{
 color:#b47747;
 text-transform:uppercase;
 letter-spacing:.14em;
 font-size:.76rem;
 font-weight:850;
}
.explore-feature-card h2{
 margin-top:12px;
}
.explore-feature-card .public-button{
 margin-top:12px;
}
.explore-choice-list{
 padding:32px;
 border:1px solid rgba(18,63,73,.13);
 border-radius:24px;
 background:#fffdf8;
 box-shadow:0 14px 36px rgba(36,67,70,.07);
}
.explore-choice-list ul{
 margin:18px 0 0;
 padding-left:20px;
 line-height:1.85;
 color:#493f36;
}
.explore-directory-grid article{
 min-height:270px;
}
@media(max-width:1100px){
 .explore-detail-grid,
 .explore-values-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
@media(max-width:700px){
 .explore-values-card{
  min-height:auto;
  padding:30px 24px;
 }
 .explore-values-card p{
  color:#f7f1e7;
  font-size:1rem;
  line-height:1.7;
 }
 .explore-detail-grid,
 .explore-values-grid{
  grid-template-columns:1fr;
 }
 .explore-feature-card{
  padding:30px 24px;
  background:linear-gradient(100deg,rgba(255,253,248,.97),rgba(255,253,248,.92)),url("images/waqf-family-parents-daughter-sons-symbolic.png") center/cover no-repeat;
 }
 .explore-choice-list{
  padding:26px 22px;
 }
}

/* Learning Centre page */
.learning-centre-banner{
 background-image:linear-gradient(90deg,rgba(255,254,250,.98),rgba(255,254,250,.9) 44%,rgba(255,254,250,.16) 80%),url("images/waqf-records-1959.jpg");
}
.learning-purpose-grid{
 grid-template-columns:repeat(4,minmax(0,1fr));
}
.learning-purpose-grid article{
 min-height:230px;
}
.learning-audience-grid{
 grid-template-columns:repeat(5,minmax(0,1fr));
}
.learning-audience-grid article{
 min-height:250px;
 padding:25px 18px;
}
.learning-audience-grid h3{
 font-size:1.3rem;
}
.learning-topic-grid{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:18px;
 margin-top:30px;
}
.learning-topic-grid article{
 padding:28px;
 border:1px solid rgba(18,63,73,.13);
 border-radius:22px;
 background:#fffdf8;
 box-shadow:0 12px 32px rgba(36,67,70,.06);
}
.learning-topic-grid h3{
 margin:0 0 10px;
 font:600 1.45rem/1.18 "Palatino Linotype","Book Antiqua",Georgia,serif;
 color:#123f49;
}
.learning-topic-grid p{
 margin:0;
 font-size:.96rem;
 line-height:1.7;
 color:#493f36;
}
.learning-resource-grid{
 margin-top:38px;
}
@media(max-width:1180px){
 .learning-audience-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 .learning-topic-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
@media(max-width:900px){
 .learning-purpose-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
@media(max-width:650px){
 .learning-purpose-grid,
 .learning-audience-grid,
 .learning-topic-grid{
  grid-template-columns:1fr;
 }
 .learning-purpose-grid article,
 .learning-audience-grid article{
  min-height:auto;
 }
}

/* Member Portal repositioning */
.member-portal-guidance{
 margin-top:22px;
 padding-top:18px;
 border-top:1px solid rgba(18,63,73,.12);
}
.member-portal-guidance h3{
 margin:0 0 9px;
 font:700 1rem/1.25 system-ui,-apple-system,Segoe UI,sans-serif;
 color:#123f49;
}
.member-portal-guidance p{
 margin:0 0 9px;
 color:#5f574e;
 font-size:.92rem;
 line-height:1.6;
}
.member-portal-guidance ul{
 margin:8px 0 0;
 padding-left:18px;
 color:#5f574e;
 font-size:.92rem;
 line-height:1.65;
}
.member-portal-guidance li{
 margin-bottom:4px;
}
@media(max-width:900px){
 .member-portal-guidance{
  margin-top:18px;
  padding-top:16px;
 }
}

/* Contact page: platform support positioning */
.contact-distinction-card p{
 margin-top:18px;
 padding-top:16px;
 border-top:1px solid rgba(18,63,73,.12);
 color:#123f49;
}
.contact-platform-grid{
 grid-template-columns:repeat(4,minmax(0,1fr));
}
.contact-platform-grid .contact-info-card{
 min-height:360px;
}
.contact-platform-grid .contact-info-card h2{
 font-size:clamp(2rem,2.6vw,2.75rem);
 line-height:1.08;
}
@media(max-width:1180px){
 .contact-platform-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
@media(max-width:650px){
 .contact-platform-grid{
  grid-template-columns:1fr;
 }
 .contact-platform-grid .contact-info-card{
  min-height:auto;
 }
}

/* V158: public Waqf profile environments */
.waqf-profile-hero{
 background:
  linear-gradient(90deg,rgba(250,246,238,.94) 0%,rgba(250,246,238,.78) 42%,rgba(250,246,238,.26) 68%),
  url("images/waqf-home-coconut-v61.png") center/cover no-repeat;
}
.waqf-profile-hero h1{max-width:820px}
.waqf-trusteeship{color:var(--gold);font-weight:800;letter-spacing:.04em;text-transform:uppercase;font-size:.9rem}
.waqf-year-card{min-height:260px}
.waqf-year-card strong{font-size:clamp(4rem,8vw,7rem);line-height:.95}
.waqf-year-card em{display:block;color:rgba(255,255,255,.82);font-style:normal;margin-top:1rem}
.waqf-journey-strip{
 background:
  linear-gradient(180deg,rgba(250,246,238,.96),rgba(250,246,238,.92)),
  url("images/waqf-contact-v60.png") center/cover no-repeat;
}
.waqf-journey-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.waqf-profile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.waqf-profile-grid article ul,.waqf-service-card ul{padding-left:1.2rem;line-height:1.8}
.waqf-profile-grid article a,.waqf-directory-card a{font-weight:800;color:var(--deep);text-decoration-thickness:2px;text-underline-offset:4px}
.waqf-services-notice-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;align-items:stretch}
.waqf-service-card,.waqf-notice-card,.waqf-contact-block{
 background:rgba(255,255,255,.9);
 border:1px solid rgba(13,61,70,.14);
 border-radius:1.5rem;
 padding:clamp(1.5rem,3vw,2.5rem);
 box-shadow:0 18px 45px rgba(13,61,70,.08);
}
.waqf-notice-item{border-top:1px solid rgba(13,61,70,.12);padding-top:1rem;margin-top:1rem}
.waqf-contact-block{text-align:center;max-width:920px}
.waqf-contact-block a{color:var(--deep);font-weight:800}
.waqf-closing-quote{font-family:var(--serif);font-size:clamp(1.2rem,2vw,1.7rem);color:var(--gold);margin-top:1.5rem}
.waqf-directory-card.muted{opacity:.88}
.compact-section{padding-top:clamp(1.4rem,3vw,2.4rem);padding-bottom:clamp(1.4rem,3vw,2.4rem)}
.waqf-selector-card{
 display:grid;
 grid-template-columns:1.15fr 1fr;
 gap:1.5rem;
 align-items:end;
 background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(250,246,238,.92));
 border:1px solid rgba(13,61,70,.14);
 border-radius:1.5rem;
 padding:clamp(1.4rem,3vw,2.4rem);
 box-shadow:0 18px 45px rgba(13,61,70,.08);
}
.waqf-selector-card h2{margin-bottom:.45rem}
.waqf-selector-card p{margin-bottom:0}
.waqf-selector-form{display:grid;grid-template-columns:1fr auto;gap:.75rem;align-items:end}
.waqf-selector-form label{grid-column:1/-1;font-weight:800;color:var(--deep)}
.waqf-selector-form select{
 width:100%;
 border:1px solid rgba(13,61,70,.22);
 border-radius:999px;
 padding:.9rem 1rem;
 background:#fff;
 color:var(--deep);
 font-weight:700;
}
.waqf-private-card{
 max-width:920px;
 background:rgba(255,255,255,.94);
 border:1px solid rgba(13,61,70,.14);
 border-radius:1.5rem;
 padding:clamp(1.7rem,3.5vw,3rem);
 box-shadow:0 18px 45px rgba(13,61,70,.08);
}
.waqf-private-grid{
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(0,1fr);
 gap:clamp(1.2rem,2.5vw,2rem);
 align-items:stretch;
}
.waqf-private-grid .waqf-private-card{
 max-width:none;
 height:100%;
}
@media(max-width:1050px){
 .waqf-journey-grid,.waqf-profile-grid,.waqf-services-notice-grid,.waqf-private-grid{grid-template-columns:1fr}
}
@media(max-width:820px){
 .waqf-selector-card,.waqf-selector-form{grid-template-columns:1fr}
}
/* MAS Platform repositioning */
.platform-footer .footer-purpose.footer-purpose-top{
 display:block;
 text-align:left;
 border-bottom:0;
 margin-top:0;
 padding-top:0;
}
.platform-footer .footer-purpose.footer-purpose-top p{
 max-width:760px;
}
.home-page .home-pathways .pathway-grid.platform-home-grid{
 grid-template-columns:repeat(4,minmax(0,1fr));
}
@media(max-width:1180px){
 .home-page .home-pathways .pathway-grid.platform-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .home-page .home-pathways .pathway-grid.platform-home-grid{grid-template-columns:1fr}
}

/* V163 wider-screen polish */
.public-wrap{
 width:min(1240px,calc(100% - 48px));
}
.home-page .home-pathways .pathway-grid.platform-home-grid,
.about-page .pathway-grid.platform-home-grid,
.pathway-grid.about-services-grid{
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:18px;
}
.home-page .home-pathways .pathway-grid.platform-home-grid article,
.about-page .pathway-grid.platform-home-grid article{
 min-height:auto;
 padding:24px 20px;
}
.home-page .home-pathways .pathway-grid.platform-home-grid h3,
.about-page .pathway-grid.platform-home-grid h3{
 font-size:clamp(1.18rem,1.35vw,1.45rem);
}
.home-page .home-pathways .pathway-grid.platform-home-grid p,
.about-page .pathway-grid.platform-home-grid p{
 font-size:.92rem;
 line-height:1.65;
}
.platform-footer .footer-grid{
 grid-template-columns:1.2fr .7fr .9fr;
 gap:clamp(36px,5vw,86px);
 padding-top:4px;
}
.platform-footer .footer-purpose.footer-purpose-bottom{
 display:block;
 text-align:left;
 margin-top:42px;
 padding:24px 0 20px;
 border-top:1px solid rgba(223,193,143,.24);
 border-bottom:1px solid rgba(223,193,143,.24);
}
.platform-footer .footer-purpose.footer-purpose-bottom p{
 max-width:780px;
 line-height:1.85;
 margin:0;
}
@media(min-width:1400px){
 .public-wrap{width:min(1320px,calc(100% - 72px))}
 .home-page .home-pathways .pathway-grid.platform-home-grid,
 .about-page .pathway-grid.platform-home-grid{gap:22px}
}
@media(max-width:1180px){
 .home-page .home-pathways .pathway-grid.platform-home-grid,
 .about-page .pathway-grid.platform-home-grid,
 .pathway-grid.about-services-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:900px){
 .platform-footer .footer-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
 .public-wrap{width:calc(100% - 40px)}
 .home-page .home-pathways .pathway-grid.platform-home-grid,
 .about-page .pathway-grid.platform-home-grid,
 .pathway-grid.about-services-grid{grid-template-columns:1fr!important}
 .platform-footer .footer-purpose.footer-purpose-bottom{margin-top:28px}
}

/* V164 public desktop rhythm */
@media(min-width:901px){
 .home-page .public-section,
 .about-page .public-section{
  padding-top:76px;
  padding-bottom:76px;
 }
 .home-page .welcome-layout,
 .about-page .welcome-layout{
  grid-template-columns:minmax(340px,.86fr) minmax(520px,1.14fr);
  gap:clamp(48px,6vw,92px);
  align-items:center;
 }
 .home-page .welcome-heading h2,
 .about-page .welcome-heading h2{
  max-width:560px;
  font-size:clamp(2.7rem,3.9vw,4.15rem);
  line-height:1.02;
 }
 .home-page .welcome-copy,
 .about-page .welcome-copy{
  max-width:720px;
  padding:28px 36px;
  border-left:4px solid #d5b26f;
  background:linear-gradient(90deg,rgba(255,253,248,.76),rgba(255,253,248,.38));
 }
 .home-page .welcome-copy p,
 .about-page .welcome-copy p{
  max-width:62ch;
  font-size:1.03rem;
  line-height:1.78;
 }
 .home-page .public-lead,
 .about-page .public-lead{
  max-width:780px;
 }
 .home-page .public-section> .public-wrap > h2,
 .about-page .public-section> .public-wrap > h2{
  max-width:880px;
 }
}
@media(min-width:1181px){
 .home-page .home-pathways .pathway-grid.platform-home-grid,
 .about-page .pathway-grid.platform-home-grid,
 .pathway-grid.about-services-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
 }
}

/* V165: calmer Secure Member Portal login */
.public-login-page{
 min-height:100vh;
 display:grid;
 grid-template-columns:minmax(420px,1fr) minmax(420px,.86fr);
 background:#f6efe3;
}
.platform-login-visual{
 min-height:100vh;
 padding:clamp(34px,5vw,72px);
 display:flex;
 flex-direction:column;
 justify-content:center;
 gap:clamp(34px,5vw,58px);
 overflow:hidden;
}
.platform-login-visual:after{
 background:linear-gradient(90deg,rgba(5,38,39,.88),rgba(5,38,39,.68) 52%,rgba(5,38,39,.38));
}
.platform-login-visual .platform-brand{
 position:relative;
 z-index:2;
 width:max-content;
 max-width:100%;
}
.platform-login-copy{
 position:relative;
 z-index:2;
 max-width:650px;
}
.platform-login-copy .public-eyebrow{
 color:#e7c77f;
 margin-bottom:1rem;
}
.platform-login-copy h1{
 color:#fff;
 font-size:clamp(3.3rem,5.7vw,6.3rem);
 line-height:.94;
 margin:0 0 1rem;
 max-width:720px;
}
.platform-login-copy h2{
 color:#e7c77f;
 font-family:var(--serif);
 font-size:clamp(1.35rem,2vw,2rem);
 line-height:1.2;
 margin:0 0 1.5rem;
}
.platform-login-copy p{
 color:rgba(255,255,255,.92);
 max-width:54ch;
 font-size:1rem;
 line-height:1.8;
 margin:.85rem 0;
}
.platform-login-visual>small{
 position:relative;
 z-index:2;
 color:#fff;
 width:max-content;
 max-width:100%;
 border:1px solid rgba(231,199,127,.62);
 border-radius:999px;
 padding:.75rem 1.05rem;
 font-weight:800;
 letter-spacing:.08em;
 text-transform:uppercase;
 background:rgba(4,34,42,.28);
}
.login-panel{
 min-height:100vh;
 display:flex;
 align-items:center;
 justify-content:center;
 padding:clamp(36px,5vw,78px);
 background:
  radial-gradient(circle at top left,rgba(223,193,143,.16),transparent 36%),
  #f8f0e4;
}
.simple-member-login{
 width:min(100%,470px);
 margin:0;
}
.simple-member-login .login-back-top{
 display:inline-block;
 margin-bottom:3.1rem;
 font-size:.92rem;
 font-weight:800;
 color:#073445;
 text-decoration:none;
}
.simple-member-login .public-eyebrow{
 margin-bottom:1rem;
 color:#a8643d;
}
.simple-member-login h2{
 font-size:clamp(2.6rem,4vw,3.65rem);
 line-height:1.02;
 margin:0 0 1rem;
}
.simple-member-login>p{
 max-width:42ch;
 color:#6f5b4e;
 line-height:1.75;
 margin-bottom:2rem;
}
.simple-member-login form label:not(.remember-line){
 display:block;
 margin:.9rem 0 .45rem;
 font-weight:800;
 color:#073445;
}
.simple-member-login input[type=text],
.simple-member-login input[type=password]{
 width:100%;
 border:1px solid rgba(13,61,70,.18);
 border-radius:12px;
 padding:1rem 1.05rem;
 font-size:1rem;
 background:#fff;
 box-shadow:0 8px 22px rgba(13,61,70,.04);
}
.simple-member-login input:focus{
 outline:3px solid rgba(213,178,111,.28);
 border-color:#d5b26f;
}
.remember-line{
 display:inline-flex!important;
 align-items:center!important;
 justify-content:flex-start!important;
 gap:.65rem!important;
 width:auto!important;
 min-height:28px;
 margin:1rem 0 1.25rem!important;
 padding:.15rem 0;
 color:#5f5147;
 font-weight:800;
 cursor:pointer;
 line-height:1.2;
}
.remember-line input{
 flex:0 0 auto;
 width:20px!important;
 height:20px!important;
 min-width:20px!important;
 min-height:20px!important;
 max-width:20px!important;
 max-height:20px!important;
 margin:0!important;
 padding:0!important;
 accent-color:#073445;
 box-shadow:none!important;
}
.remember-line span{
 display:inline-block;
 white-space:nowrap;
 color:#073445;
 font-size:.98rem;
 line-height:1.2;
 transform:none!important;
 margin:0!important;
 padding:0!important;
 vertical-align:middle;
}
.simple-member-login button{
 width:100%;
 border:0;
 border-radius:12px;
 padding:1rem 1.15rem;
 background:#073445;
 color:#fff;
 font-weight:900;
 font-size:1.05rem;
 box-shadow:0 16px 34px rgba(7,52,69,.18);
 cursor:pointer;
}
.simple-login-help{
 margin-top:2rem;
 padding-top:1.35rem;
 border-top:1px solid rgba(13,61,70,.14);
}
.simple-login-help h3{
 margin:0 0 .45rem;
 font-size:1rem;
 color:#073445;
}
.simple-login-help p{
 margin:0;
 color:#6f5b4e;
 line-height:1.7;
}
.login-copyright{
 margin-top:2.2rem;
 color:#7d6b5d;
 font-size:.86rem;
}
@media(max-width:900px){
 .public-login-page{
  display:block;
  min-height:100vh;
 }
 .platform-login-visual{
  min-height:auto;
  padding:26px 24px 30px;
  gap:1.5rem;
 }
 .platform-login-visual .platform-brand{
  transform:scale(.86);
  transform-origin:left top;
 }
 .platform-login-copy .public-eyebrow{
  margin-bottom:.55rem;
 }
 .platform-login-copy h1{
  font-size:clamp(2.35rem,12vw,3.55rem);
  max-width:8ch;
  margin-bottom:.55rem;
 }
 .platform-login-copy h2{
  font-size:1.28rem;
  margin-bottom:.9rem;
 }
 .platform-login-copy p{
  font-size:.96rem;
  line-height:1.65;
  margin:.55rem 0;
 }
 .platform-login-visual>small{
  font-size:.75rem;
  padding:.6rem .85rem;
 }
 .login-panel{
  min-height:auto;
  padding:30px 24px 42px;
  display:block;
 }
 .simple-member-login{
  max-width:none;
 }
 .simple-member-login .login-back-top{
  margin-bottom:2.35rem;
  font-size:.86rem;
 }
 .simple-member-login h2{
  font-size:2.55rem;
 }
}

/* V167: MAS Platform final landing hero image */
.home-page .simplified-hero.platform-hero{
 background:
  linear-gradient(90deg,
   rgba(250,248,242,.98) 0%,
   rgba(250,248,242,.92) 33%,
   rgba(250,248,242,.48) 55%,
   rgba(12,50,54,.28) 78%,
   rgba(12,50,54,.46) 100%),
  url("images/mas-platform-hero-final-v167.png") 56% center/cover!important;
}
.home-page .simplified-hero.platform-hero:before{
 width:min(620px,74vw);
 background:linear-gradient(90deg,
  rgba(255,254,250,.84),
  rgba(255,254,250,.58) 68%,
  rgba(255,254,250,0))!important;
}
.home-page .simplified-hero.platform-hero .hero-copy{
 background:rgba(255,254,250,.86);
 border-color:rgba(18,63,73,.14);
 box-shadow:0 22px 58px rgba(18,63,73,.13);
}
@media(max-width:700px){
  .home-page .simplified-hero.platform-hero{
   background:
    linear-gradient(180deg,
     rgba(250,248,242,.99) 0%,
     rgba(250,248,242,.96) 58%,
     rgba(250,248,242,.84) 100%),
    url("images/mas-platform-hero-final-v167.png") 45% center/cover!important;
  }
 .home-page .simplified-hero.platform-hero:before{
  width:100%;
  background:linear-gradient(180deg,
   rgba(255,254,250,.95),
   rgba(255,254,250,.82) 70%,
   rgba(255,254,250,.62))!important;
 }
 .home-page .simplified-hero.platform-hero .hero-copy{
  background:rgba(255,254,250,.82);
 }
}

/* V182: site-wide responsive front-end polish
   Keeps the design elegant on wide screens without stretching text, and keeps
   mobile spacing comfortable without making headings or cards fight each other. */
:root{
 --public-max:1240px;
 --public-readable:68ch;
 --public-tight:56ch;
}

.public-page{
 font-size:clamp(15.5px,.35vw + 14px,17px);
}

.public-wrap,
.page-banner > div{
 width:min(var(--public-max),calc(100% - clamp(40px,7vw,96px)))!important;
}

.public-section{
 padding-block:clamp(4rem,7vw,6.25rem)!important;
}

.public-section.compact-section{
 padding-block:clamp(2.75rem,5vw,4.25rem)!important;
}

.public-section h2,
.page-banner h1,
.public-hero h1,
.simplified-hero h1{
 letter-spacing:-.025em;
 text-wrap:balance;
}

.public-section h2{
 font-size:clamp(2.25rem,3.2vw,3.7rem)!important;
 line-height:1.06!important;
 max-width:16ch;
}

.public-section p{
 font-size:clamp(.98rem,.22vw + .94rem,1.08rem);
 line-height:1.72!important;
}

.public-lead,
.lead{
 font-size:clamp(1.05rem,.3vw + 1rem,1.18rem)!important;
 line-height:1.72!important;
 max-width:var(--public-readable);
}

.public-section > .public-wrap > p,
.public-split p,
.welcome-copy p,
.page-banner p,
.section-intro p,
.home-journey-copy p,
.about-copy p{
 max-width:var(--public-readable);
}

.welcome-copy,
.home-journey-copy,
.about-copy{
 max-width:var(--public-readable);
}

.public-split{
 grid-template-columns:minmax(0,.88fr) minmax(0,1fr)!important;
 gap:clamp(2.5rem,6vw,5rem)!important;
 align-items:center;
}

.public-split > div,
.welcome-layout > div,
.pathway-grid > *,
.platform-home-grid > *,
.explore-detail-grid > *,
.about-services-grid > *,
.contact-info-grid > *,
.waqf-profile-grid > *,
.waqf-services-notice-grid > *,
.waqf-private-grid > *{
 min-width:0;
}

.pathway-grid p,
.value-card p,
.public-service-card p,
.waqf-directory-card p,
.contact-info-card p,
.waqf-service-card p,
.waqf-notice-card p,
.waqf-private-card p{
 max-width:60ch;
}

.home-page .home-pathways .pathway-grid.platform-home-grid{
 grid-template-columns:repeat(5,minmax(0,1fr))!important;
 gap:clamp(.9rem,1.4vw,1.35rem)!important;
}

.home-page .home-pathways .pathway-grid.platform-home-grid article{
 padding:clamp(1.15rem,1.6vw,1.55rem)!important;
}

.home-page .home-pathways .pathway-grid.platform-home-grid h3{
 font-size:clamp(1.15rem,1.25vw,1.42rem)!important;
 line-height:1.08!important;
}

.home-page .home-pathways .pathway-grid.platform-home-grid p{
 font-size:.92rem!important;
 line-height:1.58!important;
}

.explore-detail-grid,
.about-page .pathway-grid.platform-home-grid,
.pathway-grid.about-services-grid,
.simple-purpose-grid,
.contact-info-grid{
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:clamp(1rem,1.8vw,1.5rem)!important;
}

.explore-directory-grid,
.waqf-profile-grid{
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:clamp(1rem,1.8vw,1.5rem)!important;
}

.waqf-services-notice-grid,
.waqf-private-grid{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:clamp(1.25rem,2vw,2rem)!important;
 align-items:start;
}

.page-banner{
 padding-block:clamp(8.5rem,12vw,10.5rem) clamp(3rem,6vw,5rem)!important;
 min-height:clamp(390px,48vh,540px)!important;
}

.page-banner h1{
 font-size:clamp(2.9rem,4.4vw,4.9rem)!important;
 line-height:1.03!important;
 max-width:13ch;
}

.page-banner p{
 font-size:clamp(1rem,.3vw + .95rem,1.12rem)!important;
}

.public-header{
 max-width:calc(var(--public-max) + 60px);
 margin-inline:auto;
}

.public-footer{
 padding-block:clamp(3.5rem,6vw,5rem) 1.8rem!important;
}

.platform-footer .footer-grid{
 grid-template-columns:minmax(0,1.25fr) minmax(180px,.55fr) minmax(220px,.7fr)!important;
 gap:clamp(2rem,5vw,5rem)!important;
 align-items:start;
}

.platform-footer .footer-purpose.footer-purpose-bottom{
 margin-top:clamp(2.2rem,5vw,3.5rem)!important;
 padding-block:1.7rem!important;
}

.platform-footer .footer-purpose.footer-purpose-bottom p{
 max-width:70ch!important;
}

@media(max-width:1180px){
 .home-page .home-pathways .pathway-grid.platform-home-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }
 .explore-detail-grid,
 .about-page .pathway-grid.platform-home-grid,
 .pathway-grid.about-services-grid,
 .simple-purpose-grid,
 .contact-info-grid,
 .explore-directory-grid,
 .waqf-profile-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
}

@media(max-width:900px){
 .public-wrap,
 .page-banner > div{
  width:min(100% - 40px,var(--public-max))!important;
 }
 .public-section{
  padding-block:clamp(3.25rem,9vw,4.75rem)!important;
 }
 .public-split,
 .welcome-layout{
  grid-template-columns:1fr!important;
  gap:1.75rem!important;
 }
 .public-section h2,
 .page-banner h1{
  max-width:100%;
  font-size:clamp(2.1rem,9vw,3.25rem)!important;
 }
 .home-page .home-pathways .pathway-grid.platform-home-grid,
 .explore-detail-grid,
 .about-page .pathway-grid.platform-home-grid,
 .pathway-grid.about-services-grid,
 .simple-purpose-grid,
 .contact-info-grid,
 .explore-directory-grid,
 .waqf-profile-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 .waqf-services-notice-grid,
 .waqf-private-grid{
  grid-template-columns:1fr!important;
 }
 .platform-footer .footer-grid{
  grid-template-columns:1fr 1fr!important;
 }
}

@media(max-width:640px){
 .public-wrap,
 .page-banner > div{
  width:min(100% - 32px,var(--public-max))!important;
 }
 .public-section{
  padding-block:3.5rem!important;
 }
 .page-banner{
  min-height:360px!important;
  padding-top:7rem!important;
 }
 .page-banner h1,
 .public-hero h1,
 .simplified-hero h1{
  font-size:clamp(2.35rem,13vw,3rem)!important;
  line-height:1.02!important;
 }
 .public-section h2{
  font-size:clamp(2rem,10vw,2.65rem)!important;
 }
 .home-page .home-pathways .pathway-grid.platform-home-grid,
 .explore-detail-grid,
 .about-page .pathway-grid.platform-home-grid,
 .pathway-grid.about-services-grid,
 .simple-purpose-grid,
 .contact-info-grid,
 .explore-directory-grid,
 .waqf-profile-grid{
  grid-template-columns:1fr!important;
 }
 .platform-footer .footer-grid{
  grid-template-columns:1fr!important;
 }
 .footer-links,
 .footer-contact{
  margin-top:1.5rem;
 }
}

/* V183: make the Discover Waqfs selector action clearly clickable */
.waqf-selector-form button,
.waqf-selector-form .public-button,
.waqf-selector-card button,
.waqf-selector-card .public-button{
 cursor:pointer!important;
 user-select:none;
 transition:
  transform .16s ease,
  box-shadow .16s ease,
  background-color .16s ease,
  border-color .16s ease,
  color .16s ease!important;
}

.waqf-selector-form button:hover,
.waqf-selector-form .public-button:hover,
.waqf-selector-card button:hover,
.waqf-selector-card .public-button:hover{
 transform:translateY(-2px);
 box-shadow:0 12px 28px rgba(176,107,55,.22);
 filter:saturate(1.04);
}

.waqf-selector-form button:active,
.waqf-selector-form .public-button:active,
.waqf-selector-card button:active,
.waqf-selector-card .public-button:active{
 transform:translateY(0);
 box-shadow:0 6px 16px rgba(176,107,55,.18);
}

.waqf-selector-form button:focus-visible,
.waqf-selector-form .public-button:focus-visible,
.waqf-selector-card button:focus-visible,
.waqf-selector-card .public-button:focus-visible{
 outline:3px solid rgba(218,184,118,.55);
 outline-offset:4px;
}

/* V184: landing hero wording polish */
.home-page .simplified-hero.platform-hero .hero-copy{
 width:min(720px,82vw)!important;
 max-width:720px!important;
}

.home-page .simplified-hero.platform-hero .hero-subtitle,
.home-page .simplified-hero.platform-hero .hero-summary{
 max-width:62ch!important;
}

.home-page .simplified-hero.platform-hero .hero-summary{
 margin-top:.9rem!important;
}

@media(max-width:700px){
 .home-page .simplified-hero.platform-hero .hero-copy{
  width:100%!important;
 }
.home-page .simplified-hero.platform-hero .hero-summary{
  font-size:.94rem!important;
  line-height:1.62!important;
 }
}

/* V186: mobile prayer ribbon fit
   Small phone browsers have very little width because the address bar takes
   space visually. Use two clean rows instead of cutting the next prayer. */
@media(max-width:900px){
 .public-prayer-toggle{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:
   "date action"
   "next next"!important;
  align-items:center!important;
  justify-content:stretch!important;
  gap:2px 10px!important;
  min-height:58px!important;
  padding:7px max(4.5vw,16px)!important;
  overflow:visible!important;
  white-space:normal!important;
  text-align:left!important;
 }
 .public-prayer-toggle .mobile-ribbon{
  grid-area:date;
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:.86rem!important;
 }
 .public-prayer-toggle .ribbon-next-prayer{
  grid-area:next;
  display:block!important;
  max-width:none!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:.82rem!important;
  opacity:.96!important;
 }
 .public-prayer-toggle strong{
  grid-area:action;
  margin-left:0!important;
  justify-self:end!important;
  white-space:nowrap!important;
  font-size:.75rem!important;
  letter-spacing:.1em!important;
 }
 .prayer-ribbon-on .public-header{
  top:58px!important;
 }
 .public-prayer-panel{
  top:58px!important;
 }
}

@media(max-width:380px){
 .public-prayer-toggle{
  gap:1px 8px!important;
  padding-inline:12px!important;
 }
 .public-prayer-toggle .mobile-ribbon{
  font-size:.8rem!important;
 }
 .public-prayer-toggle .ribbon-next-prayer{
  font-size:.76rem!important;
 }
 .public-prayer-toggle strong{
  font-size:.68rem!important;
  letter-spacing:.08em!important;
 }
}

/* V287.19: public legal pages and consistent legal footer links */
.legal-page{padding-top:150px;padding-bottom:90px;max-width:980px}
.legal-heading{padding-bottom:28px;border-bottom:1px solid rgba(18,63,73,.18)}
.legal-heading h1{margin:8px 0 10px;color:#123f49;font:600 clamp(2.7rem,7vw,4.8rem)/1.04 Georgia,serif}
.legal-heading p{margin:0;color:#6b7280;font-size:.92rem}
.legal-copy{max-width:820px;padding-top:16px}
.legal-copy h2{margin:34px 0 9px;color:#123f49;font:700 1.35rem/1.25 Inter,Segoe UI,Arial,sans-serif}
.legal-copy p{margin:0 0 15px;color:#354f57;font-size:1rem;line-height:1.75}
.legal-copy a{color:#9b4f2f;text-underline-offset:3px}
.footer-legal{display:flex;flex-wrap:wrap;gap:18px;margin-left:auto}
.footer-legal a{color:rgba(255,255,255,.86);text-decoration:none}
.footer-legal a:hover{text-decoration:underline}
.login-legal{margin-top:36px;padding-top:20px;border-top:1px solid rgba(18,63,73,.15);color:#8a654f;font-size:.82rem;line-height:1.5}
.login-legal nav{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px}
.login-legal a{color:#063f55;text-underline-offset:3px}
@media(max-width:600px){.legal-page{padding:112px 20px 65px}.legal-heading h1{font-size:2.65rem}.footer-legal{margin-top:12px;margin-left:0;gap:14px}}

/* V187: final no-sea MAS Platform landing hero.
   Keeps the family/technology story visible on the right while a soft overlay
   makes the people symbolic rather than portrait-like. */
.home-page .simplified-hero.platform-hero{
 background-image:
  linear-gradient(90deg,
   rgba(255,254,250,.985) 0%,
   rgba(255,254,250,.93) 37%,
   rgba(255,254,250,.55) 58%,
   rgba(18,63,73,.20) 100%),
  linear-gradient(180deg,rgba(18,63,73,.08),rgba(18,63,73,.20)),
  url("images/mas-platform-hero-final-v188.png")!important;
 background-position:center center!important;
 background-size:cover!important;
}
.home-page .simplified-hero.platform-hero:before{
 background:
  radial-gradient(circle at 80% 42%,rgba(18,63,73,.18),rgba(18,63,73,.08) 28%,rgba(18,63,73,0) 50%),
  linear-gradient(90deg,rgba(255,254,250,.80),rgba(255,254,250,.44) 68%,rgba(255,254,250,0))!important;
}

@media(min-width:901px){
 .home-page .simplified-hero.platform-hero{
  background-position:55% center!important;
 }
 .home-page .simplified-hero.platform-hero .hero-copy{
  width:min(620px,48vw)!important;
  max-width:620px!important;
  padding:28px 28px 30px!important;
  background:rgba(255,254,250,.91)!important;
  -webkit-backdrop-filter:blur(8px)!important;
  backdrop-filter:blur(8px)!important;
 }
 .home-page .simplified-hero.platform-hero .hero-subtitle,
 .home-page .simplified-hero.platform-hero .hero-summary{
  max-width:56ch!important;
 }
}

@media(max-width:900px){
 .home-page .simplified-hero.platform-hero{
  background-image:
   linear-gradient(180deg,
    rgba(255,254,250,.98) 0%,
    rgba(255,254,250,.94) 54%,
    rgba(255,254,250,.84) 100%),
   url("images/mas-platform-hero-final-v188.png")!important;
  background-position:62% center!important;
 }
}

/* V192: MAS service selector is a dropdown, not a permanent services list */
.public-nav-services .services-trigger{
 cursor:pointer;
}
.public-services-menu .services-menu-heading{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:14px;
 padding:13px 12px 15px;
 border-bottom:1px solid rgba(18,63,73,.12);
 color:#123f49;
 text-transform:uppercase;
 letter-spacing:.12em;
 font-size:.72rem;
 font-weight:850;
}
.public-services-menu .services-menu-heading small{
 color:#6b5d4d;
 text-transform:none;
 letter-spacing:0;
 font-size:.78rem;
 font-weight:600;
}
.service-status{
 display:inline-flex;
 align-items:center;
 width:max-content;
 margin:12px 0 4px;
 padding:7px 10px;
 border-radius:999px;
 background:#f1eee8;
 color:#7a5b35;
 text-transform:uppercase;
 letter-spacing:.08em;
 font-size:.7rem;
 font-weight:850;
}
.service-status.available{
 background:#eaf3ec;
 color:#245541;
}
.public-nav-services.services-open .public-services-menu{
 opacity:1!important;
 visibility:visible!important;
 transform:translateY(0)!important;
 pointer-events:auto!important;
}
@media(min-width:901px){
 .public-nav-services .public-services-menu{
  pointer-events:none;
 }
 .public-nav-services:hover .public-services-menu,
 .public-nav-services:focus-within .public-services-menu,
 .public-nav-services.services-open .public-services-menu{
  pointer-events:auto;
 }
}
@media(max-width:900px){
 .public-nav-services{
  display:block!important;
 }
 .public-nav-services>.services-trigger{
  width:100%!important;
  min-height:56px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  padding:14px 16px!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  font-size:1rem!important;
  font-weight:800!important;
 }
 .public-nav-services>.services-trigger::after{
  content:'⌄'!important;
  transform:none!important;
  font-size:1rem!important;
 }
 .public-nav-services.services-open>.services-trigger::after{
  content:'⌃'!important;
 }
 .public-nav-services .public-services-menu{
  display:none!important;
  position:static!important;
  width:100%!important;
  margin-top:8px!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  pointer-events:auto!important;
  background:rgba(255,255,255,.08)!important;
  border-color:rgba(255,255,255,.14)!important;
  box-shadow:none!important;
 }
 .public-nav-services.services-open .public-services-menu{
  display:block!important;
 }
 .public-nav-services .public-services-menu::before{
  display:none!important;
 }
 .public-nav-services .public-services-menu a{
  min-height:auto!important;
  display:grid!important;
  color:#fff!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.12)!important;
  border-radius:0!important;
  background:transparent!important;
  padding:13px 12px!important;
 }
 .public-nav-services .public-services-menu .services-menu-heading{
  color:#fff!important;
  border-bottom-color:rgba(255,255,255,.12)!important;
 }
 .public-nav-services .public-services-menu .services-menu-heading small{
  color:rgba(255,255,255,.76)!important;
 }
 .public-nav-services .public-services-menu small{
  color:rgba(255,255,255,.78)!important;
 }
 .public-nav-services .public-services-menu em{
  background:#edcf91!important;
  color:#21180f!important;
 }
}

/* V196: steadier MAS Amanah Services dropdown */
@media(min-width:901px){
 .public-nav-services{
  position:relative;
 }
 .public-nav-services::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:16px;
  display:block;
 }
 .public-nav-services>.services-trigger{
  cursor:pointer;
  user-select:none;
 }
 .public-services-menu{
  top:calc(100% + 8px)!important;
  padding:12px!important;
  border-radius:18px!important;
  box-shadow:0 24px 65px rgba(18,63,73,.20)!important;
 }
 .public-services-menu a{
  border-radius:12px!important;
  border-bottom:1px solid rgba(18,63,73,.10)!important;
  transition:background .16s ease,transform .16s ease;
 }
 .public-services-menu a:hover{
  background:#f5ead8!important;
  transform:translateX(2px);
 }
 .public-nav-services:hover>.services-trigger,
 .public-nav-services.services-open>.services-trigger{
  background:#eef7f5;
  border-color:rgba(18,63,73,.20);
 }
}

/* V197: MAS Amanah footer service wording */
.platform-footer .footer-identity p strong{
 color:#edcf91;
 font-weight:850;
}

/* V202: desktop housekeeping polish
   Keeps mobile calm, but stops laptop/wide screens from stretching cards and headings. */
@media(min-width:1181px){
 .home-page .public-section{
  padding-block:clamp(4.25rem,5.6vw,5.75rem)!important;
 }
 .home-page .home-pathways .public-wrap,
 .home-page .home-welcome .public-wrap,
 .home-page .welcome-layout,
 .home-page .public-section.white > .public-wrap{
  width:min(1180px,calc(100% - clamp(56px,8vw,120px)))!important;
 }
 .home-page .home-pathways .public-wrap{
  max-width:1180px!important;
 }
 .home-page .home-pathways h2{
  max-width:760px!important;
  font-size:clamp(2.65rem,3.3vw,4.05rem)!important;
  line-height:1.03!important;
  margin-bottom:18px!important;
 }
 .home-page .home-pathways .public-lead{
  max-width:650px!important;
  margin-bottom:30px!important;
 }
 .home-page .home-pathways .pathway-grid.platform-home-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:clamp(1.15rem,1.6vw,1.5rem)!important;
  align-items:stretch!important;
 }
 .home-page .home-pathways .pathway-grid.platform-home-grid article{
  min-height:auto!important;
  padding:clamp(1.4rem,1.7vw,1.75rem)!important;
  display:flex!important;
  flex-direction:column!important;
 }
 .home-page .home-pathways .pathway-grid.platform-home-grid h3{
  font-size:clamp(1.35rem,1.35vw,1.65rem)!important;
  line-height:1.12!important;
  margin-bottom:12px!important;
 }
 .home-page .home-pathways .pathway-grid.platform-home-grid p{
  font-size:.96rem!important;
  line-height:1.62!important;
 }
 .home-page .home-pathways .pathway-grid.platform-home-grid article a{
  margin-top:auto!important;
 }
 .home-page .home-pathways .service-status{
  margin-top:auto!important;
 }
 .home-page .welcome-layout{
  grid-template-columns:minmax(320px,430px) minmax(0,610px)!important;
  gap:clamp(3.25rem,6vw,5.75rem)!important;
  align-items:center!important;
 }
 .home-page .welcome-heading h2{
  max-width:12.5ch!important;
  font-size:clamp(2.55rem,3.55vw,4.15rem)!important;
  line-height:1.02!important;
 }
 .home-page .welcome-copy{
  max-width:610px!important;
  padding:clamp(1.65rem,2.4vw,2.25rem)!important;
  border-radius:24px!important;
 }
 .home-page .welcome-copy p{
  max-width:58ch!important;
  text-align:left!important;
 }
 .home-page .welcome-copy p:last-child{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
 }
 .home-page .welcome-copy .public-button.subtle{
  background:#fffaf2!important;
  color:#123f49!important;
  border-color:rgba(18,63,73,.28)!important;
  box-shadow:none!important;
 }
}

@media(min-width:901px) and (max-width:1180px){
 .home-page .home-pathways .pathway-grid.platform-home-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 .home-page .welcome-layout{
  grid-template-columns:1fr!important;
 }
 .home-page .welcome-heading h2{
  max-width:14ch!important;
 }
}

/* V204: rebalance homepage split sections on laptops/desktops.
   The previous version made these feel like tall posters with too much empty space. */
@media(min-width:1181px){
 .home-page .public-section.white,
 .home-page .public-section.home-welcome{
  padding-block:clamp(3.25rem,4.2vw,4.75rem)!important;
 }
 .home-page .public-section.white > .public-wrap.welcome-layout,
 .home-page .public-section.home-welcome > .public-wrap.welcome-layout{
  width:min(1120px,calc(100% - clamp(64px,10vw,150px)))!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1.08fr)!important;
  gap:clamp(2.5rem,4.2vw,4.25rem)!important;
  align-items:center!important;
 }
 .home-page .public-section.white .welcome-heading,
 .home-page .public-section.home-welcome .welcome-heading{
  max-width:500px!important;
 }
 .home-page .public-section.white .welcome-heading h2,
 .home-page .public-section.home-welcome .welcome-heading h2{
  max-width:11.5em!important;
  font-size:clamp(2.45rem,3vw,3.55rem)!important;
  line-height:1.07!important;
  letter-spacing:-.025em!important;
 }
 .home-page .public-section.white .welcome-copy,
 .home-page .public-section.home-welcome .welcome-copy{
  max-width:none!important;
  width:100%!important;
  padding:clamp(1.45rem,2vw,2rem) clamp(1.65rem,2.4vw,2.35rem)!important;
  border-radius:0 22px 22px 0!important;
 }
 .home-page .public-section.white .welcome-copy p,
 .home-page .public-section.home-welcome .welcome-copy p{
  max-width:60ch!important;
  font-size:1rem!important;
  line-height:1.68!important;
 }
 .home-page .public-section.white .welcome-copy p+p,
 .home-page .public-section.home-welcome .welcome-copy p+p{
  margin-top:.9rem!important;
 }
}

@media(min-width:1500px){
 .home-page .public-section.white > .public-wrap.welcome-layout,
 .home-page .public-section.home-welcome > .public-wrap.welcome-layout{
  width:min(1160px,calc(100% - 180px))!important;
 }
 .home-page .public-section.white .welcome-heading h2,
 .home-page .public-section.home-welcome .welcome-heading h2{
  font-size:clamp(2.55rem,2.75vw,3.75rem)!important;
 }
}
/* V205: laptop / wide-screen public page polish.
   Keeps mobile comfortable while preventing laptop sections from feeling stretched,
   empty, or uneven. */
@media (min-width: 1181px){
  .public-page:not(.home-page) .public-section > .public-wrap{
    width:min(1180px, calc(100% - clamp(72px, 10vw, 170px))) !important;
  }

  .public-page:not(.home-page) .public-section{
    padding-top:clamp(72px, 6vw, 96px);
    padding-bottom:clamp(72px, 6vw, 96px);
  }

  .public-page:not(.home-page) .public-section h2{
    max-width:1040px;
    text-wrap:balance;
  }

  .public-page:not(.home-page) .public-split{
    grid-template-columns:minmax(0, .95fr) minmax(0, 1.05fr);
    gap:clamp(2.5rem, 4vw, 4.75rem);
    align-items:center;
  }

  .public-page:not(.home-page) .public-split h2,
  .public-page:not(.home-page) .public-split h3{
    text-wrap:balance;
  }

  .news-page .home-pathways .public-wrap{
    width:min(1180px, calc(100% - clamp(72px, 10vw, 170px))) !important;
  }

  .news-page .home-pathways h2{
    max-width:1080px;
    font-size:clamp(2.65rem, 3.2vw, 3.95rem);
    line-height:1.06;
    margin-bottom:clamp(1.35rem, 2vw, 2rem);
    text-wrap:balance;
  }

  .news-page .learning-purpose-grid,
  .news-page .learning-audience-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
    gap:clamp(1rem, 1.35vw, 1.4rem) !important;
    align-items:stretch;
  }

  .news-page .learning-purpose-grid article,
  .news-page .learning-audience-grid article{
    min-height:244px;
    padding:clamp(1.35rem, 1.45vw, 1.65rem);
    display:flex;
    flex-direction:column;
  }

  .news-page .learning-purpose-grid article h3,
  .news-page .learning-audience-grid article h3{
    font-size:clamp(1.22rem, 1.15vw, 1.55rem);
    line-height:1.12;
    text-wrap:balance;
  }

  .news-page .learning-purpose-grid article p,
  .news-page .learning-audience-grid article p{
    font-size:.96rem;
    line-height:1.65;
  }

  .home-page .public-section > .public-wrap,
  .about-page .public-section > .public-wrap,
  .contact-page .public-section > .public-wrap,
  .discover-page .public-section > .public-wrap{
    width:min(1180px, calc(100% - clamp(72px, 9vw, 160px))) !important;
  }

  .home-page .pathway-grid,
  .about-page .pathway-grid,
  .discover-page .pathway-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:clamp(1rem, 1.35vw, 1.4rem);
  }
}

@media (min-width: 901px) and (max-width: 1180px){
  .news-page .learning-purpose-grid,
  .news-page .learning-audience-grid,
  .home-page .pathway-grid,
  .about-page .pathway-grid,
  .discover-page .pathway-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }

  .news-page .home-pathways h2{
    max-width:900px;
    text-wrap:balance;
  }
}

@media (max-width: 640px){
  .news-page .home-pathways h2{
    max-width:100%;
    text-wrap:balance;
  }

  .news-page .learning-purpose-grid article,
  .news-page .learning-audience-grid article{
    min-height:0;
  }
}

button,
select,
.public-button,
.public-nav a,
.public-service-toggle,
.waqf-open-button,
.service-card a,
.pathway-grid a,
.resource-grid a{
  cursor:pointer;
}

/* V212: cleaner mobile hero cards on inner public pages.
   The home page keeps its full landing treatment; other pages use a tighter
   intro card so the background image does not create awkward side/bottom space. */
@media (max-width: 700px){
  body:not(.home-page) .page-banner{
    min-height:0!important;
    padding:104px 12px 16px!important;
    align-items:flex-start!important;
    background-position:center top!important;
  }

  body:not(.home-page) .page-banner > div{
    width:100%!important;
    max-width:100%!important;
    margin:0 auto!important;
    padding:22px 20px 24px!important;
    border-radius:22px!important;
    background:rgba(255,253,248,.965)!important;
    box-shadow:0 14px 34px rgba(18,63,73,.13)!important;
  }

  body:not(.home-page) .page-banner h1{
    max-width:100%!important;
    font-size:clamp(2.35rem, 11vw, 3.05rem)!important;
    line-height:1.04!important;
    margin:16px 0 14px!important;
  }

  body:not(.home-page) .page-banner p{
    max-width:100%!important;
    font-size:1rem!important;
    line-height:1.6!important;
    margin:0 0 1rem!important;
  }

  body:not(.home-page) .page-banner p:last-child{
    margin-bottom:0!important;
  }

  body:not(.home-page) .page-banner + .public-section{
    padding-top:3.2rem!important;
  }
}

@media (max-width: 430px){
  body:not(.home-page) .page-banner{
    padding-left:10px!important;
    padding-right:10px!important;
    padding-bottom:12px!important;
  }

  body:not(.home-page) .page-banner > div{
    padding:20px 18px 22px!important;
    border-radius:20px!important;
  }
}

/* V219: compact mobile prayer ribbon with Gregorian date, Hijri date, EAT time and next prayer. */
@media(max-width:900px){
 .public-prayer-toggle{
  min-height:62px!important;
  gap:2px 9px!important;
 }
 .public-prayer-toggle .mobile-ribbon{
  font-size:.82rem!important;
  letter-spacing:.01em!important;
 }
 .public-prayer-toggle .ribbon-next-prayer{
  font-size:.79rem!important;
 }
 .public-prayer-toggle strong{
  font-size:.72rem!important;
  letter-spacing:.085em!important;
 }
 .prayer-ribbon-on .public-header{top:62px!important}
 .public-prayer-panel{top:62px!important}
}

@media(max-width:380px){
 .public-prayer-toggle{
  min-height:64px!important;
  padding-inline:10px!important;
 }
 .public-prayer-toggle .mobile-ribbon{font-size:.76rem!important}
 .public-prayer-toggle .ribbon-next-prayer{font-size:.71rem!important}
 .public-prayer-toggle strong{font-size:.62rem!important;letter-spacing:.06em!important}
 .prayer-ribbon-on .public-header{top:64px!important}
 .public-prayer-panel{top:64px!important}
}

/* V220: mobile header clearance after the two-line prayer ribbon.
   Keeps the floating public header from covering the hero/page intro text. */
@media(max-width:700px){
 .prayer-ribbon-on .public-header{
  top:64px!important;
  padding-top:12px!important;
 }

 .home-page .simplified-hero,
 .home-page .simplified-hero.platform-hero{
  padding-top:166px!important;
 }

 body:not(.home-page) .page-banner{
  padding-top:166px!important;
 }
}

@media(max-width:380px){
 .home-page .simplified-hero,
 .home-page .simplified-hero.platform-hero,
 body:not(.home-page) .page-banner{
  padding-top:172px!important;
 }
}

/* V221: tighter mobile hero rhythm so the main actions appear sooner. */
@media(max-width:700px){
 .home-page .simplified-hero .hero-copy,
 .home-page .simplified-hero.platform-hero .hero-copy{
  padding:24px 24px 26px!important;
 }

 .home-page .simplified-hero .kicker,
 .home-page .simplified-hero.platform-hero .kicker{
  margin-bottom:14px!important;
 }

 .home-page .simplified-hero h1,
 .home-page .simplified-hero.platform-hero h1{
  font-size:clamp(3.05rem,15vw,4.35rem)!important;
  line-height:.98!important;
  margin-bottom:18px!important;
 }

 .home-page .simplified-hero .hero-subtitle,
 .home-page .simplified-hero.platform-hero .hero-subtitle{
  font-size:clamp(1.55rem,7.2vw,2.25rem)!important;
  line-height:1.13!important;
  margin-bottom:18px!important;
 }

 .home-page .simplified-hero .hero-summary,
 .home-page .simplified-hero.platform-hero .hero-summary{
  font-size:1.02rem!important;
  line-height:1.55!important;
  margin-bottom:18px!important;
 }

 .home-page .simplified-hero .hero-actions,
 .home-page .simplified-hero.platform-hero .hero-actions{
  gap:12px!important;
  margin-top:20px!important;
 }
}

/* V222: reduce the mobile landing text height so Member Login appears without unnecessary scrolling. */
@media(max-width:700px){
 .home-page .simplified-hero,
 .home-page .simplified-hero.platform-hero{
  padding-top:152px!important;
  padding-bottom:36px!important;
 }

 .home-page .simplified-hero .hero-copy,
 .home-page .simplified-hero.platform-hero .hero-copy{
  padding:20px 22px 22px!important;
 }

 .home-page .simplified-hero h1,
 .home-page .simplified-hero.platform-hero h1{
  font-size:clamp(2.55rem,12vw,3.45rem)!important;
  line-height:.97!important;
  margin-bottom:14px!important;
 }

 .home-page .simplified-hero .hero-subtitle,
 .home-page .simplified-hero.platform-hero .hero-subtitle{
  font-size:clamp(1.16rem,5.6vw,1.45rem)!important;
  line-height:1.18!important;
  margin-bottom:14px!important;
 }

 .home-page .simplified-hero .hero-summary,
 .home-page .simplified-hero.platform-hero .hero-summary{
  font-size:.95rem!important;
  line-height:1.44!important;
  margin-bottom:12px!important;
 }

 .home-page .simplified-hero .hero-summary p,
 .home-page .simplified-hero.platform-hero .hero-summary p{
  margin-bottom:.7rem!important;
 }

 .home-page .simplified-hero .hero-actions,
 .home-page .simplified-hero.platform-hero .hero-actions,
 .home-page .simplified-hero .public-actions,
 .home-page .simplified-hero.platform-hero .public-actions{
  gap:10px!important;
  margin-top:14px!important;
 }

 .home-page .simplified-hero .public-button,
 .home-page .simplified-hero.platform-hero .public-button{
  min-height:46px!important;
  padding:11px 14px!important;
 }
}

@media(max-width:380px){
 .home-page .simplified-hero,
 .home-page .simplified-hero.platform-hero{
  padding-top:158px!important;
 }

 .home-page .simplified-hero .hero-copy,
 .home-page .simplified-hero.platform-hero .hero-copy{
  padding:18px 18px 20px!important;
 }
}

/* V223: tighter mobile home hero so the Member Login button is visible sooner. */
@media(max-width:700px){
 .home-page .simplified-hero,
 .home-page .simplified-hero.platform-hero{
  padding-top:132px!important;
  padding-bottom:24px!important;
 }

 .home-page .simplified-hero .hero-copy,
 .home-page .simplified-hero.platform-hero .hero-copy{
  padding:16px 19px 18px!important;
  border-radius:24px!important;
 }

 .home-page .simplified-hero .public-kicker,
 .home-page .simplified-hero.platform-hero .public-kicker{
  font-size:.7rem!important;
  letter-spacing:.18em!important;
  margin-bottom:8px!important;
 }

 .home-page .simplified-hero .hero-overline,
 .home-page .simplified-hero.platform-hero .hero-overline{
  font-size:clamp(1.02rem,5vw,1.28rem)!important;
  line-height:1.12!important;
  margin:0 0 8px!important;
 }

 .home-page .simplified-hero .waqf-name,
 .home-page .simplified-hero.platform-hero .waqf-name,
 .home-page .simplified-hero h1,
 .home-page .simplified-hero.platform-hero h1{
  font-size:clamp(2.4rem,10vw,3.05rem)!important;
  line-height:.94!important;
  margin:2px 0 8px!important;
 }

 .home-page .simplified-hero .hero-rule,
 .home-page .simplified-hero.platform-hero .hero-rule{
  width:88px!important;
  margin:7px 0 12px!important;
 }

 .home-page .simplified-hero .hero-subtitle,
 .home-page .simplified-hero.platform-hero .hero-subtitle{
  font-size:clamp(1.06rem,5vw,1.28rem)!important;
  line-height:1.14!important;
  margin-bottom:10px!important;
 }

 .home-page .simplified-hero .hero-summary,
 .home-page .simplified-hero.platform-hero .hero-summary{
  font-size:.86rem!important;
  line-height:1.32!important;
  margin:0 0 8px!important;
 }

 .home-page .simplified-hero .hero-summary + .hero-summary,
 .home-page .simplified-hero.platform-hero .hero-summary + .hero-summary{
  display:none!important;
 }

 .home-page .simplified-hero .public-actions,
 .home-page .simplified-hero.platform-hero .public-actions{
  gap:8px!important;
  margin-top:10px!important;
 }

 .home-page .simplified-hero .public-button,
 .home-page .simplified-hero.platform-hero .public-button{
  min-height:43px!important;
  padding:9px 12px!important;
  font-size:.86rem!important;
 }
}

@media(max-width:380px){
 .home-page .simplified-hero,
 .home-page .simplified-hero.platform-hero{
  padding-top:136px!important;
 }

 .home-page .simplified-hero .hero-copy,
 .home-page .simplified-hero.platform-hero .hero-copy{
  padding:15px 17px 17px!important;
 }

 .home-page .simplified-hero .waqf-name,
 .home-page .simplified-hero.platform-hero .waqf-name,
 .home-page .simplified-hero h1,
 .home-page .simplified-hero.platform-hero h1{
  font-size:2.25rem!important;
 }
}
