/**
 * BSERI Course Calendar — premium calendar UI
 */

:root {
  --cal-blue: #1c4484;
  --cal-blue-mid: #5363d6;
  --cal-blue-light: #6fb6e4;
  --cal-blue-glow: rgba(83, 99, 214, 0.35);
  --cal-blue-gradient: linear-gradient(135deg, #1c4484 0%, #5363d6 55%, #6fb6e4 100%);
  --cal-surface: #ffffff;
  --cal-surface-elevated: linear-gradient(165deg, #ffffff 0%, #f8fafc 48%, #eef2fa 100%);
  --cal-shadow: 0 20px 50px -12px rgba(28, 68, 132, 0.18);
  --cal-shadow-soft: 0 8px 30px rgba(28, 68, 132, 0.08);
  --cal-radius: 20px;
  --cal-radius-sm: 12px;
}

/* ── Page shell ───────────────────────────────────────── */
.batches-cal-section {
  position: relative;
  overflow: visible;
}

#batchesCalMain,
#batchesCalLayout .col-lg-8 {
  overflow: visible;
}

/* Compact hero + calendar flush under nav for above-the-fold calendar */
body.training-page .batches-hero {
  padding: 5rem 0 2.75rem;
  overflow: visible;
}

body.training-page .batches-hero--compact {
  padding: 5rem 0 2.75rem;
}

body.nav-over-hero.training-page .batches-hero,
body.nav-over-hero.training-page .batches-hero--compact {
  padding-top: calc(var(--nav-utility-height) + var(--nav-primary-height) + 24px + 1.5rem);
  padding-bottom: 2.75rem;
}

body.nav-over-hero.training-page .batches-hero h1 {
  margin-top: 0.25rem;
}

.batches-hero .about-hero-ctas .btn.active.btn-hero-primary {
  background-color: #ffffff !important;
  color: var(--color-primary-dark, #112a4f) !important;
  border-color: #ffffff !important;
}

.batches-hero .about-hero-ctas .btn.active.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

.batches-cal-section--first {
  padding-top: 0.75rem;
  padding-bottom: 2rem;
  margin-top: 0;
}

/* ── Page sections split ─────────────────────────────── */
.batches-page-section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.65rem;
}

.batches-page-section--calendar {
  background: #ffffff;
}

.batches-page-section--cards {
  background: #ffffff;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  border-top: none;
}

.batches-page-divider {
  padding: 0.5rem 0 0;
  background: #fff;
}

.batches-page-divider__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

.batches-page-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(195, 203, 228, 0.9), transparent);
}

.batches-page-divider__text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.batches-discipline-pills-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.45rem;
}

.batches-active-filters__clear {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.batches-active-filters__clear:hover {
  color: var(--color-primary-dark);
}

.batches-cal-section::before {
  content: "";
  position: absolute;
  inset: -2rem 0 auto;
  height: 280px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(195, 203, 228, 0.45), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.batches-cal-section .container {
  position: relative;
  z-index: 1;
}

.batches-cal-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.batches-cal-header__title {
  font-family: var(--font-heading, "Montserrat", sans-serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--color-text-heading);
  margin: 0;
  letter-spacing: -0.02em;
}

.batches-cal-header__sub {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

/* ── Filter bar (premium) ───────────────────────────── */
.batches-filter-premium {
  background: var(--cal-surface);
  border: 1px solid rgba(195, 203, 228, 0.65);
  border-radius: var(--cal-radius);
  box-shadow: var(--cal-shadow-soft);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.75rem;
}

.batches-filter-premium .form-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.batches-filter-premium .form-control,
.batches-filter-premium .form-select {
  border-radius: 10px;
  border-color: var(--color-border);
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.batches-filter-premium .form-control:focus,
.batches-filter-premium .form-select:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(83, 99, 214, 0.15);
}

.batches-filter-premium .btn-filter {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.65rem 1rem;
}

.batches-preview-banner--inline {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.batches-preview-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, rgba(83, 99, 214, 0.08), rgba(195, 203, 228, 0.25));
  border: 1px solid var(--color-border);
  border-radius: var(--cal-radius-sm);
  font-size: 0.85rem;
  color: var(--color-primary-dark);
}

.batches-preview-banner i {
  font-size: 1.1rem;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── Legend ─────────────────────────────────────────── */
.batches-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--cal-radius-sm);
  border: 1px solid rgba(195, 203, 228, 0.5);
  font-size: 0.8125rem;
}

.batches-calendar-legend__label {
  font-weight: 700;
  color: var(--color-text-heading);
  margin-right: 0.25rem;
}

.batches-calendar-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text-muted);
}

