/* ============================================================
   program-public.css — InfaqKU
   Halaman publik program donasi
   ============================================================ */

/* ── Program Cards (List/Grid) ──────────────────────────────── */
.program-public-card {
    border-radius: 14px !important;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.program-public-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0,0,0,.12) !important;
}

.program-public-banner-wrap {
    position: relative;
    overflow: hidden;
    height: 180px;
}
.program-public-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.program-public-card:hover .program-public-banner {
    transform: scale(1.04);
}

/* Kategori badge atas banner */
.program-public-kategori-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}
.badge-kategori-zakat    { background: #e0f7ef; color: #0a7e5e; }
.badge-kategori-infaq    { background: #dbeafe; color: #1d4ed8; }
.badge-kategori-sedekah  { background: #fef9c3; color: #92400e; }
.badge-kategori-wakaf    { background: #f3e8ff; color: #6b21a8; }

.program-public-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    min-height: 2.9em;
}

/* ── Show Page ───────────────────────────────────────────────── */
.program-show-banner-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.program-show-banner {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

/* Sidebar sticky */
.program-show-sidebar {
    position: sticky;
    top: 80px;
}

/* Fund display */
.program-show-fund-box {
    background: #f5f6fa;
    border-radius: 10px;
    padding: 14px 16px;
}
.fund-label-sm {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #8a8d93;
    margin-bottom: 3px;
}
.fund-amount-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d9e75;
    line-height: 1.2;
}
.fund-target-main {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3250;
}

/* Share buttons */
.btn-share {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    transition: opacity .15s, transform .15s;
}
.btn-share:hover {
    opacity: .85;
    transform: scale(1.08);
    color: #fff;
}
.btn-share-fb { background: #1877f2; }
.btn-share-tw { background: #1da1f2; }
.btn-share-wa { background: #25d366; }

/* Donasi button */
.btn-donasi-main {
    background: #0d9e75;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 13px;
    border-radius: 10px;
    border: none;
    letter-spacing: .3px;
    transition: background .2s, transform .15s;
}
.btn-donasi-main:hover {
    background: #0a7e5e;
    color: #fff;
    transform: translateY(-1px);
}

/* Nominal buttons */
.btn-nominal {
    font-size: 12px;
    border-radius: 20px;
    padding: 4px 12px;
    transition: all .15s;
}
.btn-nominal.active {
    background: #0d9e75 !important;
    border-color: #0d9e75 !important;
    color: #fff !important;
}

/* Deskripsi */
.program-deskripsi-text {
    font-size: 15px;
    line-height: 1.85;
    color: #444;
}

/* Donatur Item */
.donatur-item {
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.donatur-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.donatur-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e0f7ef;
    color: #0d9e75;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Program Terkait */
.program-terkait-card {
    border-radius: 10px !important;
    transition: box-shadow .15s;
}
.program-terkait-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.1) !important;
}

/* Tabs */
.nav-tabs-bordered .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #8a8d93;
    font-weight: 500;
    padding: 8px 16px;
}
.nav-tabs-bordered .nav-link.active {
    color: #0d9e75;
    border-bottom-color: #0d9e75;
    background: transparent;
}
.nav-tabs-bordered {
    border-bottom: 1px solid #e8eaf0;
}

/* Responsive */
@media (max-width: 768px) {
    .program-show-banner { height: 200px; }
    .program-show-sidebar { position: static; }
    .fund-amount-main { font-size: 1.2rem; }
}