/* =============================================================
   Demo Videos Page Styles — School ERP India Theme
   ============================================================= */

.demo-videos-page {
  background: #F7F9FC;
  color: #554f6c;
  overflow-x: hidden;
}

/* ── Toolbar & Filter Strip ─────────────────────────────────── */
.dv-toolbar-section {
  background: #ffffff;
  padding: 24px 0 20px;
  border-bottom: 1px solid #ebe7f6;
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.04);
  position: sticky;
  top: 70px;
  z-index: 99;
}

.dv-toolbar-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.dv-search-wrap {
  position: relative;
  flex: 1;
  max-width: 580px;
  min-width: 280px;
}

.dv-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #7b7496;
  font-size: 14px;
}

.dv-search-wrap input {
  width: 100%;
  padding: 12px 42px 12px 44px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  background: #fbfafd;
  font-size: 13.5px;
  color: #0B1533;
  outline: none;
  transition: all 0.25s ease;
}

.dv-search-wrap input:focus {
  background: #ffffff;
  border-color: #0066FF;
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
}

#dvSearchClear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #948fa8;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.dv-stats-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dv-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.dv-badge-live {
  background: #EBF2FF;
  color: #0066FF;
  border: 1px solid rgba(0, 102, 255, 0.2);
}

.dv-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0066FF;
  animation: dvPulse 2s infinite;
}

@keyframes dvPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 102, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 102, 255, 0); }
}

.dv-badge-upcoming {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Category Filter Pills */
.dv-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.dv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #F0F4FA;
  border: 1px solid #E2E8F0;
  color: #4a4563;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.22s ease;
  outline: none;
}

.dv-pill i {
  color: #0066FF;
  font-size: 11px;
}

.dv-pill:hover {
  background: #ede9fc;
  color: #0066FF;
  border-color: #BFDBFE;
}

.dv-pill.active {
  background: #0066FF;
  color: #ffffff !important;
  border-color: #0066FF;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.28);
}

.dv-pill.active i {
  color: #ffffff;
}

/* ── Main Section ───────────────────────────────────────────── */
.dv-main-section {
  padding: 50px 0 80px;
}

.dv-category-block {
  margin-bottom: 60px;
}

.dv-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 2px solid #E2E8F0;
  flex-wrap: wrap;
}

.dv-cat-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dv-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EBF2FF 0%, #DBEAFE 100%);
  color: #0066FF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: 0 0 52px;
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.1);
}

.dv-cat-overline {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #0066FF;
  margin-bottom: 2px;
}

.dv-cat-title {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 800;
  color: #0B1533;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}

.dv-cat-desc {
  font-size: 13px;
  color: #645f7e;
  margin: 0;
  max-width: 680px;
  line-height: 1.55;
}

.dv-btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dcd7ee;
  color: #0066FF !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.dv-btn-explore:hover {
  background: #0066FF;
  color: #ffffff !important;
  border-color: #0066FF;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
  transform: translateX(2px);
}

/* ── Video Card ─────────────────────────────────────────────── */
.dv-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(27, 22, 56, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dv-card:hover {
  transform: translateY(-5px);
  border-color: #BFDBFE;
  box-shadow: 0 16px 36px rgba(0, 102, 255, 0.12);
}

/* 16:9 Video Frame */
.dv-video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #0f172a;
}

.dv-video-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dv-card:hover .dv-video-thumb {
  transform: scale(1.03);
}

.dv-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(236, 50, 55, 0.95);
  border: none;
  box-shadow: 0 8px 24px rgba(236, 50, 55, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease;
  z-index: 2;
}

.dv-card:hover .dv-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: #ec3237;
}

.dv-play-triangle {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #ffffff;
  margin-left: 3px;
}

.dv-video-dur {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dv-video-dur i {
  color: #ec3237;
}

.dv-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dv-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dv-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #EBF2FF;
  color: #0066FF;
}

.dv-badge-subtle {
  background: #f1f5f9;
  color: #64748b;
}

.dv-watch-now-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: #0066FF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dv-watch-now-btn:hover {
  text-decoration: underline;
  color: #3b2299;
}

.dv-card-title {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: #0B1533;
  line-height: 1.4 !important;
  margin-bottom: 8px;
}

.dv-card-desc {
  font-size: 12.5px !important;
  color: #645f7e;
  line-height: 1.6 !important;
  margin-bottom: 16px;
  flex: 1;
}

.dv-card-footer {
  padding-top: 12px;
  border-top: 1px dashed #ede8f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dv-link-module {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0066FF !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.dv-link-module:hover {
  text-decoration: underline !important;
  color: #3b2299 !important;
  transform: translateX(2px);
}

/* Upcoming Video Card */
.dv-card-upcoming {
  background: #fcfbfe;
  border: 1px dashed #d5cbed;
}

.dv-upcoming-frame {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  padding: 40px 20px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
}

.dv-upcoming-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
  color: #a5b4fc;
}

.dv-upcoming-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dv-upcoming-note {
  font-size: 11px;
  color: #cbd5e1;
  margin: 0;
}

.dv-btn-req-demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #f3f0fb;
  color: #0066FF !important;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid #E2E8F0;
  transition: all 0.2s ease;
}

.dv-btn-req-demo:hover {
  background: #0066FF;
  color: #ffffff !important;
  border-color: #0066FF;
}

/* ── No Results Box ─────────────────────────────────────────── */
.dv-no-results {
  padding: 60px 20px;
  text-align: center;
}

.dv-no-res-box {
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.06);
}

.dv-no-res-box i {
  font-size: 40px;
  color: #a09ab5;
  margin-bottom: 14px;
}

.dv-no-res-box h3 {
  font-size: 18px;
  color: #0B1533;
  font-weight: 700;
  margin-bottom: 8px;
}

.dv-no-res-box p {
  font-size: 13px;
  color: #645f7e;
  margin-bottom: 20px;
}

.dv-btn-reset {
  padding: 9px 20px;
  border-radius: 999px;
  background: #0066FF;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ── Fullscreen Video Lightbox Modal ────────────────────────── */
.dv-video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.dv-video-modal.is-open {
  display: flex;
}

.dv-modal-box {
  position: relative;
  max-width: 1000px;
  width: 100%;
  background: #0f172a;
  border-radius: 18px;
  border: 1px solid #334155;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.dv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #1e293b;
  color: #f1f5f9;
}

.dv-modal-title {
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dv-modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ec3237;
}

.dv-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1e293b;
  border: none;
  color: #cbd5e1;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.dv-modal-close:hover {
  background: #334155;
  color: #ffffff;
}

.dv-modal-body {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #020617;
}

.dv-modal-body iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Bottom CTA Box ─────────────────────────────────────────── */
.dv-cta-box {
  margin-top: 40px;
  padding: 38px 42px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0B1533 0%, #2b2350 50%, #4f3da6 100%);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(27, 22, 56, 0.15);
  position: relative;
  overflow: hidden;
}

.dv-cta-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.dv-cta-box h2 {
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.dv-cta-box p {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.65;
}

.dv-btn-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec3237 0%, #ff4b50 100%);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(236, 50, 55, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.dv-btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(236, 50, 55, 0.45);
}

@media (max-width: 768px) {
  .dv-toolbar-section {
    top: 60px;
    padding: 16px 0 12px;
  }
  .dv-cta-box {
    padding: 26px 20px;
  }
}
