/* ================= CONSULTANTS PAGE =================
   Loaded AFTER style.css. Black & white theme. */

.consultants-page {
    max-width: 1240px; /* same edges as the Gospel Tools grid */
    margin: auto;
    padding: 80px 20px 100px;
}

/* ---- Title + definition ---- */
.consultants-page .section-heading {
    margin-bottom: 36px;
}

.consultants-page .section-heading h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #111;
    white-space: nowrap;
    line-height: 1.1;
}

.consultants-definition {
    width: 100%;
    margin-bottom: 72px;
}

.consultants-definition p {
    width: 100%;
    font-size: 17px;
    font-weight: 300;
    color: #555;
    line-height: 1.85;
}

.consultants-definition .term {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
}

.consultants-definition .term em {
    font-weight: 400;
    font-style: italic;
    color: #888;
    margin-left: 6px;
}

/* ---- Grid ---- */
.consultant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ---- Card ---- */
.consultant-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid #e2e2e2;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.consultant-card:hover {
    transform: translateY(-4px);
    border-color: #111;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
}

/* Portrait photo (4:5). If the image is missing, the icon shows instead. */
.consultant-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cfcfcf;
    font-size: 64px;
}

.consultant-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Name sits in the white part of the card, above the credentials. */
.consultant-name {
    margin: 22px 22px 0;
    font-size: 24px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.7px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.consultant-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Role: dark heading bar across the top of the card.
   The card's rounded corners + overflow:hidden round its top edge. */
.consultant-role {
    margin: 0; /* removes the default h2 margin that left a gap above the photo */
    padding: 16px 22px;
    background: #161616;
    color: #fff;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.1px;
    line-height: 1.2;
}


/* ---- Credentials ---- */
.consultant-creds {
    margin: 16px 22px 26px;
}

.creds-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 16px;
}

.creds-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e2e2;
}

.creds-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.creds-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cred-degree {
    font-size: 14.5px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
}

.cred-degree em {
    font-weight: 400;
    font-style: italic;
    color: #888;
}

.cred-school {
    font-size: 13.5px;
    color: #666;
    line-height: 1.4;
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
    .consultant-name {
        font-size: 22px;
        margin: 20px 20px 0;
    }

    .consultant-role {
        padding: 14px 20px;
        font-size: 16px;
    }

    .consultant-creds {
        margin: 14px 20px 24px;
    }

    .consultants-page {
        padding: 50px 20px 70px;
    }

    .consultants-page .section-heading h1 {
        font-size: 38px;
        white-space: normal;
        text-align: center;
    }

    .consultants-definition {
        margin-bottom: 48px;
    }

    .consultants-definition p {
        font-size: 15px;
        text-align: center;
    }

    .consultants-definition .term {
        text-align: center;
    }

    .consultant-grid {
        grid-template-columns: minmax(0, 340px);
        justify-content: center;
    }
}