/* ============================================
   Hammerhead Training Center — Abdul schedule layout
   ============================================ */
:root {
  --primary: #3c8599;
  --primary-hover: #2f6b7a;
  --primary-soft: rgba(60, 133, 153, 0.1);
  --secondary: #80b538;
  --secondary-soft: rgba(128, 181, 56, 0.12);
  --text: #212121;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --card-bg: #fff;
  --page-bg: #f5f7f8;
  --radius: 8px;
}

.hh-tc {
  color: var(--text);
}

.hh-tc .layout {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.hh-tc .main { flex: 1; min-width: 0; }
.hh-tc .sidebar { width: 280px; flex-shrink: 0; }

/* Loading state for AJAX pagination */
.hh-tc.is-loading {
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.15s ease;
  position: relative;
}

/* Loading overlay + spinner */
.hh-tc.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 247, 248, 0.75);
  backdrop-filter: blur(1px);
  z-index: 50;
}

.hh-tc.is-loading::after {
  content: "Loading…";
  position: absolute;
  top: 110px; /* below tabs/pills, near events area */
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 60;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: rgba(33, 33, 33, 0.2);
}

/* Spinner ring positioned inside the loading pill */
/* Spinner is shown near month nav (see below). */

@keyframes hhTcSpin {
  to { transform: translateX(-50%) rotate(360deg); }
}

/* Add spinner circle via a pseudo-element on month nav wrap to avoid extra markup */
.hh-tc.is-loading .month-nav-wrap {
  position: relative;
}
.hh-tc.is-loading .month-nav-wrap::after {
  content: "";
  position: absolute;
  top: 0.25rem;
  right: -0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid rgba(33, 33, 33, 0.25);
  border-top-color: #212121;
  animation: hhTcSpin 0.8s linear infinite;
}

/* Tabs */
.hh-tc .top-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}
.hh-tc .top-tab {
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  margin-bottom: -2px;
}
.hh-tc .top-tab:hover { color: var(--text); }
.hh-tc .top-tab.active { color: var(--primary); }
.hh-tc .top-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
}

