/*
Theme Name: UniBoard Campus
Theme URI: https://uniboard.tech/
Author: UniBoard Project
Description: Responsive campus-events, clubs, and student activity discovery theme with a custom MySQL database layer and structured data support.
Version: 1.2.0
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: uniboard-campus
*/

:root {
  --ub-ink: #14213d;
  --ub-muted: #4b5872;
  --ub-brand: #4355db;
  --ub-brand-dark: #2e3db8;
  --ub-primary: var(--ub-brand);
  --ub-danger: #b42318;
  --ub-danger-bg: #fef3f2;
  --ub-mint: #dff8eb;
  --ub-peach: #fff0e7;
  --ub-sky: #e9f2ff;
  --ub-line: #e2e7f0;
  --ub-bg: #f8faff;
  --ub-white: #ffffff;
  --ub-radius: 22px;
  --ub-shadow: 0 16px 42px rgba(22, 35, 70, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ub-bg);
  color: var(--ub-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--ub-brand);
  text-decoration: none;
}

a:hover {
  color: var(--ub-brand-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.ub-svg-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  vertical-align: -2px;
}

button,
input,
select,
textarea {
  font: inherit;
}

#main-content,
#ub-register,
#ub-contact-form,
#ub-club-join,
#ub-manage-reg {
  scroll-margin-top: 100px;
}

.ub-container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.ub-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.ub-skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
}

.ub-prototype-notice {
  background: #122044;
  color: #f0f4ff;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 8px 14px;
}

/* Header & Navigation */
.ub-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 231, 240, 0.9);
}

.ub-header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.ub-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ub-ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.ub-brand:hover {
  color: var(--ub-ink);
}

.ub-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(145deg, #6474ff, #3545c8);
  box-shadow: 0 8px 18px rgba(67, 85, 219, 0.25);
  font-weight: 900;
  font-size: 18px;
}

.ub-brand small {
  display: block;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ub-muted);
  margin-top: -2px;
}

.ub-brand-logo-wrap img {
  max-height: 48px;
  width: auto;
  display: block;
}

.ub-nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ub-nav-list > li {
  margin: 0;
  padding: 0;
}

.ub-nav a {
  color: #2f3b54;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.15s ease, background 0.15s ease;
}

.ub-nav a:hover,
.ub-nav .current-menu-item > a {
  color: var(--ub-brand);
}

.ub-nav .ub-nav-active > a,
.ub-nav .current-menu-item > a,
.ub-nav .current_page_item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 12px;
  background: var(--ub-brand);
  color: #ffffff !important;
  box-shadow: 0 7px 18px rgba(67, 85, 219, 0.18);
}

.ub-nav .ub-nav-active > a:hover {
  background: var(--ub-brand-dark);
  color: #ffffff !important;
}

.ub-menu-toggle {
  display: none;
  border: 1px solid var(--ub-line);
  background: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--ub-ink);
  font-size: 22px;
  cursor: pointer;
}

/* Breadcrumbs */
.ub-breadcrumbs {
  background: #f3f6fc;
  border-bottom: 1px solid var(--ub-line);
  padding: 10px 0;
  font-size: 12px;
  color: var(--ub-muted);
}

.ub-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.ub-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ub-breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: #7c889f;
}

.ub-breadcrumbs a {
  color: var(--ub-muted);
  font-weight: 600;
}

.ub-breadcrumbs [aria-current="page"] {
  color: var(--ub-ink);
  font-weight: 700;
}

/* Buttons & Badges */
.ub-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 13px 19px;
  border-radius: 13px;
  background: var(--ub-brand);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid var(--ub-brand);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ub-btn:hover {
  background: var(--ub-brand-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.ub-btn-secondary {
  background: #ffffff;
  color: var(--ub-ink);
  border-color: var(--ub-line);
}

.ub-btn-secondary:hover {
  background: #f1f4ff;
  color: var(--ub-brand);
  border-color: #cbd2ff;
}

.ub-btn-danger {
  background: var(--ub-danger);
  border-color: var(--ub-danger);
  color: #ffffff;
}

.ub-btn-danger:hover {
  background: #912018;
  border-color: #912018;
  color: #ffffff;
}

.ub-btn-start {
  justify-self: start;
}

.ub-btn-compact {
  padding: 9px 14px;
  font-size: 13px;
}

.ub-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #f5d061;
}

.ub-featured-badge .ub-svg-icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.ub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ub-brand-dark);
  background: #eef0ff;
  padding: 8px 12px;
  border-radius: 999px;
}

a.ub-eyebrow-link:hover {
  background: #dfe3ff;
  color: var(--ub-brand-dark);
}

.ub-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #179460;
}

.ub-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ub-status-open {
  background: #dff8eb;
  color: #125d3f;
}

.ub-status-warn {
  background: #fff3dc;
  color: #7c4a03;
}

.ub-status-danger {
  background: var(--ub-danger-bg);
  color: var(--ub-danger);
}

