/**
 * JobVisitors — UI Refactor Layer
 * Mobile-first restyle for navbar, blog cards, single post,
 * mentor cards, and mentor single page.
 *
 * Loaded after main.css / polish.css / content.css so these
 * declarations win without changing existing markup behaviour.
 *
 * @package JobVisitors
 */

/* ==========================================================================
   1. Navbar — mobile-first
   ========================================================================== */

.jv-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background-color 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.jv-navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.jv-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

/* Brand */
.jv-navbar__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.jv-navbar__logo-wrap .custom-logo-link,
.jv-navbar__logo-wrap {
  display: inline-flex;
  align-items: center;
}

.jv-navbar__brand img,
.jv-navbar__logo-wrap img,
.jv-mobile-nav__brand img {
  width: auto;
  max-height: 36px;
  height: auto;
  display: block;
}

/* Hide dark logo permanently (light-mode-only theme). */
.jv-navbar__brand .logo-dark,
.jv-mobile-nav__brand .logo-dark { display: none; }

/* Right-side actions */
.jv-navbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Auth buttons — show compact on mobile.
   The legacy main.css hides these via `.navbar-actions .jv-auth-actions > .btn`
   on <768px; we override that here so Login / Sign Up stay visible on mobile. */
.jv-navbar__auth {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.jv-navbar__auth .btn,
.jv-navbar__auth a.btn,
.navbar-actions > .btn,
.navbar-actions .jv-auth-actions > .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

/* Very small screens: drop the secondary (ghost) auth button to keep
   the right-hand cluster from overflowing — primary CTA + hamburger only. */
@media (max-width: 380px) {
  .jv-navbar__auth .btn-ghost,
  .jv-navbar__auth a.btn-ghost {
    display: none !important;
  }
  .jv-navbar__auth .btn,
  .jv-navbar__auth a.btn {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
}

.jv-navbar__auth .btn-ghost {
  background: transparent;
  color: var(--text-primary);
}
.jv-navbar__auth .btn-ghost:hover {
  background: var(--brand-primary-50);
  color: var(--brand-primary-600);
}

.jv-navbar__auth .btn-primary {
  background: var(--brand-primary-500);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(30, 76, 176, 0.55);
}
.jv-navbar__auth .btn-primary:hover {
  background: var(--brand-primary-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -6px rgba(30, 76, 176, 0.6);
}

/* Hamburger toggle */
.jv-navbar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  transition: background-color 180ms ease, border-color 180ms ease;
}
.jv-navbar__toggle:hover {
  background: var(--brand-primary-50);
  border-color: rgba(30, 76, 176, 0.18);
}

.jv-navbar__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 240ms ease, opacity 200ms ease, background-color 180ms ease;
  transform-origin: center;
}

/* Animate to X when open */
.jv-navbar__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.jv-navbar__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}
.jv-navbar__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hide desktop nav on mobile */
.jv-navbar__nav { display: none; }

/* Tablet+ */
@media (min-width: 768px) {
  .jv-navbar { height: 72px; }
  .jv-navbar__brand img,
  .jv-navbar__logo-wrap img { max-height: 40px; }

  .jv-navbar__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .jv-navbar__toggle { display: none; }

  .jv-navbar__auth .btn,
  .jv-navbar__auth a.btn { height: 40px; padding: 0 18px; font-size: 14px; }
}

/* Note: pages that don't use `.jv-page-shell` or `.jv-page-header` need
   their own top offset to clear the fixed navbar (.jv-post / .jv-mentor-single
   below handle this). We deliberately do NOT push the body, since several
   templates already wrap content in `.jv-page-shell` which provides offset. */

/* ==========================================================================
   2. Mobile slide-in menu
   ========================================================================== */

.jv-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.jv-mobile-nav.active {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition: opacity 220ms ease, visibility 0s linear 0s;
}

