/*
Theme Name:   Kadence Child - Valve Magazine
Theme URI:    https://valvemagazine.com
Description:  Kadence child theme for Valve Magazine
Author:       Nick
Template:     kadence
Version:      1.0.0
Text Domain:  kadence-child-valve
*/

/* ─── Brand Variables ─── */
:root {
  --vm-navy:      #00427e;
  --vm-red:       #da8319;
  --vm-white:     #ffffff;
  --vm-light:     #f4f5f7;
  --vm-mid:       #606a70;
  --vm-border:    #e2e4e8;
  --vm-max-width: 1290px;
}

/* ─── Ad Slots ─── */
.vm-ad-slot:empty,
.vm-ad-slot:has(> *:empty) { display: none; }
.vm-ad-slot--banner {
  display: block;
  margin-top: 48px;
}
.vm-ad-slot--sidebar {
  margin-bottom: 24px;
}

.valve-5-ad-sidebar > div {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}
.valve-5-ad-sidebar > div:last-child {
  margin-bottom: 0;
}

/* ─── Magazine Single ─── */
.vm-magazine-single {
  max-width: var(--vm-max-width);
  margin: 0 auto;
  padding: 40px 20px;
}
.vm-magazine-single__inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.vm-magazine-single__cover {
  flex: 0 0 320px;
}
.vm-magazine-single__cover-img {
  width: 100%;
  height: auto;
  display: block;
}
.vm-magazine-single__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vm-magazine-single__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vm-red);
  margin: 0;
}
.vm-magazine-single__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--vm-navy);
  line-height: 1.2;
  margin: 0;
}
.vm-magazine-single__btn {
  display: inline-block;
  background: var(--vm-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s;
  align-self: flex-start;
}
.vm-magazine-single__btn:hover {
  background: var(--vm-navy);
  color: #fff;
}
.vm-magazine-single__sidebar {
  flex: 0 0 300px;
}
@media ( max-width: 768px ) {
  .vm-magazine-single__inner { flex-direction: column; }
  .vm-magazine-single__cover { flex: none; width: 100%; max-width: 320px; }
  .vm-magazine-single__sidebar { flex: none; width: 100%; }
}

/* ─── Magazine Archive ─── */
.vm-archive-magazine {
  max-width: var(--vm-max-width);
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.vm-archive-magazine__content {
  flex: 1;
  min-width: 0;
}
.vm-archive-magazine__sidebar {
  flex: 0 0 300px;
}
.vm-archive-magazine__heading {
  font-size: 2rem;
  font-weight: 800;
  color: var(--vm-navy);
  margin: 0 0 40px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--vm-red);
}
.vm-archive-year {
  margin-bottom: 56px;
}
.vm-archive-year__heading {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vm-navy);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--vm-border);
}
.vm-archive-year__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.vm-issue-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s;
}
.vm-issue-card:hover {
  transform: translateY(-3px);
}
.vm-issue-card__cover {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: transparent;
}
.vm-issue-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
  transition: box-shadow 0.2s;
}
.vm-issue-card:hover .vm-issue-card__img {
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.vm-issue-card__no-img {
  width: 100%;
  height: 100%;
  background: var(--vm-light);
}
.vm-issue-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.vm-issue-card__season {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--vm-navy);
}
.vm-issue-card__year {
  font-size: 0.8rem;
  color: var(--vm-mid);
}
.vm-archive-magazine__empty {
  color: var(--vm-mid);
}
@media ( max-width: 900px ) {
  .vm-archive-magazine { flex-direction: column; }
  .vm-archive-magazine__sidebar { flex: none; width: 100%; }
  .vm-archive-year__grid { grid-template-columns: repeat(3, 1fr); }
}
@media ( max-width: 600px ) {
  .vm-archive-year__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── News Single ─── */
.vm-news-single {
  max-width: var(--vm-max-width);
  margin: 0 auto;
  padding: 40px 20px;
}
.vm-news-single__inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.vm-news-single__content {
  flex: 1;
  min-width: 0;
}
.vm-news-single__sidebar {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.vm-news-single__cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.vm-news-single__cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vm-white);
  background: var(--vm-red);
  padding: 4px 10px;
  text-decoration: none;
  border-radius: 2px;
}
.vm-news-single__cat:hover {
  background: var(--vm-navy);
  color: var(--vm-white);
}

