/* ==========================================================================
   IP SQUARED - LEGAL CONSULTANCY PORTFOLIO THEME
   Bespoke Geometric Edition (Uniform Grid)
   ========================================================================== */

/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/open-sans-v44-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/open-sans-v44-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/open-sans-v44-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  /* --- Brand Book Colors --- */
  --color-primary: #054254;
  --color-primary-light: #b8f5f5;
  --color-secondary: #219ebc;
  --color-navy: #023047;
  --color-grey: #dbdbdb;
  --color-accent-gold: #ffb703;
  --color-accent-coral: #ee6c4d;

  /* --- Surface & Text Variables --- */
  --bg-page: #f9fafb;
  --bg-card: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;

  /* --- Typography --- */
  --font-heading: 'Open Sans', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  
  /* --- Layout & Geometry --- */
  --container-width: 1200px;
  --radius: 0px; 
  --shadow-hard: 4px 4px 0px rgba(5, 66, 84, 0.08);
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary);
}

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

/* ==========================================================================
   LAYOUT CONTAINERS & HEADER
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.site-header {
  background-color: var(--color-primary);
  border-bottom: 1px solid rgba(184, 245, 245, 0.15);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  height: 55px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: var(--color-primary-light);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: #ffffff;
  border-bottom-color: var(--color-secondary);
}

/* ==========================================================================
   HERO SVG BACKGROUND ANIMATION
   ========================================================================== */
.hero-banner {
  background-color: var(--color-primary);
  background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-navy) 100%);
  color: var(--color-primary-light);
  padding: 6rem 0 7rem;
  border-bottom: 4px solid var(--color-primary-light);
  position: relative;
  overflow: hidden;
}

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

.hero-bg-animation {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 750px;
  height: 750px;
  z-index: 1;
  opacity: 0.12;
  pointer-events: none;
}

.drawing-logo path, 
.drawing-logo circle {
  fill: none;
  stroke: var(--color-primary-light);
  stroke-width: 3.5px;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawLogoLine 7s cubic-bezier(0.25, 0.1, 0.25, 1) forwards infinite alternate;
}

.drawing-logo circle:nth-of-type(1) { animation-delay: 0.0s; }
.drawing-logo circle:nth-of-type(2) { animation-delay: 0.2s; }
.drawing-logo path:nth-of-type(1)   { animation-delay: 0.4s; }
.drawing-logo path:nth-of-type(2)   { animation-delay: 0.6s; }
.drawing-logo circle:nth-of-type(3) { animation-delay: 0.8s; }
.drawing-logo path:nth-of-type(3)   { animation-delay: 1.0s; }
.drawing-logo path:nth-of-type(4)   { animation-delay: 1.2s; }
.drawing-logo path:nth-of-type(5)   { animation-delay: 1.4s; }
.drawing-logo path:nth-of-type(6)   { animation-delay: 1.6s; }
.drawing-logo path:nth-of-type(7)   { animation-delay: 1.8s; }

@keyframes drawLogoLine {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

.hero-title {
  color: #ffffff;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 300;
  max-width: 900px;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.25rem;
  max-width: 900px;
  margin-bottom: 1rem;
  color: var(--color-primary-light);
}

.hero-lead-nl {
  font-size: 1.05rem;
  max-width: 900px;
  opacity: 0.8;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--color-primary-light);
  color: var(--color-primary) !important;
}

.btn-primary:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--color-primary-light);
  color: var(--color-primary-light) !important;
}

.btn-secondary:hover {
  background-color: rgba(184, 245, 245, 0.1);
}

