/* NGOpedia NGO Details page. Styles scoped to .ngo-details-page. */
.ngo-details-page {
    --ngo-navy: #102b46;
    --ngo-blue: #164e78;
    --ngo-teal: #0f9b8e;
    --ngo-orange: #f3a43b;
    --ngo-ink: #20374b;
    --ngo-muted: #6d7f8f;
    --ngo-line: #e4ecf2;
    color: var(--ngo-ink);
    background: #f4f8fb;
    padding: 24px clamp(14px, 4vw, 56px) 58px;
    box-sizing: border-box;
    min-height: 70vh;
}
.ngo-details-page *, .ngo-details-page *::before, .ngo-details-page *::after { box-sizing: border-box; }

.ngo-profile-hero {
    position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
    min-height: 235px; padding: clamp(25px, 4vw, 46px); border-radius: 24px;
    background: linear-gradient(120deg, #102b46 0%, #164e78 58%, #137c85 100%);
    box-shadow: 0 16px 40px rgba(16,43,70,.16); margin-bottom: 22px;
}
.ngo-profile-hero__inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 25px; width: 100%; }
.ngo-profile-logo-wrap {
    display: flex; align-items: center; justify-content: center; flex: 0 0 124px; width: 124px; height: 124px;
    padding: 9px; border: 1px solid rgba(255,255,255,.4); border-radius: 24px; background: rgba(255,255,255,.96);
    box-shadow: 0 10px 28px rgba(0,0,0,.13);
}
.ngo-profile-logo { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 13px; }
.ngo-profile-heading { min-width: 0; }
.ngo-profile-eyebrow { display: block; color: #9ce7dc; font-size: 10px; font-weight: 800; letter-spacing: 2px; margin-bottom: 10px; }
.ngo-profile-heading h1 { color: #fff; font-size: clamp(27px, 4vw, 43px); line-height: 1.16; font-weight: 800; margin: 0 0 13px; overflow-wrap: anywhere; }
.ngo-profile-status {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
    color: #e2fff7; background: rgba(15,155,142,.2); border: 1px solid rgba(156,231,220,.35);
    font-size: 12px; font-weight: 700;
}
.ngo-profile-hero__glow { position: absolute; z-index: 1; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; pointer-events: none; }
.ngo-profile-hero__glow--one { width: 310px; height: 310px; right: 8%; top: -125px; }
.ngo-profile-hero__glow--two { width: 220px; height: 220px; right: 1%; bottom: -140px; background: rgba(255,255,255,.04); }

.ngo-detail-panel {
    padding: clamp(20px, 3vw, 32px); margin: 0 0 20px; border: 1px solid var(--ngo-line);
    border-radius: 20px; background: #fff; box-shadow: 0 8px 26px rgba(18,51,78,.055); min-width: 0;
}
.ngo-section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.ngo-section-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px;
    border-radius: 14px; color: var(--ngo-blue); background: linear-gradient(145deg, #e9f3fb, #e4f8f4); font-size: 18px;
}
.ngo-section-kicker { display: block; color: #138d83; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; margin-bottom: 4px; }
.ngo-section-heading h2 { margin: 0; color: var(--ngo-navy); font-size: clamp(20px, 2.5vw, 25px); line-height: 1.25; font-weight: 800; }
.ngo-about-copy { color: #536a7d; font-size: 15px; line-height: 1.9; text-align: justify; overflow-wrap: anywhere; }

.ngo-info-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: clamp(24px, 4vw, 48px); }
.ngo-info-grid--equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ngo-info-main, .ngo-info-aside { min-width: 0; }
.ngo-contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ngo-contact-item { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.ngo-contact-icon {
    display: flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px;
    border-radius: 11px; background: #f0f7fb; color: var(--ngo-blue); font-size: 14px;
}
.ngo-contact-item > div { min-width: 0; }
.ngo-contact-label { display: block; margin: 0 0 4px; color: #8393a1; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.ngo-contact-item p { color: #294359; font-size: 14px; line-height: 1.65; margin: 0; overflow-wrap: anywhere; }
.ngo-capitalize { text-transform: capitalize; }
.ngo-break-word { overflow-wrap: anywhere; }

.ngo-working-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ngo-working-list li { display: flex; align-items: flex-start; gap: 10px; color: #3f596e; font-size: 14px; line-height: 1.55; padding: 11px 12px; border-radius: 12px; background: #f6fafc; }
.ngo-working-bullet { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 21px; width: 21px; height: 21px; border-radius: 50%; background: #dff6ef; color: #138d83; font-size: 10px; }

.ngo-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ngo-entry-card { min-width: 0; padding: 20px; border: 1px solid #e5edf2; border-radius: 15px; background: #f9fbfd; }
.ngo-entry-card h3 { display: flex; align-items: flex-start; gap: 9px; color: #1b405e; font-size: 16px; font-weight: 800; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.ngo-entry-card h3 i { color: var(--ngo-orange); margin-top: 4px; }
.ngo-entry-divider { height: 2px; width: 48px; border-radius: 4px; background: linear-gradient(90deg, var(--ngo-teal), #bcebe1); margin: 15px 0; }
.ngo-entry-card p { color: #5c7182; font-size: 14px; line-height: 1.75; margin: 0; overflow-wrap: anywhere; }
.ngo-entry-label { display: block; color: #1b405e; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 5px; }

.ngo-legal-list { border: 1px solid #e8eef3; border-radius: 13px; overflow: hidden; }
.ngo-legal-row, .ngo-trustee-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 14px; border-bottom: 1px solid #e8eef3; font-size: 13px; line-height: 1.5; }
.ngo-legal-row:last-child, .ngo-trustee-row:last-child { border-bottom: 0; }
.ngo-legal-row:nth-child(odd), .ngo-trustee-row:nth-child(odd) { background: #f8fbfd; }
.ngo-legal-row span, .ngo-trustee-row span { color: #6e8292; flex: 0 0 42%; }
.ngo-legal-row strong, .ngo-trustee-row strong { color: #294359; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.ngo-trustee-list { border: 1px solid #e8eef3; border-radius: 13px; overflow: hidden; }

.ngo-social-links { display: flex; flex-wrap: wrap; gap: 11px; }
.ngo-social-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 16px;
    border: 1px solid #dfe9ef; border-radius: 11px; background: #fff; color: #294359; font-size: 13px;
    font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ngo-social-link i { font-size: 15px; }
.ngo-social-link:hover { transform: translateY(-2px); box-shadow: 0 7px 16px rgba(18,51,78,.08); text-decoration: none; }
.ngo-social-link--website:hover { border-color: #0f9b8e; color: #0b887e; }
.ngo-social-link--facebook:hover { border-color: #4267b2; color: #4267b2; }
.ngo-social-link--instagram:hover { border-color: #c13584; color: #c13584; }
.ngo-social-link--linkedin:hover { border-color: #0a66c2; color: #0a66c2; }
.ngo-social-link--youtube:hover { border-color: #e62117; color: #e62117; }

@media (max-width: 900px) {
    .ngo-info-grid, .ngo-info-grid--equal { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 650px) {
    .ngo-details-page { padding: 14px 13px 38px; }
    .ngo-profile-hero { min-height: 0; padding: 25px 20px; border-radius: 18px; }
    .ngo-profile-hero__inner { align-items: flex-start; flex-direction: column; gap: 18px; }
    .ngo-profile-logo-wrap { width: 92px; height: 92px; flex-basis: 92px; border-radius: 18px; }
    .ngo-profile-heading h1 { font-size: 28px; }
    .ngo-profile-hero__glow--one { right: -170px; }
    .ngo-profile-hero__glow--two { right: -90px; }
    .ngo-detail-panel { padding: 19px 16px; border-radius: 16px; margin-bottom: 15px; }
    .ngo-contact-list, .ngo-entry-grid { grid-template-columns: minmax(0, 1fr); }
    .ngo-section-heading { gap: 10px; margin-bottom: 18px; }
    .ngo-section-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
    .ngo-legal-row, .ngo-trustee-row { gap: 10px; padding: 11px; font-size: 12px; }
    .ngo-social-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ngo-social-link { padding: 11px 9px; font-size: 12px; }
}
@media (max-width: 380px) {
    .ngo-social-links { grid-template-columns: minmax(0, 1fr); }
    .ngo-profile-heading h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .ngo-social-link { transition: none; } }
