/* Course filters — sticky column + Edutop-neutral frames */
.course-filters-col {
  align-self: start;
}

.search-filters.filter-sidebar {
  --filter-brand: var(--bs-primary, #066ac9);
  --filter-ink: #24292f;
  --filter-muted: #6c757d;
  --filter-line: rgba(15, 23, 42, 0.08);
  --filter-line-strong: rgba(15, 23, 42, 0.12);
  --filter-surface: rgba(255, 255, 255, 0.92);
  --filter-chip-bg: rgba(6, 106, 201, 0.08);
  width: 100%;
  border-radius: 0.95rem;
  padding: 0.7rem 0.85rem 0.9rem;
  background: var(--filter-surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.22) transparent;
}

@media (min-width: 992px) {
  /* Stick the column itself; cap height so page scroll keeps it in view */
  .course-filters-col {
    position: sticky;
    top: 5.25rem;
    z-index: 20;
    max-height: calc(100dvh - 6rem);
  }

  .course-filters-col .offcanvas-lg,
  .course-filters-col .offcanvas-body {
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    height: 100%;
    max-height: inherit;
    overflow: visible;
    display: block;
  }

  .search-filters.filter-sidebar {
    max-height: calc(100dvh - 6rem);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  padding: 0.35rem 0.1rem 0.7rem;
  border-bottom: 1px solid var(--filter-line);
}

.filters-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--filter-ink);
}

.filters-head-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.filters-reset {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--filter-muted);
  text-decoration: none;
  white-space: nowrap;
}

.filters-reset:hover {
  color: var(--filter-brand);
}

.filters-close-btn {
  display: none;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--filter-ink);
}

.filters-form {
  display: grid;
  gap: 0;
}

.filter-panel {
  margin: 0;
  border-bottom: 1px solid var(--filter-line);
}

.filter-panel:last-of-type {
  border-bottom: 0;
}

.filter-panel-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 0.85rem 0.1rem;
  color: var(--filter-ink);
}

.filter-panel-toggle::-webkit-details-marker {
  display: none;
}

.filter-panel-toggle::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-inline-start: auto;
  margin-block-start: -0.12rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.4;
  transition: transform 0.18s ease, margin-block-start 0.18s ease;
  flex-shrink: 0;
}

.filter-panel[open] > .filter-panel-toggle::after {
  transform: rotate(225deg);
  margin-block-start: 0.18rem;
}

.filter-panel-title {
  font-size: 0.86rem;
  font-weight: 700;
}

.filter-panel-body {
  padding: 0 0 0.9rem;
  display: grid;
  gap: 0.55rem;
}

.filter-select {
  display: grid;
  gap: 0.45rem;
}

.filter-select-search {
  position: relative;
}

.filter-select-search .filter-list-input {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.4rem 0.7rem;
  padding-inline-end: 2.1rem;
  border-radius: 0.65rem;
  border: 1px solid var(--filter-line-strong);
  background: #fff;
  color: var(--filter-ink);
  font: inherit;
  font-size: 0.84rem;
  outline: none;
}

.filter-select-search .filter-list-input:focus {
  border-color: rgba(6, 106, 201, 0.35);
  box-shadow: 0 0 0 3px rgba(6, 106, 201, 0.1);
}

.filter-select-search-icon {
  position: absolute;
  inset-inline-end: 0.65rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
  color: var(--filter-muted);
  pointer-events: none;
  display: grid;
}

.filter-select-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 1.6rem;
  align-items: center;
}

.filter-select-placeholder {
  color: var(--filter-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.filter-select-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.55rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid rgba(6, 106, 201, 0.18);
  border-radius: 999px;
  background: var(--filter-chip-bg);
  color: var(--filter-brand);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-select-chip::after {
  content: "×";
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.7;
}

.filter-select-chip:hover {
  background: rgba(6, 106, 201, 0.14);
}

.filter-select-items {
  display: flex;
  flex-direction: column;
  max-height: 14.5rem;
  overflow: auto;
  border: 1px solid var(--filter-line);
  border-radius: 0.7rem;
  background: rgba(248, 250, 252, 0.9);
  scrollbar-width: thin;
}

.filter-select-items.is-options {
  max-height: none;
  border: 0;
  background: transparent;
  gap: 0.15rem;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--filter-line);
}

.filter-select-items.is-options .filter-check {
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding-inline: 0.35rem;
}

.filter-select-items .filter-check:last-child {
  border-bottom: 0;
}

.filter-check:hover {
  background: rgba(15, 23, 42, 0.035);
}

.filter-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-check-mark {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0.28rem;
  border: 1.5px solid rgba(100, 116, 139, 0.45);
  background: #fff;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.filter-check-mark.is-radio {
  border-radius: 999px;
}

.filter-check-mark::after {
  content: "";
  width: 0.32rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  margin-bottom: 0.1rem;
  transition: transform 0.12s ease;
}

.filter-check-mark.is-radio::after {
  width: 0.42rem;
  height: 0.42rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  margin: 0;
}

.filter-check input:checked + .filter-check-mark {
  background: var(--filter-brand);
  border-color: var(--filter-brand);
}

.filter-check input:checked + .filter-check-mark::after {
  transform: rotate(45deg) scale(1);
}

.filter-check input:checked + .filter-check-mark.is-radio::after {
  transform: scale(1);
}

.filter-check-text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--filter-ink);
  line-height: 1.35;
}

