/*
Theme Name: NV Testlabs Editable Theme v3
Theme URI: https://nvtestlabs.in/
Author: NV Testlabs
Description: Editable WordPress version of the NV Testlabs static website. Page content is stored inside WordPress pages and rendered with the_content().
Version: 3.12.5-blog-only-live
Text Domain: nv-testlabs-theme-v3
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Cormorant+Garamond:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #071e49;
  --navy-2: #0d2f6c;
  --blue: #2b69c8;
  --icy: #eaf4ff;
  --icy-2: #f6fbff;
  --gold: #d7a04a;
  --gold-2: #f1ca85;
  --gold-soft: rgba(215, 160, 74, 0.26);
  --ink: #13233d;
  --muted: #637188;
  --white: #ffffff;
  --paper: #fffdf9;
  --line: rgba(7, 30, 73, 0.12);
  --line-gold: rgba(215, 160, 74, 0.45);
  --shadow-soft: 0 18px 45px rgba(7, 30, 73, 0.08);
  --shadow-card: 0 12px 30px rgba(7, 30, 73, 0.07);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --container: 1180px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Lato", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 28%, rgba(215, 160, 74, 0.08), transparent 18rem),
    radial-gradient(circle at 90% 18%, rgba(43, 105, 200, 0.10), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 48%, #f3f8ff 100%);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button,
input,
textarea { font: inherit; }

.site-page {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.site-page::before,
.site-page::after {
  content: "";
  position: fixed;
  z-index: -2;
  pointer-events: none;
  opacity: 0.55;
}

.site-page::before {
  width: 520px;
  height: 520px;
  right: -120px;
  top: 70px;
  background:
    linear-gradient(30deg, transparent 49%, rgba(43, 105, 200, 0.16) 50%, transparent 51%),
    linear-gradient(155deg, transparent 49%, rgba(43, 105, 200, 0.12) 50%, transparent 51%),
    radial-gradient(circle, rgba(43, 105, 200, 0.2) 1px, transparent 2px);
  background-size: 100% 100%, 100% 100%, 70px 70px;
  border-radius: 50%;
}

.site-page::after {
  width: 360px;
  height: 360px;
  left: -130px;
  bottom: 140px;
  background:
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(215, 160, 74, 0.14) 31%, transparent 32%),
    radial-gradient(circle, rgba(43, 105, 200, 0.16) 1px, transparent 2px);
  background-size: 100% 100%, 54px 54px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(7, 30, 73, 0.10);
  box-shadow: 0 7px 20px rgba(7, 30, 73, 0.04);
}

.nav-wrap {
  min-height: 76px;
  display: grid;
  grid-template-columns: 260px 1fr 190px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(7, 30, 73, 0.08));
}

.brand-name {
  font-family: var(--display);
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  letter-spacing: -0.04em;
}

/* Blog advertising/content-hub header: branding only, never navigational. */
.blog-brand-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
}

.blog-brand {
  cursor: default;
}

.blog-isolated .blog-site-header .brand-name {
  text-decoration: none;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 26px 0 24px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--blue); outline: none; }

.nav-link[aria-current="page"]::after,
.nav-link.is-active::after {
  content: "✦";
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 0.82rem;
  line-height: 1;
}

.nav-link[aria-current="page"]::before,
.nav-link.is-active::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 13px;
  width: 52px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.nav-actions { display: flex; justify-content: flex-end; align-items: center; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-gold);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 99px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 8px;
  border: 1px solid var(--line-gold);
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #062a66);
  box-shadow: 0 10px 22px rgba(7, 30, 73, 0.18), inset 0 0 0 1px rgba(255,255,255,0.06);
}

.btn-secondary {
  color: var(--navy);
  background: rgba(255,255,255,0.82);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 16px 28px rgba(7, 30, 73, 0.16);
  outline: none;
}

.btn .gold,
.gold { color: var(--gold-2); }

main { overflow: hidden; }

.hero {
  position: relative;
  padding: clamp(54px, 8vw, 92px) 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
}