/* Pills */
.hh-tc .filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.hh-tc .filter-pill {
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: #e5e7eb;
  color: var(--text-muted);
}
.hh-tc .filter-pill:hover { background: #d1d5db; color: var(--text); }
.hh-tc .filter-pill.active { background: var(--primary); color: #fff; }

/* Panels */
.hh-tc .panel { display: none; }
.hh-tc .panel.active { display: block; }

/* Headings */
.hh-tc .section-head {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
}
.hh-tc .section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hh-tc .section-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

/* CTA strip */
.hh-tc .cta-strip {
  background: var(--primary-soft);
  border: 1px solid rgba(60, 133, 153, 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.hh-tc .cta-strip h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}
.hh-tc .cta-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.hh-tc .btn-enroll {
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hh-tc .btn-enroll:hover { background: var(--primary-hover); }
.hh-tc .btn-browse {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.hh-tc .btn-browse:hover { background: var(--primary-soft); }

/* Online course cards */
.hh-tc .course-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
.hh-tc .course-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.hh-tc .course-body {
  flex: 1 1 auto;
  min-width: 0; /* allow text to truncate/wrap instead of squeezing actions */
}
.hh-tc .course-actions {
  flex: 0 0 140px;
  display: flex;
  justify-content: flex-end;
}
.hh-tc .course-actions .btn-enroll {
  width: 100%;
  text-align: center;
}
.hh-tc .course-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.hh-tc .course-title { font-size: 1rem; font-weight: 700; margin: 0; }
.hh-tc .course-price { font-size: 1rem; font-weight: 700; }
.hh-tc .course-meta { font-size: 0.8125rem; color: var(--text-muted); margin: 0 0 0.5rem 0; }
.hh-tc .course-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.hh-tc .tag { font-size: 0.6875rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 4px; }
.hh-tc .tag-online { background: var(--secondary-soft); color: #4d7c2c; }
.hh-tc .tag-category { background: var(--primary-soft); color: var(--primary); }

/* Events list */
.hh-tc .events-section { margin-top: 1.5rem; }
.hh-tc .event-list { display: flex; flex-direction: column; gap: 0.5rem; }
.hh-tc .event-card {
  display: flex;
  align-items: stretch;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hh-tc .event-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(60, 133, 153, 0.15);
}
.hh-tc .date-block {
  width: 64px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
  background: var(--primary);
}
.hh-tc .date-block .day-num { font-size: 1.5rem; line-height: 1.2; }
.hh-tc .date-block .day-name {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0.95;
}
.hh-tc .event-body {
  flex: 1;
  padding: 0.875rem 1rem;
  min-width: 0;
  display: flex;
  /* Keep price + availability pill aligned with the top of the event content. */
  align-items: self-start;
  /* When `flex-wrap` creates multiple lines, keep the lines packed to the top. */
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hh-tc .event-info { flex: 1; min-width: 200px; }
.hh-tc .event-title { font-size: 0.9375rem; font-weight: 700; margin: 0 0 0.25rem 0; }
.hh-tc .event-details { font-size: 0.8125rem; color: var(--text-muted); margin: 0; }
.hh-tc .event-excerpt { font-size: 0.8125rem; color: var(--text-muted); margin: 0.35rem 0 0; line-height: 1.4; }
.hh-tc .event-status {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  align-self: flex-start !important;
}
.hh-tc .event-price {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  margin-left: auto;
  align-self: flex-start !important;
}
.hh-tc .event-status.available { background: var(--secondary-soft); color: #4d7c2c; }

/* Month nav */
.hh-tc .month-nav { display: flex; align-items: center; gap: 0.5rem; }
.hh-tc .month-nav span { font-size: 0.9375rem; font-weight: 600; min-width: 110px; text-align: center; }
.hh-tc .month-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text);
}
.hh-tc .month-nav-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.hh-tc .month-nav-btn:focus,
.hh-tc .month-nav-btn:focus-visible {
  outline: none;
  border-color: var(--primary);
}

/* Requested: hover/focus = primary background, white icon */
.hh-tc .month-nav-btn:hover,
.hh-tc .month-nav-btn:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.hh-tc .month-nav-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Sidebar */
.hh-tc .sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.hh-tc .sidebar-card h3 { font-size: 0.9375rem; font-weight: 700; margin: 0 0 0.75rem 0; }
.hh-tc .month-list { list-style: none; margin: 0; padding: 0; }
.hh-tc .month-list li { font-size: 0.8125rem; padding: 0.35rem 0; display: flex; align-items: flex-start; gap: 0.5rem; line-height: 1.35; }
.hh-tc .month-list .glance-text { display: inline; }
.hh-tc .month-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--primary); }
.hh-tc .sidebar .sidebar-card .month-list li.is-available::before { background: #22c55e; }
.hh-tc .sidebar .sidebar-card .month-list li.is-sold-out::before { background: #ef4444; }
.hh-tc .sidebar .sidebar-card .month-list li.is-unknown::before { background: #6b7280; }
.hh-tc .month-list a { color: inherit; text-decoration: none; }
.hh-tc .month-list a:hover { color: var(--primary); text-decoration: underline; }
.hh-tc .help-text { font-size: 0.8125rem; color: var(--text-muted); margin: 0 0 0.75rem 0; line-height: 1.5; }
.hh-tc .btn-quiz { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0; font-size: 0.875rem; font-weight: 500; color: var(--text); background: none; border: none; cursor: pointer; }
.hh-tc .btn-quiz:hover { color: var(--primary); }

@media (max-width: 900px) {
  .hh-tc .layout { flex-direction: column; }
  .hh-tc .sidebar { width: 100%; }
  .hh-tc .event-body { flex-direction: column; align-items: flex-start; }
}

.class-schedule-wrapper .schedule-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--schedule-text);
    margin-bottom: 1.25rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Tabs: soft segmented control — neutral border, pill active state */
.schedule-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 5px;
    background: #eef0f2;
    border-radius: 0;
    border: 1px solid #e0e3e6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.25rem;
}

.schedule-tab {
    padding: 0.6rem 1.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-tab:hover {
    color: var(--schedule-primary);
    background: rgba(255, 255, 255, 0.7);
}

.schedule-tab.active {
    background: var(--schedule-primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(60, 133, 153, 0.35);
}

/* Keep tab bar neutral if theme injects colored borders */
.class-schedule-wrapper .schedule-tabs {
    border-color: #e0e3e6;
}
.class-schedule-wrapper .schedule-tab:not(.active) {
    color: #6b7280;
}

.schedule-panel[aria-hidden="true"] {
    display: none;
}

.schedule-panel[aria-hidden="false"] {
    display: block;
}

.schedule-date-online .day {
    font-size: 1.25rem;
}

/* Filters: card-style toolbar */
.schedule-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--schedule-card-bg);
    border-radius: 0;
    border: 1px solid var(--schedule-border);
    box-shadow: var(--schedule-shadow);
}

.schedule-filters .filter-by-category {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.schedule-filters .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--schedule-border);
    background: var(--schedule-card-bg);
    color: var(--schedule-text-muted);
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.schedule-filters .filter-btn:hover {
    border-color: var(--schedule-primary);
    color: var(--schedule-primary)!important;
    background: var(--schedule-primary-soft);
}

.schedule-filters .filter-btn.active:hover {
    color: var(--schedule-primary);
}

.schedule-filters .filter-btn.active {
    background: var(--schedule-primary);
    color: #fff;
    border-color: var(--schedule-primary);
}

.schedule-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-filters .filter-group label {
    font-size: 0.8125rem;
    color: var(--schedule-text-muted);
    white-space: nowrap;
    font-weight: 500;
}

.schedule-filters select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.8125rem;
    border: 1px solid var(--schedule-border);
    border-radius: 0;
    background: var(--schedule-card-bg);
    color: var(--schedule-text);
    cursor: pointer;
}

.schedule-filters .show-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.schedule-filters .show-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--schedule-text);
    cursor: pointer;
}

.schedule-filters .show-options input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: var(--schedule-primary);
}

.schedule-filters .filters-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.schedule-no-results {
    color: var(--schedule-text-muted);
    padding: 2rem;
    text-align: center;
    background: var(--schedule-card-bg);
    border-radius: 0;
    border: 1px dashed var(--schedule-border);
}

/* Month section: left accent */
.schedule-month-group {
    margin-bottom: 2rem;
}

.schedule-month-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--schedule-text);
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    border-left: 4px solid var(--schedule-primary);
    letter-spacing: -0.01em;
}