.batches-calendar-legend__dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.batches-calendar-legend__dot--single {
  background: var(--cal-blue-gradient);
}

.batches-calendar-legend__count-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.15rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--color-primary);
  color: #fff;
  flex-shrink: 0;
}

.batches-calendar-legend__disciplines {
  display: contents;
}

.batches-calendar-legend__disciplines .batches-calendar-legend__item {
  margin-left: 0;
}

.batches-calendar-legend__dots--multi {
  display: inline-flex;
  gap: 3px;
}

.batches-calendar-legend__dots--multi span {
  width: 8px;
  height: 14px;
  border-radius: 3px;
}

.batches-calendar-legend__dots--multi span:nth-child(1) { background: #0b1a14; }
.batches-calendar-legend__dots--multi span:nth-child(2) { background: #0d4740; }
.batches-calendar-legend__dots--multi span:nth-child(3) { background: #19976f; }
.batches-calendar-legend__dots--multi span:nth-child(4) { background: #6aab1f; }

/* ── Advanced filters accordion ─────────────────────── */
.batches-advanced-filters {
  margin-bottom: 1.25rem;
}

.batches-advanced-filters__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(195, 203, 228, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.batches-advanced-filters__toggle:hover {
  border-color: rgba(83, 99, 214, 0.45);
  color: var(--color-primary);
}

.batches-advanced-filters__toggle[aria-expanded="true"] {
  color: var(--color-primary);
  border-color: rgba(83, 99, 214, 0.5);
  box-shadow: 0 4px 14px rgba(28, 68, 132, 0.08);
}

.batches-advanced-filters__toggle[aria-expanded="true"] .batches-advanced-filters__chev {
  transform: rotate(180deg);
}

.batches-advanced-filters__chev {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.batches-filter-premium--calendar {
  margin-top: 0.85rem;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

/* Active filter banner */
.batches-active-filters {
  margin-bottom: 1rem;
}

.batches-active-filters__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--cal-radius-sm);
  background: linear-gradient(135deg, rgba(83, 99, 214, 0.08), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(83, 99, 214, 0.25);
  font-size: 0.85rem;
  color: var(--color-primary-dark);
}

.batches-active-filters__inner i {
  color: var(--color-primary);
}

.batches-cal-empty-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--cal-radius-sm);
  background: #fffbeb;
  border: 1px solid #fcd34d;
  font-size: 0.85rem;
  color: #92400e;
}

.batches-cal-empty-hint i {
  color: #d97706;
}

/* ── Discipline pill bar ────────────────────────────── */
.batches-discipline-pills-wrap {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(195, 203, 228, 0.55);
  border-radius: var(--cal-radius-sm);
}

.batches-discipline-pills-host {
  margin-bottom: 0;
}

.batches-discipline-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.5rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.batches-discipline-bar::-webkit-scrollbar {
  height: 4px;
}

.batches-discipline-bar::-webkit-scrollbar-thumb {
  background: rgba(28, 68, 132, 0.25);
  border-radius: 4px;
}

.batches-discipline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(195, 203, 228, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body, "Fira Sans", sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(28, 68, 132, 0.06);
}

.batches-discipline-pill i {
  font-size: 0.9rem;
  opacity: 0.85;
}

.batches-discipline-pill:hover {
  border-color: rgba(83, 99, 214, 0.45);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.batches-discipline-pill.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(28, 68, 132, 0.28);
}

.batches-discipline-pill.is-active i {
  opacity: 1;
}

.batches-calendar-wrap--glass {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

/* ── View toggle ────────────────────────────────────── */
.view-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-muted);
  box-shadow: inset 0 1px 2px rgba(28, 68, 132, 0.06);
}

.view-toggle .btn {
  border-radius: 8px;
  border: none;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: all 0.22s ease;
}

.view-toggle .btn.active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: 0 4px 12px rgba(28, 68, 132, 0.28);
}

.view-toggle .btn:not(.active) {
  background: transparent;
  color: var(--color-text-muted);
}

.view-toggle .btn:not(.active):hover {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.7);
}

/* ── Calendar card ────────────────────────────────────── */
.batches-calendar-wrap {
  background: var(--cal-surface-elevated);
  border: 1px solid rgba(195, 203, 228, 0.55);
  border-radius: var(--cal-radius);
  padding: 1.5rem 1.35rem 1.25rem;
  box-shadow: var(--cal-shadow);
  overflow: visible;
}

.batches-calendar-wrap .fc-view-harness,
.batches-calendar-wrap .fc-scroller-harness,
.batches-calendar-wrap .fc-scroller,
.batches-calendar-wrap .fc-scrollgrid {
  overflow: visible !important;
}

.batches-calendar-wrap .fc {
  font-family: var(--font-body, "Fira Sans", sans-serif);
  --fc-border-color: rgba(195, 203, 228, 0.55);
  --fc-button-bg-color: var(--color-primary);
  --fc-button-border-color: transparent;
  --fc-button-hover-bg-color: var(--color-primary-hover);
  --fc-button-hover-border-color: transparent;
  --fc-button-active-bg-color: var(--color-primary-dark);
  --fc-button-active-border-color: transparent;
  --fc-today-bg-color: rgba(83, 99, 214, 0.07);
  --fc-event-border-color: transparent;
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: var(--color-bg-muted);
  --fc-daygrid-event-dot-width: 0;
}

.batches-calendar-wrap .fc .fc-toolbar {
  margin-bottom: 1.25rem !important;
  gap: 0.75rem;
}

.batches-calendar-wrap .fc .fc-toolbar-title {
  font-family: var(--font-heading, "Montserrat", sans-serif);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--color-text-heading);
  letter-spacing: -0.02em;
}