.vm-news-card__cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.vm-news-card__cat-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vm-white);
  background: var(--vm-red);
  padding: 3px 8px;
  border-radius: 2px;
}
.vm-news-single__date {
  font-size: 0.85rem;
  color: var(--vm-mid);
  margin: 0 0 12px;
}
.vm-news-single__title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--vm-navy);
  line-height: 1.2;
  margin: 0 0 16px;
}
.vm-news-single__summary {
  font-size: 1.1rem;
  color: var(--vm-mid);
  line-height: 1.6;
  margin: 0 0 16px;
}
.vm-news-single__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.vm-news-single__tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0000EE;
  text-decoration: none;
  transition: color 0.2s;
}
.vm-news-single__tag:hover {
  color: var(--vm-red);
}
.vm-news-single__author {
  font-size: 0.9rem;
  color: var(--vm-navy);
  margin: 0 0 20px;
}
.vm-news-single__byline {
  color: var(--vm-mid);
}

/* ─── Share Bar ─── */
.vm-news-single__share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  margin-bottom: 8px;
}
.vm-news-single__share-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vm-mid);
}
.vm-news-single__share-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.vm-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.vm-share-btn:hover { opacity: 0.85; }
.vm-share-btn svg { width: 16px; height: 16px; }
.vm-share-btn--facebook  { background: #1877f2; }
.vm-share-btn--linkedin  { background: #0a66c2; }
.vm-share-btn--twitter   { background: #000; }
.vm-share-btn--email     { background: var(--vm-navy); }
.vm-share-btn--whatsapp  { background: #25d366; }
.vm-share-btn--print {
  background: none;
  color: var(--vm-mid);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  text-transform: uppercase;
}
.vm-share-btn--print:hover { opacity: 1; color: var(--vm-navy); }

/* ─── Divider ─── */
.vm-news-single__divider {
  border: none;
  border-top: 2px solid var(--vm-border);
  margin: 24px 0;
}

/* ─── Body ─── */
.vm-news-single__body {
  font-size: 1rem;
  line-height: 1.75;
  color: inherit;
}

/* ─── Related Content ─── */
.vm-news-related {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 3px solid var(--vm-red);
}
.vm-news-related__heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--vm-navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 28px;
}
.vm-news-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vm-related-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: var(--vm-light);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.vm-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.vm-related-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--vm-border);
}
.vm-related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vm-related-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  flex: 1;
}
.vm-related-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vm-red);
}
.vm-related-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--vm-navy);
  line-height: 1.3;
  margin: 0;
}
.vm-related-card:hover .vm-related-card__title {
  color: var(--vm-red);
}
.vm-related-card__summary {
  font-size: 0.875rem;
  color: var(--vm-mid);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vm-related-card__date {
  font-size: 0.8rem;
  color: var(--vm-mid);
  margin: 0;
  margin-top: auto;
  padding-top: 8px;
}
.vm-ad-slot--mid-banner {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* ─── Responsive ─── */
@media ( max-width: 900px ) {
  .vm-news-single__inner { flex-direction: column; }
  .vm-news-single__sidebar { flex: none; width: 100%; flex-direction: column; align-items: center; }
  .vm-news-related__grid { grid-template-columns: repeat(2, 1fr); }
  .valve-5-ad-sidebar { display: flex; flex-direction: column; align-items: center; }
  .vm-ad-slot--sidebar { width: 100%; display: flex; justify-content: center; }
}
@media ( max-width: 600px ) {
  .vm-news-single__title { font-size: 1.6rem; }
  .vm-news-related__grid { grid-template-columns: 1fr; }
}

/* ─── Latest Issue Hero ─── */
.vm-latest-issue {
  background: var(--vm-navy);
  padding: 56px 20px;
}
.vm-latest-issue__inner {
  max-width: var(--vm-max-width);
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: center;
}
.vm-latest-issue__cover {
  flex: 0 0 260px;
}
.vm-latest-issue__cover img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: none;
}
.vm-latest-issue__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vm-latest-issue__details .vm-magazine-single__eyebrow {
  color: var(--vm-red);
}
.vm-latest-issue__details .vm-magazine-single__title {
  color: var(--vm-white);
  font-size: 2.4rem;
}
.vm-latest-issue__meta {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.vm-latest-issue .vm-magazine-single__btn:hover {
  background: #b86d14;
  color: #fff;
}
@media ( max-width: 768px ) {
  .vm-latest-issue__inner { flex-direction: column; }
  .vm-latest-issue__cover { flex: none; width: 100%; max-width: 260px; }
  .vm-latest-issue__details .vm-magazine-single__title { font-size: 1.8rem; }
}

/* ─── News Archive ─── */
.vm-news-archive {
  max-width: var(--vm-max-width);
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.vm-news-archive__content {
  flex: 1;
  min-width: 0;
}
.vm-news-archive__sidebar {
  flex: 0 0 300px;
}
.vm-news-archive__header {
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--vm-red);
}
.vm-news-archive__heading {
  font-size: 2rem;
  font-weight: 800;
  color: var(--vm-navy);
  margin: 0 0 20px;
}

/* ─── Category Filter ─── */
.vm-news-archive__filter {
  display: flex;
  align-items: center;
}
.vm-news-archive__filter-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--vm-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300427e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 2px solid var(--vm-border);
  border-radius: 2px;
  color: var(--vm-navy);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 8px 40px 8px 14px;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 200px;
}
.vm-news-archive__filter-select:hover,
.vm-news-archive__filter-select:focus {
  border-color: var(--vm-navy);
  outline: none;
}

/* ─── News Card Grid ─── */
.vm-news-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.vm-news-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: var(--vm-light);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.vm-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.vm-news-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--vm-border);
}
.vm-news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vm-news-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  flex: 1;
}
.vm-news-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vm-red);
}
.vm-news-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--vm-navy);
  line-height: 1.3;
  margin: 0;
}
.vm-news-card:hover .vm-news-card__title {
  color: var(--vm-red);
}

