/* SANF content pages: shared styles for the rewritten site copy */

.sanf-page { padding: 50px 0 60px; background: #fff; }
.sanf-page.gray { background: #f7f7f7; }

.sanf-prose { max-width: 820px; margin: 0 auto; font-size: 16px; line-height: 1.75; color: #333; }
.sanf-prose h1 { font-size: 34px; line-height: 1.25; margin: 0 0 18px; font-weight: 700; color: #222; }
.sanf-prose h2 { font-size: 24px; margin: 40px 0 12px; font-weight: 700; color: #222; }
.sanf-prose h3 { font-size: 19px; margin: 28px 0 8px; font-weight: 700; color: #222; }
.sanf-prose p { margin: 0 0 14px; }
.sanf-prose ul, .sanf-prose ol { margin: 0 0 16px 22px; padding: 0; }
.sanf-prose ul li { list-style: disc; margin-bottom: 6px; }
.sanf-prose ol li { list-style: decimal; margin-bottom: 6px; }
.sanf-prose a { color: #e47257; text-decoration: underline; }
.sanf-prose .lead { font-size: 19px; color: #444; }
.sanf-prose .note { font-size: 14px; color: #666; font-style: italic; }

.sanf-callout { border-left: 4px solid #e47257; background: #fdf3f0; padding: 16px 20px; margin: 20px 0; }
.sanf-callout p:last-child { margin-bottom: 0; }

.sanf-hero { padding: 70px 0 50px; background: #fdf3f0; text-align: center; }
.sanf-hero h1 { font-size: 40px; line-height: 1.2; font-weight: 700; color: #222; max-width: 900px; margin: 0 auto 18px; }
.sanf-hero p { font-size: 19px; color: #444; max-width: 760px; margin: 0 auto 26px; line-height: 1.6; }
.sanf-hero .theme-btn { margin: 4px 6px; }

.sanf-pillars { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 10px; }
.sanf-pillar { flex: 1 1 240px; background: #fff; border-top: 4px solid #e47257; padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.sanf-pillar h3 { font-size: 18px; margin: 0 0 8px; font-weight: 700; color: #222; }
.sanf-pillar p { font-size: 15px; line-height: 1.6; margin: 0; color: #444; }

/* Impact cards: clear the theme's floated .title so the grid gets the full width */
.sanf-impact { clear: both; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: center; padding-top: 30px; }
.sanf-impact-card { background: #222; color: #fff; padding: 32px 18px 28px; border-bottom: 4px solid #e47257; transition: transform .3s ease, box-shadow .3s ease; }
.sanf-impact-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.sanf-impact-card > i { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #e47257; color: #fff; font-size: 26px; margin-bottom: 18px; }
.sanf-impact-card strong { display: block; font-family: montserrat; font-size: 32px; line-height: 1.1; color: #e47257; margin-bottom: 10px; }
.sanf-impact-card strong b { font-weight: inherit; }
.sanf-impact-card span { display: block; font-size: 14px; line-height: 1.5; color: #ddd; }
/* Scroll-in animation (only hidden once JS has armed it) */
.sanf-impact.will-animate .sanf-impact-card { opacity: 0; transform: translateY(40px); }
.sanf-impact.in-view .sanf-impact-card { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.34,1.56,.64,1); }
.sanf-impact.in-view .sanf-impact-card:nth-child(2) { transition-delay: .15s; }
.sanf-impact.in-view .sanf-impact-card:nth-child(3) { transition-delay: .3s; }
.sanf-impact.in-view .sanf-impact-card:nth-child(4) { transition-delay: .45s; }
.sanf-impact.in-view .sanf-impact-card:hover { transform: translateY(-6px); transition-delay: 0s; }
@media (max-width: 991px) { .sanf-impact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .sanf-impact { grid-template-columns: 1fr; padding: 20px 16px 0; } }

.sanf-section-title { text-align: center; font-size: 28px; font-weight: 700; margin: 0 0 26px; color: #222; }

.sanf-team { display: flex; flex-wrap: wrap; gap: 18px; margin: 10px 0 20px; }
.sanf-person { flex: 1 1 240px; background: #fff; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.sanf-person img { width: 100%; height: 260px; object-fit: cover; object-position: center top; margin-bottom: 12px; }
.sanf-person h4 { font-size: 17px; margin: 0 0 2px; font-weight: 700; }
.sanf-person i { display: block; color: #e47257; font-style: normal; font-size: 14px; margin-bottom: 6px; }
.sanf-person p { font-size: 14px; line-height: 1.55; margin: 0; color: #555; }

.sanf-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

.sanf-bank { background: #fff; border: 1px solid #ddd; padding: 18px 22px; margin: 16px 0; }
.sanf-bank p { margin: 0 0 6px; }

.sanf-footer-links { text-align: center; padding: 10px 0 0; }
.sanf-footer-links a { color: #ddd; margin: 0 10px; font-size: 14px; display: inline-block; }
.sanf-footer-links a:hover { color: #e47257; }
.sanf-footer-contact { color: #bbb; font-size: 14px; text-align: center; margin: 8px 0 0; }

@media (max-width: 767px) {
    .sanf-hero { padding: 40px 16px 30px; }
    .sanf-hero h1 { font-size: 28px; }
    .sanf-hero p { font-size: 17px; }
    .sanf-prose h1 { font-size: 27px; }
    .sanf-page { padding: 30px 0 40px; }
    .sanf-prose { padding: 0 16px; }
}

/* Team cards (original "Meet the Team" style) */
.team-member .member-body { float: left; width: 100%; padding: 22px 22px 26px; }
.team-member .member-body h4 { color: #303030; font-size: 18px; margin: 0 0 6px; }
.team-member .member-body i { display: block; font-family: montserrat; font-size: 14px; font-style: normal; color: #e47257; }
.team-member .member-bio { font-size: 14px; line-height: 1.6; color: #555; margin: 12px 0 0; }
.members .row { margin-bottom: 10px; }

/* Header: Donate/Volunteer strip above, logo and menu aligned on one row */
.header-actions { border-bottom: 1px solid #eee; }
.header-actions .container { display: flex; justify-content: flex-end; gap: 10px; padding: 8px 0; }
.header-actions .container:before, .header-actions .container:after { display: none; }
.menu .header-actions .theme-btn { float: none; margin: 0; padding: 8px 22px; }
header.sticky .header-actions { display: none; }
.menu .container.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.menu .container.menu-row:before, .menu .container.menu-row:after { display: none; }
.menu-row .logo { display: block; flex: 0 1 300px; min-width: 200px; margin: 14px 0; }
header .menu-row .logo img, header.sticky .menu-row .logo img { display: block; width: 100%; max-width: 300px; height: auto; }
header.sticky .menu-row .logo { margin: 10px 0; flex-basis: 240px; }
.menu-row nav { display: block; flex: 0 0 auto; }
.menu-row nav > ul { float: none; display: flex; align-items: center; }
.menu-row nav > ul > li > a { padding: 30px 14px; white-space: nowrap; }
header.sticky .menu-row nav > ul > li > a { padding: 24px 14px; }
@media (max-width: 1199px) {
    .menu-row .logo { flex-basis: 220px; min-width: 160px; }
    .menu-row nav > ul > li > a, header.sticky .menu-row nav > ul > li > a { padding-left: 9px; padding-right: 9px; font-size: 13px; }
}

/* Gallery: albums and photos */
.sanf-albums, .sanf-photos { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 30px; }
.sanf-album { display: block; background: #fff; color: #303030; box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform .3s ease, box-shadow .3s ease; }
.sanf-album:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0,0,0,.14); color: #303030; }
.sanf-album-cover { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.sanf-album-cover img, .sanf-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.sanf-album:hover .sanf-album-cover img, .sanf-photo:hover img { transform: scale(1.06); }
.sanf-album-count { position: absolute; right: 12px; bottom: 12px; background: #e47257; color: #fff; font-size: 12px; font-family: montserrat; padding: 5px 12px; }
.sanf-album-count i { margin-right: 4px; }
.sanf-album-body { padding: 18px 20px 20px; border-bottom: 4px solid #e47257; }
.sanf-album-body h3 { font-family: montserrat; font-size: 18px; font-weight: 600; margin: 0 0 8px; line-height: 1.35; }
.sanf-album-body span { color: #e47257; font-size: 13px; font-family: montserrat; }
.sanf-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #ddd; }
.sanf-photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 10px; color: #fff; font-size: 13px; line-height: 1.4; background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transition: opacity .3s ease; }
.sanf-photo:hover span { opacity: 1; }
.sanf-back { clear: both; text-align: center; padding-top: 40px; }
.sanf-empty { clear: both; text-align: center; padding: 40px 0 80px; }
.sanf-lightbox { position: fixed; inset: 0; z-index: 2147483647; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.sanf-lightbox[hidden] { display: none; }
.sanf-lightbox figure { margin: 0; max-width: 90vw; text-align: center; }
.sanf-lightbox img { max-width: 90vw; max-height: 80vh; display: block; margin: 0 auto; }
.sanf-lightbox figcaption { color: #eee; font-size: 14px; padding-top: 12px; }
.sanf-lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 36px; padding: 10px 18px; cursor: pointer; }
.sanf-lightbox button:hover { color: #e47257; }
.sanf-lightbox .lb-close { top: 10px; right: 10px; font-size: 28px; }
.sanf-lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.sanf-lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 991px) { .sanf-albums, .sanf-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .sanf-albums, .sanf-photos { grid-template-columns: 1fr; padding: 20px 16px 0; } }

/* Photo page banner (theme .page-top with a background image under its overlay) */
.page-top.sanf-banner { background-size: cover; background-position: center; padding: 90px 0 70px; margin-bottom: 0; }
.page-top.sanf-banner:before { background: linear-gradient(90deg, rgba(2,8,88,.85), rgba(2,8,88,.45)); opacity: 1; }
.sanf-banner h1 { color: #fff; font-family: montserrat; font-size: 40px; font-weight: 700; margin: 0 0 12px; float: left; width: 100%; }
.sanf-banner .sanf-banner-lead { color: #f1f1f1; font-size: 18px; max-width: 640px; margin: 0 0 20px; float: left; width: 100%; }

/* Small orange label above section headings */
.sanf-kicker { display: inline-block; font-family: montserrat; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #e47257; border-left: 3px solid #e47257; padding-left: 10px; margin-bottom: 6px; }

/* Text + photo split */
.sanf-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.sanf-split.reverse > .sanf-split-img, .sanf-split.reverse > :last-child { order: -1; }
.sanf-split .sanf-prose { max-width: none; margin: 0; }
.sanf-split .sanf-prose h2:first-of-type { margin-top: 4px; }
.sanf-split-img { margin: 0; position: relative; }
.sanf-split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; box-shadow: 0 14px 30px rgba(0,0,0,.15); border-bottom: 5px solid #e47257; }
.sanf-split-img:before { content: ""; position: absolute; top: -14px; right: -14px; width: 40%; height: 40%; border-top: 4px solid #e47257; border-right: 4px solid #e47257; z-index: 0; }
.sanf-split-img img { position: relative; z-index: 1; }
.sanf-split-img figcaption { font-size: 13px; color: #777; padding-top: 10px; font-style: italic; }

/* Course chips */
.sanf-courses { margin-top: 40px; text-align: center; }
.sanf-courses h3 { font-family: montserrat; font-size: 20px; margin: 0 0 16px; }
.sanf-courses ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; margin: 0; padding: 0; }
.sanf-courses li { background: #fdf3f0; border: 1px solid #f3cfc5; padding: 10px 18px; font-size: 14px; color: #333; }
.sanf-courses li i { color: #e47257; margin-right: 8px; }
.sanf-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Photo strip */
.sanf-strip { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 40px 0 30px; }
.sanf-strip figure { margin: 0; overflow: hidden; position: relative; }
.sanf-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .5s ease; }
.sanf-strip figure:hover img { transform: scale(1.06); }
.sanf-strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; color: #fff; font-size: 13px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }

/* Full-width photo call-to-action band */
.sanf-cta-band { position: relative; background-size: cover; background-position: center; padding: 90px 0; text-align: center; color: #fff; float: left; width: 100%; }
.sanf-cta-band:before { content: ""; position: absolute; inset: 0; background: rgba(2,8,88,.82); }
.sanf-cta-band .container { position: relative; max-width: 820px; }
.sanf-cta-band h2 { color: #fff; font-family: montserrat; font-size: 30px; margin: 6px 0 16px; }
.sanf-cta-band p { font-size: 17px; line-height: 1.7; color: #eee; margin-bottom: 26px; }
.sanf-cta-band .sanf-kicker { color: #fff; border-color: #e47257; }

/* Get Involved: three ways to help */
.sanf-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sanf-way { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; color: #fff; }
.sanf-way img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sanf-way:before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 20%, rgba(0,0,0,.8)); transition: background .3s ease; }
.sanf-way:hover img { transform: scale(1.08); }
.sanf-way:hover:before { background: linear-gradient(rgba(228,114,87,.35), rgba(0,0,0,.85)); }
.sanf-way-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; }
.sanf-way-body i { width: 48px; height: 48px; border-radius: 50%; background: #e47257; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 10px; }
.sanf-way-body h3 { color: #fff; font-family: montserrat; font-size: 22px; margin: 0 0 4px; }
.sanf-way-body p { color: #eee; margin: 0; font-size: 14px; }
.sanf-way:hover, .sanf-way:focus { color: #fff; }
.sanf-prose ul.sanf-ticks { margin-left: 0; }
.sanf-prose ul.sanf-ticks li { list-style: none; padding-left: 28px; position: relative; }
.sanf-prose ul.sanf-ticks li:before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: #e47257; position: absolute; left: 0; }

/* About: mission and vision cards */
.sanf-mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; margin: 30px auto; }
.sanf-mv > div { background: #222; color: #ddd; padding: 30px; border-bottom: 4px solid #e47257; }
.sanf-mv i { color: #e47257; font-size: 30px; margin-bottom: 12px; }
.sanf-mv h3 { color: #fff; font-family: montserrat; font-size: 20px; margin: 0 0 10px; }
.sanf-mv p { margin: 0; line-height: 1.7; }

/* Scroll-in reveal (armed by sanf.js) */
.sanf-reveal.will-animate { opacity: 0; transform: translateY(40px); }
.sanf-reveal.in-view { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }

@media (max-width: 991px) {
    .sanf-split { grid-template-columns: 1fr; gap: 30px; }
    .sanf-split.reverse > .sanf-split-img, .sanf-split.reverse > :last-child { order: 0; }
    .sanf-split-img:before { display: none; }
    .sanf-ways, .sanf-results { grid-template-columns: 1fr; }
    .sanf-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .page-top.sanf-banner { padding: 50px 16px 40px; }
    .sanf-banner h1 { font-size: 28px; }
    .sanf-mv { grid-template-columns: 1fr; }
    .sanf-split, .sanf-ways, .sanf-strip, .sanf-mv, .sanf-courses { padding: 0 16px; }
    .sanf-strip { grid-template-columns: 1fr; }
}
