/* ==========================================================
   Minek Berbagi – Dapur Minek
   ========================================================== */
:root {
    --maroon: #8a1c2c;
    --maroon-dark: #6e1220;
    --maroon-deep: #5c0f1b;
    --gold: #f2b23a;
    --gold-soft: #f7cd6e;
    --orange: #e8892c;
    --cream: #fff9f0;
    --cream-2: #fdf1dc;
    --cream-3: #f9e6c4;
    --brown: #3d1f17;
    --text: #2f2320;
    --muted: #5b4a44;
    --white: #fff;
    --radius: 14px;
    --shadow: 0 6px 22px rgba(110, 50, 20, .10);
    --script: 'Kaushan Script', cursive;
    --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    background: var(--cream);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    /* clip, bukan hidden: hidden menjadikan body scroll container sehingga position: sticky tidak berfungsi */
    overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.container { width: min(1320px, 100% - 56px); margin-inline: auto; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.icon-xs { width: .8em; height: .8em; }
.hide-sm { display: inline; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 15px;
    border: 0;
    border-radius: 999px;
    padding: 12px 26px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(180deg, #96202f 0%, var(--maroon-dark) 100%);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(110, 18, 32, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(110, 18, 32, .35); }
.btn-primary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-sm { padding: 8px 20px; font-size: 13.5px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn .icon-arrow { margin-left: .2em; }

/* ---------------- Header ---------------- */
.site-header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 30;
}
.header-inner {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: min(1440px, 100%);
    margin-inline: auto;
    padding: 14px 3.5% 0 4.2%;
}
/* bidang putih melengkung di belakang menu */
.header-inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 70%;
    height: 78px;
    background: rgba(255, 253, 249, .97);
    border-bottom-right-radius: 100% 100%;
    border-bottom: 2.5px solid var(--gold);
    z-index: -1;
}
.brand { flex-shrink: 0; }
.brand img { width: 192px; height: auto; }

.main-nav { display: flex; align-items: center; margin-right: auto; margin-left: 7%; padding-top: 7px; }
.main-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--brown);
    padding: 7px 14px;
    border-radius: 999px;
    transition: background .18s, color .18s;
}
.main-nav a:hover { color: var(--maroon); }
.main-nav a.is-active { background: var(--maroon); color: var(--white); }

.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    list-style: none;
    margin: 6px 0 0;
    padding: 8px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: .18s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; border-radius: 8px; }
.dropdown a:hover { background: var(--cream-2); }

.header-cta { margin-top: 7px; flex-shrink: 0; }
.nav-toggle, .main-nav .nav-cta-mobile { display: none; }

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    padding-top: 138px;
    padding-bottom: 112px;
    overflow: hidden;
    background: var(--cream);
}
.hero-media {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: calc(100% - 40px);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--cream) 0%, rgba(255, 249, 240, .6) 8%, rgba(255, 249, 240, 0) 20%);
}
.hero-content { position: relative; z-index: 2; width: min(1440px, 100%); padding-inline: 5%; }
.hero-title {
    position: relative;
    display: inline-block;
    font-family: var(--script);
    font-weight: 400;
    font-size: clamp(40px, 5.4vw, 70px);
    line-height: 1.05;
    letter-spacing: -.5px;
    margin-bottom: 30px;
}
.hero-title span { display: block; }
.hero-title .l1 { color: #3b1a12; }
.hero-title .l2 { color: var(--maroon); margin-left: .05em; }
.title-swash {
    position: absolute;
    right: -10px;
    bottom: -22px;
    width: 58%;
    height: 22px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 5;
    stroke-linecap: round;
}
.hero-text { max-width: 440px; font-size: 16px; color: var(--text); margin-bottom: 28px; }
.hero-wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 110px; z-index: 3; }
.hw-gold { fill: var(--gold); }
.hw-cream { fill: var(--cream); }

/* ---------------- Section ---------------- */
.section { position: relative; padding: 30px 0; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-title {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    color: var(--brown);
    line-height: 1.25;
}
.section-title em { font-style: normal; color: #b07a2a; }
.section-title .maroon { color: var(--maroon); }
.section-title.left { text-align: left; }
.with-lines { display: flex; align-items: center; justify-content: center; gap: 18px; }
.with-lines::before,
.with-lines::after {
    content: "";
    width: 70px;
    height: 3px;
    border-radius: 3px;
    background: var(--gold);
}
.orange-lines::before,
.orange-lines::after { background: var(--orange); width: 60px; }
.maroon-title { color: var(--maroon); font-size: clamp(22px, 2.3vw, 27px); }
.section-sub { font-size: 16px; color: var(--text); margin-top: 6px; }

.icon-circle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--maroon);
    color: var(--white);
    border: 3px solid var(--white);
    box-shadow: 0 3px 8px rgba(110, 18, 32, .25);
}
.icon-circle .icon { width: 19px; height: 19px; }
.icon-circle.lg { width: 48px; height: 48px; border: 0; }
.icon-circle.lg .icon { width: 25px; height: 25px; }