/* ─── Industry News white card variant ─── */
.vm-news-card--white {
  background: var(--vm-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.vm-news-card__summary {
  font-size: 0.875rem;
  color: var(--vm-mid);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vm-news-card__date {
  font-size: 0.8rem;
  color: var(--vm-mid);
  margin: 0;
  margin-top: auto;
  padding-top: 8px;
}

/* ─── Pagination ─── */
.vm-news-archive__pagination ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.vm-news-archive__pagination li a,
.vm-news-archive__pagination li span {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--vm-border);
  border-radius: 2px;
  color: var(--vm-navy);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.vm-news-archive__pagination li a:hover {
  background: var(--vm-navy);
  color: var(--vm-white);
  border-color: var(--vm-navy);
}
.vm-news-archive__pagination .page-numbers.current {
  background: var(--vm-navy);
  color: var(--vm-white);
  border-color: var(--vm-navy);
}

/* ─── Responsive ─── */
@media ( max-width: 900px ) {
  .vm-news-archive { flex-direction: column; }
  .vm-news-archive__sidebar { flex: none; width: 100%; }
  .vm-news-archive__grid { grid-template-columns: repeat(2, 1fr); }
}
@media ( max-width: 600px ) {
  .vm-news-archive__grid { grid-template-columns: 1fr; }
}

/* ─── News Featured Hero ─── */
.vm-news-featured {
  background: var(--vm-navy);
  padding: 56px 20px;
}
.vm-news-featured__inner {
  max-width: var(--vm-max-width);
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: center;
}
.vm-news-featured__cover {
  flex: 0 0 480px;
}
.vm-news-featured__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  box-shadow: none;
}
.vm-news-featured__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vm-news-featured__cat {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vm-red);
}
.vm-news-featured__title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--vm-white);
  line-height: 1.2;
  margin: 0;
}
.vm-news-featured__summary {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0;
}
.vm-news-featured__date {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.vm-news-featured .vm-magazine-single__btn:hover {
  background: #b86d14;
  color: #fff;
}
@media ( max-width: 900px ) {
  .vm-news-featured__inner { flex-direction: column; }
  .vm-news-featured__cover { flex: none; width: 100%; }
  .vm-news-featured__title { font-size: 1.7rem; }
}
@media ( max-width: 600px ) {
  .vm-news-featured__title { font-size: 1.4rem; }
}

/* ─── Site Hero ─── */
.vm-site-hero {
  background: linear-gradient(135deg, #002d57 0%, var(--vm-navy) 50%, #0d5090 100%);
  padding: 100px 20px 96px;
  position: relative;
  overflow: hidden;
}
.vm-site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.015) 40px,
    rgba(255,255,255,0.015) 41px
  );
  pointer-events: none;
}
.vm-site-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--vm-red);
}
.vm-site-hero__inner {
  max-width: var(--vm-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}
.vm-site-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vm-red);
  margin-bottom: 20px;
}
.vm-site-hero__heading {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--vm-white);
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.vm-site-hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 40px;
}
.vm-site-hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.vm-site-hero__btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.vm-site-hero__btn--primary {
  background: var(--vm-red);
  color: #fff;
}
.vm-site-hero__btn--primary:hover {
  background: #b86d14;
  color: #fff;
}
.vm-site-hero__btn--ghost {
  background: transparent;
  color: var(--vm-white);
  border: 2px solid rgba(255,255,255,0.35);
}
.vm-site-hero__btn--ghost:hover {
  border-color: var(--vm-white);
  color: var(--vm-white);
}
@media ( max-width: 600px ) {
  .vm-site-hero { padding: 72px 20px 68px; }
  .vm-site-hero__actions { flex-direction: column; align-items: center; }
  .vm-site-hero__btn { width: 100%; max-width: 280px; text-align: center; }
}