.batches-calendar-wrap .fc .fc-button {
  font-family: var(--font-body, "Fira Sans", sans-serif);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: capitalize;
  border-radius: 10px !important;
  padding: 0.45rem 0.85rem;
  box-shadow: 0 2px 6px rgba(28, 68, 132, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.batches-calendar-wrap .fc .fc-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 68, 132, 0.2);
}

.batches-calendar-wrap .fc .fc-button-group {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(28, 68, 132, 0.1);
}

.batches-calendar-wrap .fc .fc-button-group .fc-button {
  border-radius: 0 !important;
  box-shadow: none;
}

.batches-calendar-wrap .fc .fc-col-header-cell {
  padding: 0.65rem 0;
  background: var(--color-bg-muted);
}

.batches-calendar-wrap .fc .fc-col-header-cell-cushion {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
}

.batches-calendar-wrap .fc .fc-daygrid-day {
  transition: background 0.15s ease;
}

.batches-calendar-wrap .fc .fc-daygrid-day:hover {
  background: rgba(238, 242, 250, 0.6);
}

.batches-calendar-wrap .fc .fc-daygrid-day-number {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-heading);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  margin: 4px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.batches-calendar-wrap .fc .fc-daygrid-day.fc-day-today {
  background: rgba(83, 99, 214, 0.06) !important;
}

.batches-calendar-wrap .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  background: var(--cal-blue-gradient);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px var(--cal-blue-glow);
}

.batches-calendar-wrap .fc .fc-daygrid-day.fc-day-multi-batch {
  background: linear-gradient(180deg, rgba(83, 99, 214, 0.04) 0%, transparent 100%);
}

.batches-cal-day-dots {
  display: flex;
  justify-content: center;
  gap: 3px;
  padding: 0 4px 6px;
  min-height: 10px;
}

.batches-cal-day-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0.9;
}

