/* Org type pages and philanthropy singles. */

/* ── Org type intro (description beside image) ── */
.org-intro { padding: 54px 0 0; }

.org-intro-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    padding-bottom: 54px;
    border-bottom: 2px solid var(--line);
}

.org-intro-text h1 { margin-bottom: 16px; }

.org-intro-text .entry-content {
    font-size: 18px;
    line-height: 32px;
    font-weight: 300;
}

.org-intro-text .ff-btn { margin-top: 30px; }

.org-intro-image img { width: 100%; }


/* ── Card grid ── */
.phil-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.phil-card {
    display: flex;
    flex-direction: column;
    background: var(--light);
    padding: 40px;
    line-height: 26px;
}

.phil-card-logo {
    height: 75px;
    margin-bottom: 20px;
}

.phil-card-logo img {
    width: auto;
    max-width: 400px;
    max-height: 75px;
}

.phil-card-title { margin-bottom: 10px; }
.phil-card-title a { color: var(--heading); text-decoration: none; }
.phil-card-title a:hover { color: var(--blue); }

.phil-card-excerpt { flex-grow: 1; margin-bottom: 15px; }

.phil-card .ff-btn { display: block; align-self: stretch; margin-top: auto; }

/* ── Single ── */
.phil-single { padding: 54px 0; }

.phil-type {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000;
    margin-bottom: 11px;
}

.phil-type a { color: var(--blue); text-decoration: none; }
.phil-type a:hover { text-decoration: underline; }

.phil-single-header { margin-bottom: 30px; }

.phil-single-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.phil-single-image {
    position: sticky;
    top: 120px;
}

.phil-single-image img { width: 100%; margin-bottom: 40px; }

.phil-single-content .entry-content a.button { margin-top: 10px; }

.phil-testimonials { margin-top: 40px; }
.phil-testimonials h2 { text-transform: uppercase; margin-bottom: 16px; }
.phil-testimonials-content > * + * { margin-top: 1em; }

.phil-gallery-title { margin: 54px 0 24px; }

.phil-inline-list a { color: var(--blue); }

/* ── Responsive ── */
@media (max-width: 1200px) {
    .phil-card { padding: 30px; }
}

@media (max-width: 768px) {
    .org-intro { padding-top: 40px; }
    .org-intro-row { grid-template-columns: 1fr; gap: 30px; padding-bottom: 40px; }
    .org-intro-text .entry-content { font-size: 16px; line-height: 1.75; }
    .phil-grid { grid-template-columns: 1fr; gap: 20px; }
    .phil-single { padding: 40px 0; }
    .phil-single-row { grid-template-columns: 1fr; gap: 30px; }
    .phil-single-image { position: static; order: -1; max-width: 420px; }
    .phil-single-image img { margin-bottom: 0; }
}

@media (max-width: 480px) {
    .phil-card { padding: 24px; }
    .phil-card-logo img { max-width: 100%; }
}