/* ---------------- Programs ---------------- */
.programs { padding-top: 10px; }
.program-grid { --cols: 5; --gap: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.program-card {
    position: relative;
    flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid #f3e3c8;
    overflow: hidden;
    padding-bottom: 20px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.program-card::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--maroon)); transform: scaleX(0); transition: transform .3s ease;
}
.program-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(110, 50, 20, .16); }
.program-card:hover::after { transform: scaleX(1); }
.program-img { width: 100%; aspect-ratio: 640 / 350; overflow: hidden; background: var(--cream-2); }
.program-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.program-card:hover .program-img img { transform: scale(1.06); }
.program-card .icon-circle { margin-top: -22px; position: relative; z-index: 1; width: 44px; height: 44px; box-shadow: 0 4px 12px rgba(110, 18, 32, .25); }
.program-card h3 { font-size: 15.5px; font-weight: 700; color: var(--maroon); margin: 12px 12px 6px; line-height: 1.3; }
.program-card p { font-size: 13px; line-height: 1.55; color: var(--muted); padding: 0 16px; }

/* ---------------- About ---------------- */
.about { padding: 34px 0 20px; }
.about-grid {
    display: grid;
    grid-template-columns: 40% 1fr 25%;
    gap: 28px;
    align-items: center;
    width: min(1440px, 100%);
    margin-inline: auto;
    padding-right: 2.4%;
    position: relative;
}
.about-grid::before {
    content: "";
    position: absolute;
    left: 30%;
    right: 0;
    top: -14px;
    bottom: -14px;
    background: linear-gradient(90deg, rgba(253, 241, 220, 0) 0%, rgba(253, 236, 205, .55) 40%, rgba(253, 241, 220, 0) 100%);
    z-index: -1;
}
.about-media { position: relative; }
.about-blob {
    width: 78%;
    aspect-ratio: 1.12;
    border-radius: 0 48% 48% 0 / 0 50% 52% 0;
    overflow: hidden;
    border: 5px solid var(--gold);
    border-left: 0;
    box-shadow: var(--shadow);
}
.about-blob img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
    position: absolute;
    right: 0;
    top: 16%;
    width: 44%;
    padding: 26px 14px 22px;
    background: var(--cream-3);
    border-radius: 55% 45% 50% 50% / 52% 48% 52% 48%;
    transform: rotate(-8deg);
    text-align: center;
    box-shadow: 0 6px 18px rgba(110, 50, 20, .12);
}
.about-badge span {
    display: block;
    font-family: var(--script);
    color: var(--maroon);
    font-size: clamp(18px, 2.1vw, 25px);
    line-height: 1.15;
}
.about-badge svg { width: 60%; height: 12px; margin: 4px auto 0; fill: none; stroke: var(--maroon); stroke-width: 2.2; stroke-linecap: round; }
.about-text .section-title { margin-bottom: 18px; font-size: clamp(22px, 2.2vw, 26px); }
.about-text p { font-size: 13.5px; line-height: 1.7; color: var(--text); margin-bottom: 16px; }

.vision-card {
    background: linear-gradient(160deg, #fdf0d9 0%, #fbe6c3 100%);
    border-radius: 22px 30px 26px 34px;
    padding: 24px 22px 26px;
    box-shadow: var(--shadow);
}
.vision-card h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; color: var(--brown); margin-bottom: 14px; }
.vision-card h3 .icon { width: 26px; height: 26px; color: var(--brown); stroke-width: 2.2; }
.vision-card p { font-size: 12px; line-height: 1.6; color: var(--text); }

/* ---------------- Mission ---------------- */
.mission { padding-top: 26px; }
.mission .section-title { margin-bottom: 22px; }
.mission-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.mission-card {
    background: var(--white);
    border: 1px solid #f3e3c8;
    border-radius: 12px;
    padding: 18px 10px 20px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(110, 50, 20, .07);
}
.mission-card .icon-circle { margin: 0 auto 10px; }
.mission-card h3 { font-size: 12.5px; font-weight: 600; color: var(--brown); line-height: 1.3; margin-bottom: 6px; }
.mission-card p { font-size: 11px; line-height: 1.45; color: var(--text); }

/* ---------------- Stats ---------------- */
.stats-wrap { padding: 24px 1% 10px; }
.stats-band {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr repeat(4, 1fr);
    align-items: center;
    width: min(1400px, 100%);
    margin-inline: auto;
    min-height: 98px;
    padding: 12px 34px 12px 24px;
    background: linear-gradient(180deg, #8f1d2d 0%, var(--maroon-dark) 100%);
    border-radius: 60px 50px 70px 40px / 50px 40px 60px 50px;
    color: var(--white);
    box-shadow: 0 10px 24px rgba(110, 18, 32, .25);
}
.stats-script { font-family: var(--script); font-size: clamp(20px, 2.3vw, 28px); line-height: 1.05; text-align: center; transform: rotate(-6deg); }
.stats-script span { display: inline-block; margin-left: 12px; }
.stat { display: flex; align-items: center; gap: 14px; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .35); }
.stat-icon { width: 40px; height: 40px; color: var(--white); }
.stat strong { display: block; font-size: clamp(18px, 2vw, 24px); font-weight: 700; line-height: 1.1; }
.stat strong.txt { font-weight: 600; }
.stat small { display: block; font-size: 11px; line-height: 1.25; opacity: .95; }

