/* ===== Training Schedule Catalogue Card (Runmax theme) ===== */
.catalog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(79, 61, 53, 0.10);
  border: 2px solid #4F3D35;
  display: flex;
  flex-direction: column;
  font-family: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(79, 61, 53, 0.16);
}

.catalog-card-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #4F3D35 0%, #6b5547 100%);
  color: #fff;
  padding: 8px 18px;
}
.topbar-chip {
  flex: 0 0 auto;
  background: #AA8552;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 22px;
  white-space: nowrap;
}
.topbar-divider {
  flex: 0 0 auto;
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.35);
}
.catalog-title {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.catalog-duration {
  flex: 0 0 auto;
  background: #AA8552;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 22px;
  white-space: nowrap;
}

.catalog-body { padding: 10px 20px 12px; flex: 1 1 auto; min-width: 0; }
.cohort-table-wrap { max-height: 380px; overflow-y: auto; border-bottom: 1px solid #eee8e0; }

.catalog-online-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #faf6f1;
  border: 1px solid #e6dbcc;
  border-radius: 10px;
  padding: 7px 14px;
  margin-bottom: 4px;
  color: #5a4a3f;
}
.catalog-online-row strong { color: #4F3D35; }
.catalog-price { color: #4F3D35; font-weight: 700; white-space: nowrap; }
.online-action { display: flex; align-items: center; gap: 16px; }

table.cohort-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
table.cohort-table th {
  text-align: left;
  color: #4F3D35;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-bottom: 2px solid #AA8552;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}
table.cohort-table td {
  padding: 4px 10px;
  border-bottom: 1px solid #f0ebe4;
  color: #5a4a3f;
}
table.cohort-table tbody tr:nth-child(odd) { background: #faf6f1; }
table.cohort-table .loc::before {
  font-family: 'FontAwesome';
  content: '\f041';
  color: #AA8552;
  margin-right: 6px;
}

.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  background: #f6f1ea;
  border: 1px solid #e6dbcc;
  border-radius: 10px;
  padding: 10px 14px;
}
.filter-btn {
  border: 1px solid #e6dbcc;
  background: #fff;
  color: #5a4a3f;
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color:#AA8552; color:#4F3D35; }
.filter-btn.active { background:#4F3D35; border-color:#4F3D35; color:#fff; }
.filter-btn i { margin-right:5px; }

.filter-label {
  flex: 0 0 auto;
  font-weight: 700;
  color: #4F3D35;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: center;
}
.filter-sep {
  flex: 0 0 auto;
  width: 2px;
  border-radius: 1px;
  align-self: stretch;
  margin: 2px 8px;
  background: #AA8552;
}

table.cohort-table td.row-enroll { text-align: right; white-space: nowrap; }
.register-row-btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  background: linear-gradient(145deg, #AA8552, #8a6840);
  padding: 7px 18px;
  border-radius: 22px;
  box-shadow: 0 2px 5px rgba(170,133,82,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.register-row-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 9px rgba(170,133,82,0.5);
  background: #DD700B;
  text-decoration: none;
}

@media (max-width: 768px) {
  .catalog-card-topbar { flex-wrap: wrap; }
  .catalog-title { flex-basis: 100%; order: -1; }
}