/* ─── Homepage Hero ─── */
.vm-home-hero {
  background: var(--vm-navy);
  padding: 64px 20px;
}
.vm-home-hero__inner {
  max-width: var(--vm-max-width);
  margin: 0 auto;
  display: flex;
  gap: 56px;
  align-items: center;
}
.vm-home-hero__cover {
  flex: 0 0 520px;
}
.vm-home-hero__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.vm-home-hero__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vm-home-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--vm-red);
}
.vm-home-hero__cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.vm-home-hero__title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--vm-white);
  line-height: 1.15;
  margin: 0;
}
.vm-home-hero__summary {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0;
}
.vm-home-hero__date {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.vm-home-hero .vm-magazine-single__btn:hover {
  background: #b86d14;
  color: #fff;
}
@media ( max-width: 1000px ) {
  .vm-home-hero__cover { flex: 0 0 400px; }
  .vm-home-hero__title { font-size: 2rem; }
}
@media ( max-width: 768px ) {
  .vm-home-hero__inner { flex-direction: column; gap: 32px; }
  .vm-home-hero__cover { flex: none; width: 100%; }
  .vm-home-hero__title { font-size: 1.7rem; }
}

/* ─── Homepage Sections ─── */
.vm-home-section {
  padding: 56px 20px;
}
.vm-home-section--light {
  background: var(--vm-light);
}
.vm-home-section__inner {
  max-width: var(--vm-max-width);
  margin: 0 auto;
}
.vm-home-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--vm-red);
}
.vm-home-section__heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--vm-navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}
.vm-home-section__view-all {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--vm-navy);
  text-decoration: none;
  transition: color 0.2s;
}
.vm-home-section__view-all:hover {
  color: var(--vm-red);
}

