/*
  Prototype CSS (v2) — Premium minimal layout aligned to new homepage structure
*/

/* -------------------------
   Base tokens
-------------------------- */
:root {
  --color-primary: #000;
  --color-background: #fff;
  --color-accent: #ff6b6b;

  --text: #0b1220;
  --muted-text: #475569;

  --border: #e5e7eb;
  --card: #f8fafc;
  --card-2: #ffffff;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 24px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 4px 8px rgba(0, 0, 0, 0.08), 0 18px 40px rgba(0, 0, 0, 0.12);

  --radius: 18px;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* -------------------------
   Reset + base typography
-------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* GUARDRAIL: prevent “mystery left shift” from width math / scrollbars */
html,
body {
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-body) !important;
  color: var(--text);
  background: var(--color-background);
  line-height: 1.6;

  /* GUARDRAIL: if something overflows, it won't visually drag the canvas */
  overflow-x: clip;
  /* better than hidden for modern browsers */
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.82;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Headings */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.25px;
}

h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

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

/* -------------------------
   Layout containers
-------------------------- */
.site-content {
  width: 100%;
  max-width: 100%;
  display: block;
}

/* sections */
.section {
  padding: 40px 0;
}

.section-alt {
  background: var(--card);
}

/* GUARDRAIL: container pattern (forces centering even if other CSS leaks in) */
.section-head,
.hero-grid,
.tiles-4,
.impact-cards,
.services-acc-grid,
.reading-grid,
.cta-box,
.site-header-inner {
  width: 100%;
  max-width: 1120px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* section heading container */
.section-head {
  max-width: 1120px;
  margin: 0 auto 24px auto;
  /* ↓ from 18px */
  padding: 0 20px;
}


.section-subhead {
  max-width: 860px;
  margin-top: 6px;
  color: var(--muted-text);
}

/* Trust section */
.trust-section {
  padding-top: 32px;
  padding-bottom: 48px;
}

.trust-copy,
.trust-logos {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.trust-copy {
  margin-top: 8px;
}

.trust-box {
  margin: 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-1);
  color: var(--body-text);
  line-height: 1.6;
}

.trust-logos {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 24px;
}

.trust-logos img {
  height: 56px;
  width: 100%;
  max-width: 200px;
  object-fit: contain;
}

@media (max-width: 720px) {
  .trust-logos {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

/* -------------------------
   Header (new)
-------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  /* Slightly more transparent initial */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  /* Hidden initially for cleaner look */
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding-top: 0px;
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  padding: 18px 20px;
  /* Slightly taller initially */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  transition: padding 0.3s ease;
}

.site-header.scrolled .site-header-inner {
  padding: 12px 20px;
  /* Shrink on scroll */
}

.brand .logo-image {
  height: 34px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  font-weight: 600;
  opacity: 0.8;
  position: relative;
  transition: opacity 0.2s ease;
  padding: 4px 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-nav a:hover {
  opacity: 1;
  text-decoration: none;
  /* Remove default underline */
}

.site-nav a:hover::after {
  width: 100%;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 100;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  position: relative;
  transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  transition: all 0.3s ease-in-out;
}

.hamburger::before {
  transform: translateY(-8px);
}

.hamburger::after {
  transform: translateY(8px);
}

/* -------------------------
   CTA button
-------------------------- */
.cta-button {
  display: inline-block;
  background-color: var(--color-primary);
  background-image: linear-gradient(120deg, #000 0%, #333 100%);
  color: var(--color-background) !important;
  padding: 12px 30px;
  border-radius: 10px;
  margin-top: 0;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  opacity: 1;
}

.cta-button.small-btn {
  padding: 8px 14px;
}

/* -------------------------
   Hero
-------------------------- */
.hero {
  padding-top: 54px;
  position: relative;
  /* Context for absolute particles */
}

.hero-grid {
  padding: 0 20px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 42px;
  align-items: center;
}

.hero-photo {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--muted-text);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 32px;
  line-height: 1.35;
  font-weight: 800;
  margin: 0 0 18px 0;
}

.hero-subtitle {
  display: block;
  font-size: 21px;
  font-weight: 600;
  opacity: 0.75;
  margin-top: 8px;
  letter-spacing: -0.15px;
}

.hero-one-liner {
  max-width: 720px;
  color: var(--muted-text);
  line-height: 1.65;
  font-size: 16px;
}

.hero-actions {
  margin-top: 18px;
}

.hero-personal {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted-text);
}

.social-icons {
  margin-top: 14px;
}

.social-icons a {
  font-size: 1.3rem;
  margin-right: 14px;
  display: inline-block;
}

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

/* -------------------------
   LinkedIn ticker
-------------------------- */
.ticker {
  padding: 0 0 18px;
}

.ticker-inner {
  background: linear-gradient(90deg, rgba(10, 102, 194, 0.06), rgba(248, 250, 252, 0.9));
  border: 1px solid rgba(10, 102, 194, 0.2);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 18px;
  padding: 14px 18px;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted-text);
  white-space: nowrap;
}

.ticker-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 102, 194, 0.12);
  color: #0a66c2;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ticker-heading {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ticker-heading:hover {
  border-color: rgba(10, 102, 194, 0.4);
  box-shadow: 0 4px 10px rgba(10, 102, 194, 0.12);
  transform: translateY(-1px);
}

.ticker-heading:focus-visible {
  outline: 3px solid rgba(10, 102, 194, 0.4);
  outline-offset: 2px;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }

  .ticker-item {
    white-space: normal;
  }

  .ticker-heading {
    white-space: normal;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .ticker-track {
    gap: 12px;
    padding: 12px 14px;
  }

  .ticker-item {
    flex-wrap: wrap;
    white-space: normal;
  }

  .ticker-source {
    font-size: 11px;
    padding: 5px 8px;
  }

  .ticker-heading {
    white-space: normal;
    max-width: 100%;
    border-radius: 16px;
    padding: 8px 12px;
  }
}

/* -------------------------
   Principles tiles
-------------------------- */