.hero-copy { position: relative; z-index: 2; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 0 15px;
  border: 1px solid var(--line-gold);
  border-radius: 999px 8px 999px 8px;
  color: #68758d;
  background: rgba(255,255,255,0.65);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge::after { content: "✦"; color: var(--gold); }

h1,
h2,
h3 {
  color: var(--navy);
  font-family: var(--serif);
  line-height: 0.98;
  margin: 0;
}

.hero-title {
  max-width: 650px;
  margin-top: 24px;
  font-size: clamp(3rem, 5.3vw, 5rem);
  letter-spacing: -0.06em;
}

.hero-title span { color: #1258bb; }

.title-rule {
  width: 115px;
  height: 2px;
  margin: 24px 0 20px;
  background: linear-gradient(90deg, var(--gold), transparent);
  position: relative;
}

.title-rule::after {
  content: "✦";
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.75rem;
}

.lead {
  max-width: 590px;
  margin: 0;
  color: #2f3f58;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
  color: #31445f;
  font-size: 0.95rem;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points span::before {
  content: "✥";
  color: #115fc5;
}

.hero-art {
  min-height: 430px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: -30px -50px -20px 20px;
  background:
    radial-gradient(circle at 20% 20%, rgba(215, 160, 74, 0.22) 1px, transparent 2px),
    radial-gradient(circle at 85% 38%, rgba(43, 105, 200, 0.20) 1px, transparent 2px),
    linear-gradient(28deg, transparent 48%, rgba(43, 105, 200, 0.14) 49%, transparent 50%),
    linear-gradient(153deg, transparent 48%, rgba(43, 105, 200, 0.10) 49%, transparent 50%);
  background-size: 120px 120px, 90px 90px, 100% 100%, 100% 100%;
  opacity: 0.9;
}

.arch-scene {
  position: relative;
  width: min(500px, 95%);
  aspect-ratio: 1.08 / 1;
  overflow: hidden;
  border-radius: 250px 250px 30px 30px;
  border: 1px solid var(--line-gold);
  background:
    radial-gradient(circle at 50% 24%, rgba(255,255,255,0.9), transparent 16%),
    linear-gradient(180deg, #dcefff 0%, #8ebeed 48%, #eaf7ff 100%);
  box-shadow: var(--shadow-soft);
}

.arch-scene::before,
.arch-scene::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.arch-scene::before {
  inset: 12px;
  border: 2px solid rgba(215,160,74,0.46);
  border-radius: 230px 230px 22px 22px;
}

.arch-scene::after {
  left: 50%;
  top: 9%;
  width: 210px;
  height: 210px;
  transform: translateX(-50%);
  opacity: 0.55;
  background:
    radial-gradient(circle, rgba(255,255,255,0.8) 0 2px, transparent 3px),
    linear-gradient(0deg, transparent 49%, rgba(255,255,255,0.72) 50%, transparent 51%),
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,0.72) 50%, transparent 51%),
    radial-gradient(circle, transparent 39%, rgba(255,255,255,0.58) 40%, transparent 41%);
  border-radius: 50%;
}

.arch-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: normal;
}

.float-star {
  position: absolute;
  color: var(--gold);
  opacity: 0.75;
  animation: pulseStar 3.8s ease-in-out infinite;
}

.float-star.one { left: 8%; top: 18%; font-size: 1.5rem; }
.float-star.two { right: 5%; top: 22%; font-size: 1rem; animation-delay: 0.9s; }
.float-star.three { left: 20%; bottom: 28%; font-size: 0.85rem; animation-delay: 1.5s; }

@keyframes pulseStar {
  0%, 100% { transform: scale(1); opacity: 0.42; }
  50% { transform: scale(1.22); opacity: 0.9; }
}

.section {
  position: relative;
  padding: clamp(46px, 7vw, 82px) 0;
}

.section-icy {
  background:
    radial-gradient(circle at 90% 20%, rgba(215,160,74,0.08), transparent 19rem),
    linear-gradient(180deg, rgba(239, 247, 255, 0.78), rgba(255,255,255,0.96));
  border-top: 1px solid rgba(7, 30, 73, 0.05);
  border-bottom: 1px solid rgba(7, 30, 73, 0.05);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-kicker::before,
.section-kicker::after {
  content: "";
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-kicker::after { background: linear-gradient(90deg, var(--gold), transparent); }

.section-title {
  margin-top: 12px;
  font-size: clamp(2.2rem, 3.4vw, 3.3rem);
  letter-spacing: -0.045em;
}

.section-copy {
  margin: 14px auto 0;
  max-width: 680px;
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.cards-grid.three { grid-template-columns: repeat(3, 1fr); }

.services-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.services-card-grid .card {
  min-height: 212px;
}

.services-card-grid .card > div:last-child {
  min-width: 0;
}


.card {
  position: relative;
  min-height: 176px;
  padding: 28px 25px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid rgba(215,160,74,0.28);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.84);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card::before,
.card::after {
  content: "✦";
  position: absolute;
  color: var(--gold);
  font-size: 0.9rem;
  opacity: 0.82;
}

.card::before { top: 12px; right: 14px; }
.card::after { bottom: 12px; left: 14px; }

.card:hover {
  transform: translateY(-7px);
  border-color: rgba(215,160,74,0.72);
  box-shadow: 0 22px 40px rgba(7, 30, 73, 0.12);
}

.icon-circle {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--navy);
  border: 1px solid rgba(43,105,200,0.42);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #fff, #eef6ff);
  box-shadow: inset 0 0 0 7px rgba(255,255,255,0.62);
}

.icon-circle svg { width: 32px; height: 32px; }

.card h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 4px 0 9px;
}

.card p {
  margin: 0;
  color: #3d4d63;
  font-size: 0.94rem;
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(34px, 7vw, 80px);
  align-items: center;
}

.home-focus-layout {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.55fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
}

.home-focus-layout > * { min-width: 0; }

.home-focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
  align-items: stretch;
}

.home-focus-grid .card {
  min-height: 250px;
  height: auto;
  flex-direction: column;
  overflow: visible;
  padding: 30px 28px 32px;
}

.home-focus-grid .card > div:last-child { min-width: 0; }

.home-focus-grid .card h3,
.home-focus-grid .card p {
  overflow-wrap: normal;
  word-break: normal;
}

.about-mini {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 28px;
  align-items: center;
}

.ornate-tile {
  min-height: 170px;
  border-radius: 90px 90px 22px 22px;
  border: 1px solid rgba(215,160,74,0.38);
  background:
    image-set(url("assets/ornate-tile.png") 1x),
    linear-gradient(180deg, #08265d, #0b1c3f);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #1258bb;
  font-weight: 700;
}

.text-link:hover { color: var(--navy); }

.page-hero {
  padding: clamp(50px, 7vw, 82px) 0 46px;
}

.page-hero .hero-title { font-size: clamp(3rem, 5vw, 4.7rem); }

.blog-hero .hero-grid,
.services-hero .hero-grid { grid-template-columns: 0.85fr 1.15fr; }

.search-row {
  width: min(560px, 100%);
  margin-top: 28px;
  position: relative;
}

.blog-search {
  width: 100%;
  height: 58px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  padding: 0 82px 0 28px;
  background: rgba(255,255,255,0.86);
  color: var(--ink);
  box-shadow: inset 0 2px 7px rgba(7,30,73,0.05);
}

.blog-search:focus {
  outline: 3px solid rgba(18,88,187,0.16);
  border-color: var(--blue);
}

.search-btn {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 74px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), #09295d);
  color: var(--white);
  cursor: pointer;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.article-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 240px;
  padding: 26px 24px 18px;
  border: 1px solid rgba(215,160,74,0.27);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.84);
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.article-card:hover {
  transform: translateY(-7px);
  border-color: rgba(215,160,74,0.72);
  box-shadow: 0 22px 40px rgba(7, 30, 73, 0.12);
}

.article-top {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
}

.article-card .category {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.article-card h3 {
  margin-top: 4px;
  font-size: 1.28rem;
  line-height: 1.1;
}

.article-card p { margin: 12px 0 0; color: #46566d; font-size: 0.93rem; }

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 13px;
  border-top: 1px solid rgba(215,160,74,0.35);
  color: #42546d;
  font-size: 0.84rem;
}

.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta .arrow { color: var(--gold); font-size: 1.25rem; }

.no-results {
  display: none;
  text-align: center;
  color: var(--muted);
  margin-top: 22px;
}

.contact-page {
  position: relative;
}

.contact-shell {
  padding: clamp(56px, 7vw, 86px) 0 48px;
  min-height: 680px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  align-items: start;
  gap: clamp(48px, 8vw, 108px);
}

.contact-left { padding-top: 20px; }

.contact-heading {
  margin-top: 24px;
  font-size: clamp(3.4rem, 6vw, 5.2rem);
  letter-spacing: -0.06em;
}

.contact-copy {
  max-width: 570px;
  color: #34465f;
  font-size: 1.06rem;
}

.contact-details {
  margin-top: 76px;
  max-width: 430px;
}

.contact-details h2 {
  font-size: 1.9rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.contact-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  align-items: center;
}

.contact-item a {
  color: #1258bb;
  font-weight: 700;
}

.contact-divider {
  width: 330px;
  height: 1px;
  margin: 28px 0 24px;
  max-width: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}

.contact-divider::after {
  content: "✧";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  background: var(--white);
  padding: 0 8px;
}

.form-wrap {
  position: relative;
  isolation: isolate;
}

.form-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -155px;
  top: -65px;
  width: 430px;
  height: 530px;
  background: url("assets/contact-compass-bg.png") center/contain no-repeat;
  opacity: 0.32;
}

.form-card {
  position: relative;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(215,160,74,0.42);
  border-radius: 24px;
  background: rgba(255,255,255,0.87);
  box-shadow: var(--shadow-soft);
}

.form-card::before,
.form-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(215,160,74,0.28);
  border-radius: 17px;
}

