*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #003d7a; --blue-mid: #1a5fa8; --blue-light: #2e7fd4;
  --blue-pale: #e8f1fb; --white: #ffffff; --off-white: #f4f8fd;
  --dark: #0d1f33; --text-muted: #4a5e74; --accent: #d4e6f7;
}
body { font-family: 'Lato', sans-serif; color: var(--dark); background: var(--off-white); line-height: 1.7; }

nav { background: var(--blue); padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 72px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.3); }
.nav-name { font-family: 'Playfair Display', serif; font-size: 14px; color: #fff; font-weight: 700; line-height: 1.25; }
.nav-name .sub { display: block; font-size: 11px; font-family: 'Lato', sans-serif; font-weight: 300; color: rgba(255,255,255,0.7); letter-spacing: 1px; text-transform: uppercase; }
nav ul { display: flex; gap: 1.8rem; list-style: none; }
nav ul a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; transition: color 0.2s; }
nav ul a:hover { color: var(--accent); }

.hero { background: linear-gradient(135deg, #003d7a 0%, #1a5fa8 55%, #0a3566 100%); color: #fff; padding: 90px 2rem 80px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-logo-wrap { margin-bottom: 24px; }
.hero-logo-wrap img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,0.4); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); color: rgba(255,255,255,0.9); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 6px 18px; border-radius: 20px; margin-bottom: 20px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 700; line-height: 1.2; max-width: 720px; margin: 0 auto 8px; }
.hero-sub { font-size: 1.1rem; font-weight: 700; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.hero p { font-size: 1rem; color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto 36px; font-weight: 300; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: #fff; color: var(--blue); padding: 13px 30px; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 0.5px; transition: background 0.2s, transform 0.15s; display: inline-block; }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.5); color: #fff; padding: 13px 30px; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 0.5px; transition: border-color 0.2s, background 0.2s; display: inline-block; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.stats-band { background: var(--blue-mid); display: grid; grid-template-columns: repeat(3,1fr); text-align: center; }
.stat-item { padding: 26px 20px; border-right: 1px solid rgba(255,255,255,0.2); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: #fff; display: block; }
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-top: 4px; }

section { padding: 76px 2rem; }
.container { max-width: 1080px; margin: 0 auto; }
.section-tag { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--blue-light); margin-bottom: 12px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; color: var(--blue); line-height: 1.25; max-width: 520px; }
.section-title.centered { text-align: center; max-width: 100%; }
.section-divider { width: 48px; height: 3px; background: var(--blue-light); margin: 20px 0 32px; border-radius: 2px; }
.section-divider.centered { margin: 20px auto 40px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 16px; }
@media (max-width: 768px) { .about-grid, .membership-inner, .contact-inner { grid-template-columns: 1fr; } .about-visual { height: 280px; } nav ul { display: none; } }
.about-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 1rem; }
.about-visual { position: relative; height: 340px; }
.about-block-main { position: absolute; inset: 0; background: var(--blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.about-block-main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.about-quote { position: absolute; bottom: -20px; right: -20px; background: #fff; border: 2px solid var(--blue-light); border-radius: 8px; padding: 20px 22px; max-width: 220px; box-shadow: 0 8px 24px rgba(0,61,122,0.15); }
.about-quote p { font-family: 'Playfair Display', serif; font-size: 13px; font-style: italic; color: var(--dark); line-height: 1.5; }
.about-quote span { display: block; margin-top: 8px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue-mid); }

.pillars-bg { background: var(--blue-pale); }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 16px; }
.pillar-card { background: #fff; border-radius: 8px; padding: 26px 20px; border-top: 3px solid var(--blue-mid); transition: box-shadow 0.2s, transform 0.2s; }
.pillar-card:hover { box-shadow: 0 8px 28px rgba(0,61,122,0.13); transform: translateY(-3px); }
.pillar-icon { width: 42px; height: 42px; background: var(--blue-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 20px; }
.pillar-card h3 { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 8px; line-height: 1.3; }
.pillar-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.membership-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.eligibility-list { list-style: none; margin-top: 8px; }
.eligibility-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 15px; color: var(--text-muted); }
.check { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-mid); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; margin-top: 2px; }
.join-card { background: var(--blue); border-radius: 12px; padding: 38px 30px; color: #fff; text-align: center; }
.join-card h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 12px; }
.join-card p { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 26px; line-height: 1.7; }
.join-card .btn-primary { width: 100%; text-align: center; display: block; }


.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info p { color: var(--text-muted); margin-bottom: 26px; font-size: 1rem; }
.contact-detail { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 14px; color: var(--text-muted); }
.contact-icon { width: 38px; height: 38px; background: var(--blue-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.contact-link { color: var(--blue-mid); text-decoration: none; font-weight: 700; }
.contact-link:hover { color: var(--blue-light); text-decoration: underline; }
.contact-form-wrap { background: #fff; border-radius: 12px; padding: 34px 30px; box-shadow: 0 4px 24px rgba(0,61,122,0.1); border: 1px solid rgba(0,61,122,0.08); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select { width: 100%; border: 1.5px solid #ccd9ea; border-radius: 4px; padding: 10px 14px; font-size: 14px; font-family: 'Lato', sans-serif; color: var(--dark); background: #fff; transition: border-color 0.2s; outline: none; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--blue-mid); }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-submit { background: var(--blue); color: #fff; padding: 13px 30px; border: none; border-radius: 4px; font-size: 14px; font-weight: 700; font-family: 'Lato', sans-serif; cursor: pointer; width: 100%; letter-spacing: 0.5px; transition: background 0.2s; }
.form-submit:hover { background: var(--blue-mid); }

/* ── GALLERY ── */
.gallery-bg { background: var(--off-white); }
.gallery-tabs { display: flex; gap: 0; justify-content: center; border-bottom: 2px solid rgba(0,61,122,0.12); margin-bottom: 44px; flex-wrap: wrap; }
.gallery-tab { background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 14px 28px; font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); cursor: pointer; transition: color 0.2s, border-color 0.2s; white-space: nowrap; }
.gallery-tab:hover { color: var(--blue-mid); }
.gallery-tab.active { color: var(--blue); border-bottom-color: var(--blue-light); }
.gallery-panel { display: none; }
.gallery-panel.active { display: block; }
.gallery-panel-header { margin-bottom: 28px; }
.gallery-panel-header h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.gallery-panel-header p { font-size: 14px; color: var(--text-muted); max-width: 600px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-item { border-radius: 8px; overflow: hidden; position: relative; aspect-ratio: 4/3; background: var(--blue-pale); border: 1px solid rgba(0,61,122,0.1); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,61,122,0.18); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--blue-pale) 0%, #d0e5f6 100%); gap: 10px; }
.gallery-item-placeholder .ph-icon { font-size: 2rem; opacity: 0.5; }
.gallery-item-placeholder .ph-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue-mid); opacity: 0.7; text-align: center; padding: 0 12px; }
.gallery-item-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,30,70,0.75) 0%, transparent 55%); opacity: 0; transition: opacity 0.25s; display: flex; align-items: flex-end; padding: 14px; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-caption { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }
/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(5,15,30,0.93); z-index: 999; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 860px; width: 100%; }
.lightbox-close { position: absolute; top: -38px; right: 0; background: none; border: none; color: rgba(255,255,255,0.7); font-size: 28px; cursor: pointer; line-height: 1; transition: color 0.2s; }
.lightbox-close:hover { color: #fff; }
.lightbox img { width: 100%; border-radius: 8px; max-height: 80vh; object-fit: contain; }
.lightbox-caption { margin-top: 12px; color: rgba(255,255,255,0.65); font-size: 13px; text-align: center; }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .gallery-tab { padding: 10px 14px; font-size: 11px; } }

footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 48px 2rem 28px; text-align: center; }
.footer-logo-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; }
.footer-logo-wrap img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255,255,255,0.3); }
.footer-org-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: #fff; text-align: left; line-height: 1.2; }
.footer-org-name .sub { display: block; font-family: 'Lato', sans-serif; font-size: 11px; font-weight: 400; color: var(--accent); letter-spacing: 1.5px; text-transform: uppercase; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 20px 0 24px; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.28); border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; margin-top: 8px; }

/* ---------- Shared nav additions (multi-page) ---------- */
.nav-logo a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
nav ul a[aria-current="page"] { color: #fff; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.nav-toggle { display: none; background: none; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 4px; color: #fff; font-size: 20px; line-height: 1; padding: 7px 11px; cursor: pointer; }
.nav-toggle:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }
nav ul a:focus-visible, .nav-toggle:focus-visible { outline-color: var(--accent); }

@media (max-width: 768px) {
  nav { padding: 0 1.1rem; flex-wrap: wrap; height: auto; min-height: 72px; }
  .nav-toggle { display: block; }
  nav ul { display: none; }
  nav ul.open { display: flex; flex-direction: column; gap: 0; width: 100%; padding: 6px 0 14px; border-top: 1px solid rgba(255,255,255,0.15); }
  nav ul.open li { width: 100%; }
  nav ul.open a { display: block; padding: 13px 4px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.07); }
  nav ul a[aria-current="page"] { border-bottom-color: var(--accent); }
}