.tiles-4,
.impact-cards,
.services-acc-grid,
.reading-grid {
  margin: 10px auto 0;
  /* ↓ from 18px */
}

.tiles-4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

#growth-approach .growth-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(110, 120, 255, 0.18), rgba(110, 225, 255, 0.12));
  border: 1px solid rgba(110, 120, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.tile-icon-svg {
  width: 22px;
  height: 22px;
  stroke: rgba(12, 16, 38, 0.72);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-icon-strategy {
  background: linear-gradient(135deg, rgba(140, 110, 255, 0.22), rgba(120, 205, 255, 0.12));
}

.tile-icon-strategy .tile-icon-svg {
  stroke: rgba(60, 58, 140, 0.9);
}

.tile-icon-system {
  background: linear-gradient(135deg, rgba(96, 210, 170, 0.2), rgba(120, 140, 255, 0.12));
}

.tile-icon-system .tile-icon-svg {
  stroke: rgba(32, 110, 92, 0.9);
}

.tile-icon-measurement {
  background: linear-gradient(135deg, rgba(255, 170, 90, 0.2), rgba(120, 160, 255, 0.12));
}

.tile-icon-measurement .tile-icon-svg {
  stroke: rgba(140, 82, 36, 0.9);
}

.tile-icon-learning {
  background: linear-gradient(135deg, rgba(255, 130, 180, 0.2), rgba(120, 200, 255, 0.12));
}

.tile-icon-learning .tile-icon-svg {
  stroke: rgba(140, 60, 96, 0.9);
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.tile h3 {
  font-size: 15px;
  margin: 0 0 8px 0;
}

.tile p {
  font-size: 14px;
  color: var(--muted-text);
  line-height: 1.55;
}

/* -------------------------
   Impact cards
-------------------------- */

.impact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.impact-card {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.impact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.impact-card h3 {
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 10px 0;
}

.impact-card p {
  font-size: 14px;
}

/* -------------------------
   Services accordion grid
-------------------------- */

.services-acc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.acc-card {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.acc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: #d1d5db;
}

/* Remove default marker */
.acc-card summary {
  list-style: none;
}

.acc-card summary::-webkit-details-marker {
  display: none;
}

.acc-summary {
  cursor: pointer;
  padding: 20px 20px 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.acc-title h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  letter-spacing: -0.15px;
}

.acc-title p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-text);
  max-width: 620px;
}

.acc-chevron {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform 200ms ease, background 200ms ease;
  margin-top: 2px;
}

.acc-chevron svg {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

.acc-card[open] .acc-chevron {
  transform: rotate(180deg);
  background: #f3f4f6;
}

.acc-body {
  padding: 0 20px 20px 20px;
}

.acc-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0 16px 0;
}

.acc-meta {
  display: grid;
  gap: 14px;
}

.acc-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: flex-start;
}

.acc-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  margin-top: 2px;
  border: 1px solid #d1d5db;
  background: #fff;
}

.acc-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 6px;
}

.acc-text,
.acc-list li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  opacity: 0.9;
}

.acc-list {
  margin: 0;
  padding-left: 18px;
}

.acc-list li {
  margin-bottom: 6px;
}

/* -------------------------
   Reading cards
-------------------------- */

.reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.reading-card {
  display: block;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-1);
  color: var(--text);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.reading-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.reading-meta {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 10px;
}

.reading-card h3 {
  margin: 0 0 10px 0;
  font-size: 15px;
  line-height: 1.35;
}

.reading-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
}

/* -------------------------
   CTA section
-------------------------- */
.cta {
  padding-top: 60px;
  padding-bottom: 90px;
}

.cta-box {
  padding: 26px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-1);
}

.cta-box h2 {
  margin: 0 0 10px 0;
}

.cta-box p {
  max-width: 860px;
  margin: 0 0 16px 0;
  color: var(--muted-text);
}

