/*
Theme Name: YHeP Fresh Standalone
Theme URI: https://younghealthpioneers.org
Author: Young Health Pioneers, Inc.
Description: A self-contained international healthcare nonprofit theme. No core plugin or companion plugin is required. Includes an editable admin panel, Gallery, pages, a five-slide three-second hero, PayPal donation links, medical missions, projects, news, FAQs and contact features.
Version: 2.4.0
Requires at least: 6.0
Requires PHP: 7.2
Text Domain: yhep-fresh-standalone
*/

:root {
  --green: #16833a;
  --deep-green: #0b5c34;
  --forest: #073f32;
  --navy: #082b4c;
  --blue: #176b9c;
  --gold: #f2bf25;
  --red: #a91f2c;
  --mint: #edf7f0;
  --soft: #f7f9f5;
  --cream: #fffcf4;
  --ink: #17251f;
  --banner-heading: #ffffff;
  --banner-text: #e3eee8;
  --banner-breadcrumb: #ffffff;
  --muted: #5e6f66;
  --line: #dce8df;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(7, 63, 50, .11);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: white; font-family: 'Montserrat', Arial, sans-serif; font-size: 15px; line-height: 1.75; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(calc(100% - 40px), 1180px); margin-inline: auto; }

.announcement { background: var(--navy); color: #dceaf1; font-size: 11px; letter-spacing: .02em; }
.announcement-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.announcement a { color: white; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-wrap { height: 78px; display: flex; align-items: center; gap: 22px; }
.brand img { display: block; width: 132px; max-height: 62px; object-fit: contain; }
.nav-wrap nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-wrap nav a { padding: 11px 8px; color: #273a31; font-size: 11px; font-weight: 700; transition: color .2s; }
.nav-wrap nav a:hover { color: var(--green); }
.mobile-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--forest); background: var(--mint); font-size: 20px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 11px 19px; border-radius: 999px; border: 1px solid transparent; background: var(--green); color: white; font-size: 12px; font-weight: 800; line-height: 1.2; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.donate { color: var(--navy); background: var(--gold); }
.nav-donate { min-width: 92px; }
.lightButton { background: white; color: var(--forest); }
.outlineLight { background: transparent; color: white; border-color: rgba(255, 255, 255, .55); }
.outlineDark { color: var(--forest); background: transparent; border-color: #adc8b7; }
.greenButton { background: var(--green); }
.goldButton { background: var(--gold); color: var(--navy); }
.darkButton { background: var(--navy); color: white; }
.buttonRow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 25px; }

.hero { position: relative; height: 650px; min-height: 560px; overflow: hidden; background: var(--forest); }
.heroSlide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s ease; }
.heroSlide.active { opacity: 1; visibility: visible; }
.heroSlide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heroOverlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 49, 39, .96) 0%, rgba(5, 58, 44, .75) 48%, rgba(7, 63, 50, .22) 78%); }
.heroContent { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.heroCopy { width: min(650px, 68vw); color: white; }
.kicker { display: block; margin-bottom: 14px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.kicker::before { content: ''; display: inline-block; width: 28px; height: 2px; margin: 0 9px 3px 0; background: currentColor; }
.kicker.light { color: #f5cf61; }
.hero h1, .heroCopy h1 { margin: 0 0 20px; max-width: 650px; color: #fff !important; font-size: clamp(38px, 5vw, 60px); line-height: 1.06; letter-spacing: -.045em; font-weight: 800; }
.heroCopy > p { max-width: 620px; margin: 0; color: #e0eee8; font-size: clamp(15px, 1.7vw, 18px); line-height: 1.7; }
.heroControls { position: absolute; z-index: 5; left: 50%; bottom: 27px; display: flex; gap: 8px; transform: translateX(-50%); }
.heroControls button { width: 30px; height: 4px; padding: 0; border: 0; background: rgba(255, 255, 255, .42); cursor: pointer; }
.heroControls button.active { background: var(--gold); }
.heroArrow { position: absolute; z-index: 6; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: rgba(5, 47, 37, .38); color: white; font-size: 28px; line-height: 1; cursor: pointer; transform: translateY(-50%); backdrop-filter: blur(8px); }
.heroArrow:hover { background: var(--gold); color: var(--navy); }
.heroPrev { left: 18px; }
.heroNext { right: 18px; }
.heroStamp { position: absolute; z-index: 5; right: max(22px, calc((100vw - 1180px)/2)); bottom: 28px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .34); border-radius: 15px; color: white; backdrop-filter: blur(8px); }
.heroStamp strong { color: var(--gold); font-size: 17px; }
.heroStamp span { font-size: 9px; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em; }

.focusBar { border-bottom: 1px solid var(--line); background: white; }
.focusGrid { display: grid; grid-template-columns: repeat(4, 1fr); }
.focusItem { display: flex; align-items: center; gap: 14px; min-height: 95px; padding: 20px; border-right: 1px solid var(--line); }
.focusItem:last-child { border-right: 0; }
.focusItem > span { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 10px; font-weight: 800; }
.focusItem strong, .focusItem small { display: block; }
.focusItem strong { color: var(--forest); font-size: 13px; }
.focusItem small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.section { padding: 92px 0; }
.introGrid, .flagshipGrid, .pathwayGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.photoCollage { position: relative; min-height: 555px; padding: 0 54px 52px 0; }
.photoMain { width: 100%; height: 520px; object-fit: cover; border-radius: 0 120px 0 120px; }
.photoInset { position: absolute; right: 0; bottom: 0; width: 43%; height: 210px; border: 8px solid white; border-radius: 22px 0 22px 0; object-fit: cover; box-shadow: var(--shadow); }
.photoNote { position: absolute; left: -18px; bottom: 65px; max-width: 210px; padding: 17px 19px; border-left: 4px solid var(--gold); background: white; box-shadow: var(--shadow); }
.photoNote span, .photoNote strong { display: block; }
.photoNote span { color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.photoNote strong { margin-top: 4px; color: var(--forest); font-size: 13px; }
h2 { margin: 0 0 18px; color: var(--forest); font-size: clamp(29px, 3.7vw, 42px); line-height: 1.18; letter-spacing: -.035em; font-weight: 800; }
h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; }
p { color: var(--muted); }
.lead { color: #43564c; font-size: 16px; line-height: 1.8; }
.miniChecks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 23px 0; }
.miniChecks span { position: relative; padding-left: 23px; color: #34473d; font-size: 12px; font-weight: 600; }
.miniChecks span::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.textLink { display: inline-flex; align-items: center; gap: 10px; color: var(--forest); font-size: 12px; font-weight: 800; }
.textLink b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--navy); }

.programsSection { position: relative; overflow: hidden; background: var(--cream); }
.programsSection::before { content: ''; position: absolute; inset: 30px auto auto -80px; width: 200px; height: 200px; border: 35px solid rgba(242, 191, 37, .1); border-radius: 50%; }
.sectionHeading { margin-bottom: 42px; }
.sectionHeading.centered { max-width: 730px; margin-inline: auto; text-align: center; }
.sectionHeading.centered .kicker::before { display: none; }
.sectionHeading > p { max-width: 700px; margin: 0; }
.sectionHeading.centered > p { margin-inline: auto; }
.rowHeading { display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.rowHeading > div { max-width: 720px; }
.programOrbits { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.programOrbit { --orbit: var(--green); position: relative; min-height: 285px; padding: 46px 30px 32px; border: 2px solid var(--orbit); border-radius: 42% 58% 48% 52% / 45% 42% 58% 55%; background: white; text-align: center; }
.programOrbit::before { content: ''; position: absolute; inset: 8px; border: 1px dashed color-mix(in srgb, var(--orbit) 65%, transparent); border-radius: inherit; pointer-events: none; }
.programOrbit > span { position: relative; color: var(--orbit); font-size: 10px; font-weight: 800; }
.programOrbit h3 { position: relative; margin-top: 15px; color: var(--forest); font-size: 20px; }
.programOrbit p { position: relative; max-width: 270px; margin: 0 auto; font-size: 12px; }
.programOrbit a { position: relative; display: grid; place-items: center; width: 38px; height: 38px; margin: 20px auto 0; border-radius: 50%; background: var(--orbit); color: white; font-weight: 800; }

.causeSection { background: var(--soft); }
.causeGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.causeCard { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 12px 30px rgba(7, 63, 50, .06); transition: transform .25s, box-shadow .25s; }
.causeCard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.causeImage { position: relative; height: 205px; overflow: hidden; }
.causeImage img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.causeCard:hover .causeImage img { transform: scale(1.04); }
.causeImage > span { position: absolute; left: 14px; bottom: 14px; padding: 6px 9px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.causeBody { padding: 21px; }
.causeBody h3 { color: var(--forest); font-size: 16px; }
.causeBody p { min-height: 73px; font-size: 11px; line-height: 1.65; }
.causeActions { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); }
.causeActions > a:first-child { color: var(--forest); font-size: 10px; font-weight: 800; }
.roundDonate { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: var(--green); color: white; font-size: 12px; }

.missionBand { display: grid; grid-template-columns: 1fr 1fr; min-height: 590px; background: var(--forest); }
.missionImage { position: relative; overflow: hidden; }
.missionImage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 65%, var(--forest)); }
.missionImage img { width: 100%; height: 100%; object-fit: cover; }
.missionCopy { display: flex; flex-direction: column; justify-content: center; padding: clamp(45px, 7vw, 90px); }
.missionCopy h2, .impactCopy h2, .finalCta h2 { color: white; }
.missionCopy > p, .impactCopy > p { color: #d5e7de; }
.missionFacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 25px 0; }
.missionFacts span { padding: 14px; border: 1px solid rgba(255, 255, 255, .18); color: #cfe1d8; font-size: 9px; line-height: 1.5; }
.missionFacts strong { display: block; color: white; font-size: 12px; }
.missionCopy .button { align-self: flex-start; }

.projectList { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; padding: 0; margin: 25px 0; list-style: none; }
.projectList li { position: relative; padding: 11px 10px 11px 29px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.projectList li::before { content: '+'; position: absolute; left: 5px; color: var(--green); font-size: 18px; font-weight: 800; }
.projectList b { display: block; color: var(--forest); font-size: 12px; }
.flagshipMedia { position: relative; padding: 0 0 42px 42px; }
.flagshipMedia > img { width: 100%; height: 560px; border-radius: 110px 0 110px 0; object-fit: cover; }
.flagshipBadge { position: absolute; left: 0; bottom: 0; min-width: 220px; padding: 23px; background: var(--gold); color: var(--navy); }
.flagshipBadge strong, .flagshipBadge span { display: block; }
.flagshipBadge strong { font-size: 16px; }
.flagshipBadge span { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.actionSplit { display: grid; grid-template-columns: 1fr 1fr; }
.actionPanel { position: relative; min-height: 410px; display: flex; align-items: center; overflow: hidden; color: white; background-position: center; background-size: cover; }
.actionPanel::before { content: ''; position: absolute; inset: 0; }
.actionPanel > div { position: relative; z-index: 2; width: min(500px, calc(100% - 60px)); margin-inline: auto; }
.actionPanel h2 { color: white; font-size: clamp(28px, 3vw, 38px); }
.actionPanel p { max-width: 480px; color: #eef6f2; }
.actionPanel > div > span { display: block; margin-bottom: 10px; font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.volunteerPanel::before { background: rgba(8, 43, 76, .84); }
.donatePanel::before { background: rgba(242, 191, 37, .88); }
.donatePanel, .donatePanel h2, .donatePanel p { color: var(--navy); }

.pathwaySection { background: var(--cream); }
.pathwayGrid { align-items: start; }
.pathwayCards { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.pathwayCards article { display: flex; gap: 15px; min-height: 150px; padding: 23px; border: 1px solid #e8e0c8; background: white; }
.pathwayCards article > span { flex: 0 0 32px; color: var(--green); font-size: 9px; font-weight: 800; }
.pathwayCards h3 { color: var(--forest); font-size: 16px; }
.pathwayCards p { margin: 0; font-size: 10px; }

.impactSection { background: var(--soft); }
.impactCard { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 520px; overflow: hidden; border-radius: 32px; background: var(--navy); }
.impactPhoto img { width: 100%; height: 100%; object-fit: cover; }
.impactCopy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 75px); }
.impactMeasures { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 24px 0; }
.impactMeasures span { padding: 11px 13px; border: 1px solid rgba(255, 255, 255, .18); color: white; font-size: 10px; }
.impactCopy .button { align-self: flex-start; }

.storiesGrid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; }
.storyCard { position: relative; min-height: 380px; overflow: hidden; border-radius: 18px; color: white; }
.storyCard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.storyCard:hover img { transform: scale(1.04); }
.storyCard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 47, 37, .95), transparent 72%); }
.storyCard > div { position: absolute; z-index: 2; inset: auto 0 0; padding: 25px; }
.storyCard span { display: block; margin-bottom: 8px; color: var(--gold); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.storyCard h3, .storyCard h3 a { color: #fff !important; font-size: 17px; }
.storyCard b { font-size: 9px; }

.finalCtaSection { padding-top: 25px; }
.finalCta { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(40px, 6vw, 70px); border-radius: 28px; background: linear-gradient(115deg, var(--forest), var(--navy)); }
.finalCta > div:first-child { max-width: 730px; }
.finalCta h2 { margin: 0; }
.finalCta .buttonRow { flex: 0 0 auto; margin: 0; }

.site-footer { margin-top: 35px; padding: 72px 0 0; background: #052f26; color: #cde0d7; }
.footer-top { display: grid; grid-template-columns: 1.35fr .8fr .9fr 1fr; gap: 45px; }
.footer-brand img { width: 135px; padding: 7px; border-radius: 9px; background: white; }
.footer-brand p { max-width: 310px; color: #b7cec3; font-size: 11px; }
.footer-top h3 { margin-bottom: 17px; color: white; font-size: 13px; }
.footer-top > div > a { display: block; margin: 8px 0; color: #cde0d7; font-size: 10px; }
.footer-top a:hover { color: var(--gold); }
.footer-donate { color: var(--gold) !important; font-weight: 800; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 52px; padding: 19px 0; border-top: 1px solid rgba(255, 255, 255, .13); color: #9ebbb0; font-size: 9px; }
.footer-bottom a { color: #cde0d7; }

@media (max-width: 1050px) {
  .nav-wrap nav { display: none; }
  .nav-wrap nav.open { position: fixed; inset: 112px 0 auto; display: flex; align-items: stretch; flex-direction: column; max-height: calc(100vh - 112px); padding: 25px; overflow: auto; background: white; box-shadow: var(--shadow); }
  .nav-wrap nav.open a { padding: 12px; font-size: 12px; }
  .mobile-toggle { display: block; margin-left: auto; }
  .nav-donate { display: none; }
  .causeGrid { grid-template-columns: 1fr 1fr; }
  .focusGrid { grid-template-columns: 1fr 1fr; }
  .focusItem:nth-child(2) { border-right: 0; }
  .focusItem:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .introGrid, .flagshipGrid, .pathwayGrid { gap: 45px; }
  .programOrbit { min-height: 260px; }
}

@media (max-width: 800px) {
  .announcement-inner span:last-child, .heroStamp { display: none; }
  .hero { height: 610px; }
  .heroCopy { width: 88vw; }
  .introGrid, .flagshipGrid, .pathwayGrid, .missionBand, .impactCard { grid-template-columns: 1fr; }
  .programOrbits { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .programOrbit { border-radius: 90px; min-height: auto; padding: 42px 30px; }
  .missionImage { min-height: 390px; }
  .missionImage::after { background: linear-gradient(0deg, var(--forest), transparent 60%); }
  .flagshipMedia { order: -1; }
  .actionSplit { grid-template-columns: 1fr; }
  .storiesGrid { grid-template-columns: 1fr; }
  .storyCard { min-height: 330px; }
  .rowHeading, .finalCta { align-items: flex-start; flex-direction: column; }
  .finalCta .buttonRow { margin-top: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .wrap { width: min(calc(100% - 28px), 1180px); }
  .nav-wrap { height: 70px; }
  .brand img { width: 118px; }
  .nav-wrap nav.open { inset-block-start: 104px; }
  .hero { height: 640px; }
  .hero h1 { font-size: 38px; }
  .heroArrow { top: auto; bottom: 20px; width: 38px; height: 38px; transform: none; }
  .heroPrev { left: 14px; }
  .heroNext { right: 14px; }
  .heroCopy > p { font-size: 14px; }
  .section { padding: 68px 0; }
  .focusGrid, .causeGrid, .projectList, .pathwayCards, .impactMeasures, .footer-top { grid-template-columns: 1fr; }
  .focusItem { border-right: 0; border-bottom: 1px solid var(--line); }
  .photoCollage { min-height: 430px; padding: 0; }
  .photoMain { height: 430px; border-radius: 0 75px 0 75px; }
  .photoInset, .photoNote { display: none; }
  .miniChecks { grid-template-columns: 1fr; }
  .missionFacts { grid-template-columns: 1fr; }
  .flagshipMedia { padding: 0 0 34px 0; }
  .flagshipMedia > img { height: 420px; border-radius: 70px 0 70px 0; }
  .flagshipBadge { min-width: 200px; }
  .actionPanel { min-height: 380px; }
  .finalCta { padding: 34px 26px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin: 6px 0; }
}

/* WordPress navigation and editorial content */
.main-nav > ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav li { position: relative; }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; display: none; width: 245px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); list-style: none; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a { display: block; padding: 9px 10px; border-radius: 8px; }
.main-nav .sub-menu a:hover { background: var(--mint); }
.custom-logo-link { display: block; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 42px; }
.entry-content h3 { margin-top: 28px; color: var(--forest); }
.entry-content blockquote { margin: 34px 0; padding: 25px; border-left: 4px solid var(--gold); background: var(--cream); color: var(--forest); }
.entry-content img { border-radius: 16px; }
.entry-content .alignwide { width: min(100%, 1100px); }
.entry-content .wp-block-button__link { border-radius: 999px; background: var(--green); font-size: 12px; font-weight: 800; }
.home-editor-content { padding-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 12px 30px rgba(7,63,50,.06); }
.card-image { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 23px; }
.card-body h2, .card-body h3 { margin: 7px 0 12px; color: var(--forest); font-size: 17px; }
.card-body p { font-size: 11px; }
.card-label { color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.text-link { color: var(--forest); font-size: 10px; font-weight: 800; }
.news-cards { margin-top: 38px; }
.notice { margin: 20px 0; padding: 14px 17px; border-radius: 10px; background: var(--mint); color: var(--forest); }
.notice.error { background: #fff0f0; color: #8d1f2a; }
.contact-form { margin-top: 32px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 5px; color: var(--forest); font-size: 10px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 13px; border: 1px solid #cbdcd1; border-radius: 9px; background: white; }
.not-found { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.not-found h1 { margin: 0 0 12px; color: var(--forest); font-size: clamp(38px, 6vw, 60px); }

/* Interior page layout */
.detailHero { min-height: 440px; display: flex; align-items: center; color: white; background-position: center; background-size: cover; }
.detailHero h1 { max-width: 850px; margin: 16px 0; color: var(--banner-heading) !important; font-size: clamp(36px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -.04em; }
.detailHero p { max-width: 760px; margin: 0; color: var(--banner-text); font-size: 16px; }
.crumb { color: var(--banner-breadcrumb); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.crumb a { color: var(--gold); font-weight: 700; }
.detailLayout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 65px; align-items: start; }
.article > section { margin-bottom: 48px; }
.article h2 { font-size: clamp(27px, 3.3vw, 38px); }
.article p, .article li { color: #4f6157; font-size: 14px; }
.article li { margin: 9px 0; }
.article ul { padding: 21px 24px 21px 46px; border-left: 4px solid var(--green); border-radius: 14px; background: var(--mint); }
.side { position: sticky; top: 110px; padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); }
.side h3 { color: var(--forest); font-size: 19px; }
.side p { font-size: 12px; }
.side .button { width: 100%; margin: 5px 0; }
.side hr { margin: 23px 0; border: 0; border-top: 1px solid var(--line); }
.side > b { font-size: 11px; }
.side .mail { display: block; margin-top: 7px; color: var(--green); font-size: 10px; overflow-wrap: anywhere; }
.pageDonateCta { margin: 10px 0 50px; padding: 35px; border-radius: 20px; background: var(--navy); }
.pageDonateCta h2 { color: white; }
.pageDonateCta p { color: #d7e6ee; }

/* Editable Gallery */
.galleryIntro { max-width: 780px; margin-bottom: 35px; }
.galleryAlbumsSection { background: linear-gradient(180deg, #fff, var(--soft)); }
.galleryAlbumHeading { margin-bottom: 36px; }
.galleryCategoryGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.galleryCategoryCard { min-height: 440px; overflow: hidden; border-radius: 22px; background: var(--forest); box-shadow: 0 18px 44px rgba(7,63,50,.12); }
.galleryCategoryCard > a { position: relative; display: block; height: 100%; min-height: 440px; overflow: hidden; }
.galleryCategoryCard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.galleryCategoryCard:hover img, .galleryCategoryCard:focus-within img { transform: scale(1.055); }
.galleryCategoryShade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,42,33,.98) 0%, rgba(4,42,33,.72) 42%, rgba(8,43,76,.12) 78%); }
.galleryCategoryCount { position: absolute; top: 20px; right: 20px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: rgba(5,47,37,.58); color: #fff; font-size: 9px; font-weight: 800; backdrop-filter: blur(8px); }
.galleryCategoryContent { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; align-items: flex-start; flex-direction: column; padding: 28px; color: #fff; }
.galleryCategoryLabel { margin-bottom: 8px; color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.galleryCategoryContent strong { color: #fff; font-size: 22px; line-height: 1.2; }
.galleryCategoryContent small { max-width: 95%; margin-top: 9px; color: #dcece4; font-size: 10px; line-height: 1.6; }
.galleryCategoryContent b { margin-top: 18px; color: #fff; font-size: 10px; }
.galleryCategoryContent i { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 7px; border-radius: 50%; background: var(--gold); color: var(--navy); font-style: normal; }
.galleryAlbumHero { min-height: 430px; }
.galleryArchiveTop { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; margin-bottom: 36px; }
.galleryArchiveTop > div { max-width: 750px; }
.galleryArchiveTop p { margin-bottom: 0; }
.galleryPhotoGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.galleryPhotoCard { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(7,63,50,.07); }
.galleryPhotoButton { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 0; background: var(--soft); cursor: zoom-in; }
.galleryPhotoButton img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.galleryPhotoButton:hover img, .galleryPhotoButton:focus img { transform: scale(1.055); }
.galleryPhotoZoom { position: absolute; right: 15px; bottom: 15px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 23px; font-weight: 700; box-shadow: 0 9px 20px rgba(0,0,0,.18); }
.galleryPhotoDetails { padding: 19px 21px 21px; }
.galleryPhotoDetails h2 { margin: 0 0 7px; color: var(--forest); font-size: 15px; letter-spacing: -.015em; }
.galleryPhotoDetails p { margin: 0; font-size: 10px; line-height: 1.65; }
.galleryGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.galleryCard { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 14px 35px rgba(7,63,50,.07); }
.galleryThumb { position: relative; display: block; width: 100%; height: 270px; padding: 0; overflow: hidden; border: 0; background: var(--soft); cursor: zoom-in; }
.galleryThumb img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; transition: transform .35s; }
.galleryThumb:hover img, .galleryThumb:focus img { transform: scale(1.04); }
.galleryThumb::after { content: '+'; position: absolute; right: 15px; bottom: 15px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 22px; font-weight: 700; }
.galleryCardBody { padding: 22px; }
.galleryCardBody h2 { margin: 7px 0 9px; color: var(--forest); font-size: 17px; }
.galleryCardBody p { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.galleryMeta { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gallerySingleImage { margin-bottom: 32px; }
.gallerySingleImage img { width: 100%; max-height: 650px; object-fit: cover; }
.galleryNavigation { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 800; }
.yhep-lightbox[hidden] { display: none; }
.yhep-lightbox { position: fixed; z-index: 99999; inset: 0; display: grid; place-items: center; padding: 35px; background: rgba(3,25,20,.96); }
.yhep-lightbox-inner { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 18px; width: min(1240px, 100%); text-align: center; }
.yhep-lightbox figure { min-width: 0; margin: 0; }
.yhep-lightbox img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 12px; box-shadow: 0 25px 80px rgba(0,0,0,.45); }
.yhep-lightbox figcaption { display: flex; justify-content: center; gap: 20px; margin: 12px 45px 0; color: white; font-size: 11px; }
.yhep-lightbox-caption { color: #fff; }
.yhep-lightbox-counter { flex: 0 0 auto; color: var(--gold); font-weight: 800; }
.yhep-lightbox-close { position: absolute; z-index: 2; top: -18px; right: -18px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 25px; cursor: pointer; }
.yhep-lightbox-arrow { display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; background: rgba(255,255,255,.09); color: #fff; font-size: 35px; line-height: 1; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.yhep-lightbox-arrow:hover, .yhep-lightbox-arrow:focus { background: var(--gold); color: var(--navy); transform: scale(1.05); }
.yhep-lightbox-arrow[hidden] { display: none; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 1050px) {
  .main-nav.open > ul { display: flex; align-items: stretch; flex-direction: column; }
  .main-nav.open .sub-menu { position: static; display: block; width: auto; margin-left: 15px; border: 0; box-shadow: none; }
}

@media (max-width: 820px) {
  .detailLayout { grid-template-columns: 1fr; gap: 35px; }
  .side { position: static; }
  .detailHero { min-height: 390px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .galleryGrid, .galleryCategoryGrid, .galleryPhotoGrid { grid-template-columns: 1fr 1fr; }
  .galleryArchiveTop { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .detailHero { min-height: 350px; }
  .detailHero h1 { font-size: 36px; }
  .detailHero p { font-size: 14px; }
  .cards, .form-grid, .galleryGrid, .galleryCategoryGrid, .galleryPhotoGrid { grid-template-columns: 1fr; }
  .galleryCategoryCard, .galleryCategoryCard > a { min-height: 390px; }
  .yhep-lightbox { padding: 16px; }
  .yhep-lightbox-inner { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 5px; }
  .yhep-lightbox-arrow { width: 40px; height: 40px; font-size: 29px; }
  .yhep-lightbox-close { top: -8px; right: -5px; width: 38px; height: 38px; }
  .yhep-lightbox img { max-height: 70vh; }
  .yhep-lightbox figcaption { align-items: center; flex-direction: column; gap: 4px; margin: 10px 0 0; }
  .field-full { grid-column: auto; }
}
