/* Legalix-styled additions on top of TT4 */
:root {
  --legalix-dark: #1B2A47;
  --legalix-gold: #6F8AAB;
  --legalix-gold-hover: #466585;
  --legalix-text: #5F5F5F;
}

/* Outlined background text effect (for hero band decorations) */
.legalix-bg-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.07);
  text-stroke: 1.5px rgba(255,255,255,0.07);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  z-index: 0;
}

/* Eyebrow accent text */
.legalix-eyebrow {
  font-family: "Inter", sans-serif !important;
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--legalix-gold) !important;
  margin: 0 0 16px 0;
}

/* Hero cover layout — content centered, image to right */
.legalix-hero { position: relative; }
.legalix-hero .wp-block-cover__inner-container { position: relative; z-index: 1; }

/* Service card */
.legalix-card {
  background: #fff;
  border: 1px solid #ECECEC;
  padding: 36px 28px;
  transition: all .25s ease;
}
.legalix-card:hover {
  border-color: var(--legalix-gold);
  box-shadow: 0 12px 40px rgba(13,30,30,0.06);
  transform: translateY(-2px);
}
.legalix-card h3 {
  font-size: 22px !important;
  margin-bottom: 12px !important;
}
.legalix-card .legalix-link {
  color: var(--legalix-gold-hover);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.legalix-card .legalix-link:hover { color: var(--legalix-dark); }

/* Stat counter (gold serif number) */
.legalix-stat .stat-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 64px;
  font-weight: 600;
  color: var(--legalix-gold);
  line-height: 1;
  letter-spacing: -0.02em;
}
.legalix-stat .stat-num sup {
  font-size: 0.4em;
  vertical-align: super;
  margin-left: 4px;
}
.legalix-stat .stat-label {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 10px;
  display: block;
}

/* Outlined button (header) */
.legalix-btn-gold {
  background: var(--legalix-gold);
  color: var(--legalix-dark) !important;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 26px;
  text-decoration: none;
  display: inline-block;
  transition: all .2s ease;
}
.legalix-btn-gold:hover {
  background: var(--legalix-gold-hover);
  color: #fff !important;
}

.legalix-btn-outline {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.3);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 26px;
  text-decoration: none;
  display: inline-block;
  transition: all .2s ease;
}
.legalix-btn-outline:hover {
  border-color: var(--legalix-gold);
  color: var(--legalix-gold) !important;
}

/* Section padding */
.legalix-section { padding: 100px 24px; }
.legalix-section-tight { padding: 60px 24px; }

/* Headings on dark backgrounds */
.has-contrast-background-color h1,
.has-contrast-background-color h2,
.has-contrast-background-color h3,
.has-contrast-background-color h4,
.has-contrast-background-color p {
  color: #fff;
}
.has-contrast-background-color p { color: rgba(255,255,255,0.85); }

/* TT4 default page-title hide enforcement */
.entry-header .wp-block-post-title { display: none; }

/* Header */
.site-header {
  background: var(--legalix-dark);
  padding: 18px 32px;
}
.site-header .wp-block-site-title a { color: #fff; }
.site-header .wp-block-navigation a { color: rgba(255,255,255,0.85); }
.site-header .wp-block-navigation a:hover { color: var(--legalix-gold); }

/* Footer */
.site-footer {
  background: var(--legalix-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 32px 40px;
}
.site-footer h3, .site-footer h4 { color: #fff; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-footer a:hover { color: var(--legalix-gold); }

/* Big serif gold underlined link */
.legalix-text-link {
  color: var(--legalix-gold-hover);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* Practice area "list" with arrow bullets */
.legalix-arrow-list {
  list-style: none;
  padding-left: 0;
}
.legalix-arrow-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
  font-family: "Inter", sans-serif;
}
.legalix-arrow-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--legalix-gold);
  font-weight: 600;
}
.legalix-arrow-list a { color: inherit; text-decoration: none; }
.legalix-arrow-list a:hover { color: var(--legalix-gold); }

/* FAQ accordion (details) */
.wp-block-details {
  border-bottom: 1px solid #ECECEC;
  padding: 22px 0;
}
.wp-block-details summary {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--legalix-dark);
  cursor: pointer;
  padding-right: 32px;
  position: relative;
}
.wp-block-details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--legalix-gold);
  font-size: 28px;
  font-weight: 400;
  transition: transform .2s;
}
.wp-block-details[open] summary::after { content: "−"; }
.wp-block-details > p { margin-top: 16px; color: var(--legalix-text); }

