/* ============================================================
   UTKARSH PATH — Videos Page Stylesheet
   ============================================================ */

.nav-active { color: var(--text) !important; font-weight: 600 !important; }

/* ── VIDEOS HERO ── */
.videos-hero {
  background: linear-gradient(160deg, #0F2545 0%, #1A3A6B 55%, #0F2545 100%);
  padding: 72px 60px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.videos-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,101,10,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.videos-hero-arc {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 64px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.videos-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.vid-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px; padding: 6px 16px 6px 10px;
  font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,0.7);
  margin-bottom: 22px;
  animation: fadeSlideUp 0.4s ease both;
}

.videos-hero-title {
  font-family: 'Fraunces', serif;
  font-size: 56px; font-weight: 600;
  color: #fff; letter-spacing: -2px; line-height: 1.1;
  margin-bottom: 16px;
  animation: fadeSlideUp 0.4s 0.1s ease both;
}
.videos-hero-title em { font-style: italic; color: #FF9A56; }

.videos-hero-sub {
  font-size: 16px; color: rgba(255,255,255,0.6);
  line-height: 1.7; max-width: 540px; margin: 0 auto 36px;
  animation: fadeSlideUp 0.4s 0.2s ease both;
}

/* ── SEARCH BAR ── */
.search-wrap {
  animation: fadeSlideUp 0.4s 0.25s ease both;
  max-width: 560px; margin: 0 auto;
}
.search-bar {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 4px 4px 4px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--orange); }
.search-icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.search-input {
  flex: 1; border: none; outline: none;
  font-size: 15px; font-family: 'DM Sans', sans-serif;
  color: var(--text); background: transparent;
  padding: 10px 0;
}
.search-input::placeholder { color: var(--text-muted); }
.search-clear {
  background: transparent; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 14px;
  padding: 4px 8px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  display: none;
}
.search-clear.visible { display: block; }
.search-clear:hover { color: var(--text); background: var(--cream); }

/* ── FILTER SECTION ── */
.filter-section {
  background: var(--cream);
  padding: 28px 60px 0;
  position: sticky;
  top: 64px;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}
.filter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-bottom: 20px;
}
.filter-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.filter-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13.5px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-muted); cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-tab:hover { border-color: var(--orange); color: var(--orange); }
.filter-tab.active {
  background: var(--navy); color: #fff;
  border-color: var(--navy);
}
.tab-icon { font-size: 14px; }
.tab-count {
  background: rgba(255,255,255,0.2);
  border-radius: 100px; padding: 1px 7px;
  font-size: 11px; font-weight: 600; min-width: 20px; text-align: center;
}
.filter-tab:not(.active) .tab-count {
  background: var(--cream); color: var(--text-muted);
}
.filter-meta { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.filter-meta strong { color: var(--text); }

/* ── VIDEO GRID ── */
.videos-section {
  padding: 48px 60px 64px;
  background: var(--cream);
  min-height: 400px;
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── VIDEO CARD ── */
.video-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: cardFadeIn 0.4s ease both;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.1); }
.video-card.hidden { display: none; }

