/**
 * Coalition Community — Stylesheet v1.0.0
 * Brand: Life Matters Worldwide
 * Primary: #196aa8 | Light: #d7eaf7 | Green: #99ca3c | Amber: #e68f0c
 * Header font: Quicksand 500 | Body font: Montserrat
 */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  --c-primary: #196aa8;
  --c-primary-dark: #0f4a78;
  --c-primary-light: #d7eaf7;
  --c-green: #99ca3c;
  --c-amber: #e68f0c;
  --c-white: #ffffff;
  --c-bg: #f7f9fc;
  --c-border: #d7eaf7;
  --c-text: #1a2a3a;
  --c-muted: #6b7a8d;
  --c-card: #ffffff;
  --c-footer-bg: #eeeff1;
  --c-hero-bg: #d6d8db;

  --f-head: 'Quicksand', sans-serif;
  --f-body: 'Montserrat', sans-serif;

  --r: 8px;
  --r-sm: 4px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .07), 0 1px 8px rgba(0, 0, 0, .05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .10);

  --max-w: 1400px;
  --gutter: 40px;
}

/* ── BASE ─────────────────────────────────────────────────── */
.c-page *,
.c-page *::before,
.c-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.c-page {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.c-page a {
  color: var(--c-primary);
  text-decoration: none;
}

.c-page a:hover {
  text-decoration: none;
}

/* ── HEADER ───────────────────────────────────────────────── */
.c-header {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}

.c-logo {
  font-family: var(--f-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--c-text);
  text-decoration: none;
  letter-spacing: -.5px;
  flex-shrink: 0;
}

.c-logo:hover {
  text-decoration: none;
  color: var(--c-text);
}

.c-logo img {
  max-height: 36px;
  width: auto;
  display: block;
}

/* NAV */
.c-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  justify-content: center;
}

.c-nav__item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text);
  background: #f0f2f5;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.c-nav__item:hover {
  background: var(--c-primary-light);
  color: var(--c-primary);
  text-decoration: none;
}

.c-nav__item.is-active {
  background: var(--c-primary);
  color: #fff;
}

/* AVATAR */
.c-header__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c8d4de;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  border: 2px solid var(--c-border);
  text-decoration: none;
  flex-shrink: 0;
}

.c-header__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.c-header__avatar .dashicons {
  font-size: 18px;
  color: #7a8fa0;
}

/* ── HERO ─────────────────────────────────────────────────── */
.c-hero {
  width: 100%;
  height: 180px;
  background: var(--c-hero-bg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.c-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 106, 168, .5);
}

.c-hero--dashboard {
  justify-content: flex-start;
}

.c-hero--page {
  justify-content: center;
}

.c-hero__text {
  position: relative;
  z-index: 2;
  max-width: 50%;
  padding: 0 var(--gutter);
}

.c-hero__title {
  font-family: var(--f-head);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
}

.c-hero__sub {
  font-size: 13px;
  color: rgba(255, 255, 255, .9);
}

.c-hero__placeholder {
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 500;
  color: rgba(0, 0, 0, .35);
}

/* ── INNER WRAPPER ────────────────────────────────────────── */
.c-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── SECTION HEADING ──────────────────────────────────────── */
.c-section-title {
  font-family: var(--f-head);
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  color: var(--c-text);
  margin: 40px 0 24px;
}

.c-section-desc {
  text-align: center;
  color: var(--c-muted);
  font-size: 13px;
  max-width: 560px;
  margin: -16px auto 28px;
  line-height: 1.7;
}

/* ── DASHBOARD CARDS ──────────────────────────────────────── */
.c-dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 100px 0 0;
}

.c-dash-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px;
  margin: auto;
  padding-top: 100px;
}

.c-dash-card {
  background: var(--c-card);
  border: 2px solid var(--c-border);
  padding: 16px;
  position: relative;
  padding-top: 38px;
}

.c-dash-card__avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #d7eaf7;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.c-dash-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-dash-card__avatar .dashicons {
  font-size: 36px;
  color: #196aa8;
  display: contents;
}

.c-dash-card__actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.c-dash-card__link {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-primary);
  text-decoration: none;
  flex-direction: column;
}

.c-dash-card__link .dashicons {
  font-size: 30px;
  width: 35px;
  height: 28px;
}

.c-dash-card__link .dashicons-plus-alt2 {
  font-size: 18px;
  background: #d7eaf7;
  padding: 0;
  border-radius: 20px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-dash-card__link:hover {
  text-decoration: none !important;
}

.c-dash-card__title {
  font-family: var(--f-head);
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  color: var(--c-text);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
}

.c-dash-item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f3f7;
}

.c-dash-item:last-child {
  border-bottom: none;
}

.c-dash-item__header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.c-dash-item__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--c-text);
}