/* Container max-width */
.wp-block-group.is-style-section { max-width: 1240px; margin: 0 auto; }

/* ==== Legalix 1:1 matching ==== */
.legalix-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Hero with right-bleed photo */
.legalix-hero-band {
  background: #1B2A47;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: flex;
  align-items: center;
}
.legalix-hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(223,174,79,0.04) 0, transparent 40%),
    linear-gradient(transparent 49%, rgba(255,255,255,0.02) 50%, transparent 51%),
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,0.02) 50%, transparent 51%);
  background-size: 100% 100%, 80px 80px, 80px 80px;
  pointer-events: none;
}
.legalix-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 720px;
}
.legalix-hero-text {
  padding: 100px 48px 100px 48px;
  max-width: 580px;
  margin-left: auto;
  align-self: center;
}
.legalix-hero-photo {
  position: relative;
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
}
@media (max-width: 900px) {
  .legalix-hero-grid { grid-template-columns: 1fr; }
  .legalix-hero-text { padding: 60px 24px; max-width: 100%; margin: 0; }
  .legalix-hero-photo { min-height: 400px; }
}

/* Hero serif headline */
.legalix-hero-h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}

/* White stats band */
.legalix-stats-band {
  background: #fff;
  padding: 80px 0;
  position: relative;
}
.legalix-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.legalix-stat-tile { text-align: left; }
.legalix-stat-tile .num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 76px;
  font-weight: 600;
  color: #1B2A47;
  line-height: 1;
  display: inline-block;
}
.legalix-stat-tile .num sup {
  font-size: 0.45em;
  vertical-align: super;
  color: #6F8AAB;
  margin-left: 3px;
  font-weight: 600;
}
.legalix-stat-tile .lbl {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #A9A9A9;
  letter-spacing: 0.06em;
  margin-top: 8px;
  display: block;
}

/* Practice Areas — dark green with subtle pattern + 3-col icon cards */
.legalix-pa-section {
  background: #1B2A47;
  color: #fff;
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.legalix-pa-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 49%, rgba(255,255,255,0.025) 50%, transparent 51%),
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,0.025) 50%, transparent 51%);
  background-size: 100px 100px;
  opacity: 0.6;
  pointer-events: none;
}
.legalix-pa-section > * { position: relative; z-index: 1; }
.legalix-pa-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  text-align: center;
  color: #fff;
  margin: 0 auto 64px;
  max-width: 720px;
}
.legalix-pa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-left: 1px solid rgba(255,255,255,0.08);
}
.legalix-pa-card {
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 56px 40px;
  background: transparent;
  transition: background 0.25s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}
.legalix-pa-card:hover {
  background: rgba(223,174,79,0.05);
}
.legalix-pa-icon {
  font-size: 44px;
  color: #6F8AAB;
  margin-bottom: 20px;
  display: block;
  font-family: Georgia, serif;
}
.legalix-pa-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.2;
}
.legalix-pa-card p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* Generic light section */
.legalix-light-section {
  background: #fff;
  padding: 120px 0;
}
.legalix-offwhite-section {
  background: #F2F2F2;
  padding: 120px 0;
}

/* Section eyebrow */
.legalix-eyebrow-c {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6F8AAB !important;
  text-align: center;
  margin: 0 0 16px;
}

/* ==== Tighter hero overrides ==== */
.legalix-hero-grid { grid-template-columns: 1.15fr 1fr !important; }
.legalix-hero-text { max-width: 640px !important; padding: 80px 32px 80px 60px !important; }
.legalix-hero-h1 { font-size: clamp(34px, 3.6vw, 50px) !important; line-height: 1.08 !important; }
.legalix-hero-band { min-height: 560px !important; }
.legalix-hero-grid { min-height: 560px !important; }

/* Mini-stat avatars */
.legalix-hero-text .legalix-mini-stat { display:flex; align-items:center; gap:12px; }

