/* Public Video Knowledge Library */
.vl-page {
  padding: 2rem 0 4rem;
}

.vl-page:not(:has(.vl-hero)) {
  padding-top: 2.5rem;
}

.vl-detail__header {
  margin-bottom: 1rem;
}

.vl-page h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.vl-prose {
  color: #334155;
  line-height: 1.75;
  font-size: 1rem;
}

.vl-prose > * + * {
  margin-top: 1rem;
}

.vl-prose h2,
.vl-prose h3,
.vl-prose h4 {
  color: #0f172a;
  line-height: 1.35;
  margin: 1.5rem 0 0.75rem;
  font-weight: 700;
}

.vl-prose h2 { font-size: 1.35rem; }
.vl-prose h3 { font-size: 1.15rem; }
.vl-prose h4 { font-size: 1.05rem; }

.vl-prose ul,
.vl-prose ol {
  margin: 0.75rem 0 0.75rem 1.25rem;
  padding-left: 0.5rem;
}

.vl-prose li + li {
  margin-top: 0.35rem;
}

.vl-prose a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vl-prose a:hover {
  color: #1d4ed8;
}

.vl-prose img,
.vl-prose video,
.vl-prose iframe {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.vl-prose blockquote {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid #93c5fd;
  background: #f8fafc;
  color: #475569;
}

.vl-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.vl-prose th,
.vl-prose td {
  border: 1px solid #e2e8f0;
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.vl-prose th {
  background: #f8fafc;
  font-weight: 600;
}

.vl-content-block details,
.vl-transcript {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: #fff;
}

.vl-transcript__body {
  margin-top: 0.85rem;
}

.vl-content-block details summary {
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
}

.vl-meta-line {
  margin: 0 0 1rem;
  color: #475569;
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.vl-content-block {
  margin-bottom: 2rem;
}

.vl-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
  color: #fff;
  padding: 2.5rem 0 2.75rem;
  margin-bottom: 2rem;
}

.vl-hero .container {
  max-width: 920px;
}

.vl-hero__eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vl-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.vl-hero p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 760px;
}

.vl-breadcrumbs {
  margin-bottom: 1rem;
  color: #64748b;
  font-size: 0.92rem;
}

.vl-breadcrumbs a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.vl-breadcrumbs a:hover {
  text-decoration: underline;
}

.vl-breadcrumbs span {
  margin: 0 0.35rem;
  color: #94a3b8;
}

.vl-section {
  margin-bottom: 2.5rem;
}

.vl-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.vl-section__head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: #0f172a;
}

.vl-section__lead {
  max-width: 900px;
  color: #475569;
  line-height: 1.75;
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

.vl-category-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.vl-category-header__count {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Line clamp: full text remains in HTML for SEO */
.vl-line-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.vl-line-clamp--1 { -webkit-line-clamp: 1; }
.vl-line-clamp--2 { -webkit-line-clamp: 2; }
.vl-line-clamp--3 { -webkit-line-clamp: 3; }

.vl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.vl-grid--categories,
.vl-grid--cards {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .vl-grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (min-width: 768px) {
  .vl-grid--categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .vl-grid--cards {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 1100px) {
  .vl-grid--categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.vl-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  border-color: #93c5fd;
}

.vl-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1rem 0.85rem;
  min-height: 0;
}

.vl-card__footer {
  margin-top: auto;
  padding: 0 1rem 1rem;
}

.vl-card__btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.vl-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  min-height: calc(1.35em * 2);
}

.vl-card--category .vl-card__title {
  font-size: 1.12rem;
}

.vl-card__title a {
  text-decoration: none;
  color: #0f172a;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.vl-card__title a:hover {
  color: #2563eb;
}

.vl-card__desc {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
  font-size: 0.92rem;
  min-height: calc(1.55em * 3);
}

.vl-card--category .vl-card__desc {
  min-height: calc(1.55em * 3);
}

.vl-card__desc--empty {
  visibility: hidden;
}

.vl-card__meta {
  margin: 0 !important;
  font-size: 0.8rem;
  color: #94a3b8 !important;
  min-height: 1.25rem;
}

.vl-card__count {
  margin: 0;
}

.vl-card__count-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.vl-card__thumb {
  display: block;
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

.vl-video-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.35);
}

.vl-video-badge--sm {
  position: static;
  box-shadow: none;
  font-size: 0.62rem;
  padding: 0.22rem 0.45rem;
  flex-shrink: 0;
}

.vl-video-badge--lg {
  top: 0.85rem;
  left: 0.85rem;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
}

.vl-video-badge--detail {
  position: static;
  display: inline-flex;
  margin-bottom: 0.65rem;
  box-shadow: none;
  font-size: 0.72rem;
}

.vl-start-here {
  margin-bottom: 2rem;
  padding: 1.35rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 55%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
}

.vl-start-here__label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #1e40af;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vl-start-here__title {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.vl-start-here__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: center;
}

@media (min-width: 768px) {
  .vl-start-here__grid {
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: 1.5rem;
  }
}