.batches-cal-day-count {
  position: absolute;
  top: 2px;
  right: 4px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border: none;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  font-family: inherit;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(28, 68, 132, 0.25);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.batches-cal-day-count:hover,
.batches-cal-day-count:focus-visible {
  background: var(--color-primary-dark, #1c4484);
  box-shadow: 0 3px 10px rgba(28, 68, 132, 0.35);
  transform: scale(1.06);
  outline: none;
}

.batches-cal-day-fallback {
  width: min(280px, calc(100vw - 24px));
  z-index: 1060;
  background: #fff;
  border: 1px solid rgba(195, 203, 228, 0.85);
  border-radius: 10px;
  overflow: hidden;
}

.batches-cal-day-fallback--portaled {
  position: fixed;
  left: auto;
  right: auto;
  bottom: auto;
  box-shadow: 0 16px 40px rgba(28, 68, 132, 0.22);
}

.batches-cal-day-fallback__head {
  padding: 0.45rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
}

.batches-cal-day-fallback__list {
  max-height: 140px;
  overflow-y: auto;
  padding: 0.35rem;
}

.batches-cal-day-fallback__item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-heading);
  background: rgba(83, 99, 214, 0.06);
  border-left: 3px solid var(--disc-color, var(--color-primary));
  cursor: pointer;
  font-family: inherit;
}

.batches-cal-day-fallback__item:hover {
  background: rgba(83, 99, 214, 0.12);
}

.batches-calendar-wrap .fc .fc-daygrid-day-frame {
  position: relative;
}

.batches-calendar-wrap .fc .fc-daygrid-day-top {
  position: relative;
}

.batches-calendar-wrap .fc .fc-daygrid-day-events {
  margin-bottom: 0;
}

.batches-calendar-wrap .fc .fc-daygrid-day-bottom {
  margin: 3px 5px 2px;
  padding: 0;
}

.batches-calendar-wrap .fc .fc-more-link {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: none !important;
  border: none;
  text-decoration: none !important;
  line-height: 1;
  cursor: pointer;
}

.batches-cal-more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 1.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-body, "Fira Sans", sans-serif);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-primary-dark, #1c4484);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(83, 99, 214, 0.28);
  box-shadow: 0 1px 4px rgba(28, 68, 132, 0.07);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.batches-cal-more-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: rgba(83, 99, 214, 0.12);
  color: var(--color-primary);
  flex-shrink: 0;
}

.batches-cal-more-link__icon i {
  font-size: 0.52rem;
  line-height: 1;
}

.batches-cal-more-link__text {
  white-space: nowrap;
}

.batches-calendar-wrap .fc .fc-more-link:hover .batches-cal-more-link,
.batches-calendar-wrap .fc .fc-more-link:focus-visible .batches-cal-more-link {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(28, 68, 132, 0.28);
  transform: translateY(-1px);
  outline: none;
}

.batches-calendar-wrap .fc .fc-more-link:hover .batches-cal-more-link__icon,
.batches-calendar-wrap .fc .fc-more-link:focus-visible .batches-cal-more-link__icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.batches-calendar-wrap .fc .fc-day-multi-batch .fc-more-link .batches-cal-more-link {
  background: rgba(83, 99, 214, 0.07);
  border-color: rgba(83, 99, 214, 0.35);
}

/* ── Events ───────────────────────────────────────────── */
.batches-calendar-wrap .fc-event {
  position: relative;
  overflow: hidden;
  border-radius: 8px !important;
  padding: 3px 6px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  cursor: pointer;
  border: none !important;
  box-shadow: 0 2px 10px rgba(28, 68, 132, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.batches-calendar-wrap .fc-event:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  z-index: 4 !important;
}

.batches-calendar-wrap .fc-event.fc-event-selected {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(28, 68, 132, 0.15), 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 5 !important;
}

/* Discipline-colored strips (replaces overlap/single palette) */
.batches-calendar-wrap .fc-event.fc-event-discipline .fc-event-main {
  background-image: none !important;
}

.batches-calendar-wrap .fc-event.fc-event-overlap {
  border-left: 3px solid rgba(255, 255, 255, 0.55) !important;
}

/* Shimmer animation on event strips (::after on colored main — demo stripes use fc-event::after) */
@keyframes calStripShimmer {
  0% {
    transform: translateX(-140%) skewX(-20deg);
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(140%) skewX(-20deg);
    opacity: 0;
  }
}

.batches-calendar-wrap .fc-event.fc-event-animated .fc-event-main.fc-event-main--shimmer::after,
.batches-calendar-wrap .fc-popover-body .fc-event.fc-event-animated .fc-event-main::after,
.batches-schedule-item--animated .batches-schedule-item__strip.fc-event-animated::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 28%,
    rgba(255, 255, 255, 0.4) 40%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.4) 60%,
    transparent 72%,
    transparent 100%
  );
  animation: calStripShimmer 2.8s linear infinite;
  animation-delay: var(--cal-shimmer-delay, 0s);
  pointer-events: none;
}