.ub-status-muted {
  background: #edf1f8;
  color: #3f4b63;
}

.ub-category-pill {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dde3ef;
  border-radius: 999px;
  padding: 5px 10px;
  color: #334059;
  font-size: 11px;
  font-weight: 800;
}

/* Hero & Sections */
.ub-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 64px;
  background:
    radial-gradient(circle at 88% 8%, rgba(184, 197, 255, 0.45), transparent 28%),
    radial-gradient(circle at 5% 90%, rgba(255, 222, 201, 0.45), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.ub-hero-grid {
  display: grid;
  grid-template-columns: 1.07fr 0.93fr;
  align-items: center;
  gap: 48px;
}

.ub-hero h1 {
  max-width: 720px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 20px 0 18px;
  font-weight: 900;
}

.ub-gradient-text {
  color: var(--ub-brand);
}

.ub-hero-copy {
  font-size: 18px;
  line-height: 1.7;
  max-width: 600px;
  color: var(--ub-muted);
  margin: 0 0 26px;
}

.ub-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ub-trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: #46536b;
  font-size: 13px;
  font-weight: 700;
}

.ub-trust-row span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ub-check {
  color: #137951;
  font-weight: 900;
}

.ub-home-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 590px;
  margin-top: 22px;
  padding: 7px 8px 7px 14px;
  background: #ffffff;
  border: 1px solid var(--ub-line);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(22, 35, 70, 0.045);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ub-home-search:focus-within {
  border-color: var(--ub-brand);
  box-shadow: 0 0 0 3px rgba(67, 85, 219, 0.16);
}

.ub-home-search-icon {
  display: inline-flex;
  align-items: center;
  color: var(--ub-muted);
}

.ub-home-search-icon .ub-svg-icon {
  width: 18px;
  height: 18px;
}

.ub-home-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 0;
  outline: none;
  color: var(--ub-ink);
  font-size: 14px;
}

.ub-home-search button {
  border: 0;
  background: var(--ub-brand);
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.ub-home-search button:hover {
  background: var(--ub-brand-dark);
}

.ub-hero-art {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.ub-art-card {
  position: relative;
  width: min(100%, 440px);
  padding: 24px;
  border: 1px solid #e4e9f3;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(54, 69, 128, 0.14);
  border-radius: 28px;
}

.ub-art-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ub-art-kicker {
  font-size: 12px;
  color: var(--ub-muted);
  font-weight: 800;
}

.ub-art-pill {
  font-size: 11px;
  background: var(--ub-mint);
  color: #125d3f;
  padding: 6px 9px;
  border-radius: 999px;
  font-weight: 800;
}

.ub-art-main {
  border-radius: 19px;
  padding: 22px;
  background: linear-gradient(135deg, #434fd5, #6972f5);
  color: #ffffff;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.ub-art-main:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(53, 69, 200, 0.25);
}

.ub-art-main .ub-art-date {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.ub-art-main h3 {
  font-size: 25px;
  line-height: 1.15;
  margin: 10px 0;
  font-weight: 800;
  color: #ffffff;
}

.ub-art-main p {
  font-size: 12px;
  margin: 0;
}

.ub-art-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 13px;
}

.ub-mini-event {
  display: block;
  border: 1px solid var(--ub-line);
  background: #ffffff;
  color: var(--ub-ink);
  border-radius: 15px;
  padding: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.ub-mini-event:hover {
  color: var(--ub-ink);
  border-color: #b7c2f5;
  transform: translateY(-2px);
}

.ub-mini-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ub-peach);
  color: #9a3412;
  margin-bottom: 8px;
}

.ub-mini-event:nth-child(2) .ub-mini-icon {
  background: var(--ub-mint);
  color: #125d3f;
}

.ub-mini-event strong {
  display: block;
  font-size: 13px;
}

.ub-mini-event span {
  display: block;
  color: var(--ub-muted);
  font-size: 12px;
  margin-top: 4px;
}

.ub-float-tag {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--ub-line);
  box-shadow: var(--ub-shadow);
  font-size: 12px;
  font-weight: 800;
}

.ub-float-tag.one {
  right: -2px;
  top: 18px;
}

.ub-float-tag.two {
  left: -10px;
  bottom: 24px;
}

.ub-section {
  padding: 68px 0;
}

.ub-section-tight {
  padding-top: 26px;
}

.ub-section-soft {
  background: #ffffff;
}

.ub-section-featured {
  background: linear-gradient(180deg, #f2f5ff 0%, #f8faff 100%);
  border-top: 1px solid var(--ub-line);
  border-bottom: 1px solid var(--ub-line);
}

.ub-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.ub-section-head-compact {
  margin-bottom: 20px;
}

.ub-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ub-category-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--ub-line);
  background: #f9fbff;
  color: var(--ub-ink);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ub-category-tile:hover {
  color: var(--ub-ink);
  transform: translateY(-2px);
  border-color: #b7c2f5;
  box-shadow: 0 10px 24px rgba(30, 44, 80, 0.06);
}

.ub-category-tile strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.ub-category-tile small {
  display: block;
  color: var(--ub-muted);
  font-size: 12px;
  font-weight: 600;
}

.ub-category-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef0ff;
  color: var(--ub-brand-dark);
  flex-shrink: 0;
}

