/*
Theme Name: Epena Law
Theme URI: https://epena-law.com/
Author: Epena Law
Author URI: https://epena-law.com/
Description: Custom high-performance WordPress theme for Epena Law.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: epena
*/

:root {
  /* Color */
  --red: #A12527;
  --red-deep: #7D1D1F;
  --ink: #1C2230;
  --ink-soft: #3B4354;
  --muted: #647084;
  --line: #D8DCE3;
  --mist: #F1F3F6;
  --sky-subtle: #EBF3FA;
  --sky-subtle-border: #D8E5F0;
  --paper: #FFFFFF;
  --ochre: #c9a227;
  --orange: #F5911E;
  --btn-bg: #A12527;
  --btn-fg: #FFFFFF;
  --focus: #1F5FBF;

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Shape and layers */
  --radius-control: 4px;
  --radius-btn: 10px;
  --radius-pill: 999px;
  --shadow-raised: 0 8px 24px rgba(28, 34, 48, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .display, .h1-style, .h2-style, .h3-style {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.display {
  font-size: 52px;
  line-height: 55px;
}

.h1-style {
  font-size: 40px;
  line-height: 44px;
}

.h2-style {
  font-size: 30px;
  line-height: 35px;
}

.h3-style {
  font-size: 22px;
  line-height: 27px;
}

.body-text {
  font-size: 17px;
  line-height: 27px;
}

.small-text {
  font-size: 14px;
  line-height: 21px;
}

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 36px;
  font-weight: 400;
  color: var(--paper);
}

.label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-2);
}

.label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--orange);
  display: inline-block;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 145, 30, 0.5); }
  50% { opacity: 0.7; transform: scale(1.4); box-shadow: 0 0 8px 2px rgba(245, 145, 30, 0.3); }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

/* Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.text-center { text-align: center; }
.center-text { margin-left: auto; margin-right: auto; }
.white-text { color: var(--paper) !important; }
.red-text { color: var(--red) !important; }
.bg-mist { background-color: var(--mist); }
.bg-ink { background-color: var(--ink); }
.opacity-80 { opacity: 0.8; }
.opacity-70 { opacity: 0.7; }
.opacity-50 { opacity: 0.5; }
.mb-1 { margin-bottom: var(--space-2); }
.mb-2 { margin-bottom: var(--space-4); }
.mb-3 { margin-bottom: var(--space-5); }
.mb-4 { margin-bottom: var(--space-6); }
.mb-6 { margin-bottom: var(--space-8); }
.mt-2 { margin-top: var(--space-4); }
.mt-3 { margin-top: var(--space-5); }
.mt-4 { margin-top: var(--space-6); }
.section-padding { padding: var(--space-9) 0; }

/* Buttons & Links */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  border-radius: var(--radius-btn, 10px);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--radius-btn, 10px);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
}

.btn-primary:hover {
  background-color: var(--red-deep);
  border-color: var(--red-deep);
}

.btn-secondary {
  background-color: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}

.btn-secondary:hover {
  background-color: rgba(179, 34, 45, 0.05);
}

.text-link {
  color: var(--red);
  text-decoration: underline;
  font-weight: 600;
  font-size: 15px;
}

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

/* Header */
.site-header {
  background: var(--paper);
  color: var(--red);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width, top, background;
}

/* Sticky header: white floating bar with a soft drop shadow */
.site-header.scrolled {
  width: 88%;
  max-width: 1400px;
  left: 50%;
  transform: translateX(-50%);
  top: 14px;
  background: var(--paper);
  border: 1px solid rgba(28, 34, 48, 0.06);
  border-radius: 16px;
  box-shadow:
    0 10px 30px rgba(28, 34, 48, 0.12),
    0 2px 6px rgba(28, 34, 48, 0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 18px;
}
.logo a {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.logo-text {
  font-weight: 700;
  color: var(--red);
  -webkit-text-fill-color: var(--red);
  background: none;
  transition: color 0.3s ease, -webkit-text-fill-color 0.3s ease, background 0.3s ease;
}

.logo-icon-wrapper {
  width: 32px;
  height: 32px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
}
.logo-icon-wrapper img {
  height: 100%;
  width: auto;
  max-width: none;
  filter: none;
  transition: filter 0.3s ease;
}

/* Logo: brand red (#A12527) in the default and sticky/scrolled header states */
.logo-text,
.logo a .logo-text,
.site-header .logo-text,
.site-header .logo a .logo-text,
.site-header:not(.scrolled) .logo-text,
.site-header:not(.scrolled) .logo a .logo-text,
.site-header.scrolled .logo-text,
.site-header.scrolled .logo a .logo-text {
  color: var(--red) !important;
  -webkit-text-fill-color: var(--red) !important;
  background: none !important;
}

/* Logo stays white while the mobile drawer is open (it sits over the dark scrim) */
body.nav-open .site-header .logo-text,
body.nav-open .site-header.scrolled .logo-text,
.site-header:has(.main-nav.open) .logo-text,
.site-header.scrolled:has(.main-nav.open) .logo-text {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
}

/* Logo hover: gold */
.site-header .logo a:hover .logo-text {
  color: var(--ochre) !important;
  -webkit-text-fill-color: var(--ochre) !important;
}

/* Logo icon: show the native brand-red artwork (no white filter) */
.logo-icon-wrapper img,
.site-header .logo-icon-wrapper img,
.site-header:not(.scrolled) .logo-icon-wrapper img,
.site-header.scrolled .logo-icon-wrapper img {
  filter: none !important;
}

body.nav-open .site-header .logo-icon-wrapper img,
body.nav-open .site-header.scrolled .logo-icon-wrapper img,
.site-header:has(.main-nav.open) .logo-icon-wrapper img,
.site-header.scrolled:has(.main-nav.open) .logo-icon-wrapper img {
  filter: brightness(0) invert(1) !important;
}

.footer-logo img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: var(--space-6);
}

.main-nav a {
  color: #000000;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--ochre);
}

.main-nav a.active {
  border-bottom-color: var(--red);
}

.main-nav a.active:hover {
  border-bottom-color: var(--ochre);
}

/* Navigation Dropdown - Hidden as requested */
.nav-dropdown,
.main-nav .nav-dropdown,
.footer-links .nav-dropdown {
  display: none !important;
}

/* Events Carousel Section - Hidden on home page as requested */
.events-carousel-section {
  display: none !important;
}

.nav-drop-btn {
  color: var(--paper);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.8;
  transition: opacity 0.3s ease, border-bottom-color 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  cursor: pointer;
  position: relative;
}

.nav-drop-btn::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--red);
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.nav-dropdown:hover .nav-drop-btn,
.nav-drop-btn.active {
  opacity: 1;
  border-bottom-color: var(--red);
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(28, 34, 48, 0.95);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 100;
  top: 100%;
  left: 0;
  border-top: 2px solid var(--red);
}