.jv-mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 220ms ease;
}
.jv-mobile-nav.active .jv-mobile-nav__backdrop { opacity: 1; }

.jv-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 380px);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px -10px rgba(15, 23, 42, 0.25);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0.21, 1);
  padding: 18px 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.jv-mobile-nav.active .jv-mobile-nav__panel {
  transform: translateX(0);
}

.jv-mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.jv-mobile-nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}
.jv-mobile-nav__close:hover {
  background: var(--brand-primary-50);
  color: var(--brand-primary-600);
}

/* Menu links */
.jv-mobile-nav__links { flex: 1; }

.jv-mobile-nav__links,
.jv-mobile-nav__links nav,
.jv-mobile-nav__menu,
.jv-mobile-nav__links ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jv-mobile-nav__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 12px;
  border-bottom: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.jv-mobile-nav__links a .jv-mobile-nav__chevron {
  color: var(--text-light);
  transition: transform 180ms ease, color 180ms ease;
}

.jv-mobile-nav__links a:hover,
.jv-mobile-nav__links a:focus-visible {
  background: var(--brand-primary-50);
  color: var(--brand-primary-600);
  outline: none;
}
.jv-mobile-nav__links a:hover .jv-mobile-nav__chevron {
  color: var(--brand-primary-500);
  transform: translateX(3px);
}

.jv-mobile-nav__links a.is-active,
.jv-mobile-nav__links .current-menu-item > a,
.jv-mobile-nav__links .current_page_item > a {
  background: var(--brand-primary-500);
  color: #fff;
}
.jv-mobile-nav__links a.is-active .jv-mobile-nav__chevron,
.jv-mobile-nav__links .current-menu-item > a .jv-mobile-nav__chevron {
  color: #fff;
}

/* Auth actions inside drawer */
.jv-mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.jv-mobile-auth-actions { display: flex; flex-direction: column; gap: 10px; }
.jv-mobile-auth-actions .btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}

body.nav-open { overflow: hidden; }

/* Hide drawer entirely on desktop */
@media (min-width: 768px) {
  .jv-mobile-nav,
  .jv-mobile-nav.active { display: none; }
}

/* ==========================================================================
   3. Blog cards (consistent with homepage)
   ========================================================================== */

.jv-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 16px 0 60px;
}

@media (min-width: 640px) {
  .jv-blog-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (min-width: 1024px) {
  .jv-blog-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}

.jv-blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.jv-blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 76, 176, 0.18);
  box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.18);
}

.jv-blog-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px;
  overflow: hidden;
}

.jv-blog-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  height: auto;
  background: linear-gradient(135deg, var(--brand-primary-50) 0%, var(--brand-secondary-50) 100%);
  overflow: hidden;
}

.jv-blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.jv-blog-card:hover .jv-blog-card__thumb img {
  transform: scale(1.05);
}

.jv-blog-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--brand-primary-400);
}

.jv-blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
  flex: 1;
}

.jv-blog-card__body .jv-tag {
  align-self: flex-start;
  margin-bottom: 2px;
}

.jv-blog-card__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jv-blog-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jv-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 8px;
}

.jv-blog-card__more {
  position: relative;
  z-index: 3;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary-500);
  margin-top: 6px;
  transition: transform 200ms ease, color 200ms ease;
}
.jv-blog-card:hover .jv-blog-card__more {
  color: var(--brand-primary-600);
  transform: translateX(3px);
}

/* Blog page header / category pills */
.jv-blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 8px;
}

/* ==========================================================================
   4. Single Post (blog details)
   ========================================================================== */

.jv-post {
  padding-top: calc(64px + 24px);
  padding-bottom: 80px;
}
@media (min-width: 768px) {
  .jv-post { padding-top: calc(72px + 32px); }
}

.jv-post__header {
  padding: 16px 0 24px;
  text-align: center;
}

.jv-post__header-inner {
  max-width: 760px;
  margin: 0 auto;
}