/* Thumbnail */
.video-thumb {
  position: relative;
  height: 170px;
  cursor: pointer;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.15);
  transition: background 0.2s;
}
.video-thumb:hover .thumb-overlay { background: rgba(0,0,0,0.05); }
.thumb-emoji {
  font-size: 52px;
  position: absolute; opacity: 0.25;
  user-select: none;
}
.thumb-play {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.thumb-play svg { width: 20px; height: 20px; fill: var(--navy); margin-left: 3px; }
.video-thumb:hover .thumb-play { transform: scale(1.1); background: var(--orange); }
.video-thumb:hover .thumb-play svg { fill: #fff; }
.thumb-duration {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  background: rgba(0,0,0,0.7); color: #fff;
  font-size: 11.5px; font-weight: 600;
  padding: 3px 8px; border-radius: 5px;
  letter-spacing: 0.02em;
}

/* Card body */
.video-info { padding: 16px; }
.video-cat-tag {
  display: inline-block;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px;
  margin-bottom: 8px;
}
.cat-career    { background: #EFF6FF; color: #1D4ED8; }
.cat-exam      { background: #F0FDF4; color: #16A34A; }
.cat-success   { background: #FFF7ED; color: #C2410C; }
.cat-motivation { background: #FDF4FF; color: #7E22CE; }

.video-title {
  font-family: 'Fraunces', serif;
  font-size: 15px; font-weight: 600;
  color: var(--navy); line-height: 1.4;
  margin-bottom: 8px; letter-spacing: -0.2px;
  display: -webkit-box; -line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-desc {
  font-size: 12.5px; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box; -line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px;
}
.vm-author {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--text);
}
.vm-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vm-views, .vm-date {
  font-size: 11.5px; color: var(--text-muted);
  margin-left: auto;
}
.vm-date { margin-left: 0; }

/* ── NO RESULTS ── */
.no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.no-results.visible { display: block; }
.no-results-icon { font-size: 48px; margin-bottom: 16px; }
.no-results h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px; color: var(--navy); margin-bottom: 8px;
}
.no-results p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.no-results-btn {
  background: var(--orange); color: #fff; border: none;
  padding: 11px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: background 0.2s;
}
.no-results-btn:hover { background: var(--orange-dark); }

/* ── SUBSCRIBE STRIP ── */
.subscribe-strip {
  background: var(--navy);
  padding: 36px 60px;
}
.subscribe-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.subscribe-left { display: flex; align-items: center; gap: 16px; }
.subscribe-icon { font-size: 32px; }
.subscribe-title { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.subscribe-sub   { font-size: 13px; color: rgba(255,255,255,0.5); }
.subscribe-right { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-input {
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: #fff; border-radius: 9px;
  padding: 10px 16px; font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none; min-width: 230px;
  transition: border-color 0.2s;
}
.subscribe-input::placeholder { color: rgba(255,255,255,0.4); }
.subscribe-input:focus { border-color: var(--orange); }
.subscribe-btn {
  background: var(--orange); color: #fff; border: none;
  padding: 10px 22px; border-radius: 9px;
  font-size: 14px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.subscribe-btn:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* ── VIDEO PLAYER MODAL ── */
.video-modal-box {
  background: var(--navy);
  border-radius: 20px;
  width: 100%; max-width: 800px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
  animation: modalPop 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
  margin: auto;
}
.video-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 24px 16px; gap: 12px;
}
.video-modal-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #FF9A56; margin-bottom: 5px;
}
.video-modal-title {
  font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600;
  color: #fff; line-height: 1.35; letter-spacing: -0.3px;
}
.video-modal-box .modal-close {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7); flex-shrink: 0;
}
.video-modal-box .modal-close:hover {
  background: rgba(255,255,255,0.2); color: #fff; border-color: rgba(255,255,255,0.3);
}
.video-embed-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  background: #000;
}
.video-embed-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: none;
}
.video-modal-footer {
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.video-modal-cta-text { font-size: 13.5px; color: rgba(255,255,255,0.55); }
.video-modal-cta-btn {
  background: var(--orange); color: #fff; border: none;
  padding: 9px 20px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.video-modal-cta-btn:hover { background: var(--orange-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .videos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .videos-hero { padding: 56px 24px 88px; }
  .videos-hero-title { font-size: 38px; }
  .filter-section { padding: 20px 24px 0; position: static; }
  .videos-section { padding: 36px 24px 48px; }
  .videos-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .subscribe-strip { padding: 32px 24px; }
  .subscribe-inner { flex-direction: column; align-items: flex-start; }
  .subscribe-right { width: 100%; }
  .subscribe-input { flex: 1; min-width: 0; }
}
@media (max-width: 520px) {
  .videos-grid { grid-template-columns: 1fr; }
  .filter-tabs { gap: 4px; }
  .filter-tab { padding: 7px 12px; font-size: 12.5px; }
  .video-modal-box { border-radius: 14px; }
  .video-modal-footer { flex-direction: column; align-items: flex-start; }
}
