/* ===================================================== */
/* SCROLL CARD GRID — CLEAN & STABLE                     */
/* Applies only where .scroll-grid is used               */
/* ===================================================== */

.scroll-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 32px;
  justify-items: center;
}

/* Tablet */
@media (max-width: 1024px) {
  .scroll-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 600px) {
  .scroll-grid {
    grid-template-columns: 1fr;
  }
}

/* Ensure cards remain centered */
.scroll-grid .scroll-card {
  width: 100%;
}

/* ================= JV HEADER : FINAL CLEAN ================= */

#jv-header {
  background: #f4f0e8;
  padding: 16px 16px 18px;
  font-family: Georgia, serif;
  text-align: center;
  position: relative;
  z-index: 100;
}

#jv-header .jv-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

/* ===== TITLE ===== */
#jv-header .jv-title {
  font-size: clamp(34px, 4.7vw, 60px);
  line-height: 1;
  margin: 0;
  color: #4b3c78;
  font-weight: 700;
}

#jv-header .jv-subtitle {
  margin: 8px 0 14px;
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 22px);
  line-height: 1.2;
  color: #9a5a27;
}

/* ===== NAV ===== */
#jv-header .jv-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 10px;
  margin-bottom: 12px;
}

/* ===== PILLS ===== */
#jv-header .jv-pill {
  background: #2f2a23;
  color: #fff;
  padding: 0 20px;
  min-height: 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: Georgia, serif;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  transition: background .22s ease, color .22s ease, transform .18s ease;
}

#jv-header .jv-pill:hover {
  background: #4b3c78;
  color: #f9e55d;
  transform: translateY(-1px);
}

#jv-header .jv-pill-btn {
  border: none;
  outline: none;
}

/* ===== GOLD ===== */
#jv-header .jv-gold {
  background: #bca95a;
  color: #2f2a23;
}

#jv-header .jv-gold:hover {
  background: #a8944d;
  color: #fff;
}

/* ===== DROPDOWN ===== */
#jv-header .jv-dropdown {
  position: relative;
}

#jv-header .jv-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
}

#jv-header .jv-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: #2f2a23;
  border-radius: 12px;
  min-width: 210px;
  padding: 6px 0;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  text-align: left;
  z-index: 999;
}

#jv-header .jv-menu a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
}

#jv-header .jv-menu a:hover {
  background: #4b3c78;
  color: #f9e55d;
}

#jv-header .jv-dropdown:hover .jv-menu,
#jv-header .jv-dropdown:focus-within .jv-menu,
#jv-header .jv-menu:hover {
  display: block;
}

/* ===== SEARCH ===== */
#jv-header .jv-search {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f7f6;
  border-radius: 999px;
  padding: 0 20px;
  max-width: 300px;
  min-height: 42px;
  box-sizing: border-box;
}

#jv-header .jv-search span {
  color: #908b84;
  font-size: 15px;
  line-height: 1;
}

#jv-header .jv-search input {
  border: none;
  background: transparent;
  color: #8a623d;
  outline: none;
  width: 100%;
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.2;
}

#jv-header .jv-search input::placeholder {
  color: #8a623d;
  opacity: 1;
}

/* ===== SLOW SAFE ENTRANCE ===== */
@media (prefers-reduced-motion: reduce) {
  #jv-header .jv-nav > a.jv-pill,
  #jv-header .jv-nav > .jv-dropdown > .jv-pill,
  #jv-header .jv-search {
    animation: none !important;
  }
}

@keyframes jvFromRight {
  from { transform: translateX(48px); }
  to { transform: translateX(0); }
}

@keyframes jvFromTop {
  from { transform: translateY(-38px); }
  to { transform: translateY(0); }
}

@keyframes jvFromBottom {
  from { transform: translateY(38px); }
  to { transform: translateY(0); }
}

@keyframes jvFromLeft {
  from { transform: translateX(-48px); }
  to { transform: translateX(0); }
}

@keyframes jvSearchUp {
  from { transform: translateY(18px); }
  to { transform: translateY(0); }
}

#jv-header .jv-nav > a.jv-pill:nth-of-type(1) {
  animation: jvFromRight 1.8s ease-out both;
}

#jv-header .jv-nav > .jv-dropdown > .jv-pill {
  animation: jvFromTop 1.8s ease-out both;
}

#jv-header .jv-nav > a.jv-pill:nth-of-type(2) {
  animation: jvFromBottom 1.8s ease-out both;
}

#jv-header .jv-nav > a.jv-pill:nth-of-type(3) {
  animation: jvFromLeft 1.8s ease-out both;
}

#jv-header .jv-nav > a.jv-pill:nth-of-type(4) {
  animation: jvFromRight 1.8s ease-out both;
}

#jv-header .jv-nav > a.jv-pill:nth-of-type(5) {
  animation: jvFromTop 1.8s ease-out both;
}

#jv-header .jv-nav > a.jv-pill.jv-gold:nth-last-of-type(2) {
  animation: jvFromBottom 1.8s ease-out both;
}

#jv-header .jv-nav > a.jv-pill.jv-gold:last-of-type {
  animation: jvFromLeft 1.8s ease-out both;
}

#jv-header .jv-search {
  animation: jvSearchUp 1.5s ease-out both;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  #jv-header {
    padding: 14px 12px 16px;
  }

  #jv-header .jv-title {
    font-size: clamp(30px, 9vw, 46px);
  }

  #jv-header .jv-subtitle {
    font-size: 14px;
    margin: 8px 0 12px;
  }

  #jv-header .jv-nav {
    gap: 8px;
    row-gap: 8px;
    margin-bottom: 10px;
  }

  #jv-header .jv-pill {
    min-height: 34px;
    padding: 0 16px;
    font-size: 14px;
  }

  #jv-header .jv-search {
    max-width: 100%;
    min-height: 40px;
    padding: 0 16px;
  }

  #jv-header .jv-menu {
    position: static;
    transform: none;
    margin-top: 8px;
  }

  #jv-header .jv-dropdown::after {
    display: none;
  }
}