/* Make sure my <section> blocks bleed full-width */
.entry-content, .wp-block-post-content {
  max-width: none !important;
}
main.wp-block-group {
  max-width: none !important;
}
section.legalix-pa-section,
section.legalix-hero-band,
section.legalix-light-section,
section.legalix-stats-band,
.entry-content > section {
  max-width: none !important;
  width: 100% !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0;
  padding-right: 0;
}

/* Hero cutout photo — sits at bottom of column, full body visible */
.legalix-hero-band { min-height: 600px !important; }
.legalix-hero-grid { min-height: 600px !important; align-items: end !important; }
.legalix-hero-photo {
  background: none !important;
  display: flex;
  align-items: end;
  justify-content: center;
  position: relative;
}
.legalix-hero-photo img {
  display: block;
  height: 92%;
  max-height: 600px;
  width: auto;
  object-fit: contain;
  object-position: bottom;
}

/* Legalix-exact stat format — bigger numbers with proper superscript */
.legalix-stat-tile { text-align: left; }
.legalix-stat-tile .num {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 600;
  color: #1B2A47;
  line-height: 0.95;
  display: inline-block;
  letter-spacing: -0.01em;
}
.legalix-stat-tile .num sup {
  font-size: 0.42em;
  vertical-align: super;
  color: #6F8AAB;
  margin-left: 4px;
  font-weight: 600;
  font-style: normal;
  top: -0.15em;
  position: relative;
}
.legalix-stat-tile .lbl {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #5F5F5F;
  letter-spacing: 0.04em;
  margin-top: 12px;
  display: block;
  font-weight: 400;
}

/* Bigger, bolder superscript for stat + sign */
.legalix-stat-tile .num sup {
  font-size: 0.5em !important;
  vertical-align: top !important;
  color: #6F8AAB !important;
  margin-left: 6px !important;
  font-weight: 700 !important;
  font-style: italic;
  top: 0.18em !important;
  position: relative;
  display: inline-block;
}

/* Photo container — center horizontally, hide if image dimensions force overflow */
.legalix-hero-photo { padding: 0 0 0 32px; overflow: hidden; }
.legalix-hero-photo img { max-width: 100%; max-height: 92%; }

/* Final hero photo sizing — bigger, anchored to bottom, crop legs */
.legalix-hero-band { min-height: 680px !important; }
.legalix-hero-grid { min-height: 680px !important; align-items: end !important; overflow: hidden; }

.legalix-hero-photo {
  background: none !important;
  position: relative !important;
  display: flex !important;
  align-items: end !important;
  justify-content: center !important;
  overflow: visible !important;
  padding: 0 !important;
  min-height: 680px;
}

.legalix-hero-photo img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  /* Scale up so torso fills visible area, legs cropped by section overflow */
  position: absolute !important;
  bottom: -120px;
  right: 0;
  height: 800px;
  width: auto;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 900px) {
  .legalix-hero-photo img { position: static !important; height: 480px; bottom: auto; }
}

/* Hero photo final — larger, anchored top, legs cropped */
.legalix-hero-band, .legalix-hero-grid { min-height: 680px !important; }
.legalix-hero-grid { align-items: stretch !important; overflow: hidden; }

.legalix-hero-photo {
  position: relative !important;
  overflow: hidden !important;
  height: 100% !important;
  display: block !important;
  padding: 0 !important;
  background: none !important;
}

.legalix-hero-photo img {
  position: absolute !important;
  top: 30px !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  height: auto !important;
  max-height: none !important;
  width: 110% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: top !important;
}

@media (max-width: 900px) {
  .legalix-hero-photo img {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    height: 460px !important;
    object-fit: cover;
  }
}