.jv-post__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 18px;
  transition: color 180ms ease, transform 180ms ease;
}
.jv-post__back:hover { color: var(--brand-primary-500); transform: translateX(-2px); }

.jv-post__category {
  display: inline-flex;
  margin-bottom: 18px;
}

.jv-post__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 18px;
}

.jv-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.jv-post__author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}
.jv-post__author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.jv-post__author strong {
  color: var(--text-primary);
  font-weight: 600;
}
.jv-post__meta-dot { color: var(--text-light); }

.jv-post__hero {
  margin: 8px 0 36px;
}
.jv-post__hero-frame {
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-primary);
  aspect-ratio: 16 / 9;
}
.jv-post__hero-img,
.jv-post__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jv-post__body {
  max-width: 760px;
}

/* Prose typography (article body) */
.jv-prose {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.78;
  color: var(--text-secondary);
}
.jv-prose > * + * { margin-top: 1.1em; }
.jv-prose p { margin: 0 0 1.1em; }
.jv-prose h2,
.jv-prose h3,
.jv-prose h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.3;
  margin: 1.8em 0 0.6em;
}
.jv-prose h2 { font-size: 28px; font-weight: 700; }
.jv-prose h3 { font-size: 22px; font-weight: 600; }
.jv-prose h4 { font-size: 18px; font-weight: 600; }
.jv-prose ul,
.jv-prose ol {
  padding-left: 22px;
  margin: 0 0 1.1em;
}
.jv-prose li { margin-bottom: 0.5em; }
.jv-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 1.4em 0;
  display: block;
}
.jv-prose blockquote {
  border-left: 4px solid var(--brand-primary-500);
  background: var(--brand-primary-50);
  padding: 18px 22px;
  border-radius: 0 14px 14px 0;
  font-style: italic;
  color: var(--text-primary);
  margin: 1.6em 0;
}
.jv-prose a {
  color: var(--brand-primary-500);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.jv-prose a:hover { color: var(--brand-primary-600); }
.jv-prose code {
  background: var(--bg-primary);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.92em;
  font-family: 'Space Grotesk', monospace;
}
.jv-prose pre {
  background: #0F172A;
  color: #E2E8F0;
  padding: 20px;
  border-radius: 16px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
}
.jv-prose pre code { background: transparent; padding: 0; color: inherit; }

/* Share bar */
.jv-share-bar,
.jv-post__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 22px 0;
  margin: 40px 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.jv-share-bar__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}
.jv-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jv-share-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  text-decoration: none;
  transition: all 180ms ease;
}
.jv-share-btn:hover {
  background: var(--brand-primary-500);
  color: #fff;
  border-color: var(--brand-primary-500);
  transform: translateY(-1px);
}

/* Author bio */
.jv-author-bio,
.jv-post__author-bio {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--brand-primary-50), #fff);
  border: 1px solid rgba(30, 76, 176, 0.12);
  border-radius: 20px;
  padding: 24px;
  margin-top: 32px;
}
.jv-author-bio__avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.jv-author-bio__info { flex: 1; min-width: 0; }
.jv-author-bio__eyebrow {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.jv-author-bio__info h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.jv-author-bio__info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Related */
.jv-related-posts {
  margin-top: 56px;
}
.jv-related-posts__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.jv-related-posts__all {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary-500);
  text-decoration: none;
}
.jv-related-posts__all:hover { color: var(--brand-primary-600); }

@media (max-width: 640px) {
  .jv-post__header { padding: 24px 0 16px; }
  .jv-post__hero { margin: 4px 0 24px; }
  .jv-post__hero-frame { border-radius: 16px; }
  .jv-prose { font-size: 16px; line-height: 1.72; }
  .jv-prose h2 { font-size: 24px; }
  .jv-prose h3 { font-size: 19px; }
  .jv-author-bio,
  .jv-post__author-bio { flex-direction: column; align-items: flex-start; padding: 20px; }
}

