/* Class home — aligned with Vidyakul landing layout & theme */
/* Scoped under .vid-home to stay independent from vidyakul-ds.css */

:root {
  --section-pad-x: clamp(1rem, 4vw, 4rem);
  --nav-pad-x: clamp(1rem, 4vw, 4rem);
  --hero-margin-x: 2rem;
  --section-pad-y: 4.5rem;
  --border-focus: rgba(84, 58, 227, 0.12);
  --shadow-sm: 0 2px 8px rgba(15, 23, 36, 0.04);
  --transition-slow: 0.4s ease;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  /* margin-bottom: 0 !important; */
}
html {
  scroll-behavior: smooth;
  background-color: var(--primary-bg);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

/* ——— Container (same width as landing sections) ——— */
.vid-home .vk-container {
  width: 100%;
  max-width: 85vw;
  margin: 0 auto;
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
}

/* ——— Sections ——— */
.vid-home .app-section {
  padding: var(--section-pad-y) 0;
}

/* Alternating section backgrounds — home page only */
.ejs-home.home-page .vid-home > section:nth-of-type(even) {
  background: #fff;
}

.ejs-home.home-page .vid-home > section:nth-of-type(odd):not(.hero-section) {
  background: var(--primary-bg);
}

/* E-Books store block — full-bleed like other home sections */
.ejs-home .vid-home .ebooks-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--section-pad-y) 0;
}

.ejs-home .vid-home .ebooks-section .section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.ejs-home .vid-home .ebooks-section .section-top h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

.ejs-home .vid-home .ebooks-section .section-top h2 span {
  color: var(--primary);
}

.ejs-home .vid-home .ebooks-section .section-top p {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}

.vid-home .course-recommend {
  padding: var(--section-pad-y) 0;
}

.vid-home .app-section .section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.vid-home .app-section .section-top h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

.vid-home .app-section .section-top h2 span {
  color: var(--primary);
}

.vid-home .app-section .section-top p {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}

.vid-home .app-section .heading-line {
  width: 50%;
  height: 4px;
  border-radius: 20px;
  margin: 14px 0 0;
  background: linear-gradient(90deg, var(--primary), #14b8a6);
}

.vid-home .app-section .view-all {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform var(--transition-fast);
}

.vid-home .app-section .view-all:hover {
  transform: translateX(4px);
}

.vid-home .app-section .scroll-row {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  margin: 0;
  padding: 0 0 8px;
}

.vid-home .app-section .scroll-row::-webkit-scrollbar {
  display: none;
}

.vid-home .app-section .scroll-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 4px 0 8px;
}

/* ——— Promo cards ——— */
.vid-home .section-promo .promo-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: 28px;
  min-height: 170px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid transparent;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.vid-home .section-promo .promo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(84, 58, 227, 0.14);
}

.vid-home .section-promo .promo-card.purple {
  background: linear-gradient(135deg, #f6f2ff, #ffffff);
  border-color: #f6f2ff;
}

.vid-home .section-promo .promo-card.green {
  background: linear-gradient(135deg, #f0fff7, #ffffff);
  border-color: #f0fff7;
}

.vid-home .section-promo .promo-card.orange {
  background: linear-gradient(135deg, #fff8f0, #ffffff);
  border-color: #fff8f0;
}

.vid-home .section-promo .promo-card.blue {
  background: linear-gradient(135deg, #f5f8ff, #ffffff);
  border-color: #f5f8ff;
}

.vid-home .section-promo .promo-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}

.vid-home .section-promo .promo-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.vid-home .section-promo .promo-card p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

.vid-home .section-promo .promo-card button {
  align-self: flex-start;
  margin-top: 14px;
  padding: 10px 18px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.vid-home .section-promo .promo-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(84, 58, 227, 0.3);
}

/* ——— Most viewed YouTube ——— */
.vid-home .section-mostviewed .yt-video-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: white;
  border-radius: 20px;
  border: 1px solid #eef2ff;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.vid-home .section-mostviewed .yt-video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 10px rgba(84, 58, 227, 0.14);
}

.vid-home .section-mostviewed .yt-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  overflow: hidden;
}

.vid-home .section-mostviewed .yt-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vid-home .section-mostviewed .yt-video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 36, 0.2);
  color: white;
  font-size: 18px;
  opacity: 0;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}