.vl-start-here__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.vl-start-here__media img {
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.vl-start-here__media:hover img {
  transform: scale(1.02);
}

.vl-start-here__video-title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.vl-start-here__desc {
  margin: 0 0 1rem;
  color: #475569;
  line-height: 1.65;
}

.vl-start-here__btn {
  display: inline-flex;
}

.vl-curriculum {
  margin-bottom: 2.5rem;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.vl-curriculum__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.vl-curriculum__item.is-active .vl-curriculum__link {
  border-color: #93c5fd;
  background: #eff6ff;
}

.vl-curriculum__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.vl-curriculum__link:hover {
  border-color: #93c5fd;
  background: #f8fafc;
  transform: translateX(2px);
}

.vl-curriculum__status {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.85rem;
  font-weight: 800;
}

.vl-curriculum__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.vl-curriculum__heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e40af;
  letter-spacing: 0.01em;
}

.vl-curriculum__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
}

.vl-video-pager {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

@media (min-width: 640px) {
  .vl-video-pager {
    grid-template-columns: 1fr 1fr;
  }
}

.vl-video-pager__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.vl-video-pager__link:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.vl-video-pager__link--next {
  text-align: right;
  align-items: flex-end;
}

.vl-video-pager__link--empty {
  display: none;
}

@media (min-width: 640px) {
  .vl-video-pager__link--empty {
    display: block;
    visibility: hidden;
  }
}

.vl-video-pager__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.vl-video-pager__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.vl-video-pager__badge {
  display: inline-flex;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.vl-continue {
  margin: 2rem 0;
  padding: 1.25rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.vl-continue__nav .vl-video-pager {
  margin-bottom: 1.25rem;
}

.vl-continue__grid {
  margin-top: 0.25rem;
}

.vl-card__thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.vl-card--video:hover .vl-card__thumb img {
  transform: scale(1.03);
}

.vl-card--category {
  padding: 0;
}

.vl-card--category .vl-card__body {
  padding-top: 1.15rem;
}

.vl-card--category h2 {
  margin: 0;
}

.vl-card--category h2 a,
.vl-card--video h2 a,
.vl-card--video h3 a {
  text-decoration: none;
  color: #0f172a;
}

.vl-card--category h2 a:hover,
.vl-card--video h2 a:hover,
.vl-card--video h3 a:hover {
  color: #2563eb;
}

.vl-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.vl-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #e2e8f0;
}

.vl-card .btn-primary,
.vl-card .btn-secondary {
  margin-top: 0;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
}

.vl-player {
  position: relative;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  margin: 1rem 0 1.75rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

.vl-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vl-content-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: #0f172a;
}

.vl-content-block p,
.vl-content-block div {
  color: #334155;
  line-height: 1.7;
}

.vl-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
}

.vl-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: #0f172a;
}

.vl-cta p {
  margin: 0;
  color: #475569;
}

.vl-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.vl-faq {
  display: grid;
  gap: 0.65rem;
}

.vl-faq__item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.vl-faq__question {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  background: #f8fafc;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  color: #0f172a;
  font-size: 0.95rem;
}

.vl-faq__answer {
  display: none;
  padding: 0.9rem 1rem;
  background: #fff;
  color: #334155;
  line-height: 1.6;
}

.vl-faq__item.is-open .vl-faq__answer {
  display: block;
}

.vl-callback {
  margin-top: 1.25rem;
  background: #fff;
  padding: 1.15rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.vl-callback h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.vl-callback__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.vl-callback__grid input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}

.vl-empty {
  padding: 2.5rem;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
}

.vl-setup-notice {
  padding: 1.25rem;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  margin-bottom: 1.5rem;
}

@media (max-width: 700px) {
  .vl-page {
    padding: 1.25rem 0 3rem;
  }

  .vl-page:not(:has(.vl-hero)) {
    padding-top: 1.5rem;
  }

  .vl-section {
    margin-bottom: 2rem;
  }

  .vl-card__thumb img,
  .vl-card img {
    height: 165px;
  }

  .vl-card__body {
    padding: 0.9rem 0.9rem 0.75rem;
  }

  .vl-card__footer {
    padding: 0 0.9rem 0.9rem;
  }

  .vl-category-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem;
  }

  .vl-callback__grid {
    grid-template-columns: 1fr;
  }

  .vl-hero {
    padding: 2rem 0;
  }

  .vl-cta {
    padding: 1.15rem;
  }

  .vl-cta__actions {
    flex-direction: column;
  }

  .vl-cta__actions .btn-primary,
  .vl-cta__actions .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .vl-start-here {
    padding: 1rem;
  }

  .vl-start-here__media img {
    min-height: 180px;
    max-height: 220px;
  }

  .vl-curriculum {
    padding: 1rem;
  }

  .vl-curriculum__link {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .vl-curriculum__title {
    font-size: 0.9rem;
  }

  .vl-video-pager__link--next {
    text-align: left;
    align-items: flex-start;
  }

  .vl-continue {
    padding: 1rem;
  }
}