/* ==========================================================================
   5. Mentor cards
   ========================================================================== */

.jv-mentor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 8px 0;
}
@media (min-width: 640px) {
  .jv-mentor-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (min-width: 1024px) {
  .jv-mentor-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}

.jv-mentor-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  padding: 22px;
  text-align: left;
  overflow: hidden;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.jv-mentor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(135deg, var(--brand-primary-50) 0%, var(--brand-secondary-50) 100%);
  z-index: 0;
}

.jv-mentor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 76, 176, 0.18);
  box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.18);
}

.jv-mentor-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.jv-mentor-card__avatar,
.jv-mentor-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, var(--brand-primary-500), var(--brand-secondary-500));
  display: flex;
  align-items: center;
  justify-content: center;
}
.jv-mentor-card__avatar img,
.jv-mentor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jv-mentor-card__avatar--letter {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.02em;
}

.jv-mentor-card__rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: 0 4px 10px -6px rgba(15, 23, 42, 0.18);
}
.jv-mentor-card__rating-badge svg { color: var(--brand-secondary-500); }
.jv-mentor-card__rating-badge strong { font-family: var(--font-heading); font-weight: 600; }

.jv-mentor-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jv-mentor-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0;
}

.jv-mentor-card__role {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.jv-mentor-card__chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jv-mentor-card__chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.jv-mentor-card__chip--primary {
  background: var(--brand-primary-50);
  color: var(--brand-primary-600);
  border-color: rgba(30, 76, 176, 0.18);
}

.jv-mentor-card__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
  margin: 0;
  background: var(--bg-primary);
  border-radius: 14px;
}
.jv-mentor-card__stats:has(.jv-mentor-card__stat:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.jv-mentor-card__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.jv-mentor-card__stat dt,
.jv-mentor-card__stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
}
.jv-mentor-card__stat dd,
.jv-mentor-card__stat strong {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.jv-mentor-card__cta {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   6. Mentor single page
   ========================================================================== */

.jv-mentor-single {
  padding: calc(64px + 24px) 0 80px;
}
@media (min-width: 768px) {
  .jv-mentor-single { padding-top: calc(72px + 32px); }
}

.jv-mentor-single__back--top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 18px;
  transition: color 180ms ease, transform 180ms ease;
}
.jv-mentor-single__back--top:hover { color: var(--brand-primary-500); transform: translateX(-2px); }

.jv-mentor-single__hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 32px;
}
@media (min-width: 1024px) {
  .jv-mentor-single__hero {
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
  }
}

.jv-mentor-single__profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.jv-mentor-single__profile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(135deg, var(--brand-primary-50) 0%, var(--brand-secondary-50) 100%);
  z-index: 0;
}

@media (min-width: 640px) {
  .jv-mentor-single__profile {
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
  }
}

.jv-mentor-single__avatar-wrap { position: relative; z-index: 1; flex-shrink: 0; }

.jv-mentor-single__avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.22);
  background: linear-gradient(135deg, var(--brand-primary-500), var(--brand-secondary-500));
  display: flex;
  align-items: center;
  justify-content: center;
}
.jv-mentor-single__avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.jv-mentor-single__avatar--letter {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 44px;
}

.jv-mentor-single__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.jv-mentor-single__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 4px 0 0;
}

