/* ==========================================================================
   Events & Webinars (/events/) — MOA_Final_27112026/events-webinars.html
   (events-webinars.css + the page's inline "ev-library" styles + black-inner-banners.css,
   final cascade). Verified side by side in the browser. Template: brochures/events.html.
   ========================================================================== */

.events-page { color: #171717; }

/* ---------- Black, centred hero ---------- */
.events-hero { padding: 105px 18px; background: #000; color: #fff; text-align: center; }
.events-hero > .moa-container { max-width: 860px; }
.events-kicker { color: #ee343b; font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.events-hero .events-kicker { color: #fff; }
.events-hero h1 { margin: 22px 0; color: #fff; font-size: clamp(34px, 5vw, 64px); line-height: 1.14; }
.events-hero h1 em { font-style: normal; }
.events-hero p { max-width: 690px; margin: 0 auto 30px; color: #fff; font-size: 17px; line-height: 1.7; }
.events-btn, .events-cta a {
  display: inline-block; padding: 15px 26px; border-radius: 6px; background: #ee343b; color: #fff !important; font-weight: 700;
  transition: background-color .2s, transform .2s;
}
.events-btn:hover, .events-cta a:hover { background: #c8242c; }
.events-cta a:hover { transform: translateY(-2px); }

/* ---------- Library ---------- */
.events-content { padding-top: 72px; padding-bottom: 80px; scroll-margin-top: 100px; }
.events-intro { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.events-intro h2 { margin: 12px 0; color: #111; font-size: clamp(28px, 4vw, 42px); font-weight: 750; letter-spacing: -1.2px; }
.events-intro h2::after { content: ""; display: block; width: 44px; height: 3px; margin: 16px auto; border-radius: 4px; background: #ee343b; }
.events-intro p { color: #666; line-height: 1.75; }

.ev-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border: 1px solid #ececef; border-radius: 14px; background: #f7f8fa;
}
.ev-tabs, .ev-filters { display: flex; flex-wrap: wrap; gap: 9px; }
.ev-tabs { gap: 6px; }
.ev-library button {
  padding: 11px 16px; border: 1px solid #e2e2e2; border-radius: 7px; background: #fff; color: #222;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.ev-library button[aria-pressed="true"] { border-color: #ee343b; background: #ee343b; color: #fff; }
.ev-library button:hover:not([aria-pressed="true"]) { border-color: #ee343b; color: #ee343b; }
.ev-tabs button { padding: 12px 18px; border-radius: 8px; }
.ev-tabs span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 5px;
  border-radius: 50%; background: #00000009; opacity: .8;
}
.ev-tabs button[aria-pressed="true"] span { background: #ffffff30; }
.ev-controls input {
  box-sizing: border-box; width: min(100%, 290px); padding: 12px 16px; border: 1px solid #ddd; border-radius: 7px;
  background: #fff; font: inherit; font-size: 13px; outline-color: #ee343b;
}
.ev-filters { margin: 24px 0 30px; }
.ev-filters button { padding: 8px 15px; border-radius: 30px; }
.ev-filters button[aria-pressed="true"] { border-color: #ee343b; background: #fff1f2; color: #d92730; }
.ev-controls + .ev-grid { margin-top: 30px; }

/* ---------- Event card ---------- */
.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ev-card {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e4e4e4; border-radius: 16px; background: #fff;
  box-shadow: 0 6px 24px #11111109; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.ev-card:hover { transform: translateY(-4px); border-color: #ee343b; box-shadow: 0 14px 32px #11111112; }
.ev-image {
  position: relative; display: block; margin: 10px 10px 0; overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid #f0f0f0; border-radius: 10px; background: linear-gradient(145deg, #f7f8fa, #fff);
}
.ev-image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .45s ease; }
.ev-card:hover .ev-image img { transform: scale(1.025); }
.ev-image > span {
  position: absolute; top: 12px; left: 12px; padding: 7px 12px; border: 1px solid #eee; border-radius: 20px;
  background: #fff; box-shadow: 0 3px 12px #00000012; color: #111; font-size: 11px; font-weight: 600;
}
.ev-image > span::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #ee343b; vertical-align: middle;
}
.ev-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 22px 23px 24px; }
.ev-body h3 {
  min-height: 3em; margin: 0 0 2px; padding-bottom: 14px; border-bottom: 1px solid #efefef;
  color: #111; font-size: 17px; line-height: 1.5; font-weight: 700; letter-spacing: -.2px;
}
.ev-meta { display: flex; align-items: center; gap: 9px; color: #545454; font-size: 13px; line-height: 1.5; }
.ev-meta svg {
  flex-shrink: 0; box-sizing: content-box; width: 16px; height: 16px; padding: 7px; border-radius: 8px;
  background: #fff3f3; color: #ee343b;
}
.ev-link {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; margin-top: auto; padding: 10px 14px;
  border-radius: 7px; background: #ee343b; box-shadow: 0 3px 8px #ee343b20; color: #fff !important;
  font-size: 12px; font-weight: 600; transition: background .2s;
}
.ev-link:hover { background: #d92730; }
.ev-link span[aria-hidden] { transition: transform .2s; }
.ev-link:hover span[aria-hidden] { transform: translateX(3px); }
.ev-empty { margin-top: 30px; padding: 56px 20px; border: 1px dashed #ddd; border-radius: 12px; background: #f7f8fa; color: #555; text-align: center; }

/* ---------- Call to action ---------- */
.events-cta { padding: 65px 16px; background: #151515; color: #fff; text-align: center; }
.events-cta h2 { font-size: 34px; }
.events-cta p { margin: 15px auto 25px; color: #ccc; }

/* ---------- Responsive (design breakpoints) ---------- */
@media (max-width: 900px) { .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .ev-grid { grid-template-columns: 1fr; }
  .events-hero { padding: 75px 12px; }
}
@media (max-width: 580px) {
  .events-content { padding-top: 40px; padding-bottom: 48px; }
  .ev-grid { gap: 20px; }
  .ev-controls { padding: 12px; }
  .ev-tabs button { padding: 9px 10px; }
  .ev-controls input { width: 100%; }
  .ev-body h3 { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-card, .ev-image img, .ev-link span, .events-cta a { transition: none !important; transform: none !important; }
}
