/* =========================================================
   Centre Edge Central - Frontend Styles
   Full rewrite including:
   - events page row layout with 300px x 300px image on the left
   - text on the right
   - divider and vertical padding between events
   - volunteer board row-based masonry-style grid
   - 20px padding inside volunteer cards
   - larger single division logo on volunteer cards
   - roomier filter dropdowns
   ========================================================= */

:root {
  --ce-accent: #53b3ae;
  --ce-accent-dark: #2c3e50;
  --ce-ink: #17212b;
  --ce-text: #24323d;
  --ce-muted: #64727d;
  --ce-border: #d9e1e6;
  --ce-border-strong: #c7d2d9;
  --ce-bg-soft: #f6faf9;
  --ce-bg-card: #ffffff;
  --ce-shadow: 0 10px 25px rgba(25, 40, 52, 0.08);
  --ce-radius: 16px;
  --ce-radius-sm: 10px;
}

/* Base */
.ce-event,
.ce-job-board,
.ce-checkin-wrap,
.ce-checkin-portal,
.ce-reg-box,
.ce-event-archive,
.ce-volunteer-board {
  font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, Helvetica, Arial, sans-serif;
  color: var(--ce-text);
  font-size: 18px;
  line-height: 1.55;
}

.ce-event h1,
.ce-event h2,
.ce-event h3,
.ce-event h4,
.ce-job-board h1,
.ce-job-board h2,
.ce-job-board h3,
.ce-job-board h4,
.ce-checkin-wrap h1,
.ce-checkin-wrap h2,
.ce-checkin-wrap h3,
.ce-reg-box h1,
.ce-reg-box h2,
.ce-reg-box h3,
.ce-event-archive h1,
.ce-event-archive h2,
.ce-event-archive h3,
.ce-volunteer-board h1,
.ce-volunteer-board h2,
.ce-volunteer-board h3 {
  font-family: 'League Spartan', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, Helvetica, Arial, sans-serif;
  color: var(--ce-ink);
  line-height: 1.1;
  margin: 0 0 0.55em;
}

.ce-event,
.ce-job-board,
.ce-checkin-wrap,
.ce-checkin-portal,
.ce-reg-box,
.ce-event-archive,
.ce-volunteer-board {
  padding-left: 20px;
  padding-right: 20px;
}

.ce-event a,
.ce-job-board a,
.ce-checkin-wrap a,
.ce-checkin-portal a,
.ce-reg-box a,
.ce-event-archive a,
.ce-volunteer-board a {
  color: var(--ce-accent-dark);
}

.ce-event a:hover,
.ce-job-board a:hover,
.ce-checkin-wrap a:hover,
.ce-checkin-portal a:hover,
.ce-reg-box a:hover,
.ce-event-archive a:hover,
.ce-volunteer-board a:hover {
  color: var(--ce-accent);
}

/* Shared cards / containers */
.ce-card,
.ce-job-card,
.ce-reg-box,
.ce-checkin-panel,
.ce-filter-bar,
.ce-machine-count {
  background: var(--ce-bg-card);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
  box-shadow: var(--ce-shadow);
}

/* Buttons */
.ce-btn,
.ce-button,
.ce-event button,
.ce-job-board button,
.ce-checkin-wrap button,
.ce-checkin-portal button,
.ce-reg-box button,
.ce-event-archive button,
.ce-volunteer-board button,
.ce-reg-box button[type="submit"],
.ce-job-board button[type="submit"],
.ce-checkin-wrap button[type="submit"],
.ce-checkin-portal button[type="submit"],
input[type="submit"].ce-btn,
input[type="submit"].ce-button,
a.ce-btn,
a.ce-button,
.ce-job-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ce-accent);
  border: 1px solid var(--ce-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 46px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 14px rgba(83, 179, 174, 0.22);
}