.c-dash-item__date {
  font-size: 10px;
  color: var(--c-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.c-dash-item__excerpt {
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-dash-item__meta {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.c-dash-item__meta span {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  color: var(--c-muted);
}

.c-dash-item__meta .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.c-card-search {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  background: var(--c-bg);
  margin-top: 10px;
}

.c-card-search .dashicons {
  font-size: 22px;
  color: var(--c-muted);
  transform: scaleX(-1);
}

.c-card-search input {
  border: none;
  background: none;
  outline: none;
  font-weight: 600;
  font-size: 16px;
  font-family: var(--f-body);
  width: 100%;
  color: var(--c-text);
}

.reso_serach span {
  transform: scaleX(-1);
}

.c-card-search input::placeholder {
  color: var(--c-muted);
}

.c-dash-event {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f3f7;
}

.c-dash-event:last-child {
  border-bottom: none;
}

.c-dash-event__cal .dashicons {
  font-size: 16px;
  color: var(--c-muted);
}

.c-dash-event__date {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 2px;
}

.c-dash-event__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.3;
}

.c-dash-event__desc {
  font-size: 15px;
  color: var(--c-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-dash-coalition-name {
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.c-dash-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f0f3f7;
}

.c-dash-member:last-child {
  border-bottom: none;
}

.c-dash-member__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #c8d4de;
  flex-shrink: 0;
  overflow: hidden;
}

.c-dash-member__edit svg {
  width: 20px;
  fill: #6b7a8d;
}

.c-dash-member__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-dash-member__info {
  flex: 1;
}

.c-dash-member__role {
  font-size: 13px;
  color: var(--c-muted);
  display: block;
}

.c-dash-member__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--c-text);
}

.c-dash-member__icons {
  display: flex;
  gap: 6px;
}

.c-dash-member__icons a {
  color: var(--c-muted);
  display: flex;
  align-items: center;
}

.c-dash-member__icons .dashicons {
  font-size: 20px;
}

.c-dash-member__icons a:hover {
  color: var(--c-primary);
}

/* ── COMMUNITY ────────────────────────────────────────────── */
.c-community-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 70px 0;
}

.c-community-create-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.c-create-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  color: var(--c-primary);
}

.c-create-link .dashicons {
  font-size: 18px;
  background: #d7eaf7;
  padding: 0;
  border-radius: 20px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-create-link:hover {
  text-decoration: none !important;
}

.c-events-create-link .dashicons {
  font-size: 18px;
  background: #d7eaf7;
  padding: 0;
  border-radius: 20px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-events-create-link:hover {
  text-decoration: none !important;
}

.c-discussion {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
  cursor: pointer;
  transition: background .12s;
  border-radius: 0;
}

.c-discussion__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.c-discussion__title {
  font-weight: 700;
  font-size: 18px;
}

.c-discussion__date {
  font-size: 13px;
  color: var(--c-muted);
  margin-left: 8px;
  flex-shrink: 0;
}

.c-discussion__excerpt {
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.c-discussion__meta {
  display: flex;
  gap: 12px;
}

.c-discussion__meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--c-muted);
}

.c-discussion__meta .dashicons {
  font-size: 14px;
  width: 12px;
  height: 12px;
}

.c-detail__posted {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 6px;
  text-align: end;
}

.c-detail__title {
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
}

.c-detail__body {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.c-detail__meta {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
}

.c-detail__meta span {
  display: flex;
  align-items: center;
  gap: 0px;
  font-size: 14px;
  color: var(--c-muted);
}

.c-comment-label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.c-comment-textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--c-border);
  padding: 10px 12px;
  font-family: var(--f-body);
  font-size: 12px;
  resize: vertical;
  outline: none;
  margin-bottom: 8px;
}

.c-comment-textarea:focus {
  border-color: var(--c-primary);
}

.c-btn-post {
  float: right;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 7px 20px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.c-btn-post:hover {
  background: var(--c-primary-dark);
}

/* ── DIRECTORY ────────────────────────────────────────────── */
.c-search-row {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  justify-content: center;
}

.c-search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  background: var(--c-white);
  min-width: 370px;
}

.c-search-pill .dashicons {
  font-size: 20px;
  color: var(--c-muted);
  flex-shrink: 0;
}

.c-search-pill input {
  border: none;
  background: none;
  outline: none;
  font-size: 15px;
  font-family: var(--f-body);
  color: var(--c-text);
  width: 100%;
  font-weight: 600;
}

.c-search-pill input::placeholder {
  color: var(--c-muted);
}

.c-results-label {
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  font-style: italic;
  margin-bottom: 16px;
}

.c-dir-member {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
  max-width: 640px;
  margin: 0 auto;
}