.ub-category-tile:nth-child(4n+2) .ub-category-icon {
  background: var(--ub-mint);
  color: #125d3f;
}

.ub-category-tile:nth-child(4n+3) .ub-category-icon {
  background: var(--ub-peach);
  color: #9a3412;
}

.ub-category-tile:nth-child(4n+4) .ub-category-icon {
  background: var(--ub-sky);
  color: #1d4ed8;
}

.ub-section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 12px 0 8px;
  font-weight: 900;
}

.ub-section-head p {
  color: var(--ub-muted);
  max-width: 600px;
  margin: 0;
}

.ub-page-hero {
  padding: 52px 0 30px;
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
}

.ub-page-hero-compact {
  padding: 26px 0 14px;
}

.ub-page-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin: 14px 0;
}

.ub-page-hero p {
  max-width: 740px;
  color: var(--ub-muted);
  font-size: 16px;
  margin: 0;
}

/* Grids & Cards */
.ub-event-grid,
.ub-club-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ub-event-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ub-event-card,
.ub-club-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--ub-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(30, 44, 80, 0.035);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ub-event-card:hover,
.ub-club-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ub-shadow);
}

.ub-event-card:focus-within,
.ub-club-card:focus-within,
.ub-category-tile:focus-visible {
  border-color: var(--ub-brand);
  box-shadow: 0 0 0 3px rgba(67, 85, 219, 0.16);
}

.ub-event-card.is-featured {
  border-color: #c8d2ff;
}

.ub-event-cover {
  position: relative;
  height: 150px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(135deg, #e8ecff, #f4eaff);
  overflow: hidden;
}

.ub-event-card:nth-child(3n+2) .ub-event-cover {
  background: linear-gradient(135deg, #ddf7eb, #f1fff8);
}

.ub-event-card:nth-child(3n+3) .ub-event-cover {
  background: linear-gradient(135deg, #ffe9db, #fff6e9);
}

.ub-event-cover.has-thumb {
  padding: 12px;
}

.ub-event-cover.has-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ub-cover-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16, 26, 54, 0.6) 0%, rgba(16, 26, 54, 0.12) 55%, rgba(16, 26, 54, 0) 100%);
  pointer-events: none;
}

.ub-cover-pills {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.ub-event-symbol {
  display: grid;
  place-items: center;
  border-radius: 15px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ub-brand-dark);
}

.ub-event-symbol .ub-svg-icon {
  width: 20px;
  height: 20px;
}

.ub-capacity-meter {
  margin: 4px 0 12px;
}

.ub-capacity-meter.is-compact {
  margin: 0 0 10px;
}

.ub-capacity-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ub-muted);
  margin-bottom: 5px;
}

.ub-capacity-track {
  height: 7px;
  border-radius: 999px;
  background: #e9eef7;
  overflow: hidden;
}

.ub-capacity-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #179460;
  transition: width 0.2s ease;
}

.ub-capacity-fill.is-warn {
  background: #d97706;
}

.ub-capacity-fill.is-danger {
  background: var(--ub-danger);
}

.ub-event-body,
.ub-club-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ub-event-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--ub-muted);
  font-size: 12px;
  font-weight: 700;
}

.ub-event-meta time,
.ub-event-meta > span,
.ub-event-submeta span,
.ub-event-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ub-event-body h2,
.ub-event-body h3,
.ub-club-body h2,
.ub-club-body h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin: 10px 0 8px;
}

.ub-event-body h2 a,
.ub-event-body h3 a,
.ub-club-body h2 a,
.ub-club-body h3 a {
  color: var(--ub-ink);
}

.ub-event-body p,
.ub-club-body p {
  color: var(--ub-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 14px;
}

.ub-event-submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ub-muted);
  margin-bottom: 12px;
}

.ub-event-submeta a,
.ub-list-meta a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(67, 85, 219, 0.35);
  text-underline-offset: 2px;
}

.ub-event-submeta a:hover,
.ub-list-meta a:hover {
  color: var(--ub-brand);
}

.ub-event-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eef1f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ub-event-location {
  font-size: 12px;
  font-weight: 700;
  color: var(--ub-muted);
}

.ub-text-link {
  font-weight: 800;
  font-size: 13px;
  color: var(--ub-brand);
  white-space: nowrap;
}

.ub-club-cover-wrap {
  position: relative;
}

.ub-club-cover {
  position: relative;
  height: 132px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e8ecff, #f4eaff);
  overflow: hidden;
  color: var(--ub-brand);
}

.ub-club-cover-pattern svg {
  width: 44px;
  height: 44px;
  opacity: 0.22;
}

