:root{--blue:#1f54ba;--blue2:#3977e0;--yellow:#ffc629;--soft:#eaf1ff;--canvas:#f7f8fc;--paper:#fff;--ink:#20242b;--muted:#72757e;--line:#e8e8ec;--green:#206538;--radius:22px;--shadow:0 16px 45px rgba(31,42,68,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--canvas);color:var(--ink);font-family:'Plus Jakarta Sans',system-ui,sans-serif;line-height:1.6}a{color:inherit;text-decoration:none}img{max-width:100%}.container{width:min(1120px,calc(100% - 34px));margin:auto}.narrow{width:min(620px,calc(100% - 34px));margin:auto}.site-header{position:sticky;top:0;z-index:20;background:rgba(245,243,240,.9);backdrop-filter:blur(14px);border-bottom:1px solid rgba(0,0,0,.04)}.header-inner{height:78px;display:flex;align-items:center;justify-content:space-between}.brand img{width:145px;display:block}.desktop-nav{display:flex;align-items:center;gap:24px;font-size:14px;font-weight:700}.desktop-nav form{margin:0}.link-button{border:0;background:none;font:inherit;cursor:pointer;color:var(--ink)}.hero-section{padding:68px 0 42px}.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:42px;align-items:center}.hero-section h1,.page-head h1,.detail-grid h1,.narrow h1,.dashboard-head h1{font-size:clamp(34px,5vw,64px);line-height:1.05;letter-spacing:-.045em;margin:14px 0 20px}.hero-section h1 span{color:var(--blue)}.lead{font-size:18px;max-width:650px;color:#555b65}.pill{display:inline-block;padding:7px 11px;border-radius:999px;background:#e8f6ea;color:var(--green);font-size:11px;font-weight:800}.pill-muted{background:#efeff2;color:#747680}.hero-actions,.button-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:15px;padding:14px 18px;font:inherit;font-weight:800;cursor:pointer}.btn.primary{background:var(--yellow);color:var(--ink)}.btn.secondary{background:var(--soft);color:var(--blue)}.btn.full{width:100%}.btn.compact{padding:10px 14px;font-size:13px}.impact-card{background:linear-gradient(135deg,var(--blue),var(--blue2));color:#fff;border-radius:28px;padding:30px;box-shadow:var(--shadow)}.impact-card h2{font-size:34px;line-height:1.1;margin:10px 0}.impact-card p{color:#e3ebff}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:26px}.stats-grid div{min-width:0}.stats-grid strong{display:block;font-size:26px}.stats-grid small{display:block;font-size:11px;opacity:.8}.section-space{padding:42px 0}.section-title{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:20px}.section-title h2{margin:4px 0;font-size:30px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:var(--blue)}.steps-grid,.location-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:0 8px 30px rgba(31,42,68,.035)}.step-no{font-size:13px;color:var(--blue)}.card h3{margin:8px 0}.card p{margin:7px 0}.warm-panel{background:#efeae6;border-radius:28px;padding:32px;display:grid;grid-template-columns:1fr 1fr;gap:30px}.location-card{padding:0;overflow:hidden}.location-photo,.detail-cover{background:linear-gradient(145deg,#8cbace,#e8f3ff 55%,#a5b888);display:grid;place-items:center;min-height:190px}.location-photo span,.detail-cover span{font-size:72px;color:#ffffffb5}.location-body{padding:18px}.location-body h3{font-size:20px}.muted{color:var(--muted)}.progress{height:9px;border-radius:999px;background:#edf0f5;overflow:hidden;margin:12px 0}.progress i{display:block;height:100%;background:var(--blue);border-radius:inherit}.progress.yellow i{background:var(--yellow)}.meta-row{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:8px 0}.page-head{padding-top:54px}.page-head h1{font-size:clamp(34px,4vw,52px)}.filter-bar{display:grid;grid-template-columns:1fr 220px auto;gap:10px;margin-top:22px}.filter-bar input,.filter-bar select,.form-card input,.form-card textarea,.form-card select{width:100%;border:1px solid #dadde4;background:#fff;border-radius:14px;padding:13px 14px;font:inherit}.form-card textarea{min-height:110px;resize:vertical}.pagination-wrap{padding-bottom:40px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:38px;align-items:start}.detail-grid h1{font-size:46px}.detail-cover{min-height:470px;border-radius:28px}.back-link{display:inline-block;margin-bottom:12px;color:var(--blue);font-weight:800}.funding-card{margin:20px 0}.funding-card hr{border:0;border-top:1px solid var(--line);margin:18px 0}.notice,.flash{background:#fff7dc;border-radius:15px;padding:14px 16px;font-size:13px;margin:14px 0}.flash{margin-top:14px}.flash.success,.success-notice{background:#e4f8ec;color:#17613c}.flash.error{background:#ffe8e8;color:#8b2626}.flash.info{background:var(--soft);color:var(--blue)}.form-card{display:grid;gap:16px}.form-card label{display:grid;gap:7px;font-size:13px;font-weight:700}.choice{display:flex;gap:12px;align-items:flex-start;background:#fff;border:2px solid var(--line);border-radius:18px;padding:17px;margin:10px 0;cursor:pointer}.choice:has(input:checked){border-color:var(--blue);background:#f2f6ff}.choice span{display:grid}.choice small{color:var(--muted)}.check-row{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:9px!important;font-weight:500!important}.check-row input{width:auto!important;margin-top:5px}.selected-location{display:grid;gap:4px;margin:16px 0}.selected-location small{color:var(--muted)}.center{text-align:center}.left{text-align:left}.big-money{font-size:38px;font-weight:800}.dashboard-grid{display:grid;grid-template-columns:1fr 330px;gap:20px;padding-bottom:90px}.dashboard-head{padding-bottom:10px}.dashboard-head h1{font-size:44px}.due-card{margin-bottom:24px}.commitment-card{margin-bottom:12px}.admin-stats{grid-template-columns:repeat(4,1fr)}.admin-stats .card strong{color:var(--blue)}.table-wrap{overflow:auto;background:#fff;border-radius:20px;border:1px solid var(--line)}table{width:100%;border-collapse:collapse;min-width:800px}th,td{text-align:left;padding:14px;border-bottom:1px solid var(--line);font-size:13px}th{background:#fafafa}.mobile-bottom-nav{display:none}
@media(max-width:800px){body{padding-bottom:74px}.desktop-nav{display:none}.header-inner{height:66px}.brand img{width:118px}.hero-section{padding-top:34px}.hero-grid,.detail-grid,.dashboard-grid,.warm-panel{grid-template-columns:1fr}.hero-section h1{font-size:42px}.impact-card h2{font-size:28px}.steps-grid,.location-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(3,1fr)}.filter-bar{grid-template-columns:1fr}.detail-cover{min-height:260px}.detail-grid h1,.dashboard-head h1{font-size:36px}.admin-stats{grid-template-columns:1fr 1fr}.mobile-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);bottom:0;left:0;right:0;z-index:30;background:#fff;border-top:1px solid var(--line);padding:8px 4px 12px}.mobile-bottom-nav a{display:grid;place-items:center;font-size:10px;color:#888}.mobile-bottom-nav a span{font-size:20px;line-height:1.1}.mobile-bottom-nav a.active{color:var(--blue);font-weight:800}.section-space{padding:28px 0}.section-title{align-items:center}.section-title h2{font-size:24px}}