.ce-btn:hover,
.ce-button:hover,
.ce-event button:hover,
.ce-job-board button:hover,
.ce-checkin-wrap button:hover,
.ce-checkin-portal button:hover,
.ce-reg-box button:hover,
.ce-event-archive button:hover,
.ce-volunteer-board button:hover,
.ce-reg-box button[type="submit"]:hover,
.ce-job-board button[type="submit"]:hover,
.ce-checkin-wrap button[type="submit"]:hover,
.ce-checkin-portal button[type="submit"]:hover,
a.ce-btn:hover,
a.ce-button:hover,
.ce-job-btn:hover {
  background: var(--ce-accent-dark);
  border-color: var(--ce-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.ce-btn:focus-visible,
.ce-button:focus-visible,
.ce-event button:focus-visible,
.ce-job-board button:focus-visible,
.ce-checkin-wrap button:focus-visible,
.ce-checkin-portal button:focus-visible,
.ce-reg-box button:focus-visible,
.ce-event-archive button:focus-visible,
.ce-volunteer-board button:focus-visible,
a.ce-btn:focus-visible,
a.ce-button:focus-visible,
.ce-job-btn:focus-visible,
.ce-reg-box input:focus,
.ce-reg-box select:focus,
.ce-reg-box textarea:focus,
.ce-checkin-wrap select:focus,
.ce-checkin-wrap input:focus,
.ce-checkin-portal select:focus,
.ce-checkin-portal input:focus {
  outline: 3px solid rgba(83, 179, 174, 0.24);
  outline-offset: 2px;
}

.ce-job-btn-secondary {
  background: #fff;
  color: var(--ce-accent-dark);
  border-color: var(--ce-border-strong);
  box-shadow: none;
}

.ce-job-btn-secondary:hover {
  background: #f3f7f8;
  border-color: var(--ce-accent-dark);
  color: var(--ce-accent-dark);
}

/* Form elements */
.ce-reg-box input[type="text"],
.ce-reg-box input[type="email"],
.ce-reg-box input[type="tel"],
.ce-reg-box input[type="number"],
.ce-reg-box input[type="date"],
.ce-reg-box input[type="url"],
.ce-reg-box select,
.ce-reg-box textarea,
.ce-checkin-wrap input[type="text"],
.ce-checkin-wrap input[type="email"],
.ce-checkin-wrap select,
.ce-checkin-portal input[type="text"],
.ce-checkin-portal input[type="email"],
.ce-checkin-portal select,
.ce-filter-bar select,
.ce-job-board select {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--ce-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ce-text);
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.35;
  box-sizing: border-box;
}

.ce-reg-box textarea {
  min-height: 120px;
  resize: vertical;
}

.ce-reg-box label,
.ce-checkin-wrap label,
.ce-checkin-portal label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--ce-ink);
}

.ce-reg-box > * + * {
  margin-top: 16px;
}

.ce-reg-box .ce-price,
.ce-reg-box .ce-paid-event-note,
.ce-reg-box .ce-sponsored-note {
  background: var(--ce-bg-soft);
  border: 1px solid rgba(83, 179, 174, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
}

.ce-reg-box .ce-sponsored-note {
  font-size: 15px;
  font-weight: 600;
}

/* Event layout */
.ce-event-layout,
.ce-single-event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: start;
}

.ce-event-details,
.ce-event-sidebar,
.ce-single-event-main,
.ce-single-event-sidebar {
  min-width: 0;
}

.ce-event-sidebar .ce-reg-box,
.ce-event-registration .ce-reg-box,
.ce-single-event-sidebar .ce-reg-box {
  position: sticky;
  top: 20px;
}

.ce-event .ce-event-meta,
.ce-event .ce-date-time,
.ce-single-event-meta,
.ce-single-event-date,
.ce-single-event-time {
  color: var(--ce-muted);
  font-size: 15px;
}

.ce-single-event-image {
  margin: 0 0 20px;
}

.ce-single-event-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.ce-single-event-meta {
  margin: 0 0 18px;
}

.ce-single-event-date,
.ce-single-event-time {
  margin: 0 0 6px;
}

.ce-single-event-description > *:first-child {
  margin-top: 0;
}

/* =========================================================
   EVENTS PAGE: 300x300 image left, text right, divider between events
   ========================================================= */