.ub-club-cover-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  pointer-events: none;
}

.ub-club-event-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ub-ink);
  border: 1px solid rgba(20, 32, 61, 0.08);
  box-shadow: 0 4px 12px rgba(22, 35, 70, 0.08);
  backdrop-filter: blur(6px);
}

.ub-club-event-count-badge svg {
  width: 12px;
  height: 12px;
}

.ub-club-event-count-badge.has-events {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.ub-club-event-count-badge.is-empty {
  color: var(--ub-muted);
}

.ub-club-avatar-badge {
  position: absolute;
  left: 20px;
  bottom: -24px;
  z-index: 3;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 20px rgba(22, 35, 70, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ub-club-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ub-club-monogram {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ub-brand-dark);
}

.ub-club-card .ub-club-body {
  padding-top: 34px;
}

.ub-club-card:nth-child(3n+2) .ub-club-cover {
  background: linear-gradient(135deg, #ddf7eb, #f1fff8);
}

.ub-club-card:nth-child(3n+3) .ub-club-cover {
  background: linear-gradient(135deg, #ffe9db, #fff6e9);
}

.ub-club-cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ub-club-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.ub-club-activity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 14px;
}

.ub-club-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* Filter Bar & Forms */
.ub-filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid var(--ub-line);
  border-radius: 18px;
  padding: 13px;
  margin-bottom: 24px;
}

.ub-filter-bar input,
.ub-filter-bar select,
.ub-form input,
.ub-form select,
.ub-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfd7e6;
  background: #ffffff;
  border-radius: 11px;
  color: var(--ub-ink);
  outline: none;
}

.ub-filter-bar input:focus,
.ub-filter-bar select:focus,
.ub-form input:focus,
.ub-form select:focus,
.ub-form textarea:focus {
  border-color: var(--ub-brand);
  box-shadow: 0 0 0 3px rgba(67, 85, 219, 0.14);
}

.ub-filter-search {
  flex: 1 1 220px;
  min-width: 190px;
}

.ub-filter-select {
  flex: 0 1 175px;
  min-width: 150px;
}

.ub-filter-bar .ub-btn {
  padding: 11px 16px;
}

.ub-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}

.ub-single-article {
  grid-column: 1;
  min-width: 0;
}

.ub-sticky-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 100px;
}

.ub-manage-panel {
  grid-column: 1;
}

.ub-event-quickstrip {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dce3f6;
}

.ub-quickstrip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ub-ink);
}

.ub-quickstrip-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ub-meta-icon {
  display: inline-flex;
  align-items: center;
  padding-top: 2px;
  color: var(--ub-brand);
}

.ub-panel {
  background: #ffffff;
  border: 1px solid var(--ub-line);
  border-radius: 20px;
  padding: 24px;
}

.ub-panel-title {
  margin-top: 0;
  font-size: 22px;
}

.ub-panel-divider {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ub-line);
}

.ub-event-detail-top {
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #e7ebff, #f7efff);
  margin-bottom: 22px;
}

.ub-event-detail-top h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin: 14px 0;
}

.ub-detail-badges {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ub-detail-meta {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.ub-detail-meta div {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ub-muted);
}

.ub-register-heading {
  margin-bottom: 10px;
}

.ub-form {
  display: grid;
  gap: 14px;
}

.ub-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ub-form-row-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.ub-form label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #36425b;
  margin-bottom: 6px;
}

.ub-form .ub-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ub-muted);
}

.ub-form .ub-consent input {
  width: auto;
  margin-top: 4px;
}

.ub-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ub-message {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ub-mint);
  color: #125d3f;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

.ub-message.error {
  background: var(--ub-danger-bg);
  color: var(--ub-danger);
}

.ub-ref-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
}

.ub-content {
  background: #ffffff;
  border: 1px solid var(--ub-line);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 42px);
}

