/* =====================================================================
   Public website – header, hero, sections, footer, auth pages
   ===================================================================== */
body.public { background: #fff; }

/* Header */
/* The header lives inside #siteHeader; sticky must sit on that wrapper, otherwise the
   header only "sticks" within the wrapper's own height and scrolls away. */
#siteHeader { position: sticky; top: 0; z-index: 900; }
.site-header { background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 700; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink-900); text-decoration: none !important; }
.brand-mark { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .35); flex-shrink: 0; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-text { line-height: 1.15; display: flex; flex-direction: column; }
.brand-title { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-sub { font-size: .72rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.brand { flex-shrink: 0; }
@media (min-width: 1025px) and (max-width: 1240px) { .site-header .brand-sub { display: none; } }
.site-nav { display: flex; align-items: center; gap: .2rem; }
.site-nav a { white-space: nowrap; padding: .5rem .7rem; border-radius: 8px; font-weight: 600; font-size: .92rem; color: var(--ink-700); }
.site-nav a:hover { background: var(--ink-100); text-decoration: none; color: var(--ink-900); }
.site-nav a.active { color: var(--green-800); background: var(--green-50); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: .45rem; cursor: pointer; color: var(--ink-800); }
@media (max-width: 1024px) {
  .site-nav, .header-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .container { min-height: 64px; }
}
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 950; background: rgba(15,23,42,.5); }
.mobile-nav.open { display: block; }
.mobile-nav-panel { position: absolute; top: 0; right: 0; width: min(320px, 88vw); height: 100%; background: #fff; padding: 1.25rem; overflow-y: auto; display: flex; flex-direction: column; gap: .25rem; animation: slideIn .2s ease; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.mobile-nav-panel a { padding: .75rem .9rem; border-radius: 8px; font-weight: 600; color: var(--ink-800); display: flex; align-items: center; gap: .75rem; }
.mobile-nav-panel a:hover, .mobile-nav-panel a.active { background: var(--green-50); color: var(--green-800); text-decoration: none; }
.mobile-nav-panel .mobile-actions { margin-top: auto; display: grid; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 80% -10%, rgba(201,162,39,.25), transparent 60%), linear-gradient(160deg, var(--green-950) 0%, var(--green-800) 60%, var(--green-700) 100%); color: #fff; }
.hero::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0v60M0 30h60' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E"); pointer-events: none; }
.hero .container { position: relative; z-index: 1; padding-block: 5rem; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .35rem .9rem; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-400); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 4.5vw, 3.4rem); color: #fff; margin: 1.1rem 0 1rem; line-height: 1.15; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero p.lead { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 900px) { .hero .container { padding-block: 3.5rem; } }

/* Sections */
.section { padding-block: 4.5rem; }
section[id] { scroll-margin-top: 80px; }
.section-alt { background: var(--ink-50); }
.section-dark { background: var(--green-900); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; color: var(--gold-600); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; }
.section-dark .eyebrow { color: var(--gold-400); }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-dark .section-head p { color: rgba(255,255,255,.75); }
.section-foot { text-align: center; margin-top: 2.25rem; }
@media (max-width: 640px) { .section { padding-block: 3rem; } }

.feature-card { padding: 1.75rem; height: 100%; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; margin-bottom: 1rem; }
.feature-icon .icon { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .95rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-visual { background: linear-gradient(145deg, var(--green-50), var(--gold-50)); border-radius: var(--radius-xl); padding: 2.5rem; border: 1px solid var(--border); }
.about-visual .quote { font-family: var(--font-display); font-size: 1.35rem; color: var(--green-900); line-height: 1.45; margin: 0; }
.about-visual .quote-by { margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.checklist li { display: flex; align-items: flex-start; gap: .6rem; }
.checklist .icon { color: var(--green-600); margin-top: 3px; width: 18px; height: 18px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.mv-card { padding: 2rem; border-radius: var(--radius-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.mv-card .feature-icon { background: rgba(255,255,255,.1); color: var(--gold-400); }
.mv-card p { color: rgba(255,255,255,.8); margin: 0; }

/* Announcements / events cards */
.post-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.post-card .post-img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--ink-100); }
.post-card .post-img-placeholder { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--green-50), var(--green-100)); display: grid; place-items: center; color: var(--green-600); }
.post-card .card-body { display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-meta { display: flex; align-items: center; gap: .75rem; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.post-meta .icon { width: 14px; height: 14px; }
.post-card h3 { font-size: 1.1rem; margin: 0; }
.post-card h3 a { color: var(--ink-900); }
.post-card p { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .read-more { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; margin-top: .25rem; }
.event-date-badge { width: 60px; border-radius: 10px; background: var(--green-800); color: #fff; text-align: center; padding: .45rem 0; line-height: 1.1; flex-shrink: 0; }
.event-date-badge .d { font-size: 1.4rem; font-weight: 800; }
.event-date-badge .m { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-400); }
.event-row { display: flex; gap: 1rem; align-items: flex-start; }

/* Office bearers */
.bearer-card { text-align: center; padding: 1.75rem 1.25rem; }
.bearer-card .avatar { margin: 0 auto 1rem; width: 104px; height: 104px; font-size: 1.8rem; border: 3px solid var(--gold-100); box-shadow: 0 0 0 4px var(--green-50); }
.bearer-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.bearer-card .position { color: var(--gold-600); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.bearer-card .contact { margin-top: .75rem; display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.bearer-card .contact a { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--ink-600); background: var(--ink-100); padding: .3rem .7rem; border-radius: 999px; }
.bearer-card .contact a:hover { background: var(--green-50); color: var(--green-800); text-decoration: none; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--green-800), var(--green-600)); color: #fff; border-radius: var(--radius-xl); padding: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(201,162,39,.25); }
.cta h2 { color: #fff; font-family: var(--font-display); font-size: 1.9rem; margin-bottom: .4rem; }
.cta p { color: rgba(255,255,255,.85); margin: 0; max-width: 560px; }
.cta > * { position: relative; }

/* Contact */
.contact-info { display: grid; gap: 1.25rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .feature-icon { margin: 0; width: 44px; height: 44px; }
.contact-item h4 { margin-bottom: .15rem; }
.contact-item p, .contact-item a { margin: 0; color: var(--ink-600); }

/* Page header for inner pages */
.page-hero { background: linear-gradient(160deg, var(--green-950), var(--green-800)); color: #fff; padding-block: 3.25rem; }
.page-hero h1 { color: #fff; font-family: var(--font-display); font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: .35rem; }
.page-hero p { color: rgba(255,255,255,.8); margin: 0; max-width: 640px; }
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: .75rem; display: flex; gap: .4rem; }
.breadcrumb a { color: rgba(255,255,255,.85); }

/* Article */
.article { max-width: 820px; margin: 0 auto; }
.article-img { border-radius: var(--radius-lg); width: 100%; max-height: 460px; object-fit: cover; margin-bottom: 1.75rem; }
.article h1 { font-size: 2rem; }
.article .prose { font-size: 1.05rem; white-space: pre-wrap; }

/* Footer */
.site-footer { position: relative; background: linear-gradient(160deg, var(--green-950), var(--green-900)); color: rgba(255,255,255,.72); padding-top: 3rem; font-size: .92rem; }
.site-footer::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--gold-600), var(--gold-400), var(--gold-600)); }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.footer-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2.5rem; padding-bottom: 2.25rem; }
.footer-brand .brand-title { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,.6); }
.footer-tagline { margin: 0; max-width: 560px; line-height: 1.6; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.85); transition: background .15s, color .15s, border-color .15s, transform .15s; }
.footer-social a:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--green-950); transform: translateY(-2px); }
.footer-social .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.25rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-legal a:hover { color: var(--gold-400); text-decoration: underline; }
.footer-bottom .powered-by { color: rgba(255,255,255,.85); font-weight: 600; text-decoration: none; }
.footer-bottom .powered-by:hover { color: var(--gold-400); text-decoration: underline; }
@media (max-width: 760px) { .footer-main { grid-template-columns: 1fr; gap: 1.25rem; padding-bottom: 1.75rem; } .footer-bottom { justify-content: center; text-align: center; } }