/* -------------------------
   Footer
-------------------------- */
.tj-footer-area {
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-nav a {
  margin: 0 110px;
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.copyright {
  margin-top: 15px;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* -------------------------
   Back to top
-------------------------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: var(--color-background);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  box-shadow: var(--shadow-1);
  z-index: 1000;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

/* -------------------------
   Lightbox
-------------------------- */
body.lightbox-open {
  overflow: hidden;
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
  padding: 24px;
}

.portfolio-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.portfolio-lightbox-image {
  max-width: min(960px, 90vw);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
  object-fit: contain;
}

.portfolio-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-lightbox-close:hover {
  background: #fff;
}

/* -------------------------
   Responsive
-------------------------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tiles-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-cards {
    grid-template-columns: 1fr;
  }

  .services-acc-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reading-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--color-background);
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    flex-direction: column;
    padding: 14px 0;
    text-align: center;
    z-index: 1001;
  }

  .site-nav.active {
    display: flex;
  }

  .site-nav a {
    padding: 10px 0;
  }
}

@media (max-width: 560px) {
  .section+.section {
    padding-top: 20px;
  }


  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .tiles-4 {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Featured thinking CTA alignment */
.reading-actions {
  max-width: 1120px;
  margin: 16px auto 0;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  /* premium look */
}

/* -------------------------
   Contact section (premium)
-------------------------- */

.contact {
  padding: 40px 0 52px;
}

.contact-followup ul {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  list-style-position: inside;
}

/* Header */
.contact-header {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
  padding: 0 20px;
}

.contact-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.contact-header h2 {
  font-size: 42px;
  margin-bottom: 12px;
}

.contact-header p {
  font-size: 17px;
  color: var(--muted-text);
}

/* Grid */
.contact-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

/* Left column */
.contact-info h3 {
  margin-bottom: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-2);
  margin-bottom: 16px;
}

.contact-card small {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted-text);
}

.contact-card p {
  margin: 2px 0 0;
  font-weight: 600;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff4ea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Note */
.contact-note {
  margin-top: 24px;
  padding: 20px;
  border-radius: 14px;
  background: #fff9f2;
  border: 1px solid #fde6cf;
  font-size: 15px;
  color: #6b4e2e;
  line-height: 1.6;
}

/* Right column: form */
.contact-form-card {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-1);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field label {
  font-weight: 600;
  font-size: 14px;
}

.form-field input,
.form-field textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 15px;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* Submit button */
.contact-submit {
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  border-radius: 12px;
  border: none;

  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.3px;

  background-color: var(--color-primary);
  background-image: linear-gradient(120deg, #000 0%, #333 100%);
  color: var(--color-background);

  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  opacity: 1;
}

/* Mobile */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-header h2 {
    font-size: 34px;
  }
}

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

@media (max-width: 980px) {
  .hero-photo {
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .hero-photo {
    max-width: 240px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 36px;
  }
}

/* LinkedIn icon */
.contact-icon.linkedin {
  background: #0a66c2;
  color: #fff;
}

/* LinkedIn link behaviour */
.linkedin-link {
  color: #0a66c2;
  font-weight: 600;
}

.linkedin-link:hover {
  text-decoration: underline;
}

/* Email icon – match site CTA */
.contact-icon.email i {
  background: #fff4ea;
  color: #fff;
  font-size: 18px;
}


/* Email link */
.email-link {
  color: var(--text);
  font-weight: 600;
}

.email-link:hover {
  text-decoration: underline;
}

.contact-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted-text);
  margin-bottom: 4px;
}

.section+.section {
  padding-top: 28px;
  /* overrides default 48px when stacked */
}


/* -------------------------
   Scroll Reveal Animations
-------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  /* Increased movement for visibility */
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
  /* Cubic-bezier for "pop" effect */
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delays for lists/grids */
.delay-100 {
  transition-delay: 50ms;
}

/* Reduced delays */
.delay-200 {
  transition-delay: 100ms;
}

.delay-300 {
  transition-delay: 150ms;
}

.delay-400 {
  transition-delay: 200ms;
}

.delay-500 {
  transition-delay: 250ms;
}

/* Optional: Fade in without movement */
.reveal-fade {
  transform: translateY(0);
}/*
    Custom CSS for Shalini Choudhary SEO Portfolio
    Theme: High-Contrast Minimalist Grid
    Font: Poppins
*/

/* --- Base Styling and Typography --- */
:root {
    --color-primary: #000;
    --color-background: #fff;
    --color-accent: #ff6b6b;
    --color-muted: #f4f4f4;
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.12);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    /* CRITICAL FIX: Ensures width calculations include padding and border */
    box-sizing: border-box;
    /* NEW: Ensures global clean margin/padding to prevent viewport overflow */
    margin: 0;
    padding: 0;
}

body {
    /* FIX 1: Force Poppins font globally to override old theme styles */
    font-family: var(--font-body) !important;
    color: var(--color-primary);
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    /* Keeps content from scrolling horizontally if an element overflows */
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body.lightbox-open {
    overflow: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    /* Set to 700 (Bold) for lighter look */
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 20px;
}

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

/* Adjusted H1 size for better flow and impact */
h1 {
    font-size: 3rem;
}

/* FIX: Reduce bottom margin on H2 elements */
h2 {
    font-size: 2.1rem;
    font-weight: 600;
    margin-bottom: 18px;
}

/* FIX: Reduce bottom margin on H3 elements */
h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    padding: 24px;
}

.portfolio-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.portfolio-lightbox-image {
    max-width: min(960px, 90vw);
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    background: #fff;
    object-fit: contain;
}

.portfolio-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-lightbox-close:hover {
    background: #ffffff;
}

/* --- Layout and Structure (THE DEFINING GRID) --- */

/* Wrapper applies the main horizontal separator line */
.section-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    /* FIX: Reduced vertical padding from 30px to 20px globally */
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: none;
    position: relative;
}

.section-wrapper+.section-wrapper {
    position: relative;
}

.section-wrapper+.section-wrapper::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 1px;
    background: rgba(0, 0, 0, 0.16);
}

/* Base class for creating a vertical 50/50 split */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.split-col {
    /* Large desktop padding */
    padding: 30px 40px;
    box-sizing: border-box;
}

/* The vertical divider line is applied to the left column */
.split-layout .col-left {
    border-right: 1px solid var(--color-primary);
}

/* --- Header & Navigation --- */
.main-header {
    padding-top: 0;
    padding-bottom: 0;
    /* FIX 3: Ensures the main header wrapper does NOT have a top border */
    border-top: none;
    position: relative;
    z-index: 1000;
    background-color: var(--color-background);
}

/* Remove top divider lines for specified sections */
#works-section {
    border-top: none;
}

.tj-footer-area {
    border-top: none;
}

/* FIX: New Container for Logo and Nav Alignment */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: relative;
}

/* FIX: Logo Sizing and Constraining Image Height */
.logo-image {
    max-width: 180px;
    max-height: 40px;
    height: auto;
    display: block;
    vertical-align: middle;
}

/* FIX: Navigation Alignment */
.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