.schedule-month-heading .month-count {
    font-weight: 500;
    color: var(--schedule-text-muted);
}

/* Class row: card style */
.schedule-class-row {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.25rem 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--schedule-card-bg);
    border-radius: 0;
    border: 1px solid var(--schedule-border);
    box-shadow: var(--schedule-shadow);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.schedule-class-row:hover {
    box-shadow: var(--schedule-shadow-hover);
    border-color: rgba(60, 133, 153, 0.2);
}

.schedule-class-row:last-child {
    margin-bottom: 0;
}

.schedule-class-row.hidden-by-filter {
    display: none;
}

/* Date block: slightly larger, clearer hierarchy */
.schedule-date-block {
    flex-shrink: 0;
    width: 88px;
    min-height: 88px;
    background: var(--schedule-date-bg);
    color: var(--schedule-date-text);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.6rem;
}

.schedule-date-block .day {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.schedule-date-block .month,
.schedule-date-block .year,
.schedule-date-block .weekday {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.schedule-date-block.schedule-date-cat-security-guard {
    background: var(--schedule-cat-security-guard-bg);
    color: var(--schedule-cat-security-guard-text);
}
.schedule-date-block.schedule-date-cat-firearms {
    background: var(--schedule-cat-firearms-bg);
    color: var(--schedule-cat-firearms-text);
}
.schedule-date-block.schedule-date-cat-civilian {
    background: var(--schedule-cat-civilian-bg);
    color: var(--schedule-cat-civilian-text);
}
.schedule-date-block.schedule-date-cat-all {
    background: var(--schedule-cat-all-bg);
    color: var(--schedule-cat-all-text);
}

/* Class details */
.schedule-class-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
}

.schedule-class-details .class-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--schedule-text);
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.schedule-class-details .schedule-part2-of {
    font-size: 0.8rem;
    color: var(--schedule-text-muted);
    margin: 0;
    font-weight: 400;
}