.ce-event-archive-list,
.ce-events-list-shortcode,
.ce-events-grid,
.post-type-archive-ce_event .wp-block-post-template,
.post-type-archive-ce_event .wp-block-query .wp-block-post-template,
.post-type-archive-ce_event ul.wp-block-post-template {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ce-event-card,
.ce-event-preview,
.ce-event-tile,
.ce-events-list-shortcode .ce-event-card,
.post-type-archive-ce_event .wp-block-post-template > li,
.post-type-archive-ce_event .wp-block-query .wp-block-post-template > li,
.post-type-archive-ce_event ul.wp-block-post-template > li {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 24px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ce-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  list-style: none !important;
}

.ce-event-card:last-child,
.ce-event-preview:last-child,
.ce-event-tile:last-child,
.ce-events-list-shortcode .ce-event-card:last-child,
.post-type-archive-ce_event .wp-block-post-template > li:last-child,
.post-type-archive-ce_event .wp-block-query .wp-block-post-template > li:last-child,
.post-type-archive-ce_event ul.wp-block-post-template > li:last-child {
  border-bottom: 0 !important;
}

.ce-event-card > a,
.ce-event-preview > a,
.ce-event-tile > a,
.ce-events-list-shortcode .ce-event-card > a {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 24px !important;
  width: 100% !important;
  color: inherit !important;
  text-decoration: none !important;
}

/* Event image column */
.ce-event-card .ce-event-image,
.ce-event-preview .ce-event-image,
.ce-event-tile .ce-event-image,
.ce-event-card .ce-event-thumb,
.ce-event-preview .ce-event-thumb,
.ce-event-tile .ce-event-thumb,
.ce-event-card .ce-event-thumbnail,
.ce-event-preview .ce-event-thumbnail,
.ce-event-tile .ce-event-thumbnail,
.ce-events-list-shortcode .ce-event-image,
.post-type-archive-ce_event .wp-block-post-template > li > .wp-block-post-featured-image,
.post-type-archive-ce_event .wp-block-query .wp-block-post-template > li > .wp-block-post-featured-image,
.post-type-archive-ce_event ul.wp-block-post-template > li > .wp-block-post-featured-image {
  flex: 0 0 200px !important;
  width: 200px !important;
  max-width: 200px !important;
  min-width: 200px !important;
  height: 200px !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: var(--ce-radius-sm) !important;
}

/* Event image itself */
.ce-event-card .ce-event-image img,
.ce-event-preview .ce-event-image img,
.ce-event-tile .ce-event-image img,
.ce-event-card .ce-event-thumb img,
.ce-event-preview .ce-event-thumb img,
.ce-event-tile .ce-event-thumb img,
.ce-event-card .ce-event-thumbnail img,
.ce-event-preview .ce-event-thumbnail img,
.ce-event-tile .ce-event-thumbnail img,
.ce-events-list-shortcode .ce-event-image img,
.post-type-archive-ce_event .wp-block-post-template > li > .wp-block-post-featured-image img,
.post-type-archive-ce_event .wp-block-query .wp-block-post-template > li > .wp-block-post-featured-image img,
.post-type-archive-ce_event ul.wp-block-post-template > li > .wp-block-post-featured-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  border-radius: var(--ce-radius-sm) !important;
}

/* Event text column */
.ce-event-card .ce-event-content,
.ce-event-preview .ce-event-content,
.ce-event-tile .ce-event-content,
.ce-event-card .ce-event-text,
.ce-event-preview .ce-event-text,
.ce-event-tile .ce-event-text,
.post-type-archive-ce_event .wp-block-post-template > li > *:not(.wp-block-post-featured-image),
.post-type-archive-ce_event .wp-block-query .wp-block-post-template > li > *:not(.wp-block-post-featured-image),
.post-type-archive-ce_event ul.wp-block-post-template > li > *:not(.wp-block-post-featured-image) {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.ce-event-card h2,
.ce-event-card h3,
.ce-event-preview h2,
.ce-event-preview h3,
.ce-event-tile h2,
.ce-event-tile h3,
.ce-events-list-shortcode .ce-event-card h2,
.ce-events-list-shortcode .ce-event-card h3,
.post-type-archive-ce_event .wp-block-post-title {
  margin: 0 0 10px !important;
  font-size: clamp(1.25rem, 2vw, 1.75rem) !important;
}

.ce-event-card .ce-event-date,
.ce-event-card .ce-event-meta,
.ce-event-preview .ce-event-date,
.ce-event-preview .ce-event-meta,
.ce-event-tile .ce-event-date,
.ce-event-tile .ce-event-meta,
.post-type-archive-ce_event .wp-block-post-date {
  color: var(--ce-muted) !important;
  font-size: 15px !important;
  margin-bottom: 8px !important;
  display: block;
}

.ce-event-card p,
.ce-event-preview p,
.ce-event-tile p,
.post-type-archive-ce_event .wp-block-post-excerpt {
  margin: 0 !important;
  color: var(--ce-text);
}

.ce-event-card > a:hover h2,
.ce-event-card > a:hover h3,
.ce-event-preview > a:hover h2,
.ce-event-preview > a:hover h3,
.ce-event-tile > a:hover h2,
.ce-event-tile > a:hover h3 {
  color: var(--ce-accent);
}

.ce-event-card > a:focus-visible,
.ce-event-preview > a:focus-visible,
.ce-event-tile > a:focus-visible {
  outline: 3px solid rgba(83, 179, 174, 0.24);
  outline-offset: 4px;
  border-radius: var(--ce-radius-sm);
}

/* =========================================================
   VOLUNTEER JOB BOARD
   ========================================================= */

.ce-job-board {
  margin-top: 24px;
}

.ce-job-board-title {
  margin-bottom: 16px;
}

.ce-job-board-controls,
.ce-job-filters,
.ce-filter-bar,
.ce-job-board-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--ce-bg-soft);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
}