.ub-content h2,
.ub-content h3 {
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.ub-content p,
.ub-content li {
  color: #3d4a62;
}

.ub-prose-list {
  line-height: 1.8;
}

.ub-page-intro {
  margin-bottom: 20px;
  color: var(--ub-muted);
}

.ub-muted-copy {
  font-size: 14px;
  color: var(--ub-muted);
  line-height: 1.6;
}

.ub-lead-copy {
  font-size: 17px;
  color: var(--ub-muted);
}

.ub-featured-media {
  margin-bottom: 22px;
}

.ub-featured-media img {
  border-radius: 18px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.ub-share-bar {
  background: #ffffff;
  border: 1px solid var(--ub-line);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 16px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ub-share-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ub-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ub-share-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ub-share-btn,
.ub-copy-link-btn {
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.ub-share-wa {
  background: #137e3c;
  color: #ffffff;
}

.ub-share-li {
  background: #005f94;
  color: #ffffff;
}

.ub-share-tw {
  background: #111827;
  color: #ffffff;
}

.ub-share-btn:hover {
  color: #ffffff;
  opacity: 0.92;
}

.ub-copy-link-btn {
  background: #f0f2f7;
  color: var(--ub-ink);
  border: 1px solid var(--ub-line);
  cursor: pointer;
}

.ub-club-facts {
  background: #f8faff;
  border: 1px solid var(--ub-line);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.ub-club-events-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--ub-line);
}

.ub-lookup-box,
.ub-manage-panel {
  margin-top: 28px;
}

.ub-manage-summary {
  background: #f8faff;
  border: 1px solid var(--ub-line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.ub-manage-summary p {
  margin: 0 0 8px;
}

.ub-cancel-confirm-form {
  margin-top: 14px;
}

.ub-contact-details {
  display: grid;
  gap: 14px;
  font-size: 14px;
  color: var(--ub-muted);
}

.ub-actions-row {
  margin-top: 20px;
}

.ub-actions-col {
  display: grid;
  gap: 8px;
}

.ub-note {
  background: #fff8e9;
  border: 1px solid #f0d797;
  color: #6b4e0c;
  border-radius: 13px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.55;
}

.ub-note-spaced {
  margin-top: 24px;
}

/* Features, FAQ & CTA */
.ub-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ub-feature {
  padding: 24px;
  border: 1px solid var(--ub-line);
  border-radius: 18px;
  background: #ffffff;
}

.ub-feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #eef0ff;
  color: var(--ub-brand-dark);
  margin-bottom: 14px;
}

.ub-feature-icon .ub-svg-icon {
  width: 20px;
  height: 20px;
}

.ub-feature:nth-child(2) .ub-feature-icon {
  background: var(--ub-mint);
  color: #125d3f;
}

.ub-feature:nth-child(3) .ub-feature-icon {
  background: var(--ub-peach);
  color: #9a3412;
}

.ub-feature h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.ub-feature p {
  font-size: 14px;
  color: var(--ub-muted);
  margin: 0;
}

.ub-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ub-faq-item {
  background: #ffffff;
  border: 1px solid var(--ub-line);
  border-radius: 16px;
  padding: 22px;
}

.ub-faq-item h3 {
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--ub-ink);
}

.ub-faq-item p {
  font-size: 14px;
  color: var(--ub-muted);
  margin: 0;
  line-height: 1.65;
}

.ub-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  background: #172447;
  color: #ffffff;
  border-radius: 24px;
}

.ub-cta-band h2 {
  color: #ffffff;
  font-size: 28px;
  margin: 0 0 7px;
}

.ub-cta-band p {
  color: #dbe3f6;
  margin: 0;
  font-size: 15px;
}

.ub-cta-band .ub-btn {
  background: #ffffff;
  color: #172447;
  border-color: #ffffff;
  flex-shrink: 0;
}

/* Posts, Pagination, Empty, Footer */
.ub-post-list {
  display: grid;
  gap: 15px;
}

.ub-post-item {
  background: #ffffff;
  border: 1px solid var(--ub-line);
  border-radius: 17px;
  padding: 21px;
}

.ub-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.ub-pagination .page-numbers {
  padding: 8px 13px;
  border: 1px solid var(--ub-line);
  background: #ffffff;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}

.ub-pagination .current {
  background: var(--ub-brand);
  color: #ffffff;
  border-color: var(--ub-brand);
}

.ub-empty {
  padding: 40px 24px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #c4cde0;
  border-radius: 20px;
  color: var(--ub-muted);
}

.ub-empty h2,
.ub-empty h3 {
  color: var(--ub-ink);
}

.ub-footer {
  background: #121f3e;
  color: #dbe3f6;
  margin-top: 40px;
  padding: 48px 0 26px;
}

.ub-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.ub-footer .ub-brand,
.ub-footer .ub-brand small {
  color: #ffffff;
}

.ub-footer p {
  max-width: 360px;
  color: #c7d1e8;
  font-size: 14px;
  line-height: 1.75;
}

.ub-footer-social {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.ub-footer-social a {
  color: #dbe3f6;
  font-size: 13px;
  font-weight: 700;
}

.ub-footer h2,
.ub-footer h3 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 5px 0 15px;
}

.ub-footer-links {
  display: grid;
  gap: 10px;
}

.ub-footer-links a {
  font-size: 14px;
  color: #d0daee;
}

.ub-footer-links a:hover {
  color: #ffffff;
}

.ub-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 34px;
  padding-top: 18px;
  color: #c4cee4;
  font-size: 12px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #e08b37;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Tablet Breakpoint */
@media (max-width: 920px) {
  .ub-hero-grid,
  .ub-single-layout {
    grid-template-columns: 1fr;
  }
  .ub-single-article,
  .ub-sticky-panel,
  .ub-manage-panel {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
  .ub-event-quickstrip {
    display: flex;
  }
  .ub-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ub-event-grid,
  .ub-club-grid,
  .ub-event-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ub-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ub-footer-brand-col {
    grid-column: 1 / -1;
  }
}

/* Mobile Breakpoint */
@media (max-width: 650px) {
  .ub-container {
    width: min(100% - 28px, 1160px);
  }
  .ub-header-inner {
    min-height: 70px;
  }
  .ub-menu-toggle {
    display: grid;
    place-items: center;
  }
  .ub-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 1px solid var(--ub-line);
    border-radius: 17px;
    padding: 12px 16px;
    box-shadow: var(--ub-shadow);
  }
  .ub-nav.is-open {
    display: block;
  }
  .ub-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .ub-nav-list > li {
    border-bottom: 1px solid #f0f2f7;
  }
  .ub-nav-list > li:last-child {
    border-bottom: 0;
  }
  .ub-nav a {
    display: block;
    padding: 12px 6px;
  }
  .ub-nav .ub-nav-active > a {
    margin: 6px 0;
  }
  .ub-float-tag {
    position: static;
    margin: 8px 0;
    display: inline-block;
  }
  .ub-hero-art {
    min-height: auto;
  }
  .ub-home-search {
    flex-wrap: wrap;
    padding: 10px;
  }
  .ub-home-search > span {
    display: none;
  }
  .ub-home-search input,
  .ub-home-search button {
    width: 100%;
  }
  .ub-event-grid,
  .ub-club-grid,
  .ub-event-grid-2,
  .ub-category-grid,
  .ub-feature-strip,
  .ub-faq-grid,
  .ub-form-row-2,
  .ub-form-row-2-1,
  .ub-footer-grid {
    grid-template-columns: 1fr;
  }
  .ub-footer-brand-col {
    grid-column: auto;
  }
  .ub-filter-search,
  .ub-filter-select,
  .ub-filter-bar .ub-btn {
    width: 100%;
    flex: 1 1 100%;
  }
  .ub-cta-band,
  .ub-section-head,
  .ub-share-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   TRACK P1 MODULE 2: EVENTS DISCOVERY UPGRADE (GRID, LIST, CALENDAR, ETC.)
   ========================================================================== */

/* View Switcher */
.ub-discovery-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.ub-view-switcher {
  display: inline-flex;
  background: #f0f3fa;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  border: 1px solid var(--ub-line);
}

.ub-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ub-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ub-view-btn:hover {
  color: var(--ub-ink);
  background: rgba(255, 255, 255, 0.6);
}

.ub-view-btn.is-active {
  background: #ffffff;
  color: var(--ub-brand);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ub-view-btn svg {
  width: 15px;
  height: 15px;
}

/* Expanded Filter Bar & Date Inputs */
.ub-filter-bar-expanded {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ub-filter-dates {
  display: none;
  align-items: center;
  gap: 6px;
}

.ub-filter-dates.is-visible {
  display: inline-flex;
}

.ub-filter-dates input[type="date"] {
  border: 1px solid var(--ub-line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  background: #ffffff;
  color: var(--ub-ink);
}

/* Format & Eligibility Pills */
.ub-format-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.ub-format-pill.ub-format-online {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.ub-format-pill.ub-format-hybrid {
  background: #fdf4ff;
  color: #86198f;
  border-color: #f5d0fe;
}

.ub-eligibility-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* List View */
.ub-event-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.ub-event-list-item {
  display: grid;
  grid-template-columns: 80px 1fr 220px;
  gap: 20px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--ub-line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--ub-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ub-event-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 37, 84, 0.1);
}

.ub-event-list-item.is-featured {
  border-color: #f59e0b;
  border-left: 5px solid #d97706;
}

.ub-list-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  min-height: 70px;
}

.ub-list-month {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ub-brand);
  text-transform: uppercase;
}

.ub-list-day {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ub-ink);
}

.ub-list-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ub-list-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ub-list-title {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.ub-list-title a {
  color: var(--ub-ink);
  text-decoration: none;
}

.ub-list-title a:hover {
  color: var(--ub-brand);
}

.ub-list-excerpt {
  margin: 0;
  font-size: 14px;
  color: var(--ub-muted);
  line-height: 1.45;
}

.ub-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.ub-list-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ub-list-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Month Calendar View */
.ub-calendar-view {
  background: #ffffff;
  border: 1px solid var(--ub-line);
  border-radius: 18px;
  padding: 22px;
  margin: 24px 0;
  box-shadow: var(--ub-shadow);
}

.ub-cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.ub-cal-month-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--ub-ink);
}

.ub-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.ub-cal-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  text-align: center;
  padding: 8px 4px;
  background: #f8fafc;
  border-radius: 8px;
}

.ub-cal-cell {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  min-height: 105px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ub-cal-cell:hover,
.ub-cal-cell:focus-visible {
  border-color: var(--ub-brand);
  box-shadow: 0 4px 12px rgba(67, 85, 219, 0.08);
}

.ub-cal-cell.is-today {
  border-color: #3b82f6;
  background: #f0f7ff;
}

.ub-cal-cell-empty {
  background: #fbfcfe;
  border: 1px dashed #e2e8f0;
}

.ub-cal-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.ub-cal-day-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--ub-ink);
}

.ub-cal-today-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: #2563eb;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 999px;
}