.schedule-class-details .schedule-card-description {
    font-size: 0.8125rem;
    color: var(--schedule-text-muted);
    line-height: 1.45;
    margin: 0 0 0.25rem 0;
    max-width: 52em;
}

.schedule-class-details .class-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--schedule-text-muted);
}

.schedule-class-details .class-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.schedule-class-details .class-meta .meta-icon {
    opacity: 0.85;
}

.schedule-class-details .category-tag {
    display: inline-block;
    padding: 0.28rem 0.65rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--schedule-tag-bg);
    color: var(--schedule-tag-text);
    border-radius: 0;
    margin-top: 0.2rem;
    width: fit-content;
}

.schedule-class-details .category-tag.category-tag-cat-security-guard {
    background: #171717;
    color: #FFC000;
}

/* Status / CTA column */
.schedule-class-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.schedule-class-actions .status-tag {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 0;
}

.schedule-class-actions .status-tag.status-ended {
    background: var(--schedule-past-bg);
    color: var(--schedule-past-text);
}

.schedule-class-actions .status-tag.upcoming {
    background: var(--schedule-primary-soft);
    color: var(--schedule-primary);
}

.schedule-class-actions .status-tag.sold-out {
    background: #fef3c7;
    color: #92400e;
}

.schedule-class-actions .class-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--schedule-text);
}

.schedule-class-actions .class-price .amount {
    font-size: 1.0625rem;
    letter-spacing: -0.02em;
}

.schedule-class-actions .class-price.class-price-past {
    font-weight: 600;
    color: var(--schedule-text-muted);
    font-size: 0.9375rem;
}

.schedule-class-actions .class-price.class-price-empty {
    color: var(--schedule-text-muted);
    font-weight: 500;
    font-size: 0.875rem;
}

.schedule-class-actions .class-cta {
    display: inline-block;
    padding: 0.55rem 1.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    border: none;
}

.schedule-class-actions .class-cta.cta-register {
    background: var(--schedule-primary);
    color: #fff;
}

.schedule-class-actions .class-cta.cta-register:hover {
    background: var(--schedule-primary-hover);
    transform: translateY(-1px);
}

/* Pagination */
.schedule-pagination {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.schedule-pagination-info {
    font-size: 0.8125rem;
    color: var(--schedule-text-muted);
    margin: 0;
}

.schedule-pagination-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.schedule-pagination-links li {
    margin: 0;
}

.schedule-pagination-links a,
.schedule-pagination-links .schedule-pagination-current {
    display: inline-block;
    min-width: 2.25rem;
    padding: 0.45rem 0.6rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: var(--schedule-primary);
    border: 1px solid var(--schedule-border);
    border-radius: 0;
    background: var(--schedule-card-bg);
    transition: background 0.2s, border-color 0.2s;
}

.schedule-pagination-links a:hover {
    background: var(--schedule-primary-soft);
    border-color: var(--schedule-primary);
}

.schedule-pagination-links .schedule-pagination-current {
    background: var(--schedule-primary);
    color: #fff;
    border-color: var(--schedule-primary);
    cursor: default;
}

@media (max-width: 768px) {
    .class-schedule-wrapper {
        padding: 1rem;
    }

    .schedule-tabs {
        width: 100%;
        justify-content: stretch;
    }

    .schedule-tab {
        flex: 1;
        text-align: center;
    }

    .schedule-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-filters .filters-right {
        margin-left: 0;
    }

    .schedule-class-row {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .schedule-date-block {
        width: 72px;
        min-height: 72px;
    }

    .schedule-date-block .day {
        font-size: 1.5rem;
    }

    .schedule-class-actions {
        width: 100%;
        align-items: flex-start;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--schedule-border);
    }

    .schedule-class-actions .class-cta.cta-register {
        width: 100%;
        text-align: center;
    }
}