/* === Stats — Legalix-demo-exact format === */
.legalix-stat-big { text-align: left; }
.legalix-stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 600;
  color: #1B2A47;
  font-size: 88px;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.legalix-stat-num sup {
  font-size: 0.42em;
  color: #6F8AAB;
  font-weight: 600;
  font-style: normal;
  vertical-align: top;
  position: relative;
  top: 0.18em;
  margin-left: 4px;
}
.legalix-stat-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #5F5F5F;
  margin-top: 14px;
  font-weight: 400;
}
@media (max-width: 900px) {
  section .legalix-stat-big { padding: 16px !important; border: none !important; border-bottom: 1px solid #ECECEC !important; }
}

/* === Final hero photo — full image, ~40% width, anchored bottom, may crop legs === */
.legalix-hero-band, .legalix-hero-grid {
  min-height: 600px !important;
}
.legalix-hero-grid {
  grid-template-columns: 1.4fr 1fr !important;
  align-items: end !important;
  overflow: hidden !important;
}

.legalix-hero-photo {
  position: relative !important;
  overflow: hidden !important;
  height: 100% !important;
  display: flex !important;
  align-items: end !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  background: none !important;
}

.legalix-hero-photo img {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 460px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: bottom right !important;
  margin-bottom: -2px;  /* nudge so feet sit at section base */
  /* don't crop top — show full head */
  top: auto !important;
  bottom: 0 !important;
  transform: none !important;
  left: auto !important;
  right: 0 !important;
}

@media (max-width: 900px) {
  .legalix-hero-grid { grid-template-columns: 1fr !important; }
  .legalix-hero-photo img { max-width: 320px !important; margin: 0 auto !important; }
}

/* === Hero photo — use ORIGINAL with brick wall, ~45% column, full image visible === */
.legalix-hero-band, .legalix-hero-grid {
  min-height: 600px !important;
}
.legalix-hero-grid {
  grid-template-columns: 1.3fr 1fr !important;
  align-items: end !important;
  overflow: hidden !important;
}

.legalix-hero-photo {
  position: relative !important;
  overflow: hidden !important;
  height: 100% !important;
  display: flex !important;
  align-items: end !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  background: none !important;
}

.legalix-hero-photo img {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 480px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: top center !important;
  /* show full top, crop bottom naturally if needed */
  top: auto !important;
  bottom: 0 !important;
  transform: none !important;
  left: auto !important;
  right: 0 !important;
}

@media (max-width: 900px) {
  .legalix-hero-grid { grid-template-columns: 1fr !important; }
  .legalix-hero-photo img { max-width: 320px !important; margin: 0 auto !important; }
}

/* === Hero photo final — 50/50 grid, full image visible, top of img at top of section === */
.legalix-hero-band, .legalix-hero-grid {
  min-height: 640px !important;
}
.legalix-hero-grid {
  grid-template-columns: 1fr 1fr !important;
  align-items: stretch !important;
  overflow: hidden !important;
}
.legalix-hero-text {
  align-self: center !important;
  padding: 60px 32px 60px 60px !important;
}
.legalix-hero-photo {
  position: relative !important;
  height: 100% !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  padding: 0 !important;
  background: none !important;
  overflow: hidden !important;
}
.legalix-hero-photo img {
  display: block !important;
  position: relative !important;
  height: 100% !important;
  width: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center top !important;
  top: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

@media (max-width: 900px) {
  .legalix-hero-grid { grid-template-columns: 1fr !important; }
  .legalix-hero-photo img { height: 460px !important; max-width: 100% !important; }
}

/* === Hero photo: full image visible, anchored top, fills section height === */
.legalix-hero-photo {
  align-items: flex-start !important;
  justify-content: flex-end !important;
}
.legalix-hero-photo img {
  height: 100% !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: top right !important;
  top: 0 !important;
  bottom: auto !important;
  /* image is portrait — keeps natural ratio, anchored top-right of column, full image visible */
}

/* Align hero text with header logo position */
.legalix-hero-text {
  padding-left: 60px !important;
}
@media (max-width: 900px) {
  .legalix-hero-text { padding-left: 24px !important; }
}

/* Hero = viewport height minus nav */
.legalix-hero-band, .legalix-hero-grid {
  min-height: calc(100vh - 60px) !important;
  height: calc(100vh - 60px) !important;
}

/* Align hero text start with the 1160px header container left padding */
.legalix-hero-text {
  padding-left: max(24px, calc((100vw - 1160px) / 2 + 60px)) !important;
  padding-right: 32px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* LX-BLOG-START */
/* === Blog index (Legalix) === */
.lx-blog-hero {
  background: linear-gradient(180deg,#1B2A47 0%, #1B2A47 100%);
  background-image:
    radial-gradient(circle at 92% 60%, rgba(223,174,79,0.08), transparent 40%),
    linear-gradient(180deg,#1B2A47,#1B2A47);
  padding: 90px 24px 100px;
  text-align:center;
  color:#fff;
  position:relative;
}
.lx-blog-hero-inner { max-width: 900px; margin:0 auto; }
.lx-blog-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(40px, 4.8vw, 64px);
  line-height:1.05;
  margin: 0 0 18px;
  color:#fff;
}
.lx-blog-hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  margin: 0 0 32px;
}
.lx-blog-crumb {
  color: rgba(255,255,255,0.55);
  font-family:'DM Sans',sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  margin: 0;
}
.lx-blog-crumb a { color: rgba(255,255,255,0.8); text-decoration:none; }
.lx-blog-crumb span { margin: 0 8px; }

.lx-blog-body { background:#fff; padding: 90px 24px 100px; }
.lx-blog-container { max-width:1160px; margin:0 auto; }

.lx-blog-feature {
  display:block;
  position:relative;
  height:520px;
  border-radius: 4px;
  overflow:hidden;
  text-decoration:none;
  margin-bottom: 36px;
  color:#fff;
}
.lx-blog-feature-img {
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  transition: transform .5s ease;
}
.lx-blog-feature:hover .lx-blog-feature-img { transform: scale(1.03); }
.lx-blog-feature-overlay {
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 30%, rgba(13,30,30,0.85) 100%);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding: 48px 56px;
}
.lx-blog-feature-overlay h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(28px,3vw,42px);
  line-height: 1.15;
  margin: 12px 0 14px;
  color:#fff;
  max-width: 680px;
}
.lx-blog-feature-overlay p {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
}
.lx-blog-tag {
  display:inline-block;
  font-family:'DM Sans',sans-serif;
  font-size:11px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:#6F8AAB;
  font-weight: 500;
}

.lx-blog-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.lx-blog-card {
  display:block;
  text-decoration:none;
  color:inherit;
}
.lx-blog-card-img {
  width:100%;
  aspect-ratio: 4/3;
  background-size:cover; background-position:center;
  border-radius: 3px;
  margin-bottom: 18px;
  transition: transform .4s ease;
}
.lx-blog-card:hover .lx-blog-card-img { transform: scale(1.02); }
.lx-blog-card-body { padding: 0 4px; }
.lx-blog-card .lx-blog-tag { margin-bottom: 8px; }
.lx-blog-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  margin: 4px 0 0;
  color:#1B2A47;
}
.lx-blog-card:hover h3 { color: #6F8AAB; }

.lx-blog-loadmore { text-align:center; margin: 56px 0 0; }
.lx-btn-gold {
  background:#6F8AAB;
  color:#1B2A47;
  border:none;
  padding: 14px 38px;
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  font-weight:500;
  letter-spacing:0.12em;
  text-transform:uppercase;
  cursor:pointer;
  transition: background .2s ease;
}
.lx-btn-gold:hover { background:#557090; }

@media (max-width:900px) {
  .lx-blog-grid { grid-template-columns: repeat(2,1fr); }
  .lx-blog-feature { height:380px; }
  .lx-blog-feature-overlay { padding: 32px 28px; }
}
@media (max-width:600px) {
  .lx-blog-grid { grid-template-columns: 1fr; }
}

/* === Single post (Legalix) === */
.lx-single-hero {
  background:#1B2A47;
  padding: 80px 24px 90px;
  color:#fff;
}
.lx-single-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.lx-single-hero .wp-block-post-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(36px,4.4vw,56px);
  line-height: 1.05;
  color:#fff;
  margin: 0 0 18px;
  max-width: 900px;
}
.lx-single-meta {
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  color:rgba(255,255,255,0.65);
  margin: 0;
}
.lx-single-meta .author { color:#fff; font-weight:500; }
.lx-single-meta .sep { margin: 0 10px; color: rgba(255,255,255,0.4); }

.lx-single-body { padding: 70px 24px 60px; }
.lx-single-body p { color:#4B5563; font-size:15px; line-height:1.8; margin:0 0 18px; }
.lx-single-body p.post-intro-h { display:none; }
.lx-single-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 30px;
  margin: 36px 0 14px;
  color:#1B2A47;
}
.lx-single-body ul.gold-check {
  list-style:none; padding-left:0; margin:14px 0 22px;
}
.lx-single-body ul.gold-check li {
  position:relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size:15px;
  color:#4B5563;
}
.lx-single-body ul.gold-check li::before {
  content:"✓";
  position:absolute; left:0; top:0;
  color:#6F8AAB;
  font-weight:700;
}
.lx-single-body .wp-block-post-featured-image {
  margin: 0 auto 36px;
  max-width: 900px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}
.lx-single-body .wp-block-post-featured-image img {
  width:100%; height:auto; display:block;
}

.lx-single-bottom {
  margin: 56px auto 0;
  max-width: 640px;
  border-top: 1px solid #E5E8EF;
  padding-top: 22px;
  display:flex;
  justify-content: space-between;
  align-items:center;
  flex-wrap: wrap;
  gap: 16px;
}
.lx-single-tags { font-family:'DM Sans',sans-serif; font-size:13px; color:#4B5563; }
.lx-single-tags span:first-child { color:#4B5563; }
.lx-single-tags .tags { color:#6F8AAB; font-weight:500; }
.lx-single-share { font-family:'DM Sans',sans-serif; font-size:13px; color:#4B5563; display:flex; align-items:center; gap:8px; }
.lx-share-icon {
  width:28px; height:28px;
  display:inline-flex; align-items:center; justify-content:center;
  background:#6F8AAB; color:#1B2A47;
  font-family:'DM Sans',sans-serif; font-size:12px; font-weight:700;
  text-decoration:none;
}
.lx-share-icon:hover { background:#557090; }
/* LX-BLOG-END */

/* LX-BODYFIX-START */
.lx-single-feat-wrap { background:#fff; margin: -50px 0 0; }
.lx-single-feat-wrap .wp-block-post-featured-image { max-width: 900px; margin: 0 auto; padding: 0 24px; position:relative; z-index:2; }
.lx-single-feat-wrap .wp-block-post-featured-image img { width:100%; height:auto; display:block; border-radius: 2px; }

.lx-single-body { background:#fff; padding: 50px 0 90px !important; }
.lx-single-body-inner { max-width: 640px; margin: 0 auto; padding: 0 24px; }

.lx-single-meta {
  display:flex; align-items:center; gap:10px;
  flex-wrap:wrap;
  font-family:'DM Sans',sans-serif;
  font-size:13px;
  color:rgba(255,255,255,0.65);
  margin: 0;
}
.lx-single-meta .lbl, .lx-single-meta .author, .lx-single-meta .sep,
.lx-single-meta .lx-single-date,
.lx-single-meta .wp-block-post-date,
.lx-single-meta .wp-block-post-date a,
.lx-single-meta time {
  display:inline-block; font-family:'DM Sans',sans-serif !important; font-size:13px !important;
  margin: 0 !important;
}
.lx-single-meta .author { color:#fff; font-weight:500; }
.lx-single-meta .sep { color: rgba(255,255,255,0.4); }
.lx-single-meta .wp-block-post-date,
.lx-single-meta .wp-block-post-date time {
  color: rgba(255,255,255,0.65) !important;
}

.lx-single-body p, .lx-single-body li { font-size:15px; }
.lx-single-body .lx-tag-list a { color:#6F8AAB; text-decoration:none; }
.lx-single-body .lx-tag-list a:hover { text-decoration:underline; }
/* LX-BODYFIX-END */

/* RESET-GAPS-START */
/* TT4 default adds 24px margin-block-start between every direct child of wp-site-blocks
   and every layout-flow/constrained section. That paints white bars between our sections. */
:where(.wp-site-blocks) > *,
:where(.wp-site-blocks) > .wp-block-template-part,
:where(.is-layout-flow) > *,
:where(.is-layout-constrained) > *,
:root :where(.is-layout-flow) > *,
:root :where(.is-layout-constrained) > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}
.entry-content.wp-block-post-content,
.entry-content > .is-layout-flow,
.entry-content > .is-layout-constrained {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}
:root { --wp--style--block-gap: 0 !important; }
/* RESET-GAPS-END */

/* LX-CTAFIX-START */
/* Inline-styled CTA buttons on practice/about pages should keep their declared color */
section .legalix-btn-gold[style*="color:#fff"] { color: #fff !important; }
section .legalix-btn-gold[style*="background:#1B2A47"] {
  background: #1B2A47 !important;
  color: #fff !important;
}
/* LX-CTAFIX-END */