/* ─── Homepage Grids ─── */
.vm-home-grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.vm-home-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media ( max-width: 1000px ) {
  .vm-home-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media ( max-width: 768px ) {
  .vm-home-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media ( max-width: 540px ) {
  .vm-home-grid--4,
  .vm-home-grid--3 { grid-template-columns: 1fr; }
}

/* ─── Topic Cards ─── */
.vm-home-topics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.vm-topic-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.vm-topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.vm-topic-card--navy      { background: var(--vm-navy); }
.vm-topic-card--blue      { background: #0062a2; }
.vm-topic-card--outline-navy {
  background: transparent;
  border: 2px solid var(--vm-navy);
}
.vm-topic-card--outline-red {
  background: transparent;
  border: 2px solid var(--vm-red);
}
.vm-topic-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}
.vm-topic-card--navy .vm-topic-card__title,
.vm-topic-card--blue .vm-topic-card__title      { color: var(--vm-white); }
.vm-topic-card--outline-navy .vm-topic-card__title { color: var(--vm-navy); }
.vm-topic-card--outline-red .vm-topic-card__title  { color: var(--vm-red); }
.vm-topic-card__desc {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.vm-topic-card--navy .vm-topic-card__desc,
.vm-topic-card--blue .vm-topic-card__desc       { color: rgba(255,255,255,0.75); }
.vm-topic-card--outline-navy .vm-topic-card__desc { color: var(--vm-mid); }
.vm-topic-card--outline-red .vm-topic-card__desc  { color: var(--vm-mid); }
.vm-topic-card__cta {
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 8px;
}
.vm-topic-card--navy .vm-topic-card__cta,
.vm-topic-card--blue .vm-topic-card__cta        { color: rgba(255,255,255,0.6); }
.vm-topic-card--outline-navy .vm-topic-card__cta { color: var(--vm-navy); }
.vm-topic-card--outline-red .vm-topic-card__cta  { color: var(--vm-red); }
@media ( max-width: 900px ) {
  .vm-home-topics { grid-template-columns: repeat(2, 1fr); }
}
@media ( max-width: 540px ) {
  .vm-home-topics { grid-template-columns: 1fr; }
}

/* ─── Subscribe CTA ─── */
.vm-home-subscribe {
  background: var(--vm-navy);
  padding: 64px 20px;
}
.vm-home-subscribe__inner {
  max-width: var(--vm-max-width);
  margin: 0 auto;
  display: flex;
  gap: 56px;
  align-items: center;
}
.vm-home-subscribe__copy {
  flex: 1;
}
.vm-home-subscribe__heading {
  font-size: 2rem;
  font-weight: 800;
  color: var(--vm-white);
  line-height: 1.2;
  margin: 0 0 16px;
}
.vm-home-subscribe__text {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin: 0;
}
.vm-home-subscribe__card {
  flex: 0 0 360px;
  background: var(--vm-white);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vm-home-subscribe__card-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--vm-navy);
  margin: 0;
}
.vm-home-subscribe__card-sub {
  font-size: 0.875rem;
  color: var(--vm-mid);
  margin: 0;
  line-height: 1.5;
}
.vm-magazine-single__btn--full {
  display: block;
  text-align: center;
}
.vm-home-subscribe__card-note {
  font-size: 0.78rem;
  color: var(--vm-mid);
  text-align: center;
  margin: 0;
}
.vm-home-subscribe .vm-magazine-single__btn:hover {
  background: #b86d14;
  color: #fff;
}
@media ( max-width: 900px ) {
  .vm-home-subscribe__inner { flex-direction: column; gap: 40px; }
  .vm-home-subscribe__card { flex: none; width: 100%; max-width: 480px; }
  .vm-home-subscribe__heading { font-size: 1.6rem; }
}

/* ─── Homepage Magazine Block ─── */
.vm-home-mag__cover {
  flex: 0 0 200px;
}
.vm-home-mag__cover img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}
.vm-home-mag__details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vm-home-mag__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--vm-navy);
  margin: 0;
}
.vm-home-mag__meta {
  font-size: 0.95rem;
  color: var(--vm-mid);
  margin: 0;
}
/* ─── Homepage Magazine Recent Issues ─── */
.vm-home-mag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}
.vm-home-mag__current-issue {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.vm-home-mag__recent {
  min-width: 0;
}
.vm-home-mag__recent-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vm-mid);
  margin: 0 0 16px;
}
.vm-home-mag__recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.vm-home-mag__recent-item {
  display: block;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.vm-home-mag__recent-item:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}
.vm-home-mag__recent-item img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
}

@media ( max-width: 768px ) {
  .vm-home-mag {
    grid-template-columns: 1fr;
  }
}
@media ( max-width: 600px ) {
  .vm-home-mag__current-issue { flex-direction: column; }
  .vm-home-mag__cover { flex: none; width: 160px; }
}

/* ─── Homepage Magazine Older Issues ─── */
.vm-home-mag__older {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--vm-border);
}
.vm-home-mag__older-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vm-mid);
  margin: 0 0 20px;
}
.vm-home-mag__older-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vm-home-mag__older-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.vm-home-mag__older-card:hover {
  opacity: 0.75;
}
.vm-home-mag__older-cover {
  flex: 0 0 60px;
}
.vm-home-mag__older-cover img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.vm-home-mag__older-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vm-home-mag__older-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--vm-navy);
  line-height: 1.3;
}
.vm-home-mag__older-season {
  font-size: 0.8rem;
  color: var(--vm-mid);
}
@media ( max-width: 600px ) {
  .vm-home-mag__older-grid { grid-template-columns: 1fr; }
}

/* ─── Product Single ─── */
.vm-product-single {
  max-width: var(--vm-max-width);
  margin: 0 auto;
  padding: 40px 20px;
}
.vm-product-single__inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.vm-product-single__content {
  flex: 1;
  min-width: 0;
}
.vm-product-single__company {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vm-red);
  margin: 0 0 8px;
}
.vm-product-single__website {
  margin-top: 32px;
}
@media ( max-width: 900px ) {
  .vm-product-single__inner { flex-direction: column; }
}


.vm-news-card__img--fallback {
  background: var(--vm-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
}
.vm-news-card__fallback-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--vm-white);
  line-height: 1.3;
  text-align: center;
}

/* ─── Inline Nav Search ──────────────────────────────────────────────────── */