.ub-cal-event-chips {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.ub-cal-chip {
  display: block;
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 6px;
  background: #eff6ff;
  border-left: 3px solid #2563eb;
  color: #1e3a8a;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.ub-cal-chip:hover {
  background: #dbeafe;
}

.ub-cal-chip.ub-status-danger {
  border-left-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
}

.ub-cal-chip.ub-status-warn {
  border-left-color: #d97706;
  background: #fffbeb;
  color: #92400e;
}

.ub-cal-chip.ub-status-muted {
  border-left-color: #64748b;
  background: #f1f5f9;
  color: #475569;
}

.ub-chip-time {
  font-weight: 700;
  margin-right: 3px;
}

/* Add to Calendar Actions */
.ub-calendar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.ub-cal-action-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ub-cal-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ub-cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--ub-ink);
  text-decoration: none;
  transition: all 0.15s ease;
}

.ub-cal-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--ub-brand);
}

.ub-cal-btn svg {
  width: 14px;
  height: 14px;
}

/* Event Agenda / Timeline */
.ub-event-agenda {
  margin: 32px 0 24px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--ub-line);
  border-radius: 18px;
  box-shadow: var(--ub-shadow);
}

.ub-agenda-heading {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ub-ink);
}

.ub-agenda-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  border-left: 3px solid #e2e8f0;
  margin-left: 12px;
  padding-left: 20px;
  gap: 18px;
}

