/* KWCS community-events styles — extracted from _assets/kwcs-homepage-v4.html */

/* ─── COMMUNITY EVENTS ─── */
  .community-events-section {
    background: var(--warm-white);
    padding: 100px 80px;
  }

.comm-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
  }

.comm-search-wrap, .comm-location-wrap { position: relative; }

.comm-search, .comm-location {
    height: 48px;
    border: 2px solid var(--border);
    border-radius: 100px;
    font-family: 'Nunito', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
    background: white;
    outline: none;
    transition: border-color 0.2s;
  }

.comm-search { padding: 0 18px 0 44px; width: 300px; }

.comm-location { padding: 0 36px 0 42px; min-width: 220px; appearance: none; cursor: pointer; }

.comm-search:focus, .comm-location:focus { border-color: var(--navy); }

.comm-location-wrap::after {
    content: ''; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 6px solid var(--navy);
    pointer-events: none;
  }

.comm-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

.comm-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  }

.comm-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 12px 28px rgba(30,75,143,0.12);
  }

.comm-card.hidden { display: none; }

.comm-card-visual {
    position: relative;
    height: 170px;
    overflow: hidden;
  }

.comm-card-visual--blue {
    background:
      repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 10px, transparent 10px 20px),
      linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
  }

.comm-card-visual--gold {
    background:
      repeating-linear-gradient(135deg, rgba(255,255,255,0.15) 0 10px, transparent 10px 20px),
      linear-gradient(135deg, var(--gold), var(--gold-deep));
  }

.comm-card-body { padding: 22px; }

.comm-card-meta {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px; flex-wrap: wrap;
  }

.comm-card-location {
    font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    color: white; background: var(--navy);
    padding: 4px 12px; border-radius: 100px;
  }

.comm-card-date { font-size: 13px; color: var(--muted); font-weight: 600; }

.comm-card-title {
    font-family: 'Chewy', cursive;
    font-size: 22px; color: var(--navy-deep);
    margin-bottom: 8px; line-height: 1.1;
  }

.comm-card-desc {
    font-size: 14px; color: var(--muted); line-height: 1.6;
    margin-bottom: 14px; font-weight: 500;
  }

.comm-card-link {
    font-size: 13.5px; font-weight: 800; color: var(--navy);
    text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
    transition: gap 0.2s;
  }

.comm-card:hover .comm-card-link { gap: 10px; }

.comm-no-results {
    text-align: center; color: var(--muted); font-size: 15px;
    padding: 40px; font-weight: 600;
  }

@media (max-width: 1024px) {
  .community-events-section { padding: 72px 32px; }
  .comm-events-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .comm-events-grid { grid-template-columns: 1fr; }
  .comm-search { width: 100%; }
  .comm-location { width: 100%; }
  .comm-filter-bar { flex-direction: column; }
  .comm-search-wrap, .comm-location-wrap { width: 100%; }
}