/* Featured Insight Metrics - Darker Grey */
.featured-metric-card {
    background: #e0e0e0;
    /* Darker grey as requested */
    /* ... existing styles ... */
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.main-nav a {
    position: relative;
    font-weight: 500;
    /* Softened from 600 */
    font-size: 0.95rem;
    /* Reduced size */
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero-layout {
    min-height: 70vh;
    position: relative;
}

.hero-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 15px 15px 0 0 rgba(0, 0, 0, 0.1);
    animation: floatHero 6s ease-in-out infinite;
}

/* v2 hero image sizing override */
.hero-photo {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4 / 5;
}

.hero-photo img {
    width: 100%;
    height: 100;
    object-fit: cover;
}

@media (min-width: 981px) {
    .hero-photo img {
        max-height: none;
    }
}

.sub-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.lead-text {
    font-size: 1.2rem;
}

@keyframes floatHero {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 20px;
    display: inline-block;
}

/* --- CTA Button Style --- */
.cta-button {
    display: inline-block;
    background-color: #111;
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 999px;
    margin-top: 25px;
    font-weight: 0;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.cta-button.small-btn {
    padding: 8px 15px;
    margin-top: 0;
}

/* --- Funfacts (Stats) --- */
.funfacts-section {
    padding-top: 0;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-primary);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-left: 1px solid var(--color-primary);
}

.stat-item {
    border-right: 1px solid var(--color-primary);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.stat-number {
    font-size: 3rem;
    margin-bottom: 5px;
}

.stat-number {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    margin-bottom: 5px;
}

.stat-number .plus-sign {
    margin-left: 2px;
    font-size: 0.8em;
}

.stat-label {
    margin: 0;
    line-height: 1.2;
}

/* --- Services & Portfolio Headers / Archive Header Fix --- */
.section-wrapper h2,
.section-wrapper .section-description {
    /* Standard padding for section titles */
    padding: 0 0px 10px 0px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.hero-actions .cta-button,
.hero-actions .secondary-button {
    margin-top: 0;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    color: #111;
    font-weight: 0;
    letter-spacing: 0.4px;
    background: #ffffff;
}

.secondary-button:hover,
.secondary-button:focus-visible {
    background: var(--color-muted);
}

.blog-hero {
    border-top: none;
    padding-top: 0px;
    padding-bottom: 120px;
    min-height: 60vh;
    display: grid;
    gap: 24px;
    text-align: center;
    justify-items: center;
    align-content: center;
    border-bottom: none;
}

.blog-page main .section-wrapper {
    padding-left: 40px;
    padding-right: 40px;
}

.blog-page main .section-wrapper>h2,
.blog-page main .section-wrapper>.section-description {
    padding-left: 0;
    padding-right: 0;
}

.blog-page h1 {
    font-size: 2.6rem;
    font-weight: 500;
}

.blog-page h2 {
    font-size: 1.9rem;
    font-weight: 500;
}

.blog-page h3 {
    font-weight: 400;
}

.blog-hero-content {
    max-width: 720px;
    padding: 0;
    text-align: center;
}

.blog-hero .section-description {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    color: #9a9a9a;
}

.blog-hero-highlight {
    padding: 18px 24px;
    border-radius: 16px;
    background: var(--color-muted);
    max-width: 560px;
    justify-self: start;
}

.blog-hero-aside {
    display: grid;
    gap: 16px;
}

.blog-hero-thesis {
    padding: 18px 24px;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
    max-width: 560px;
}

.hero-thesis-list {
    margin: 12px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    opacity: 0.8;
    font-size: 0.95rem;
}

.hero-microcopy {
    margin: 0;
    font-size: 1rem;
}

.featured-insight {
    padding: 40px 0 48px;
}

.featured-card {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(300px, 1.05fr);
    gap: 24px;
    align-items: stretch;
    padding: 22px;
    border-radius: 24px;
    background: #f7f2ed;
}

.featured-image-panel {
    display: flex;
    align-items: stretch;
}

.featured-copy h2 {
    margin-bottom: 12px;
    font-size: 1.7rem;
    line-height: 1.25;
}

.featured-copy {
    display: grid;
    gap: 12px;
}

.featured-copy .section-description {
    font-size: 1rem;
    color: #6f6f6f;
    margin: 0;
}

.featured-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 500;
    color: #9a9a9a;
    text-transform: none;
    letter-spacing: 0.1px;
}

.featured-meta-row span+span::before {
    content: "•";
    margin-right: 8px;
    color: #b3b3b3;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.read-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
}

.read-time svg {
    width: 16px;
    height: 16px;
    color: #b0b0b0;
}

.featured-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 12px;
}

.featured-metric-card {
    border-radius: 16px;
    border: 1px solid #efe8e2;
    padding: 10px 14px;
    background: #f4efea;
    display: grid;
    gap: 6px;
    min-width: 160px;
}

.featured-metric-card .metric-label {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #a2a2a2;
    opacity: 1;
}

.featured-metric-card .metric-value {
    font-weight: 600;
    font-size: 0.9rem;
    color: #4f4f4f;
}

.featured-image-link {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.featured-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.featured-image-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    color: #4a4a4a;
}

.featured-author-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.featured-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 00;
}

.featured-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.featured-actions {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.icon-button {
    width: 28px;
    height: 28px;
    border-radius: 0;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c1c1c1;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.icon-button svg {
    width: 20px;
    height: 20px;
}

.icon-button:hover,
.icon-button:focus-visible {
    transform: translateY(-1px);
    color: var(--color-primary);
}

.read-link {
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2e2e2e;
}

.featured-actions .read-link {
    color: #2e2e2e;
}

.read-link svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 900px) {
    .featured-card {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .featured-image-link {
        height: auto;
    }

    .featured-image {
        min-height: 240px;
    }
}

@media (max-width: 600px) {
    .featured-insight {
        padding: 32px 0 40px;
    }

    .featured-card {
        gap: 18px;
        padding: 18px;
        border-radius: 18px;
    }

    .featured-copy h2 {
        font-size: 1.45rem;
    }

    .featured-author-row {
        gap: 12px;
    }

    .featured-image {
        min-height: 200px;
    }
}

.blog-categories {
    padding-bottom: 30px;
}

.growth-systems {
    padding-top: 10px;
}

.growth-systems-header {
    padding: 0;
    text-align: center;
    display: grid;
    gap: 6px;
    justify-items: center;
    max-width: 720px;
    margin: 0 auto 16px;
}

.growth-systems-header .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.growth-systems-header .eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: rgba(0, 0, 0, 0.35);
}

.growth-systems-header .section-description,
.blog-hero .section-description {
    color: rgba(0, 0, 0, 0.7);
}

.growth-systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
    padding: 0 0 20px 0;
    align-items: stretch;
}

.growth-system-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #e8e8e8;
    background: #f9fafb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 260px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.growth-system-card:hover,
.growth-system-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
    background: #f3f5f7;
    border-color: #dfe3e8;
}

.growth-system-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #edf0f4;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.growth-system-icon:hover {
    background: #1f2937;
    color: #fff;
}

.growth-system-card:hover .growth-system-icon,
.growth-system-card:focus-within .growth-system-icon {
    background: #1f2937;
    color: #fff;
}

.growth-system-icon svg {
    width: 22px;
    height: 22px;
}

.text-link {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--color-accent);
}