.ce-job-board-filters {
  font-size: 0;
}

.ce-job-filter-link,
.ce-job-filters a,
.ce-job-filters button,
.ce-filter-chip,
.ce-role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--ce-border-strong);
  background: #fff;
  color: var(--ce-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  margin: 0 8px 8px 0;
}

.ce-job-filter-link:hover,
.ce-job-filters a:hover,
.ce-filter-chip:hover,
.ce-role-chip:hover {
  border-color: var(--ce-accent);
  color: var(--ce-accent-dark);
}

/* Roomier dropdowns */
.ce-job-board .ce-filter-bar select,
.ce-job-board-controls select,
.ce-job-filters select,
.ce-filter-bar select {
  min-height: 52px;
  padding: 14px 44px 14px 16px;
  line-height: 1.4;
}

/* Volunteer board grid */
.ce-job-grid,
.ce-job-board-grid,
.ce-job-board-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px !important;
  column-count: unset !important;
  column-gap: 0 !important;
  align-items: start;
}

.ce-job-card,
.ce-job {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  break-inside: auto !important;
  margin: 0;
  padding: 20px !important;
  background: #fff;
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
  box-shadow: var(--ce-shadow);
}

/* Single larger logo top left */
.ce-job-card::before,
.ce-job::before {
  content: "";
  display: block;
  width: 82px;
  height: 82px;
  margin: 0 0 14px;
  border-radius: 14px;
  background: #fff url('https://thecentreedge.ca/wp-content/uploads/2026/03/the-centre-edge-home-page.png') center/cover no-repeat;
  border: 1px solid var(--ce-border);
  box-shadow: 0 4px 12px rgba(25, 40, 52, 0.08);
}

.ce-job-card.ce-division-sew-proud::before,
.ce-job.ce-division-sew-proud::before,
.ce-job-card[data-division="Sew Proud"]::before,
.ce-job[data-division="Sew Proud"]::before {
  background-image: url('https://thecentreedge.ca/wp-content/uploads/2026/01/Sew-Proud-Logo.jpg');
}

.ce-job-card.ce-division-centre-edge::before,
.ce-job.ce-division-centre-edge::before,
.ce-job-card.ce-division-the-centre-edge::before,
.ce-job.ce-division-the-centre-edge::before,
.ce-job-card[data-division="The Centre Edge"]::before,
.ce-job[data-division="The Centre Edge"]::before {
  background-image: url('https://thecentreedge.ca/wp-content/uploads/2026/03/the-centre-edge-home-page.png');
}

/* Hide duplicate inline logos */
.ce-job-card-logo,
.ce-job-card img.ce-job-logo {
  display: none !important;
}

.ce-job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ce-job-card-title {
  min-width: 0;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.1;
  color: var(--ce-ink);
}

.ce-job-card-title a {
  color: inherit;
  text-decoration: none;
}

.ce-job-card-title a:hover {
  color: var(--ce-accent);
}

.ce-job-card-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #15a34a;
  border: 1px solid #15a34a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ce-job-card-badge,
.ce-job-role,
.ce-role-badge,
.ce-job-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0 8px 12px 0;
  border: 1px solid rgba(83, 179, 174, 0.28);
  background: rgba(83, 179, 174, 0.12);
  color: #1f5f5b;
}