.c-dir-member:last-child {
  border-bottom: none;
}

.c-dir-member__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #c8d4de;
  flex-shrink: 0;
  overflow: hidden;
}

.c-dir-member__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-dir-member__info {
  flex: 1;
}

.c-dir-member__location {
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 2px;
}

.c-dir-member__location span {
  color: var(--c-primary);
}

.c-dir-member__name {
  font-weight: 700;
  font-size: 18px;
}

.c-dir-member__role {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 1px;
}

.c-dir-member__icons {
  display: flex;
  gap: 8px;
}

.c-dir-member__icons a {
  color: #aab4be;
  display: flex;
  align-items: center;
}

.c-dir-member__icons .dashicons {
  font-size: 24px;
}

svg {
  fill: var(--c-primary);
}

.c-dir-member__icons a:hover {
  color: var(--c-primary);
}

/* ── RESOURCES ────────────────────────────────────────────── */
.c-resources-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 0 0 60px;
}

.c-sidebar-search {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.c-sidebar-search .dashicons {
  font-size: 14px;
  color: var(--c-muted);
}

.c-sidebar-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 12px;
  font-family: var(--f-body);
  width: 100%;
  color: var(--c-text);
}

.c-sidebar-group {
  margin-bottom: 18px;
}

.c-sidebar-group__label {
  font-size: 12px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.c-sidebar-group a {
  display: block;
  font-size: 12px;
  color: var(--c-muted);
  padding: 2px 0;
  text-decoration: none;
}

.c-sidebar-group a:hover {
  color: var(--c-primary);
}

.c-sidebar-group a.is-active {
  color: var(--c-primary);
  font-weight: 600;
}

.c-upload-resource {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-primary);
  text-decoration: none;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}

.c-upload-resource:hover {
  text-decoration: underline;
}

.c-resource-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.c-resource-tag-label {
  font-size: 12px;
  font-weight: 600;
}

.c-resource-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--c-primary-light);
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
}

.c-resource-tag button {
  background: none;
  border: none;
  color: var(--c-primary);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  line-height: 1;
}

.c-resource-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
}

.c-resource-row:last-child {
  border-bottom: none;
}

.c-resource-row__thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #c8d4de;
  flex-shrink: 0;
  overflow: hidden;
}

.c-resource-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-resource-row__info {
  flex: 1;
}

.c-resource-row__date {
  font-size: 10px;
  color: var(--c-muted);
  margin-bottom: 2px;
}

.c-resource-row__title {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
}

.c-resource-row__title a {
  color: var(--c-text);
}

.c-resource-row__title a:hover {
  color: var(--c-primary);
  text-decoration: none;
}

.c-resource-row__link {
  color: #aab4be;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.c-resource-row__link .dashicons {
  font-size: 18px;
}

.c-resource-row__link:hover {
  color: var(--c-primary);
}

/* ── EVENTS ───────────────────────────────────────────────── */
.c-events-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 0 0 60px;
}

.c-events-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
  gap: 20px;
  flex-wrap: wrap;
}

.c-events-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 700;
}

.c-events-col-title .dashicons {
  color: var(--c-primary);
  font-size: 25px;
}

.c-events-create-link {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 16px;
  color: var(--c-primary);
  text-decoration: none;
}

span.dashicons.dashicons-plus-alt2 {
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
}

.c-events-create-link:hover {
  text-decoration: underline;
}

.c-event-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
}

.c-event-row__date {
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 3px;
}

.c-event-row__title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.c-event-row__title a {
  color: var(--c-text);
}

.c-event-row__title a:hover {
  color: var(--c-primary);
  text-decoration: none;
}

.c-event-row__desc {
  font-size: 16px;
  color: var(--c-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-state-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

.c-state-search .dashicons {
  font-size: 26px;
  color: var(--c-muted);
  transform: scaleX(-1);
}

.c-state-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 16px;
  font-family: var(--f-body);
  color: var(--c-text);
}

.c-state-search input::placeholder {
  color: var(--c-muted);
}

/* ── MY COALITION ─────────────────────────────────────────── */
.c-coalition-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 0 60px;
}

.c-coalition-name {
  font-family: var(--f-head);
  font-size: 25px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.c-coalition-location {
  text-align: center;
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 2px;
  font-weight: 600;
}

.c-coalition-count {
  text-align: center;
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 32px;
}

.c-coalition-leader {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 2px solid var(--c-border);
  margin-bottom: 4px;
}

.c-coalition-leader__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #c8d4de;
  flex-shrink: 0;
  overflow: hidden;
}

.c-coalition-leader__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-coalition-leader__info {
  flex: 1;
}

.c-coalition-leader__role {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: .5px;
  display: block;
  margin-bottom: 2px;
}

.c-coalition-leader__name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.c-coalition-leader__bio {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.6;
}