.ub-agenda-item {
  position: relative;
}

.ub-agenda-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ub-brand);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--ub-brand);
}

.ub-agenda-time {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ub-brand);
  margin-bottom: 2px;
}

.ub-agenda-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ub-ink);
}

.ub-agenda-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ub-muted);
  line-height: 1.45;
}

/* Related Events */
.ub-related-events {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--ub-line);
}

.ub-related-header {
  margin-bottom: 20px;
}

.ub-related-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ub-ink);
}

.ub-related-header p {
  margin: 0;
  font-size: 14px;
  color: var(--ub-muted);
}

/* Responsive adjustments for List and Calendar */
@media (max-width: 920px) {
  .ub-event-list-item {
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
  }
  .ub-list-actions {
    grid-column: 1 / -1;
    align-items: stretch;
    flex-direction: row;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: 6px;
  }
}

@media (max-width: 650px) {
  .ub-event-list-item {
    grid-template-columns: 1fr;
  }
  .ub-list-date-block {
    flex-direction: row;
    gap: 8px;
    min-height: auto;
    padding: 6px 12px;
  }
  .ub-calendar-grid {
    gap: 4px;
  }
  .ub-cal-cell {
    min-height: 75px;
    padding: 4px;
  }
  .ub-cal-day-num {
    font-size: 11px;
  }
  .ub-cal-chip {
    font-size: 9px;
    padding: 2px 4px;
  }
}

/* ==========================================================================
   TRACK P1 MODULE 3: CLUBS EXPERIENCE UPGRADE (PROFILE HERO, ACTIVITIES, PAST EVENTS)
   ========================================================================== */

.ub-club-hero-section {
  padding-bottom: 0;
}

.ub-club-profile-hero {
  background: #ffffff;
  border: 1px solid var(--ub-line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--ub-shadow);
}

.ub-club-profile-cover {
  position: relative;
  height: 190px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 55%, #dcfce7 100%);
  overflow: hidden;
  color: var(--ub-brand);
}

.ub-club-profile-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ub-club-profile-head {
  position: relative;
  padding: 22px 28px 26px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
}

.ub-club-profile-avatar {
  width: 92px;
  height: 92px;
  margin-top: -54px;
  border-radius: 22px;
  background: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 28px rgba(22, 35, 70, 0.14);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.ub-club-monogram-lg {
  font-size: 30px;
  border-radius: 18px;
}

.ub-club-profile-title-col h1 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 8px 0 6px;
}

.ub-club-profile-title-col .ub-lead-copy {
  margin: 0;
  color: var(--ub-muted);
  font-size: 16px;
  line-height: 1.5;
}

.ub-club-profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 6px;
}

.ub-club-activities-section {
  margin-top: 32px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--ub-line);
  border-radius: 18px;
  box-shadow: var(--ub-shadow);
}

.ub-club-activities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ub-club-activity-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8faff;
  border: 1px solid #e2e8f0;
}

.ub-club-activity-icon {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 10px;
  background: #e8ecff;
  color: var(--ub-brand-dark);
  display: grid;
  place-items: center;
}

.ub-club-activity-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ub-ink);
}

.ub-club-activity-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ub-muted);
}