.nav-dropdown-content a {
  color: var(--paper) !important;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-transform: none;
  border-bottom: none !important;
  opacity: 0.8;
}

.nav-dropdown-content a:hover {
  background-color: var(--red);
  opacity: 1;
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switch a {
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.65;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.lang-switch a:hover {
  color: var(--ochre);
  opacity: 1;
}

.lang-switch a.active {
  opacity: 1;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  /* +80px compensates for the solid white fixed header covering the top of the slider */
  height: calc(90vh + 80px);
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  /* Add smooth zooming animation */
  animation: heroZoomIn 20s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(15, 18, 26, 0.45) 0%,
    rgba(15, 18, 26, 0.25) 50%,
    rgba(15, 18, 26, 0.65) 100%
  );
  z-index: 2;
}

@keyframes heroZoomIn {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-bottom: var(--space-8);
  width: 100%;
}

.hero-subtitle {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-3);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-subtitle::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--red);
  box-shadow: 0 0 10px rgba(161, 37, 39, 0.9);
  display: inline-block;
  flex-shrink: 0;
}

.hero .display {
  color: var(--paper);
  margin-bottom: var(--space-3);
  width: 60%;
  max-width: 60%;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: 20px;
  line-height: 1.55;
  font-family: var(--serif);
  opacity: 0.95;
  max-width: 760px;
  color: var(--paper);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero .btn-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero .btn-secondary:hover {
  background-color: #FFFFFF;
  color: var(--ink);
  border-color: #FFFFFF;
}

/* Slider Controls */
.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 18, 26, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0;
}

.hero-slider-nav:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-50%) scale(1.08);
}

.hero-slider-nav.prev {
  left: 24px;
}

.hero-slider-nav.next {
  right: 24px;
}

.hero-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
  width: 48px;
  background: var(--red);
  box-shadow: 0 0 10px rgba(161, 37, 39, 0.7);
}

@media (max-width: 768px) {
  .hero .display {
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-slider-nav {
    display: none;
  }
  .hero-slider-dots {
    bottom: 16px;
  }
  .hero-content {
    padding-bottom: 48px;
  }
  .hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }
  .hero-actions .btn {
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .btn {
    padding: 9px 11px;
    font-size: 13px;
    letter-spacing: -0.01em;
  }
}

@media (max-width: 360px) {
  .hero-actions {
    gap: 6px;
  }
  .hero-actions .btn {
    padding: 8px 8px;
    font-size: 11.5px;
  }
}

/* About / Stats Section */
.about-section {
  position: relative;
  background: transparent !important;
  background-image: none !important;
  color: #a12527;
  padding-top: 0 !important;
  padding-bottom: var(--space-7) !important;
}

.about-overlay {
  display: none !important;
}

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

.about-section .pull-quote {
  max-width: 1240px;
  margin: 0 auto var(--space-6) auto;
  color: #a12527;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  max-width: 1080px;
  margin: 0 auto;
}

.about-section .pull-quote + .stats-grid {
  border-top: 1px solid rgba(161, 37, 39, 0.2);
  padding-top: var(--space-5);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  color: #a12527 !important;
  background: rgba(161, 37, 39, 0.08);
  border: 1px solid rgba(161, 37, 39, 0.22);
  box-shadow: 0 4px 14px rgba(161, 37, 39, 0.08);
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover .stat-icon {
  transform: translateY(-3px) scale(1.05);
  background: rgba(161, 37, 39, 0.16);
  border-color: #a12527;
  box-shadow: 0 6px 18px rgba(161, 37, 39, 0.2);
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: #a12527 !important;
}

.stat-item h2 {
  color: #a12527 !important;
  font-size: 41px;
  font-family: var(--serif);
  line-height: 1.15;
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  color: #a12527 !important;
  line-height: 1.4;
}

/* Split Section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  padding-bottom: var(--space-6) !important;
}

.split-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(28, 34, 48, 0.12);
  aspect-ratio: 3 / 4;
  background-color: #121622;
  max-width: 500px;
  width: 100%;
}

.split-image-wrap .split-image {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.split-image-wrap:hover .split-image {
  transform: scale(1.03);
}

/* Sectors Banner */
.sectors-banner {
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.sectors-overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 20%, rgba(255,255,255,0.9) 70%, rgba(255,255,255,1));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10vw;
}

.sectors-box {
  background-color: var(--paper);
  padding: var(--space-8);
  max-width: 500px;
  box-shadow: var(--shadow-raised);
}

/* Practice Areas Showcase Section */
.practice-showcase-section {
  position: relative;
  overflow: hidden;
  background-color: #FAF8F5;
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}

.practice-showcase-wrapper {
  display: flex;
  align-items: flex-start;
  gap: var(--space-7);
  padding-left: max(var(--space-6), calc((100vw - 1240px) / 2 + var(--space-6)));
  padding-right: 0;
  width: 100%;
}

.practice-showcase-left {
  flex: 0 0 350px;
  max-width: 380px;
  padding-right: var(--space-4);
  padding-top: var(--space-3);
  z-index: 2;
}

.practice-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-3);
}

.practice-label-row .label {
  margin-bottom: 0;
  letter-spacing: 1px;
}

.practice-label-line {
  display: none;
}

.practice-main-title {
  font-size: 38px;
  line-height: 44px;
  margin-bottom: var(--space-4);
  color: var(--ink);
}

.practice-main-desc {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 26px;
  margin-bottom: var(--space-5);
}

.practice-action-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.practice-showcase-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.practice-slider-bottom-nav {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--space-5);
}

.practice-slider-controls {
  display: flex;
  gap: 10px;
}

.practice-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 2px 8px rgba(28, 34, 48, 0.05);
}

.practice-nav-btn:hover {
  background: var(--red);
  color: #FFFFFF;
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(161, 37, 39, 0.25);
}

/* Track & Cards */
.practice-showcase-slider {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: var(--space-3);
  padding-bottom: var(--space-4);
  margin-bottom: calc(-1 * var(--space-4)); /* keeps shadow room without lowering the card bottoms */
  padding-right: max(var(--space-6), calc((100vw - 1240px) / 2 + var(--space-6)));
  cursor: grab;
}

.practice-showcase-slider.grabbing {
  cursor: grabbing;
  scroll-behavior: auto;
}

.practice-showcase-slider::-webkit-scrollbar {
  display: none;
}

.practice-cards-track {
  display: flex;
  gap: 18px;
  width: max-content;
}

.practice-card-tile {
  flex: 0 0 250px;
  width: 250px;
  height: 365px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px;
  scroll-snap-align: start;
  box-shadow: 0 10px 28px rgba(18, 22, 34, 0.14);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.practice-card-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(18, 22, 34, 0.24);
}

.practice-card-tile .practice-tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.practice-card-tile:hover .practice-tile-bg {
  transform: scale(1.08);
}

