/* ==========================================================================
   CONTENT PAGE — Hero + Block Content
   Vision Court child theme
   ========================================================================== */

/* Prevent horizontal scroll on this template */
body.page-template-template-content-page-php {
  overflow-x: hidden;
}

/* ── Hero wrapper ──────────────────────────────────────────────────────── */
.vc-cp-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* Background image (set inline from featured image) */
.vc-cp-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Fallback gradient when no featured image is set */
.vc-cp-hero__bg--fallback {
  background: linear-gradient(
    145deg,
    #04091e 0%,
    #071428 40%,
    #0c1d42 70%,
    #060f24 100%
  );
}

/* Dark scrim so white text is always readable */
.vc-cp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 9, 30, 0.55) 0%,
    rgba(4, 9, 30, 0.72) 60%,
    rgba(4, 9, 30, 0.88) 100%
  );
  z-index: 1;
}

/* ── Inner content — sits above overlay ───────────────────────────────── */
.vc-cp-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.vc-cp-hero__inner {
  padding: 160px 0 64px;
  max-width: 740px;
}

.vc-cp-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 12px;
}

.vc-cp-hero__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.vc-cp-hero__lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
  max-width: 580px;
}

/* ── Block Content area ────────────────────────────────────────────────── */
.vc-cp-content {
  padding: 72px 0 96px;
  background: #fff;
}

.vc-cp-content__body {
  max-width: 760px;
  margin: 0 auto;

  /* Base prose styles */
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
}

/* Headings */
.vc-cp-content__body h1,
.vc-cp-content__body h2,
.vc-cp-content__body h3,
.vc-cp-content__body h4,
.vc-cp-content__body h5,
.vc-cp-content__body h6 {
  color: #0f172a;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.vc-cp-content__body h2 {
  font-size: 1.6rem;
}
.vc-cp-content__body h3 {
  font-size: 1.25rem;
}
.vc-cp-content__body h4 {
  font-size: 1.05rem;
}

/* First heading after opening doesn't need extra top margin */
.vc-cp-content__body > h2:first-child,
.vc-cp-content__body > h3:first-child {
  margin-top: 0;
}

/* Paragraphs & lists */
.vc-cp-content__body p {
  margin: 0 0 1.25em;
}

.vc-cp-content__body ul,
.vc-cp-content__body ol {
  padding-left: 1.5em;
  margin: 0 0 1.25em;
}

.vc-cp-content__body li {
  margin-bottom: 0.4em;
}

/* Links */
.vc-cp-content__body a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vc-cp-content__body a:hover {
  color: #1d4ed8;
}

/* Horizontal rule */
.vc-cp-content__body hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2.5em 0;
}

/* Blockquote */
.vc-cp-content__body blockquote {
  border-left: 4px solid #2563eb;
  padding: 12px 20px;
  margin: 1.5em 0;
  background: #f0f5ff;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #475569;
}

/* Tables */
.vc-cp-content__body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.95rem;
}

.vc-cp-content__body th,
.vc-cp-content__body td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.vc-cp-content__body th {
  background: #f0f5ff;
  font-weight: 700;
  color: #1e3a8a;
}

.vc-cp-content__body tr:nth-child(even) td {
  background: #f8fafc;
}

/* ── Mobile ────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .vc-cp-hero,
  .vc-cp-content {
    overflow-x: hidden;
  }

  .vc-cp-hero {
    min-height: 300px;
    align-items: flex-end;
  }

  .vc-cp-hero__inner {
    padding: 100px 0 48px;
  }

  .vc-cp-content {
    padding: 48px 0 72px;
  }
}