.jv-mentor-single__role {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

.jv-mentor-single__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.jv-mentor-single__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
  background: var(--bg-primary);
  border-radius: 14px;
  margin-top: 4px;
}
.jv-mentor-single__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.jv-mentor-single__stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
}
.jv-mentor-single__stat strong {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.jv-mentor-single__star { color: var(--brand-secondary-500); }

.jv-mentor-single__hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.jv-mentor-single__hero-cta .jv-btn { flex: 1 1 auto; min-width: 140px; }

/* Sidebar panel (Quick Snapshot) */
.jv-mentor-single__sidebar { position: relative; }
.jv-mentor-single__panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 88px;
}
.jv-mentor-single__panel h2 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.jv-mentor-single__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jv-mentor-single__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
  font-size: 14px;
}
.jv-mentor-single__list li:last-child { border-bottom: none; }
.jv-mentor-single__list span { color: var(--text-muted); }
.jv-mentor-single__list strong {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: right;
}
.jv-mentor-single__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Sections / content */
.jv-mentor-single__layout { margin-top: 8px; }
.jv-mentor-single__section {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 22px;
}
.jv-mentor-single__section h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px;
}
.jv-mentor-single__prose { color: var(--text-secondary); }

@media (max-width: 640px) {
  .jv-mentor-single__profile { padding: 22px; }
  .jv-mentor-single__avatar { width: 104px; height: 104px; }
  .jv-mentor-single__section { padding: 22px; }
  .jv-mentor-single__panel { position: static; }
}

/* ==========================================================================
   7. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .jv-navbar,
  .jv-navbar__toggle span,
  .jv-mobile-nav,
  .jv-mobile-nav__panel,
  .jv-mobile-nav__backdrop,
  .jv-blog-card,
  .jv-blog-card__thumb img,
  .jv-mentor-card,
  .jv-mc,
  .jv-share-btn,
  .jv-blog-card__more {
    transition: none !important;
  }
}

/* ==========================================================================
   8. Mentor Marketplace — card v2 (.jv-mc)
   ========================================================================== */

.jv-mentor-archive { padding-bottom: 80px; }

.jv-mentor-archive__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0 12px;
}

.jv-mentor-archive__count {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.jv-mentor-archive__count strong { color: var(--text-primary); font-weight: 600; }

.jv-mentor-archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 8px 0;
}
@media (min-width: 640px) {
  .jv-mentor-archive__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (min-width: 1024px) {
  .jv-mentor-archive__grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}

.jv-mentor-archive__cta-row {
  display: flex;
  justify-content: center;
  margin: 28px 0 8px;
}

/* ----- Card ----- */
.jv-mc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.jv-mc:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 76, 176, 0.22);
  box-shadow: 0 24px 48px -22px rgba(15, 23, 42, 0.22);
}

.jv-mc__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: linear-gradient(135deg, var(--brand-secondary-500), var(--brand-secondary-600));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 6px 14px -8px rgba(255, 159, 28, 0.7);
}
.jv-mc__badge svg { color: #fff; }

.jv-mc__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.jv-mc__avatar {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-primary-500), var(--brand-secondary-500));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.18);
  text-decoration: none;
}
.jv-mc__avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.jv-mc__avatar-initials {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.jv-mc__identity { min-width: 0; flex: 1; }

.jv-mc__name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jv-mc__name a {
  color: inherit;
  text-decoration: none;
}
.jv-mc__name a:hover { color: var(--brand-primary-500); }

.jv-mc__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}
.jv-mc__rating strong {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
}
.jv-mc__star { color: var(--brand-secondary-500); }
.jv-mc__reviews { color: var(--text-muted); font-size: 12px; }
.jv-mc__new {
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-primary-500);
  background: var(--brand-primary-50);
  padding: 3px 8px;
  border-radius: 999px;
}

.jv-mc__headline {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jv-mc__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.jv-mc__meta li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border-radius: 999px;
}
.jv-mc__meta svg { color: var(--brand-primary-500); flex-shrink: 0; }

.jv-mc__pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 14px;
  margin-top: auto;
  background: linear-gradient(135deg, var(--brand-primary-50) 0%, rgba(255, 159, 28, 0.06) 100%);
  border-radius: 14px;
  border: 1px dashed rgba(30, 76, 176, 0.18);
}

.jv-mc__price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.jv-mc__price-block--secondary {
  border-left: 1px dashed rgba(15, 23, 42, 0.12);
  padding-left: 14px;
  flex: 0 1 auto;
}