/* ==========================================================================
   EXPERTISE PILLARS & FILTER
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: -3.5rem auto 4rem;
  position: relative;
  z-index: 10;
}

.pillar-card {
  background-color: var(--bg-card);
  padding: 2.5rem 2rem;
  border: 1px solid var(--color-grey);
  border-left: 4px solid var(--color-secondary);
  box-shadow: var(--shadow-hard);
}

.pillar-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.filter-dashboard {
  background-color: #ffffff;
  border: 1px solid var(--color-grey);
  border-top: 4px solid var(--color-primary);
  padding: 1.5rem 2rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-hard);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.filter-group:not(:last-child) {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--color-grey);
}

.filter-label-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  margin-right: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  min-width: 90px;
}

.filter-btn {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--color-grey);
  color: var(--text-muted);
  background-color: transparent;
  transition: all 0.2s ease;
  border-radius: 0;
}

.filter-btn:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.filter-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* ==========================================================================
   PUBLICATIONS SECTION & HEADERS
   ========================================================================== */
.work-section {
  padding: 3rem 0 5rem;
}

.section-intro {
  margin-bottom: 3.5rem;
}

.section-intro h2 {
  font-size: 2.5rem;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.section-intro p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.year-block {
  margin-bottom: 4rem;
}

.year-header {
  font-size: 1.75rem;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-grey);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

/* ==========================================================================
   UNIFORM DOSSIER GRID & CARDS
   ========================================================================== */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem 2rem;
  /* Removing align-items ensures all cards stretch to equal height automatically */
}

.pub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  padding: 0;
  min-height: 340px; /* Base height to keep them uniform */
  border: 1px solid var(--color-navy);
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 0 100%);
  box-shadow: 0px 0px 0px var(--color-primary-light);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.3s ease, border-color 0.3s ease;
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pub-card:nth-child(1) { animation-delay: 0.05s; }
.pub-card:nth-child(2) { animation-delay: 0.10s; }
.pub-card:nth-child(3) { animation-delay: 0.15s; }
.pub-card:nth-child(4) { animation-delay: 0.20s; }
.pub-card:nth-child(5) { animation-delay: 0.25s; }
.pub-card:nth-child(6) { animation-delay: 0.30s; }

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
  position: relative;
  z-index: 3;
}

.pub-card:hover {
  transform: translate(-6px, -6px);
  border-color: var(--color-primary);
  box-shadow: 8px 8px 0px var(--color-primary-light);
  z-index: 2;
}

.pub-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 25px;
  height: 25px;
  background-color: var(--color-grey); 
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  transition: background-color 0.3s ease;
  z-index: 10;
}

.pub-card:hover::after {
  background-color: var(--color-primary-light);
}

.card-body {
  margin-top: auto; 
}

.pub-card:not(.has-image) .card-body {
  margin-bottom: 1.5rem; 
}

/* ==========================================================================
   IMAGE CARD OVERRIDES (Absolute Background)
   ========================================================================== */
.pub-card.has-image {
  background-color: var(--color-navy); 
}

.pub-card.has-image::after {
  background-color: rgba(255,255,255,0.25);
}

.card-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops image cleanly to fit uniform box */
  z-index: 1;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,48,71,0.1) 0%, rgba(2,48,71,0.95) 100%);
  z-index: 2;
  transition: background 0.3s ease;
}

.pub-card.has-image:hover .card-overlay {
  background: linear-gradient(180deg, rgba(2,48,71,0.4) 0%, var(--color-navy) 100%);
}

.pub-card.has-image .card-content {
  position: absolute;
  inset: 0; 
}