.filter-check-text small {
  color: var(--filter-muted);
  font-size: 0.72rem;
  font-weight: 400;
}

.filter-count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.06);
  color: var(--filter-ink);
  font-size: 0.7rem;
  font-weight: 800;
  margin-inline-end: 0.35rem;
}

.filter-count:not(.is-empty) {
  background: var(--filter-chip-bg);
  color: var(--filter-brand);
}

.filter-count.is-empty {
  opacity: 0.45;
}

.filters-foot {
  position: sticky;
  bottom: 0;
  margin-top: 0.55rem;
  padding-top: 0.75rem;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.96) 38%);
}

.filters-apply {
  min-height: 2.55rem;
}

@media (min-width: 992px) {
  .filters-foot {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .search-filters.filter-sidebar {
    max-height: none;
    overflow: visible;
    border: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    padding: 0.85rem 1rem 1rem;
  }

  .filters-close-btn {
    display: grid;
  }
}

[data-bs-theme="dark"] .search-filters.filter-sidebar {
  --filter-ink: #e8edf3;
  --filter-muted: #9aa7b5;
  --filter-line: rgba(255, 255, 255, 0.08);
  --filter-line-strong: rgba(255, 255, 255, 0.12);
  --filter-surface: #1b1e21;
  --filter-chip-bg: rgba(13, 110, 253, 0.16);
  background: #1b1e21;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .filter-select-search .filter-list-input,
[data-bs-theme="dark"] .filter-select-items,
[data-bs-theme="dark"] .filter-check-mark {
  background: rgba(15, 20, 28, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e8edf3;
}

[data-bs-theme="dark"] .filter-check:hover {
  background: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .filters-foot {
  background: linear-gradient(180deg, transparent, rgba(22, 26, 32, 0.96) 38%);
}

/* Courses page — slim intro under breadcrumb */
.course-intro-shell {
  border: 1px solid rgba(6, 106, 201, 0.14);
  border-radius: 0.75rem;
  background:
    linear-gradient(135deg, rgba(6, 106, 201, 0.05), transparent 42%),
    #fff;
  padding: 1rem 1.15rem;
}

.course-intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-intro-title {
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
  color: #1b1e21;
  margin-bottom: 0.55rem;
}

.course-intro-text {
  font-size: 0.92rem;
  line-height: 1.85;
  color: #5c6570;
  max-width: 36rem;
}

.course-intro-card {
  border: 1px solid rgba(27, 30, 33, 0.08);
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.85rem 0.9rem;
  box-shadow: 0 1px 0 rgba(27, 30, 33, 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.course-intro-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 106, 201, 0.28);
  box-shadow: 0 8px 18px rgba(6, 106, 201, 0.08);
}

.course-intro-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.55rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
}

.course-intro-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.course-intro-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1b1e21;
  margin-bottom: 0.35rem;
}

.course-intro-card-text {
  font-size: 0.8rem;
  line-height: 1.7;
  color: #6c757d;
}

[data-bs-theme="dark"] .course-intro-shell {
  background:
    linear-gradient(135deg, rgba(6, 106, 201, 0.14), transparent 45%),
    #1b1e21;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .course-intro-title,
[data-bs-theme="dark"] .course-intro-card-title {
  color: #f3f5f7;
}

[data-bs-theme="dark"] .course-intro-text,
[data-bs-theme="dark"] .course-intro-card-text {
  color: #a8b0b8;
}

[data-bs-theme="dark"] .course-intro-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 767.98px) {
  .course-intro-shell {
    padding: 0.9rem;
  }

  .course-intro-copy {
    padding-bottom: 0.15rem;
  }
}

/* Course catalog — horizontal list cards */
.course-list-thumb {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .course-list-card > .row {
    min-height: 100%;
  }

  .course-list-media {
    align-self: stretch;
  }

  .course-list-media-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
  }

  .course-list-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
  }
}