.batches-calendar-wrap .fc-event .fc-event-main.fc-event-main--shimmer,
.batches-calendar-wrap .fc-popover-body .fc-event .fc-event-main {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.batches-calendar-wrap .fc-event.fc-event-animated .fc-event-main .fc-event-title,
.batches-calendar-wrap .fc-event.fc-event-animated .fc-event-main .fc-event-time {
  position: relative;
  z-index: 2;
}

.batches-calendar-wrap .fc-event.fc-event-animated:hover .fc-event-main.fc-event-main--shimmer::after,
.batches-calendar-wrap .fc-event.fc-event-animated.fc-event-selected .fc-event-main.fc-event-main--shimmer::after,
.batches-calendar-wrap .fc-popover-body .fc-event.fc-event-animated:hover .fc-event-main::after,
.batches-schedule-item--animated:hover .batches-schedule-item__strip.fc-event-animated::after,
.batches-schedule-item--animated.is-selected .batches-schedule-item__strip.fc-event-animated::after {
  animation-duration: 1.8s;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 24%,
    rgba(255, 255, 255, 0.55) 38%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.55) 62%,
    transparent 76%,
    transparent 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .batches-calendar-wrap .fc-event.fc-event-animated .fc-event-main.fc-event-main--shimmer::after,
  .batches-calendar-wrap .fc-popover-body .fc-event.fc-event-animated .fc-event-main::after,
  .batches-schedule-item--animated .batches-schedule-item__strip.fc-event-animated::after {
    animation: none;
    display: none;
  }
}

/* +more popover */
.fc-popover.batches-cal-popover,
.fc .fc-more-popover,
.batches-cal-popover--portaled {
  border: 1px solid rgba(195, 203, 228, 0.65) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(28, 68, 132, 0.22) !important;
  overflow: hidden;
  max-width: min(320px, calc(100vw - 24px));
  min-width: 220px;
}

.batches-cal-popover--portaled {
  position: fixed !important;
  z-index: 1060 !important;
}

.fc .fc-more-popover .fc-popover-header {
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary)) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 0.65rem 0.85rem !important;
}

.fc .fc-more-popover .fc-popover-body {
  max-height: 280px;
  overflow-y: auto;
  padding: 0.5rem !important;
  background: #fff;
}

.fc .fc-more-popover .fc-daygrid-event-harness {
  margin-bottom: 0.35rem;
}

.fc .fc-more-popover .fc-event {
  border-radius: 8px !important;
  cursor: pointer;
}

.fc .fc-more-popover .fc-event .fc-event-main {
  padding: 0.35rem 0.5rem !important;
  font-size: 0.75rem !important;
}

/* Preview batches: diagonal stripe overlay on fc-event::after (shimmer uses fc-event-main::after) */
.batches-calendar-wrap .fc-event.fc-event-demo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.06) 0,
    rgba(255, 255, 255, 0.06) 4px,
    transparent 4px,
    transparent 8px
  );
  pointer-events: none;
}

.batches-calendar-wrap .fc-event.fc-event-demo .fc-event-main {
  position: relative;
  z-index: 1;
}

.batches-calendar-wrap .fc-h-event .fc-event-main {
  color: #fff;
}

.batches-calendar-wrap .fc-list-event:hover td {
  background: var(--color-primary-50) !important;
}

/* List view — date row strips: white text on brand blue */
.batches-calendar-wrap .fc-list-day-cushion {
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary)) !important;
  color: #ffffff !important;
  font-family: var(--font-heading, "Montserrat", sans-serif);
  font-weight: 600;
  padding: 0.65rem 1rem !important;
}

.batches-calendar-wrap .fc-list-day-cushion a,
.batches-calendar-wrap .fc-list-day-cushion .fc-list-day-text,
.batches-calendar-wrap .fc-list-day-cushion .fc-list-day-side-text,
.batches-calendar-wrap .fc-list-day th {
  color: #ffffff !important;
  text-decoration: none !important;
}

