/*
Theme Name: NAPS California Branch 905
Description: Custom WordPress theme for NAPS California State Branch 905. Content, slides, officers, events, documents, forms, payments and members are all managed from the dashboard.
Author: Information Design Consultants Inc.
Version: 2.0
Text Domain: naps905
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #003087; --blue-light: #004db3; --blue-dark: #001f5c;
  --red: #C8102E; --gold: #b8860b; --gold-light: #f0c040;
  --dark: #2D2D2D; --bg: #F5F5F5; --white: #fff;
  --border: #dde1e9; --muted: #6b7280;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); background: var(--bg); font-size: 15px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { cursor: pointer; }

/* UTIL BAR */
.util-bar { background: var(--blue-dark); color: rgba(255,255,255,.75); font-size: 12px; font-family: var(--font-head); padding: 6px 0; }
.util-bar .container { display: flex; justify-content: space-between; align-items: center; }
.util-bar a { color: rgba(255,255,255,.75); text-decoration: none; margin-left: 16px; transition: color .2s; }
.util-bar a:hover { color: var(--gold-light); }
.member-btn { background: var(--red) !important; color: #fff !important; padding: 3px 12px; border-radius: 3px; font-weight: 600 !important; font-size: 11px !important; letter-spacing: .05em; text-transform: uppercase; }
.member-btn:hover { background: #a00c24 !important; }
.util-bar input::placeholder { color: rgba(255,255,255,.5); }
.util-bar input:focus { outline: none; border-color: var(--gold-light); }

/* HEADER */
header { background: var(--blue); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 68px; }
.logo-area { display: flex; align-items: center; gap: 14px; text-decoration: none; cursor: pointer; }
.logo-shield { width: 46px; height: 52px; background: #fff; clip-path: polygon(50% 0%,100% 15%,100% 75%,50% 100%,0% 75%,0% 15%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-shield span { font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--blue); line-height: 1; text-align: center; }
.site-logo-img { height: 52px; width: auto; max-width: 170px; object-fit: contain; flex-shrink: 0; }
.logo-text { color: #fff; }
.logo-text .org { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.logo-text .branch { font-size: 11px; color: rgba(255,255,255,.7); letter-spacing: .08em; text-transform: uppercase; margin-top: 1px; }
nav { display: flex; align-items: stretch; height: 68px; }
nav ul { display: flex; align-items: stretch; height: 68px; list-style: none; }
nav a { display: flex; align-items: center; color: rgba(255,255,255,.88); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 12.5px; letter-spacing: .04em; padding: 0 13px; transition: background .2s, color .2s; border-bottom: 3px solid transparent; white-space: nowrap; cursor: pointer; }
nav a:hover { background: rgba(255,255,255,.1); color: var(--gold-light); border-bottom-color: var(--gold-light); }
nav li.current-menu-item > a, nav a.active { color: #fff; border-bottom-color: var(--gold-light); }
nav a.nav-members, nav li.menu-members > a { background: var(--red); color: #fff; margin-left: 8px; padding: 0 14px; }
nav a.nav-members:hover, nav li.menu-members > a:hover { background: #a00c24; border-bottom-color: transparent; }
.menu-toggle { display: none; }

/* PAGE CONTENT */
#page-content { min-height: 60vh; }

/* BREADCRUMB */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 12px; font-family: var(--font-head); color: var(--muted); }
.breadcrumb a { color: var(--blue); text-decoration: none; cursor: pointer; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* PAGE HERO (interior) */
.page-hero { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #1a4f8c 100%); color: #fff; padding: 40px 0 36px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%); }
.page-hero .page-tag { font-family: var(--font-head); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; margin-bottom: 6px; }
.page-hero h1 { font-family: var(--font-head); font-size: 30px; font-weight: 800; line-height: 1.2; }
.page-hero p { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 6px; max-width: 600px; }

/* SUB-NAV */
.sub-nav { background: #fff; border-bottom: 2px solid var(--border); }
.sub-nav-inner { display: flex; gap: 0; }
.sub-nav a { display: inline-block; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .05em; color: var(--muted); text-decoration: none; padding: 14px 20px; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; cursor: pointer; white-space: nowrap; }
.sub-nav a:hover { color: var(--blue); }
.sub-nav a.active { color: var(--blue); border-bottom-color: var(--gold); }

/* CONTAINER */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-tag { font-family: var(--font-head); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 6px; }
.section-h2 { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--blue-dark); line-height: 1.2; margin-bottom: 8px; }
.rule { width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 32px; }

/* CALIFORNIA BANNER */
.ca-banner { height: 200px; background: linear-gradient(135deg,#001a4a 0%,#003087 40%,#1a4f8c 70%,#2d6eaa 100%); position: relative; overflow: hidden; display: flex; align-items: center; }
.skyline-svg { position: absolute; bottom: 0; left: 0; right: 0; height: 130px; width: 100%; }
.ca-star { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); opacity: .1; font-size: 160px; font-family: var(--font-head); font-weight: 800; color: var(--gold-light); pointer-events: none; }
.banner-content { position: relative; z-index: 2; padding: 0 40px; color: #fff; }
.banner-label { font-family: var(--font-head); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px; }
.banner-h1 { font-family: var(--font-head); font-size: 32px; font-weight: 800; line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.banner-sub { font-size: 14px; color: rgba(255,255,255,.8); margin-top: 6px; }

/* CAROUSEL */
.carousel { position: relative; background: #111; overflow: hidden; height: 400px; }
.slide { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; transition: opacity .8s ease; padding: 44px; }
.slide.active { opacity: 1; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,.72) 0%,rgba(0,0,0,.1) 60%); }
.slide-content { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.slide-label { font-family: var(--font-head); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px; }
.slide-content h2 { font-family: var(--font-head); font-size: 28px; font-weight: 800; line-height: 1.2; }
.slide-content p { font-size: 14px; color: rgba(255,255,255,.85); margin-top: 8px; }
.slide-cta { display: inline-block; margin-top: 16px; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 9px 22px; text-decoration: none; border-radius: 3px; cursor: pointer; }
.slide-cta:hover { background: #a00c24; }
.carousel-dots { position: absolute; bottom: 16px; right: 44px; display: flex; gap: 8px; z-index: 10; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; border: none; transition: background .3s, transform .3s; }
.dot.active { background: var(--gold-light); transform: scale(1.25); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 16px; cursor: pointer; z-index: 10; transition: background .2s; display: flex; align-items: center; justify-content: center; }
.carousel-btn:hover { background: rgba(255,255,255,.3); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.slide-1 .slide-bg { background: linear-gradient(135deg,#1a3a6b,#0a2444); }
.slide-2 .slide-bg { background: linear-gradient(135deg,#0a2444,#14395e,#1a5080); }
.slide-3 .slide-bg { background: linear-gradient(135deg,#1f1f3a,#2a2a5a); }
.slide-4 .slide-bg { background: linear-gradient(135deg,#1a3020,#2a4a30); }
.slide-5 .slide-bg { background: linear-gradient(135deg,#3a1a1a,#5a2020); }

/* QUICK LINKS */
.quicklinks { background: var(--blue); }
.quicklinks-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.ql-item { display: flex; align-items: center; gap: 12px; padding: 16px 20px; color: rgba(255,255,255,.88); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 13px; border-right: 1px solid rgba(255,255,255,.12); transition: background .2s, color .2s; cursor: pointer; }
.ql-item:last-child { border-right: none; }
.ql-item:hover { background: rgba(255,255,255,.1); color: var(--gold-light); }
.ql-icon { width: 34px; height: 34px; flex-shrink: 0; background: rgba(255,255,255,.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.ql-label .main { display: block; }
.ql-label .sub { display: block; font-size: 10px; font-weight: 400; color: rgba(255,255,255,.5); margin-top: 1px; }

/* PRESIDENT MESSAGE */
.president-inner { display: grid; grid-template-columns: 240px 1fr; gap: 52px; align-items: start; }
.president-photo { width: 190px; height: 190px; border-radius: 50%; background: linear-gradient(135deg,#c8d8f0,#a0bfe8); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; border: 4px solid var(--blue); overflow: hidden; position: relative; }
.president-photo::after { content: '👤'; font-size: 76px; position: absolute; bottom: -10px; opacity: .5; }
.president-photo.has-photo { background: none; }
.president-photo.has-photo::after { content: none; }
.president-photo img { width: 100%; height: 100%; object-fit: cover; }
.president-name { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--blue-dark); text-align: center; }
.president-title { font-size: 12px; color: var(--muted); margin-top: 2px; text-align: center; }
.president-msg blockquote { font-size: 17px; font-style: italic; color: var(--blue); border-left: 4px solid var(--gold); padding-left: 20px; margin-bottom: 20px; line-height: 1.5; font-family: var(--font-head); font-weight: 600; }
.president-msg p { color: #444; line-height: 1.8; margin-bottom: 14px; }

/* EVENT CARDS */
.events-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.event-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.event-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.event-date-bar { background: var(--blue); color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 14px; }
.event-date-box { background: rgba(255,255,255,.15); border-radius: 6px; width: 48px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.event-date-box .month { font-family: var(--font-head); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.event-date-box .day { font-family: var(--font-head); font-size: 22px; font-weight: 800; line-height: 1; }
.event-type-badge { font-family: var(--font-head); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.event-body { padding: 16px 18px; }
.event-body h3 { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--blue-dark); margin-bottom: 6px; }
.event-meta { font-size: 12px; color: var(--muted); margin-bottom: 12px; display: flex; flex-direction: column; gap: 3px; }
.register-btn { display: inline-block; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 16px; border-radius: 4px; text-decoration: none; transition: background .2s; cursor: pointer; border: none; }
.register-btn:hover { background: #a00c24; }

/* NEWS CARDS */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.news-img { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 36px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-img-1 { background: linear-gradient(135deg,#e8f0ff,#c0d4f8); }
.news-img-2 { background: linear-gradient(135deg,#fff0e8,#ffd0b0); }
.news-img-3 { background: linear-gradient(135deg,#e8fff0,#b0f0c8); }
.news-img-4 { background: linear-gradient(135deg,#fff8e8,#ffe8a0); }
.news-img-5 { background: linear-gradient(135deg,#f8e8ff,#e0b0f8); }
.news-img-6 { background: linear-gradient(135deg,#e8f8ff,#b0e0f8); }
.news-body { padding: 18px; }
.news-cat { font-family: var(--font-head); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.news-body h3 { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; line-height: 1.35; }
.news-body p { font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 12px; }
.news-meta { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.news-link { font-family: var(--font-head); font-size: 12px; font-weight: 700; color: var(--blue); text-decoration: none; letter-spacing: .04em; cursor: pointer; }
.news-link:hover { color: var(--red); }

/* VIEW ALL */
.view-all { text-align: center; margin-top: 32px; }
.view-all-btn { display: inline-block; border: 2px solid var(--blue); color: var(--blue); font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 28px; text-decoration: none; border-radius: 4px; transition: background .2s, color .2s; cursor: pointer; }
.view-all-btn:hover { background: var(--blue); color: #fff; }

/* CTA BANNER */
.cta-strip { background: linear-gradient(135deg,var(--blue-dark) 0%,var(--blue) 60%,#1a4f8c 100%); padding: 60px 0; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-strip::before { content: 'CA'; position: absolute; font-family: var(--font-head); font-size: 280px; font-weight: 800; color: rgba(255,255,255,.04); top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.cta-strip h2 { font-family: var(--font-head); font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.cta-strip p { font-size: 15px; color: rgba(255,255,255,.8); max-width: 540px; margin: 0 auto 26px; }
.cta-btn { display: inline-block; background: var(--gold); color: var(--blue-dark); font-family: var(--font-head); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 13px 32px; border-radius: 4px; text-decoration: none; transition: background .2s; margin: 0 8px; cursor: pointer; }
.cta-btn:hover { background: var(--gold-light); }
.cta-btn.outline { background: transparent; border: 2px solid rgba(255,255,255,.5); color: #fff; }
.cta-btn.outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* FOOTER */
footer { background: #1a1f2e; color: rgba(255,255,255,.75); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.6); margin-top: 14px; }
.footer-contact { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.8; }
footer h4 { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.65); text-decoration: none; font-size: 13px; transition: color .2s; cursor: pointer; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding: 14px 0; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: rgba(255,255,255,.35); }
.footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; }

/* OFFICERS GRID */
.officers-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.officer-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px; text-align: center; transition: box-shadow .2s, transform .2s; }
.officer-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.officer-photo { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg,#c8d8f0,#a0bfe8); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 32px; border: 3px solid var(--blue); overflow: hidden; position: relative; }
.officer-photo::after { content: '👤'; font-size: 44px; position: absolute; bottom: -6px; opacity: .45; }
.officer-photo.has-photo { background: none; }
.officer-photo.has-photo::after { content: none; }
.officer-photo img { width: 100%; height: 100%; object-fit: cover; }
.officer-name { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--blue-dark); margin-bottom: 3px; }
.officer-title { font-size: 12px; color: var(--red); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.officer-district { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.officer-email { font-size: 12px; color: var(--blue); text-decoration: none; font-family: var(--font-head); font-weight: 600; }

/* DOCUMENT LIBRARY */
.doc-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.doc-filter-btn { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; transition: all .2s; }
.doc-filter-btn:hover, .doc-filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.doc-search { display: flex; gap: 10px; margin-bottom: 20px; }
.doc-search input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 14px; outline: none; font-family: var(--font-body); }
.doc-search input:focus { border-color: var(--blue); }
.doc-table { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.doc-table-head { display: grid; grid-template-columns: 1fr 140px 100px 110px; background: var(--blue-dark); color: rgba(255,255,255,.7); font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 11px 20px; }
.doc-row { display: grid; grid-template-columns: 1fr 140px 100px 110px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--border); transition: background .2s; }
.doc-row:last-child { border-bottom: none; }
.doc-row:hover { background: #f8faff; }
.doc-name { font-size: 13px; color: var(--dark); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.doc-cat-badge { font-family: var(--font-head); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; }
.doc-cat-convention { background: #e8f0ff; color: #003087; }
.doc-cat-forms { background: #fff0e0; color: #8a4a00; }
.doc-cat-bylaws { background: #e8ffe8; color: #1a6b1a; }
.doc-cat-minutes { background: #fff0f0; color: #8a1a1a; }
.doc-cat-legislative { background: #f0e8ff; color: #4a1a8a; }
.doc-date { font-size: 12px; color: var(--muted); }
.doc-download { font-family: var(--font-head); font-size: 11px; font-weight: 700; color: var(--blue); text-decoration: none; letter-spacing: .04em; cursor: pointer; }
.doc-download:hover { color: var(--red); }
.doc-locked { font-size: 12px; color: var(--muted); font-family: var(--font-head); }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.gallery-card { border-radius: 8px; overflow: hidden; position: relative; cursor: pointer; aspect-ratio: 4/3; }
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,30,80,.75); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; color: #fff; }
.gallery-overlay span { font-family: var(--font-head); font-weight: 700; font-size: 13px; margin-top: 8px; }
.gallery-overlay em { font-size: 11px; opacity: .7; font-style: normal; }

/* MEMBERS PORTAL */
.portal-grid { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; }
.login-panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.login-panel h2 { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--blue-dark); margin-bottom: 6px; }
.login-panel .login-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.field-group { margin-bottom: 18px; }
.field-group label { display: block; font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dark); margin-bottom: 6px; }
.field-group input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 14px; outline: none; font-family: var(--font-body); transition: border-color .2s; }
.field-group input:focus { border-color: var(--blue); }
.login-submit { width: 100%; background: var(--blue); color: #fff; border: none; border-radius: 6px; padding: 13px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; margin-top: 8px; transition: background .2s; }
.login-submit:hover { background: var(--blue-light); }
.login-footer { text-align: center; margin-top: 14px; font-size: 12px; color: var(--muted); }
.login-footer a { color: var(--blue); text-decoration: none; cursor: pointer; }
.portal-benefits h3 { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--blue-dark); margin-bottom: 16px; }
.portal-benefit-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; }
.benefit-icon { width: 40px; height: 40px; background: #e8f0ff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.benefit-title { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--blue-dark); margin-bottom: 3px; }
.benefit-desc { font-size: 12px; color: var(--muted); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.contact-form-wrap { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.contact-form-wrap h2 { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--blue-dark); margin-bottom: 6px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dark); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 14px; outline: none; font-family: var(--font-body); transition: border-color .2s; background: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { height: 100px; resize: none; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.submit-btn { background: var(--blue); color: #fff; border: none; border-radius: 6px; padding: 12px 32px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.submit-btn:hover { background: var(--blue-light); }
.contact-sidebar { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 22px; }
.contact-info-card h3 { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.contact-info-card .officer-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.contact-info-card .officer-row:last-child { border-bottom: none; }
.contact-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e8f0ff; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; border: 2px solid var(--blue); }
.officer-info .oname { font-family: var(--font-head); font-weight: 700; font-size: 12px; color: var(--blue-dark); }
.officer-info .otitle { font-size: 11px; color: var(--muted); }

/* JOIN PAGE */
.join-hero-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin: 32px 0; }
.stat-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 20px; text-align: center; }
.stat-card .stat-num { font-family: var(--font-head); font-size: 32px; font-weight: 800; color: var(--gold-light); }
.stat-card .stat-label { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 4px; font-family: var(--font-head); }
.benefits-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.benefit-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.benefit-card-icon { width: 48px; height: 48px; background: #e8f0ff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.benefit-card h3 { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--blue-dark); margin-bottom: 6px; }
.benefit-card p { font-size: 13px; color: #555; line-height: 1.6; }
.join-cta-box { background: var(--blue); color: #fff; border-radius: 12px; padding: 40px; text-align: center; margin-top: 40px; }
.join-cta-box h2 { font-family: var(--font-head); font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.join-cta-box p { color: rgba(255,255,255,.8); margin-bottom: 24px; font-size: 14px; }

/* HISTORY */
.history-content { max-width: 800px; }
.history-content p { color: #444; line-height: 1.9; margin-bottom: 20px; font-size: 15px; }
.history-timeline { margin: 40px 0; }
.timeline-item { display: flex; gap: 24px; margin-bottom: 28px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: 48px; top: 36px; bottom: -28px; width: 2px; background: var(--border); }
.timeline-item:last-child::before { display: none; }
.timeline-year { font-family: var(--font-head); font-weight: 800; font-size: 14px; color: #fff; background: var(--blue); border-radius: 6px; padding: 6px 12px; height: fit-content; white-space: nowrap; flex-shrink: 0; position: relative; z-index: 1; }
.timeline-item h4 { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--blue-dark); margin-bottom: 4px; }
.timeline-item p { font-size: 13px; color: #555; line-height: 1.7; }

/* EVENT LIST PAGE */
.event-list-filters { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.event-list { display: flex; flex-direction: column; gap: 14px; }
.event-list-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; display: grid; grid-template-columns: 80px 1fr auto; gap: 20px; align-items: center; padding: 16px 20px; transition: box-shadow .2s; }
.event-list-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.event-list-date { text-align: center; }
.event-list-date .month { font-family: var(--font-head); font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .1em; }
.event-list-date .day { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--blue); line-height: 1; }
.event-list-date .year { font-size: 11px; color: var(--muted); }
.event-list-body h3 { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--blue-dark); margin-bottom: 4px; }
.event-list-body .meta { font-size: 12px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.event-type-pill { font-family: var(--font-head); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; }
.pill-meeting { background: #e8f0ff; color: #003087; }
.pill-convention { background: #ffe8e8; color: #8a1a1a; }
.pill-training { background: #e8ffe8; color: #1a6b1a; }
.pill-legislative { background: #f0e8ff; color: #4a1a8a; }

/* NEWS SINGLE */
.news-single { max-width: 800px; }
.news-single .back-btn { font-family: var(--font-head); font-size: 12px; font-weight: 700; color: var(--blue); cursor: pointer; text-decoration: none; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.news-single .back-btn:hover { color: var(--red); }
.news-single-cat { font-family: var(--font-head); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.news-single h1 { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--blue-dark); line-height: 1.25; margin-bottom: 12px; }
.news-single .byline { font-size: 13px; color: var(--muted); margin-bottom: 28px; border-bottom: 2px solid var(--border); padding-bottom: 20px; }
.news-single .body p { color: #333; line-height: 1.9; margin-bottom: 18px; font-size: 15px; }

/* BYLAW TABLE */
.bylaw-section { background: #fff; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.bylaw-header { background: var(--blue-dark); color: #fff; padding: 14px 20px; font-family: var(--font-head); font-weight: 700; font-size: 13px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.bylaw-header span { font-size: 11px; color: rgba(255,255,255,.5); }
.bylaw-body { padding: 18px 20px; font-size: 14px; color: #444; line-height: 1.8; display: none; }
.bylaw-body.open { display: block; }

/* ABOUT SUB-TABS (client-side, single page) */
.about-tab-panel { display: none; }
.about-tab-panel.active { display: block; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; }
  nav, nav ul { height: auto; flex-wrap: wrap; }
  .president-inner, .portal-grid, .contact-grid { grid-template-columns: 1fr; }
  .events-grid, .news-grid, .officers-grid, .gallery-grid, .benefits-grid { grid-template-columns: 1fr; }
  .quicklinks-inner { grid-template-columns: repeat(2,1fr); }
  .join-hero-stats { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-2col { grid-template-columns: 1fr; }
  .doc-table-head, .doc-row { grid-template-columns: 1fr; gap: 4px; }
}


/* ==========================================================================
   v2.0 ADDITIONS
   ========================================================================== */

/* Accessibility */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold-light); color: var(--blue-dark); padding: 10px 16px; font-family: var(--font-head); font-weight: 700; z-index: 1000; text-decoration: none; }
.skip-link:focus { left: 8px; top: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; box-shadow: 0 0 0 1px var(--blue-dark); }
main#page-content { display: block; }

/* Home banner emblem */
.ca-emblem { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); z-index: 2; }
.ca-emblem img { height: 150px; width: auto; max-width: 260px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); }
h1.banner-h1 { margin: 0; }

/* President section */
.president-inner.no-photo { grid-template-columns: 1fr; }
.president-text { color: #444; line-height: 1.8; margin-bottom: 18px; }
.president-text p { margin-bottom: 14px; }
.president-text blockquote { font-size: 17px; font-style: italic; color: var(--blue); border-left: 4px solid var(--gold); padding-left: 20px; margin: 0 0 20px; line-height: 1.5; font-family: var(--font-head); font-weight: 600; }

/* News cards are links now */
a.news-img { text-decoration: none; color: inherit; }
.pagination a, .pagination span { display: inline-block; padding: 6px 12px; margin: 0 3px; border: 1.5px solid var(--border); border-radius: 4px; font-family: var(--font-head); font-size: 12px; font-weight: 700; color: var(--blue); text-decoration: none; background: #fff; }
.pagination span.current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Filter buttons (links and real buttons look the same) */
.doc-filter-btn { text-decoration: none; display: inline-block; font-family: var(--font-head); line-height: 1.4; }
button.doc-filter-btn { appearance: none; }
a.doc-filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Form messages */
.form-notice { padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 20px; border: 1px solid; line-height: 1.5; }
.form-notice-ok   { background: #e8f6ec; border-color: #9fd3ad; color: #14532d; }
.form-notice-warn { background: #fff7e0; border-color: #f0d98a; color: #6b4e00; }
.form-notice-err  { background: #fdeaea; border-color: #f0b4b4; color: #7f1d1d; }
.login-panel .form-notice { margin-bottom: 16px; }

/* Events: registration */
.event-desc { font-size: 13px; color: #555; margin-top: 6px; }
.event-desc p { margin: 0 0 6px; }
.reg-box { margin-top: 14px; }
.reg-box summary { list-style: none; cursor: pointer; display: inline-block; }
.reg-box summary::-webkit-details-marker { display: none; }
.reg-box[open] summary { margin-bottom: 14px; }
.reg-form { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 18px; }
.past-events summary { list-style: none; display: inline-block; }
.past-events summary::-webkit-details-marker { display: none; }
.event-list-item[hidden] { display: none; }

/* Document library */
.doc-row[hidden] { display: none; }
.doc-cat-reports { background: #e8f8f8; color: #0b5c5c; }

/* Gallery albums */
a.gallery-card { display: block; text-decoration: none; color: inherit; }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; }
.album-modal { display: none; position: fixed; inset: 0; background: rgba(0,20,60,.88); z-index: 500; align-items: flex-start; justify-content: center; overflow: auto; padding: 40px 16px; }
.album-modal:target { display: flex; }
.album-modal-inner { background: #fff; border-radius: 10px; max-width: 980px; width: 100%; padding: 28px; position: relative; }
.album-close { position: absolute; top: 14px; right: 18px; font-family: var(--font-head); font-weight: 700; font-size: 12px; color: var(--blue); text-decoration: none; letter-spacing: .06em; text-transform: uppercase; }
.album-body img { max-width: 100%; height: auto; border-radius: 6px; }
.album-body .wp-block-gallery, .album-body .gallery { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.album-body .wp-block-gallery figure, .album-body .gallery-item { flex: 1 1 220px; margin: 0; }

/* Contact avatars may hold a real photo */
.contact-avatar { overflow: hidden; }

/* Navigation drop-downs (nest a page under another in Appearance > Menus) */
nav li { position: relative; display: flex; }
nav ul ul { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; height: auto; flex-direction: column; background: var(--blue-dark); box-shadow: 0 8px 20px rgba(0,0,0,.3); z-index: 200; }
nav li:hover > ul, nav li:focus-within > ul { display: flex; }
nav ul ul li { display: block; }
nav ul ul a { height: auto; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); white-space: normal; }
nav .menu-item-has-children > a::after { content: '▾'; font-size: 10px; margin-left: 6px; opacity: .8; }

@media (max-width: 900px) {
  .ca-emblem { display: none; }
  nav ul ul { position: static; display: flex; box-shadow: none; background: rgba(0,0,0,.15); }
  nav li { display: block; }
  .album-modal-inner { padding: 20px; }
  .event-list-item { grid-template-columns: 1fr; }
}

/* Officer photos: larger circle, keep faces in frame */
.officer-photo { width: 130px; height: 130px; }
.officer-photo::after { font-size: 70px; }
.officer-photo img { object-fit: cover; object-position: center 20%; }

/* Portraits: tall rounded frame so the whole face and hair show (no circle crop) */
.officer-photo { width: 160px; height: 200px; border-radius: 16px; }
.officer-photo img { object-position: center top; }
.president-photo { width: 260px; height: 325px; border-radius: 20px; }
.president-photo img { object-position: center top; }
.contact-avatar img { object-position: center top; }

/* Honoree text keeps the paragraphs as typed */
.honoree-text { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; line-height: 1.5; }
.honoree-text p { margin: 0 0 6px; }

/* Contact tab officer thumbnails: never stretch the photo */
.contact-avatar { width: 52px; height: 52px; }
.contact-avatar img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center top; display: block; }

/* Member sign-in form (output by wp_login_form) */
.login-panel form p { margin: 0 0 18px; }
.login-panel form label { display: block; font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dark); margin-bottom: 6px; }
.login-panel form input[type="text"], .login-panel form input[type="password"], .login-panel form input.input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 15px; font-family: var(--font-body); background: #fff; color: var(--dark); outline: none; transition: border-color .2s, box-shadow .2s; }
.login-panel form input[type="text"]:focus, .login-panel form input[type="password"]:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,50,130,.15); }
.login-panel form .login-remember { margin-bottom: 20px; }
.login-panel form .login-remember label { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); margin: 0; cursor: pointer; }
.login-panel form .login-remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
/* wp_login_form wraps the button in p.login-submit: undo the old button styling on the wrapper */
.login-panel form p.login-submit { background: none; border: 0; padding: 0; margin: 0; width: auto; }
.login-panel form input[type="submit"], .login-panel form .button-primary { display: block; width: 100%; box-sizing: border-box; background: var(--blue); color: #fff; border: 0; border-radius: 6px; padding: 14px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.login-panel form input[type="submit"]:hover { background: var(--blue-light); }
.login-panel h2 { margin-bottom: 8px; }
.login-footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
