/* Dipindah dari index/public/donasi.php */
    /* ══════════════════════════════════════════════
       3e. STYLE — DETAIL DONASI
       ══════════════════════════════════════════════ */

    /* -- Utility: heading tersembunyi visual tapi tetap terbaca screen reader -- */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    /* -- Wrapper <section> generik, spacing antar section -- */
    .don-section {
        margin-bottom: 0.5rem;
    }
    .don-section:last-child {
        margin-bottom: 0;
    }

    /* -- Container utama -- */
    .don-detail-container {
        width: 100%;
        padding: 1.5625rem 1.25rem;
        border-radius: 1.25rem;
        background: var(--g-white-75);
        box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.15);
    }

    /* -- Breadcrumb -- */
    .breadcrumb {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.75rem;
        color: #888;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }
    .breadcrumb a {
        color: var(--g-green-teal);
        text-decoration: none;
        font-weight: 600;
    }
    .breadcrumb a:hover { text-decoration: underline; }
    .breadcrumb .sep { color: #bbb; }
    .breadcrumb .current {
        color: #555;
        font-weight: 600;
        max-width: 11.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* -- Judul, gambar, excerpt program -- */
    .don-detail-title {
        font-size: 1.2rem;
        font-weight: 800;
        color: var(--g-green-dark);
        margin: 0 0 0.5rem;
        line-height: 1.4;
    }

    .don-detail-image {
        width: 100%;
        height: auto;
        border-radius: 0.875rem;
        margin: 0.5rem 0 1rem;
        display: block;
        object-fit: contain;
    }

    .don-detail-excerpt {
        font-size: 0.88rem;
        color: #555;
        line-height: 1.7;
        margin: 0 0 0.375rem;
        white-space: pre-line;

        max-height: 4.6rem; /* ~3 baris saat collapsed */
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .don-detail-excerpt.is-expanded {
        max-height: 62.5rem; /* cukup besar agar full text muat saat expand */
    }
    .don-detail-excerpt-toggle {
        display: none;
        align-items: center;
        gap: 0.25rem;
        background: none;
        border: none;
        padding: 0;
        margin: 0 0 1rem;
        font-family: var(--g-font);
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--g-green-teal);
        cursor: pointer;
    }
    .don-detail-excerpt-toggle:hover {
        text-decoration: underline;
    }
    .don-detail-excerpt-toggle.is-visible {
        display: inline-flex;
    }

    /* -- Progress bar besar -- */
    .don-detail-progress {
        margin: 1rem 0 1.5rem;
    }
    .don-detail-progress-track {
        width: 100%;
        height: 0.75rem;
        border-radius: 999px;
        background: rgba(36, 94, 60, 0.1);
        overflow: hidden;
        margin-bottom: 0.625rem;
    }
    .don-detail-progress-fill {
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--g-green-teal), var(--g-green-dark));
        transition: width 0.6s ease;
    }
    .don-detail-progress-info {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        font-size: 0.85rem;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .don-detail-collected {
        font-weight: 700;
        color: var(--g-green-dark);
        font-size: 1rem;
    }
    .don-detail-collected small {
        font-weight: 500;
        color: #999;
        font-size: 0.85rem;
    }
    .don-detail-percent {
        font-weight: 700;
        color: var(--g-green-teal);
        font-size: 1rem;
    }
    .don-detail-donors {
        color: #777;
        font-size: 0.82rem;
        margin: 0.25rem 0 0;
    }
    .don-detail-donors i {
        color: var(--g-green-teal);
    }

    /* -- Judul bagian generik (garis hijau tebal di atas teks) -- */
    .don-section-title {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        color: var(--g-green-dark);
        text-align: center;
        text-transform: uppercase;
        font-size: 1.05rem;
        font-weight: 800;
        letter-spacing: 0.03rem;
        padding-top: 0.9375rem;
        margin: 1.25rem 0 0.875rem;
    }
    .don-section-title::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        border-radius: 3px;
        background: var(--g-green-dark);
    }
    .don-section-title .don-section-badge {
        background: var(--g-green-dark);
        color: #fff;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 0.0625rem 0.5rem;
        border-radius: 1.25rem;
    }

    /* -- Laporan Penggunaan -- */
    .don-detail-laporan {
        margin: 0 0 0.75rem;
        padding: 1rem 0.875rem;
        background: #f8f8f6;
        border-radius: 0.875rem;
        border-left: 0.1875rem solid var(--g-green-teal);
    }
    .don-detail-laporan p {
        font-size: 0.84rem;
        color: #555;
        line-height: 1.7;
        margin: 0;
    }

    /* -- Daftar Donatur -- */
    .don-detail-donatur {
        margin: 0 0 1.25rem;
    }
    /* Daftar donatur */
    #donDonaturList {
        max-height: 18.75rem;
        overflow-y: auto;
    }
    .don-detail-donatur-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 0.0625rem solid rgba(0,0,0,0.05);
        font-size: 0.78rem;
    }
    .don-detail-donatur-item:last-child {
        border-bottom: none;
    }
    .don-detail-donatur-name {
        font-weight: 600;
        color: #333;
    }
    .don-badge-pending {
        display: inline-block;
        background: #f5a623;
        color: #fff;
        font-size: 0.62rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02rem;
        padding: 0.09375rem 0.4375rem;
        border-radius: 999px;
        margin-left: 0.4375rem;
        vertical-align: middle;
    }
    .don-detail-donatur-date {
        color: #999;
        font-size: 0.7rem;
    }
    .don-detail-donatur-nominal {
        font-weight: 700;
        color: var(--g-green-dark);
    }
    .don-detail-donatur-empty {
        font-size: 0.8rem;
        color: #aaa;
        text-align: center;
        padding: 0.75rem 0;
    }
    .don-detail-donatur-thanks {
        font-size: 0.78rem;
        color: var(--g-green-teal);
        text-align: center;
        margin: 0 0 0.5rem;
        line-height: 1.5;
    }
    .don-data-notice {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.375rem;
        text-align: center;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--g-green-dark);
        background: rgba(36, 94, 60, 0.08);
        border: 0.0625rem solid rgba(36, 94, 60, 0.25);
        border-radius: 999px;
        padding: 0.3125rem 0.875rem;
        margin: 0.875rem auto 0.5rem;
        width: fit-content;
    }

    /* -- Tombol donasi & tatacara/rekening (HANYA di halaman detail) -- */
    .don-detail-btn-wrap {
        margin: 1.25rem 0 0;
    }
    .don-detail-btn-wrap.don--tight {
        margin-top: 0.375rem;
    }
    .don-detail-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.8125rem 1rem;
        border: none;
        border-radius: 0.75rem;
        background: var(--g-green-dark);
        color: #fff;
        font-family: var(--g-font);
        font-size: 0.88rem;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.2s, background 0.2s;
    }
    .don-detail-btn:hover {
        transform: translateY(-0.125rem);
        background: var(--g-green-mid);
    }
    .don-detail-btn-closed,
    .don-detail-btn-closed:hover {
        background: #9a9a9a;
        cursor: not-allowed;
        transform: none;
    }

    .don-btn-secondary {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.7rem 1rem;
        border-radius: 0.75rem;
        border: 0.0625rem solid rgba(36, 94, 60, 0.3);
        background: #fff;
        color: var(--g-green-dark);
        font-family: var(--g-font);
        font-size: 0.82rem;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.15s;
    }
    .don-btn-secondary:hover {
        background: rgba(36, 94, 60, 0.06);
    }

    /* Back button */
    .don-detail-back {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.75rem 1rem;
        margin-top: 0.875rem;
        border-radius: 0.75rem;
        background: var(--g-green-dark);
        color: #fff;
        font-family: var(--g-font);
        font-size: 0.82rem;
        font-weight: 600;
        text-decoration: none;
        transition: transform 0.2s, background 0.2s;
    }
    .don-detail-back:hover {
        transform: translateY(-0.125rem);
        background: var(--g-green-mid);
    }

    .don-rekening-box {
        border-radius: 0.75rem;
        border: 0.0625rem solid rgba(36, 94, 60, 0.2);
        padding: 0.75rem 0.875rem;
        margin-bottom: 1.125rem;
    }
    .don-rekening-bank {
        display: flex;
        align-items: center;
        gap: 0.4375rem;
        font-size: 0.78rem;
        color: #666;
        margin-bottom: 0.25rem;
    }
    .don-rekening-logo {
        width: 1.75rem;
        height: auto;
        object-fit: contain;
        border-radius: 0.15rem;
    }
    .don-rekening-nomor-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.625rem;
    }
    .don-rekening-nomor {
        font-size: 1.05rem;
        font-weight: 800;
        color: var(--g-green-dark);
        letter-spacing: 0.02rem;
    }
    .don-tatacara-box {
        border-radius: 0.75rem;
        background: rgba(36, 94, 60, 0.05);
        padding: 0.875rem 1rem;
        margin-bottom: 1.125rem;
    }
    .don-tatacara-list {
        list-style: none;
        margin: 0;
        padding: 0;
        counter-reset: tatacara;
    }
    .don-tatacara-list li {
        counter-increment: tatacara;
        display: flex;
        gap: 0.5625rem;
        font-size: 0.78rem;
        color: #444;
        line-height: 1.5;
    }
    .don-tatacara-list li + li {
        margin-top: 0.4375rem;
    }
    .don-tatacara-list li::before {
        content: counter(tatacara);
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 1.125rem;
        height: 1.125rem;
        border-radius: 50%;
        background: var(--g-green-dark);
        color: #fff;
        font-size: 0.66rem;
        font-weight: 700;
        margin-top: 0.0625rem;
    }
    .don-copy-btn {
        display: flex;
        align-items: center;
        gap: 0.3125rem;
        padding: 0.3125rem 0.625rem;
        border-radius: 0.5rem;
        border: 0.0625rem solid rgba(36, 94, 60, 0.3);
        background: #fff;
        color: var(--g-green-dark);
        font-family: var(--g-font);
        font-size: 0.72rem;
        font-weight: 700;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.15s, color 0.15s;
    }
    .don-copy-btn:hover {
        background: var(--g-green-dark);
        color: #fff;
    }
    .don-copy-btn.don--copied {
        background: var(--g-green-teal);
        color: #fff;
        border-color: var(--g-green-teal);
    }
    .don-rekening-an {
        font-size: 0.8rem;
        color: #444;
        margin-top: 0.25rem;
    }

    