/* Legal pages */
.legal h2 { font-size: 1.25rem; color: var(--green-900); margin: 2rem 0 .6rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul { padding-left: 1.3rem; margin: 0 0 1em; }
.legal li { margin-bottom: .4rem; }
.legal-updated { display: inline-flex; align-items: center; gap: .5rem; background: var(--green-50); color: var(--green-800); border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; font-weight: 600; margin-bottom: 1.75rem; }
.legal-updated .icon { width: 16px; height: 16px; }
.legal-back { margin-top: 2.5rem; }

/* Auth pages */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(160deg, var(--green-950), var(--green-800)); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .brand-title, .auth-side .brand-sub { color: #fff; }
.auth-side .brand-sub { color: rgba(255,255,255,.7); }
.auth-side h2 { color: #fff; font-family: var(--font-display); font-size: 2rem; margin-top: 3rem; }
.auth-side p { color: rgba(255,255,255,.8); max-width: 420px; }
.auth-side .checklist li { color: rgba(255,255,255,.9); }
.auth-side .checklist .icon { color: var(--gold-400); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; background: var(--ink-50); }
.auth-card { width: 100%; max-width: 440px; padding: 2.25rem; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: .25rem; }
.auth-card .lead { color: var(--muted); margin-bottom: 1.5rem; }
.auth-links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; margin-top: 1.25rem; }
.auth-card .brand { margin-bottom: 1.5rem; }
@media (max-width: 900px) { .auth-page { grid-template-columns: 1fr; } .auth-side { display: none; } }
@media (max-width: 480px) { .auth-card { padding: 1.5rem; } }

/* Registration */
.register-wrap { max-width: 860px; margin: 0 auto; }
.steps { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.step { flex: 1; text-align: center; padding: .6rem .5rem; border-radius: 8px; background: var(--ink-100); font-size: .82rem; font-weight: 600; color: var(--ink-500); display: flex; align-items: center; justify-content: center; gap: .4rem; }
.step.active { background: var(--green-800); color: #fff; }
.step.done { background: var(--green-100); color: var(--green-800); }
.step .n { width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.12); display: inline-grid; place-items: center; font-size: .72rem; }
.success-panel { text-align: center; padding: 2rem 1rem; }
.success-panel .feature-icon { margin: 0 auto 1.25rem; width: 72px; height: 72px; border-radius: 50%; background: var(--green-100); }
.success-panel .feature-icon .icon { width: 36px; height: 36px; }

@media (max-width: 480px) { .site-header .brand-sub { white-space: normal; font-size: .62rem; line-height: 1.1; } .site-header .brand-mark { width: 40px; height: 40px; } }

/* Office bearers: 2×2 grid of compact cards on phones */
@media (max-width: 640px) {
  .bearers-grid { grid-template-columns: 1fr 1fr !important; gap: .7rem; }
  .bearer-card { padding: 1.1rem .7rem; }
  .bearer-card .avatar { width: 68px; height: 68px; font-size: 1.3rem; margin-bottom: .6rem; }
  .bearer-card h3 { font-size: .92rem; }
  .bearer-card .position { font-size: .7rem; letter-spacing: .04em; }
  .bearer-card .small { font-size: .74rem; }
  .bearer-card .contact { gap: .35rem; margin-top: .5rem; }
  .bearer-card .contact a { font-size: .74rem; padding: .3rem .55rem; }
}
