/* ============================================================
   DONASI DETAIL PAGE — SHARED LAYOUT & STYLES
   Edit this single file to control layout, padding, spacing,
   colors, typography, and animations for ALL 9 donasi-detail pages.
   ============================================================ */


/* ──────────────────────────────────────────────
   BASE
   ────────────────────────────────────────────── */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #FAFAFA;
    color: #000;
    overflow-x: hidden;
}


/* ──────────────────────────────────────────────
   HERO SECTION
   ────────────────────────────────────────────── */
.hero-detail {
    position: relative;
    min-height: 400px;
}

@media (min-width: 768px) {
    .hero-detail {
        min-height: 500px;
    }
}

.hero-detail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-detail .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

/* Hero content wrapper */
.hero-detail__content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: 400px;
    padding-bottom: 2.5rem;
    /* pb-10 */
    padding-left: 1.5rem;
    /* px-6 */
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    .hero-detail__content {
        padding-bottom: 3.5rem;
        /* sm:pb-14 */
    }
}

@media (min-width: 768px) {
    .hero-detail__content {
        min-height: 500px;
    }
}

@media (min-width: 1024px) {
    .hero-detail__content {
        padding-left: 3rem;
        /* lg:px-12 */
        padding-right: 3rem;
    }
}

.hero-detail__inner {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Back link */
.hero-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
    text-decoration: none;
}

.hero-detail__back:hover {
    color: #fff;
}

.hero-detail__back svg {
    width: 1rem;
    height: 1rem;
}

/* Category badge */
.hero-detail__badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 166, 169, 0.8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Hero title */
.hero-detail__title {
    font-size: 1.875rem;
    /* text-3xl */
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.4));
}

@media (min-width: 640px) {
    .hero-detail__title {
        font-size: 2.25rem;
        /* sm:text-4xl */
    }
}

@media (min-width: 768px) {
    .hero-detail__title {
        font-size: 3rem;
        /* md:text-5xl */
    }
}


/* ──────────────────────────────────────────────
   SECTION CONTAINER (shared wrapper)
   ────────────────────────────────────────────── */
.dd-section {
    padding-top: 2.5rem;
    /* py-10 */
    padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .dd-section {
        padding-top: 3.5rem;
        /* sm:py-14 */
        padding-bottom: 3.5rem;
    }
}

.dd-section__inner {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    /* px-6 */
    padding-right: 1.5rem;
}

@media (min-width: 1024px) {
    .dd-section__inner {
        padding-left: 3rem;
        /* lg:px-12 */
        padding-right: 3rem;
    }
}


/* ──────────────────────────────────────────────
   STATS SECTION
   ────────────────────────────────────────────── */
.section-stats {
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Stat Cards */
.stat-box {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.08);
}

/* Stat icon container */
.stat-box__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.stat-box__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Icon color variants  */
.stat-box__icon--teal {
    background: rgba(0, 166, 169, 0.1);
}

.stat-box__icon--teal svg {
    color: #00A6A9;
}

.stat-box__icon--amber {
    background: #FFFBEB;
}

.stat-box__icon--amber svg {
    color: #F59E0B;
}

.stat-box__icon--rose {
    background: #FFF1F2;
}

.stat-box__icon--rose svg {
    color: #F43F5E;
}

.stat-box__icon--blue {
    background: #EFF6FF;
}

.stat-box__icon--blue svg {
    color: #3B82F6;
}



.stat-box__icon--violet {
    background: #F5F3FF;
}

.stat-box__icon--violet svg {
    color: #8B5CF6;
}

/* Stat label */
.stat-box__label {
    color: #9CA3AF;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

/* Stat value */
.stat-box__value {
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 700;
    color: #111827;
}

@media (min-width: 640px) {
    .stat-box__value {
        font-size: 1.25rem;
        /* sm:text-xl */
    }
}

.stat-box__value--teal {
    color: #00A6A9;
}


/* ──────────────────────────────────────────────
   PROGRESS BAR
   ────────────────────────────────────────────── */
.progress-wrap {
    margin-top: 1.5rem;
    /* mt-6 */
}

.progress-track {
    width: 100%;
    background: #F3F4F6;
    border-radius: 9999px;
    height: 0.625rem;
    /* h-2.5 */
}

.progress-fill {
    height: 0.625rem;
    border-radius: 9999px;
    background: #00A6A9;
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.progress-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #9CA3AF;
}


/* ──────────────────────────────────────────────
   CTA BUTTON
   ────────────────────────────────────────────── */
.cta-wrap {
    margin-top: 2rem;
    /* mt-8 */
    text-align: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    /* py-3.5 px-8 */
    background: #00A6A9;
    color: #fff;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    background: #008B8E;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cta-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}


/* ──────────────────────────────────────────────
   DETAIL PROGRAM SECTION
   ────────────────────────────────────────────── */
.section-detail {
    background: #F9FAFB;
}

.section-detail__body {
    max-width: 48rem;
    /* max-w-3xl */
    margin-left: auto;
    margin-right: auto;
}

/* Section heading (shared by detail & update) */
.dd-section__heading {
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .dd-section__heading {
        font-size: 1.875rem;
        /* sm:text-3xl */
    }
}

.dd-section__heading--update {
    margin-bottom: 2rem;
    /* mb-8 */
}

/* Prose body */
.detail-prose {
    max-width: none;
    color: #4B5563;
    line-height: 1.625;
}

.detail-prose>*+* {
    margin-top: 1rem;
}

.detail-prose ul {
    list-style-type: disc;
    padding-left: 1.25rem;
}

.detail-prose ul>li+li {
    margin-top: 0.5rem;
}


/* ──────────────────────────────────────────────
   UPDATE TERBARU SECTION
   ────────────────────────────────────────────── */
.section-update {
    background: #fff;
}

/* Horizontal scroll carousel */
.update-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.update-scroll::-webkit-scrollbar {
    display: none;
}

/* Update card */
.update-card {
    flex: none;
    width: 18rem;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #f5f5f5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.update-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .update-card {
        width: 22rem;
    }
}

.update-card__img {
    height: 11rem;
    /* h-44 */
    overflow: hidden;
}

.update-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.update-card__body {
    padding: 1rem;
}

.update-card__date {
    font-size: 0.75rem;
    color: #9CA3AF;
}

.update-card__title {
    font-weight: 700;
    color: #111827;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.update-card__desc {
    color: #6B7280;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}