.ce-job-card-meta,
.ce-job-meta,
.ce-job-date,
.ce-job-event,
.ce-job-status,
.ce-job-time {
  color: var(--ce-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.ce-job-card-meta small,
.ce-job-meta small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ce-muted);
}

.ce-job-card-excerpt {
  margin-top: 10px;
}

.ce-job-card form {
  margin-top: 10px;
}

.ce-job-card form + form {
  margin-top: 8px;
}

.ce-job-card .ce-job-btn,
.ce-job-card button[type="submit"] {
  width: 100%;
}

.ce-job-actions,
.ce-job-card .ce-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Optional date grouping on job board */
.ce-job-date-group,
.ce-event-date-group {
  grid-column: 1 / -1;
  break-inside: avoid;
  margin: 8px 0 16px;
  padding: 10px 4px;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: 1.35rem;
  color: var(--ce-ink);
}

/* Check-in */
.ce-checkin-wrap,
.ce-checkin-portal {
  max-width: 1100px;
  margin: 24px auto;
}

.ce-checkin-panel {
  padding: 20px;
  margin-bottom: 20px;
}

.ce-machine-count {
  display: block;
  padding: 14px 16px;
  margin: 0 0 20px;
  background: var(--ce-bg-soft);
  border-left: 5px solid var(--ce-accent);
  font-weight: 800;
  color: var(--ce-ink);
}

.ce-checkin-table,
table.ce-checkin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--ce-shadow);
}

.ce-checkin-table th,
.ce-checkin-table td,
table.ce-checkin-table th,
table.ce-checkin-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--ce-border);
}