/* ---------------- CTA ---------------- */
.cta {
    position: relative;
    text-align: center;
    padding: 34px 0 70px;
    background: radial-gradient(ellipse at 85% 70%, rgba(247, 205, 110, .35) 0%, rgba(255, 249, 240, 0) 45%);
    overflow: hidden;
}
.cta h2 { color: var(--maroon); font-size: clamp(21px, 2.3vw, 25px); font-weight: 600; margin-bottom: 8px; }
.cta p { font-size: 15.5px; margin-bottom: 18px; }
.cta-inner { position: relative; z-index: 2; }
.cta-leaves { position: absolute; left: 0; bottom: 30px; width: 80px; fill: var(--gold); }
.cta-leaves .stem { fill: none; stroke: var(--gold); stroke-width: 2.5; }
.cta-mosque { position: absolute; right: 0; bottom: 24px; width: 28%; max-width: 420px; }
.cta-mosque .sun { fill: #fbd98c; opacity: .75; }
.cta-mosque .far { fill: #f2c58a; opacity: .7; }
.cta-mosque .near { fill: #e9ad6b; opacity: .8; }
.cta-mosque .spire { stroke: #e9ad6b; stroke-width: 2; fill: none; }
.cta-mosque .bird { fill: none; stroke: #b0794a; stroke-width: 1.4; }

/* ---------------- Footer ---------------- */
.site-footer { position: relative; background: var(--maroon-dark); color: var(--white); padding: 40px 0 34px; margin-top: 30px; }
.footer-wave { position: absolute; left: 0; top: -68px; width: 100%; height: 90px; }
.fw-gold { fill: var(--gold); }
.fw-maroon { fill: var(--maroon-dark); }
.footer-inner { position: relative; display: grid; grid-template-columns: 220px 1fr 220px; align-items: center; gap: 20px; }
.footer-brand { display: inline-block; justify-self: start; background: var(--cream); padding: 10px 16px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: transform .2s; }
.footer-brand:hover { transform: translateY(-2px); }
.footer-brand img { width: 170px; height: auto; }
.footer-center { text-align: center; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.footer-nav a { font-size: 13px; padding: 0 14px; border-left: 1px solid rgba(255, 255, 255, .55); }
.footer-nav a:first-child { border-left: 0; text-decoration: underline; text-underline-offset: 4px; }
.footer-nav a:hover { color: var(--gold-soft); }
.copyright { font-size: 11.5px; opacity: .9; }
.socials { display: flex; justify-content: flex-end; gap: 12px; }
.socials a {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    color: var(--maroon-dark);
    transition: transform .18s, background .18s;
}
.socials a:hover { transform: translateY(-2px); background: var(--gold-soft); }
.socials .icon { width: 18px; height: 18px; }

/* ==========================================================
   Halaman Donasi
   ========================================================== */
.page-donasi .site-header { position: relative; }
.page-donasi .header-inner::before { width: 100%; left: 0; border-bottom-right-radius: 0; height: 100%; top: 0; }
.page-donasi .main-nav,
.page-donasi .header-cta { margin-top: 0; }
.page-donasi .header-inner { padding-bottom: 12px; }

.donate-section { padding: 46px 0 60px; }
.donate-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; grid-template-areas: "form summary"; }
.donate-grid > * { min-width: 0; }
.panel { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 28px; }
.panel h1 { font-size: 26px; color: var(--maroon); margin-bottom: 4px; }
.panel .lead { color: var(--muted); margin-bottom: 22px; font-size: 14.5px; }
.field { margin-bottom: 16px; }
.field > label, .field-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--brown); }
.field > label small { font-weight: 400; color: var(--muted); }
.input, select.input, textarea.input {
    width: 100%;
    font: inherit;
    font-size: 15px;
    padding: 13px 15px;
    border: 1.5px solid #ead8bd;
    border-radius: 12px;
    background: #fffdf9;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #b9a596; }
.input:focus { outline: 0; border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(138, 28, 44, .12); background: var(--white); }
textarea.input { min-height: 96px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.error { color: #b3261e; font-size: 13px; margin-top: 6px; }
.alert { padding: 12px 14px; border-radius: 12px; background: #fdecea; color: #8a1c1c; font-size: 14px; margin-bottom: 18px; }
.alert-info { background: #fff4dc; color: #6b4a10; border: 1px solid #f3d9a4; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-block { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }
.secure-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.secure-note .icon { color: var(--maroon); width: 18px; height: 18px; flex-shrink: 0; }

/* ----- Form donasi ----- */
.donate-form { grid-area: form; padding: 32px 36px; }
.df-head { margin-bottom: 6px; }
.df-head h1 { font-size: 28px; }
.df-step { border: 0; margin: 0; padding: 22px 0 24px; border-top: 1px dashed #ecd9bb; min-width: 0; }
.df-step legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font-size: 16.5px; font-weight: 700; color: var(--brown); float: left; width: 100%; }
.df-step legend + * { clear: both; }
.df-step legend small { font-weight: 400; color: var(--muted); font-size: 13px; }
.df-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--maroon); color: var(--white); font-size: 14px; flex-shrink: 0; }
.df-sub { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.df-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.df-hint-phone { display: flex; gap: 6px; align-items: flex-start; margin: -4px 0 14px; }
.df-hint-phone .icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--maroon); margin-top: 2px; }

.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.chip { position: relative; }
.chip input, .channel input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    position: relative; display: grid; place-items: center; min-height: 58px; padding: 10px 8px;
    border: 1.5px solid #ead8bd; border-radius: 14px; background: #fffdf9;
    font-weight: 700; font-size: 16px; color: var(--brown); cursor: pointer; text-align: center; white-space: nowrap;
    transition: border-color .15s, background .15s, color .15s, transform .15s, box-shadow .15s;
}
.chip span:hover { border-color: var(--maroon); transform: translateY(-1px); }
.chip input:checked + span { background: var(--maroon); border-color: var(--maroon); color: var(--white); box-shadow: 0 8px 18px rgba(138, 28, 44, .25); }
.chip input:focus-visible + span, .channel input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.chip-badge { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 2px 9px; border-radius: 99px; background: var(--gold); color: var(--maroon-deep); }
.amount-wrap { position: relative; }
.amount-wrap::before { content: "Rp"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: 18px; color: var(--maroon); }
.amount-wrap .input { padding: 14px 16px 14px 52px; font-weight: 700; font-size: 22px; color: var(--brown); letter-spacing: .02em; }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 12px 14px; border-radius: 12px; background: var(--cream); border: 1px solid #f1e2c9; }
.switch input[type="checkbox"] { position: absolute; opacity: 0; }
.switch-track { position: relative; flex-shrink: 0; width: 44px; height: 26px; border-radius: 99px; background: #e3d3bd; transition: background .2s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked ~ .switch-track { background: var(--maroon); }
.switch input:checked ~ .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible ~ .switch-track { outline: 3px solid var(--gold); outline-offset: 2px; }
.switch-text { font-size: 14px; font-weight: 600; color: var(--brown); line-height: 1.35; }
.switch-text small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }

.channel-group { margin-bottom: 16px; }
.channel-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 8px; }
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.channel span {
    position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 40px 10px 14px;
    border: 1.5px solid #ead8bd; border-radius: 14px; background: #fffdf9; cursor: pointer; transition: .15s;
}
.channel span:hover { border-color: var(--maroon); }
.channel b { font-size: 13.5px; font-weight: 600; color: var(--brown); line-height: 1.3; }
.channel-fee { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.channel img { width: 60px; height: 26px; object-fit: contain; flex-shrink: 0; }
.channel-check { position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid #e0cdb2; }
.channel input:checked + span { border-color: var(--maroon); background: #fff6f3; box-shadow: 0 0 0 3px rgba(138, 28, 44, .1); }
.channel input:checked + span .channel-check { border-color: var(--maroon); background: var(--maroon); box-shadow: inset 0 0 0 4px #fff6f3; }

.df-submit { display: flex; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px dashed #ecd9bb; }
.df-total { flex: 1; min-width: 0; }
.df-total small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.df-total strong { font-size: 24px; color: var(--maroon); white-space: nowrap; }
.df-submit .btn { flex-shrink: 0; padding: 15px 30px; font-size: 16px; }
.df-submit .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ----- Ringkasan campaign ----- */
.donate-summary { grid-area: summary; position: sticky; top: 20px; padding: 24px; }
.ds-label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 10px; }
.ds-campaign img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--cream-2); }
.ds-info h2 { font-size: 18px; line-height: 1.35; color: var(--brown); margin: 14px 0 10px; }
.ds-progress progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 99px; overflow: hidden; background: var(--cream-2); appearance: none; -webkit-appearance: none; }
.ds-progress progress::-webkit-progress-bar { background: var(--cream-2); border-radius: 99px; }
.ds-progress progress::-webkit-progress-value { background: linear-gradient(90deg, var(--gold), var(--maroon)); border-radius: 99px; }
.ds-progress progress::-moz-progress-bar { background: linear-gradient(90deg, var(--gold), var(--maroon)); border-radius: 99px; }
.ds-progress p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.ds-progress strong { color: var(--maroon); }
.ds-excerpt { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.ds-change { display: block; margin-top: 16px; }
.ds-change span { display: block; font-size: 12.5px; font-weight: 600; color: var(--brown); margin-bottom: 6px; }
.ds-change .input { padding: 10px 12px; font-size: 14px; }
.ds-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--cream-2); }
.ds-total span { font-size: 13px; color: var(--muted); }
.ds-total strong { font-size: 22px; color: var(--maroon); }
.ds-trust { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ds-trust li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ds-trust .icon { width: 16px; height: 16px; color: var(--maroon); flex-shrink: 0; }

@media (max-width: 900px) {
    .donate-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "summary" "form"; gap: 14px; }
    .page-donate .donate-section { padding: 14px 0 32px; }
    .page-donate .donate-section .container { width: calc(100% - 32px); }

    /* Ringkasan ringkas: foto kecil di kiri */
    .donate-summary { position: static; padding: 16px; border-radius: 16px; }
    .ds-label { margin-bottom: 8px; }
    .ds-campaign { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; }
    .ds-campaign img { border-radius: 10px; aspect-ratio: 4 / 3; }
    .ds-info h2 { font-size: 15px; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .ds-progress p { font-size: 11.5px; }
    .ds-excerpt, .ds-total, .ds-trust { display: none; }
    .ds-change { margin-top: 12px; }

    .donate-form { padding: 20px 18px 0; border-radius: 16px; }
    .df-head h1 { font-size: 22px; }
    .df-head .lead { font-size: 13.5px; margin-bottom: 14px; }
    .df-step { padding: 18px 0 20px; }
    .df-step legend { font-size: 15.5px; }
    .presets { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .chip span { min-height: 54px; font-size: 15.5px; }
    .row-2 { grid-template-columns: 1fr; gap: 0; }
    .channels { grid-template-columns: minmax(0, 1fr); }

    /* Total + tombol bayar menempel di bawah layar */
    .df-submit {
        position: sticky; bottom: 0; z-index: 20;
        margin: 0 -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
        background: var(--white); border-top: 1px solid #f1e2c9; box-shadow: 0 -8px 20px rgba(110, 50, 20, .1);
        border-radius: 0 0 16px 16px;
    }
    .df-total strong { font-size: 20px; }
    .df-submit .btn { padding: 13px 18px; font-size: 15px; }
    .donate-form .secure-note { margin: 0 -18px; padding: 12px 18px 18px; }
}
@media (max-width: 360px) {
    .df-submit .btn { padding: 12px 14px; font-size: 14px; }
    .chip span { font-size: 14.5px; }
}

.status-card { max-width: 560px; margin: 0 auto; text-align: center; }
.status-badge { display: inline-block; padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; margin-bottom: 14px; }
.status-PAID { background: #e5f6ea; color: #1d7a3a; }
.status-UNPAID { background: #fff4d6; color: #8a5a00; }
.status-EXPIRED, .status-FAILED, .status-REFUND { background: #fdecea; color: #a1261e; }
.status-card .big-amount { font-size: 32px; font-weight: 700; color: var(--maroon); margin: 8px 0 14px; }
.status-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: left; font-size: 14px; margin: 18px 0 22px; }
.status-card dt { color: var(--muted); }
.status-card dd { margin: 0; font-weight: 500; word-break: break-all; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
    .program-grid { --cols: 3; }
    .mission-grid { grid-template-columns: repeat(3, 1fr); }
    .about-grid { grid-template-columns: 45% 1fr; padding-inline: 0 24px; }
    .vision-card { grid-column: 1 / -1; margin-inline: 24px; }
    .stats-band { grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 24px; border-radius: 34px; }
    .stats-script { grid-column: 1 / -1; transform: none; }
    .stat:nth-of-type(odd) { border-left: 0; }
}

@media (max-width: 820px) {
    .header-inner { padding: 10px 20px; background: rgba(255, 252, 247, .97); border-bottom: 2px solid var(--gold); }
    .header-inner::before { display: none; }
    .brand img { width: 140px; }
    .header-cta { display: none; }
    .nav-toggle {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 10px;
        background: var(--maroon);
        color: var(--white);
        cursor: pointer;
    }
    .nav-toggle .icon { width: 22px; height: 22px; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 20px 20px;
        background: var(--white);
        box-shadow: var(--shadow);
        display: none;
    }
    .main-nav.is-open { display: flex; }
    .main-nav > ul { flex-direction: column; }
    .main-nav a { padding: 10px 12px; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; margin: 0; }
    .main-nav .nav-cta-mobile { display: inline-flex; justify-content: center; }

    .hero { padding-top: 96px; padding-bottom: 90px; min-height: 0; }
    .hero-media { position: relative; width: 100%; height: 300px; }
    .hero-media::after { background: linear-gradient(0deg, var(--cream) 0%, rgba(255, 249, 240, 0) 30%); }
    .hero-content { margin-top: -20px; padding-inline: 24px; }
    .hero-wave { height: 60px; }

    .about-grid { grid-template-columns: 1fr; padding: 0; }
    .about-grid::before { display: none; }
    .about-media { width: min(520px, 100%); }
    .about-text { padding: 0 24px; }
    .vision-card { margin: 0 24px; }

    .donate-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .footer-brand { justify-self: center; }
    .socials { justify-content: center; }
    .cta-mosque { width: 45%; opacity: .55; }
    .hide-sm { display: none; }
}

@media (max-width: 600px) {
    .program-grid { --cols: 2; --gap: 12px; }
    .program-card h3 { font-size: 14.5px; margin: 10px 8px 6px; }
    .program-card p { font-size: 12.5px; padding: 0 10px; }
    .mission-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-band { grid-template-columns: 1fr; }
    .stat { border-left: 0; padding-left: 0; justify-content: center; }
    .with-lines { gap: 10px; }
    .with-lines::before, .with-lines::after { width: 24px; }
    .section-title { font-size: 22px; }
    .row-2, .channels { grid-template-columns: 1fr; }
    .panel { padding: 20px; }
    .footer-nav a { padding: 4px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Perbaikan header: bidang putih penuh ke kiri, garis tidak memotong menu ===== */
.header-inner::before {
    left: calc((100% - 100vw) / 2);
    width: calc(74% + (100vw - 100%) / 2);
    height: 96px;
    border-bottom-right-radius: 620px 100%;
}
/* latar putih logo non-transparan melebur dengan krem */
.brand img { mix-blend-mode: multiply; }
.page-donasi .header-inner::before {
    left: calc((100% - 100vw) / 2);
    width: 100vw;
    height: 100%;
    border-bottom-right-radius: 0;
}

/* ===== Halaman detail campaign ===== */
.campaign-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px 28px; align-items: start;
    grid-template-areas: "head side" "body side";
}
.campaign-grid > * { min-width: 0; }
.campaign-head { grid-area: head; }
.campaign-body { grid-area: body; }
.campaign-side { grid-area: side; display: grid; gap: 20px; position: sticky; top: 20px; }

.campaign-cover-wrap { position: relative; margin-bottom: 14px; }
.campaign-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--cream-2); }
.cover-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 99px; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; margin: 0 0 18px; padding-bottom: 4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery-thumb { flex: 0 0 auto; width: 110px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .75; transition: .15s; scroll-snap-align: start; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover, .gallery-thumb.is-active { opacity: 1; border-color: var(--maroon); }
.gallery-thumb:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.campaign-head h1 { font-size: 28px; line-height: 1.3; margin-bottom: 8px; overflow-wrap: anywhere; }
.campaign-head .lead { margin-bottom: 0; }

.campaign-body-title { font-size: 20px; color: var(--maroon); margin-bottom: 12px; }
.campaign-story { font-size: 15px; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.campaign-story h1, .campaign-story h2, .campaign-story h3 { color: var(--brown); margin: 22px 0 8px; font-size: 19px; line-height: 1.35; }
.campaign-story h1 { font-size: 22px; color: var(--maroon); }
.campaign-story > :first-child { margin-top: 0; }
.campaign-story p, .campaign-story ul, .campaign-story ol { margin: 0 0 14px; }
.campaign-story ul, .campaign-story ol { padding-left: 22px; }
.campaign-story img { border-radius: 10px; margin: 10px 0; height: auto; }
.campaign-story table, .campaign-story pre { display: block; max-width: 100%; overflow-x: auto; }
.campaign-story a { color: var(--maroon); text-decoration: underline; }
/* Cerita panjang dilipat (kelas ditambahkan js/app.js) */
.campaign-story.is-collapsed { max-height: 420px; overflow: hidden; position: relative; }
.campaign-story.is-collapsed::after {
    content: ""; position: absolute; inset: auto 0 0; height: 120px;
    background: linear-gradient(rgba(255, 255, 255, 0), var(--white));
}
.story-toggle { margin-top: 14px; }

.collected-label { font-size: 13px; color: var(--muted); }
.collected { font-size: 30px; line-height: 1.2; font-weight: 700; color: var(--maroon); margin: 2px 0 14px; }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.progress-head strong { color: var(--brown); }
.progress-pct { flex-shrink: 0; background: var(--maroon); color: var(--white); font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 99px; }
.progress progress, .donate-bar progress { display: block; width: 100%; height: 10px; border: 0; border-radius: 99px; overflow: hidden; background: var(--cream-2); appearance: none; -webkit-appearance: none; }
.progress progress::-webkit-progress-bar, .donate-bar progress::-webkit-progress-bar { background: var(--cream-2); border-radius: 99px; }
.progress progress::-webkit-progress-value, .donate-bar progress::-webkit-progress-value { background: linear-gradient(90deg, var(--gold), var(--maroon)); border-radius: 99px; }
.progress progress::-moz-progress-bar, .donate-bar progress::-moz-progress-bar { background: linear-gradient(90deg, var(--gold), var(--maroon)); border-radius: 99px; }

.stat-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 18px 0 14px; border: 1px solid #f1e2c9; border-radius: 12px; overflow: hidden; }
.stat-row > div { padding: 10px 8px; text-align: center; background: #fffdf9; }
.stat-row > div + div { border-left: 1px solid #f1e2c9; }
.stat-row dt { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.stat-row dt .icon { display: block; width: 16px; height: 16px; margin: 0 auto 3px; color: var(--maroon); }
.stat-row dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; color: var(--brown); }
.stat-row dd small { font-size: 12px; font-weight: 500; color: var(--muted); }
.item-price, .deadline { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 8px; }
.item-price { color: var(--muted); }
.item-price .icon, .deadline .icon { width: 15px; height: 15px; flex-shrink: 0; }
.item-price .icon { color: var(--maroon); }
.deadline { color: var(--maroon); font-weight: 500; }
.deadline.is-ended { color: var(--muted); }
.stats-actions { display: grid; gap: 10px; margin-top: 16px; }
.stats-actions .btn-block { margin: 0; }

.donors h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--brown); margin-bottom: 14px; }
.donors-count { font-size: 12px; font-weight: 600; background: var(--cream-2); color: var(--maroon); padding: 2px 9px; border-radius: 99px; }
.donor { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid #f3e3c8; }
.donor:first-of-type { border-top: 0; }
.donor-avatar { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cream-2); color: var(--maroon); }
.donor strong { display: block; font-size: 14px; }
.donor small { color: var(--muted); font-size: 12px; }
.donor p { font-size: 13px; font-style: italic; margin-top: 4px; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: 14px; }

/* Laporan pertanggungjawaban */
.report-panel h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--brown); margin-bottom: 10px; }
.report-panel h2 .icon { width: 20px; height: 20px; color: var(--maroon); }
.report-panel .muted { margin-bottom: 12px; }
.report-form { display: grid; gap: 10px; }
.report-input { display: flex; align-items: center; gap: 10px; }
.report-input span { font-weight: 700; letter-spacing: .12em; color: #b9a596; white-space: nowrap; }
.report-input .input { font-size: 22px; font-weight: 700; letter-spacing: .4em; text-align: center; max-width: 150px; }
.report-ok { padding: 10px 12px; border-radius: 10px; background: #e7f6ec; color: #1f7a43; font-size: 13.5px; margin-bottom: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bar donasi melayang: hanya mobile */
.donate-bar { display: none; }

@media (max-width: 820px) {
    .campaign-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 16px; }
    /* Anak .campaign-side jadi item grid agar urutannya: foto → ringkasan → donatur → cerita → laporan */
    .campaign-side { display: contents; }
    .campaign-head { order: 1; grid-area: auto; }
    .campaign-stats { order: 2; }
    .donors { order: 3; }
    .campaign-body { order: 4; grid-area: auto; }
    .report-panel { order: 5; }

    .page-program .donate-section .container { width: calc(100% - 32px); }
    .page-program .donate-section { padding: 16px 0 calc(96px + env(safe-area-inset-bottom)); }
    .page-program .panel { padding: 18px; border-radius: 16px; }
    .campaign-head { padding: 0 !important; overflow: hidden; }
    .campaign-head .campaign-cover-wrap { margin: 0; }
    .campaign-head .campaign-cover { border-radius: 0; }
    .campaign-head .gallery-thumbs { padding: 12px 18px 4px; margin: 0; gap: 8px; }
    .campaign-head .gallery-thumb { width: 84px; border-radius: 8px; }
    .campaign-head h1 { font-size: 21px; padding: 14px 18px 0; margin-bottom: 6px; }
    .campaign-head .lead { padding: 0 18px 18px; font-size: 14px; }
    .collected { font-size: 26px; }
    .stat-row dd { font-size: 16px; }
    .campaign-body-title { font-size: 18px; }
    .campaign-story { font-size: 14.5px; }
    .campaign-story h1 { font-size: 19px; }
    .campaign-story h2, .campaign-story h3 { font-size: 17px; }

    .donate-bar {
        display: flex; align-items: center; gap: 14px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--white); box-shadow: 0 -6px 20px rgba(110, 50, 20, .15);
        transition: transform .25s ease;
    }
    .donate-bar.is-hidden { transform: translateY(110%); }
    .donate-bar-info { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; }
    .donate-bar-info strong { font-size: 16px; color: var(--maroon); }
    .donate-bar-info progress { height: 7px; }
    .donate-bar-info small { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .donate-bar .btn { flex-shrink: 0; padding: 12px 22px; }
}
@media (prefers-reduced-motion: reduce) { .donate-bar { transition: none; } }

/* ===== Kartu campaign (gaya Kitabisa) ===== */
.campaigns { padding-top: 34px; }
.cc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cc {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cc:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(110, 50, 20, .16); }
.cc-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream-2); }
.cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cc-badge { position: absolute; left: 12px; top: 12px; background: var(--maroon); color: var(--white); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.cc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.cc-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--brown);
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cc-org { font-size: 12.5px; color: var(--muted); margin: 6px 0 12px; display: flex; align-items: center; gap: 6px; }
.cc-verified { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #1f9d55; color: #fff; font-size: 9px; font-weight: 700; }
.cc-bar { display: block; width: 100%; height: 6px; margin-top: auto; border: 0; border-radius: 99px; overflow: hidden; background: var(--cream-2); appearance: none; -webkit-appearance: none; }
.cc-bar::-webkit-progress-bar { background: var(--cream-2); border-radius: 99px; }
.cc-bar::-webkit-progress-value { background: linear-gradient(90deg, var(--gold), var(--maroon)); border-radius: 99px; }
.cc-bar::-moz-progress-bar { background: linear-gradient(90deg, var(--gold), var(--maroon)); border-radius: 99px; }
.cc-meta { display: flex; justify-content: space-between; margin-top: 10px; }
.cc-org + .cc-meta { margin-top: auto; }
.cc-meta small { display: block; font-size: 11.5px; color: var(--muted); }
.cc-meta strong { font-size: 15px; color: var(--maroon); }
.cc-meta .right { text-align: right; }
.cc-meta .right strong { color: var(--brown); }
.cc-foot { font-size: 12px; color: var(--muted); margin-top: 8px; }
.cc-more { margin-top: 24px; }
.center { text-align: center; }
.btn-outline { background: transparent; color: var(--maroon); border: 1.5px solid var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: var(--white); }
.pager { margin-top: 28px; display: flex; justify-content: center; }
.pager nav ul, .pager ul.pagination { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pager a, .pager span { display: inline-block; padding: 8px 16px; border-radius: 99px; border: 1.5px solid #ead8bd; font-size: 14px; background: var(--white); }
.pager a:hover { border-color: var(--maroon); color: var(--maroon); }
.pager span[aria-disabled] { opacity: .45; }
@media (max-width: 980px) { .cc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cc-grid { grid-template-columns: 1fr; } }

/* Header lebih rapat di laptop kecil (menu bertambah "Galang Dana") */
@media (max-width: 1180px) and (min-width: 821px) {
    .brand img { width: 150px; }
    .main-nav { margin-left: 3%; }
    .main-nav a { padding: 7px 10px; font-size: 13px; }
    .header-cta { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 960px) and (min-width: 821px) {
    .brand img { width: 128px; }
    .main-nav { margin-left: 2%; }
    .main-nav a { padding: 6px 7px; font-size: 12.5px; }
    .header-cta { padding: 7px 12px; font-size: 12.5px; }
}
@media (max-width: 880px) and (min-width: 821px) {
    .header-cta { display: none; } /* CTA tetap ada di hero */
}

/* ================= CAMPAIGN PILIHAN (landing) ================= */
.featured { padding-top: 40px; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; max-width: 1180px; margin-inline: auto; }
.featured-count-1 { grid-template-columns: minmax(0, 560px); justify-content: center; }
.featured-count-2 { grid-template-columns: repeat(2, minmax(0, 480px)); justify-content: center; }
.fc {
    display: flex; flex-direction: column; background: var(--white); border-radius: 18px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(110, 50, 20, .14); border: 1px solid #f1e2c9; transition: transform .2s, box-shadow .2s;
}
.fc:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(110, 50, 20, .2); }
.fc-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.fc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.fc:hover .fc-img img { transform: scale(1.04); }
.fc-rank {
    position: absolute; left: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: var(--gold); color: var(--maroon-deep); font-weight: 700; font-size: 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.fc-photos { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 99px; }
.fc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.fc-title { font-size: 21px; line-height: 1.3; }
.fc-title a { color: var(--brown); }
.fc-title a:hover { color: var(--maroon); }
.fc-excerpt { color: var(--muted); font-size: 14.5px; }
.fc-stats { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; }
.fc-stats small { display: block; font-size: 12px; color: var(--muted); }
.fc-stats strong { font-size: 18px; color: var(--maroon); }
.fc-stats .right { text-align: right; }
.fc-stats .right strong { color: var(--brown); font-size: 15px; }
.fc .cc-bar { margin-top: 0; height: 8px; }
.fc-actions { display: flex; gap: 10px; margin-top: 4px; }
.fc-actions .btn { flex: 1; justify-content: center; }
@media (max-width: 980px) {
    .featured-grid, .featured-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .featured-count-3 .fc:last-child { grid-column: 1 / -1; max-width: 560px; justify-self: center; width: 100%; }
}
@media (max-width: 600px) {
    .featured-grid, .featured-count-1, .featured-count-2 { grid-template-columns: minmax(0, 1fr); }
    .fc-title { font-size: 19px; }
}

/* ================= ARTIKEL ================= */
.ac-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -6px 0 24px; }
.ac-filter a { padding: 7px 16px; border-radius: 99px; border: 1.5px solid #ead8bd; background: var(--white); font-size: 13.5px; font-weight: 600; color: var(--brown); }
.ac-filter a:hover { border-color: var(--maroon); color: var(--maroon); }
.ac-filter a.is-active { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.ac-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ac { display: flex; flex-direction: column; background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #f3e3c8; transition: transform .2s, box-shadow .2s; }
.ac:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(110, 50, 20, .15); }
.ac-img { display: block; aspect-ratio: 1.91 / 1; overflow: hidden; background: var(--cream-2); }
.ac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ac:hover .ac-img img { transform: scale(1.04); }
.ac-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.ac-meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ac-cat { font-weight: 700; color: var(--maroon); background: var(--cream-2); padding: 2px 9px; border-radius: 99px; }
.ac-title { font-size: 17px; line-height: 1.4; }
.ac-title a { color: var(--brown); }
.ac-title a:hover { color: var(--maroon); }
.ac-excerpt { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.article-wrap { max-width: 860px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a:hover { color: var(--maroon); }
.article { padding: 36px 44px; }
.article-head h1 { font-size: 32px; line-height: 1.3; color: var(--brown); margin-bottom: 10px; overflow-wrap: anywhere; }
.article-meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.article-lead { font-size: 17px; line-height: 1.6; color: var(--text); margin-bottom: 22px; }
.article-cover { width: 100%; height: auto; aspect-ratio: 1.91 / 1; object-fit: cover; border-radius: 14px; margin-bottom: 26px; background: var(--cream-2); }
.article-body { font-size: 16.5px; line-height: 1.85; max-width: 70ch; margin-inline: auto; }
.article-body h2 { font-size: 23px; color: var(--maroon); margin: 30px 0 10px; scroll-margin-top: 20px; }
.article-body h3 { font-size: 19px; margin: 24px 0 8px; scroll-margin-top: 20px; }
.article-body blockquote { margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--gold); background: var(--cream); border-radius: 0 10px 10px 0; font-style: italic; }
.article-body img { display: block; width: 100%; height: auto; border-radius: 12px; margin: 18px 0; }
.article-body .heading-permalink { display: none; }
.article-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; padding-top: 20px; border-top: 1px dashed #ecd9bb; font-size: 14px; font-weight: 600; color: var(--brown); }
.article-foot .btn .icon { width: 16px; height: 16px; }
.article-cta { margin-top: 22px; text-align: center; background: linear-gradient(135deg, var(--maroon), var(--maroon-deep)); color: var(--white); }
.article-cta h2 { font-size: 22px; margin-bottom: 6px; }
.article-cta p { opacity: .9; margin-bottom: 16px; }
.article-cta .btn-primary { background: var(--gold); color: var(--maroon-deep); }
.article-related { margin-top: 36px; }
.article-related h2 { font-size: 21px; color: var(--brown); margin-bottom: 16px; }
.article-related .ac-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 980px) { .ac-grid, .article-related .ac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .page-articles .donate-section .container, .page-article .donate-section .container { width: calc(100% - 32px); }
    .ac-grid, .article-related .ac-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .article { padding: 22px 18px; }
    .article-head h1 { font-size: 24px; }
    .article-lead { font-size: 15.5px; }
    .article-body { font-size: 15.5px; line-height: 1.8; }
    .article-body h2 { font-size: 20px; }
    .article-cover { border-radius: 10px; margin-bottom: 18px; }
}