.practice-card-tile .practice-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 16, 26, 0.04) 0%,
    rgba(10, 16, 26, 0.35) 45%,
    rgba(8, 14, 24, 0.90) 80%,
    rgba(6, 10, 18, 0.98) 100%
  );
  z-index: 2;
  transition: opacity 0.3s ease;
}

.practice-card-tile:hover .practice-tile-overlay {
  opacity: 0.95;
}

.practice-tile-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.practice-tile-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  margin-bottom: 6px;
  transition: all 0.3s ease;
}

.practice-card-tile:hover .practice-tile-icon-box {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.practice-tile-title {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 25px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.practice-tile-desc {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.80);
  margin: 0;
}

.practice-tile-arrow {
  margin-top: 6px;
  color: #FFFFFF;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.practice-card-tile:hover .practice-tile-arrow {
  transform: translateX(6px);
  color: var(--orange);
}

@media (max-width: 1024px) {
  .practice-showcase-wrapper {
    flex-direction: column;
    align-items: flex-start;
    padding-left: var(--space-5);
    gap: var(--space-5);
  }
  .practice-showcase-left {
    flex: none;
    max-width: 100%;
    padding-right: var(--space-5);
    padding-top: 0;
  }
  .practice-showcase-right {
    width: 100%;
  }
  .practice-slider-bottom-nav {
    margin-top: var(--space-4);
  }
  .practice-showcase-slider {
    width: 100%;
    padding-right: var(--space-5);
    margin-bottom: 0;
  }
}

/* Infinite loop carousels (Practice Areas + Team) — driven by transform, not scroll */
.is-loop-carousel {
  overflow: hidden !important;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.is-loop-carousel.is-dragging {
  cursor: grabbing;
}
.is-loop-carousel > * {
  will-change: transform;
}
.is-loop-carousel img {
  -webkit-user-drag: none;
}
button.team-dot {
  border: 0;
  padding: 0;
  appearance: none;
}

/* Expertise Section */
.expertise-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.expertise-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.practice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--mist);
  padding: var(--space-4) var(--space-5);
  text-decoration: none;
  color: var(--ink-soft);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.practice-item:hover {
  background-color: var(--paper);
  border-color: var(--line);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28, 34, 48, 0.05);
}

.practice-item .practice-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.practice-item .practice-icon {
  color: var(--red);
  font-size: 20px;
  font-weight: bold;
}

/* Team Section */
.team-section {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.profile-section {
  padding: 120px 0;
}

.profile-section .label {
  justify-content: center;
}

.profile-divider {
  border: none;
  width: 60%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.4);
  margin: 0 auto var(--space-5);
}

.team-content {
  max-width: 1240px;
}

/* Insights Section */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.insights-subgrid {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-6);
}

.insight-card {
  background-color: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.insight-card .card-img {
  height: 240px;
  background-size: cover;
  background-position: center;
}

.insight-card.featured .card-img {
  height: 350px;
}

.insight-card.featured .card-content {
  background-color: var(--ink);
  color: var(--paper);
}

.insight-card.small-card {
  flex-direction: row;
}

.insight-card.small-card .card-img {
  width: 40%;
  height: auto;
}

.insight-card.small-card .card-content {
  width: 60%;
  padding: var(--space-4);
}

.card-content {
  padding: var(--space-6);
}

/* Practice Areas Section Background */
.practice-showcase-section,
.practice-areas-full-grid-section,
.practice-areas-wrapper,
.bg-practice-cream {
  background-color: #FAF8F5 !important;
}

/* Contact Banner */
.contact-banner {
  position: relative;
  overflow: hidden;
  background-color: #FAF8F5 !important;
  background-image: none !important;
}

.contact-banner::before,
.contact-banner-overlay {
  display: none !important;
}

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

.contact-banner h2,
.contact-banner .h1-style,
.contact-banner .white-text {
  color: var(--ink) !important;
}

.contact-banner p,
.contact-banner .body-text {
  color: var(--ink-soft) !important;
  opacity: 1 !important;
}

/* Footer */
footer,
.site-footer,
.site-footer.bg-ink,
.site-footer.bg-black {
  padding: var(--space-8) 0 var(--space-5) 0;
  background-color: #FFFFFF !important;
  background: #FFFFFF !important;
  color: var(--ink) !important;
  border-top: 1px solid rgba(28, 34, 48, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1.8fr 1.7fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 2px solid #a12527 !important; /* Brand red divider */
  margin-bottom: var(--space-5);
}

.footer-brand .footer-brand-tagline,
.footer-brand p {
  color: var(--ink-soft) !important;
  opacity: 0.85 !important;
  font-size: 15px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--ink) !important;
  opacity: 0.85;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: #a12527 !important;
  transform: translateX(2px);
}

.footer-col-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink) !important;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.footer-contact-block {
  margin-bottom: var(--space-4);
}

.footer-contact-block:last-child {
  margin-bottom: 0;
}

.footer-contact-info,
.footer-contact p {
  color: var(--ink-soft) !important;
  opacity: 0.9 !important;
  font-size: 14px;
  line-height: 1.6;
}

.footer-phone-link,
.footer-email-link {
  color: var(--ink-soft) !important;
  text-decoration: none;
  display: inline-block;
  margin-top: 2px;
  transition: color 0.2s ease;
}

.footer-phone-link:hover,
.footer-email-link:hover {
  color: #a12527 !important;
}

.footer-hours-block {
  margin-bottom: var(--space-4);
}

.footer-hours-text {
  color: var(--ink-soft) !important;
  opacity: 0.9 !important;
  font-size: 14px;
  line-height: 1.5;
}

.footer-newsletter-desc {
  color: var(--ink-soft) !important;
  opacity: 0.8 !important;
  font-size: 13.5px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.footer-newsletter-form {
  margin-top: 6px;
}

.footer-newsletter-input-group {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  border: 1px solid rgba(28, 34, 48, 0.2);
  border-radius: var(--radius-btn, 8px);
  overflow: hidden;
  background: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-newsletter-input-group:focus-within {
  border-color: #a12527;
  box-shadow: 0 0 0 3px rgba(161, 37, 39, 0.15);
}

.footer-newsletter-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--sans);
  outline: none;
}

.footer-newsletter-input::placeholder {
  color: #8C94A0;
}

.footer-newsletter-btn {
  background-color: #a12527;
  color: #FFFFFF;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: background-color 0.2s ease;
}