.ce-checkin-table thead th,
table.ce-checkin-table thead th {
  background: #eff5f6;
  color: var(--ce-ink);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ce-checkin-table tbody tr:nth-child(even),
table.ce-checkin-table tbody tr:nth-child(even) {
  background: #fbfcfd;
}

.ce-checkin-table tbody tr:hover,
table.ce-checkin-table tbody tr:hover {
  background: #f6faf9;
}

.ce-checkin-table tbody tr:last-child td,
table.ce-checkin-table tbody tr:last-child td {
  border-bottom: 0;
}

.ce-status-select,
select.ce-status-select {
  min-width: 170px;
}

/* Messages / notices */
.ce-notice,
.ce-success,
.ce-error,
.ce-warning {
  padding: 14px 16px;
  border-radius: 12px;
  margin: 16px 0;
  border: 1px solid transparent;
}

.ce-success {
  background: #eef8f4;
  border-color: #b8e0ce;
  color: #1f5f43;
}

.ce-error {
  background: #fbefef;
  border-color: #ebc1c1;
  color: #8a2d2d;
}

.ce-warning {
  background: #fff8e7;
  border-color: #f1d792;
  color: #735500;
}

/* Utility */
.ce-hidden {
  display: none !important;
}

.ce-text-center {
  text-align: center;
}

.ce-mt-0 { margin-top: 0 !important; }
.ce-mb-0 { margin-bottom: 0 !important; }
.ce-mt-1 { margin-top: 8px !important; }
.ce-mb-1 { margin-bottom: 8px !important; }
.ce-mt-2 { margin-top: 16px !important; }
.ce-mb-2 { margin-bottom: 16px !important; }
.ce-mt-3 { margin-top: 24px !important; }
.ce-mb-3 { margin-bottom: 24px !important; }

/* Responsive */
@media (max-width: 1000px) {
  .ce-job-grid,
  .ce-job-board-grid,
  .ce-job-board-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ce-event-layout,
  .ce-single-event-layout {
    grid-template-columns: 1fr;
  }

  .ce-event-sidebar .ce-reg-box,
  .ce-event-registration .ce-reg-box {
    position: static;
  }
}

@media (max-width: 768px) {
  .ce-event,
  .ce-job-board,
  .ce-checkin-wrap,
  .ce-checkin-portal,
  .ce-reg-box,
  .ce-event-archive,
  .ce-volunteer-board {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ce-reg-box,
  .ce-checkin-panel,
  .ce-job-card,
  .ce-job {
    padding: 16px;
  }

  .ce-event-card,
  .ce-event-preview,
  .ce-event-tile,
  .ce-events-list-shortcode .ce-event-card,
  .post-type-archive-ce_event .wp-block-post-template > li,
  .post-type-archive-ce_event .wp-block-query .wp-block-post-template > li,
  .post-type-archive-ce_event ul.wp-block-post-template > li,
  .ce-event-card > a,
  .ce-event-preview > a,
  .ce-event-tile > a,
  .ce-events-list-shortcode .ce-event-card > a {
    flex-direction: column !important;
    gap: 14px !important;
  }

  .ce-event-card .ce-event-image,
  .ce-event-preview .ce-event-image,
  .ce-event-tile .ce-event-image,
  .ce-event-card .ce-event-thumb,
  .ce-event-preview .ce-event-thumb,
  .ce-event-tile .ce-event-thumb,
  .ce-event-card .ce-event-thumbnail,
  .ce-event-preview .ce-event-thumbnail,
  .ce-event-tile .ce-event-thumbnail,
  .ce-events-list-shortcode .ce-event-image,
  .post-type-archive-ce_event .wp-block-post-template > li > .wp-block-post-featured-image,
  .post-type-archive-ce_event .wp-block-query .wp-block-post-template > li > .wp-block-post-featured-image,
  .post-type-archive-ce_event ul.wp-block-post-template > li > .wp-block-post-featured-image {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    flex-basis: auto !important;
  }

  .ce-event-card .ce-event-image img,
  .ce-event-preview .ce-event-image img,
  .ce-event-tile .ce-event-image img,
  .ce-event-card .ce-event-thumb img,
  .ce-event-preview .ce-event-thumb img,
  .ce-event-tile .ce-event-thumb img,
  .ce-event-card .ce-event-thumbnail img,
  .ce-event-preview .ce-event-thumbnail img,
  .ce-event-tile .ce-event-thumbnail img,
  .ce-events-list-shortcode .ce-event-image img,
  .post-type-archive-ce_event .wp-block-post-template > li > .wp-block-post-featured-image img,
  .post-type-archive-ce_event .wp-block-query .wp-block-post-template > li > .wp-block-post-featured-image img,
  .post-type-archive-ce_event ul.wp-block-post-template > li > .wp-block-post-featured-image img {
    height: auto !important;
  }

  .ce-job-grid,
  .ce-job-board-grid,
  .ce-job-board-list {
    grid-template-columns: 1fr;
  }

  .ce-checkin-table,
  table.ce-checkin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .ce-job-board-controls,
  .ce-job-filters,
  .ce-filter-bar,
  .ce-job-board-filters,
  .ce-job-actions,
  .ce-job-card .ce-actions,
  .ce-job-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .ce-job-filter-link,
  .ce-job-filters a,
  .ce-job-filters button,
  .ce-filter-chip,
  .ce-role-chip,
  .ce-btn,
  .ce-button,
  .ce-event button,
  .ce-job-board button,
  .ce-checkin-wrap button,
  .ce-checkin-portal button,
  .ce-reg-box button,
  .ce-event-archive button,
  .ce-volunteer-board button,
  .ce-job-btn,
  a.ce-btn,
  a.ce-button {
    width: 100%;
  }
}
/* ===== FORCE EVENTS PAGE INTO LEFT IMAGE / RIGHT TEXT ROWS ===== */

.post-type-archive-ce_event .wp-block-post-template,
.post-type-archive-ce_event ul.wp-block-post-template,
.post-type-archive-ce_event .wp-block-query .wp-block-post-template,
.post-type-archive-ce_event .wp-block-query ul.wp-block-post-template {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.post-type-archive-ce_event .wp-block-post-template > li,
.post-type-archive-ce_event ul.wp-block-post-template > li,
.post-type-archive-ce_event .wp-block-query .wp-block-post-template > li,
.post-type-archive-ce_event .wp-block-query ul.wp-block-post-template > li,
.post-type-archive-ce_event article {
  display: grid !important;
  grid-template-columns: 200px minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
  margin: 0 !important;
  padding: 24px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #d9e1e6 !important;
  box-shadow: none !important;
  background: transparent !important;
  list-style: none !important;
}

.post-type-archive-ce_event .wp-block-post-template > li:last-child,
.post-type-archive-ce_event ul.wp-block-post-template > li:last-child,
.post-type-archive-ce_event .wp-block-query .wp-block-post-template > li:last-child,
.post-type-archive-ce_event .wp-block-query ul.wp-block-post-template > li:last-child,
.post-type-archive-ce_event article:last-child {
  border-bottom: 0 !important;
}

.post-type-archive-ce_event .wp-block-post-featured-image,
.post-type-archive-ce_event .wp-block-post-template > li > .wp-block-post-featured-image,
.post-type-archive-ce_event ul.wp-block-post-template > li > .wp-block-post-featured-image,
.post-type-archive-ce_event article .wp-block-post-featured-image,
.post-type-archive-ce_event article .post-image,
.post-type-archive-ce_event article .featured-image {
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  height: 200px !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 10px !important;
}

.post-type-archive-ce_event .wp-block-post-featured-image img,
.post-type-archive-ce_event .wp-block-post-template > li > .wp-block-post-featured-image img,
.post-type-archive-ce_event ul.wp-block-post-template > li > .wp-block-post-featured-image img,
.post-type-archive-ce_event article .wp-block-post-featured-image img,
.post-type-archive-ce_event article .post-image img,
.post-type-archive-ce_event article .featured-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.post-type-archive-ce_event .wp-block-post-template > li > *:not(.wp-block-post-featured-image),
.post-type-archive-ce_event ul.wp-block-post-template > li > *:not(.wp-block-post-featured-image),
.post-type-archive-ce_event .wp-block-query .wp-block-post-template > li > *:not(.wp-block-post-featured-image),
.post-type-archive-ce_event .wp-block-query ul.wp-block-post-template > li > *:not(.wp-block-post-featured-image),
.post-type-archive-ce_event article > *:not(.wp-block-post-featured-image):not(.post-image):not(.featured-image) {
  min-width: 0 !important;
}

@media (max-width: 768px) {
  .post-type-archive-ce_event .wp-block-post-template > li,
  .post-type-archive-ce_event ul.wp-block-post-template > li,
  .post-type-archive-ce_event .wp-block-query .wp-block-post-template > li,
  .post-type-archive-ce_event .wp-block-query ul.wp-block-post-template > li,
  .post-type-archive-ce_event article {
    grid-template-columns: 1fr !important;
  }

  .post-type-archive-ce_event .wp-block-post-featured-image,
  .post-type-archive-ce_event .wp-block-post-template > li > .wp-block-post-featured-image,
  .post-type-archive-ce_event ul.wp-block-post-template > li > .wp-block-post-featured-image,
  .post-type-archive-ce_event article .wp-block-post-featured-image,
  .post-type-archive-ce_event article .post-image,
  .post-type-archive-ce_event article .featured-image {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .post-type-archive-ce_event .wp-block-post-featured-image img,
  .post-type-archive-ce_event .wp-block-post-template > li > .wp-block-post-featured-image img,
  .post-type-archive-ce_event ul.wp-block-post-template > li > .wp-block-post-featured-image img,
  .post-type-archive-ce_event article .wp-block-post-featured-image img,
  .post-type-archive-ce_event article .post-image img,
  .post-type-archive-ce_event article .featured-image img {
    height: auto !important;
  }
}

/* ===== VOLUNTEER CARD INNER PADDING ===== */

.ce-job-card,
.ce-job {
  padding: 20px !important;
}

/* =========================================================
   FINAL OVERRIDES: custom event archive + volunteer spacing
   ========================================================= */
.ce-job-grid,
.ce-job-board-grid,
.ce-job-board-list {
  gap: 20px !important;
}

.ce-job-card,
.ce-job {
  padding: 20px !important;
}

.ce-events-archive-page .ce-events-archive-inner,
.ce-event-archive-list,
.ce-events-list-shortcode,
.ce-events-archive-cards {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.ce-events-archive-page .page-header {
  margin: 0 0 24px;
}

.ce-events-archive-page .page-title {
  margin: 0;
}

.ce-events-archive-cards,
.ce-event-archive-list.ce-events-list-shortcode {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.ce-events-archive-cards .ce-event-card,
.ce-event-archive-list.ce-events-list-shortcode .ce-event-card,
.post-type-archive-ce_event .ce-event-card {
  display: grid !important;
  grid-template-columns: 200px minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
  padding: 20px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #d9d9d9 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ce-events-archive-cards .ce-event-card:last-child,
.ce-event-archive-list.ce-events-list-shortcode .ce-event-card:last-child {
  border-bottom: 0 !important;
}

.ce-events-archive-cards .ce-event-image-wrap,
.ce-event-archive-list.ce-events-list-shortcode .ce-event-image-wrap {
  width: 200px;
}

.ce-events-archive-cards .ce-event-image-link,
.ce-event-archive-list.ce-events-list-shortcode .ce-event-image-link {
  display: block;
  text-decoration: none;
}

.ce-events-archive-cards .ce-event-image,
.ce-event-archive-list.ce-events-list-shortcode .ce-event-image {
  width: 200px !important;
  height: 200px !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  margin: 0 !important;
}

.ce-events-archive-cards .ce-event-image img,
.ce-event-archive-list.ce-events-list-shortcode .ce-event-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.ce-events-archive-cards .ce-event-content,
.ce-event-archive-list.ce-events-list-shortcode .ce-event-content {
  min-width: 0;
}

.ce-events-archive-cards .ce-event-title,
.ce-event-archive-list.ce-events-list-shortcode .ce-event-title {
  margin: 0 0 10px !important;
  font-size: clamp(1.4rem, 2vw, 2rem) !important;
  line-height: 1.15 !important;
}

.ce-events-archive-cards .ce-event-title a,
.ce-event-archive-list.ce-events-list-shortcode .ce-event-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.ce-events-archive-cards .ce-event-date,
.ce-events-archive-cards .ce-event-time,
.ce-event-archive-list.ce-events-list-shortcode .ce-event-date,
.ce-event-archive-list.ce-events-list-shortcode .ce-event-time {
  margin: 0 0 6px !important;
  font-size: 16px !important;
}

.ce-events-archive-cards .ce-event-status,
.ce-event-archive-list.ce-events-list-shortcode .ce-event-status {
  display: inline-block;
  margin: 10px 0 12px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  background: rgba(234,179,8,.14) !important;
  border: 1px solid rgba(234,179,8,.32) !important;
  color: #8a6500 !important;
}

.ce-events-archive-cards .ce-event-excerpt p,
.ce-event-archive-list.ce-events-list-shortcode .ce-event-excerpt p {
  margin: 0 !important;
}

@media (max-width: 767px) {
  .ce-events-archive-cards .ce-event-card,
  .ce-event-archive-list.ce-events-list-shortcode .ce-event-card,
  .post-type-archive-ce_event .ce-event-card {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .ce-events-archive-cards .ce-event-image-wrap,
  .ce-event-archive-list.ce-events-list-shortcode .ce-event-image-wrap,
  .ce-events-archive-cards .ce-event-image,
  .ce-event-archive-list.ce-events-list-shortcode .ce-event-image {
    width: 100% !important;
    max-width: 200px !important;
  }
}


.ce-event-actions {
  margin-top: 16px;
}

.ce-event-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ce-event-button-open {
  background: #53b3ae;
  color: #fff !important;
  border: 1px solid #53b3ae;
}

.ce-event-button-open:hover,
.ce-event-button-open:focus {
  background: #2f8e89;
  border-color: #2f8e89;
  color: #fff !important;
}

.ce-event-button-waitlist {
  background: #fff4d6;
  color: #8a6500 !important;
  border: 1px solid #e6c76a;
}

.ce-event-button-waitlist:hover,
.ce-event-button-waitlist:focus {
  background: #f6e7b8;
  color: #6f5200 !important;
  border-color: #d9b84d;
}


/* =========================================================
   MARCH 2026 OVERRIDES
   ========================================================= */

/* Single event date + time: bigger and teal */
.single-ce_event .ce-single-event-date,
.single-ce_event .ce-single-event-time,
.ce-single-event-layout .ce-single-event-date,
.ce-single-event-layout .ce-single-event-time {
  color: #53b3ae !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin: 0 0 10px !important;
}

.single-ce_event .ce-single-event-date strong,
.single-ce_event .ce-single-event-time strong,
.ce-single-event-layout .ce-single-event-date strong,
.ce-single-event-layout .ce-single-event-time strong {
  color: #53b3ae !important;
  font-weight: 800 !important;
}

.ce-single-event-meta {
  margin: 0 0 20px !important;
}

/* Archive: hide old waitlist pill and rely on button text only */
.ce-events-archive-cards .ce-event-status,
.ce-event-archive-list.ce-events-list-shortcode .ce-event-status,
.post-type-archive-ce_event .ce-event-status {
  display: none !important;
}

/* Archive infinite reveal */
.ce-events-archive-cards .ce-event-card[hidden] {
  display: none !important;
}

.ce-events-scroll-sentinel {
  width: 100%;
  height: 1px;
}