.form-card::after {
  inset: 22px 22px auto 22px;
  height: 26px;
  border-bottom: 0;
  opacity: 0.6;
}

.form-emblem {
  position: absolute;
  left: 50%;
  top: -42px;
  width: 86px;
  height: 86px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  background: var(--white);
  border-radius: 50%;
  z-index: 3;
}

.form-emblem img { width: 74px; height: 74px; object-fit: contain; }

.form-card h1,
.form-card h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.05;
  margin-top: 10px;
}

.form-card .subtle {
  color: #536176;
  margin: 12px 0 0;
}

.form-divider {
  height: 1px;
  margin: 24px 0 26px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}

.form-divider::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  background: var(--white);
  padding: 0 12px;
}

.contact-form {
  position: relative;
  z-index: 2;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin: 0 0 7px 4px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

.required { color: var(--gold); }

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(7, 30, 73, 0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.74);
  box-shadow: inset 0 2px 8px rgba(7,30,73,0.05);
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input { height: 52px; padding: 0 16px; }
.field textarea { min-height: 155px; padding: 14px 16px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: 3px solid rgba(18,88,187,0.14);
  border-color: rgba(18,88,187,0.74);
  background: var(--white);
}

.field-error {
  display: none;
  color: #a23a2d;
  font-size: 0.82rem;
  margin: 5px 0 0 4px;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #b6453a;
  outline: 3px solid rgba(182, 69, 58, 0.10);
}

.field.has-error .field-error { display: block; }

.form-submit { width: 100%; min-height: 54px; margin-top: 2px; font-size: 1rem; }

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: #1258bb;
  font-weight: 700;
}