.footer-newsletter-btn:hover {
  background-color: var(--red-deep, #7d1d1f);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-2);
}

.footer-bottom p,
.footer-bottom .small-text,
.footer-bottom .white-text {
  color: var(--muted, #647084) !important;
  opacity: 0.9 !important;
  font-size: 13.5px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(28, 34, 48, 0.05);
  border: 1px solid rgba(28, 34, 48, 0.12);
  transition: all 0.25s ease;
  opacity: 0.9;
  text-decoration: none;
}

.social-links a:hover {
  opacity: 1;
  color: #FFFFFF;
  background: #a12527;
  border-color: #a12527;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(161, 37, 39, 0.3);
}

.social-links a svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.social-links a:hover svg {
  transform: scale(1.08);
}

/* Mobile drawer menu footer */
.mobile-menu-footer {
  display: none;
}

/* Responsive */
@media (max-width: 960px) {
  .split-section, .expertise-section, .insights-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid, .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .sectors-overlay {
    background: rgba(255,255,255,0.9);
    padding: var(--space-5);
    justify-content: center;
  }
  .hero .display {
    font-size: 40px;
    line-height: 44px;
  }
}

@media (max-width: 640px) {
  .stats-grid, .footer-grid, .expertise-right {
    grid-template-columns: 1fr;
  }
  .main-nav {
    display: none;
  }
  .insight-card.small-card {
    flex-direction: column;
  }
  .insight-card.small-card .card-img, .insight-card.small-card .card-content {
    width: 100%;
  }
  .insight-card.small-card .card-img {
    height: 200px;
  }
}

/* Rewards Section */
.rewards-section {
  background-color: var(--paper);
}

.awards-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.awards-title-row .h1-style {
  white-space: nowrap;
  margin: 0;
}

.awards-line {
  flex: 1;
  height: 1px;
  background-color: var(--line);
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
}

.carousel-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.carousel-track {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  width: max-content;
  padding: var(--space-2) 0;
}

.carousel-track img {
  height: 80px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply; /* Removes white background */
  transition: transform 0.3s ease;
}

.carousel-track img:hover {
  transform: scale(1.05);
}

#clients-carousel .carousel-track,
#awards-carousel .carousel-track {
  gap: var(--space-6) !important;
}

@media (max-width: 768px) {
  #clients-carousel .carousel-track,
  #awards-carousel .carousel-track {
    gap: var(--space-4) !important;
  }
}

.carousel-nav {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--red);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.carousel-nav:hover {
  background-color: var(--red);
  color: var(--paper);
  border-color: var(--red);
}

/* Our Team Section */
.our-team-section {
  background-color: #FAF8F5 !important;
  border-top: none;
  border-bottom: none;
}

.team-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.team-carousel-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.team-carousel-container::-webkit-scrollbar {
  display: none;
}

.team-carousel-track {
  display: flex;
  gap: var(--space-5);
  width: max-content;
  padding: var(--space-2) var(--space-1);
}

.team-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(28, 34, 48, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: var(--ink);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28, 34, 48, 0.12);
}

.team-card-img {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background-color: #e8e8e8;
  position: relative;
  display: block;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(20%);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.team-card:hover .team-card-img img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.team-card-info {
  padding: 22px 24px 26px;
  background-color: var(--paper);
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-card-info h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}

.team-card-info p {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--red);
  margin: 0;
}


/* Team Member Individual Page */
.team-member-page {
  background-color: var(--mist);
  padding: calc(var(--space-9) + 80px) 0 var(--space-9) 0;
}

.team-member-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: var(--space-7);
  align-items: start;
}

.team-member-card {
  background-color: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-raised);
}

.team-member-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
}

.team-member-card-info {
  padding: var(--space-5);
}

.team-member-card-info h1 {
  color: var(--paper);
  font-size: 32px;
  margin-bottom: var(--space-1);
}

.team-member-card-info .title {
  color: var(--red);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.team-member-divider {
  border: none;
  height: 1px;
  background-color: rgba(255,255,255,0.1);
  margin-bottom: var(--space-4);
}

.team-member-contact p {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 14px;
  margin-bottom: var(--space-3);
  color: rgba(255,255,255,0.9);
}

.team-member-contact p svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.6;
}

.team-member-details .accordion-item {
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-header h2 {
  font-size: 24px;
  color: var(--ink);
  font-weight: 400;
  margin: 0;
}

.accordion-icon {
  color: var(--red);
  font-size: 24px;
  font-weight: 300;
  user-select: none;
}

.accordion-content {
  margin-top: var(--space-4);
  display: none;
}

.accordion-item.active .accordion-content {
  display: block;
}

.accordion-item.active .accordion-icon::before {
  content: '-';
}

.accordion-item:not(.active) .accordion-icon::before {
  content: '+';
}

.experience-intro {
  color: var(--muted);
  margin-bottom: var(--space-4);
  font-size: 15px;
}

.experience-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  position: relative;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 8px;
  width: calc(100% - 16px);
  height: 1px;
  background-color: var(--line);
  z-index: 0;
}

.experience-item {
  position: relative;
  z-index: 1;
  padding-top: var(--space-5);
  flex: 1;
  min-width: 140px;
}

.experience-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  background-color: var(--mist);
  border: 2px solid var(--red);
  border-radius: 50%;
}

.experience-item h4 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}

.experience-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.expertise-tag {
  border: 1px solid var(--line);
  padding: 8px 16px;
  font-size: 14px;
  background-color: var(--paper);
  color: var(--ink);
}

@media (max-width: 960px) {
  .team-member-grid {
    grid-template-columns: 1fr;
  }
}


/* Global Page Banner */
.global-page-banner {
  position: relative;
  height: 380px;
  background-image: url('assets/global-banner.jpg');
  background-size: cover;
  background-position: center 25%;
  display: flex;
  align-items: flex-end;
  padding-top: 80px; /* offset fixed header */
  padding-bottom: var(--space-7);
}

.team-member-page-with-banner {
  background-color: var(--mist);
  padding: var(--space-9) 0 var(--space-9) 0;
}

.global-page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(15, 18, 26, 0.45) 0%,
    rgba(15, 18, 26, 0.25) 50%,
    rgba(15, 18, 26, 0.60) 100%
  );
  z-index: 1;
}

.global-page-banner .banner-content {
  position: relative;
  z-index: 2;
  color: var(--paper);
}

.breadcrumb {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}

.breadcrumb a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.breadcrumb a:hover {
  opacity: 1;
  color: var(--red);
}

.breadcrumb .current {
  color: var(--red);
}

.global-page-banner .page-title {
  font-size: 48px;
  font-family: var(--serif);
  color: var(--paper);
  margin: 0;
}

/* ================================================
   Our Team Listing Page
   ================================================ */

.team-listing-intro {
  background-color: var(--paper);
}

.team-listing-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.team-listing-section {
  padding: var(--space-9) 0;
}

.team-category-header {
  margin-bottom: var(--space-5);
}

.mt-section {
  margin-top: var(--space-9);
}

.team-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.team-listing-card {
  background-color: var(--paper);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(28, 34, 48, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.team-listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28, 34, 48, 0.12);
}

.team-listing-card-img {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background-color: #e8e8e8;
  display: block;
}