.vid-home .section-mostviewed .yt-video-card:hover .yt-video-play {
  opacity: 1;
  /* background: rgba(84, 58, 227, 0.45); */
}

.vid-home .section-mostviewed .yt-video-play i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #543ae3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
}

.vid-home .section-mostviewed .yt-video-body {
  padding: 14px 16px 16px;
}

.vid-home .section-mostviewed .yt-video-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vid-home .section-mostviewed .yt-video-channel {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vid-home .section-mostviewed .yt-video-views {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #543ae3;
}

.vid-home .section-mostviewed .yt-video-card--skeleton {
  pointer-events: none;
}

.vid-home .section-mostviewed .yt-video-thumb--skeleton {
  background: linear-gradient(90deg, #eef2ff 25%, #f8fafc 50%, #eef2ff 75%);
  background-size: 200% 100%;
  animation: yt-skeleton-shimmer 1.2s ease-in-out infinite;
}

.vid-home .section-mostviewed .yt-video-line {
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2ff 25%, #f8fafc 50%, #eef2ff 75%);
  background-size: 200% 100%;
  animation: yt-skeleton-shimmer 1.2s ease-in-out infinite;
}

.vid-home .section-mostviewed .yt-video-line--title {
  width: 92%;
  height: 14px;
}

.vid-home .section-mostviewed .yt-video-line--meta {
  width: 55%;
  margin-top: 10px;
}

.vid-home .section-mostviewed .yt-video-empty {
  padding: 2rem 0;
  color: var(--text-muted);
  font-weight: 600;
}

@keyframes yt-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ——— Overview ——— */
.vid-home .section-overview .overview-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: white;
  border-radius: 28px;
  border: 1px solid #eef2ff;
  overflow: hidden;
  height: fit-content;
  min-height: 450px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.vid-home .section-overview .overview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 10px rgba(84, 58, 227, 0.12);
}

.vid-home .section-overview .overview-head {
  background: var(--primary-light);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vid-home .section-overview .overview-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.vid-home .section-overview .overview-head .play-btn {
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.vid-home .section-overview .overview-head .play-btn:hover {
  transform: scale(1.06);
  background: var(--primary-dark);
}

.vid-home .section-overview .overview-item {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  transition: background var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.vid-home .section-overview .overview-item>div {
  display: flex;
  /* align-items: center; */
 flex-direction: column;
 justify-content: space-evenly;
}

.vid-home .section-overview .overview-item:hover {
  background: var(--primary-bg);
}

.vid-home .section-overview .overview-item img {
  width: 70px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.vid-home .section-overview .overview-item__media {
  position: relative;
  flex-shrink: 0;
}

.vid-home .section-overview .overview-item__duration {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.vid-home .section-overview .overview-item h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vid-home .section-overview .overview-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.vid-home .section-overview .overview-item__duration-line {
  font-size: 12px !important;
}

.vid-home .section-overview .overview-item__duration-line {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #543ae3;
}

.vid-home .section-overview .overview-item .subject-name {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.vid-home .section-overview .overview-more {
  display: flex;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid var(--border);
  transition: background var(--transition-fast);
  align-items: center;
  gap: 5px;
  justify-content: center;
}

.vid-home .section-overview .overview-more:hover {
  background: var(--primary-bg);
}

/* ——— Filter chips ——— */
.vid-home .app-section .filter-chips {
  display: flex;
  gap: 10px;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.vid-home .app-section .filter-chips::-webkit-scrollbar {
  display: none;
}

.vid-home .app-section .filter-chip {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid #d8dee8;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  font-family: inherit;
  box-shadow: none;
  transition: all var(--transition-fast);
}

.vid-home .app-section .filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.vid-home .app-section .filter-chip.is-active {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}

/* ——— Chapter wise classes ——— */
.vid-home .section-chapters {
  padding: var(--section-pad-y) 0;
}

.vid-home .section-chapters .chapter-section-header {
  margin-bottom: 1.25rem;
}

.vid-home .section-chapters .chapter-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

.vid-home .section-chapters .filter-chips {
  margin-bottom: 1.5rem;
}

/* ——— Unified slider arrows (Popular Courses style) ——— */
.vid-home .section-slider-wrap {
  position: relative;
  margin: 0 -4px;
  padding: 0 4px;
  overflow: hidden;
}

.vid-home .section-slider-wrap::before,
.vid-home .section-slider-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 10px;
  width: 72px;
  z-index: 2;
  pointer-events: none;
}

.vid-home .section-slider-wrap::before {
  left: 0;
}

.vid-home .section-slider-wrap::after {
  right: 0;
}

.vid-home .bg-white .section-slider-wrap::before {
  /* background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%); */
}

.vid-home .bg-white .section-slider-wrap::after {
  /* background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 100%); */
}

.vid-home .bg-muted .section-slider-wrap::before {
  /* background: linear-gradient(to right, var(--primary-bg) 0%, rgba(255, 255, 255, 0) 100%); */
}

.vid-home .bg-muted .section-slider-wrap::after {
  /* background: linear-gradient(to left, var(--primary-bg) 0%, rgba(255, 255, 255, 0) 100%); */
}

.vid-home .section-slider-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(84, 58, 227, 0.14);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #543ae3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 14px 32px rgba(84, 58, 227, 0.14);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.vid-home .section-slider-nav-btn[hidden],
.vid-home .section-slider-wrap:not(.is-scrollable) .section-slider-nav-btn {
  display: none !important;
}

.vid-home .section-slider-nav-btn svg {
  width: 18px;
  height: 18px;
}

.vid-home .section-slider-nav-btn--overlay {
  position: absolute;
  top: 50%;
  z-index: 4;
}

.vid-home .section-slider-nav-btn--prev {
  left: 10px;
  transform: translateY(-50%);
}

.vid-home .section-slider-nav-btn--next {
  right: 10px;
  transform: translateY(-50%);
}

.vid-home .section-slider-nav-btn--overlay:hover {
  background: #fff;
  color: #4630c4;
  border-color: rgba(84, 58, 227, 0.28);
  box-shadow:
    0 6px 10px rgba(15, 23, 42, 0.06),
    0 18px 40px rgba(84, 58, 227, 0.2);
}

.vid-home .section-slider-nav-btn--prev:hover {
  transform: translateY(-50%) translateX(-2px);
}

.vid-home .section-slider-nav-btn--next:hover {
  transform: translateY(-50%) translateX(2px);
}

.vid-home .section-slider-nav-btn--overlay:active {
  transform: translateY(-50%) scale(0.94);
}

.vid-home .section-slider-wrap .scroll-row,
.vid-home .section-slider-wrap .recorded-slider,
.vid-home .section-slider-wrap .chapter-slider,
.vid-home .section-slider-wrap .notes-slider {
  scroll-padding-inline: 56px;
}

.vid-home .section-chapters .chapter-slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  padding: 8px 4px 12px;
}

.vid-home .section-chapters .chapter-slider::-webkit-scrollbar {
  display: none;
}

.vid-home .section-chapters .chapter-card {
  position: relative;
  flex: 0 0 300px;
  scroll-snap-align: start;
  border-radius: 22px;
  min-height: 390px;
  padding: 1.25rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 10px 28px rgba(15, 23, 36, 0.12);
}

.vid-home .section-chapters .chapter-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 36, 0.18);
}

.vid-home .section-chapters .chapter-card--blue {
  background: linear-gradient(165deg, #4f86e8 0%, #3f74d8 100%);
}

.vid-home .section-chapters .chapter-card--teal {
  background: linear-gradient(165deg, #2ea89a 0%, #238b7f 100%);
}

.vid-home .section-chapters .chapter-card--orange {
  background: linear-gradient(165deg, #f0a060 0%, #e8894a 100%);
}

.vid-home .section-chapters .chapter-card--purple {
  background: linear-gradient(165deg, #8b5cf6 0%, #7c3aed 100%);
}

.vid-home .section-chapters .chapter-card--indigo {
  background: linear-gradient(165deg, #6366f1 0%, #4f46e5 100%);
}

.vid-home .section-chapters .chapter-card-dots {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 58%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.34) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  pointer-events: none;
}

.vid-home .section-chapters .chapter-card-subject {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.vid-home .section-chapters .chapter-card-icon {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  margin: 1.25rem auto 1.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  line-height: 1;
}

.vid-home .section-chapters .chapter-card-title {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.vid-home .section-chapters .chapter-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.vid-home .section-chapters .chapter-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vid-home .section-chapters .chapter-card-teacher {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.vid-home .section-chapters .chapter-card-videos {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.92;
}

.vid-home .section-chapters .chapter-card-play {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  padding-left: 2px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(84, 58, 227, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.vid-home .section-chapters .chapter-card-play:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(84, 58, 227, 0.45);
}

/* ——— Handwritten Notes / PDF ——— */
.vid-home .section-notes {
  padding: var(--section-pad-y) 0;
}

.vid-home .section-notes .notes-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.vid-home .section-notes .notes-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

.vid-home .section-notes .notes-section-header p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
}

.vid-home .section-notes .filter-chips {
  margin-bottom: 1.5rem;
}

.vid-home .section-notes .notes-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 12px 4px 16px;
}

.vid-home .section-notes .notes-slider::-webkit-scrollbar {
  display: none;
}

.vid-home .section-notes .pdf-note-card {
  position: relative;
  flex: 0 0 220px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base);
}

.vid-home .section-notes .pdf-note-card:hover {
  transform: translateY(-6px);
}

.vid-home .section-notes .pdf-note-stack {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 290px;
  border-radius: 18px;
  background: #e8ecf4;
  transform: rotate(-2deg);
  z-index: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 36, 0.06);
}

.vid-home .section-notes .pdf-note-cover {
  position: relative;
  z-index: 1;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;
  background: #1e3a5f;
  box-shadow: 0 12px 32px rgba(15, 23, 36, 0.14);
}

.vid-home .section-notes .pdf-note-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-base);
}

.vid-home .section-notes .pdf-note-card:hover .pdf-note-cover img {
  transform: scale(1.04);
}

.vid-home .section-notes .pdf-note-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 36, 0.05) 0%, rgba(15, 23, 36, 0.35) 100%);
  pointer-events: none;
}

.vid-home .section-notes .pdf-note-cover-fallback {
  height: 100%;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  gap: 6px;
}

.vid-home .section-notes .pdf-note-cover-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 4px;
}

.vid-home .section-notes .pdf-note-cover-class {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.vid-home .section-notes .pdf-note-cover-fallback strong {
  font-size: 13px;
  font-weight: 700;
}

.vid-home .section-notes .pdf-note-cover-fallback p {
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.92;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vid-home .section-notes .pdf-note-cover--chemistry {
  background: linear-gradient(165deg, #1e3a5f 0%, #0f2744 100%);
}

.vid-home .section-notes .pdf-note-cover--physics {
  background: linear-gradient(165deg, #1d4ed8 0%, #1e3a8a 100%);
}

.vid-home .section-notes .pdf-note-cover--math {
  background: linear-gradient(165deg, #c2410c 0%, #9a3412 100%);
}

.vid-home .section-notes .pdf-note-cover--purple,
.vid-home .section-notes .pdf-note-cover--hindi {
  background: linear-gradient(165deg, #7c3aed 0%, #5b21b6 100%);
}

.vid-home .section-notes .pdf-note-cover--indigo,
.vid-home .section-notes .pdf-note-cover--english {
  background: linear-gradient(165deg, #4f46e5 0%, #3730a3 100%);
}

.vid-home .section-notes .pdf-note-badge {
  position: absolute;
  left: 50%;
  bottom: 28%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  color: #1f2937;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.vid-home .section-notes .pdf-note-pages {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}

.vid-home .section-notes .pdf-note-pages i {
  color: #dc2626;
}

.vid-home .section-notes .pdf-note-body {
  padding: 14px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vid-home .section-notes .pdf-note-subject {
  font-size: 13px;
  font-weight: 700;
}

.vid-home .section-notes .pdf-note-card--chemistry .pdf-note-subject { color: #e11d48; }
.vid-home .section-notes .pdf-note-card--physics .pdf-note-subject { color: #2563eb; }
.vid-home .section-notes .pdf-note-card--math .pdf-note-subject { color: #ea580c; }
.vid-home .section-notes .pdf-note-card--hindi .pdf-note-subject { color: #7c3aed; }
.vid-home .section-notes .pdf-note-card--english .pdf-note-subject { color: #4f46e5; }

.vid-home .section-notes .pdf-note-body h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vid-home .section-notes .pdf-note-meta {
  font-weight: 600;
  color: #64748b;
}

.vid-home .section-notes .pdf-note-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.vid-home .section-notes .pdf-note-view {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: none;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.vid-home .section-notes .pdf-note-view:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.vid-home .section-notes .pdf-note-download {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.vid-home .section-notes .pdf-note-download:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ——— Results ——— */
.vid-home .section-results .result-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: white;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #fde68a;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.vid-home .section-results .result-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(245, 158, 11, 0.15);
}

.vid-home .section-results .result-card-head {
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
}

.vid-home .section-results .result-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
}

.vid-home .section-results .result-card p {
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

/* ——— Educators ——— */
.vid-home .section-educators .educator-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: white;
  border-radius: 28px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid #eef2ff;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.vid-home .section-educators .educator-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(84, 58, 227, 0.12);
}

.vid-home .section-educators .educator-card img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 12px;
  background: var(--primary-light);
}

.vid-home .section-educators .educator-card h4 {
  font-size: 15px;
  font-weight: 700;
}

.vid-home .section-educators .educator-card p {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin: 4px 0 8px;
}

.vid-home .section-educators .educator-rating {
  font-size: 13px;
  color: #f59e0b;
  font-weight: 700;
}

/* ——— Footer ——— */
.vid-home .app-footer {
  /* background: linear-gradient(90deg, #051937 0%, #08142f 40%, #10275d 100%); */
  background: #231862;
  padding: 4rem var(--section-pad-x) 1.5rem;
  color: white;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.vid-home .app-footer::before {
  content: "";
  position: absolute;
  display: none;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(84, 58, 227, 0.15), transparent);
  left: -150px;
  top: -150px;
}

.vid-home .app-footer-top {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.vid-home .app-footer-top img {
  width: 200px;
  margin-bottom: 1.25rem;
}

.vid-home .footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.vid-home .footer-socials a {
  width: 48px;
  height: 48px;
  text-decoration: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  font-size: 20px;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.vid-home .footer-socials a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.15);
}

.vid-home .app-footer-card {
  background: rgba(255, 255, 255, 0.04);
  /* backdrop-filter: blur(30px); */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
}

.vid-home .app-footer-card h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 18px;
}

.vid-home .app-footer-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  padding: 0;
}

.vid-home .app-footer-card a {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 600;
  font-size: 14px;
}

.vid-home .app-footer-card a:hover {
  color: white !important;
}

.vid-home .app-footer-download img {
  width: 160px;
}

.vid-home .app-footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
}

/* ——— Recommended course ——— */
.vid-home .course-recommend .recommend-header {
  text-align: center;
  margin-bottom: 2rem;
}

.vid-home .course-recommend .recommend-badge {
  display: inline-block;
  padding: 10px 18px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.vid-home .course-recommend .recommend-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 10px;
}

.vid-home .course-recommend .recommend-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  max-width: 700px;
  margin: 0 auto;
}

.vid-home .course-recommend .recommend-card {
  display: flex;
  gap: 1.5rem;
  background: white;
  padding: 1.25rem;
  border-radius: 32px;
  border: 1px solid #eef2ff;
  box-shadow: 0 25px 60px rgba(84, 58, 227, 0.1);
}

.vid-home .course-recommend .recommend-card-banner {
  width: 38%;
  min-width: 280px;
  background: linear-gradient(135deg, #543ae3 0%, #6246ea 45%, #7c3aed 100%);
  border-radius: 24px;
  padding: 1.5rem;
  color: white;
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.vid-home .course-recommend .recommend-best-badge {
  background: #ffd54f;
  color: #1a1a1a;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 1.5rem;
}

.vid-home .course-recommend .recommend-banner-class {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.vid-home .course-recommend .recommend-banner-board {
  font-size: 18px;
  font-weight: 700;
  margin-top: 6px;
  opacity: 0.95;
}

.vid-home .course-recommend .recommend-banner-tag {
  color: #ffd54f;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 8px 0 1rem;
}

.vid-home .course-recommend .recommend-banner-content p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  font-weight: 600;
}

.vid-home .course-recommend .recommend-stats {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  background: white;
  color: var(--text);
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.vid-home .course-recommend .recommend-stats strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.vid-home .course-recommend .recommend-stats span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.vid-home .course-recommend .recommend-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vid-home .course-recommend .recommend-pill {
  display: inline-block;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.vid-home .course-recommend .recommend-card-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 10px !important;
}

.vid-home .course-recommend .recommend-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 600;
}

.vid-home .course-recommend .recommend-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 1.5rem 0;
}

.vid-home .course-recommend .recommend-feature {
  background: var(--primary-bg);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid #eef2ff;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.vid-home .course-recommend .recommend-feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.vid-home .course-recommend .recommend-feature strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.vid-home .course-recommend .recommend-feature span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.vid-home .course-recommend .recommend-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0 1.25rem;
}

.vid-home .course-recommend .recommend-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.vid-home .course-recommend .recommend-pricing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vid-home .course-recommend .recommend-price-current {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
}

.vid-home .course-recommend .recommend-price-old {
  text-decoration: line-through;
  color: #94a3b8;
  font-weight: 600;
  font-size: 15px;
}

.vid-home .course-recommend .recommend-price-discount {
  background: #dcfce7;
  color: #16a34a;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.vid-home .course-recommend .recommend-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.vid-home .course-recommend .recommend-btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform var(--transition-fast), box-shadow var(--transition-base), background var(--transition-base);
}

.vid-home .course-recommend .recommend-btn-primary:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  box-shadow: 0 12px 28px rgba(84, 58, 227, 0.35);
}

.vid-home .course-recommend .recommend-btn-outline {
  background: white;
  color: var(--primary);
  border: 1.5px solid rgba(84, 58, 227, 0.35);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.vid-home .course-recommend .recommend-btn-outline:hover {
  transform: translateY(-2px);
  background: var(--primary-light);
}

.vid-home .course-recommend .recommend-offer {
  margin-top: 1.25rem;
  background: linear-gradient(135deg, #f0fff7, #ecfdf5);
  border: 1px solid #bbf7d0;
  border-radius: 22px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.vid-home .course-recommend .recommend-offer-text {
  font-size: 15px;
  font-weight: 600;
  color: white;
  line-height: 1.5;
}

.vid-home .course-recommend .recommend-offer-text strong {
  font-weight: 700;
}

.vid-home .course-recommend .recommend-offer-timer {
  display: flex;
  gap: 8px;
}

.vid-home .course-recommend .recommend-offer-timer span {
  background: white;
  color: var(--primary);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(84, 58, 227, 0.12);
  min-width: 44px;
  text-align: center;
}

/* ——— Subscription banner ——— */
.vid-home .subscription-banner-section {
  padding: 1.25rem 0 0;
  background: var(--primary-bg);
}

.vid-home .subscription-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(15, 23, 36, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.vid-home .subscription-banner-text {
  min-width: 0;
}

.vid-home .subscription-banner-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0 !important;
  line-height: 1.4;
}

.vid-home .subscription-banner-price {
  margin-top: 10px;
  font-size: 2rem;
  margin-bottom: 0;
  font-weight: 700;
  color: #543ae3;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.vid-home .subscription-banner-btn {
  flex-shrink: 0;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  background: #543ae3;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 27, 200, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.vid-home .subscription-banner-btn:hover {
  transform: translateY(-2px);
  background: #00b34a;
  box-shadow: 0 10px 28px rgba(0, 200, 83, 0.4);
}

/* ———  Hero section ——— */
.vid-home .hero-section {
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}

.vid-home .hero-pro-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  align-items: flex-end;
}

.vid-home .hero-pro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.vid-home .hero-pro-badge {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.vid-home .hero-pro-badge--yellow {
  background: #fde68a70;
  color: #92400e;
}

.vid-home .hero-pro-badge--purple {
  background: var(--primary-light);
  color: var(--primary);
}

.vid-home .hero-pro-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
  /* letter-spacing: -0.5px; */
  text-transform: capitalize;
}

.vid-home .hero-pro-title span {
  color: black;
  /* display: block; */
  margin-top: 4px;
}

.vid-home .hero-pro-desc {
  margin-top: 14px;
  display: none;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
}

.vid-home .hero-pro-features {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}

.vid-home .hero-pro-feature {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(15, 23, 36, 0.04);
  border: 1px solid #eef2ff;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.vid-home .hero-pro-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.vid-home .hero-pro-feature h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.vid-home .hero-pro-feature p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0;
  margin-top: 2px;
}

.vid-home .hero-pro-highlight {
  margin-top: 1.25rem;
  border: 1px solid rgba(84, 58, 227, 0.15);
  background: white;
  border-radius: 16px;
  padding: 15px 24px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vid-home .hero-pro-highlight strong {
  font-weight: 700;
}

.vid-home .hero-pro-actions {
  /* display: grid; */
  display: none;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
  grid-template-columns: 1fr 1fr;
  
}

.vid-home .hero-pro-btn {
  height: 65px;
  padding: 0 24px;
  border-radius: 16px;
  font-size: 18px;
  /* width: calc(50% - 20px); */
  font-weight: 700;
  cursor: pointer;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.vid-home .hero-pro-btn:hover {
  transform: translateY(-2px);
}

.vid-home .hero-pro-btn--primary {
  border: none;
  color: white;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  box-shadow: 0 12px 28px rgba(84, 58, 227, 0.3);
}

.vid-home .hero-pro-btn--outline {
  background: white;
  border: 1.5px solid rgba(84, 58, 227, 0.35);
  color: var(--primary);
}

.vid-home .hero-pro-visual {
  display: flex;
  flex-direction: column;
  /* height: 100%; */
  justify-content: space-between;
}

.vid-home .hero-pro-video {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 28px;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  /* box-shadow: 0 25px 60px rgba(84, 58, 227, 0.2); */
}

.vid-home .hero-pro-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  bottom: 0;
  position: absolute;
}

.vid-home .hero-pro-stats {
  margin-top: 1rem;
  background: white;
  border-radius: 22px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #eef2ff;
  height: 100px;
  box-shadow: var(--shadow-sm);
  display: none;
}

.vid-home .hero-pro-stat {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.vid-home .hero-pro-stat-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.vid-home .hero-pro-stat h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin: 0;
}

.vid-home .hero-pro-stat p {
  font-size: 16px;
  /* color: var(--text-muted); */
  /* font-weight: 600; */
  /* margin-top: 2px; */
  margin-bottom: 0;
}

/* ——— Recorded videos ——— */
.vid-home .recorded-section {
  padding: var(--section-pad-y) 0;
}

.vid-home .recorded-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.vid-home .recorded-section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

.vid-home .recorded-section-header h2 span {
  color: var(--primary);
}

.vid-home .recorded-section-header p {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}

.vid-home .recorded-section-header .heading-line {
  width: 72px;
  height: 4px;
  border-radius: 20px;
  margin-top: 14px;
  margin: 14px 0 0;
  background: linear-gradient(90deg, var(--primary), #14b8a6);
}

.vid-home .recorded-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 0 12px;
}

.vid-home .recorded-slider::-webkit-scrollbar {
  display: none;
}

.vid-home .recorded-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: #f7f4ff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #ede9fe;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.vid-home .recorded-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(84, 58, 227, 0.12);
}

.vid-home .recorded-thumb {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.vid-home .recorded-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vid-home .recorded-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.88);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
}

.vid-home .recorded-body {
  padding: 16px 60px 16px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.vid-home .recorded-body h3,
.vid-home .recorded-body .recorded-chapter,
.vid-home .recorded-body .recorded-teacher-row span,
.vid-home .recorded-body .recorded-date {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  margin: 0;
}

.vid-home .recorded-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.vid-home .recorded-chapter {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.vid-home .recorded-teacher-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vid-home .recorded-teacher-row span {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}

.vid-home .recorded-play-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-left: 2px;
  position: absolute;
  right: 15px;
  bottom: 15px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.vid-home .recorded-play-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(84, 58, 227, 0.35);
}

.vid-home .recorded-date {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

/* ——— Responsive ——— */
@media (max-width: 1200px) {
  :root {
    --section-pad-x: 3rem;
    --nav-pad-x: 3rem;
  }

  .vid-home .app-section .section-top h2,
  .vid-home .recorded-section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 1200px) {
  :root {
    --nav-pad-x: 2rem;
    --section-pad-x: 1.5rem;
  }
}

@media (max-width: 992px) {
  :root {
    --nav-pad-x: 1.25rem;
    --section-pad-x: 1.25rem;
  }

  .vid-home .course-recommend .recommend-card {
    flex-direction: column;
  }

  .vid-home .course-recommend .recommend-card-banner {
    width: 100%;
    min-width: 0;
    /* min-height: 320px; */
  }

  .vid-home .course-recommend .recommend-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .vid-home .course-recommend .recommend-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .vid-home .course-recommend .recommend-actions {
    width: 100%;
  }

  .vid-home .course-recommend .recommend-btn-primary,
  .vid-home .course-recommend .recommend-btn-outline {
    flex: 1;
    text-align: center;
  }

  .vid-home .hero-pro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vid-home .hero-pro-video {
    min-height: 320px;
  }

  .vid-home .hero-pro-stat {
    flex: 1 1 calc(50% - 8px);
  }

  .vid-home .app-footer {
    padding-left: var(--section-pad-x);
    padding-right: var(--section-pad-x);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad-x: 1rem;
    --nav-pad-x: 1rem;
    --hero-margin-x: 1rem;
    --section-pad-y: 3rem;
  }

  .vid-home .app-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .vid-home .app-section .section-top {
    flex-direction: row;
    align-items: flex-start;
  }

  .vid-home .app-section .section-top h2 {
    font-size: 1.5rem;
  }

  .vid-home .app-footer-card {
    flex-direction: column;
    text-align: center;
    display: none;
  }

  .vid-home .app-footer-card ul {
    justify-content: center;
  }

  .vid-home .recorded-section-header {
    /* flex-direction: column; */
    align-items: flex-start;
  }

  .vid-home .recorded-section-header h2 {
    font-size: 1.5rem;
  }

  .vid-home .recorded-card {
    flex: 0 0 min(85vw, 300px);
    max-width: 300px;
  }

  .vid-home .section-chapters .chapter-section-header h2 {
    font-size: 1.5rem;
  }

  .vid-home .section-chapters .chapter-card {
    flex: 0 0 min(82vw, 280px);
    max-width: 280px;
    min-height: 340px;
  }

  .vid-home .section-chapters .chapter-card-title {
    font-size: 1.05rem;
  }

  .vid-home .section-notes .notes-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .vid-home .section-notes .notes-section-header h2 {
    font-size: 1.5rem;
  }

  .vid-home .section-notes .pdf-note-card {
    flex: 0 0 min(78vw, 200px);
  }

  .vid-home .hero-pro-title {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }

  .vid-home .hero-pro-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .vid-home .hero-pro-btn {
    width: 100%;
    justify-content: center;
  }

  .vid-home .hero-pro-stats {
    flex-wrap: wrap;
  }

  .vid-home .promo-card,
  .vid-home .educator-card,
  .vid-home .result-card {
    flex: 0 0 min(80vw, 280px);
  }

  .vid-home .section-notes .pdf-note-card {
    max-width: 220px;
  }

  .vid-home .section-slider-wrap::before,
  .vid-home .section-slider-wrap::after {
    width: 48px;
  }

  .vid-home .section-slider-nav-btn {
    width: 40px;
    height: 40px;
  }

  .vid-home .section-slider-nav-btn--prev {
    left: 4px;
  }

  .vid-home .section-slider-nav-btn--next {
    right: 4px;
  }

  .vid-home .subscription-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
  }

  .vid-home .subscription-banner-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .vid-home .course-recommend .recommend-title {
    font-size: 1.5rem;
  }

  .vid-home .hero-pro-highlight {
    flex-direction: column;
    padding: 18px 16px;
  }

  .vid-home .subscription-banner-price {
    margin: 0;
    font-size: 1.45rem;
  }

  .subscription-banner-text {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 0.75rem;
  }

  .vid-home .course-recommend .recommend-card-title {
    font-size: 1.25rem;
  }

  .vid-home .course-recommend .recommend-banner-class {
    font-size: 1.75rem;
  }

  .vid-home .course-recommend .recommend-features {
    grid-template-columns: 1fr 1fr;
    margin: 0;
    gap: 0.65rem;
  }

  .vid-home .hero-section {
    padding: 1.5rem 0 2rem;
  }

  .vid-home .subscription-banner-label {
    font-size: 0.85rem;
  }

  .vid-home .hero-pro-features {
    grid-template-columns: 1fr;
  }

  .vid-home .hero-pro-actions {
    flex-direction: column;
  }

  .vid-home .hero-pro-btn {
    width: 100%;
  }

  .vid-home .hero-pro-stat {
    flex: 1 1 100%;
  }
}

.vid-home {
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background: var(--primary-bg);
}