.form-fallback {
  margin: 10px 0 0;
  color: #46566d;
  font-size: 0.92rem;
  text-align: center;
}

.form-fallback a {
  color: #1258bb;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  color: #627188;
  font-size: 0.9rem;
}

.privacy-note svg { color: #1258bb; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.portfolio-card {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(215,160,74,0.32);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.92)),
    radial-gradient(circle at 50% 10%, rgba(43,105,200,0.24), transparent 44%),
    #fff;
  box-shadow: var(--shadow-card);
}

.portfolio-card h3 { font-size: 1.55rem; margin-bottom: 10px; }
.portfolio-card p { margin: 0; color: #46566d; }

.site-footer {
  background:
    radial-gradient(circle at 90% 20%, rgba(255,255,255,0.64), transparent 12rem),
    linear-gradient(135deg, #e9f4ff, #f7fbff 50%, #e8f3ff);
  border-top: 1px solid rgba(7, 30, 73, 0.06);
}

.footer-main {
  padding: 34px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 1.1fr);
  gap: 38px;
}

.footer-brand {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.footer-brand .brand-mark { width: 52px; height: 52px; }
.footer-brand .brand-name { display: block; margin-bottom: 8px; }
.footer-brand p { margin: 0; color: #2e405a; line-height: 1.45; }

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.1;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin: 4px 0; }
.footer-col a { color: #10294f; font-size: 0.94rem; }
.footer-col a:hover { color: #1258bb; }
.footer-col p { margin: 0; color: #2e405a; line-height: 1.45; }

.socials {
  display: flex;
  gap: 13px;
  margin-top: 22px;
}

.social {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  border: 1px solid rgba(215,160,74,0.6);
  background: rgba(255,255,255,0.48);
  color: #1258bb;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

.social span { transform: rotate(-45deg); font-size: 0.84rem; }
.social:hover { transform: rotate(45deg) translateY(-3px); background: var(--white); }

.footer-bottom {
  background: linear-gradient(135deg, var(--navy), #062a66);
  color: rgba(255,255,255,0.88);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  font-size: 0.9rem;
}

.footer-bottom::before,
.footer-bottom::after {
  content: "✦──────────────✦";
  color: var(--gold);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
  letter-spacing: 2px;
}

.footer-bottom::before { left: 28px; }
.footer-bottom::after { right: 28px; }

.decor-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.decor-sparkles span {
  position: absolute;
  color: var(--gold);
  opacity: 0.55;
}

.decor-sparkles span:nth-child(1) { left: 11%; top: 18%; font-size: 1.2rem; }
.decor-sparkles span:nth-child(2) { left: 45%; top: 12%; font-size: 0.8rem; }
.decor-sparkles span:nth-child(3) { right: 11%; top: 28%; font-size: 1rem; }
.decor-sparkles span:nth-child(4) { right: 5%; bottom: 19%; font-size: 1.3rem; }
.decor-sparkles span:nth-child(5) { left: 6%; bottom: 24%; font-size: 0.8rem; }

@media (max-width: 1180px) {
  .home-focus-layout { grid-template-columns: 1fr; }
  .home-focus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-focus-grid .card { min-height: 230px; }
}

@media (max-width: 1100px) {
  .nav-wrap { grid-template-columns: 220px 1fr 160px; gap: 14px; }
  .nav-menu { gap: 20px; }
  .cards-grid,
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .services-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom::before,
  .footer-bottom::after { display: none; }
}

@media (max-width: 860px) {
  .container { width: min(100% - 28px, var(--container)); }
  .blog-brand-wrap { min-height: 70px; }
  .nav-wrap { grid-template-columns: 1fr auto; min-height: 70px; }
  .nav-actions { display: none; }
  .nav-toggle { display: inline-block; }
  .nav-menu {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 82px;
    display: grid;
    gap: 0;
    padding: 14px;
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(215,160,74,0.28);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link { padding: 13px 10px; justify-content: center; }
  .nav-link[aria-current="page"]::before,
  .nav-link.is-active::before { bottom: 6px; }
  .nav-link[aria-current="page"]::after,
  .nav-link.is-active::after { bottom: 0; }
  .hero-grid,
  .blog-hero .hero-grid,
  .services-hero .hero-grid,
  .split-section,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 350px; }
  .arch-scene { width: min(440px, 100%); }
  .hero-title { font-size: clamp(2.65rem, 12vw, 4rem); }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .contact-details { margin-top: 46px; }
  .home-focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-wrap::before { right: -190px; opacity: 0.24; }
}

@media (max-width: 620px) {
  .brand-name { font-size: 1.35rem; }
  .brand-mark { width: 48px; height: 48px; }
  .hero { padding-top: 38px; }
  .hero-actions { align-items: stretch; }
  .btn { width: 100%; }
  .hero-points { gap: 10px; flex-direction: column; }
  .cards-grid,
  .cards-grid.three,
  .article-grid,
  .portfolio-grid,
  .home-focus-grid { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .services-card-grid { grid-template-columns: 1fr; }
  .services-card-grid .card { min-height: auto; }
  .article-top { grid-template-columns: 50px 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 34px 18px 24px; }
  .form-emblem { width: 70px; height: 70px; top: -32px; }
  .form-emblem img { width: 60px; height: 60px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { padding: 0 14px; }
  .contact-heading { font-size: clamp(3rem, 15vw, 4rem); }
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* v3 editable content compatibility */
.editable-content > *:first-child { margin-top: 0; }
.editable-content > *:last-child { margin-bottom: 0; }
.wp-block-html { margin: 0; }
.entry-content { margin: 0; }
body .is-layout-constrained > * { max-width: none; }
body .is-layout-constrained > .alignwide { max-width: var(--container); }
body .is-layout-constrained > .alignfull { max-width: none; }


/* v3.8 Contact → Booking flow */
.booking-shell {
  position: relative;
  padding: 70px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(215, 160, 74, 0.11), transparent 18rem),
    radial-gradient(circle at 84% 8%, rgba(43, 105, 200, 0.12), transparent 24rem),
    linear-gradient(180deg, #fff 0%, var(--icy-2) 56%, var(--icy) 100%);
}

.booking-container {
  position: relative;
  z-index: 2;
}

.booking-intro {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.booking-intro .title-rule {
  margin-left: auto;
  margin-right: auto;
}

.booking-card {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(215,160,74,0.42);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,253,249,0.94)),
    radial-gradient(circle at 90% 0%, rgba(215,160,74,0.16), transparent 18rem);
  box-shadow: 0 24px 70px rgba(7, 30, 73, 0.12);
  overflow: hidden;
}

.booking-card::before {
  content: "✦ ✧ ✦";
  position: absolute;
  right: 34px;
  bottom: 22px;
  color: rgba(215,160,74,0.34);
  font-size: 1.7rem;
  letter-spacing: 12px;
  pointer-events: none;
}

.booking-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.booking-card-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--navy);
}

.booking-emblem {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215,160,74,0.38);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7,30,73,0.08);
}

.booking-emblem img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.booking-alert {
  display: none;
  margin: 0 0 18px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid rgba(18,88,187,0.18);
  background: rgba(234,244,255,0.78);
  color: var(--navy);
  font-weight: 700;
}

.booking-alert.is-visible { display: block; }
.booking-alert.is-error {
  border-color: rgba(182, 69, 58, 0.25);
  background: rgba(255, 244, 241, 0.92);
  color: #9b352d;
}
.booking-alert.is-success {
  border-color: rgba(45, 132, 80, 0.22);
  background: rgba(239, 255, 244, 0.92);
  color: #236b41;
}

.booking-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}

.booking-range-btn {
  min-height: 42px;
  padding: 10px 15px;
  font-size: 0.92rem;
}

.booking-range-label {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.booking-loading,
.booking-empty {
  margin: 18px 0;
  padding: 18px;
  border: 1px dashed rgba(215,160,74,0.45);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.booking-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}

.booking-day {
  min-height: 102px;
  padding: 13px 8px;
  border: 1px solid rgba(7,30,73,0.10);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(7,30,73,0.055);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.booking-day:hover,
.booking-day.is-selected {
  transform: translateY(-2px);
  border-color: rgba(215,160,74,0.75);
  background: linear-gradient(180deg, #fff, #fff8ed);
  box-shadow: 0 14px 30px rgba(7,30,73,0.10);
}

.booking-day.is-disabled {
  opacity: 0.62;
}

.booking-day span,
.booking-day small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.booking-day strong {
  display: block;
  margin: 2px 0;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.1;
}

.booking-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.booking-slot {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(7,30,73,0.12);
  border-radius: 999px;
  background: rgba(234,244,255,0.62);
  color: var(--navy);
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.booking-slot:hover,
.booking-slot.is-selected {
  transform: translateY(-1px);
  border-color: rgba(215,160,74,0.82);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
}

.booking-confirm-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(215,160,74,0.32);
  border-radius: 20px;
  background: rgba(255,253,249,0.82);
}

.booking-confirm-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.booking-confirm-panel .btn {
  white-space: nowrap;
}

.booking-success {
  position: relative;
  z-index: 2;
  margin: 24px 0 0;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(215,160,74,0.48);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 15%, rgba(215,160,74,0.18), transparent 12rem),
    linear-gradient(180deg, #fff, #f6fbff);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.booking-success h2 {
  margin: 0 auto 10px;
  max-width: 760px;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.booking-success p {
  margin: 0 auto 22px;
  max-width: 680px;
  color: var(--muted);
  font-weight: 700;
}

.booking-success .booking-conference-note {
  margin-top: -8px;
  padding: 12px 14px;
  border: 1px solid rgba(215,160,74,0.38);
  border-radius: 14px;
  background: rgba(234,244,255,0.7);
  font-size: 0.95rem;
}

.booking-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.booking-meet-link[hidden],
.booking-conference-note[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .booking-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .booking-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-controls { grid-template-columns: 1fr 1fr; }
  .booking-range-label { grid-column: 1 / -1; grid-row: 1; }
}

@media (max-width: 620px) {
  .booking-shell { padding: 46px 0 70px; }
  .booking-card { padding: 24px 16px; border-radius: 24px; }
  .booking-card-head { align-items: flex-start; }
  .booking-emblem { width: 62px; height: 62px; }
  .booking-emblem img { width: 52px; height: 52px; }
  .booking-controls { grid-template-columns: 1fr; }
  .booking-range-label { grid-column: auto; grid-row: auto; }
  .booking-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-slots { grid-template-columns: 1fr; }
  .booking-confirm-panel { align-items: stretch; flex-direction: column; }
  .booking-confirm-panel .btn { width: 100%; }
}


/* v3.12 content, services, streamlined contact and confirmation layout */
.services-card-grid .service-card-content p + p {
  margin-top: 14px;
}

.contact-grid.contact-grid-streamlined {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 6vw, 82px);
}

.contact-grid-streamlined .contact-left {
  padding-top: clamp(12px, 2vw, 24px);
}

.contact-grid-streamlined .contact-copy {
  max-width: 520px;
}

.booking-confirmation-page .booking-container {
  max-width: 980px;
}

.booking-confirmation-card {
  margin: 0 auto;
}

.booking-confirmation-card h1 {
  margin: 8px auto 12px;
  max-width: 800px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3.3vw, 2.65rem);
  line-height: 1.08;
}

.booking-confirmation-card .booking-confirmation-time {
  font-size: 1.03rem;
}

.booking-confirmation-card.is-invalid h1 {
  max-width: 680px;
}

@media (max-width: 860px) {
  .contact-grid.contact-grid-streamlined { grid-template-columns: 1fr; }
}

/* v3.10 editor-friendly block patterns and dynamic blog support */
.nvtl-editor-section { margin-block: 0; }
.wp-block-columns.container,
.wp-block-group.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.wp-block-columns.hero-grid,
.wp-block-columns.split-section { margin-bottom: 0; }
p.badge { margin: 0; width: fit-content; }
p.section-kicker { margin-top: 0; margin-bottom: 0; }
.nvtl-left-head { text-align: left; margin-left: 0; }
.nvtl-center-actions { justify-content: center; }
.wp-block-buttons.hero-actions { display: flex; gap: 18px; margin-top: 26px; }
.wp-block-button.btn-primary .wp-block-button__link,
.wp-block-button.btn-secondary .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 8px;
  border: 1px solid var(--line-gold);
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.wp-block-button.btn-primary .wp-block-button__link {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #062a66);
  box-shadow: 0 10px 22px rgba(7, 30, 73, 0.18), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.wp-block-button.btn-secondary .wp-block-button__link {
  color: var(--navy);
  background: rgba(255,255,255,0.82);
}
.wp-block-button.btn-primary .wp-block-button__link:hover,
.wp-block-button.btn-secondary .wp-block-button__link:hover,
.wp-block-button.btn-primary .wp-block-button__link:focus-visible,
.wp-block-button.btn-secondary .wp-block-button__link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 16px 28px rgba(7, 30, 73, 0.16);
  outline: none;
}
.hero-points p { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; }
.card.wp-block-group { margin: 0; }
.card .wp-block-heading { margin: 4px 0 9px; }
.card .wp-block-group { margin: 0; }
.card .icon-circle { font-family: var(--display); font-size: 1.24rem; font-weight: 800; }
.nvtl-cta-card,
.nvtl-post-cta { text-align: center; }
.nvtl-cta-card .section-copy { margin-inline: auto; }
.nvtl-testimonial-card { display: block; max-width: 780px; margin-inline: auto; }
.nvtl-testimonial-card blockquote { margin: 12px 0 0; color: #2f3f58; font-size: 1.05rem; }
.nvtl-testimonial-card cite { display: block; margin-top: 12px; color: var(--muted); font-style: normal; font-weight: 700; }
.nvtl-faq { max-width: 900px; }
.nvtl-faq details {
  margin: 14px 0;
  padding: 20px 22px;
  border: 1px solid rgba(215,160,74,0.28);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow-card);
}
.nvtl-faq summary { cursor: pointer; color: var(--navy); font-family: var(--serif); font-size: 1.22rem; font-weight: 700; }
.nvtl-faq details p { margin: 12px 0 0; color: #3d4d63; }
.article-card-link { display: grid; grid-template-rows: 1fr auto; height: 100%; color: inherit; text-decoration: none; }
.article-thumb {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 1px solid rgba(43,105,200,0.42);
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 40% 30%, #fff, #eef6ff);
  box-shadow: inset 0 0 0 7px rgba(255,255,255,0.62);
}
.article-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.nvtl-blog-listing { border-top: 0; }
.nvtl-empty-posts { max-width: 720px; margin-inline: auto; text-align: center; }
.post-hero .container { position: relative; z-index: 2; }
.post-meta-line { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; color: var(--muted); font-weight: 700; }
.post-featured-image { margin-top: 34px; }
.post-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid rgba(215,160,74,0.38);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.post-content-wrap { max-width: 880px; }
.post-content {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(215,160,74,0.22);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow-card);
}
.post-content > *:first-child { margin-top: 0; }
.post-content > *:last-child { margin-bottom: 0; }
.post-content h2,
.post-content h3,
.post-content h4 { margin-top: 1.35em; margin-bottom: 0.45em; line-height: 1.12; }
.post-content p,
.post-content li { color: #2f3f58; font-size: 1.05rem; }
.post-content a { color: #1258bb; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.post-content blockquote { margin: 28px 0; padding: 18px 24px; border-left: 3px solid var(--gold); background: rgba(234,244,255,0.55); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.nvtl-pagination { margin-top: 34px; text-align: center; }
.nvtl-pagination .nav-links { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.nvtl-pagination a,
.nvtl-pagination span { padding: 8px 12px; border: 1px solid var(--line-gold); border-radius: 10px; background: rgba(255,255,255,0.78); }
.nvtl-pagination .current { color: var(--white); background: var(--navy); }

@media (max-width: 620px) {
  .wp-block-button,
  .wp-block-button .wp-block-button__link { width: 100%; }
  .hero-points p { flex-direction: column; gap: 10px; }
  .post-meta-line { flex-direction: column; gap: 6px; }
  .post-content { padding: 24px 18px; }
}


/* v3.11 topic-specific Blog pages, navigation, search and Services actions */
.services-card-grid .card,
.services-card-grid .wp-block-group.card {
  height: 100%;
}

.services-card-grid .service-topic-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  align-items: start;
}

.services-card-grid .service-topic-card > .icon-circle {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.services-card-grid .service-topic-card > :not(.icon-circle):not(.service-card-actions) {
  min-width: 0;
  grid-column: 2;
}

.services-card-grid .service-card-content {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.services-card-grid .service-card-content > h3:first-child,
.services-card-grid .service-card-content > .wp-block-heading:first-child {
  margin-top: 4px;
}

.service-card-actions {
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.services-card-grid .service-topic-card > .service-card-actions {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
}

.service-articles-btn {
  min-height: 42px;
  max-width: 100%;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), #0b2d66);
  color: var(--white);
  box-shadow: 0 9px 20px rgba(7, 30, 73, 0.16);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-articles-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold-2);
  box-shadow: 0 13px 24px rgba(7, 30, 73, 0.22);
}

.service-articles-btn:focus-visible,
.nvtl-topic-link:focus-visible,
.search-btn:focus-visible,
.nvtl-pagination a:focus-visible {
  outline: 3px solid rgba(43, 105, 200, 0.35);
  outline-offset: 3px;
}

.nvtl-topic-nav-wrap {
  padding: 24px 0 4px;
  position: relative;
  z-index: 2;
}

.nvtl-topic-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nvtl-topic-link {
  min-height: 42px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  box-shadow: 0 7px 18px rgba(7, 30, 73, 0.06);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nvtl-topic-link:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: var(--paper);
}

.nvtl-topic-link.is-active {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--navy), #0b2d66);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(7, 30, 73, 0.18);
}

.nvtl-article-search-form {
  display: block;
}

.nvtl-empty-posts .nvtl-admin-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-card:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(43, 105, 200, 0.14), var(--shadow-card);
}

.article-card-link:focus-visible {
  outline: none;
}

.nvtl-pagination ul.page-numbers {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.nvtl-pagination ul.page-numbers li {
  margin: 0;
  padding: 0;
}

.nvtl-pagination ul.page-numbers a,
.nvtl-pagination ul.page-numbers span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 620px) {
  .service-card-actions {
    padding-top: 16px;
  }

  .service-articles-btn {
    min-height: 44px;
    white-space: normal;
  }

  .nvtl-topic-nav {
    justify-content: flex-start;
  }

  .nvtl-topic-link {
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
  }

  .search-row {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .nvtl-topic-link {
    flex-basis: 100%;
    min-width: 0;
  }
}
