﻿/* Philanthropy page styles (scoped with phil- prefix) */

/* Full-bleed hero (matches other pages) */
.hero-banner {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

    .hero-banner img {
        display: block;
        width: 100%;
        height: clamp(260px, 45vh, 520px);
        object-fit: cover;
    }

/* Shell */
.phil-shell {
    margin-top: 24px;
    margin-bottom: 32px;
}

/* Title + lede */
.phil-title {
    font-family: Inter, sans-serif;
    font-weight: 800;
    font-size: 34px;
    letter-spacing: -0.02em;
    margin: 8px 0 12px 0;
}

.phil-lede {
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 20px 0;
    padding: 12px 14px;
    border-left: 4px solid #4DC24D; /* brand accent */
    background: linear-gradient(0deg, rgba(77,194,77,0.05), rgba(77,194,77,0.05));
    border-radius: 8px;
}

/* Cards & layout */
.phil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 12px 0 20px 0;
}

@media (max-width: 992px) {
    .phil-grid {
        grid-template-columns: 1fr;
    }
}

.phil-card {
    border: 1px solid #E9EAEB;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04);
    padding: 18px 18px 16px 18px;
}

.phil-h2 {
    font-family: Inter, sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 8px 0;
}

/* Orgs list */
.phil-orgs {
    margin-top: 8px;
}

.phil-org {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 10px 0 0 0;
    border-top: 1px dashed #E9EAEB;
    margin-top: 10px;
}

    .phil-org:first-of-type {
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }

.phil-org-title {
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 4px 0;
}
    /* Make org title links primary green */
    .phil-org-title a {
        color: #4DC24D;
        text-decoration: none;
    }

        .phil-org-title a:visited {
            color: #4DC24D;
        }

        .phil-org-title a:hover {
            color: #3BA33B;
            text-decoration: underline;
        }

.phil-org-desc {
    margin: 0;
    color: #535862;
    line-height: 1.6;
}

/* CTA button */
.phil-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #4DC24D;
    background: #4DC24D;
    color: #FFF;
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    transition: transform .05s ease, filter .2s ease;
}

    .phil-btn:hover {
        filter: brightness(0.95);
    }

    .phil-btn:active {
        transform: translateY(1px);
    }

/* Full-width card utility for grid */
.phil-card--full {
    grid-column: 1 / -1;
    position: relative; /* keep for future anchors if needed */
}

/* Inline CTA row (button left, votes right) */
.phil-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}

/* Vote count status: text-only (larger, not clickable) */
.phil-votes-status {
    font-family: Inter, sans-serif;
    font-size: 16px;
    color: #535862;
    pointer-events: none;
    user-select: none;
}

    .phil-votes-status strong {
        color: #4DC24D; /* brand green for the number */
        font-weight: 800;
        font-size: 18px;
    }

@media (max-width: 576px) {
    .phil-cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .phil-votes-status {
        align-self: flex-end; /* keep it visually right-aligned under the button */
    }
}