.c-coalition-leader__icons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 4px;
}

.c-coalition-leader__icons a {
  color: #aab4be;
  display: flex;
  align-items: center;
}

.c-coalition-leader__icons .dashicons {
  font-size: 18px;
}

.c-coalition-leader__icons a:hover {
  color: var(--c-primary);
}

.c-coalition-member {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
}

.c-coalition-member:last-child {
  border-bottom: none;
}

.c-coalition-member__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #c8d4de;
  flex-shrink: 0;
  overflow: hidden;
}

.c-coalition-member__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-coalition-member__info {
  flex: 1;
}

.c-coalition-member__role {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: .5px;
  display: block;
  margin-bottom: 2px;
}

.c-coalition-member__name {
  font-weight: 700;
  font-size: 16px;
}

.c-coalition-member__name a {
  color: var(--c-text);
}

.c-coalition-member__icons {
  display: flex;
  gap: 8px;
}

.c-coalition-member__icons a {
  color: #aab4be;
  display: flex;
  align-items: center;
}

.c-coalition-member__icons .dashicons {
  font-size: 17px;
}

.c-coalition-member__icons a:hover {
  color: var(--c-primary);
}

/* ── PROFILE ──────────────────────────────────────────────── */
.c-profile-wrap {
  max-width: 580px;
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
}

.c-saved-notice {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--r-sm);
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #2e7d32;
}

.c-profile-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 40px 48px 36px;
  box-shadow: var(--shadow-md);
}

.c-profile-avatar-wrap {
  text-align: center;
  margin-bottom: 8px;
}

.c-profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #c8d4de;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.c-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-profile-avatar .dashicons {
  font-size: 44px;
  color: #98a8b8;
}

.c-profile-upload-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  color: var(--c-primary);

}

.c-profile-title {
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 16px 0 24px;
}

.c-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

.c-form-row--full {
  grid-template-columns: 1fr;
}

.c-form-field {
  display: flex;
  flex-direction: column;
}

.c-form-field label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.c-form-field legend {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.c-form-field .error {
  font-size: 13px;
  color: red;
}

body .field-visibility-settings-notoggle {
  font-size: 13px;
}

.c-form-field input,
.c-form-field textarea {
  border: none;
  border-bottom: 1px solid var(--c-border);
  padding: 6px 0;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--c-text);
  background: none;
  outline: none;
  transition: border-color .15s;
}

.c-form-field input:focus,
.c-form-field textarea:focus {
  border-bottom-color: var(--c-primary);
}

.c-form-field input::placeholder,
.c-form-field textarea::placeholder {
  color: var(--c-muted);
}

.c-form-field textarea {
  min-height: 70px;
  resize: vertical;
}

.c-btn-save {
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 9px 28px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
}

.c-btn-save:hover {
  background: var(--c-primary-dark);
}

.c-profile-coalition-btn {
  text-align: center;
  margin-top: 100px;
}

.c-profile-upload-link {
  position: relative;
  width: fit-content;
  margin: auto;
}

.profile_avatar {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  border: 0;
  appearance: none;
  font-size: 0;
  width: 100%;
  height: 21px;
  opacity: 0;
  cursor: pointer;
}

.c-btn-secondary {
  display: inline-flex;
  padding: 9px 28px;
  background: var(--c-primary-light);
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.c-btn-secondary:hover {
  background: var(--c-primary);
  color: #fff;
  text-decoration: none;
}

/* ── BUTTONS / SHARED ─────────────────────────────────────── */
.c-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--c-primary);
  color: #fff;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}

.c-btn:hover {
  background: var(--c-primary-dark);
  color: #fff;
  text-decoration: none;
}

.c-btn--outline {
  background: transparent;
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.c-btn--outline:hover {
  background: var(--c-primary);
  color: #fff;
}

.c-load-more-wrap {
  text-align: center;
  padding: 28px 0;
}

.c-login-gate {
  background: var(--c-primary-light);
  border-radius: var(--r);
  padding: 32px;
  text-align: center;
}

.c-login-gate p {
  margin-bottom: 0;
}

.c-empty {
  color: var(--c-muted);
  padding: 20px;
  text-align: center;
  font-size: 16px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.c-footer {
  background: var(--c-footer-bg);
  border-top: 1px solid var(--c-border);
  padding: 36px 0 0;
}

.c-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.c-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 24px;
}

.c-footer__logo {
  font-family: var(--f-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-text);
  text-decoration: none;
}

.c-footer__logo img {
  max-height: 40px;
  width: auto;
}

.c-footer__newsletter p {
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 6px;
  text-align: right;
}

.c-footer__form {
  display: flex;
}

.c-footer__email {
  border: 1px solid var(--c-border);
  border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  padding: 8px 14px;
  font-size: 12px;
  font-family: var(--f-body);
  outline: none;
  min-width: 200px;
  background: var(--c-white);
}

.c-footer__email:focus {
  border-color: var(--c-primary);
}

.c-footer__cta {
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
}

.c-footer__cta:hover {
  background: var(--c-primary-dark);
}

.c-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--c-border);
  padding: 16px 0;
  margin-bottom: 0;
}

