/*
    Enchanted Garden Shop
    css/volunteer.css
    Volunteer page-specific styles. The open volunteer posts are built by
    js/volunteer.js from /api/volunteer-opportunities.
*/

.page-header.photo-header {
    position: relative;
    background-image:
        linear-gradient(
            180deg,
            rgba(10, 14, 8, 0.35) 0%,
            rgba(10, 14, 8, 0.55) 40%,
            rgba(10, 14, 8, 0.55) 100%
        ),
        url("/images/inside.webp");
    background-size: cover;
    background-position: center;
    padding: 72px 24px 60px;
}

.page-header.photo-header h1,
.page-header.photo-header p {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.6);
}

.vol-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.vol-list[hidden] {
    display: none;
}

.vol-card {
    flex: 0 1 360px;
    text-align: left;
    display: flex;
    flex-direction: column;
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.vol-card-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.vol-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-md);
}

.vol-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--forest-deep);
    margin-bottom: 6px;
}

.vol-card-summary {
    margin-bottom: var(--space-sm);
}

.vol-facts {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 12px;
    margin-bottom: var(--space-sm);
    font-size: 15px;
}

.vol-facts dt {
    font-family: var(--font-label);
    font-size: 13px;
    letter-spacing: 0.03em;
    color: var(--moss-deep);
    padding-top: 2px;
}

.vol-facts dd {
    margin: 0;
}

.vol-more {
    margin-bottom: var(--space-sm);
}

.vol-more summary {
    cursor: pointer;
    font-family: var(--font-label);
    color: var(--ruby-deep);
}

.vol-more h4 {
    font-family: var(--font-label);
    font-size: 15px;
    color: var(--forest-deep);
    margin: 14px 0 4px;
}

.vol-more p {
    white-space: pre-line;
}

.vol-card-body .btn {
    margin-top: auto;
    align-self: flex-start;
}

.vol-empty {
    max-width: 640px;
    margin: var(--space-md) auto 0;
    text-align: center;
    color: var(--cream);
}

.vol-empty .btn {
    margin-top: var(--space-sm);
}

.form-field textarea.vol-textarea-short {
    min-height: 90px;
}

.vol-privacy {
    margin-top: 12px;
    text-align: center;
}

@media (max-width: 600px) {
    .vol-card {
        flex-basis: 100%;
    }

    .vol-card-photo {
        height: 170px;
    }

    .vol-card-body .btn {
        align-self: stretch;
        text-align: center;
    }
}