.category-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 0 10px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.category-pill {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    background: transparent;
    white-space: nowrap;
}

.category-pill.is-active {
    background: var(--color-primary);
    color: #fff;
}

.category-pill:hover,
.category-pill:focus-visible {
    background: var(--color-accent);
    color: #fff;
}

.section-eyebrow {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #6b6b6b;
    margin-bottom: 12px;
}

.latest-posts-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px 32px;
    align-items: flex-end;
    margin-bottom: 10px;
}

/* --- Blog Latest Grid (Modern 2026 Redesign) --- */
.blog-latest-grid {
    --blog-card-height: 600px;
    --blog-grid-gap: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--blog-grid-gap);
    padding: 20px 0 40px 0;
    max-height: 9999px;
    /* Ensure full visibility by default or handled by JS */
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Bento-style Grid: First item spans 2 columns on large screens */
/* Uniform Grid: All items same size */

.blog-latest-grid.is-collapsed {
    /* Height is now handled by JS show/hide classes, not max-height */
    /* max-height: 900px; REMOVED */
    overflow: visible;
    /* Allow shadows to pop out */
}

.blog-card.is-hidden {
    display: none;
}

/* --- Blog Card (Modern Minimalist) --- */
.blog-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    background: #ffffff;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.005);
    /* Reduced scale to prevent blur */
    box-shadow: 0 20px 40px -4px rgba(0, 0, 0, 0.08), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
    border-color: transparent;
}

.blog-image-link {
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
    /* FIX: Force 16:9 Aspect Ratio-ish but fixed height for consistency */
    height: 190px;
    /* Increased from 160px as requested */
    /* Reduced from 180px */
    background-color: #f0f0f0;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-card:hover .blog-image {
    transform: scale(1.06);
}

/* Aspect ratio support removed in favor of fixed height for stability */

.blog-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-card:hover .blog-image {
    transform: scale(1.06);
}

/* Badge Styling */
.blog-image-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.blog-image-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.blog-image-badge.is-readtime {
    background: rgba(17, 17, 17, 0.85);
    color: #fff;
}

/* Content Area */
.blog-content-area {
    padding: 12px;
    /* Reduced from 16px */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    /* Spread out date and read time if both exist */
    align-items: center;
    margin-bottom: 6px;
    /* Further reduced */
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
}

.blog-content-area h3 {
    font-size: 1.1rem;
    /* Slight reduction */
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    /* Reduced */
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit title to 2 lines to stop growing too tall */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-content-area h3 a {
    text-decoration: none;
    background: linear-gradient(to right, #111 0%, #111 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
    color: inherit;
}

.blog-card:hover h3 a {
    background-size: 100% 2px;
}

.blog-excerpt {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 2;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer / Signals */
.blog-card-foot {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #444;
}

.blog-card-signal {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f4f6f8;
    padding: 3px 6px;
    /* Tighter padding */
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.6rem;
    /* Smaller font */
    white-space: nowrap;
}

.blog-card-signal::before {
    content: "";
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-accent);
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}

.blog-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    /* overflow: hidden;  REMOVED truncation */
    /* text-overflow: ellipsis; REMOVED truncation */
    /* max-width: 100px; REMOVED truncation */
    flex-shrink: 1;
    /* Allow shrinking but prioritize full text if possible */
}

/* Actions - Inline in Footer */
.blog-card-actions {
    display: flex;
    gap: 4px;
    /* Tighter gap */
    align-items: center;
    position: static;
    opacity: 1;
    transform: none;
    margin-right: 8px;
    flex-shrink: 0;
    /* Don't shrink buttons */
    padding: 0;
}

.blog-card:hover .blog-card-actions {
    opacity: 1;
    transform: none;
}

.action-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 4px;
    width: auto;
    /* Allow auto formatting */
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.action-btn:hover {
    color: var(--color-accent);
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-1px);
}

.blog-library-actions {
    text-align: center;
    padding-top: 40px;
}

.linkedin-longform .section-description {
    padding-bottom: 0;
}

.linkedin-header {
    padding: 0;
}

/* Featured Insight Refinement */
.featured-card {
    max-width: 1100px !important;
    /* User requested 1100px */
    background: #f5f5f7 !important;
    margin: 0 auto;
    /* Center alignment */
    width: 100%;
    /* Ensure it takes available width up to max */
}

/* Let's Talk CTA Alignment */
.footer-cta-content {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-cta-content h2 {
    margin-bottom: 0;
}

.linkedin-card {
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 18px 20px;
    background: #fff;
    display: grid;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.linkedin-card:hover,
.linkedin-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    opacity: 1;
}

.linkedin-card h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0;
}

.linkedin-card p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.95rem;
}

.linkedin-meta {
    font-size: 0.85rem;
    opacity: 0.7;
}

.ticker-source {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.impact-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    padding: 0 0 20px 0;
}

.impact-mini-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

.impact-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.6;
    margin-bottom: 10px;
}

.reading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 0 20px 0;
}

.reading-card {
    padding: 20px;
    border-radius: 16px;
    background: var(--color-muted);
}

.reading-card a {
    display: inline-block;
}

.reading-card ul,
.category-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.category-section {
    display: grid;
    gap: 18px;
}

.category-section+.category-section {
    margin-top: 28px;
}

.category-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.category-view-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.category-view-link:hover,
.category-view-link:focus-visible {
    color: var(--color-accent);
}

.category-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 0 0 10px 0;
}

.category-blog-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.category-blog-card .blog-content-area {
    padding: 18px;
}

.category-blog-card p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 0 20px 0;
}

.category-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.author-card {
    display: grid;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 16px;
    background: var(--color-muted);
}

.author-card ul {
    margin: 0;
    padding-left: 0;
    list-style-position: inside;
}

.impact-mini h2,
.impact-mini .section-description {
    text-align: center;
}

.author-pov .eyebrow,
.author-pov h2 {
    text-align: center;
}

.author-icon-badge {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
}

.footer-cta-content {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 0 10px 0;
    text-align: center;
}

.footer-cta-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .footer-cta-content {
        flex-wrap: wrap;
    }
}