.c-footer__nav a {
  font-size: 12px;
  color: var(--c-text);
  padding: 2px 12px;
  border-right: 1px solid var(--c-border);
  text-decoration: none;
}

.c-footer__nav a:last-child {
  border-right: none;
}

.c-footer__nav a:hover {
  color: var(--c-primary);
}

.c-footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
  gap: 8px;
}

.c-footer__legal-links {
  display: flex;
}

.c-footer__legal-links a {
  font-size: 10px;
  color: var(--c-muted);
  padding: 0 10px;
  border-right: 1px solid var(--c-border);
  text-decoration: none;
}

.c-footer__legal-links a:first-child {
  padding-left: 0;
}

.c-footer__legal-links a:last-child {
  border-right: none;
}

.c-footer__legal-links a:hover {
  color: var(--c-primary);
}

.c-footer__copy {
  font-size: 10px;
  color: var(--c-muted);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width:991px) {
  .c-dash-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .c-dash-grid:not(.c-dash-grid--2) .c-dash-card:last-child {
    margin-top: 40px;
  }

  .c-dash-grid--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    padding-top: 70px;
  }

  .c-resources-layout {
    grid-template-columns: 1fr;
  }

  .c-community-layout {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }

  .c-events-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width:767px) {
  .c-dash-grid:not(.c-dash-grid--2) .c-dash-card:last-child {
    margin-top: 0px;
  }

  .c-dash-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 75px;
    padding: 70px 0 0;
  }

  :root {
    --gutter: 16px;
  }

  .c-header {
    padding: 0 16px;
  }

  .c-nav {
    overflow-x: auto;
    gap: 3px;
  }

  .c-nav__item {
    font-size: 10px;
    padding: 5px 10px;
  }

  .c-hero {
    height: 130px;
  }

  .c-hero__title {
    font-size: 20px;
  }

  .c-section-title {
    font-size: 22px;
  }

  .c-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .c-search-pill {
    min-width: 0;
  }

  .c-form-row {
    grid-template-columns: 1fr;
  }

  .c-profile-card {
    padding: 24px 20px;
  }

  .c-footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .c-footer__newsletter p {
    text-align: left;
  }

  .c-footer__email {
    min-width: 0;
    flex: 1;
  }
}

.c-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.c-popup__box {
  background: #fff;
  width: 400px;
  max-width: 90%;
  margin: 80px auto;
  padding: 20px;
  position: relative;
  border-radius: 6px;
}

.c-popup__close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
}

.c-popup input,
.c-popup textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
}

.c-comments-box {
  background: #f9f9f9;
  padding: 15px;
  margin-top: 10px;
  border-radius: 6px;
}

.c-comment {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
}

.c-comment:last-child {
  border-bottom: none;
}

.c-pagination {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.c-load-more,
.c-load-prev {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Hover */
.c-load-more:hover,
.c-load-prev:hover {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

/* Active click */
.c-load-more:active,
.c-load-prev:active {
  transform: scale(0.96);
}

/* Disabled (optional future use) */
.c-load-more:disabled,
.c-load-prev:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#c-comments-wrapper {
  transition: all 0.3s ease;
}

.c-like-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: 0.2s;
}

.c-like-btn .dashicons {
  color: #999;
  transition: 0.3s;
}

.c-like-btn.is-liked .dashicons {
  color: red;
  transform: scale(1.2);
}

/* Container for search results */
#c-dash-search-results {
  display: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  max-height: 300px;
  /* scrollable if too many results */
  overflow-y: auto;
  padding: 10px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Unordered list style */
.c-dash-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Individual user item */
.c-dash-user-list li {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

/* Hover effect */
.c-dash-user-list li:hover {
  background-color: #f0f0f0;
  color: #0073aa;
  /* WordPress blue */
}

/* Link inside li (if using <a>) */
.c-dash-user-list li a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Last item border removal */
.c-dash-user-list li:last-child {
  border-bottom: none;
}

/* Optional: scrollbar styling for modern look */
#c-dash-search-results::-webkit-scrollbar {
  width: 6px;
}

#c-dash-search-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

#c-dash-search-results::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 6px;
}

#c-dash-search-results::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ================================================================
   MODERATION UI STYLES
   ================================================================ */