.ub-club-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ub-club-section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ub-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.ub-count-pill.is-muted {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

hr.ub-panel-divider {
  border: 0;
  border-top: 1px solid var(--ub-line);
  margin: 22px 0;
  padding-top: 0;
}

.ub-empty-compact {
  padding: 22px 18px;
}

.ub-club-past-list .ub-event-list-item {
  grid-template-columns: 74px 1fr;
}

.ub-club-past-list .ub-list-actions {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: flex-end;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

@media (max-width: 920px) {
  .ub-club-profile-head {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }
  .ub-club-profile-actions {
    grid-column: 1 / -1;
  }
  .ub-club-activities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .ub-club-profile-cover {
    height: 140px;
  }
  .ub-club-profile-head {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .ub-club-profile-avatar {
    width: 76px;
    height: 76px;
    margin-top: -46px;
  }
  .ub-club-past-list .ub-event-list-item {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TRACK P1 MODULE 4: DIGITAL CONFIRMATION PASS, INLINE VALIDATION & PRINT CSS
   ========================================================================== */

.ub-pass-card {
  background: #ffffff;
  border: 2px solid #b8e6cf;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 12px 28px rgba(18, 93, 63, 0.08);
}

.ub-pass-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #cbd5e1;
}

.ub-pass-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #125d3f;
}

.ub-pass-eyebrow svg {
  width: 14px;
  height: 14px;
}

.ub-pass-title {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ub-ink);
}

.ub-pass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  padding: 12px 0;
  font-size: 13px;
}

.ub-pass-grid-full {
  grid-column: 1 / -1;
}

.ub-pass-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ub-muted);
  margin-bottom: 2px;
}

.ub-pass-grid strong {
  color: var(--ub-ink);
  font-weight: 700;
}

.ub-pass-ref-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.ub-pass-ref-box .ub-ref-code {
  font-size: 16px;
  font-weight: 900;
  color: #14532d;
  letter-spacing: 0.03em;
}

.ub-pass-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid #86efac;
  background: #ffffff;
  color: #14532d;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ub-pass-copy-btn svg {
  width: 13px;
  height: 13px;
}

.ub-pass-copy-btn:hover {
  background: #dcfce7;
}

.ub-pass-copy-btn.is-copied {
  background: #16a34a;
  color: #ffffff;
  border-color: #15803d;
}

.ub-pass-copy-btn.is-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.ub-copy-feedback {
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
  min-height: 16px;
}

.ub-copy-feedback.is-success {
  color: #15803d;
}

.ub-copy-feedback.is-error {
  color: #b91c1c;
}

.ub-pass-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef1f6;
}

.ub-pass-foot {
  margin-top: 10px;
  color: var(--ub-muted);
  font-size: 12px;
  line-height: 1.45;
}

/* Inline Validation States */
.ub-form input.is-invalid,
.ub-form select.is-invalid,
.ub-form textarea.is-invalid {
  border-color: #dc2626;
  background: #fffafa;
}

.ub-form input.is-invalid:focus,
.ub-form select.is-invalid:focus,
.ub-form textarea.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

.ub-form .ub-consent.is-invalid span {
  color: #b91c1c;
}

.ub-field-error {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #b91c1c;
  line-height: 1.35;
}

.ub-field-error:empty {
  display: none;
}

.ub-form-summary[hidden] {
  display: none;
}

/* Print-Specific Confirmation Pass Styles */
@media print {
  @page {
    margin: 1.4cm;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .ub-header,
  .ub-footer,
  .ub-prototype-notice,
  .ub-breadcrumbs,
  .ub-page-hero,
  .ub-share-bar,
  .ub-related-events,
  .ub-calendar-actions,
  .ub-form,
  #ub-manage-reg,
  .ub-no-print {
    display: none !important;
  }
  .ub-single-layout {
    display: block !important;
  }
  .ub-sticky-panel {
    position: static !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
  }
  body.ub-printing-pass .ub-single-article,
  body.ub-printing-pass .ub-sticky-panel > .ub-panel-title,
  body.ub-printing-pass .ub-sticky-panel > .ub-detail-meta,
  body.ub-printing-pass .ub-sticky-panel > .ub-register-heading,
  body.ub-printing-pass .ub-sticky-panel > .ub-note {
    display: none !important;
  }
  .ub-pass-card {
    border: 2px solid #000000 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    max-width: 620px;
    margin: 0 auto;
    padding: 24px !important;
  }
  .ub-pass-ref-box {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
  }
  .ub-pass-ref-box .ub-ref-code {
    color: #000000 !important;
  }
}


/* UniBoard blog featured image styles */
.ub-post-thumb {
    display: block;
    margin: 0 0 18px;
    overflow: hidden;
    border-radius: 14px;
    background: #f3f5fb;
}

.ub-post-thumb__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
}

.ub-single-featured-image {
    margin: 0 0 28px;
}

.ub-single-featured-image__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    border-radius: 16px;
}

@media (max-width: 640px) {
    .ub-post-thumb__image {
        max-height: 240px;
    }

    .ub-single-featured-image__img {
        max-height: 360px;
    }
}