/* ---------- Home teasers ---------- */
.work-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 16px; }
.work-chip { background: #fff; border-radius: 8px; padding: 22px 18px; text-align: center; border-top: 3px solid var(--blue-mid); }
.work-chip .pillar-icon { font-size: 1.7rem; margin-bottom: 8px; }
.work-chip h3 { font-family: 'Playfair Display', serif; font-size: 0.98rem; color: var(--blue); }
.cta-band { background: linear-gradient(135deg, #003d7a 0%, #1a5fa8 100%); color: #fff; text-align: center; }
.cta-band .section-title { color: #fff; max-width: 640px; margin: 0 auto; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 30px; font-weight: 300; }
.center-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-fieldset { border: none; margin-bottom: 30px; }
.form-fieldset legend { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--blue); padding-bottom: 8px; margin-bottom: 6px; border-bottom: 2px solid var(--blue-pale); width: 100%; }
.form-hint { font-size: 13px; color: var(--text-muted); margin: 10px 0 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 700px) { .form-grid-2 { grid-template-columns: 1fr; } }
.req { color: #b3261e; font-weight: 700; margin-left: 2px; }
.choice-list { display: grid; gap: 9px; margin-top: 6px; }
.choice-list.cols { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .choice-list.cols { grid-template-columns: 1fr; } }
.choice { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--dark); cursor: pointer; line-height: 1.5; }
.choice input { width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0; accent-color: var(--blue-mid); }
.form-row input:invalid:not(:placeholder-shown), .form-row select:invalid { border-color: #d68b85; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 16px; line-height: 1.6; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Sponsorship ---------- */
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0 44px; }
@media (max-width: 700px) { .qr-grid { grid-template-columns: 1fr; } }
.qr-card { background: #fff; border-radius: 8px; padding: 26px 22px; text-align: center; border: 1px solid rgba(0,61,122,0.12); box-shadow: 0 4px 18px rgba(0,61,122,0.06); }
.qr-card h3 { font-family: 'Playfair Display', serif; font-size: 1.12rem; color: var(--blue); margin-bottom: 4px; }
.qr-card .qr-sub { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue-light); margin-bottom: 16px; }
.qr-frame { width: 190px; height: 190px; margin: 0 auto 16px; border: 1px solid var(--blue-light); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.qr-card p { font-size: 13px; color: var(--text-muted); }
.tiers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-top: 16px; }
.tier-card { background: #fff; border-radius: 8px; padding: 26px 22px; border-top: 3px solid var(--blue-mid); display: flex; flex-direction: column; }
.tier-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--blue); }
.tier-amount { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--blue-mid); margin: 8px 0 12px; }
.tier-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }
.corporate-line { background: var(--blue); color: #fff; border-radius: 8px; padding: 26px 28px; margin-top: 34px; text-align: center; }
.corporate-line p { color: rgba(255,255,255,0.82); font-weight: 300; margin-bottom: 16px; }
.corporate-line a { color: #fff; font-weight: 700; }

/* ---------- Thank you ---------- */
.thanks-wrap { min-height: 62vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 2rem; }
.thanks-card { max-width: 560px; }
.thanks-mark { width: 76px; height: 76px; border-radius: 50%; background: var(--blue-pale); color: var(--blue-mid); font-size: 2.1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; border: 2px solid var(--blue-light); }
.thanks-card p { color: var(--text-muted); margin: 0 auto 26px; }

/* ---------- Gallery (dynamic) ---------- */
.gallery-empty { text-align: center; padding: 46px 24px; background: #fff; border: 1px dashed var(--blue-light); border-radius: 8px; color: var(--text-muted); font-size: 14px; }
.gallery-status { text-align: center; padding: 34px 20px; color: var(--text-muted); font-size: 14px; }

/* ---------- Editable org name wrappers + skip link ---------- */
.nav-name .org, .footer-org-name .org { display: block; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--blue); padding: 10px 16px; z-index: 200; font-weight: 700; border-radius: 0 0 4px 0; }
.skip-link:focus { left: 0; }