/* ── Pin Badge ─────────────────────────────────────────────── */
.c-pin-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.c-pin-badge .dashicons {
  font-size: 13px;
  width: 13px;
  height: 13px;
  vertical-align: middle;
  margin-right: 2px;
}

.c-pin-icon {
  color: #2e7d32;
  margin-right: 4px;
}

.c-pin-icon .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

.c-discussion.is-pinned {
  border-left: 3px solid #2e7d32;
  padding-left: 10px;
}

/* ── Moderator Action Bar ──────────────────────────────────── */
.c-mod-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  margin: 10px 0;
  background: #f5f0ff;
  border: 1px solid #d9cef5;
  border-radius: 6px;
  font-size: 12px;
}

.c-mod-label {
  font-weight: 700;
  color: #5b21b6;
  margin-right: 4px;
}

.c-mod-label .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

.c-mod-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  color: #374151;
  transition: all 0.15s;
}

.c-mod-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.c-mod-btn .dashicons {
  font-size: 13px;
  width: 13px;
  height: 13px;
}

.c-mod-btn.c-mod-delete-topic:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.c-mod-btn.is-pinned {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #2e7d32;
}

.c-mod-reports {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fef2f2;
  color: #dc2626;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.c-mod-reports .dashicons {
  font-size: 13px;
  width: 13px;
  height: 13px;
}

/* ── Small Mod Buttons (on replies) ────────────────────────── */
.c-mod-btn-sm {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  color: #9ca3af;
  font-size: 11px;
  transition: color 0.15s;
}

.c-mod-btn-sm:hover {
  color: #374151;
}

.c-mod-btn-sm.c-mod-delete-reply:hover {
  color: #dc2626;
}

.c-mod-btn-sm .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

/* ── Comment Footer (date + action buttons) ────────────────── */
.c-comment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.c-comment-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s;
}

.c-comment:hover .c-comment-actions {
  opacity: 1;
}

/* ── Report Button ─────────────────────────────────────────── */
.c-report-btn {
  cursor: pointer;
  color: #9ca3af;
  font-size: 12px;
  transition: color 0.15s;
}

.c-report-btn:hover {
  color: #f59e0b;
}

.c-report-btn .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

/* ── Inline Reply Edit ─────────────────────────────────────── */
.c-edit-reply-ta {
  width: 100%;
  min-height: 60px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  resize: vertical;
  font-family: inherit;
}

/* ── Modal Overlay ─────────────────────────────────────────── */
.c-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.c-modal__box {
  background: #fff;
  border-radius: 10px;
  padding: 28px 32px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.c-modal__box h3 {
  margin: 0 0 16px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.c-modal__box h3 .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.c-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #9ca3af;
  line-height: 1;
}

.c-modal__close:hover {
  color: #374151;
}

.c-modal__box label {
  display: block;
  margin: 12px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.c-modal__box textarea,
.c-modal__box select,
.c-input-full {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}

.c-modal__box textarea {
  resize: vertical;
  min-height: 70px;
}

.c-btn-primary {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 20px;
  background: #5b21b6;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.c-btn-primary:hover {
  background: #4c1d95;
}

/* ================================================================
   USER POST UPDATES STYLES
   ================================================================ */

/* ── Author Tag ────────────────────────────────────────────── */
.c-author-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
}

.c-author-tag strong {
  color: #1f2937;
}

.c-author-tag__info {
  background: #eef2ff;
  color: #4338ca;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.c-author-tag__date {
  color: #9ca3af;
  font-size: 11px;
}

/* ── Reply Author Tag ──────────────────────────────────────── */
.c-reply-author-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.c-reply-author-tag strong {
  font-size: 13px;
}

.c-reply-author-tag__info {
  background: #f0fdf4;
  color: #166534;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 500;
}

/* ── Own-Post Buttons ──────────────────────────────────────── */
.c-own-bar {
  display: flex;
  gap: 6px;
  margin: 8px 0;
}

.c-own-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  color: #374151;
  transition: all 0.15s;
}

.c-own-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.c-own-btn .dashicons {
  font-size: 13px;
  width: 13px;
  height: 13px;
}

.c-own-btn.c-own-delete-topic:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* ── Notification Button ───────────────────────────────────── */
.c-notify-btn {
  cursor: pointer;
  color: #9ca3af;
  font-size: 12px;
  transition: color 0.15s;
}

.c-notify-btn:hover {
  color: #6366f1;
}

.c-notify-btn.is-subscribed {
  color: #6366f1;
  font-weight: 600;
}

.c-notify-btn .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

/* ── Posting Restriction ───────────────────────────────────── */
.c-post-restricted,
.c-post-restricted-bar {
  color: #6b7280;
  font-size: 12px;
  padding: 8px 12px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  text-align: center;
}

.c-post-restricted .dashicons,
.c-post-restricted-bar .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
}

