*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:#f6faf7;color:#17351f}a{text-decoration:none;color:inherit}.top{background:#075b2a;color:#fff}.nav{max-width:1180px;margin:auto;padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-weight:800}.brand small{display:block;font-weight:500;opacity:.8;margin-top:3px}.navlinks{display:flex;gap:10px;flex-wrap:wrap}.navlinks a,.btn{padding:10px 14px;border-radius:10px}.navlinks a:hover{background:#0d7138}.btn{display:inline-block;border:0;cursor:pointer;background:#d8ad32;color:#183b23;font-weight:800}.btn.green{background:#087333;color:#fff}.btn.light{background:#fff;border:1px solid #d7e4d9}.hero{background:linear-gradient(135deg,#075b2a,#0d7a3d);color:#fff;padding:70px 22px}.hero-inner{max-width:1180px;margin:auto}.hero h1{font-size:clamp(34px,6vw,62px);margin:0 0 15px;line-height:1.05}.hero p{max-width:700px;font-size:18px;line-height:1.7;opacity:.92}.wrap{max-width:1180px;margin:auto;padding:35px 22px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.card{background:#fff;border:1px solid #dfeae1;border-radius:18px;padding:22px;box-shadow:0 8px 24px #123b1910}.card h3{margin-top:0;color:#075b2a}.section-title{margin:0 0 18px;font-size:30px}.muted{color:#66756b}.form{max-width:620px;margin:35px auto;background:#fff;padding:28px;border-radius:20px;box-shadow:0 12px 35px #123b1912}.form h1{margin-top:0}.field{margin:14px 0}.field label{display:block;font-weight:700;margin-bottom:7px}.field input,.field select,.field textarea{width:100%;padding:12px;border:1px solid #ccdacf;border-radius:10px;font:inherit;background:#fff}.msg{padding:12px;border-radius:10px;margin:12px 0;display:none}.success{display:block;background:#e6f6eb;color:#12652e}.error{display:block;background:#fdeaea;color:#9b2222}.tablewrap{overflow:auto}.table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td{padding:12px;border-bottom:1px solid #e3ebe5;text-align:left;white-space:nowrap}.badge{display:inline-block;padding:5px 9px;border-radius:999px;background:#eaf5ed;color:#09652f;font-size:12px;font-weight:800}.footer{margin-top:50px;background:#063d1d;color:#dcece1;padding:35px 22px}.footer-inner{max-width:1180px;margin:auto}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.hidden{display:none!important}@media(max-width:700px){.nav{align-items:flex-start;flex-direction:column}.hero{padding:48px 22px}.form{margin:20px 0;padding:20px}}
.executive-phone{color:#087333;font-weight:800;text-decoration:underline}.executive-phone:hover{color:#075b2a}

.site-brand{display:flex;align-items:center;gap:12px;min-width:0}.site-logo{display:block;object-fit:contain;flex:none;background:#fff;border-radius:10px;padding:3px}.mssn-logo{width:58px;height:58px}.fpe-logo{width:64px;height:58px}.site-brand .brand{min-width:175px}.site-brand .brand small{white-space:nowrap}.nav{align-items:center}.navlinks{align-items:center}
@media(max-width:900px){.nav{align-items:center}.site-brand .brand{min-width:0}.navlinks{width:100%}}
@media(max-width:700px){.nav{align-items:flex-start}.site-brand{width:100%;justify-content:flex-start}.site-logo{border-radius:8px}.mssn-logo{width:48px;height:48px}.fpe-logo{width:54px;height:48px}.site-brand .brand{font-size:14px}.site-brand .brand small{font-size:10px;white-space:normal}.navlinks{width:100%}}


/* Interactive controls */
.btn, button, .navlinks a, .more-menu > summary {
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.btn::after, .navlinks > a::after, .more-menu > summary::after, button:not(.more-menu summary)::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  box-shadow: 0 0 8px rgba(255,255,255,.9);
  transition: transform .16s ease, opacity .16s ease;
  pointer-events: none;
}
.btn:not(.light)::after { background: rgba(255,255,255,.9); }
.btn.light::after, .more-menu > summary::after, .navlinks > a::after { background: #087333; box-shadow: 0 0 8px rgba(8,115,51,.55); }
.btn:active, button:active, .navlinks > a:active, .more-menu > summary:active { transform: scale(.96); }
.btn:active::after, button:active::after, .navlinks > a:active::after, .more-menu > summary:active::after,
.btn:focus-visible::after, .navlinks > a:focus-visible::after, .more-menu > summary:focus-visible::after { transform: scaleX(1); opacity: 1; }

/* Compact More navigation */
.more-menu { position: relative; }
.more-menu > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  user-select: none;
}
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu > summary::before { content: "☰"; margin-right: 7px; font-size: 13px; }
.more-menu[open] > summary { background: #0d7138; }
.more-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border: 1px solid #dfeae1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(18,59,25,.18);
}
.more-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 9px;
  color: #17351f;
  font-weight: 700;
}
.more-panel a:hover { background: #eef7f0; color: #075b2a; }

/* Click-to-view executive cards */
.executive-card { overflow: hidden; }
.executive-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
  font-weight: 800;
}
.executive-card summary::-webkit-details-marker { display: none; }
.executive-card summary::after {
  content: "＋";
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf5ed;
  color: #087333;
  font-size: 21px;
  transition: transform .2s ease, background .2s ease;
}
.executive-card[open] summary::after { content: "−"; transform: rotate(180deg); background: #dcefe2; }
.executive-summary h3 { margin: 0 0 8px; }
.executive-summary .badge { margin-top: 0; }
.executive-details { padding-top: 12px; border-top: 1px solid #e3ebe5; margin-top: 8px; animation: executiveReveal .22s ease; }
@keyframes executiveReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

@media(max-width:700px){
  .more-panel { left: 0; right: auto; width: min(88vw, 280px); }
  .executive-card summary { align-items: flex-start; }
}

.portal-link-card{display:block;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.portal-link-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(18,59,25,.12);border-color:#bcd9c4}.portal-link-card:active{transform:scale(.98)}

.welcome-panel{margin-bottom:18px}.welcome-panel .section-title{margin-bottom:8px}


/* Announcement media */
.announcement-card{overflow:hidden;padding:0;}
.announcement-image{display:block;width:100%;max-height:360px;object-fit:cover;border-radius:14px 14px 0 0;background:#eef5ef;}
.announcement-body{padding:18px;}
.announcement-content{white-space:normal;line-height:1.7;}
.dashboard-announcement{padding:0 0 18px;margin-bottom:18px;border-bottom:1px solid #e1ebe4;}
.dashboard-announcement:last-child{border-bottom:0;margin-bottom:0;}
.dashboard-announcement .announcement-image{max-height:260px;border-radius:12px;margin-bottom:12px;}
.announcement-admin-item{padding:14px 0;border-bottom:1px solid #e1ebe4;}
.announcement-admin-item:last-child{border-bottom:0;}
.announcement-admin-image{display:block;width:min(100%,420px);max-height:220px;object-fit:cover;border-radius:12px;margin:0 0 10px;}
.announcement-image-preview{margin:10px 0 14px;max-width:420px;}
.announcement-image-preview img{display:block;width:100%;max-height:220px;object-fit:cover;border-radius:12px;border:1px solid #dfe9e1;}

/* Executive category selector */
.executive-selector{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 18px}
.executive-selector .btn{flex:1 1 220px;text-align:center;min-width:0}
.executive-panel{display:none}
.executive-panel.active{display:grid}
.executive-empty{grid-column:1/-1}

/* MSSN Mosque Hero — original photo retained, softly transparent over the green hero */
.hero{position:relative;overflow:hidden;isolation:isolate;}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(7,91,42,.10),rgba(13,122,61,.16));z-index:-1;pointer-events:none;}
.hero-inner{position:relative;z-index:2;}
.hero-mosque{position:absolute;z-index:1;top:0;right:0;width:min(58%,900px);height:100%;overflow:hidden;pointer-events:none;opacity:.22;}
.hero-mosque img{display:block;width:100%;height:100%;object-fit:cover;object-position:center center;filter:saturate(.8) brightness(1.08);-webkit-mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.25) 12%,#000 32%,#000 100%);mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.25) 12%,#000 32%,#000 100%);}
@media(max-width:700px){.hero-mosque{width:100%;height:100%;opacity:.13;}.hero-mosque img{object-position:center center;-webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.1),#000 45%,#000 100%);mask-image:linear-gradient(to bottom,rgba(0,0,0,.1),#000 45%,#000 100%);}}

/* V29 Past Questions / Executive dropdown polish */
.executive-set-dropdown{max-width:560px;margin-bottom:18px}
.past-question-selectors{align-items:end}
.past-question-item{margin-bottom:14px}

/* V37 site-wide live motion */
body{background:#f6faf7;position:relative;overflow-x:hidden}
body:before{content:"";position:fixed;z-index:-1;inset:-25%;background:radial-gradient(circle at 15% 20%,rgba(216,173,50,.09),transparent 22%),radial-gradient(circle at 85% 15%,rgba(7,91,42,.08),transparent 24%),radial-gradient(circle at 60% 90%,rgba(8,115,51,.07),transparent 25%);animation:portalFloat 14s ease-in-out infinite alternate;pointer-events:none}
@keyframes portalFloat{from{transform:translate3d(-1%,-1%,0) scale(1)}to{transform:translate3d(1%,1%,0) scale(1.04)}}
@media(prefers-reduced-motion:reduce){body:before{animation:none!important}.card,.portal-link-card{animation:none!important}}
/* Phase Two: Islamic Knowledge Centre entry */
.islamic-entry-btn{background:linear-gradient(135deg,#075b2a,#0b7d3d);color:#fff;box-shadow:0 10px 22px rgba(7,91,42,.18);display:inline-flex;align-items:center;gap:10px}
.islamic-entry-btn span{font-size:12px;opacity:.82;font-weight:700}
.islamic-entry-btn:hover{transform:translateY(-1px);box-shadow:0 13px 26px rgba(7,91,42,.24)}

/* V71 — attachment-based Islamic Article reader */
.article-attachment-reader{background:#fff;border:1px solid rgba(20,83,45,.18);border-radius:16px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.08)}
.article-reader-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;background:#f7faf7;border-bottom:1px solid #e5ece6;font-size:.9rem;color:#45604d}
.article-attachment-object{display:block;width:100%;height:78vh;min-height:680px;border:0;background:#f1f3f1}
.article-attachment-frame{display:block;width:100%;height:100%;min-height:680px;border:0;background:#fff}
.article-reader-fallback{padding:10px 14px;background:#fafafa;color:#65756a;font-size:.85rem}
.article-reader-fallback a{color:#146c3a;font-weight:700}
@media(max-width:700px){.article-attachment-object,.article-attachment-frame{height:70vh;min-height:520px}.article-reader-toolbar{align-items:flex-start;flex-direction:column}}


/* V74 — More navigation: animated white right-side chooser */
.more-menu > summary{z-index:2}
.more-drawer-backdrop{position:fixed;inset:0;background:rgba(4,35,18,.38);backdrop-filter:blur(2px);z-index:9998;opacity:0;pointer-events:none;transition:opacity .22s ease}
.more-drawer-backdrop.open{opacity:1;pointer-events:auto}
.more-drawer{position:fixed;z-index:9999;top:0;right:0;width:min(440px,92vw);height:100dvh;background:#fff;color:#17351f;box-shadow:-22px 0 55px rgba(0,0,0,.22);transform:translateX(105%);transition:transform .34s cubic-bezier(.22,.8,.2,1);display:flex;flex-direction:column;overflow:auto}
.more-drawer.open{transform:translateX(0)}
.more-drawer-head{padding:28px 24px 20px;background:linear-gradient(145deg,#075b2a,#0d7a3d);color:#fff;position:relative;overflow:hidden}
.more-drawer-head:after{content:'☪';position:absolute;right:18px;top:2px;font-size:95px;opacity:.08}
.more-drawer-kicker{font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:900;opacity:.78}
.more-drawer-head h2{margin:7px 0 6px;font-size:24px}.more-drawer-head p{margin:0;line-height:1.55;font-size:13px;max-width:330px;opacity:.9}
.more-drawer-close{position:absolute;right:16px;top:16px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;font-size:23px;cursor:pointer;z-index:2}
.more-drawer-body{padding:18px 16px 28px;display:grid;gap:10px}
.more-choice{display:flex;align-items:center;gap:13px;padding:14px;border:1px solid #e0e9e2;border-radius:14px;background:#fff;color:#17351f;text-decoration:none;box-shadow:0 5px 16px rgba(18,59,25,.05);transition:transform .18s ease,background .18s ease,border-color .18s ease;animation:moreChoiceIn .3s ease both}
.more-choice:hover{transform:translateX(-3px);background:#f5faf6;border-color:#bdd7c4}.more-choice-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#edf7ef;color:#087333;font-size:18px;flex:none}.more-choice strong{display:block;font-size:14px}.more-choice small{display:block;color:#738077;margin-top:2px;font-size:11px}.more-choice-arrow{margin-left:auto;color:#087333;font-weight:900;font-size:18px}
@keyframes moreChoiceIn{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
body.more-drawer-lock{overflow:hidden}
@media(max-width:600px){.more-drawer{width:94vw}.more-drawer-head{padding:24px 18px 18px}.more-drawer-body{padding:14px 12px 24px}.more-choice{padding:13px}.more-choice-icon{width:36px;height:36px}}
/* V74 — header logos together */
.site-brand{gap:8px}.site-brand .brand{margin-left:3px}.site-brand .fpe-logo{order:2}.site-brand .mssn-logo{order:1}.site-brand .brand{order:3}
/* V74 — phone-friendly main admin */
.subadmin-form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.subadmin-list{display:grid;gap:10px}.subadmin-item{background:#fff;border:1px solid #dfe9e1;border-radius:14px;padding:13px}.subadmin-item-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.subadmin-item .subadmin-meta{font-size:12px;color:#6f7e74;margin-top:5px}.subadmin-item .subadmin-section{display:inline-block;margin-top:9px;padding:5px 9px;border-radius:999px;background:#edf7ef;color:#087333;font-size:11px;font-weight:900}
@media(max-width:700px){.subadmin-form-grid{grid-template-columns:1fr!important}.admin-toolbar-row{align-items:stretch}.admin-toolbar-row>div{width:100%}.admin-toolbar{padding:15px}.admin-section-select{font-size:14px;padding:13px}.site-brand{gap:6px}.site-brand .brand{margin-left:2px}.mssn-logo{width:46px;height:46px}.fpe-logo{width:48px;height:46px}.site-brand .brand{font-size:13px}.site-brand .brand small{font-size:9px}.more-drawer-head h2{font-size:22px}}
/* V74 — membership card optimized for phones */
.membership-card{max-width:680px}.membership-card-head{padding:14px 18px}.membership-card-body{padding:18px;grid-template-columns:92px minmax(0,1fr);gap:14px}.membership-photo{width:92px;height:112px}.membership-info{min-width:0}.membership-info h3{font-size:20px;line-height:1.2;word-break:break-word}.membership-info p{font-size:12px;line-height:1.4;word-break:break-word}.membership-card-foot{padding:11px 16px}.membership-card-foot span{font-size:10px}
.certificate-download-card{text-align:center}.certificate-download-card .btn{margin-top:8px}
@media(max-width:520px){.membership-card{border-radius:15px}.membership-card-head{padding:11px 13px;font-size:11px;display:flex;justify-content:space-between}.membership-card-body{padding:13px;grid-template-columns:68px minmax(0,1fr);gap:10px}.membership-photo{width:68px;height:84px}.membership-photo svg{width:58px!important;height:70px!important}.membership-info h3{font-size:16px;margin-bottom:5px}.membership-info p{font-size:10.5px;margin:4px 0}.membership-card-foot{padding:9px 12px}.membership-card-foot .btn{padding:8px 10px;font-size:11px}}