.section-description {
    font-size: 1.1rem;
    /* FIX: Reduce margin below description */
    margin-bottom: 20px;
}

/* FIX: Category Page Header Spacing and Border Conflicts */
.category-header-area h2.category-page-title {
    /* ISSUE 2 FIX: Removes top/bottom padding added by section-wrapper h2 rule */
    padding: 0 40px 10px 40px;
}

.category-header-area .category-page-description {
    /* ISSUE 2 FIX: Tighter margin before category bar */
    padding: 0 40px 20px 40px;
    margin-bottom: 0;
}

.category-header-area {
    /* ISSUE 2 & 3 FIX: Removes padding/margin that stacks and causes extra lines */
    padding-bottom: 0;
    margin-bottom: 0;
}


/* --- Blog Category Index Bar Styles (FIXED) --- */
.category-index-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0 40px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-primary);
}

/* Redefine Category Link to look like the secondary button style */
.category-link {
    display: inline-block;

    /* Inherit CTA Button Styling */
    background-color: var(--color-background);
    color: var(--color-primary);
    padding: 8px 15px;
    border: 1px solid var(--color-primary);
    border-radius: 6px;

    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.category-link:hover {
    /* Reverse colors on hover for a clean visual feedback */
    background-color: var(--color-primary);
    color: var(--color-background);
}


/* --- Accordion Style for Services (using <details> tag) --- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    border-top: 1px solid var(--color-primary);
    border-left: 1px solid var(--color-primary);
    padding: 0;
}

.service-item-details {
    border-right: 1px solid var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
    padding: 0;
    transition: background-color 0.3s ease;
}

.service-item-details summary {
    display: block;
    cursor: pointer;
    padding: 30px 70px 30px 30px;
    outline: none;
    user-select: none;
    position: relative;
    transition: background-color 0.3s ease;
}

.service-item-details summary::-webkit-details-marker {
    display: none;
}

.service-item-details summary::marker {
    content: "";
}

.service-item-details summary::after {
    content: '+';
    position: absolute;
    right: 30px;
    top: 30px;
    transform: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s;
}

.service-item-details[open]>summary::after {
    content: '—';
    transform: none;
}

.service-item-details[open] {
    background-color: var(--color-muted);
}

.service-item-details summary:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.service-content-detail {
    padding: 0 70px 30px 30px;
    border-top: 1px solid #ddd;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease;
}

.service-item-details[open] .service-content-detail {
    opacity: 1;
    max-height: 1000px;
}

.process-title {
    margin-top: 20px;
}

.process-list {
    list-style-type: disc;
    padding-left: 20px;
}

.service-item-details h3 {
    margin-top: 10px;
}


/* --- Portfolio Grid Styles (FIXED for Uniform Button Alignment) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 40px;
    border-top: 1px solid var(--color-primary);
}

.portfolio-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;

    /* FIX 1: Force card to occupy full height of the grid cell */
    height: 100%;

    /* FIX 2: Set up vertical stacking */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #f5f5f5;
}

/* FIX 3: Push the button to the bottom */
.card-content-area {
    padding: 20px;
    /* CRITICAL FIX: Allows this area to expand vertically */
    flex-grow: 1;
    /* NEW: Set up vertical stacking within the content area itself */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-link-btn {
    /* MODIFIED: Push the link to the bottom */
    margin-top: auto;
    text-align: right;
    font-weight: 700;
    font-size: 0.9rem;
}


/* --- Experience Section --- */
.experience-layout {
    padding: 0;
}

.resume-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.resume-item:last-child {
    border-bottom: none;
}

.resume-item .time {
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0.7;
}

.resume-item .institute {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px 40px;
    border-top: 1px solid var(--color-primary);
    text-align: center;
}

.skill-item {
    padding: 20px 10px;
    border-radius: 12px;
    background: var(--color-muted);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.skill-item img {
    max-width: 60px;
    margin-bottom: 10px;
}

/* --- Blog Archive Grid Layout (CRITICAL FIX) --- */

.blog-archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 40px;
    border-top: none;
    /* ISSUE 3 FIX: Removed redundant top border on the grid */

    /* CRITICAL: Set initial height and hide overflow for "Load More" */
    max-height: 800px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;

    /* FIX: Added bottom padding to ensure the final card's bottom border is visible */
    padding-bottom: 40px;
}

/* Blog card uniformity (Fixes Issue 1 for the last card) */
.blog-card {
    border: 1px solid #e6e6e6;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.blog-image-link {
    display: block;
    line-height: 0;
    position: relative;
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-image-badges {
    position: absolute;
    inset: 16px 16px auto 16px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}

.blog-image-badge {
    font-size: 0.75rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    backdrop-filter: blur(6px);
    font-weight: 600;
}

.blog-image-badge.is-readtime {
    background: rgba(255, 255, 255, 0.82);
    color: #111827;
}

.blog-content-area {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    gap: 10px;
}

.blog-content-area h3 {
    margin-bottom: 0;
    font-size: 1.35rem;
    line-height: 1.35;
}

.blog-meta-category {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.7;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.blog-meta-reading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--color-muted);
    font-weight: 700;
}

.blog-excerpt {
    margin: 0;
    font-size: 0.9rem;
    color: #6b6b6b;
}

.blog-card-foot {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 8px;
}

.blog-card-signal {
    font-size: 0.72rem;
    letter-spacing: 0.2px;
    color: #6b6b6b;
    background: #f2f2f2;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: none;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #ececec;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 400;
}

.blog-author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    background: #fff;
}

.blog-card-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-primary);
}

/* --- Load More Button Alignment --- */
.load-more-container {
    text-align: center;
    padding: 30px 0;
}

.load-more-container .cta-button,
.reading-actions .cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

@media (min-width: 768px) {

    .blog-latest-grid,
    .blog-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-latest-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1100px) {
    .blog-archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-hero {
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
    }
}


/* ------------------------------------------------------ */
/* NEW: INDIVIDUAL BLOG POST SPECIFIC STYLES             */
/* ------------------------------------------------------ */