/* ── Category Filter Tabs ──────────────────────────────────── */
.c-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0;
  margin-bottom: 4px;
  border-bottom: 1px solid #e5e7eb;
}

.c-cat-tab {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.15s;
}

.c-cat-tab:hover {
  background: #e5e7eb;
  color: #374151;
}

.c-cat-tab.is-active {
  background: #5b21b6;
  color: #fff;
  border-color: #5b21b6;
}

/* ================================================================
   CONTRIBUTOR PERMISSION STYLES
   ================================================================ */

/* ── Contributor Badge (shown next to role) ────────────────── */
.c-contributor-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #f0fdf4;
  color: #16a34a;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 6px;
}

.c-contributor-badge .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  color: #16a34a;
}

/* ── Custom Green Checkbox ─────────────────────────────────── */
.c-contributor-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  font-size: 13px;
  margin-right: 8px;
  vertical-align: middle;
}

.c-contributor-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.c-contributor-checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  position: relative;
  transition: all 0.15s;
  flex-shrink: 0;
}

.c-contributor-checkbox input:checked~.c-contributor-checkmark {
  background: #16a34a;
  border-color: #16a34a;
}

.c-contributor-checkmark::after {
  content: '';
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.c-contributor-checkbox input:checked~.c-contributor-checkmark::after {
  display: block;
}

.c-contributor-checkbox:hover .c-contributor-checkmark {
  border-color: #16a34a;
}

.c-contributor-label {
  color: #374151;
  font-weight: 500;
}

/* ── Admin profile contributor checkbox ────────────────────── */
.form-table .c-contributor-checkbox {
  margin: 0;
}

.form-table .c-contributor-label {
  font-size: 13px;
}

/* ================================================================
   EVENTS CALENDAR & ENHANCED CARDS
   ================================================================ */

/* ── Calendar Wrapper ──────────────────────────────────────── */
.cev-calendar-wrap {
  margin-bottom: 32px;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.cev-calendar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
}

.cev-cal-month {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex: 1;
  text-align: center;
  font-family: var(--f-head, inherit);
}

.cev-cal-nav {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.cev-cal-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.cev-cal-nav .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.cev-cal-today {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.cev-cal-today:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ── Calendar Grid ─────────────────────────────────────────── */
.cev-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0;
}

.cev-day-name {
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid var(--c-border, #e5e7eb);
}

#cev-days-container {
  display: contents;
}

.cev-day {
  min-height: 90px;
  padding: 4px 5px;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  transition: background 0.1s;
  overflow: hidden;
}

.cev-day:nth-child(7n) {
  border-right: none;
}

.cev-day--empty {
  background: #fafafa;
}

.cev-day--has {
  cursor: pointer;
}

.cev-day--has:hover {
  background: #eef6ff;
}

.cev-day--today {
  background: #fffbeb;
}

.cev-day--today .cev-day-num {
  background: #2980b9;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cev-day-num {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.cev-day-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 3px;
  overflow: hidden;
}

.cev-evt-label {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  padding: 2px 4px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.1s;
  font-weight: 500;
}

.cev-evt-label:hover {
  opacity: 0.8;
}

.cev-evt-label--event {
  background: #dbeafe;
  color: #1e40af;
}

.cev-evt-label--training {
  background: #d1fae5;
  color: #065f46;
}

.cev-evt-time {
  font-weight: 600;
  font-size: 14px;
}

.cev-evt-more {
  font-size: 9px;
  color: #6b7280;
  padding: 1px 4px;
  cursor: pointer;
  font-weight: 500;
}

/* ── Filter Bar ────────────────────────────────────────────── */
.cev-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 10px;
}

.cev-filter-tabs {
  display: flex;
  gap: 6px;
}

.cev-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}

.cev-tab:hover {
  border-color: #9ca3af;
  color: #374151;
}

.cev-tab.is-active {
  background: #2980b9;
  color: #fff;
  border-color: #2980b9;
}

.cev-tab .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.cev-filter-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cev-search-box {
  position: relative;
}

.cev-search-box .dashicons {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.cev-search-box input {
  padding: 6px 10px 6px 32px;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 6px;
  font-size: 13px;
  width: 180px;
  background: #fff;
}

.cev-search-box input:focus {
  border-color: #2980b9;
  outline: none;
}

.cev-select {
  padding: 6px 10px;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  color: #374151;
}

/* ── Two-Column Layout ─────────────────────────────────────── */
.cev-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .cev-columns {
    grid-template-columns: 1fr;
  }

  .cev-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .cev-filter-controls {
    flex-direction: column;
  }

  .cev-search-box input {
    width: 100%;
  }

  .cev-day {
    min-height: 50px;
  }
}

.cev-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-border, #e5e7eb);
}

