/* Video pages: My Concepts (tabs) and Maargadarsi Videos */
.vids { display: grid; gap: 1.5rem; }
.vid-intro { color: var(--muted); margin: 0 0 1rem; }
.vid-h2 { display: flex; align-items: center; gap: .5rem; font-family: "Poppins", sans-serif; font-weight: 700; color: var(--navy); font-size: 1.2rem; margin: 0 0 .9rem; }
.vid-count { background: var(--sky); color: var(--blue); font-family: "Inter", sans-serif; font-size: .8rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; }

/* tabs */
.vid-tabs { display: flex; flex-wrap: nowrap; gap: .4rem; overflow-x: auto; padding: .35rem; background: var(--sky); border-radius: 999px; scrollbar-width: none; }
.vid-tabs::-webkit-scrollbar { display: none; }
.vid-tabs .nav-link { display: flex; align-items: center; gap: .45rem; white-space: nowrap; border: 0; border-radius: 999px; padding: .55rem 1.05rem;
  color: var(--navy); font-weight: 600; font-size: .95rem; background: transparent; transition: background .2s, color .2s; }
.vid-tabs .nav-link:hover { background: rgba(255, 255, 255, .7); }
.vid-tabs .nav-link.active { background: var(--navy); color: #fff; box-shadow: 0 4px 12px rgba(11, 31, 77, .25); }
.vid-tabs .nav-link i { font-size: 1rem; }
.tab-content > .tab-pane { padding-top: 1.5rem; }
.tab-content > .tab-pane:focus, .tab-content > .tab-pane:focus-visible { outline: 0; }
/* tabs share the bar's width and never get cut off: they shrink a little, then wrap to a second line if needed
   (any screen size or browser zoom); phones keep the sideways-scrolling bar */
.vids { container-type: inline-size; }
@media (min-width: 576px) {
  .vid-tabs { flex-wrap: wrap; justify-content: center; overflow: visible; border-radius: 1.4rem; gap: .25rem; }
  .vid-tabs .nav-item { flex: 1 1 auto; }
  .vid-tabs .nav-link { width: 100%; justify-content: center; padding: .55rem .6rem; font-size: .86rem; }
}
/* narrower content area (smaller laptops, 100%+ zoom): drop the tab icons so the five labels still fit on one line */
@container (max-width: 919.98px) { .vid-tabs .nav-link i { display: none; } .vid-tabs .nav-link { padding: .55rem .5rem; } }
@media (max-width: 767.98px) { .vid-tabs { border-radius: 1rem; } }

/* video cards (thumbnail) */
.vid-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden;
  color: var(--navy); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.vid-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); color: var(--navy); }
.vid-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0b1f4d; overflow: hidden; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vid-card:hover .vid-thumb img { transform: scale(1.04); }
.vid-thumb.is-contain img { object-fit: contain; }   /* wide banners: show the whole image on the navy background */
.vid-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 0, 0, .9); color: #fff; font-size: 1.7rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); transition: transform .2s; }
.vid-card:hover .vid-play { transform: translate(-50%, -50%) scale(1.1); }
.vid-title { flex: 1; padding: .8rem 1rem; font-weight: 600; line-height: 1.4; }

/* video link lists */
.vid-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .5rem; }
.vid-link { display: flex; align-items: flex-start; gap: .6rem; height: 100%; padding: .6rem .85rem; background: #fff; border: 1px solid var(--line); border-radius: .75rem;
  color: var(--ink); text-decoration: none; font-size: .93rem; line-height: 1.4; transition: border-color .2s, background .2s; }
.vid-link i { color: #e11d48; font-size: 1.1rem; line-height: 1.3; flex-shrink: 0; }
.vid-link:hover { border-color: var(--blue); background: var(--sky); color: var(--navy); }
.vid-group + .vid-group { margin-top: 1.75rem; }
.vid-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.vid-search { position: relative; flex: 0 1 18rem; }
.vid-search i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.vid-search input { width: 100%; padding: .55rem 1rem .55rem 2.4rem; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; background: #fff; }
.vid-search input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15); }
.vid-group:not(:has([data-gallery-item]:not([hidden]))) { display: none; }
.vid-empty { text-align: center; color: var(--muted); padding: 2rem 0; margin: 0; }

/* people / speakers */
.person, .speaker { display: grid; grid-template-columns: 9rem 1fr; gap: 1.1rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; height: 100%; }
.person img, .speaker img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .75rem; background: var(--sky); }
.person h3, .speaker h2 { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--navy); font-size: 1.1rem; margin: 0 0 .35rem; }
.person p, .speaker p { margin: 0 0 .7rem; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.person-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.person-links a { font-size: .85rem; font-weight: 600; color: var(--blue); background: var(--sky); padding: .25rem .7rem; border-radius: 999px; text-decoration: none; }
.person-links a:hover { background: var(--navy); color: #fff; }
.person-links a i { font-size: .7rem; }
.person-banner { position: relative; display: block; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow); }
.person-banner img { display: block; width: 100%; aspect-ratio: 640 / 215; object-fit: cover; }
.person-banner span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .9rem .6rem; color: #fff; font-weight: 700;
  background: linear-gradient(transparent, rgba(5, 15, 40, .85)); }
.part-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.part-pills a { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; background: var(--navy); color: #fff;
  font-weight: 600; font-size: .85rem; text-decoration: none; transition: background .2s; }
.part-pills a:hover { background: #e11d48; color: #fff; }
@media (max-width: 575.98px) { .person, .speaker { grid-template-columns: 5.5rem 1fr; } }

/* Great Videos link card */
.great-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border-radius: 1rem; text-decoration: none;
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; transition: transform .2s, box-shadow .2s; }
.great-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: #fff; }
.great-icon { width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-size: 1.7rem; color: #ffd27a; flex-shrink: 0; }
.great-card strong { display: block; font-family: "Poppins", sans-serif; font-size: 1.15rem; margin-bottom: .2rem; }
.great-card span span { display: block; color: rgba(255, 255, 255, .8); font-size: .92rem; }
.great-card .go { margin-left: auto; font-size: 1.3rem; color: #ffd27a; }
.vid-back { justify-self: start; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