.jv-mc__price-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-muted);
}

.jv-mc__price-row {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.jv-mc__price-original {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.jv-mc__price-current {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.jv-mc__price-current--free {
  color: var(--brand-primary-500);
  font-size: 15px;
}

.jv-mc__price-discount {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--brand-secondary-500);
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.jv-mc__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.jv-mc__action {
  width: 100%;
  justify-content: center;
}

/* Compact action button reset (in case theme jv-btn--sm not defined) */
.jv-btn.jv-btn--sm {
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.jv-btn.jv-btn--ghost {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.jv-btn.jv-btn--ghost:hover {
  background: var(--brand-primary-50);
  color: var(--brand-primary-600);
  border-color: rgba(30, 76, 176, 0.2);
}

.jv-btn.jv-btn--primary {
  background: var(--brand-primary-500);
  color: #fff;
  border: 1px solid var(--brand-primary-500);
  box-shadow: 0 6px 14px -6px rgba(30, 76, 176, 0.5);
}
.jv-btn.jv-btn--primary:hover {
  background: var(--brand-primary-600);
  border-color: var(--brand-primary-600);
  transform: translateY(-1px);
}

@media (max-width: 380px) {
  .jv-mc__actions { grid-template-columns: 1fr; }
  .jv-mc__pricing { flex-direction: column; align-items: stretch; }
  .jv-mc__price-block--secondary { border-left: none; padding-left: 0; border-top: 1px dashed rgba(15, 23, 42, 0.12); padding-top: 10px; }
}

/* ==========================================================================
   9. Mentor Single — marketplace layout (.jv-ms)
   ========================================================================== */

.jv-ms__hero {
  margin-bottom: 28px;
}

.jv-ms__profile {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  padding: 28px;
  overflow: hidden;
}
.jv-ms__profile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 130px;
  background: linear-gradient(135deg, var(--brand-primary-50) 0%, rgba(255, 159, 28, 0.12) 100%);
  z-index: 0;
}

.jv-ms__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 14px;
}

.jv-ms__profile-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
@media (min-width: 640px) {
  .jv-ms__profile-row {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

.jv-ms__avatar {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-primary-500), var(--brand-secondary-500));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid #fff;
  box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.22);
}
.jv-ms__avatar img { width: 100%; height: 100%; object-fit: cover; }
.jv-ms__avatar-initials {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
}

.jv-ms__identity { min-width: 0; flex: 1; }

.jv-ms__name {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.jv-ms__headline {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}
.jv-ms__at { color: var(--text-muted); }

.jv-ms__rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.jv-ms__rating strong {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}
.jv-ms__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  color: #0A66C2;
  background: rgba(10, 102, 194, 0.08);
  margin-left: 4px;
  transition: background-color 160ms ease;
}
.jv-ms__linkedin:hover { background: rgba(10, 102, 194, 0.16); }

.jv-ms__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px;
  margin: 18px 0 0;
  background: var(--bg-primary);
  border-radius: 14px;
}
@media (min-width: 640px) { .jv-ms__stats { grid-template-columns: repeat(4, 1fr); } }

.jv-ms__stat { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.jv-ms__stat dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
}
.jv-ms__stat dd {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* ----- Layout: left = main, right = sidebar ----- */
.jv-ms__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 1024px) {
  .jv-ms__layout {
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
  }
}

.jv-ms__main { display: flex; flex-direction: column; gap: 14px; }

/* ----- Accordion ----- */
.jv-accordion {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 200ms ease;
}
.jv-accordion[open] { box-shadow: 0 12px 30px -20px rgba(15, 23, 42, 0.18); }

.jv-accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}
.jv-accordion__summary::-webkit-details-marker { display: none; }
.jv-accordion__summary:hover { background: var(--bg-primary); }