.batches-calendar-wrap .fc-list-day-cushion a:hover,
.batches-calendar-wrap .fc-list-day-cushion a:focus {
  color: #ffffff !important;
  opacity: 0.92;
}

.batches-calendar-wrap .fc-list-event-title a {
  color: var(--color-text-heading);
  font-weight: 600;
  text-decoration: none;
}

.batches-calendar-wrap .fc-list-event-title a:hover {
  color: var(--color-primary);
}

.batches-calendar-wrap .fc-list-event-time {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

/* ── Custom schedule list (replaces FullCalendar listMonth) ── */
.batches-schedule-list {
  min-height: 420px;
}

.batches-schedule-intro {
  margin-bottom: 0.75rem;
}

.batches-schedule-intro__lead {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.batches-schedule-week {
  list-style: none;
  margin: 0.85rem 0 0.35rem;
  padding: 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.batches-schedule-week:first-child {
  margin-top: 0.25rem;
}

.batches-schedule-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 0 1.25rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.5rem;
}

.batches-schedule-nav__title {
  font-family: var(--font-heading, "Montserrat", sans-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text-heading);
  min-width: 10rem;
  text-align: center;
}

.batches-schedule-nav__btn {
  background: var(--color-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.batches-schedule-nav__btn:hover {
  background: var(--color-primary-hover) !important;
}

.batches-schedule-nav__today {
  margin-left: auto;
  font-weight: 600;
  border-radius: 8px !important;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.batches-schedule-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.batches-schedule-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.5rem;
  background: #fff;
  border: 1px solid rgba(195, 203, 228, 0.65);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.batches-schedule-item__date {
  flex-shrink: 0;
  width: 4.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-muted);
  text-align: center;
}

.batches-schedule-item:hover {
  border-color: rgba(83, 99, 214, 0.45);
  box-shadow: 0 4px 16px rgba(28, 68, 132, 0.1);
  transform: translateX(2px);
}

.batches-schedule-item.is-selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(28, 68, 132, 0.12);
  background: #fafbff;
}

.batches-schedule-item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.batches-schedule-item__strip {
  width: 5px;
  align-self: stretch;
  min-height: 2.75rem;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.batches-schedule-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.batches-schedule-item__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-heading);
  line-height: 1.35;
}

.batches-schedule-item__meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.batches-schedule-item__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.batches-schedule-item__badge--open {
  background: #dbeafe;
  color: #1e40af;
}

.batches-schedule-item__badge--filling {
  background: #fef3c7;
  color: #92400e;
}

.batches-schedule-item__badge--full {
  background: #fee2e2;
  color: #991b1b;
}

.batches-schedule-item__chev {
  color: var(--color-text-subtle);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.batches-schedule-count {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 1rem 0 0;
}

.batches-schedule-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-text-muted);
}

.batches-schedule-empty i {
  font-size: 2.5rem;
  color: var(--color-primary-pale);
  display: block;
  margin-bottom: 0.75rem;
}

.batches-schedule-empty .spinner-border {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 575.98px) {
  .batches-schedule-item__badge {
    display: none;
  }

  .batches-schedule-item__date {
    width: 3.5rem;
    font-size: 0.65rem;
  }

  .batches-schedule-nav__today {
    margin-left: 0;
  }

  .batches-active-filters__clear {
    margin-left: 0;
    width: 100%;
  }
}

/* ── Detail panel ─────────────────────────────────────── */
.batch-event-panel {
  background: #f8fafc;
  border: 1px solid rgba(195, 203, 228, 0.65);
  border-radius: var(--cal-radius);
  box-shadow: var(--cal-shadow-soft);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.batch-event-panel.is-active {
  box-shadow: var(--cal-shadow);
  border-color: rgba(83, 99, 214, 0.35);
}

.batch-event-panel__head {
  padding: 1.25rem 1.25rem 1.15rem;
  background: #ffffff;
  color: var(--color-text-heading);
  border-bottom: 1px solid rgba(195, 203, 228, 0.45);
}

.batch-event-panel__head-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.batch-event-panel__head-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.batch-event-panel__discipline-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--disc-color, var(--color-primary));
  background: color-mix(in srgb, var(--disc-color, #5363d6) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--disc-color, #5363d6) 28%, transparent);
}

.batch-event-panel__discipline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--disc-color, var(--color-primary));
  margin-bottom: 0.35rem;
}