/* Hide the original drawer/modal search toggle and the search drawer */
.search-toggle-open-container,
#search-drawer {
  display: none !important;
}

/* Container that sits in the header right section */
.vm-inline-search {
  display: flex;
  align-items: center;
  padding: 0 4px;
}

/* The form wrapper */
.vm-inline-search__form {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--vm-navy, #00427e);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  height: 38px;
  transition: box-shadow 0.2s;
}

.vm-inline-search__form:focus-within {
  box-shadow: 0 0 0 2px rgba(0, 66, 126, 0.2);
}

/* Search input field */
.vm-inline-search__input {
  border: none !important;
  outline: none !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  color: var(--vm-navy, #00427e) !important;
  background: transparent !important;
  width: 190px !important;
  height: 100% !important;
  box-shadow: none !important;
  min-height: unset !important;
  margin: 0 !important;
  -webkit-appearance: none !important;
}

.vm-inline-search__input::placeholder {
  color: #8aaccc !important;
  font-size: 14px !important;
}

/* Suppress default webkit search cancel button */
.vm-inline-search__input::-webkit-search-cancel-button {
  display: none;
}

/* Submit / search icon button */
.vm-inline-search__btn {
  background: var(--vm-navy, #00427e) !important;
  border: none !important;
  padding: 0 11px !important;
  height: 100% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  transition: background 0.2s !important;
  flex-shrink: 0 !important;
}

.vm-inline-search__btn:hover,
.vm-inline-search__btn:focus {
  background: var(--vm-red, #da8319) !important;
  outline: none !important;
}

.vm-inline-search__btn svg {
  fill: #fff !important;
  display: block !important;
  width: 16px !important;
  height: 16px !important;
}


/* ─── Better card contrast for Latest Articles & Products sections ─── */
.vm-home-section:not(.vm-home-section--light) .vm-news-card {
  background: #dde3ea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
}
.vm-home-section:not(.vm-home-section--light) .vm-news-card:hover {
  background: #d1d9e2;
  box-shadow: 0 6px 20px rgba(0,0,0,0.13);
}

/* ─── Fix transparent background on PNG magazine covers (no white box) ─── */
.vm-home-mag__recent-item img {
  background: transparent !important;
}


/*  Subscribe Page Reskin  */
/* Override old embedded styles to match current brand palette */

.subscribe-page { font-family: inherit; }

.subscribe-hero {
	  background-color: var(--vm-navy) !important;
	  padding: 56px 40px 0 !important;
}

.subscribe-hero h1 {
	  color: var(--vm-white) !important;
	  font-size: clamp(2.2rem, 5vw, 3.8rem) !important;
	  font-weight: 800 !important;
	  font-style: normal !important;
	  letter-spacing: -0.02em !important;
	  margin: 0 0 32px 0 !important;
	  line-height: 1.1 !important;
}

.subscribe-features {
	  border-bottom: 1px solid rgba(255,255,255,0.15) !important;
	  padding-bottom: 40px !important;
}

.subscribe-feature {
	  border-left: 3px solid var(--vm-red) !important;
	  color: rgba(255,255,255,0.85) !important;
}

.subscribe-main {
	  background-color: var(--vm-navy) !important;
}

.subscribe-cover-text {
	  color: rgba(255,255,255,0.7) !important;
}

.subscribe-options ul li a {
	  color: var(--vm-white) !important;
	  font-weight: 600 !important;
	  transition: color 0.2s !important;
}

.subscribe-options ul li a::before {
	  color: var(--vm-red) !important;
}

.subscribe-options ul li a:hover {
	  color: var(--vm-red) !important;
	  text-decoration: none !important;
}

.subscribe-info {
	  background-color: var(--vm-light) !important;
	  border-top: 4px solid var(--vm-red) !important;
	  padding: 48px 40px !important;
}

.subscribe-info p,
.subscribe-contact {
	  color: #333 !important;
	  font-size: 0.95rem !important;
	  line-height: 1.75 !important;
}

.subscribe-info a,
.subscribe-contact a {
	  color: var(--vm-navy) !important;
	  font-weight: 600 !important;
}

.subscribe-info a:hover,
.subscribe-contact a:hover {
	  color: var(--vm-red) !important;
}

.subscribe-info strong {
	  color: var(--vm-navy) !important;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}

/* ─── Above Header Ad – center the banner image ─── */
.vm-above-header-ad img {
    display: inline-block;
    margin: 0 auto;
}