.team-listing-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: grayscale(20%);
}

.team-listing-card:hover .team-listing-card-img img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.team-listing-card-info {
  padding: 22px 24px 26px;
  background-color: var(--paper);
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-listing-card-info h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}

.team-listing-card-info .role {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--red);
  margin: 0;
}

.team-listing-card-info .view-profile {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: var(--space-2);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.team-listing-card:hover .view-profile {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 960px) {
  .team-listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-listing-intro-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

@media (max-width: 640px) {
  .team-listing-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   ABOUT US PAGE
   ============================================= */

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.value-card {
  border-top: 2px solid var(--red);
  padding-top: var(--space-5);
}

.value-number {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: var(--space-3);
}

.value-card .h3-style {
  margin-bottom: var(--space-3);
}

.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.office-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: var(--space-7) var(--space-6);
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.office-card:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-4px);
}

.office-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
}

.muted-text {
  color: var(--muted);
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .offices-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   PRACTICE AREAS PAGE
   ============================================= */

.practice-areas-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.practice-area-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(28, 34, 48, 0.06);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.practice-area-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(28, 34, 48, 0.12);
  border-color: rgba(161, 37, 39, 0.45);
}

/* Top Part: Featured Image */
.practice-card-top {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #1c2230;
}

.practice-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}

.practice-area-card:hover .practice-card-img {
  transform: scale(1.06);
}

.practice-card-top::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(28, 34, 48, 0.05) 0%, rgba(28, 34, 48, 0.35) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.practice-area-card:hover .practice-card-top::after {
  opacity: 0.8;
}

/* Bottom Part: Practice Area Info + Excerpt + Button */
.practice-card-bottom {
  padding: 24px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--paper);
}

.practice-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.practice-card-header .practice-area-icon {
  color: var(--red);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.practice-card-header .practice-area-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.practice-card-header .practice-area-icon svg[stroke] {
  fill: none;
  stroke: currentColor;
}

.practice-card-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.practice-card-excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 22px 0;
  flex-grow: 1;
}

.practice-card-action {
  margin-top: auto;
}

.practice-card-action .practice-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-btn, 10px);
  cursor: pointer;
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  transition: all 0.25s ease;
}

.practice-card-action .practice-btn:hover {
  background-color: var(--red-deep);
  border-color: var(--red-deep);
}

.practice-card-action .practice-btn .btn-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.practice-card-action .practice-btn:hover .btn-arrow {
  transform: translateX(4px);
}

@media (max-width: 960px) {
  .practice-areas-full-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}

@media (max-width: 640px) {
  .practice-areas-full-grid {
    grid-template-columns: 1fr;
  }
  .practice-card-top {
    height: 200px;
  }
  .practice-card-bottom {
    padding: 20px;
  }
}

/* =============================================
   CAREERS PAGE
   ============================================= */

.careers-listing {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.career-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.career-item:hover {
  background: var(--mist);
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  margin-left: calc(-1 * var(--space-4));
  margin-right: calc(-1 * var(--space-4));
  border-radius: var(--radius-control);
}

.career-item-main {
  flex: 1;
}

.career-meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.career-tag {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 2px var(--space-3);
  letter-spacing: 0.02em;
}

.career-apply-btn {
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

.careers-speculative {
  border: 1px dashed var(--line);
  border-radius: var(--radius-control);
  padding: var(--space-5) var(--space-6);
  background: var(--mist);
}

@media (max-width: 768px) {
  .career-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .career-apply-btn {
    align-self: flex-start;
  }
}

/* =============================================
   CONTACT US PAGE
   ============================================= */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-9);
  align-items: start;
}

.contact-office-block {
  border-top: 2px solid var(--red);
  padding-top: var(--space-4);
}

.contact-link {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-link:hover {
  color: var(--red);
}

.social-links-contact {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.social-btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn, 10px);
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}

/* Form styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: var(--space-3) var(--space-4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(28, 34, 48, 0.1);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23647084' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-7);
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-3);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}

.checkbox-label {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  cursor: pointer;
  line-height: 1.5;
}

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

.form-success {
  background: #f0faf0;
  border: 1px solid #4caf50;
  border-radius: var(--radius-control);
  padding: var(--space-4) var(--space-5);
  color: #2e7d32;
  font-family: var(--sans);
  font-size: 15px;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}


/* ═══ Practice Area Modal ═══ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: white;
  padding: 48px;
  width: 90%;
  max-width: 720px;
  border-radius: 12px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--text-dark);
  transition: color 0.2s;
  line-height: 1;
}
.modal-close:hover {
  color: var(--red);
}
.modal-title {
  color: var(--ink);
  margin-bottom: 20px;
}
.modal-icon {
  color: var(--red);
  margin-bottom: 12px;
}
.modal-icon svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
}
.modal-list {
  padding-left: 22px;
  margin-bottom: 24px;
}
.modal-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .modal-content {
    padding: 32px 20px;
  }
  .modal-actions {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
  .modal-actions .btn {
    padding: 10px 12px !important;
    font-size: 13.5px !important;
    white-space: nowrap;
    text-align: center;
    flex: 1 1 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }
}

/* Practice area card icons */
.practice-area-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}
.practice-area-icon svg[stroke] {
  fill: none;
  stroke: currentColor;
}
.practice-btn {
  cursor: pointer;
}

/* ============================================= */
/* Events Page — Card Grid                       */
/* ============================================= */
.events-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-8) auto;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.event-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(28, 34, 48, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28, 34, 48, 0.12);
}

.carousel-event-card {
  width: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .carousel-event-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    scroll-snap-align: start !important;
  }
}

.event-card-img {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background-color: #e8e8e8;
  display: block;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.event-card:hover .event-card-img img {
  transform: scale(1.05);
}

.event-card-date {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(18, 22, 34, 0.78);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.event-card-body {
  padding: 22px 24px 26px;
  background: var(--paper);
  border-top: none;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-card-location {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 8px;
}

.event-card-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 12px;
}

.event-card-excerpt {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  transition: gap 0.3s ease;
}

.event-card-link:hover {
  gap: 10px;
}

.event-card-link .arrow {
  transition: transform 0.3s ease;
}

.event-card-link:hover .arrow {
  transform: translateX(3px);
}

.event-card-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 18px;
  background-color: var(--btn-bg);
  color: var(--btn-fg) !important;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-btn, 10px);
  transition: all 0.25s ease;
  width: fit-content;
}

.event-card-link-btn:hover {
  background-color: var(--red-deep);
}

.event-card-link-btn .arrow {
  transition: transform 0.25s ease;
}

.event-card-link-btn:hover .arrow {
  transform: translateX(3px);
}

.event-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.event-card-title a:hover {
  color: var(--red);
}