.batch-event-panel__discipline i {
  font-size: 0.85rem;
}

.batch-event-panel__head h3 {
  font-family: var(--font-heading, "Montserrat", sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.4;
  color: var(--color-primary-dark);
}

.batch-event-panel__program-code {
  margin: 0;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ff2c2c;
  text-transform: uppercase;
}

.batch-event-panel__batch-id {
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

.batch-event-panel__body {
  padding: 1.15rem 1.25rem 1.25rem;
  flex: 1;
  background: #ffffff;
}

.batch-event-panel__body-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

.batch-event-panel__batch-code {
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.batch-event-panel__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  flex: 1;
  color: var(--color-text-muted);
  background: #ffffff;
}

.batch-event-panel__empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #eef2fa, #e3e8f3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.batch-event-panel__empty-icon i {
  font-size: 1.75rem;
  color: var(--color-primary);
}

.batch-event-panel__empty .fw-semibold {
  color: var(--color-text-heading) !important;
}

.batch-event-panel__meta {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}

.batch-event-panel__row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.45;
}

.batch-event-panel__row i {
  color: var(--color-primary);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.batch-event-panel__row strong {
  color: var(--color-text-heading);
  font-weight: 600;
  margin-right: 0.2rem;
}

.batch-event-panel__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.batch-event-panel__badge--open {
  background: #dbeafe;
  color: #1e40af;
}

.batch-event-panel__badge--filling {
  background: #fef3c7;
  color: #92400e;
}

.batch-event-panel__badge--full {
  background: #fee2e2;
  color: #991b1b;
}

.batch-event-panel__code {
  display: inline-block;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(28, 68, 132, 0.1);
  color: var(--color-primary-dark);
  border: 1px solid rgba(28, 68, 132, 0.15);
  margin-bottom: 0.4rem;
}

.batch-event-panel__notice {
  font-size: 0.8125rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #eef2fa;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  border: 1px solid rgba(195, 203, 228, 0.8);
  line-height: 1.45;
}

.batch-event-panel__notice i {
  color: var(--color-primary);
}

.batch-event-panel__actions {
  display: grid;
  gap: 0.55rem;
}

.batch-event-panel__actions .btn {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.65rem 1rem;
}

.batch-event-panel__actions .btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.batch-event-panel__actions .btn-outline-primary {
  color: var(--color-primary);
  border-color: rgba(28, 68, 132, 0.35);
}

.batch-event-panel__actions .btn-outline-primary:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-dark);
}

/* ── Homepage Certifications alignment ───────────────── */
.batches-section-title {
  font-family: var(--font-family-heading, var(--font-heading, "Montserrat", sans-serif));
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 500;
  color: #ff2c2c;
  letter-spacing: -0.01em;
  margin-bottom: 0.375rem;
}

.batches-section-lead {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #6b7280;
  max-width: 720px;
  margin-bottom: 0;
}

.batches-page-section--calendar {
  background: #ffffff;
  padding-bottom: 2.5rem;
}

.batches-list-heading {
  margin-bottom: 1.5rem;
}

.batches-cal-header {
  margin-bottom: 1.25rem;
}

.batches-cal-header .batches-section-lead {
  margin-top: 0.35rem;
}

/* Batch cards — mirrors #featured-courses .course-card */
.batches-card-grid {
  margin-top: 0.5rem;
}

.batches-page-section--cards .course-card,
.batch-course-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(28, 68, 132, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.batches-page-section--cards .course-card:hover,
.batch-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(28, 68, 132, 0.12);
  border-color: #d1d5db;
}

.batch-course-card .course-card-header {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 1.25rem 1.25rem 1rem;
  background: #ffffff;
  color: var(--color-text-heading);
  min-height: 100%;
  border-radius: 12px;
}

.batch-course-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.batch-course-card .course-code {
  align-self: flex-start;
  background: none;
  border: none;
  border-radius: 0;
  color: #ff2c2c;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.batch-course-card .course-title {
  text-align: left;
  color: #111827;
  font-size: 1.0625rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.625rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #f59e0b;
}