.course-list-media .card-img-overlay {
  z-index: 4;
  pointer-events: none;
}

/* Compact course list toolbar */
.course-toolbar {
  position: relative;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: visible;
}

[data-bs-theme="dark"] .course-toolbar {
  background: rgba(22, 26, 32, 0.72);
  border-color: rgba(255, 255, 255, 0.06);
}

.course-toolbar-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 14rem;
  min-width: 0;
  height: 2.35rem;
  padding-inline: 0.55rem 0.3rem;
  border-radius: 0.75rem;
  background: rgba(13, 110, 253, 0.05);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.course-toolbar-search:focus-within {
  background: rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.35);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.course-toolbar-search-icon {
  color: rgba(13, 110, 253, 0.75);
  font-size: 0.8rem;
  margin-inline-end: 0.45rem;
  flex-shrink: 0;
}

.course-toolbar-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.875rem;
  line-height: 1.2;
  color: inherit;
  padding: 0;
  height: 100%;
}

.course-toolbar-input::placeholder {
  color: var(--bs-secondary-color, #6c757d);
  opacity: 0.85;
}

.course-toolbar-submit {
  flex-shrink: 0;
  border: 0;
  border-radius: 0.6rem;
  height: 1.85rem;
  padding: 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0d6efd, #3d8bfd);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.course-toolbar-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.course-toolbar-sort {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
}

.course-toolbar-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.35rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 0.75rem;
  background: rgba(13, 110, 253, 0.06);
  color: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.course-toolbar-sort-btn::after {
  margin-inline-start: 0.15rem;
  opacity: 0.65;
}

.course-toolbar-sort-btn:hover,
.course-toolbar-sort-btn:focus,
.course-toolbar-sort-btn.show {
  background: rgba(13, 110, 253, 0.12);
  border-color: rgba(13, 110, 253, 0.35);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
  color: inherit;
}

[data-bs-theme="dark"] .course-toolbar-sort-btn {
  background: rgba(13, 110, 253, 0.12);
  border-color: rgba(13, 110, 253, 0.22);
}

.course-toolbar-sort-icon {
  color: #0d6efd;
  font-size: 0.95rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.course-toolbar-sort-text {
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-toolbar-sort-menu {
  z-index: 1080 !important;
  min-width: 12rem;
  margin-top: 0.4rem !important;
  padding: 0.4rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

[data-bs-theme="dark"] .course-toolbar-sort-menu {
  background: rgba(28, 31, 38, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
}

.course-toolbar-sort-item {
  border-radius: 0.65rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 500;
}

.course-toolbar-sort-item:hover,
.course-toolbar-sort-item:focus {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

.course-toolbar-sort-item.active {
  background: rgba(13, 110, 253, 0.14);
  color: #0d6efd;
  font-weight: 700;
}

.course-toolbar-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-inline-start: auto;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
  white-space: nowrap;
}

.course-toolbar-meta-muted {
  font-weight: 500;
  color: var(--bs-secondary-color, #6c757d);
  font-size: 0.75rem;
}

.course-toolbar-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.35rem;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0d6efd, #3d8bfd);
}

@media (max-width: 575.98px) {
  .course-toolbar {
    padding: 0.4rem;
  }

  .course-toolbar-search {
    flex-basis: 100%;
  }

  .course-toolbar-meta {
    margin-inline-start: 0;
  }
}

/* Header menu — solid yellow for hover + active */
.navbar {
  --edutop-menu-accent: #f7c32e;
  --edutop-menu-soft: rgba(247, 195, 46, 0.1);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link.show {
  color: var(--edutop-menu-accent) !important;
  -webkit-text-fill-color: var(--edutop-menu-accent);
  background-image: none;
}

.navbar .navbar-nav .nav-link.dropdown-toggle:hover::after,
.navbar .navbar-nav .nav-link.dropdown-toggle:focus::after,
.navbar .navbar-nav .nav-link.dropdown-toggle.active::after,
.navbar .navbar-nav .nav-link.dropdown-toggle.show::after {
  border-top-color: var(--edutop-menu-accent);
}

/* Courses menu hover dropdown */
.navbar .dropdown-hover > .dropdown-menu {
  min-width: 13.5rem;
  padding: 0.45rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

[data-bs-theme="dark"] .navbar .dropdown-hover > .dropdown-menu {
  background: rgba(28, 31, 38, 0.94);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.navbar .dropdown-hover > .dropdown-menu .dropdown-item {
  background: transparent;
  border-radius: 0.65rem;
  padding: 0.55rem 0.85rem;
  color: var(--bs-body-color, #212529);
  font-weight: 500;
}

[data-bs-theme="dark"] .navbar .dropdown-hover > .dropdown-menu .dropdown-item {
  color: rgba(255, 255, 255, 0.88);
}

.navbar .dropdown-hover > .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-hover > .dropdown-menu .dropdown-item:focus,
.navbar .dropdown-hover > .dropdown-menu .dropdown-item.active {
  background: var(--edutop-menu-soft);
  color: var(--edutop-menu-accent);
  -webkit-text-fill-color: var(--edutop-menu-accent);
}

.navbar .dropdown-hover > .dropdown-menu .dropdown-divider {
  margin: 0.35rem 0.4rem;
  opacity: 0.2;
}

/* Theme keeps menus visibility:hidden until hover; also reveal on Bootstrap .show */
.navbar-expand-xl .navbar-nav .dropdown-hover > .dropdown-menu.show,
.navbar-expand-xl .navbar-nav .dropdown-hover:hover > .dropdown-menu,
.navbar .dropdown-hover > .dropdown-menu.show {
  display: block;
  top: 100%;
  visibility: visible;
  opacity: 1;
}

@media (min-width: 1200px) {
  .navbar .dropdown-hover:hover > .dropdown-menu {
    margin-top: 0;
    animation: fadeIn 0.2s ease;
  }

  .navbar .dropdown-hover > .dropdown-toggle:active,
  .navbar .dropdown-hover > .dropdown-toggle.show {
    pointer-events: auto;
  }
}

/* Smart consult advisor */
.smart-consult-card {
  border-radius: 1.25rem;
}

.smart-consult-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.12);
  overflow: hidden;
}

.smart-consult-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d6efd, #20c997);
  transition: width 0.35s ease;
}

.smart-choice {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bs-body-bg, #fff);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.smart-choice:hover,
.smart-choice.active {
  transform: translateY(-2px);
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.12);
}

.smart-choice-title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.smart-choice-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--bs-secondary-color, #6c757d);
}

.smart-topic-chip.active {
  background: var(--bs-primary);
  color: #fff;
  border-color: var(--bs-primary);
}

.smart-thinking {
  width: 54px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.smart-thinking span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0d6efd;
  animation: smartConsultPulse 1s infinite ease-in-out;
}

.smart-thinking span:nth-child(2) { animation-delay: 0.15s; }
.smart-thinking span:nth-child(3) { animation-delay: 0.3s; }

.smart-result-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.smart-result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

@keyframes smartConsultPulse {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

/* Keep Plyr controls visible + seekable inside GLightbox */
.glightbox-container .plyr,
.glightbox-container .plyr__controls,
.glightbox-container .plyr__progress,
.glightbox-container .plyr__control {
  pointer-events: auto !important;
  touch-action: manipulation;
}

.glightbox-container .plyr--hide-controls .plyr__controls,
.glightbox-container .plyr .plyr__controls {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Home hero play button — clear click cue */
.hero-video-play {
  position: relative;
  z-index: 1;
  animation: heroVideoPlayGlow 1.5s ease-in-out infinite;
}

.hero-video-play-ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(6, 106, 201, 0.55);
  box-shadow: 0 0 0 6px rgba(6, 106, 201, 0.18);
  pointer-events: none;
  animation: heroVideoRipple 1.7s ease-out infinite;
}

.hero-video-play-ring-delay {
  animation-delay: 0.85s;
}

.hero-video-play h6 {
  white-space: nowrap;
  animation: heroVideoLabelBlink 1.5s ease-in-out infinite;
}

@keyframes heroVideoPlayGlow {
  0%, 100% {
    box-shadow: 0 0 0 8px rgba(6, 106, 201, 0.45), 0 0 18px rgba(6, 106, 201, 0.55);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(6, 106, 201, 0.2), 0 0 28px rgba(6, 106, 201, 0.75);
    transform: scale(1.08);
  }
}

@keyframes heroVideoRipple {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  100% {
    transform: scale(2.25);
    opacity: 0;
  }
}

@keyframes heroVideoLabelBlink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-play,
  .hero-video-play-ring,
  .hero-video-play h6 {
    animation: none;
  }
}

/* Home hero visual — slightly smaller composition */
.hero-visual {
  transform: scale(0.92);
  transform-origin: center center;
}

@media (min-width: 992px) {
  .hero-visual {
    transform-origin: center right;
  }
}

/* Soft hover for the four feature tiles under the hero */
.hero-feature-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.hero-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* Fixed-size instructor photos (uploads vary; display stays uniform) */
.instructor-card-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: var(--bs-gray-200, #e9ecef);
}

.instructor-card-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.instructor-profile-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: var(--bs-gray-200, #e9ecef);
}

.instructor-profile-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Back-to-top on the right; chatbot owns bottom-left */
.back-top {
  left: auto !important;
  right: 40px !important;
}

@media (max-width: 767.98px) {
  .back-top {
    left: auto !important;
    right: 10px !important;
  }
}

/* Edutop smart chatbot */
.edutop-chatbot {
  position: fixed;
  z-index: 1085;
  left: 20px;
  bottom: 20px;
  font-family: inherit;
}

.edutop-chatbot-launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.edutop-chatbot-launcher:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 34px rgba(13, 110, 253, 0.42);
}

.edutop-chatbot-launcher-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(13, 110, 253, 0.35);
  animation: edutopChatPulse 2.2s ease-out infinite;
  pointer-events: none;
}

.edutop-chatbot.is-open .edutop-chatbot-launcher {
  display: none;
}

.edutop-chatbot-launcher-icon {
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
}

.edutop-chatbot-panel {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(380px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 6.5rem));
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
  animation: edutopChatIn 0.25s ease;
}

[data-bs-theme="dark"] .edutop-chatbot-panel {
  background: rgba(22, 26, 32, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
}

.edutop-chatbot-header {
  position: sticky;
  top: 0;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.16), rgba(32, 201, 151, 0.14));
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.edutop-chatbot-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.edutop-chatbot-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0d6efd, #20c997);
  flex-shrink: 0;
}

.edutop-chatbot-brand strong {
  display: block;
  font-size: 0.92rem;
}

.edutop-chatbot-brand small {
  display: block;
  color: var(--bs-secondary-color, #6c757d);
  font-size: 0.72rem;
}

.edutop-chatbot-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.06);
  color: inherit;
}