/* ============================================= */
/* Individual Event Page                         */
/* ============================================= */
.event-article {
  max-width: 820px;
  margin: 0 auto;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid #e5e5e5;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--slate);
}

.event-meta-item strong {
  color: var(--ink);
}

.event-meta-icon {
  width: 16px;
  height: 16px;
  fill: var(--red);
  flex-shrink: 0;
}

.event-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--space-6);
}

.event-body h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.event-body h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
}

.event-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: var(--space-4);
}

.event-body ul {
  padding-left: 22px;
  margin-bottom: var(--space-4);
}

.event-body ul li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--slate);
  font-size: 15px;
}

.event-body ul li strong {
  color: var(--ink);
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.event-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.event-gallery img:hover {
  transform: scale(1.03);
}

.event-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
  transition: gap 0.3s ease;
}

.event-back-link:hover {
  gap: 12px;
}

@media (max-width: 768px) {
  /* Prevent horizontal scrolling and viewport white space */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }
  .event-card-img {
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    max-height: 240px !important;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: block;
  }
  .event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
  }
  .event-gallery {
    grid-template-columns: 1fr 1fr;
  }

  /* --- Standard left & right margin for all mobile content containers (except full width) --- */
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .header-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .event-article,
  .events-intro,
  .team-content,
  .team-member-details,
  .career-item-main,
  .contact-layout {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Full width containers remain full width edge-to-edge */
  .hero,
  .global-page-banner,
  .sectors-banner,
  .about-section {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  .desktop-only {
    display: none !important;
  }

  /* On mobile view, EN|FR becomes the hamburger menu */
  .site-header .header-actions .lang-switch {
    display: none !important;
  }

  .header-actions {
    display: flex;
    align-items: center;
  }

  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 105;
    padding: 0;
  }
  .mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--red);
    border-radius: 10px;
    transition: all 0.3s linear;
    transform-origin: 1px;
  }

  .site-header {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
    background: var(--paper) !important;
  }

  .site-header.scrolled {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(28, 34, 48, 0.08) !important;
  }

  .site-header.scrolled .mobile-menu-toggle span {
    background: var(--red);
  }
  .site-header .mobile-menu-toggle:hover span {
    background: var(--ochre);
  }
  /* Close (X) icon stays white while the drawer is open (over the dark scrim) */
  .site-header .mobile-menu-toggle.open span {
    background: white;
  }
  .mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
  }
  .mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
  }
  
  /* Mobile Slide-out Menu (Strictly pinned to full viewport bounds; never shifts or moves upon scrolling) */
  .main-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    width: 80% !important;
    max-width: 360px !important;
    background-color: var(--ink) !important;
    flex-direction: column !important;
    padding: 48px 20px 20px !important;
    transform: translateX(100%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s !important;
    z-index: 99999 !important;
    display: flex !important;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    isolation: isolate !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
  }
  .main-nav.open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .main-nav > a {
    color: white !important;
    font-size: 15px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 6px;
    width: 100%;
  }
  .main-nav > a:hover {
    color: var(--ochre) !important;
  }

  /* Language switch accessible inside the mobile hamburger drawer */
  .mobile-lang-switch {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 2px solid var(--red);
    display: flex;
    gap: 15px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
  }
  .mobile-lang-switch a {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    font-size: 15px !important;
    opacity: 0.6;
    width: auto !important;
  }
  .mobile-lang-switch a.active {
    opacity: 1;
    color: var(--red) !important;
  }

  /* Mobile menu footer (social handles & copyright under them) */
  .mobile-menu-footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 100% !important;
    flex-shrink: 0 !important;
  }
  .mobile-menu-footer .mobile-social-links {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .mobile-menu-footer .mobile-social-links a {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--paper) !important;
    border-bottom: none !important;
  }
  .mobile-menu-footer .mobile-social-links a svg {
    width: 15px !important;
    height: 15px !important;
  }
  .mobile-menu-footer .mobile-social-links a:hover {
    background: var(--red) !important;
    border-color: var(--red) !important;
  }
  .mobile-menu-footer .mobile-menu-copyright {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 0 !important;
    line-height: 1.4 !important;
  }

  /* Mobile footer bottom layout: copyright UNDER social icons */
  .footer-bottom {
    flex-direction: column-reverse !important;
    gap: 16px !important;
    align-items: center !important;
    text-align: center !important;
    padding-top: 12px !important;
  }
  .footer-bottom .social-links {
    justify-content: center !important;
    gap: 12px !important;
  }
  .footer-bottom p {
    text-align: center !important;
    font-size: 13px !important;
    margin: 0 !important;
  }
  
  /* Profile Card Design Tokens (Derived from Managing Partner Reference Card) */
  :root {
    --card-profile-radius: 0px;
    --card-profile-border: 1px solid var(--line, #e5e7eb);
    --card-profile-bg: var(--paper, #ffffff);
    --card-profile-shadow: 0 4px 16px rgba(28, 34, 48, 0.05);
    --card-profile-img-aspect: 1 / 1;
    --card-profile-padding: 20px 24px 24px;
    --card-profile-info-height: 228px;
    
    /* Typography */
    --card-profile-name-font: var(--serif, 'Newsreader', serif);
    --card-profile-name-size: 20px;
    --card-profile-name-weight: 600;
    --card-profile-name-color: var(--ink, #1c2230);
    --card-profile-name-lh: 1.25;

    --card-profile-role-font: var(--sans, 'Public Sans', sans-serif);
    --card-profile-role-size: 13px;
    --card-profile-role-weight: 600;
    --card-profile-role-color: var(--red, #e32119);
    --card-profile-role-spacing: 0.8px;

    /* Arrow navigation tokens */
    --card-nav-size: 44px;
    --card-nav-bg: #ffffff;
    --card-nav-color: var(--ink, #1c2230);
    --card-nav-shadow: 0 4px 14px rgba(28, 34, 48, 0.16);
  }

  /* Team & Event Carousel Mobile Wrapper */
  .team-carousel-wrapper,
  .carousel-wrapper {
    position: relative !important;
    display: block !important;
    container-type: inline-size;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto;
    padding-bottom: 24px;
  }

  /* Hide desktop outside-wrapper nav buttons on mobile */
  .team-carousel-wrapper > .carousel-nav,
  .carousel-wrapper > .carousel-nav {
    display: none !important;
  }

  /* Mobile inner scroll container */
  .team-carousel-container,
  .carousel-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100% !important;
    box-sizing: border-box !important;
    width: 100%;
    scroll-behavior: smooth;
  }
  .team-carousel-container::-webkit-scrollbar,
  .carousel-container::-webkit-scrollbar {
    display: none;
  }
  .team-carousel-track,
  .carousel-track {
    display: flex !important;
    width: max-content !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Profile Card & Slide Dimensions (1 full card per slide) */
  .card--profile,
  .team-card,
  .carousel-event-card {
    flex: 0 0 calc(100vw - 40px) !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    min-width: calc(100vw - 40px) !important;
    flex: 0 0 100cqw !important;
    width: 100cqw !important;
    max-width: 100cqw !important;
    min-width: 100cqw !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    box-sizing: border-box !important;
    border-radius: var(--card-profile-radius, 0px) !important;
    border: var(--card-profile-border, 1px solid var(--line)) !important;
    background-color: var(--card-profile-bg, #ffffff) !important;
    box-shadow: var(--card-profile-shadow, 0 4px 16px rgba(28, 34, 48, 0.05)) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: var(--ink) !important;
    margin: 0 !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  }

  /* Square-ish image area on top, full card width */
  .card--profile .card--profile-img,
  .team-card-img,
  .carousel-event-card .event-card-img {
    width: 100% !important;
    aspect-ratio: var(--card-profile-img-aspect, 1 / 1) !important;
    height: auto !important;
    max-height: unset !important;
    overflow: hidden !important;
    background-color: #e8e8e8 !important;
    position: relative !important;
    display: block !important;
  }

  .card--profile .card--profile-img img,
  .team-card-img img,
  .carousel-event-card .event-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
    transition: transform 0.4s ease, filter 0.4s ease !important;
  }

  /* Grayscale treatment for team photos */
  .team-card-img img {
    filter: grayscale(100%) !important;
  }
  .team-card:hover .team-card-img img,
  .team-card:active .team-card-img img {
    filter: grayscale(0%) !important;
    transform: scale(1.02) !important;
  }

  /* White content panel below the image with identical padding and height */
  .card--profile .card--profile-info,
  .team-card-info,
  .carousel-event-card .event-card-body {
    padding: var(--card-profile-padding, 22px 24px 24px) !important;
    background: var(--card-profile-bg, #ffffff) !important;
    border-top: none !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    height: var(--card-profile-info-height, 205px) !important;
    min-height: var(--card-profile-info-height, 205px) !important;
    max-height: var(--card-profile-info-height, 205px) !important;
    overflow: hidden !important;
    gap: 6px !important;
    text-align: left !important;
  }

  /* Name / Title Typography */
  .team-card-info h3,
  .carousel-event-card .event-card-title,
  .carousel-event-card .event-card-title a {
    font-family: var(--card-profile-name-font, var(--serif)) !important;
    font-size: var(--card-profile-name-size, 20px) !important;
    font-weight: var(--card-profile-name-weight, 600) !important;
    color: var(--card-profile-name-color, var(--ink)) !important;
    line-height: var(--card-profile-name-lh, 1.25) !important;
    margin: 0 !important;
    text-decoration: none !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }

  /* Role / Location Typography */
  .team-card-info p,
  .carousel-event-card .event-card-location {
    font-family: var(--card-profile-role-font, var(--sans)) !important;
    font-size: var(--card-profile-role-size, 13px) !important;
    font-weight: var(--card-profile-role-weight, 600) !important;
    letter-spacing: var(--card-profile-role-spacing, 0.8px) !important;
    text-transform: uppercase !important;
    color: var(--card-profile-role-color, var(--red)) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }

  /* Events Carousel Content Panel Items */
  .carousel-event-card .event-card-location {
    order: 1 !important;
  }

  .carousel-event-card .event-card-title {
    order: 2 !important;
  }

  .carousel-event-card .event-card-excerpt {
    order: 3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-family: var(--sans) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    color: var(--slate, #64748b) !important;
    margin: 2px 0 0 0 !important;
  }

  .carousel-event-card .event-card-link-btn {
    order: 4 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: var(--sans) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--card-profile-role-color, var(--red)) !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    text-decoration: none !important;
    margin-top: auto !important;
    width: fit-content !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
  }
  .carousel-event-card .event-card-link-btn:hover {
    color: var(--red-deep, #c41d16) !important;
    background: transparent !important;
  }
  .carousel-event-card .event-card-link-btn .arrow {
    display: inline-block !important;
    transition: transform 0.2s ease !important;
  }
  .carousel-event-card .event-card-link-btn:hover .arrow {
    transform: translateX(3px) !important;
  }

  /* Navigation Arrows — Circular white buttons overlapping card edges */
  .mobile-card-nav {
    position: absolute !important;
    top: calc((100vw - 40px) / 2) !important;
    top: 50cqw !important;
    transform: translateY(-50%) !important;
    width: var(--card-nav-size, 44px) !important;
    height: var(--card-nav-size, 44px) !important;
    min-width: var(--card-nav-size, 44px) !important;
    min-height: var(--card-nav-size, 44px) !important;
    border-radius: 50% !important;
    background: var(--card-nav-bg, #ffffff) !important;
    border: 1px solid rgba(28, 34, 48, 0.1) !important;
    color: var(--card-nav-color, var(--ink)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    cursor: pointer !important;
    z-index: 20 !important;
    box-shadow: var(--card-nav-shadow, 0 4px 14px rgba(28, 34, 48, 0.16)) !important;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease !important;
    line-height: 1 !important;
    padding: 0 !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .mobile-card-nav:hover,
  .mobile-card-nav:active {
    background: #ffffff !important;
    color: var(--red) !important;
    box-shadow: 0 6px 18px rgba(28, 34, 48, 0.24) !important;
    transform: translateY(-50%) scale(1.05) !important;
  }
  .mobile-card-nav.prev {
    left: -14px !important;
  }
  .mobile-card-nav.next {
    right: -14px !important;
  }

  /* Dots pagination on mobile */
  .team-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }
  .team-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: var(--line, #e5e7eb) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
  }
  .team-dot.active {
    background-color: var(--red) !important;
    width: 20px !important;
    border-radius: 4px !important;
  }

  /* Form and item overflow fixes */
  .career-item:hover {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile close button */
  .mobile-close-btn {
    position: absolute;
    top: 24px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
    padding: 8px;
  }
  .mobile-close-btn svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2;
  }
  .mobile-close-btn:hover svg {
    stroke: var(--red);
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle, .mobile-lang-switch, .mobile-close-btn {
    display: none !important;
  }
}

/* ===== Mobile refinements: tighter team card, no Read More, tinted floating header ===== */
@media (max-width: 768px) {
  .team-card-info,
  .carousel-event-card .event-card-body {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 20px 24px 14px !important;
  }
  .carousel-event-card .event-card-link-btn {
    display: none !important;
  }
  .team-carousel-wrapper,
  .carousel-wrapper {
    padding-bottom: 8px !important;
  }
  .team-pagination {
    margin-top: 12px !important;
  }
  .site-header.scrolled {
    width: auto !important;
    max-width: none !important;
    left: 12px !important;
    right: 12px !important;
    top: 10px !important;
    transform: none !important;
    background: var(--paper) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(28, 34, 48, 0.06) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(28, 34, 48, 0.12), 0 2px 6px rgba(28, 34, 48, 0.06) !important;
  }
  .site-header.scrolled .header-container {
    height: 64px;
  }

  /* When mobile side panel is open, header must remain unshifted and full-width so drawer is pinned with zero gap */
  html.nav-open,
  body.nav-open {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
  }

  /* Backdrop scrim behind drawer (clean dark overlay without blur artifacts) */
  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 22, 0.65);
    z-index: 99998;
    pointer-events: auto;
  }

  body.nav-open .site-header,
  body.nav-open .site-header.scrolled,
  .site-header:has(.main-nav.open),
  .site-header.scrolled:has(.main-nav.open) {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    transition: none !important;
    z-index: 100000 !important;
  }
}

/* ===== Carousels: never show a scrollbar (swipe / arrows / dots only) ===== */
.carousel-container,
.team-carousel-container,
[class*="carousel-container"] {
  overflow-y: hidden;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* legacy Edge / IE */
}
.carousel-container::-webkit-scrollbar,
.team-carousel-container::-webkit-scrollbar,
[class*="carousel-container"]::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.team-pagination { display: none; }

/* ===== Equal vertical white space between every section =====
   One shared value: 96px on desktop, 64px on mobile. Adjacent sections that
   share a background (e.g. Expertise and Awards) don't double up. */
:root { --section-space: 96px; }
@media (max-width: 768px) { :root { --section-space: 64px; } }

.section-padding,
.profile-section,
.our-team-section,
.events-carousel-section,
.rewards-section,
.contact-banner,
.team-listing-section {
  padding-top: var(--section-space) !important;
  padding-bottom: var(--section-space) !important;
}

.about-section {
  padding-top: 0 !important;
  padding-bottom: var(--space-7) !important;
}

/* Equal white space between adjacent white-background sections */
.expertise-section + .rewards-section {
  padding-top: 0 !important;
}

/* ==========================================================================
   Insights (Blog) Page & Grid (4-Column Layout)
   ========================================================================== */
.insights-intro-header {
  margin-bottom: var(--space-7);
}

.insights-tag {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  display: block;
}

.insights-heading {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.15;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 16px 0;
}

.insights-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 22px;
  margin-bottom: var(--space-8);
}

.insight-blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s ease;
}

.insight-blog-card:hover {
  transform: translateY(-3px);
}

.insight-blog-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f1f3f6;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.insight-blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.insight-blog-card:hover .insight-blog-img-wrap img {
  transform: scale(1.06);
}

.insight-blog-title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.insight-blog-card:hover .insight-blog-title {
  color: var(--red);
}

.insight-blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(216, 220, 227, 0.6);
}

.insight-blog-readmore {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.insight-blog-card:hover .insight-blog-readmore {
  gap: 8px;
}

.insight-blog-date {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8C92A4;
}

.insights-pagination-wrap {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-6);
}

.insights-older-link {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  transition: color 0.2s ease, gap 0.2s ease;
}

.insights-older-link:hover {
  color: var(--red);
  gap: 14px;
}

@media (max-width: 1024px) {
  .insights-blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
  .insights-heading {
    font-size: 40px;
  }
}

@media (max-width: 600px) {
  .insights-blog-grid {
    grid-template-columns: 1fr;
  }
  .insights-heading {
    font-size: 32px;
  }
}

/* ==========================================================================
   Single Post Page with Sticky Sidebar
   ========================================================================== */
.post-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-8);
  align-items: start;
}

.post-article-main {
  min-width: 0;
}

.post-meta {
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  flex-wrap: wrap;
}

.post-meta-item {
  color: var(--slate);
  align-items: center;
  gap: 8px;
  font-size: 14px;
  display: flex;
}

.post-meta-item strong {
  color: var(--ink);
}

.post-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: var(--space-6);
}

.post-body h2 {
  font-family: var(--serif);
  color: var(--ink);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: 26px;
  font-weight: 600;
}

.post-body h3 {
  font-family: var(--serif);
  color: var(--ink);
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
  font-size: 21px;
  font-weight: 600;
}

.post-body p {
  color: var(--slate);
  margin-bottom: var(--space-4);
  font-size: 17px;
  line-height: 1.8;
}

.post-body blockquote {
  border-left: 3px solid var(--red);
  padding-left: 20px;
  margin: var(--space-5) 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
}

.post-body ul {
  margin-bottom: var(--space-4);
  padding-left: 22px;
}

.post-body ul li {
  color: var(--slate);
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.7;
}

.post-sidebar-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  align-self: start;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: none;
}

