/* Kuya Center site: components for activities, people, donation */
html { scroll-behavior: smooth; }
body { margin: 0; background: #F4F7F6; }
a { color: #0E4A47; } a:hover { color: #072E2C; }
img { max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid #F4B41A; outline-offset: 2px; }

.btn-accent, .btn-outline, .btn-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px; border-radius: 999px; font-weight: 700;
  font-size: 16px; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn-accent { background: #F4B41A; color: #12292A; border: 0; }
.btn-accent:hover { background: #E3A40C; color: #12292A; }
.btn-outline { background: #FFFFFF; color: #0E4A47; border: 1.5px solid #0E4A47; }
.btn-outline:hover { background: #0E4A47; color: #FFFFFF; }
.btn-link { background: none; border: 0; padding: 10px 0; color: #0E4A47; text-decoration: underline; text-underline-offset: 3px; border-radius: 4px; }

/* Activities */
.activity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.activity-card { background: #FFFFFF; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.activity-card[hidden] { display: none; }
.activity-card .card-photo { width: 100%; height: 220px; object-fit: cover; display: block; background: #DCE5E3; }
.activity-card .card-body { padding: 22px 24px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-date { font-size: 14px; font-weight: 700; color: #0E4A47; }
.activity-card h3 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; line-height: 1.2; }
.activity-card p { margin: 0; color: #3A5250; }
.card-actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.card-actions .btn-outline { padding: 9px 18px; font-size: 15px; }
.card-actions .btn-link { font-size: 15px; }
.photo-missing { height: 220px; display: flex; align-items: center; justify-content: center; background: #EEF3F2; color: #4A6361; font-weight: 600; font-size: 14px; }
.more-wrap { display: flex; justify-content: center; margin-top: -8px; }

/* Activity dialog */
.activity-dialog { border: 0; padding: 0; border-radius: 22px; width: min(860px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: #FFFFFF; color: #12292A; box-shadow: 0 24px 60px rgba(7,46,44,.35); }
.activity-dialog::backdrop { background: rgba(7,46,44,.62); }
.dlg-inner { display: flex; flex-direction: column; gap: 18px; padding: 24px 28px 28px; font-family: 'Figtree', system-ui, sans-serif; font-size: 17px; line-height: 1.6; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dlg-title { margin: 4px 0 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; }
.dlg-close { flex: 0 0 44px; height: 44px; border-radius: 999px; border: 1px solid #DCE5E3; background: #F4F7F6; color: #12292A; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dlg-close:hover { background: #DCE5E3; }
.dlg-photos { display: flex; flex-direction: column; gap: 12px; }
.dlg-photos img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: 14px; background: #F4F7F6; display: block; }
.dlg-body p { margin: 0 0 12px; color: #3A5250; }
.dlg-body p.item { margin: -6px 0 12px; padding-left: 18px; position: relative; color: #12292A; font-weight: 600; }
.dlg-body p.item::before { content: ""; position: absolute; left: 2px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: #F4B41A; }
.dlg-links { display: flex; flex-wrap: wrap; gap: 12px; }
body.dlg-open { overflow: hidden; }

/* People */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 28px 24px; }
.person { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.person-photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; display: block; background: #DCE5E3; margin-bottom: 8px; }
.person-missing { aspect-ratio: 1 / 1; border-radius: 18px; border: 2px dashed #7C9390; background: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #4A6361; margin-bottom: 8px; text-align: center; padding: 8px; }
.person-missing .initials { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 34px; color: #0E4A47; }
.person-missing .note { font-size: 13px; font-weight: 600; }
.person-name { font-weight: 700; line-height: 1.3; }
.person-role { font-size: 15px; color: #3A5250; line-height: 1.35; }
.person-role.officer { color: #0E4A47; font-weight: 600; }
@media (max-width: 560px) {
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .person-name { font-size: 15px; }
  .person-role { font-size: 14px; }
}

/* Staff groups (follow the organizational chart) */
.staff-groups { display: flex; flex-direction: column; gap: 28px; }
.staff-group { display: flex; flex-direction: column; gap: 18px; padding-top: 20px; border-top: 1px solid #DCE5E3; }
.staff-group:first-child { border-top: 0; padding-top: 0; }
.staff-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.staff-group-label { margin: 0; display: inline-block; padding: 6px 14px; border-radius: 999px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px; font-weight: 700; color: #FFFFFF; background: #0E4A47; }
.group-residential .staff-group-label { background: #A3164D; }
.group-community .staff-group-label { background: #2F7D3A; }
.staff-group-note { margin: 0; font-size: 15px; color: #4A6361; }

/* Donation */
.donate-wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.bank-card { flex: 1 1 440px; min-width: 0; background: #F4F7F6; border-radius: 20px; padding: 28px 30px; display: flex; flex-direction: column; gap: 22px; }
.bank-list { margin: 0; display: flex; flex-direction: column; }
.bank-row { display: grid; grid-template-columns: 170px 1fr; gap: 4px 20px; padding: 13px 0; border-bottom: 1px solid #DCE5E3; }
.bank-row:first-child { padding-top: 0; }
.bank-row:last-child { border-bottom: 0; padding-bottom: 0; }
.bank-row dt { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #4A6361; padding-top: 3px; }
.bank-row dd { margin: 0; font-weight: 600; color: #12292A; overflow-wrap: anywhere; }
.acct-no { font-family: 'Figtree', system-ui, sans-serif; font-size: 26px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.copy-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.copy-status { font-weight: 700; color: #0E4A47; min-height: 1.4em; }
.qr-card { flex: 0 0 auto; margin: 0; background: #FFFFFF; border: 1px solid #DCE5E3; border-radius: 20px; padding: 24px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.qr-img { width: 250px; height: 250px; max-width: none; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.qr-card figcaption { font-size: 14px; font-weight: 600; color: #4A6361; }
@media (max-width: 720px) {
  .donate-wrap { flex-direction: column; }
  .bank-card { flex-basis: auto; padding: 22px 20px; }
  .bank-row { grid-template-columns: 1fr; }
  .qr-card { align-self: stretch; }
  .acct-no { font-size: 24px; }
}

/* DSWD solicitation permit */
.permit-badge { display: inline-flex; align-items: flex-start; gap: 14px; align-self: flex-start; background: #E8F3EF; border: 1.5px solid #0E4A47; border-radius: 16px; padding: 14px 18px; color: #0E4A47; max-width: 100%; }
.permit-badge svg { flex: 0 0 auto; margin-top: 2px; }
.permit-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.permit-no { font-size: 20px; font-weight: 700; color: #12292A; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.permit-note { font-size: 15px; color: #3A5250; }

/* Monthly donation wishlist (tabs) */
.wl-month { display: flex; flex-direction: column; gap: 24px; }
.wl-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.wl-tabs button { min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 1.5px solid #0E4A47; background: #FFFFFF; color: #0E4A47; font-weight: 700; font-size: 17px; cursor: pointer; }
.wl-tabs button:hover { background: #E8F3EF; }
.wl-tabs button[aria-selected="true"] { background: #0E4A47; color: #FFFFFF; }
.wl-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; background: #FFFFFF; border: 1px solid #DCE5E3; border-radius: 22px; padding: 24px; }
.wl-panel[hidden] { display: none; }
.wl-poster { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: #4A6361; font-size: 14px; font-weight: 600; text-align: center; }
.wl-poster img { width: 100%; height: auto; border-radius: 14px; display: block; border: 1px solid #DCE5E3; }
.wl-items { display: flex; flex-direction: column; gap: 20px; }
.wl-intro { margin: 0; color: #3A5250; }
.wl-group h4 { margin: 0 0 8px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; color: #12292A; }
.wl-group.urgent h4 { color: #B3121B; }
.wl-group.urgent h4::after { content: " (most needed)"; font-family: 'Figtree', system-ui, sans-serif; font-size: 14px; font-weight: 700; }
.wl-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 6px 18px; }
.wl-list li { position: relative; padding-left: 26px; color: #12292A; font-size: 16px; line-height: 1.45; }
.wl-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%; background: #2F7D3A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.wl-group.urgent .wl-list li::before { background-color: #B3121B; }
.wl-dropoff { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px 28px; background: #0E4A47; color: #D6E6E3; border-radius: 20px; padding: 24px 28px; }
.wl-dropoff a { color: #FFFFFF; font-weight: 700; }
.wl-dropoff > div > div:not(.wl-dt) { color: #FFFFFF; }
.wl-dt { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #F4B41A; margin-bottom: 4px; }
@media (max-width: 760px) {
  .wl-panel { grid-template-columns: 1fr; padding: 16px; }
  .wl-tabs button { flex: 1 1 0; padding: 10px 12px; }
}

/* Stories of hope (Our Impact) */
.story-feature { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 36px; align-items: start; background: #FBF7EE; border: 1px solid #EADFC6; border-radius: 24px; padding: 36px; }
.story-poster { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: #4A6361; font-size: 14px; font-weight: 600; text-align: center; position: sticky; top: 16px; }
.story-poster img { width: 100%; height: auto; border-radius: 16px; display: block; box-shadow: 0 10px 30px rgba(18,41,42,.14); }
.story-text { display: flex; flex-direction: column; gap: 14px; }
.story-kicker { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5B3A8E; }
.story-title { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; color: #12292A; }
.story-note { margin: 0; font-size: 14px; color: #4A6361; font-style: italic; }
.story-steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.story-steps li { position: relative; padding-left: 26px; border-left: 3px solid var(--c); margin-left: 8px; }
.story-steps li::before { content: ""; position: absolute; left: -11px; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--c); border: 3px solid #FBF7EE; }
.story-steps .s1 { --c: #5B3A8E; } .story-steps .s2 { --c: #E8901B; } .story-steps .s3 { --c: #4E8A2E; } .story-steps .s4 { --c: #2D74B5; }
.story-steps h4 { margin: 0 0 4px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 19px; color: var(--c); }
.story-steps p { margin: 0; color: #3A5250; font-size: 16px; }
.story-close { margin: 4px 0 0; font-weight: 700; color: #12292A; }
.story-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
  .story-feature { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
  .story-poster { position: static; max-width: 340px; margin: 0 auto; }
}

/* Sponsor a child / college scholar (under Scholar allowances) */
.sp-wrap { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 16px; }
.sp-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; background: #0E4A47; color: #FFFFFF; border-radius: 24px; padding: 32px; }
.sp-kicker { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #F4B41A; }
.sp-title { margin: 10px 0 14px; font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; }
.sp-quote { margin: 0; padding-left: 16px; border-left: 4px solid #F4B41A; color: #D6E6E3; font-size: 18px; }
.sp-quote strong { color: #FFFFFF; }
.sp-hero-img img { width: 100%; height: auto; display: block; border-radius: 16px; }
.sp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.sp-card { background: #FFFFFF; border: 1px solid #DCE5E3; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.sp-card-head h4 { margin: 8px 0 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; line-height: 1.1; }
.sp-tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: #FFFFFF; }
.sp-tag-a { background: #A3164D; } .sp-tag-b { background: #2D74B5; }
.sp-big { font-size: 16px; color: #3A5250; font-weight: 600; }
.sp-big span { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 40px; font-weight: 700; line-height: 1.05; color: #0E4A47; }
.sp-sub { margin: 0; color: #3A5250; font-size: 16px; }
.sp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chips li { background: #F4F7F6; border: 1px solid #DCE5E3; border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 600; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.sp-cap { text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4A6361; padding-bottom: 6px; }
.sp-table th, .sp-table td { padding: 10px 0; border-bottom: 1px solid #E6ECEA; text-align: left; font-weight: 600; color: #12292A; }
.sp-table td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.sp-total th, .sp-total td { border-bottom: 0; font-size: 18px; color: #0E4A47; font-weight: 700; }
.sp-poster { margin-top: auto; display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; color: #0E4A47; font-size: 15px; padding-top: 6px; }
.sp-poster img { width: 96px; height: auto; border-radius: 8px; border: 1px solid #DCE5E3; }
.sp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; background: #F4B41A; border-radius: 20px; padding: 22px 26px; }
.sp-cta p { margin: 0; flex: 1 1 360px; color: #12292A; }
.sp-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-cta .btn-accent { background: #0E4A47; color: #FFFFFF; }
.sp-cta .btn-accent:hover { background: #072E2C; color: #FFFFFF; }
.sp-btn-light { background: #FFFFFF; }
@media (max-width: 760px) {
  .sp-hero { grid-template-columns: 1fr; padding: 22px; }
  .sp-card { padding: 20px; }
}
