/* ─── Hub Layout ─── */
.hub-body {
  padding: 4rem 1.5rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}
.hub-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8e0d4;
}
.hub-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--forest-dark, #0f231c);
  margin-bottom: 0.3rem;
  font-weight: 600;
  line-height: 1.15;
}
.hub-header p {
  color: var(--text-light, #8a8a82);
  font-size: 0.9rem;
}

/* Quick stats row */
.hub-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hub-stat-card {
  background: var(--white, #fff);
  border: 1px solid var(--cream-dark, #f0e8d8);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
}
.hub-stat-card.academy { border-left: 3px solid var(--forest, #1a3a2f); }
.hub-stat-card.worship { border-left: 3px solid var(--gold, #c8a96e); }
.hub-stat-card.contacts { border-left: 3px solid var(--forest-mid, #254d3e); }
.hub-stat-card.events { border-left: 3px solid #8a6d4a; }
.hub-stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light, #8a8a82);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.hub-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--forest-dark, #0f231c);
  line-height: 1;
}
.hub-stat-sub {
  font-size: 0.75rem;
  color: var(--text-light, #8a8a82);
  margin-top: 0.3rem;
}

/* ─── Hub Grid ─── */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ─── Hub Card ─── */
.hub-card {
  background: var(--white, #fff);
  border: 1px solid var(--cream-dark, #f0e8d8);
  border-radius: 10px;
  overflow: hidden;
}
.hub-card-header {
  background: var(--forest, #1a3a2f);
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hub-card-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--cream, #faf6f0);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.hub-card-header .badge {
  background: rgba(200,169,110,0.25);
  color: var(--gold, #c8a96e);
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
.hub-card-body {
  padding: 1.2rem;
}

/* ─── Table Styles ─── */
.hub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.hub-table th {
  text-align: left;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light, #8a8a82);
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--cream-dark, #f0e8d8);
  font-weight: 500;
}
.hub-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--cream, #faf6f0);
  color: var(--text-mid, #4a4a45);
  vertical-align: middle;
}
.hub-table tr:last-child td { border-bottom: none; }
.hub-table tr:hover td { background: var(--cream, #faf6f0); }

/* ─── Status Badges ─── */
.status-badge {
  display: inline-block;
  font-size: 0.66rem;
  padding: 0.18rem 0.5rem;
  border-radius: 12px;
  font-weight: 500;
}
.status-new { background: #e8f4e8; color: #2a6b2a; }
.status-contacted { background: #fff4e0; color: #8a5a00; }
.status-enrolled { background: #dbeafe; color: #1a4a8a; }
.status-waitlist { background: #f3e8ff; color: #6a2a8a; }
.status-inactive { background: #eee; color: #777; }

/* ─── Attendance Chart ─── */
.att-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 100px;
  padding: 0.5rem 0;
}
.att-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  cursor: default;
}
.att-bar {
  width: 100%;
  background: var(--forest, #1a3a2f);
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: background 0.2s;
}
.att-bar:hover { background: var(--gold, #c8a96e); }
.att-bar-label {
  font-size: 0.6rem;
  color: var(--text-light, #8a8a82);
  margin-top: 0.25rem;
  text-align: center;
  white-space: nowrap;
}

/* ─── Events List ─── */
.event-item {
  display: flex;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--cream, #faf6f0);
  align-items: flex-start;
}
.event-item:last-child { border-bottom: none; }
.event-date-box {
  min-width: 44px;
  background: var(--forest, #1a3a2f);
  border-radius: 6px;
  text-align: center;
  padding: 0.4rem 0.3rem;
}
.event-month {
  font-size: 0.58rem;
  text-transform: uppercase;
  color: var(--gold, #c8a96e);
  letter-spacing: 0.08em;
  font-family: 'DM Sans', sans-serif;
}
.event-day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream, #faf6f0);
  line-height: 1;
}
.event-info { flex: 1; min-width: 0; }
.event-title { font-size: 0.85rem; color: var(--text-dark, #1a1a18); font-weight: 500; }
.event-meta {
  font-size: 0.72rem;
  color: var(--text-light, #8a8a82);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Forms ─── */
.hub-form {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.hub-form input, .hub-form select {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--cream-dark, #f0e8d8);
  border-radius: 6px;
  background: var(--cream, #faf6f0);
  color: var(--text-dark, #1a1a18);
  outline: none;
}
.hub-form input:focus, .hub-form select:focus {
  border-color: var(--forest, #1a3a2f);
  background: var(--white, #fff);
}
.hub-form button {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  background: var(--forest, #1a3a2f);
  color: var(--cream, #faf6f0);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s;
}
.hub-form button:hover { background: var(--forest-mid, #254d3e); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hub-stats { grid-template-columns: 1fr 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hub-stats { grid-template-columns: 1fr; }
  .hub-body { padding: 3.5rem 1rem 2rem; }
}