.post-sidebar-sticky::-webkit-scrollbar {
  display: none;
}

.sticky-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.sidebar-widget {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(28, 34, 48, 0.05);
}

.sidebar-widget-title {
  font-family: var(--serif);
  font-size: 20px;
  margin: 6px 0 20px 0;
  color: var(--ink);
}

.related-posts-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.related-post-card {
  display: flex;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  align-items: flex-start;
  transition: transform 0.2s ease;
}

.related-post-card:hover {
  transform: translateX(3px);
}

.related-post-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #f1f3f6;
}

.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-post-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.related-post-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--red);
}

.related-post-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.related-post-card:hover .related-post-title {
  color: var(--red);
}

.related-post-date {
  font-size: 11px;
  color: #8C92A4;
  text-transform: uppercase;
}

.sidebar-cta-box {
  background: var(--ink);
  color: var(--paper);
  padding: 26px 24px;
  border-radius: 4px;
  border-top: 3px solid var(--red);
}

.sidebar-cta-box h4 {
  font-family: var(--serif);
  color: var(--paper);
  font-size: 19px;
  margin-bottom: 10px;
}

.sidebar-cta-box p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 18px;
}

.post-footer-nav {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.post-title-mobile {
  display: none;
}

@media (max-width: 991px) {
  .post-layout-grid {
    grid-template-columns: 1fr;
  }
  .post-sidebar-sticky {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .post-banner-title {
    display: none !important;
  }
  .post-page-banner {
    height: auto !important;
    min-height: 140px !important;
    padding-top: 90px !important;
    padding-bottom: 24px !important;
  }
  .post-title-mobile {
    display: block !important;
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--ink);
    margin-top: var(--space-3);
    margin-bottom: var(--space-4);
  }
}

@media (max-width: 640px) {
  .post-title-mobile {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
}

/* ==========================================================================
   Elementor compatibility
   Elementor's frontend.min.css sets `.elementor img { height: auto }` and loads
   after this stylesheet, which shrank images inside the theme sections that sit
   in Elementor pages (team photos, event images, client/award logos).
   These rules restore the intended sizing so photos fill their card.
   ========================================================================== */
.elementor .carousel-track img {
  height: 80px;
}

.elementor .team-card-img img,
.elementor .team-listing-card-img img,
.elementor .event-card-img img {
  height: 100%;
  max-width: none;
}