.pub-card.has-image .card-title a { color: #ffffff; }
.pub-card.has-image .card-title a:hover { color: var(--color-primary-light); }
.pub-card.has-image .card-publisher { color: rgba(255,255,255,0.7); margin-bottom: 0; }
.pub-card.has-image .card-action { color: var(--color-primary-light); }
.pub-card.has-image .meta-lang {
  background-color: rgba(0,0,0,0.4);
  color: #ffffff;
}

.pub-card.has-image .card-publisher,
.pub-card.has-image .card-footer {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pub-card.has-image .card-footer {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top-color: rgba(255,255,255,0.2);
}

.pub-card.has-image:hover .card-publisher,
.pub-card.has-image:hover .card-footer {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   CARD METADATA & BADGES
   ========================================================================== */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.badge {
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border: none;
}

.badge-article     { background-color: var(--color-secondary); color: #ffffff; }
.badge-column      { background-color: var(--color-primary); color: #ffffff; }
.badge-news        { background-color: var(--color-accent-gold); color: var(--color-navy); }
.badge-event       { background-color: var(--color-accent-coral); color: #ffffff; }
.badge-publication { background-color: var(--color-primary-light); color: var(--color-primary); }
.badge-report      { background-color: var(--color-navy); color: #ffffff; }
.badge-study       { background-color: var(--color-grey); color: var(--color-navy); }
.badge-lecture     { background-color: #f3f4f6; color: var(--color-primary); }
.badge-statement   { background-color: var(--color-navy); color: #ffffff; }

.meta-lang {
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.85rem;
  background-color: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  margin-right: 1.5rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 0;
  margin-bottom: 1rem;
}

.card-title a { color: var(--color-navy); }
.card-title a:hover { color: var(--color-secondary); }

.card-publisher {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.card-publisher .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-grey);
}

.card-action {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
}

.card-action:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   MEET THE EXPERT (Personal Intro)
   ========================================================================== */
.personal-intro {
  padding: 3rem 0 6rem;
}

.intro-wrapper {
  display: flex;
  gap: 4rem;
  align-items: center;
  flex-wrap: wrap;
}

.intro-image {
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  position: relative;
}

.intro-image::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-secondary);
  z-index: 0;
}

.intro-text {
  flex: 2;
  min-width: 320px;
}

.intro-text h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.intro-subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.intro-lead {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.intro-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.connect-btn {
  border-color: var(--color-primary);
  color: var(--color-primary) !important;
}

.connect-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff !important;
}

/* ==========================================================================
   FOOTER (Consultancy Grid Layout)
   ========================================================================== */
.site-footer {
  background-color: var(--color-navy);
  background-image: linear-gradient(180deg, var(--color-navy) 0%, #011b29 100%);
  color: var(--color-grey);
  padding: 5rem 0 2rem;
  border-top: 4px solid var(--color-secondary);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 320px;
}

.footer-heading {
  color: var(--color-primary-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

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

.footer-nav li, .footer-legal p {
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--color-grey);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.site-footer a:hover {
  color: var(--color-primary-light);
  border-bottom-color: var(--color-primary-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.copyright {
  opacity: 0.6;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--color-primary-light) !important;
}

.back-to-top .arrow {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.back-to-top:hover .arrow {
  transform: translateY(-4px);
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE DESIGN
   ========================================================================== */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero-actions { flex-direction: column; }
  .site-nav { display: none; }
  .pillars-grid { margin: 2rem auto 3rem; }
  .hero-bg-animation { width: 450px; height: 450px; right: -25%; opacity: 0.08; }
  .filter-dashboard { padding: 1.25rem; }
  .filter-label-title { width: 100%; margin-bottom: 0.5rem; }
  .intro-wrapper { gap: 3rem; }
  .intro-image::before { top: -10px; left: -10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}

.intro-image img {
  width: 100%;
  /* Force a tall, portrait aspect ratio (3 wide by 4 tall) */
  aspect-ratio: 3 / 4; 
  /* Fills the box by cropping off the excess width */
  object-fit: cover; 
  /* Shifts the crop to the right, keeping your face and hands perfectly in frame 
     while cutting out the laptop and the person on the bottom right */
  object-position: 80% 20%; 
  
  position: relative;
  z-index: 1;
  
  /* Retains the slight desaturation and contrast boost from the brand guidelines */
  filter: contrast(1.05) grayscale(15%);
  box-shadow: var(--shadow-hard);
}

/* ==========================================================================
   IMAGE ATTRIBUTION BADGE
   ========================================================================== */
.photo-attribution {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background-color: rgba(2, 48, 71, 0.85); /* var(--color-navy) with opacity */
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  z-index: 5;
  transition: opacity 0.2s ease;
}

/* Subtle hover effect to reward interaction */
.photo-attribution:hover {
  opacity: 1;
  background-color: var(--color-navy);
}

.photo-attribution a {
  color: var(--color-primary-light);
  border-bottom: 1px solid transparent;
}

.photo-attribution a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* ==========================================================================
   CLIENTS & ENGAGEMENTS PAGE
   ========================================================================== */
.clients-section {
  padding: 4rem 0 6rem;
}

.client-group {
  margin-bottom: 5rem;
}

.group-header {
  margin-bottom: 2rem;
  max-width: 800px;
}

.group-header h2 {
  font-size: 2rem;
  color: var(--color-navy, #023047);
  margin: 0.5rem 0 0.25rem;
}

.group-header p {
  color: var(--color-muted, #64748b);
  font-size: 1.05rem;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.client-card {
  background-color: #ffffff;
  border: 1px solid var(--color-navy, #023047);
  box-shadow: 4px 4px 0px rgba(2, 48, 71, 0.1);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px var(--color-navy, #023047);
}

.client-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.client-card h3 a {
  color: var(--color-navy, #023047);
  text-decoration: none;
}

.client-card h3 a:hover {
  color: var(--color-secondary, #219ebc);
}

.client-card p {
  font-size: 0.95rem;
  color: var(--color-text, #334155);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   NORMALIZED CLIENT LOGO GRID
   ========================================================================== */
.client-card {
  background-color: #ffffff;
  border: 1px solid var(--color-navy, #023047);
  box-shadow: 4px 4px 0px rgba(2, 48, 71, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically centers content regardless of child count */
  align-items: center;
  text-align: center;
  min-height: 150px; /* Guarantees uniform card height across the grid */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px var(--color-navy, #023047);
}

/* Bounding box for mixed horizontal/vertical aspect ratios */
.client-logo-box {
  width: 100%;
  height: 60px; /* Fixed height container */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.25rem;
}

.client-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Preserves original aspect ratio */
  object-position: center;
  
  /* Visual harmonization: monochrome until hovered */
  filter: grayscale(100%) opacity(0.75);
  transition: filter 0.2s ease;
}

.client-card:hover .client-logo {
  filter: grayscale(0%) opacity(1);
}

.client-card h3 {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.3;
}

/* ==========================================================================
   FEATURED / HIGHLIGHTED CLIENTS
   ========================================================================== */
.highlight-section {
  margin-bottom: 4rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.highlight-card {
  background-color: #f8fafc;
  border: 1px solid var(--color-navy, #023047);
  border-left: 5px solid var(--color-secondary, #219ebc);
  box-shadow: 4px 4px 0px rgba(2, 48, 71, 0.12);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px var(--color-navy, #023047);
}

.highlight-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.highlight-header .client-logo-box {
  width: 90px;
  height: 55px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.highlight-meta h3 {
  font-size: 1.25rem;
  margin: 0.25rem 0 0;
  line-height: 1.3;
}

.highlight-meta h3 a {
  color: var(--color-navy, #023047);
  text-decoration: none;
}

.highlight-meta h3 a:hover {
  color: var(--color-secondary, #219ebc);
}

.highlight-body {
  font-size: 0.95rem;
  color: var(--color-text, #334155);
  line-height: 1.6;
}

.highlight-body p {
  margin: 0 0 0.5rem;
}

.highlight-body p:last-child {
  margin-bottom: 0;
}

.badge-subtle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(2, 48, 71, 0.08);
  color: var(--color-navy, #023047);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.section-divider {
  border: 0;
  height: 1px;
  background-color: rgba(2, 48, 71, 0.15);
  margin: 4rem 0;
}