.edutop-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.edutop-chatbot-bubble {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.88rem;
  line-height: 1.65;
}

.edutop-chatbot-bubble p {
  margin: 0;
}

.edutop-chatbot-bubble-bot {
  align-self: flex-start;
  background: rgba(13, 110, 253, 0.08);
  border-end-start-radius: 0.35rem;
}

.edutop-chatbot-bubble-user {
  align-self: flex-end;
  color: #fff;
  background: linear-gradient(135deg, #0d6efd, #3d8bfd);
  border-end-end-radius: 0.35rem;
}

.edutop-chatbot-links,
.edutop-chatbot-courses {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.edutop-chatbot-link,
.edutop-chatbot-course {
  display: block;
  text-decoration: none;
  border-radius: 0.75rem;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(13, 110, 253, 0.15);
  color: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
}

[data-bs-theme="dark"] .edutop-chatbot-link,
[data-bs-theme="dark"] .edutop-chatbot-course {
  background: rgba(255, 255, 255, 0.04);
}

.edutop-chatbot-link:hover,
.edutop-chatbot-course:hover {
  background: rgba(13, 110, 253, 0.12);
  transform: translateY(-1px);
  color: inherit;
}

.edutop-chatbot-course strong {
  display: block;
  font-size: 0.84rem;
}

.edutop-chatbot-course span {
  display: block;
  font-size: 0.72rem;
  color: var(--bs-secondary-color, #6c757d);
}

.edutop-chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.9rem 0.65rem;
}

.edutop-chatbot-chip {
  border: 1px solid rgba(13, 110, 253, 0.2);
  background: rgba(13, 110, 253, 0.06);
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.edutop-chatbot-chip:hover {
  background: rgba(13, 110, 253, 0.14);
}

.edutop-chatbot-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.edutop-chatbot-input {
  flex: 1;
  min-width: 0;
  height: 2.5rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.85rem;
  padding: 0 0.85rem;
  background: rgba(13, 110, 253, 0.04);
  color: inherit;
  outline: 0;
}

.edutop-chatbot-input:focus {
  border-color: rgba(13, 110, 253, 0.4);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.edutop-chatbot-send {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, #0d6efd, #20c997);
}

.edutop-chatbot-typing {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
  min-height: 1rem;
}

.edutop-chatbot-typing span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #0d6efd;
  animation: edutopChatDot 1s infinite ease-in-out;
}

.edutop-chatbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.edutop-chatbot-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes edutopChatPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.18); opacity: 0; }
}

@keyframes edutopChatIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes edutopChatDot {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 575.98px) {
  .edutop-chatbot {
    left: 12px;
    bottom: 12px;
  }

  .edutop-chatbot-launcher {
    width: 3.25rem;
    height: 3.25rem;
  }

  .edutop-chatbot-panel {
    width: calc(100vw - 1.5rem);
    height: min(70vh, 520px);
  }
}