.batch-course-card .course-standard {
  color: #6b7280;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.batch-course-card__status {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.batch-course-card__status--open {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.batch-course-card__status--filling {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.batch-course-card__status--full {
  background: rgba(229, 4, 52, 0.1);
  color: #c9032d;
}

.batch-course-card__meta {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.batch-course-card__meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #4b5563;
}

.batch-course-card__meta i {
  color: var(--color-primary);
  font-size: 0.9rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.batch-course-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-top: 0.25rem;
}

.batch-course-card .course-card-learn-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0 0.35rem;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.875rem;
  font-weight: 350;
  line-height: 1.2;
  color: #1c4484;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.batch-course-card .course-card-learn-more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #ff2c2c;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.batch-course-card .course-card-learn-more:hover::after,
.batch-course-card .course-card-learn-more:focus-visible::after {
  transform: scaleX(1);
}

.batch-course-card .course-card-learn-more .bi-arrow-right {
  font-size: 0.8125rem;
  transition: transform 0.2s ease;
}

.batch-course-card .course-card-learn-more:hover .bi-arrow-right,
.batch-course-card .course-card-learn-more:focus-visible .bi-arrow-right {
  transform: translateX(3px);
}

.batch-course-card__enroll {
  color: #059669 !important;
}

.batch-course-card__enroll::after {
  background: #059669;
}

.batch-course-card__enroll:hover,
.batch-course-card__enroll:focus-visible {
  color: #047857 !important;
}

.batch-course-card__note {
  font-size: 0.8125rem;
  color: #6b7280;
  font-style: italic;
}

/* Calendar shell — clean white cards like Certifications section */
.batches-calendar-wrap {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1.15rem 1rem;
  box-shadow: 0 2px 12px rgba(28, 68, 132, 0.06);
}

.batches-calendar-wrap--glass {
  background: #ffffff;
  backdrop-filter: none;
}

.batches-discipline-pills-wrap {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(28, 68, 132, 0.04);
  backdrop-filter: none;
}

.batches-discipline-pill {
  border: 1px solid var(--color-tertiary, #c3cbe4);
  border-radius: 100px;
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: none;
}

.batches-discipline-pill i {
  color: var(--color-primary-light, #5363d6);
}

.batches-discipline-pill:hover {
  border-color: var(--color-primary);
  background: var(--color-bg, #fff);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(28, 68, 132, 0.12);
}

.batches-discipline-pill.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(28, 68, 132, 0.2);
}

.batches-discipline-pill.is-active i {
  color: #fff;
  opacity: 1;
}

.batches-filter-premium {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(28, 68, 132, 0.04);
}

.batches-calendar-legend {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  backdrop-filter: none;
}

.batch-event-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(28, 68, 132, 0.06);
}

.batch-event-panel.is-active {
  border-color: #d1d5db;
  box-shadow: 0 12px 28px rgba(28, 68, 132, 0.12);
}

.batch-event-panel__head {
  background: #ffffff;
  border-bottom: 1px solid #f3f4f6;
}

.batch-event-panel__head h3 {
  color: #111827;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0.35rem;
}

.batch-event-panel__program-code {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f59e0b;
  display: inline-block;
}

.batch-event-panel__code {
  background: none;
  border: none;
  color: #ff2c2c;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0;
}

.batches-schedule-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(28, 68, 132, 0.04);
}

.batches-schedule-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 8px 20px rgba(28, 68, 132, 0.1);
  transform: translateY(-2px);
}

.batches-schedule-item.is-selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(28, 68, 132, 0.08);
}

.view-toggle {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}

.batches-active-filters__inner {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

/* ── Batch list section ───────────────────────────────── */
.batches-list-section {
  padding-top: 0;
}

.batches-filter-premium--list {
  margin-bottom: 1.75rem;
}

@media (max-width: 991.98px) {
  .batches-calendar-wrap {
    padding: 1rem 0.75rem 0.75rem;
  }

  .batches-calendar-wrap .fc .fc-toolbar {
    flex-direction: column;
  }

  .batch-event-panel {
    margin-top: 0.5rem;
  }
}
