/* APA public events: scoped styles, no changes to site navigation or footer */
.apa-showcase{position:relative;isolation:isolate;margin:10px 0 32px;padding:clamp(24px,4vw,44px);border-radius:24px;border:1px solid rgba(126,224,255,.25);background:radial-gradient(ellipse at 88% 0%,rgba(128,70,255,.28),transparent 48%),radial-gradient(ellipse at 0% 95%,rgba(0,208,207,.17),transparent 54%),linear-gradient(120deg,#112b49,#121a37 70%);box-shadow:0 20px 55px rgba(0,0,0,.18)}
.apa-showcase:before{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(105deg,rgba(83,221,246,.09),transparent 55%,rgba(250,108,186,.06));z-index:-1}
.apa-showcase-kicker{color:#78e9f6;font-size:.78rem;letter-spacing:.18em;font-weight:800;text-transform:uppercase;margin:0 0 12px}
.apa-showcase h2{color:#fff;font-size:clamp(1.6rem,3.3vw,2.6rem);line-height:1.18;margin:0 0 10px}
.apa-showcase p:last-child{color:#c8d9ed;margin:0;max-width:760px;line-height:1.65}
.apa-events-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:24px;margin:0 0 30px}
.apa-event-tile{--accent:#39d8f1;--accent2:#a579ff;position:relative;overflow:hidden;border-radius:22px;border:1px solid rgba(157,185,222,.3);background:linear-gradient(155deg,#1a304e 0%,#111e33 78%);box-shadow:0 16px 40px rgba(0,0,0,.23);transition:transform .2s ease,box-shadow .2s ease;overflow-wrap:anywhere}
.apa-event-tile:nth-child(3n+2){--accent:#ffb35a;--accent2:#f46cb0}.apa-event-tile:nth-child(3n+3){--accent:#5ce2b6;--accent2:#59a9ff}
.apa-event-tile:hover{transform:translateY(-4px);box-shadow:0 23px 50px rgba(0,0,0,.3)}
.apa-event-topline{height:6px;background:linear-gradient(90deg,var(--accent),var(--accent2))}
.apa-event-inner{padding:clamp(20px,3vw,32px)}
.apa-event-label{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;margin-bottom:18px;border-radius:100px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);color:var(--accent);font-size:.77rem;letter-spacing:.09em;font-weight:800;text-transform:uppercase}
.apa-event-tile h3{font-size:clamp(1.4rem,2.3vw,1.95rem);line-height:1.23;color:#fff;margin:0 0 22px}
.apa-event-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px;margin-bottom:22px}
.apa-event-fact{padding:14px 16px;border-radius:14px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.09)}
.apa-event-fact .apa-fact-heading{display:block;font-size:.76rem;letter-spacing:.07em;text-transform:uppercase;font-weight:800;color:var(--accent);margin-bottom:7px}
.apa-event-fact .apa-fact-value{display:block;color:#f0f5ff;line-height:1.55;font-weight:550}
.apa-event-description{white-space:pre-line;color:#d5e0ef;line-height:1.78;margin:0 0 25px;font-size:1rem}
.apa-event-website{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 22px;border-radius:11px;text-decoration:none!important;font-weight:800;color:#0b1b2d!important;background:linear-gradient(105deg,var(--accent),var(--accent2));box-shadow:0 8px 20px rgba(0,0,0,.2);transition:filter .2s ease}
.apa-event-website:hover{filter:brightness(1.12)}
.apa-event-contact{margin:20px 0 35px;padding:21px 24px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:15px;border-radius:17px;background:linear-gradient(110deg,rgba(34,160,198,.15),rgba(134,83,224,.12));border:1px solid rgba(114,204,241,.2)}
.apa-event-contact p{margin:0;color:#d7e7f5}.apa-event-contact a{display:inline-block;border-radius:10px;padding:11px 18px;background:#1979a4;color:#fff!important;font-weight:750;text-decoration:none!important}
.apa-events-empty{padding:30px;border:1px solid rgba(130,193,232,.25);border-radius:16px;background:#162c42;color:#e3f0fa}
@media(max-width:640px){.apa-showcase{padding:22px}.apa-event-inner{padding:21px}.apa-event-contact{align-items:stretch}.apa-event-contact a{text-align:center}}
@media(prefers-reduced-motion:reduce){.apa-event-tile,.apa-event-website{transition:none}.apa-event-tile:hover{transform:none}}
/* Strong, page-specific selectors to withstand the main site's generic styles. */
body .apa-events-page .apa-showcase {display:block!important; padding:36px!important; border-radius:24px!important; background:radial-gradient(circle at 90% 10%,#49328c 0%,transparent 40%),linear-gradient(120deg,#173e62,#161d3b)!important; border:1px solid #4279a4!important; margin-bottom:28px!important}
body .apa-events-page .apa-showcase h2 {font-size:clamp(28px,3.2vw,42px)!important;color:#fff!important;line-height:1.2!important;margin:0 0 12px!important}
body .apa-events-page .apa-events-grid {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr))!important;gap:24px!important}
body .apa-events-page .apa-event-tile {display:block!important;background:linear-gradient(150deg,#20395c,#131d35)!important;border:1px solid #536d9b!important;border-radius:22px!important;overflow:hidden!important;box-shadow:0 15px 36px #060d1b66!important}
body .apa-events-page .apa-event-topline {display:block!important;height:7px!important;background:linear-gradient(90deg,var(--accent),var(--accent2))!important}
body .apa-events-page .apa-event-inner {padding:30px!important}
body .apa-events-page .apa-event-label {display:inline-flex!important;background:#2c3e5e!important;border-radius:30px!important;padding:8px 14px!important;color:#80eaff!important;margin-bottom:16px!important}
body .apa-events-page .apa-event-tile h3 {font-size:clamp(24px,2.4vw,34px)!important;line-height:1.2!important;color:#fff!important;margin:0 0 24px!important}
body .apa-events-page .apa-event-facts {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;gap:14px!important;margin-bottom:22px!important}
body .apa-events-page .apa-event-fact {display:block!important;padding:17px!important;border-radius:14px!important;background:#263c59!important;border:1px solid #425b7b!important}
body .apa-events-page .apa-fact-heading {display:block!important;color:#66e7ff!important;font-size:13px!important;font-weight:800!important;margin-bottom:8px!important}
body .apa-events-page .apa-fact-value {display:block!important;color:#f3f7ff!important;font-size:16px!important;line-height:1.5!important}
body .apa-events-page .apa-event-description {display:block!important;color:#dce8f8!important;font-size:16px!important;line-height:1.75!important;margin:0 0 24px!important}
body .apa-events-page a.apa-event-website {display:inline-flex!important;padding:14px 22px!important;background:linear-gradient(100deg,#4be4f4,#b38aff)!important;color:#10182e!important;border-radius:12px!important;font-weight:800!important;text-decoration:none!important}
body .apa-events-page .apa-event-contact {display:flex!important;background:linear-gradient(110deg,#183e59,#32285b)!important;border:1px solid #496f9b!important;border-radius:18px!important;padding:24px!important;margin:28px 0!important}
body .apa-events-page .apa-event-contact a {display:inline-block!important;background:#218bb4!important;color:#fff!important;border-radius:10px!important;padding:12px 20px!important;text-decoration:none!important}
@media(max-width:640px){body .apa-events-page .apa-showcase{padding:22px!important}body .apa-events-page .apa-event-inner{padding:20px!important}}
