/* Homepage community zone: Community Work + Stories */

.hc-zone {
    --hc-green: #00a855;
    --hc-gold: #b58c35;
    --hc-ink: #0f172a;
    --hc-muted: #64748b;
    --hc-line: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.hc-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(255, 170, 0, 0.1);
    color: #9a7209;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 170, 0, 0.22);
}

.hc-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--hc-green);
    color: var(--hc-green);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hc-link:hover {
    background: rgba(0, 200, 104, 0.08);
    color: #087a42;
    transform: translateY(-2px);
}

.hc-section {
    padding: clamp(3.5rem, 6vw, 5.5rem) 0;
    position: relative;
}

.hc-section--soft {
    background: #fff;
}

.hc-section--white {
    background: #f8faf9;
}

.hc-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 24px;
    margin-bottom: 2rem;
}

.hc-head h2 {
    margin: 12px 0 0;
    color: #0f172a !important;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.1;
}

.hc-head p {
    flex: 1 1 280px;
    max-width: 440px;
    color: #64748b !important;
    line-height: 1.75;
    margin: 0;
    font-size: 15px;
}

/* Community Work — image top, dark text on white body */
.hc-service-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

#community-services .hc-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    isolation: auto;
}

#community-services .hc-card::before {
    display: none;
}

#community-services .hc-card:hover {
    color: #0f172a;
    transform: translateY(-8px);
    border-color: rgba(0, 200, 104, 0.35);
    box-shadow: 0 14px 32px rgba(0, 200, 104, 0.12);
}

#community-services .hc-card__image {
    position: relative;
    inset: auto;
    z-index: auto;
    flex-shrink: 0;
    height: 180px;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.45s ease;
}

#community-services .hc-card:hover .hc-card__image {
    transform: scale(1.04);
}

#community-services .hc-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 18px 20px;
    background: #fff;
}

#community-services .hc-card__badge {
    display: block;
    color: #00a855 !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

#community-services .hc-card__body h3 {
    color: #0f172a !important;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 8px;
}

#community-services .hc-card__body p {
    color: #64748b !important;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

/* Stories */
.hc-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

#beneficiary-stories .hc-story {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

#beneficiary-stories .hc-story:hover {
    color: inherit;
    transform: translateY(-7px);
    border-color: rgba(255, 170, 0, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

#beneficiary-stories .hc-story__image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

#beneficiary-stories .hc-story__body {
    padding: 22px;
}

#beneficiary-stories .hc-story__quote {
    color: #00a855;
    font-size: 32px;
    line-height: 1;
    margin-bottom: 8px;
}

#beneficiary-stories .hc-story__body h3 {
    color: #0f172a !important;
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0 0 8px;
    line-height: 1.25;
}

#beneficiary-stories .hc-story__body p {
    color: #64748b !important;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1199px) {
    .hc-service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .hc-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hc-story-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .hc-section {
        padding: 3rem 0;
    }

    .hc-service-grid {
        grid-template-columns: 1fr;
    }
}
