/**
 * Premium long-form page presentation.
 *
 * All rules are scoped to .vc-page and reusable vc-* component classes. They
 * alter presentation only; content, metadata and URLs remain in WordPress.
 */
.vc-page .vc-premium-prose {
  max-width: 1100px;
}

.vc-content-section {
  border: 1px solid var(--vc-border);
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(11, 31, 51, 0.07);
  margin-block: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
  position: relative;
}

.vc-content-section > :first-child { margin-top: 0 !important; }
.vc-content-section > :last-child { margin-bottom: 0; }
.vc-content-section > h2:first-child { border-top: 0 !important; margin-top: 0 !important; padding-top: 0 !important; }
.vc-content-section--white { background: var(--vc-white); }
.vc-content-section--mist { background: var(--vc-mist); }
.vc-content-section--blue { background: #eef5fa; border-color: #d7e6f1; }
.vc-content-section--amber { background: #fff7e8; border-color: #efd9aa; }
.vc-content-section--green { background: #edf8f1; border-color: #cfe7d7; }
.vc-content-section--intro { background: linear-gradient(145deg, #fff, #f4f6f7); border-left: 5px solid var(--vc-gold); }
.vc-content-section--intro > p:first-of-type { color: var(--vc-navy-soft); font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); line-height: 1.75; }

.vc-feature-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--vc-space-md);
}

.vc-feature-card {
  background: var(--vc-white);
  border: 1px solid var(--vc-border);
  border-radius: 8px;
  border-top: 4px solid var(--vc-gold);
  box-shadow: 0 12px 30px rgba(11, 31, 51, 0.08);
  min-width: 0;
  padding: clamp(1.2rem, 2.5vw, 2rem);
}
.vc-feature-card > :first-child { margin-top: 0 !important; }
.vc-feature-card > :last-child { margin-bottom: 0; }
.vc-feature-card h3, .vc-feature-card h4 { font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.55rem); }
.vc-feature-card :is(ul, ol) { margin-bottom: 0; }

.vc-page .vc-premium-prose > p:nth-of-type(3n):not(.vc-eyebrow):not(.vc-lead),
.vc-key-takeaway {
  background: #eef5fa;
  border-left: 4px solid #3c789c;
  border-radius: 0 8px 8px 0;
  color: var(--vc-navy);
  padding: 1.1rem 1.25rem;
}

.vc-info-box, .vc-warning-box, .vc-success-box {
  border: 1px solid;
  border-left-width: 5px;
  border-radius: 8px;
  padding: clamp(1.2rem, 2.5vw, 2rem);
}
.vc-info-box { background: #eef5fa; border-color: #8fb7d1; }
.vc-warning-box { background: #fff7e8; border-color: #d7a443; }
.vc-success-box { background: #edf8f1; border-color: #70aa83; }

.vc-process {
  counter-reset: vc-process;
  display: grid;
  gap: var(--vc-space-sm);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.vc-process-step {
  background: var(--vc-white);
  border: 1px solid var(--vc-border);
  padding: var(--vc-space-md);
}
.vc-process-step::before {
  align-items: center;
  background: var(--vc-navy);
  border-radius: 50%;
  color: var(--vc-gold-light);
  content: counter(vc-process, decimal-leading-zero);
  counter-increment: vc-process;
  display: inline-flex;
  font-weight: 800;
  height: 2.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 2.5rem;
}

.vc-stat-grid { display: grid; gap: 1px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vc-stat { background: var(--vc-navy); color: var(--vc-white); padding: var(--vc-space-md); }
.vc-stat :is(h3, p) { color: inherit; }
.vc-stat h3 { color: var(--vc-gold-light); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.5rem); }

.vc-page .wp-block-table { border: 1px solid var(--vc-border); overflow-x: auto; }
.vc-page .wp-block-table table { border-collapse: collapse; min-width: 680px; }
.vc-page .wp-block-table th { background: var(--vc-navy); color: var(--vc-white); font-weight: 750; }
.vc-page .wp-block-table :is(th, td) { border: 1px solid var(--vc-border); padding: 0.9rem 1rem; text-align: left; }
.vc-page .wp-block-table tbody tr:nth-child(even) { background: var(--vc-mist); }

.vc-page .wp-block-details {
  background: var(--vc-white);
  border: 1px solid var(--vc-border) !important;
  border-radius: 6px;
  margin-block: 0.75rem;
  padding: 1rem 1.2rem !important;
}
.vc-page .wp-block-details summary { min-height: 44px; padding-block: 0.3rem; }

.vc-longform-page .vc-content-section:nth-child(3n + 2),
.vc-training-page .vc-content-section:nth-child(3n + 2) { background: #eef5fa; border-color: #d7e6f1; }

.vc-legal-page .vc-content-section {
  background: var(--vc-white);
  border-left: 4px solid var(--vc-navy-soft);
  box-shadow: 0 10px 28px rgba(11, 31, 51, 0.05);
}

.vc-page .vc-page-media img { background: var(--vc-mist); }
.vc-page .wp-block-quote { border-left: 4px solid var(--vc-gold); padding: var(--vc-space-md); }
.vc-page .wp-block-quote cite { color: var(--vc-navy); font-style: normal; font-weight: 750; }

@media (max-width: 920px) {
  .vc-feature-grid, .vc-process { grid-template-columns: 1fr 1fr; }
  .vc-stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .vc-feature-grid, .vc-process, .vc-stat-grid { grid-template-columns: 1fr; }
  .vc-content-section { border-radius: 6px; padding: 1.35rem; }
  .vc-page .wp-block-table { margin-inline: -0.5rem; width: calc(100% + 1rem); }
}

@media (prefers-reduced-motion: reduce) {
  .vc-content-section, .vc-feature-card { scroll-behavior: auto; }
}