/* 1. The Reading Column (Text, TOC, Author Box) */
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* FIX: TIGHTENED SPACING FOR HEADINGS AND PARAGRAPHS INSIDE BLOGS */
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-post-content p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.blog-post-content li {
    margin-bottom: 8px;
}

/* 2. The Post Header (Title & Meta) */
.post-header-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.post-header-text h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.post-meta {
    font-size: 1rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* 3. The Featured Image (WIDE) */
.post-feature-image-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.post-feature-image {
    width: 100%;
    max-width: 1000px;
    /* Slightly wider to fill frame better */
    height: auto;
    /* Let image define its own height */
    object-fit: contain;
    /* Ensures full image is visible */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: block;
    margin: 0 auto;
}

/* --- FIX 4: STICKY TOC LAYOUT --- */
.reading-layout-wrapper {
    /* FIX: Constrain layout width within main wrapper */
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Define three columns: Interactions (Mini) | TOC | Content */
    grid-template-columns: 60px 240px 1fr;
    gap: 40px;
    padding: 0 40px;
    /* CRITICAL: Need space above this section for visual flow */
    margin-top: 20px;
}

/* --- NEW: Social & Interaction Sidebar --- */
.blog-interactions {
    position: sticky;
    top: 100px;
    /* Belows header */
    height: fit-content;
    z-index: 10;
}

.interaction-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    padding: 16px 12px;
    border-radius: 99px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.interaction-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #666;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.interaction-divider {
    width: 24px;
    height: 1px;
    background: #eee;
    margin: 4px 0;
}

.toc-sidebar-container {
    position: relative;
    /* Offset by the interaction bar width + gap if needed, or interaction bar can be absolute/fixed */
}

