/* ═══════════════════════════════════════════════════
   Help Routing Section
   Partner organisations & resource routing cards
   ═══════════════════════════════════════════════════ */

.help-routing-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-secondary, #f8f9fa) 0%, var(--bg-primary, #ffffff) 100%);
    position: relative;
}

.help-routing-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.help-routing-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary, #2563eb);
    background: rgba(37, 99, 235, 0.08);
    margin-bottom: 1rem;
}

.help-routing-section .section-description {
    max-width: 700px;
    margin: 1rem auto 0;
    color: var(--text-secondary, #6b7280);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Resource Card Grid ─────────────────────────── */

.help-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* ── Resource Card ──────────────────────────────── */

.help-resource-card {
    background: var(--bg-primary, #ffffff);
    border-radius: 16px;
    border: 1px solid var(--border-light, #e5e7eb);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.help-resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.help-resource-card.featured {
    border-color: var(--color-primary, #2563eb);
    border-width: 2px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

/* Card Header */
.resource-card-header {
    padding: 1.25rem 1.5rem 0.75rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.resource-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-primary, #2563eb);
    background: rgba(37, 99, 235, 0.08);
    flex-shrink: 0;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.resource-category-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-secondary, #6b7280);
    background: var(--bg-secondary, #f3f4f6);
}

.resource-featured-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #d97706;
    background: rgba(217, 119, 6, 0.08);
}

.resource-featured-tag i {
    font-size: 0.6rem;
}

/* Card Body */
.resource-card-body {
    padding: 0 1.5rem 1rem;
    flex: 1;
}

.resource-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #111827);
    line-height: 1.3;
}

.resource-description {
    font-size: 0.9rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.resource-location {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
}

.resource-location i {
    font-size: 0.7rem;
    color: var(--color-primary, #2563eb);
}

/* Card Footer — Contact Actions */
.resource-card-footer {
    padding: 0.75rem 1.5rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid var(--border-light, #f3f4f6);
}

.resource-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.resource-action-btn.phone {
    color: #059669;
    background: rgba(5, 150, 105, 0.06);
}

.resource-action-btn.phone:hover {
    background: rgba(5, 150, 105, 0.14);
    color: #047857;
}

.resource-action-btn.email {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
}

.resource-action-btn.email:hover {
    background: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
}

.resource-action-btn.website {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.06);
}

.resource-action-btn.website:hover {
    background: rgba(124, 58, 237, 0.14);
    color: #6d28d9;
}

/* ── Bottom Note ────────────────────────────────── */

.help-routing-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(37, 99, 235, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.help-routing-note .note-icon {
    flex-shrink: 0;
    color: var(--color-primary, #2563eb);
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.help-routing-note p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary, #6b7280);
}

.help-routing-note a {
    color: var(--color-primary, #2563eb);
    text-decoration: underline;
    font-weight: 600;
}

/* ── Empty / Fallback State ─────────────────────── */

.help-routing-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.help-routing-empty .empty-icon {
    font-size: 2.5rem;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 1rem;
}

.help-routing-empty h4 {
    font-size: 1.15rem;
    color: var(--text-primary, #111827);
    margin-bottom: 0.5rem;
}

.help-routing-empty p {
    color: var(--text-secondary, #6b7280);
    max-width: 480px;
    margin: 0 auto;
    font-size: 0.9rem;
}

.help-routing-empty a {
    color: var(--color-primary, #2563eb);
    text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────── */

@media (max-width: 768px) {
    .help-routing-section {
        padding: 3rem 0;
    }

    .help-resources-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .help-routing-note {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .resource-card-footer {
        flex-direction: column;
    }

    .resource-action-btn {
        justify-content: center;
        width: 100%;
    }
}