.jv-accordion__chevron {
  color: var(--text-muted);
  transition: transform 220ms ease, color 220ms ease;
}
.jv-accordion[open] .jv-accordion__chevron {
  transform: rotate(180deg);
  color: var(--brand-primary-500);
}

.jv-accordion__body {
  padding: 0 22px 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.jv-ms__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jv-ms__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.jv-ms__timeline-item {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--brand-primary-100);
}
.jv-ms__timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-primary-500);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--brand-primary-100);
}
.jv-ms__timeline-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.jv-ms__timeline-item span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.jv-ms__timeline-item em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.jv-ms__timeline-item p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ----- Sidebar / service cards ----- */
.jv-ms__sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 1024px) {
  .jv-ms__sidebar { position: sticky; top: 96px; }
}

.jv-service-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.jv-service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.2);
}

.jv-service-card--primary {
  border-color: rgba(30, 76, 176, 0.2);
  background: linear-gradient(180deg, rgba(30, 76, 176, 0.04) 0%, #fff 70%);
}

.jv-service-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.jv-service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand-primary-50);
  color: var(--brand-primary-600);
  flex-shrink: 0;
}
.jv-service-card--primary .jv-service-card__icon {
  background: var(--brand-primary-500);
  color: #fff;
}

.jv-service-card__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.jv-service-card__sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.jv-service-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-primary);
  border-radius: 12px;
}
.jv-service-card__price strong {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.jv-service-card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.jv-service-card__meta li {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 4px 10px;
  border-radius: 999px;
}

.jv-ms__sidebar-link {
  display: block;
  padding: 14px 18px;
  background: var(--bg-primary);
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-primary-600);
  text-decoration: none;
  text-align: center;
  transition: background-color 160ms ease, color 160ms ease;
}
.jv-ms__sidebar-link:hover {
  background: var(--brand-primary-50);
  color: var(--brand-primary-700);
}

/* ==========================================================================
   10. Booking modal
   ========================================================================== */

.jv-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.jv-booking-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 220ms ease, visibility 0s linear 0s;
}

.jv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
}

.jv-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 480px);
  max-height: 90vh;
  overflow-y: auto;
  transform: translate(-50%, -48%) scale(0.96);
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.4);
  transition: transform 240ms cubic-bezier(0.32, 0.72, 0.21, 1), opacity 220ms ease;
  opacity: 0;
}
.jv-booking-modal.is-open .jv-modal__panel {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.jv-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms ease;
}
.jv-modal__close:hover { background: var(--brand-primary-50); color: var(--brand-primary-600); }

.jv-booking-modal__header {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.jv-booking-modal__eyebrow {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-primary-600);
  background: var(--brand-primary-50);
  border-radius: 999px;
  margin-bottom: 8px;
}
.jv-booking-modal__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0 0 12px;
}
.jv-booking-modal__title span { color: var(--brand-primary-600); }

.jv-booking-modal__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 12px 14px;
}
.jv-booking-modal__price-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.jv-booking-modal__price strong {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.jv-booking-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jv-field__label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.jv-field__hint {
  font-size: 12px;
  color: var(--text-muted);
}
.jv-field input,
.jv-field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  color: var(--text-primary);
  resize: vertical;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.jv-field input:focus,
.jv-field textarea:focus {
  outline: none;
  border-color: var(--brand-primary-500);
  box-shadow: 0 0 0 4px rgba(30, 76, 176, 0.12);
}

.jv-booking-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}
.jv-booking-modal__actions .jv-btn { min-width: 130px; }

.jv-booking-modal__legal {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 4px 0 0;
}
.jv-booking-modal__legal a {
  color: var(--brand-primary-500);
  text-decoration: underline;
}

body.modal-open { overflow: hidden; }

@media (max-width: 480px) {
  .jv-modal__panel { padding: 22px; border-radius: 18px; }
  .jv-booking-modal__title { font-size: 19px; }
  .jv-booking-modal__actions { flex-direction: column-reverse; }
  .jv-booking-modal__actions .jv-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .jv-mc, .jv-service-card, .jv-modal__panel,
  .jv-accordion, .jv-accordion__chevron {
    transition: none !important;
  }
}

