
:root { --green:#00563f; --deep:#003f31; --ink:#12312b; --gold:#d9a032; --cream:#f7f3ea; --line:#e6e2d9; --white:#fff; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:#fbfaf7; color:var(--ink); font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color:inherit; text-decoration:none; }
.container { width:min(1180px, calc(100% - 40px)); margin-inline:auto; }
.verse-bar { background:linear-gradient(90deg,#004b38,#00634a); color:#fff; font-size:12px; }
.verse-inner { min-height:34px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.verse-inner span:first-child { display:flex; gap:8px; align-items:center; opacity:.94; }
.verse-ref { padding-left:20px; border-left:1px solid rgba(255,255,255,.25); white-space:nowrap; }
.site-header { position:sticky; top:0; z-index:20; background:rgba(255,255,255,.96); backdrop-filter:blur(14px); border-bottom:1px solid rgba(0,74,54,.09); }
.nav-wrap { height:82px; display:flex; align-items:center; gap:28px; }
.brand { display:flex; align-items:center; gap:11px; margin-right:auto; }
.brand-logo { display:block; width:176px; height:60px; object-fit:contain; object-position:left center; }
.brand-mark { width:48px; height:48px; display:grid; place-items:center; border:2px solid var(--green); color:var(--green); transform:rotate(45deg); border-radius:9px; }
.brand-mark svg { transform:rotate(-45deg); }
.brand span:last-child { display:flex; flex-direction:column; line-height:1; }
.brand small { font-size:10px; letter-spacing:.28em; font-weight:800; }
.brand strong { font-family:Georgia,serif; font-size:22px; margin-top:3px; }
.brand em { font-size:10px; font-style:normal; margin-top:3px; }
.nav-links { display:flex; align-items:center; gap:25px; font-size:13px; }
.nav-links>a { padding-block:30px 26px; border-bottom:2px solid transparent; }
.nav-links>a:hover,.nav-links>a.active { color:var(--green); border-color:var(--green); }
.nav-links .upz-link { padding:10px 21px; border:1px solid var(--line); border-radius:999px; }
.donate-btn,.primary-btn,.secondary-btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; font-weight:700; }
.donate-btn { background:var(--green); color:#fff; padding:13px 20px; border-radius:10px; font-size:13px; box-shadow:0 8px 24px rgba(0,86,63,.16); }
.menu-button { display:none; border:0; background:transparent; color:var(--deep); }
.hero { min-height:430px; position:relative; overflow:hidden; background:#dbe7e3 url('masjid-hero.png') center/cover no-repeat; }
.hero::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 66%,rgba(0,37,27,.18)); }
.hero-shade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(247,249,248,.98) 0%,rgba(247,249,248,.92) 37%,rgba(247,249,248,.18) 68%,rgba(0,63,49,.1)); z-index:1; }
.hero-content { position:relative; z-index:2; min-height:430px; display:flex; align-items:center; justify-content:space-between; gap:60px; padding-block:50px; }
.hero-copy { max-width:590px; }
.eyebrow { display:inline-flex; align-items:center; gap:7px; color:var(--green); font-weight:800; text-transform:uppercase; letter-spacing:.12em; font-size:11px; }
h1,h2 { font-family:Georgia,"Times New Roman",serif; }
.hero h1 { margin:14px 0 10px; max-width:590px; font-size:clamp(43px,5vw,67px); line-height:.98; letter-spacing:-.045em; color:#0a3c31; }
.hero-copy>p { max-width:520px; margin:0; font-size:16px; line-height:1.7; color:#41544f; }
.hero-actions { display:flex; gap:13px; margin-top:26px; }
.primary-btn,.secondary-btn { min-height:45px; padding:0 24px; border-radius:9px; font-size:13px; }
.primary-btn { color:#fff; background:var(--green); box-shadow:0 10px 28px rgba(0,86,63,.18); }
.secondary-btn { border:1px solid rgba(217,160,50,.7); background:rgba(255,255,255,.8); }
.quote-card { align-self:flex-end; width:330px; padding:23px 25px; border-radius:18px; background:rgba(255,255,255,.9); box-shadow:0 18px 55px rgba(24,52,46,.15); border:1px solid rgba(255,255,255,.7); }
.quote-card svg { color:var(--green); }
.quote-card p { margin:6px 0; font-family:Georgia,serif; font-size:15px; line-height:1.45; }
.quote-card small { color:#6e7c78; }
.service-grid { position:relative; z-index:4; display:grid; grid-template-columns:repeat(6,1fr); gap:12px; margin-top:20px; }
.service-card { min-height:150px; padding:20px 14px; display:flex; flex-direction:column; align-items:center; text-align:center; background:#fff; border:1px solid var(--line); border-radius:15px; box-shadow:0 8px 28px rgba(17,49,43,.05); transition:.2s ease; }
.service-card:hover { transform:translateY(-3px); box-shadow:0 14px 34px rgba(17,49,43,.1); }
.service-card>svg { color:var(--green); width:31px; height:31px; margin-bottom:12px; }
.service-card strong { font-size:14px; }
.service-card span { margin-top:4px; color:#677670; font-size:11px; }
.service-card small { display:flex; align-items:center; gap:5px; margin-top:auto; color:var(--green); font-size:10px; }
.service-card.featured { background:linear-gradient(145deg,#007052,#004737); color:#fff; border-color:transparent; }
.service-card.featured svg,.service-card.featured small { color:#f2c768; }
.service-card.featured span { color:#dcebe6; }
.dashboard-grid { display:grid; grid-template-columns:1.65fr 1fr .55fr; gap:16px; padding-block:20px; }
.prayer-card,.agenda-card,.amanah-card { border-radius:16px; overflow:hidden; border:1px solid var(--line); }
.prayer-card { color:#fff; padding:24px 28px 18px; background:linear-gradient(135deg,#00654b,#003f31); position:relative; }
.prayer-card::after { content:""; position:absolute; width:260px; height:260px; border:1px solid rgba(255,255,255,.08); border-radius:50%; right:-130px; bottom:-160px; box-shadow:0 0 0 25px rgba(255,255,255,.025),0 0 0 50px rgba(255,255,255,.02); }
.section-row { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.section-row h2 { margin:0; font-size:21px; }
.section-row p { margin:4px 0 0; font-size:11px; opacity:.85; }
.section-row>a,.section-row>span { display:flex; align-items:center; gap:5px; font-size:10px; color:var(--green); }
.section-row.light>span { color:#fff; }
.prayer-times { display:grid; grid-template-columns:repeat(5,1fr); margin-top:18px; padding-top:17px; border-top:1px solid rgba(255,255,255,.2); }
.prayer-times>div { display:flex; flex-direction:column; align-items:center; border-right:1px solid rgba(255,255,255,.17); }
.prayer-times>div:last-child { border:0; }
.prayer-times svg { color:#f2c768; width:23px; }
.prayer-times span { font-size:12px; margin-top:6px; }
.prayer-times strong { font-size:24px; margin-top:2px; }
.schedule-note { position:relative; z-index:1; text-align:center; font-size:10px; opacity:.75; margin:19px 0 0; }
.agenda-card { padding:18px 22px; background:#fff; }
.agenda-list { margin-top:8px; }
.agenda-item { display:grid; grid-template-columns:44px 1fr 16px; align-items:center; gap:11px; padding:8px 0; border-top:1px solid #eeeae1; }
.date-box { height:42px; background:#eef4f1; color:var(--green); border-radius:8px; display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1; }
.date-box strong { font-size:16px; }
.date-box small { margin-top:3px; text-transform:uppercase; font-size:8px; }
.agenda-item>span:nth-child(2) { display:flex; flex-direction:column; }
.agenda-item>span:nth-child(2)>strong { font-size:12px; }
.agenda-item>span:nth-child(2)>small { color:#75817d; font-size:9px; margin-top:3px; }
.agenda-item>svg { color:#6d7f79; }
.amanah-card { padding:20px 14px; text-align:center; background:linear-gradient(160deg,#f5eadc,#fff); display:flex; flex-direction:column; align-items:center; }
.amanah-card>svg:first-child { color:var(--green); width:22px; }
.amanah-card h2 { margin:9px 0; font-size:16px; line-height:1.1; }
.amanah-card p { font-size:10px; line-height:1.45; }
.amanah-card>svg:last-child { color:var(--gold); margin-top:auto; opacity:.72; }
.split-section { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding-bottom:20px; }
.program-panel,.transparency-panel { background:#fff; border:1px solid var(--line); border-radius:16px; padding:20px; }
.section-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:16px; }
.section-heading h2 { margin:2px 0 0; font-size:24px; color:#164a3e; }
.section-heading>div>span { color:var(--gold); font-family:Georgia,serif; font-size:12px; font-style:italic; }
.section-heading>a { display:flex; align-items:center; gap:5px; color:var(--green); font-size:10px; }
.program-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.program-card { min-height:112px; position:relative; overflow:hidden; border-radius:12px; display:flex; align-items:flex-end; padding:13px; color:#fff; background:linear-gradient(145deg,#0f7359,#004634); }
.program-card:nth-child(2),.program-card:nth-child(5) { background:linear-gradient(145deg,#766433,#c29436); }
.program-card:nth-child(3),.program-card:nth-child(4) { background:linear-gradient(145deg,#315d50,#163e34); }
.program-card>svg { position:absolute; right:8px; top:8px; width:48px; height:48px; opacity:.14; }
.program-card div { display:flex; flex-direction:column; position:relative; z-index:1; }
.program-card strong { font-size:12px; }
.program-card span { font-size:8px; margin-top:3px; color:#dbe9e5; }
.fund-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.fund-card { min-height:202px; border:1px solid #e9e5dc; border-radius:12px; padding:13px; display:flex; flex-direction:column; box-shadow:0 7px 20px rgba(17,49,43,.04); }
.fund-card>strong { color:var(--green); font-size:12px; }
.fund-card.gold>strong { color:#b4730b; }
.fund-card>small,.fund-card>span { color:#78847f; font-size:8px; margin-top:3px; }
.fund-card h3 { margin:16px 0 0; font-family:Georgia,serif; font-size:18px; }
.progress { height:7px; border-radius:99px; background:#e8eee9; margin-top:15px; overflow:hidden; }
.progress i { display:block; height:100%; background:linear-gradient(90deg,#00674d,#e4ad3b); border-radius:inherit; }
.fund-card>b { align-self:flex-end; margin-top:4px; font-size:9px; }
.fund-card>a { margin-top:auto; border:1px solid #e5e0d6; border-radius:7px; padding:8px 5px; text-align:center; color:var(--green); font-size:9px; }
.fund-card>a.filled { color:#fff; border-color:var(--green); background:var(--green); }
.fund-stat { padding:12px 0; font-size:9px; color:#78847f; }
.fund-stat b { color:var(--ink); font-size:17px; margin-right:4px; }
.data-note { color:#8a938f; font-size:8px; margin:12px 0 0; }
.risalah-section { padding:4px 0 26px; }
.article-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.article-card { min-height:140px; padding:17px; border-radius:13px; position:relative; overflow:hidden; color:#fff; background:linear-gradient(145deg,#314a43,#0a5c45); display:flex; flex-direction:column; justify-content:flex-end; box-shadow:0 9px 25px rgba(15,53,43,.12); }
.article-card:nth-child(2) { background:linear-gradient(145deg,#725c38,#173f35); }
.article-card:nth-child(3) { background:linear-gradient(145deg,#907742,#31594d); }
.article-card:nth-child(4) { background:linear-gradient(145deg,#294a41,#7a6540); }
.article-card>span { position:absolute; left:13px; top:13px; background:#087251; padding:4px 9px; border-radius:99px; text-transform:uppercase; font-size:7px; font-weight:800; }
.article-card>svg { position:absolute; right:13px; top:16px; width:54px; height:54px; opacity:.15; }
.article-card h3 { margin:0; max-width:210px; font-family:Georgia,serif; font-size:16px; line-height:1.08; }
.article-card small { margin-top:8px; font-size:8px; opacity:.8; }
.about-section { padding:55px 0; background:#f1eee6; border-top:1px solid #ebe5d9; }
.about-grid { display:grid; grid-template-columns:1.15fr 1fr; gap:90px; align-items:center; }
.about-grid h2 { margin:12px 0; font-size:38px; line-height:1; color:#0a4c3b; }
.about-grid p { color:#5d6d67; line-height:1.65; }
.value-list { display:grid; gap:9px; }
.value-list>div { display:flex; flex-direction:column; padding:15px 18px; border-left:3px solid var(--gold); background:rgba(255,255,255,.66); border-radius:0 10px 10px 0; }
.value-list strong { color:var(--green); }
.value-list span { color:#66746f; font-size:11px; margin-top:3px; }
.cta { color:#fff; background:linear-gradient(110deg,#00553f,#00654a); }
.cta-inner { min-height:118px; display:flex; align-items:center; justify-content:space-between; gap:40px; }
.cta h2 { margin:0 0 6px; font-size:28px; }
.cta p { margin:0; max-width:590px; font-size:12px; opacity:.88; }
.cta-inner>div:last-child { display:flex; gap:11px; }
.cta a { min-width:130px; padding:11px 17px; border:1px solid #d5aa4a; border-radius:7px; text-align:center; font-size:11px; font-weight:700; }
.cta a.gold-button { color:#12362d; background:linear-gradient(135deg,#f0c05a,#d69520); }
footer { color:#eaf4f1; background:#004332; }
.footer-grid { display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:35px; padding-block:35px 28px; }
footer .brand { margin:0; color:#fff; width:max-content; }
footer .footer-logo { filter:invert(1); width:178px; height:64px; }
footer .brand-mark { color:#e8c165; border-color:#e8c165; }
.footer-brand>p { max-width:190px; margin-top:18px; font-size:10px; opacity:.8; }
footer h3 { margin:5px 0 12px; font-size:13px; color:#fff; }
footer div>div:not(.footer-brand) { display:flex; flex-direction:column; }
footer a,footer p { margin:0 0 7px; font-size:10px; color:#c9ddd7; }
footer p { display:flex; align-items:flex-start; gap:7px; }
.footer-bottom { min-height:45px; display:flex; align-items:center; justify-content:space-between; border-top:1px solid rgba(255,255,255,.14); font-size:9px; color:#c9ddd7; }
@media (max-width:1050px) {
  .nav-links { display:none; position:absolute; top:82px; left:20px; right:20px; padding:18px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 18px 40px rgba(0,0,0,.12); flex-direction:column; align-items:stretch; gap:0; }
  .nav-links.open { display:flex; }
  .nav-links>a { padding:11px; border-bottom:1px solid #f0eee8; }
  .donate-btn { margin-left:auto; }
  .menu-button { display:block; }
  .service-grid { grid-template-columns:repeat(3,1fr); }
  .dashboard-grid { grid-template-columns:1.5fr 1fr; }
  .amanah-card { display:none; }
  .split-section { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1.4fr repeat(2,1fr); }
  .cta-inner { align-items:flex-start; flex-direction:column; padding-block:28px; }
}
@media (max-width:720px) {
  .container { width:min(100% - 28px,1180px); }
  .verse-ref,.donate-btn { display:none; }
  .verse-inner { padding-block:7px; }
  .nav-wrap { height:70px; }
  .nav-links { top:70px; }
  .brand strong { font-size:18px; }
  .brand-logo { width:148px; height:52px; }
  .brand-mark { width:40px; height:40px; }
  .hero,.hero-content { min-height:540px; }
  .hero-content { align-items:flex-start; flex-direction:column; justify-content:center; gap:25px; padding-block:48px; }
  .hero h1 { font-size:44px; }
  .hero-copy>p { font-size:14px; }
  .quote-card { align-self:stretch; width:auto; padding:17px 20px; }
  .hero-actions { flex-direction:column; align-items:stretch; }
  .service-grid { grid-template-columns:repeat(2,1fr); }
  .dashboard-grid { grid-template-columns:1fr; }
  .prayer-card { padding-inline:18px; }
  .prayer-times { gap:5px; }
  .prayer-times strong { font-size:18px; }
  .prayer-times span { font-size:10px; }
  .program-grid,.fund-grid { grid-template-columns:repeat(2,1fr); }
  .article-grid { grid-template-columns:repeat(2,1fr); }
  .about-grid { grid-template-columns:1fr; gap:28px; }
  .about-grid h2 { font-size:32px; }
  .cta-inner>div:last-child { width:100%; flex-direction:column; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-brand { grid-column:1/-1; }
  .footer-bottom { align-items:flex-start; flex-direction:column; justify-content:center; gap:4px; }
}
@media (max-width:460px) {
  .program-grid,.fund-grid,.article-grid { grid-template-columns:1fr; }
  .service-card { min-height:135px; }
}

.icon { display:inline-grid; place-items:center; font-style:normal; line-height:1; }
.brand-mark .icon { transform:rotate(-45deg); font-size:24px; }
.service-card>.icon { color:var(--green); font-size:31px; margin-bottom:12px; }
.service-card.featured>.icon { color:#f2c768; }
.program-card>.icon,.article-card>.icon { position:absolute; right:13px; top:13px; font-size:46px; opacity:.15; }
.footer-brand .brand-mark .icon { color:#e8c165; }