/* WakafPlus PRD v3.1 Stage B */
.site-header{background:rgba(247,248,252,.93)}.desktop-nav a:hover,.text-link{color:var(--blue)}.blue-text{color:var(--blue)}.story-hero{background:#1f54ba;color:#fff;overflow:hidden}.story-hero-grid{min-height:560px;display:grid;grid-template-columns:1.13fr .87fr;gap:32px;align-items:center}.story-intro{padding:70px 0}.hero-kicker,.light-eyebrow{font-size:11px;letter-spacing:.12em;font-weight:800;color:#c4ddff}.story-hero h1{font-size:clamp(42px,5.5vw,76px);line-height:1.08;letter-spacing:-.05em;margin:22px 0}.story-hero h1 em{font-style:normal;color:var(--yellow)}.story-hero p{color:#e6edff;font-size:17px;max-width:570px}.light-btn{background:#ffffff1e;color:#fff;border:1px solid #ffffff72}.story-statline{display:flex;gap:28px;margin-top:50px;border-top:1px solid #ffffff40;padding-top:22px}.story-statline strong{font-size:19px;display:block}.story-statline small{font-size:11px;color:#dbe5fc}.hero-art{position:relative;min-height:460px;display:grid;place-items:center}.water-rings{width:360px;height:360px;border:2px solid #ffffff60;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 30px #ffffff0b,0 0 0 70px #ffffff0b;transform:rotate(-10deg)}.water-drop{font-size:130px;filter:drop-shadow(0 12px 20px #0a2b7855)}.art-floating{position:absolute;bottom:45px;left:10px;background:#fff;color:var(--ink);border-radius:20px;padding:16px 20px;box-shadow:var(--shadow);display:grid;gap:4px}.art-floating span{font-size:12px;color:var(--muted)}.story-block{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:start}.story-block h2,.story-feature h2,.story-closing h2{font-size:clamp(30px,3.2vw,49px);line-height:1.16;letter-spacing:-.04em;margin:8px 0}.story-block p{font-size:17px}.quote-feature{padding:44px;border-radius:28px;background:#eaf1ff;text-align:center}.quote-feature blockquote{font-size:clamp(55px,7vw,94px);font-weight:800;color:var(--blue);margin:10px}.quote-feature p{max-width:700px;margin:0 auto 14px}.quote-feature small{color:var(--muted)}.quote-feature a{text-decoration:underline}.story-step{padding:28px;min-height:210px}.story-feature{border-radius:30px;background:#fff;display:grid;grid-template-columns:1.3fr .7fr;gap:25px;padding:48px;align-items:center}.story-feature p{max-width:600px}.story-symbol{color:var(--blue);background:var(--soft);border-radius:30px;font-size:84px;text-align:center;padding:35px}.story-closing{background:var(--blue);border-radius:30px;color:#fff;padding:52px}.story-closing span{font-size:12px;letter-spacing:.14em}.story-closing h2{max-width:690px}.story-closing .light-btn{border-color:#ffffff69}.inner-page{min-height:65vh;max-width:900px}.inner-page h1{font-size:clamp(32px,5vw,55px);letter-spacing:-.04em;line-height:1.15}.share-panel,.community-preview{margin:32px 0;padding:30px}.share-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.profile-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:26px}.profile-details{display:grid;grid-template-columns:110px 1fr;gap:14px;margin:20px 0}.profile-details dt{color:var(--muted)}.profile-details dd{margin:0;font-weight:700;overflow-wrap:anywhere}.empty-journey{text-align:center;padding:35px}.empty-icon{font-size:45px}.dashboard-head h1{line-height:1.2}.dashboard-head p{max-width:580px}
.mobile-bottom-nav a{min-height:44px}.btn:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid #f2a800;outline-offset:3px}
@media(max-width:800px){body{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}.story-hero-grid,.story-block,.story-feature,.profile-layout{grid-template-columns:1fr}.story-intro{padding:40px 0 0}.story-hero h1{font-size:clamp(37px,9vw,53px)}.story-hero p{font-size:15px}.story-statline{gap:12px;justify-content:space-between;margin-top:30px;padding-bottom:12px}.story-statline strong{font-size:15px}.hero-art{min-height:230px}.water-rings{width:165px;height:165px;box-shadow:0 0 0 20px #ffffff0b,0 0 0 40px #ffffff0b}.water-drop{font-size:70px}.art-floating{bottom:8px;left:14px;padding:11px}.story-block{gap:6px}.quote-feature{padding:30px 18px}.story-feature,.story-closing{padding:27px}.story-symbol{font-size:50px;padding:10px}.mobile-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;border-radius:18px 18px 0 0;box-shadow:0 -10px 30px #13224d10;padding:8px 5px calc(8px + env(safe-area-inset-bottom,0px))}.mobile-bottom-nav a{font-weight:600;gap:2px}.mobile-bottom-nav .mobile-home span{display:grid;place-items:center;width:52px;height:52px;color:#fff;background:var(--blue);border:4px solid white;border-radius:50%;font-size:29px;margin-top:-25px;box-shadow:0 7px 14px #1f54ba44}.mobile-bottom-nav .mobile-home{color:var(--blue);font-weight:800}.inner-page{min-height:70vh}.profile-details{grid-template-columns:85px 1fr}.share-panel{padding:20px}.dashboard-head{padding-bottom:6px}.dashboard-head h1{font-size:34px}.hero-actions .btn{flex:1;min-width:145px}}
/* WakafPlus - Dynamic Mosque Cover */


/* =========================================
   WAKAFPLUS - UNIFIED IMAGE SYSTEM v1.0
   ========================================= */

:root {
    --image-radius: 18px;
    --image-background: #eaf1ff;
}

/* 1. Cover kartu masjid */
.location-card .location-photo {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: var(--image-background);
}

/* 2. Gambar kartu masjid */
.location-card .location-photo img,
.location-card .mosque-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.location-card:hover .location-photo img {
    transform: scale(1.035);
}

/* 3. Placeholder jika tidak ada foto */
.location-card .location-photo .mosque-placeholder,
.location-card .location-photo > span {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    color: #1f54ba;
    font-size: 54px;
}

/* 4. Tinggi kartu masjid konsisten */
.location-grid {
    align-items: stretch;
}

.location-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.location-card .location-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

/* 5. Cover halaman detail masjid */
.detail-cover {
    display: block;
    position: relative;
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    background: var(--image-background);
}

.detail-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 6. Foto aktivitas masjid */
.activity-photo,
.update-photo,
.location-update-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--image-radius);
    background: var(--image-background);
}

.activity-photo img,
.update-photo img,
.location-update-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 7. Banner hero jika menggunakan gambar */
.hero-image,
.story-hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
}

.hero-image img,
.story-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 8. Foto galeri */
.gallery-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
}

.gallery-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 9. Logo tidak boleh terpotong */
.brand img {
    display: block;
    width: 145px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* 10. Penyesuaian mobile */
@media (max-width: 800px) {

    .brand img {
        width: 118px;
    }

    .location-card .location-photo {
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .detail-cover {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .hero-image,
    .story-hero-image {
        aspect-ratio: 4 / 3;
    }
}