/* 4. Table of Contents (Sticky & Clean) */
/* 4. Table of Contents (Sticky & Premium Card) */
.table-of-contents {
    position: sticky;
    top: 24px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    /* Soft border instead of heavy left border */
    padding: 24px;
    margin: 0;
    border-radius: 12px;
    /* Rounded corners */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    /* Subtle shadow */
    z-index: 5;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.table-of-contents h3 {
    margin-top: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.table-of-contents li:last-child {
    border-bottom: none;
}

.table-of-contents li a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: #555;
    /* Softer dark color */
    display: block;
    /* Improves click area */
    transition: all 0.2s ease;
}

.table-of-contents li a:hover {
    padding-left: 6px;
    color: var(--color-primary);
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* 5. Author Box (Premium Card) */
/* 5. Author Box (Premium Card & New Structure) */
.author-cta-box {
    margin-top: 60px;
    margin-bottom: 40px;
    padding: 0;
    border-top: none;
}

.author-box-content {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.author-image-placeholder {
    width: 120px;
    height: 120px;
    background-color: #f0f0f0;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.author-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.author-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
}

.author-badge {
    background: #e0f2f1;
    color: #00695c;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-bio {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-socials {
    display: flex;
    gap: 15px;
}

.author-socials a {
    color: #999;
    font-size: 1.1rem;
    transition: color 0.2s;
}

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

.article-content-container {
    min-width: 0;
}

/* --- TYPOGRAPHY REFINEMENTS FOR BLOG POSTS (Compact) --- */
.blog-post-content p {
    font-size: 1.05rem;
    /* Reduced from 1.125rem */
    line-height: 1.7;
    /* Tighter line height */
    color: #2d2d2d;
    margin-bottom: 20px;
    /* Reduced margin */
    max-width: 70ch;
}

.blog-post-content ul,
.blog-post-content ol {
    font-size: 1.05rem;
    /* Reduced size */
    line-height: 1.7;
    color: #2d2d2d;
    margin-bottom: 20px;
    padding-left: 24px;
    max-width: 70ch;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-content h3 {
    font-size: 1.75rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.blog-post-content h4 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 16px;
    font-weight: 600;
}

.blog-post-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 4px solid var(--color-accent);
    background: #f9f9f9;
    font-style: italic;
    font-size: 1.2rem;
    border-radius: 0 8px 8px 0;
}

/* ------------------------------------------------------ */
/* END BLOG SPECIFIC STYLES                              */
/* ------------------------------------------------------ */


/* --- Contact Section --- */
.contact-layout {
    border-bottom: 1px solid var(--color-primary);
}

.contact-col-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.contact-detail-item h3 {
    margin-bottom: 5px;
}

.contact-detail-item a,
.contact-detail-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-detail-item {
    padding: 20px;
    border-radius: 12px;
    background: var(--color-muted);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-detail-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    color: var(--color-background);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: var(--shadow-soft);
    z-index: 1000;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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


/* --- HAMBURGER MENU STYLES --- */

/* Base style for the toggle button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

/* Style the hamburger lines */
.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    position: relative;
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {

    /* 1. FONT SIZE REDUCTION - Prevents H1/H2 overflow on mobile */
    h1 {
        font-size: 2.2rem;
    }

    /* Reduced from 3.5rem */
    h2 {
        font-size: 1.8rem;
    }

    /* Reduced from 3rem */

    /* 2. LAYOUT STACKING AND PADDING REDUCTION */
    .split-col {
        padding: 20px 20px;
    }

    /* STACKING THE MAIN LAYOUTS */
    .split-layout {
        grid-template-columns: 1fr;
    }

    .split-layout .col-left {
        border-right: none;
        border-bottom: 1px solid var(--color-primary);
    }

    .header-row {
        padding: 15px 20px;
    }

    /* NEW FIX: Stack two-column blog layout on mobile */
    .reading-layout-wrapper {
        grid-template-columns: 1fr;
        /* Collapse to a single column */
        gap: 20px;
        padding: 0 20px;
        /* Mobile side padding */
        margin-top: 10px;
    }

    /* --- Mobile Social Bar (Fixed Bottom) --- */
    .blog-interactions {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        /* Reset top */
        width: 100%;
        max-width: 300px;
        z-index: 1000;
        pointer-events: none;
        /* Allow clicks through to content for the wrapper */
    }

    .interaction-bar {
        flex-direction: row;
        /* Horizontal on mobile */
        justify-content: space-between;
        padding: 10px 20px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.5);
        pointer-events: auto;
        /* Re-enable clicks */
    }

    .interaction-divider {
        width: 1px;
        height: 24px;
        margin: 0 4px;
    }

    .toc-sidebar-container {
        position: static;
        /* Remove sticky property on mobile */
    }

    .table-of-contents {
        position: static;
        width: 100%;
        max-height: none;
        margin-bottom: 30px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--color-background);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        border-top: 1px solid var(--color-primary);
        z-index: 1001;
    }

    .main-nav.active {
        display: flex;
    }

    /* 3. SHOW HAMBURGER TOGGLE */
    .menu-toggle {
        display: block;
        margin-left: auto;
        align-self: center;
    }

    /* STACKING STATS */
    .stat-grid {
        grid-template-columns: 1fr;
        border-right: none;
        border-left: none;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--color-primary);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .blog-slider-container {
        padding-left: 0;
        padding-right: 0;
    }

    /* Mobile adjustments for the Category Index Bar (Restore correct spacing) */
    .category-index-bar {
        padding: 0 20px;
        gap: 10px;
    }

    /* Adjust Hero section elements */
    .hero-image {
        max-width: 90%;
    }

    .sub-title {
        font-size: 0.9rem;
    }

    /* Mobile adjustments for Blog Posts */
    .blog-post-content {
        padding: 0 20px;
    }

    .post-header h1 {
        font-size: 2.5rem;
    }

    .post-feature-image-container {
        padding: 0 20px;
        margin-bottom: 30px;
    }

    /* Fix: Mobile Author Box Alignment */
    .author-box-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }

    .author-header {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }

    .author-actions {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .author-socials {
        justify-content: center;
    }

    /* FIX: Author image size on mobile */
    .author-image-placeholder {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 600px) {

    .load-more-container .cta-button,
    .reading-actions .cta-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================================================
   PRO LEVEL UPGRADES: Growth Engineer Elements (Added for Redesign)
   ========================================================================== */

/* --- 1. Tech Stack Marquee (The "Pro" Signal) --- */
.tech-stack-section {
    padding-top: 10px;
    padding-bottom: 100px;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-wrap::before,
.ticker-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.ticker-move {
    display: inline-block;
    animation: ticker-scroll 35s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2.5rem;
    font-size: 1.05rem;
    color: #64748b;
    /* Slate-500 equivalent */
    font-weight: 600;
    opacity: 0.8;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ticker-item i {
    font-size: 1.2rem;
    color: #0f172a;
}

.ticker-item:hover {
    opacity: 1;
    color: #000;
}

@keyframes ticker-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* --- 2. Impact Dashboard (The "Revenue" Signal) --- */
.impact-dashboard-section {
    padding: 80px 40px;
    background: #fff;
    max-width: 1400px;
    margin: 0 auto;
}

.impact-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.impact-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.impact-card-pro {
    background: #f8fafc;
    /* Slate-50 */
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.impact-card-pro:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    font-weight: 700;
}

.card-trend {
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.card-trend.positive {
    color: #16a34a;
}

.card-trend.neutral {
    color: #475569;
}

.card-number {
    font-size: 3rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.card-bar-bg {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-bottom: 16px;
    overflow: hidden;
}

.card-bar-fill {
    height: 100%;
    background: #0f172a;
    border-radius: 3px;
}

.card-desc {
    font-size: 0.95rem;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Tweaks for Pro Elements */
@media (max-width: 768px) {
    .ticker-item {
        padding: 0 1rem;
        font-size: 0.9rem;
    }

    .card-number {
        font-size: 2.5rem;
    }

    .impact-dashboard-section {
        padding: 60px 20px;
    }
}

/* FIX: Center the Marquee Title */
.tech-stack-section .eyebrow {
    text-align: center;
    width: 100%;
    display: block;
    margin: 0 auto 30px auto;
    /* Centers the block itself and adds bottom spacing */
    padding: 0 20px;
    /* Prevents text touching edges on mobile */
}/* --- Footer (Dark Minimal) --- */
.tj-footer-area {
    padding: 60px 20px 30px;
    background: #0b1220;
    /* Dark background */
    color: #ffffff;
    border-top: none;
    font-family: 'Poppins', sans-serif;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1120px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Brand Column */
.footer-brand {
    text-align: left;
    max-width: 360px;
}

.footer-kicker {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: #94a3b8;
    /* Muted text */
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.footer-brand h2 {
    margin: 0 0 16px 0;
    font-size: 1.75rem;
    line-height: 1.25;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
}

.footer-small {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0b1220 !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.footer-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
    background: #ffffff;
    color: #0b1220;
}

/* Navigation Columns */
.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    font-weight: 700;
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    font-size: 0.95rem;
    /* Reduced from 1rem */
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    width: fit-content;
    white-space: nowrap;
    /* FIX: Prevent text wrapping (e.g. Growth Levers) */
}

.footer-nav a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* Contact Column */
.footer-contact {
    align-items: flex-start;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    /* Reduced for consistency */
    font-weight: 500;
    margin-bottom: 20px;
    transition: opacity 0.2s ease;
}

.footer-email:hover {
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.footer-social-link:hover {
    background: #ffffff;
    color: #0b1220;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Copyright */
.footer-meta {
    max-width: 1120px;
    margin: 60px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 860px) {
    .tj-footer-area {
        padding: 40px 20px 30px;
    }

    .footer-content {
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand brand"
            "links contact";
        gap: 32px 20px;
    }

    .footer-brand {
        grid-area: brand;
        max-width: 100%;
        text-align: center;
    }

    .footer-links {
        grid-area: links;
    }

    .footer-contact {
        grid-area: contact;
    }

    .footer-brand h2 {
        font-size: 1.5rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-kicker {
        text-align: center;
    }

    /* Ensure CTA is visible and centered on mobile */
    .footer-cta-button {
        width: fit-content;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 36px;
    }

    .footer-brand,
    .footer-links,
    .footer-contact {
        text-align: center;
        align-items: center;
    }

    .footer-links,
    .footer-contact,
    .footer-nav {
        align-items: center;
    }
}