.cev-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-head, inherit);
  font-size: 18px;
  font-weight: 700;
  color: #1a5276;
}

.cev-col-title .dashicons {
  color: #2980b9;
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.cev-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: #2980b9;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.cev-create-btn:hover {
  background: #1a6da0;
}

.cev-create-btn .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

/* ── Event Cards ───────────────────────────────────────────── */
.cev-card {
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.cev-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 12px rgba(41, 128, 185, 0.08);
}

.cev-card-header {
  display: flex;
  gap: 14px;
}

.cev-card-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 6px 8px;
  background: #eef6ff;
  border-radius: 8px;
  flex-shrink: 0;
}

.cev-card[data-kind="training"] .cev-card-date-block {
  background: #ecfdf5;
}

.cev-card-month {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2980b9;
  letter-spacing: 0.5px;
}

.cev-card[data-kind="training"] .cev-card-month {
  color: #27ae60;
}

.cev-card-day {
  font-size: 22px;
  font-weight: 700;
  color: #1a5276;
  line-height: 1;
}

.cev-card[data-kind="training"] .cev-card-day {
  color: #1e7a47;
}

.cev-card-info {
  flex: 1;
  min-width: 0;
}

.cev-card-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

.cev-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #6b7280;
}

.cev-card-meta .dashicons {
  font-size: 13px;
  width: 13px;
  height: 13px;
  vertical-align: -1px;
  color: #9ca3af;
}

.cev-card-tags {
  margin-top: 6px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.cev-tag {
  display: inline-block;
  padding: 1px 8px;
  background: #f0f5ff;
  color: #1e40af;
  font-size: 10px;
  font-weight: 600;
  border-radius: 10px;
}

.cev-state-pill {
  display: inline-block;
  padding: 1px 8px;
  background: #f0fdf4;
  color: #166534;
  font-size: 10px;
  font-weight: 600;
  border-radius: 10px;
  margin-top: 4px;
}

.cev-online-badge {
  color: #7c3aed !important;
  font-weight: 600;
}

.cev-online-badge .dashicons {
  color: #7c3aed;
}

.cev-card-excerpt {
  font-size: 13px;
  color: #6b7280;
  margin: 8px 0 0;
  line-height: 1.5;
}

.cev-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
}

.cev-view-btn {
  padding: 4px 12px;
  background: #fff;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
}

.cev-view-btn:hover {
  border-color: #2980b9;
  color: #2980b9;
}

.cev-register-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 12px;
  background: #2980b9;
  color: #fff !important;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.cev-register-btn:hover {
  background: #1a6da0;
 color: #fff !important;
}

.cev-register-btn .dashicons {
  font-size: 12px;
  width: 12px;
  height: 12px;
}

/* ── Detail Panel ──────────────────────────────────────────── */
.cev-detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99999;
  display: flex;
  justify-content: flex-end;
}

.cev-detail-panel {
  width: 480px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  overflow-y: auto;
  padding: 28px 32px;
  position: relative;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  animation: cev-slide-in 0.25s ease;
}

@keyframes cev-slide-in {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.cev-detail-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  line-height: 1;
}

.cev-detail-close:hover {
  color: #374151;
}

.cev-kind-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cev-kind-badge--event {
  background: #dbeafe;
  color: #1e40af;
}

.cev-kind-badge--training {
  background: #d1fae5;
  color: #065f46;
}

.cev-detail-title {
  font-size: 22px;
  font-weight: 700;
  margin: 12px 0 16px;
  color: #1f2937;
  line-height: 1.3;
}

.cev-detail-date {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #1f2937;
}

.cev-detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.cev-detail-meta-item {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.cev-detail-meta-item .dashicons {
  color: #2980b9;
  font-size: 18px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cev-detail-meta-item strong {
  font-weight: 600;
  color: #6b7280;
  font-size: 11px;
  text-transform: uppercase;
}

.cev-detail-tags {
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cev-detail-body {
  padding: 16px 0;
  border-top: 1px solid #f3f4f6;
  font-size: 14px;
  color: #374151;
  line-height: 1.7;
}

.cev-detail-body p {
  margin: 0;
}

.cev-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.cev-detail-link {
  padding: 6px 16px;
  background: #2980b9;
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.cev-detail-link:hover {
  background: #1a6da0;
  color: #fff !important;
}

.cev-edit-btn, .cev-delete-btn {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  color: #374151;
  transition: all 0.15s;
}

.cev-edit-btn:hover {
  border-color: #2980b9;
  color: #2980b9;
}

.cev-delete-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.cev-detail-author {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 12px;
  font-style: italic;
}

.cev-detail-mini {
  padding: 8px 10px;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.1s;
}

.cev-detail-mini:hover {
  background: #f8fafc;
}