/* ==========================================================================
   11. Job listing card — mobile responsiveness fix
   ========================================================================== */

@media (max-width: 640px) {
  .jv-listing-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  .jv-listing-card__logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    align-self: flex-start;
  }
  .jv-listing-card__body {
    width: 100%;
    min-width: 0;
  }
  .jv-listing-card__title {
    font-size: 15px;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }
  .jv-listing-card__meta {
    gap: 10px 14px;
    margin-bottom: 10px;
    font-size: 12px;
  }
  .jv-listing-card__meta .jv-meta-item {
    font-size: 12px;
  }
  .jv-listing-card__tags {
    gap: 5px;
  }
  .jv-listing-card__tags .jv-tag {
    font-size: 11px;
    padding: 3px 9px;
  }
  /* Right-column actions: drop to a row beneath the body */
  .jv-listing-card__actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
  }
  .jv-listing-card__actions-bottom {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .jv-listing-card__apply {
    padding: 8px 18px;
    font-size: 13px;
    min-height: 36px;
    min-width: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .jv-listing-card__posted {
    font-size: 11px;
    color: var(--text-muted);
  }
  .jv-bookmark-btn {
    padding: 6px;
    min-width: 36px;
    min-height: 36px;
  }
}

@media (max-width: 380px) {
  .jv-listing-card { padding: 14px; }
  .jv-listing-card__title { font-size: 14px; }
}

/* ==========================================================================
   12. Dashboard — mobile navigation fix
   (sidebar was hidden under 1024px which broke tab switching)
   ========================================================================== */

@media (max-width: 1024px) {
  .jv-dash-layout {
    grid-template-columns: 1fr;
  }
  .jv-dash-sidebar {
    display: block !important;
    border-right: none;
    border-bottom: 1px solid var(--border, #e5e7eb);
    padding: 14px 16px;
    position: sticky;
    top: 64px;
    z-index: 10;
    background: var(--card, #fff);
  }
  .jv-dash-user {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    margin-bottom: 12px;
  }
  .jv-dash-user__avatar {
    width: 44px;
    height: 44px;
    margin: 0;
    flex-shrink: 0;
    font-size: 18px;
  }
  .jv-dash-user__name { font-size: 14px; margin: 0; }
  .jv-dash-user__email,
  .jv-dash-user__role { font-size: 12px; margin: 0; }
  .jv-profile-progress { display: none; }

  .jv-dash-nav {
    display: flex;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .jv-dash-nav::-webkit-scrollbar { height: 4px; }
  .jv-dash-nav__item {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
  }
  .jv-dash-sidebar > .jv-dash-nav + .jv-dash-nav {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: none !important;
  }
  .jv-dash-content { padding: 20px 16px; }
}

/* Stat cards on small screens */
@media (max-width: 640px) {
  .jv-dash-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .jv-dash-stat-card { padding: 14px; }
  .jv-dash-stat__num { font-size: 22px; }
  .jv-dash-stat__label { font-size: 11px; }
  .jv-dash-title { font-size: 20px !important; margin-bottom: 18px !important; }

  /* Forms */
  .jv-form-row { grid-template-columns: 1fr !important; gap: 10px !important; }
  .jv-form-group label { font-size: 13px; }
  .jv-input,
  .jv-select { font-size: 14px; padding: 10px 12px; }

  /* Employer listing rows */
  .jv-employer-listing-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
  }
  .jv-employer-listing-row__meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
  }
  /* Applicant cards */
  .jv-applicant-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }
  .jv-applicant-card__match { align-self: flex-start; }
  .jv-applicant-card__status .jv-select { width: 100%; }
}

@media (max-width: 480px) {
  .jv-dash-stats { grid-template-columns: 1fr !important; }
}
