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

:root {
  --font-serif: 'Recoleta', Georgia, serif;
  --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --color-dark: #1a1a1a;
  --color-text: #555;
  --color-light: #f5f0eb;
  --color-white: #fff;
  --color-purple: #e8d5f5;
  --color-blue: #d5eaf5;
  --color-peach: #f5e0d5;
  --color-green: #d5f5e0;
  --radius: 24px;
  --radius-sm: 16px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-dark);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
}

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

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

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  padding: 1.25rem 3rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(250, 245, 239, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-cta {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--color-dark);
  border-radius: 6px;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 10rem 3rem 6rem;
  background: radial-gradient(ellipse at 65% 50%, #fdf6ee 0%, #f7e9d8 45%, #eddcc8 100%);
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 35% 35%, #1a1a1a 0%, #2a2a2a 45%, rgba(26,26,26,0.6) 70%, rgba(26,26,26,0) 100%);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  animation: blob-drift 18s ease-in-out infinite;
  will-change: transform;
}

@keyframes blob-drift {
  0%   { transform: translate(-60%, -55%) scale(1); }
  20%  { transform: translate(-20%, -75%) scale(1.1); }
  40%  { transform: translate(-85%, -30%) scale(0.95); }
  60%  { transform: translate(-10%, -25%) scale(1.15); }
  80%  { transform: translate(-75%, -80%) scale(1); }
  100% { transform: translate(-60%, -55%) scale(1); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5rem;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-text h1 {
  font-size: 5.2rem;
  line-height: 1.05;
  margin-bottom: 2.25rem;
  color: var(--color-dark);
}

.hero-bio {
  font-size: 1.4rem;
  line-height: 1.7;
  color: #6a645c;
  margin-bottom: 1.6rem;
  max-width: 680px;
}

.hero-bio strong {
  color: var(--color-dark);
  font-weight: 600;
}

.hero-photo-wrapper {
  flex-shrink: 0;
}

.hero-photo-card {
  position: relative;
  width: 320px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.05);
}

.hero-photo {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-sm);
  display: block;
}

.status-badge {
  position: absolute;
  bottom: 22px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: var(--color-white);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-dark);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #2ecc71;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ===========================
   LOGO MARQUEE
   =========================== */
.logo-marquee {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, #ede0d4 0%, #f5f0eb 100%);
  overflow: hidden;
}

.marquee-heading {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 2rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
}

.marquee-logos {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 0 2rem;
}

.marquee-logos img {
  height: 50px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(30%);
  transition: opacity 0.3s;
}

.marquee-logos img.logo-lg {
  height: 80px;
}

.marquee-logos img:hover {
  opacity: 1;
  filter: grayscale(0);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================
   SECTION TITLE
   =========================== */
.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: var(--color-dark);
}

/* ===========================
   EXPERIENCE SECTION
   =========================== */
.experience-section {
  padding: 6rem 3rem;
  background: #faf5ef;
}

.experience-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.experience-title {
  text-align: left;
  font-size: 3rem;
  margin-bottom: 3rem;
}

.experience-list {
  display: flex;
  flex-direction: column;
}

.experience-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.experience-row:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.experience-role {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: #8a847c;
  line-height: 1.2;
}

.experience-company {
  text-align: right;
}

.company-name {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: #8a847c;
  line-height: 1.2;
}

.company-date {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #b3ada5;
  margin-top: 0.4rem;
}

/* ===========================
   AWARDS SECTION
   =========================== */
.awards-section {
  padding: 5rem 3rem;
  background: #f2f2f2;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.award-card {
  background: var(--color-white);
  border-radius: 22px;
  padding: 1.25rem 1.25rem 1.75rem;
  box-shadow: 0 2px 18px rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
  display: flex;
  flex-direction: column;
}

.award-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.award-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.award-img-wrapper img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s;
}

.award-card:hover .award-img-wrapper img {
  transform: scale(1.03);
}

.award-card h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.2;
  padding: 0 0.25rem;
  color: var(--color-dark);
}

.award-card p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  color: #888;
  margin-bottom: 1.5rem;
  padding: 0 0.25rem;
  flex: 1;
}

.btn-dark {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s;
  margin: 0 0.25rem;
}

.btn-dark:hover {
  background: #333;
  transform: translateY(-2px);
}

/* ===========================
   STACKING CARDS SECTION
   =========================== */
.stacking-section {
  padding: 6rem 0 2rem;
  position: relative;
}

.stacking-cards {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* Each card gets generous margin-bottom so there is enough scroll distance
   for the card to "live" at its sticky position before the next card arrives */
.stack-card {
  position: sticky;
  padding: 0 3rem;
  margin-bottom: 20vh;
  transform-origin: center top;
  will-change: transform, opacity;
}

/* Last card rests normally */
.stack-card:last-child {
  margin-bottom: 4rem;
}

/* Each subsequent card sticks slightly lower, peeking below the previous.
   Higher data-index = higher z-index so later cards overlap earlier ones. */
.stack-card[data-index="0"] { z-index: 4; top: 80px; }
.stack-card[data-index="1"] { z-index: 5; top: 110px; }
.stack-card[data-index="2"] { z-index: 6; top: 140px; }
.stack-card[data-index="3"] { z-index: 7; top: 170px; }

.stack-card-inner {
  border-radius: var(--radius);
  padding: 3rem;
  min-height: 380px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 50px rgba(0,0,0,0.08), 0 2px 12px rgba(0,0,0,0.04);
  /* JS drives transform/opacity via rAF, but we want smooth interpolation */
  transition: box-shadow 0.3s;
}

.stack-card:hover .stack-card-inner {
  box-shadow: 0 16px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
}

.card-purple {
  background: linear-gradient(135deg, #e8d5f5 0%, #d9c2ea 50%, #c9aedd 100%);
}

.card-blue {
  background: linear-gradient(135deg, #d5eaf5 0%, #bddcef 50%, #a8ceea 100%);
}

.card-peach {
  background: linear-gradient(135deg, #f5e0d5 0%, #f0d0c0 50%, #ebc0ab 100%);
}

.card-green {
  background: linear-gradient(135deg, #d5f5e0 0%, #bde8cc 50%, #a5dbb8 100%);
}

.stack-card-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.stack-card-text {
  flex: 1;
}

.stack-card-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.stack-card-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.7);
  margin-bottom: 1.5rem;
  max-width: 420px;
}

.stack-card-media {
  flex-shrink: 0;
  width: 380px;
}

.newsletter-img-placeholder {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.newsletter-img-placeholder img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.newsletter-stats {
  display: flex;
  gap: 2.5rem;
  align-items: flex-end;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text);
  margin-top: 0.25rem;
}

/* ===========================
   SPEAKING SECTION
   =========================== */
.speaking-section {
  padding: 5rem 3rem;
  background: var(--color-white);
}

.speaking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.speaking-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
}

.speaking-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.speaking-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.speaking-info {
  padding: 1.25rem;
}

.speaking-info h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.speaking-info p {
  font-size: 0.85rem;
  color: var(--color-text);
}

/* ===========================
   HOMEPAGE SPEAKING (Horizontal timeline)
   =========================== */
.home-speaking {
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, #faf5ef 0%, #f0e3cf 100%);
  overflow: hidden;
}

.home-speaking-header {
  max-width: 1180px;
  margin: 0 auto 3rem;
  padding: 0 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.home-speaking-header h2 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
  color: var(--color-dark);
}

.home-speaking-sub {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: #6a645c;
  max-width: 520px;
}

.home-speaking-link {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-dark);
  padding-bottom: 3px;
  white-space: nowrap;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.home-speaking-link:hover {
  transform: translateX(4px);
  opacity: 0.75;
}

.home-speaking-scroller {
  position: relative;
  padding: 0 3rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.5rem;
}

.home-speaking-scroller::-webkit-scrollbar {
  height: 6px;
}

.home-speaking-scroller::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  margin: 0 3rem;
}

.home-speaking-scroller::-webkit-scrollbar-thumb {
  background: rgba(31, 28, 24, 0.25);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.home-speaking-scroller::-webkit-scrollbar-thumb:hover {
  background: rgba(31, 28, 24, 0.5);
}

.home-speaking-track {
  display: inline-flex;
  align-items: stretch;
  gap: 1.75rem;
  position: relative;
  padding: 4.5rem 0 1rem;
}

/* The horizontal rail running across the top of the cards */
.home-speaking-track::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    #aae3b8 0%,
    #aacfe5 22%,
    #c4dccc 45%,
    #ccbfdf 65%,
    #f3d3b8 82%,
    #c5e1c2 100%);
  border-radius: 2px;
  opacity: 0.6;
  z-index: 1;
}

.htime-item {
  flex-shrink: 0;
  width: 360px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.htime-item:hover {
  transform: translateY(-6px);
}

.htime-marker {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  background: #faf5ef;
  padding: 0 0.9rem;
  z-index: 3;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

.htime-node {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #faf5ef;
  border: 3px solid var(--color-dark);
  box-shadow: 0 0 0 4px #faf5ef;
  z-index: 2;
  transition: background 0.3s ease, transform 0.3s ease;
}

.htime-item:hover .htime-node {
  background: var(--color-dark);
  transform: translateX(-50%) scale(1.15);
}

.htime-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: linear-gradient(125deg, #f5f8f0 0%, #e3f0e1 55%, #c5e1c2 100%);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.htime-item:hover .htime-card {
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.12);
}

.htime-card--lavender { background: linear-gradient(120deg, #dac8eb 0%, #ccbfdf 40%, #c2c8d2 70%, #b5d3be 100%); }
.htime-card--peach    { background: linear-gradient(120deg, #fadbc1 0%, #f3d3b8 35%, #d8d8b8 70%, #c5dbb8 100%); }
.htime-card--mint     { background: linear-gradient(125deg, #b8edc7 0%, #aae3b8 50%, #9bd9aa 100%); }
.htime-card--lilac    { background: linear-gradient(120deg, #e2d3ea 0%, #ddd0e8 35%, #d3d4dd 65%, #c4dccc 100%); }
.htime-card--sky      { background: linear-gradient(125deg, #c5dff2 0%, #b8d8ec 50%, #aacfe5 100%); }

.htime-card-image {
  border-radius: 14px;
  overflow: hidden;
  height: 180px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

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

.htime-item:hover .htime-card-image img {
  transform: scale(1.04);
}

.htime-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-dark);
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.htime-card p {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.55;
  color: #4a463f;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.htime-card-meta {
  display: flex;
  gap: 1.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(31, 28, 24, 0.08);
  font-family: var(--font-sans);
}

.htime-card-meta > div {
  flex: 1;
}

.htime-card-meta span {
  font-size: 0.72rem;
  color: #6a645c;
  letter-spacing: 0.02em;
}

.htime-card-meta strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .home-speaking {
    padding: 4rem 0 3.5rem;
  }
  .home-speaking-header {
    padding: 0 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  .home-speaking-header h2 {
    font-size: 2rem;
  }
  .home-speaking-sub {
    font-size: 0.92rem;
  }
  .home-speaking-scroller {
    padding: 0 1.5rem;
    padding-bottom: 1rem;
  }
  .home-speaking-track {
    gap: 1.25rem;
    padding: 4rem 0 0.5rem;
  }
  .home-speaking-track::before {
    top: 32px;
  }
  .htime-item {
    width: 290px;
  }
  .htime-marker {
    font-size: 1.1rem;
    top: -28px;
  }
  .htime-node {
    top: 24px;
    width: 13px;
    height: 13px;
  }
  .htime-card {
    padding: 1.4rem;
    border-radius: 20px;
  }
  .htime-card-image {
    height: 150px;
  }
  .htime-card h3 {
    font-size: 1.15rem;
  }
  .htime-card p {
    font-size: 0.84rem;
  }
  .htime-card-meta strong {
    font-size: 0.95rem;
  }
}

/* ===========================
   COURSES PAGE (reuses .speaking-feature)
   =========================== */
.courses-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.courses-catalog-cta {
  margin-top: 1rem;
  padding: 3.5rem 2.5rem;
  background: linear-gradient(135deg, #1f1c18 0%, #3d3832 100%);
  color: #faf5ef;
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 20px 50px -15px rgba(31, 28, 24, 0.25);
}

.courses-catalog-cta h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  color: #faf5ef;
  letter-spacing: -0.01em;
}

.courses-catalog-cta p {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(250, 245, 239, 0.78);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.courses-catalog-cta-btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 1rem 2.25rem;
  background: #faf5ef;
  color: #1f1c18;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.courses-catalog-cta-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

@media (max-width: 700px) {
  .courses-catalog-cta {
    padding: 2.5rem 1.75rem;
    border-radius: 22px;
  }
  .courses-catalog-cta h3 {
    font-size: 1.5rem;
  }
  .courses-catalog-cta p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .courses-catalog-cta-btn {
    padding: 0.85rem 1.75rem;
    font-size: 0.85rem;
  }
}

/* ===========================
   SPEAKING & OUTREACH (dedicated page)
   =========================== */
.speaking-feature-section {
  padding: 8rem 3rem 6rem;
  background: #faf5ef;
  min-height: 100vh;
}

.speaking-feature-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.speaking-feature-heading {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-dark);
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

/* ---- Timeline structure ---- */
.timeline-intro {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #6a645c;
  max-width: 580px;
  margin: -1.5rem 0 4rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

/* The vertical rail running down the left */
.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg,
    #9bd9aa 0%,
    #aacfe5 22%,
    #c4dccc 42%,
    #b5d3be 58%,
    #d8d8b8 78%,
    #c5e1c2 100%);
  border-radius: 2px;
  opacity: 0.55;
}

.timeline-group {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2.5rem;
  margin-bottom: 5rem;
  position: relative;
}

.timeline-group:last-child {
  margin-bottom: 0;
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1;
  letter-spacing: -0.02em;
  position: sticky;
  top: 110px;
  align-self: start;
  padding-top: 1.5rem;
  text-align: right;
  padding-right: 2.5rem;
}

.timeline-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.speaking-feature {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.5rem;
  background: linear-gradient(125deg, #f5f8f0 0%, #e3f0e1 55%, #c5e1c2 100%);
  border-radius: 32px;
  padding: 3rem 3rem 3rem 3.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.speaking-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
}

/* The connecting node on the rail (only inside the timeline) */
.timeline .speaking-feature::before {
  content: '';
  position: absolute;
  left: -2.75rem;
  top: 3rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #faf5ef;
  border: 3px solid var(--color-dark);
  box-shadow: 0 0 0 4px #faf5ef;
  z-index: 2;
  transition: background 0.3s ease, transform 0.3s ease;
}

.timeline .speaking-feature.in-view::before {
  background: var(--color-dark);
  transform: scale(1.15);
}

.speaking-feature--lavender {
  background: linear-gradient(120deg, #dac8eb 0%, #ccbfdf 40%, #c2c8d2 70%, #b5d3be 100%);
}

.speaking-feature--peach {
  background: linear-gradient(120deg, #fadbc1 0%, #f3d3b8 35%, #d8d8b8 70%, #c5dbb8 100%);
}

.speaking-feature--mint {
  background: linear-gradient(125deg, #b8edc7 0%, #aae3b8 50%, #9bd9aa 100%);
}

.speaking-feature--lilac {
  background: linear-gradient(120deg, #e2d3ea 0%, #ddd0e8 35%, #d3d4dd 65%, #c4dccc 100%);
}

.speaking-feature--sky {
  background: linear-gradient(125deg, #c5dff2 0%, #b8d8ec 50%, #aacfe5 100%);
}

.speaking-feature-text p a {
  color: #2a7fd0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.speaking-feature-text p a:hover {
  color: #1a5fa8;
}

.speaking-feature-text {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}

.speaking-feature-text h3 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.speaking-feature-text p {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.7;
  color: #6a645c;
  max-width: 460px;
  margin-bottom: auto;
}

.speaking-feature-cta {
  align-self: flex-start;
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.95rem 1.85rem;
  background: #1f1c18;
  color: #faf5ef;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 100px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.speaking-feature-cta:hover {
  background: #2b2823;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(31, 28, 24, 0.18);
}

.speaking-feature-media {
  display: flex;
  flex-direction: column;
}

.speaking-feature-image {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 2.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.speaking-feature-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.speaking-feature-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 0 0.25rem;
}

.speaking-meta-label {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #8a847c;
  margin-bottom: 0.5rem;
}

.speaking-meta-value {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1;
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .speaking-feature-section {
    padding: 7rem 1.5rem 4rem;
    min-height: auto;
  }
  .speaking-feature-heading {
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
  }
  .timeline-intro {
    margin: 0 0 2.5rem;
    font-size: 0.98rem;
  }
  /* Collapse rail to a thin left margin on mobile */
  .timeline::before {
    left: 12px;
    opacity: 0.4;
  }
  .timeline-group {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-left: 2rem;
  }
  .timeline-year {
    font-size: 1.75rem;
    position: static;
    text-align: left;
    padding: 0;
    margin-bottom: 0.25rem;
  }
  .timeline-cards {
    gap: 1.25rem;
  }
  .speaking-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    border-radius: 24px;
    transform: none !important;
    opacity: 1 !important;
  }
  .timeline .speaking-feature::before {
    left: -1.6rem;
    top: 1.75rem;
    width: 11px;
    height: 11px;
    border-width: 2px;
    box-shadow: 0 0 0 3px #faf5ef;
  }
  .speaking-feature-text {
    padding: 0;
  }
  .speaking-feature-text h3 {
    font-size: 1.7rem;
  }
  .speaking-feature-text p {
    max-width: 100%;
    font-size: 0.98rem;
  }
  .speaking-feature-cta {
    margin-top: 1.75rem;
    padding: 0.85rem 1.6rem;
    font-size: 0.85rem;
  }
  .speaking-feature-image img {
    height: 240px;
  }
  .speaking-feature-image {
    margin-bottom: 1.5rem;
  }
  .speaking-meta-value {
    font-size: 1.85rem;
  }
}

@media (max-width: 480px) {
  .speaking-feature {
    padding: 1.5rem;
  }
  .speaking-feature-text h3 {
    font-size: 1.45rem;
  }
  .speaking-feature-image img {
    height: 200px;
  }
  .speaking-feature-meta {
    gap: 1.25rem;
  }
  .speaking-meta-value {
    font-size: 1.5rem;
  }
}

/* ===========================
   SPEAKING PAGE TESTIMONIALS
   =========================== */
.speaking-testimonials-section {
  padding: 4rem 0 6rem;
  background: #faf5ef;
  overflow: hidden;
}

.speaking-testimonials-header {
  max-width: 1180px;
  margin: 0 auto 3rem;
  padding: 0 3rem;
}

.speaking-testimonials-header h2 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

.speaking-testimonials-header p {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: #888;
  max-width: 580px;
}

.speaking-testimonials-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.speaking-testimonials-track {
  display: flex;
  gap: 1.75rem;
  width: max-content;
  padding: 1rem 0;
  animation: speaking-testimonials-scroll 70s linear infinite;
}

.speaking-testimonials-marquee:hover .speaking-testimonials-track {
  animation-play-state: paused;
}

@keyframes speaking-testimonials-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.speaking-testimonial {
  position: relative;
  flex-shrink: 0;
  width: 440px;
  min-height: 280px;
  padding: 2rem 2.25rem 5rem;
  background: linear-gradient(180deg, #d8ebf6 0%, #c8dff0 100%);
  border-radius: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.speaking-testimonial-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
  color: #1a4a78;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  align-self: flex-start;
}

a.speaking-testimonial-name {
  color: #2a7fd0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

a.speaking-testimonial-name:hover {
  color: #1a5fa8;
}

.speaking-testimonial-body {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a5a65;
  position: relative;
  z-index: 1;
}

.speaking-testimonial-number {
  position: absolute;
  bottom: 0.2rem;
  left: 1.5rem;
  font-family: var(--font-serif);
  font-size: 6.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 900px) {
  .speaking-testimonials-section {
    padding: 3rem 0 4rem;
  }
  .speaking-testimonials-header {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
  }
  .speaking-testimonials-header h2 {
    font-size: 2rem;
  }
  .speaking-testimonial {
    width: 320px;
    min-height: 240px;
    padding: 1.5rem 1.75rem 4rem;
  }
  .speaking-testimonial-name {
    font-size: 1.35rem;
  }
  .speaking-testimonial-body {
    font-size: 0.88rem;
  }
  .speaking-testimonial-number {
    font-size: 5rem;
    left: 1.25rem;
  }
}

@media (max-width: 480px) {
  .speaking-testimonial {
    width: 280px;
  }
}

/* ===========================
   COURSES SECTION
   =========================== */
.courses-section {
  padding: 5rem 3rem;
  background: #fafafa;
}

.courses-header {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.courses-header .section-title {
  margin-bottom: 1rem;
}

.courses-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: #6a645c;
  max-width: 660px;
  margin: 0 auto;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
  text-decoration: none;
  color: inherit;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.course-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  flex-shrink: 0;
}

.course-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #faf5ef;
  background: rgba(31, 28, 24, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.65rem;
  border-radius: 100px;
  z-index: 2;
}

.course-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1rem 1.1rem;
  gap: 0.25rem;
}

.course-card h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}

.course-card p {
  font-size: 0.8rem;
  color: var(--color-text);
  margin: 0;
  padding: 0;
}

.course-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.course-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.course-stat-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a847c;
}

.course-stat-value {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1;
  letter-spacing: -0.01em;
}

.course-card--more {
  background: linear-gradient(135deg, #faf5ef 0%, #f0e3cf 100%);
  border: 1px dashed rgba(31, 28, 24, 0.18);
  box-shadow: none;
}

.course-card--more:hover {
  background: linear-gradient(135deg, #f5ede0 0%, #ebd9bf 100%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.course-card--more h4 {
  color: var(--color-dark);
}

.course-card--more p {
  color: #6a645c;
  font-weight: 500;
}

/* ===========================
   BLOG SECTION
   =========================== */
.blog-section {
  padding: 6rem 3rem;
  background: #faf5ef;
}

.blog-section.blog-page {
  padding-top: 8rem;
  min-height: 100vh;
}

.blog-intro {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: #888;
  max-width: 600px;
  margin: -2rem 0 3rem;
}

/* Blog category tabs */
.blog-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.blog-tab {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  border-radius: 10px;
  color: #8a847c;
  cursor: pointer;
  transition: all 0.25s ease;
}

.blog-tab:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #4a463f;
}

.blog-tab.active {
  background: #ffffff;
  color: var(--color-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.blog-empty {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #a8a39c;
  padding: 3rem 0;
  text-align: center;
}

/* Additional thumbnails for new categories */
.blog-thumb-tech-1 {
  background-image: url('images/blog/reasoning_models/reasoning_models1.avif');
  background-size: cover;
  background-position: center;
}

.blog-thumb-tech-2 {
  background: linear-gradient(135deg, #e8e4df 0%, #cfc9c0 50%, #9a938a 100%);
}

.blog-thumb-goodfire {
  background-image: url('images/blog/goodfire_interp/goodfire1.webp');
  background-size: cover;
  background-position: center;
}

.blog-thumb-graphlit {
  background: #2a2a2a;
  position: relative;
}

.blog-thumb-graphlit::after {
  content: "Graphlit";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-30%, -50%);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 500;
}

.blog-thumb-graphlit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-150%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffd93d 0%, #ff6b9d 50%, #6bb6ff 100%);
  opacity: 0.85;
}

.blog-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.blog-title {
  text-align: left;
  font-size: 3rem;
  margin-bottom: 3rem;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.blog-list[hidden] {
  display: none;
}

.blog-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 0.5rem 0;
  transition: transform 0.3s ease;
}

.blog-item:hover {
  transform: translateX(6px);
}

.blog-item:hover .blog-heading {
  color: var(--color-dark);
}

.blog-thumb {
  flex-shrink: 0;
  width: 220px;
  height: 140px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.blog-thumb-1 {
  background: linear-gradient(135deg, #1a2332 0%, #2d3f52 50%, #4a6078 100%);
}

.blog-thumb-2 {
  background: linear-gradient(135deg, #c88a6a 0%, #7ba89c 60%, #3f7e70 100%);
}

.blog-thumb-3 {
  background: linear-gradient(135deg, #c9b89a 0%, #8a7a65 100%);
}

.blog-thumb-4 {
  background: linear-gradient(135deg, #e8a85b 0%, #d85fa0 60%, #5aa0c0 100%);
}

.blog-thumb-5 {
  background: linear-gradient(135deg, #3a3028 0%, #8a6a50 100%);
}

.blog-thumb-techbro {
  background-image:
    linear-gradient(135deg, rgba(250, 245, 239, 0.05), rgba(250, 245, 239, 0.2)),
    url('images/blog/tech-bros-blobs.svg');
  background-size: cover;
  background-position: center;
}

.blog-thumb-rihanna {
  background-image: url('images/blog/spark_thumbnail.png');
  background-size: cover;
  background-position: center;
}

.blog-thumb-community {
  background-image:
    linear-gradient(180deg, rgba(250, 245, 239, 0.30), rgba(250, 245, 239, 0.50)),
    url('images/blog/communitypandemicblog.avif');
  background-size: cover;
  background-position: center;
  filter: sepia(0.3) hue-rotate(170deg) saturate(0.85);
}

.blog-content {
  flex: 1;
}

.blog-date {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #a8a39c;
  margin-bottom: 0.6rem;
}

.blog-heading {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 500;
  color: #8a847c;
  line-height: 1.35;
  transition: color 0.3s ease;
}

/* ===========================
   BLOG POST (single article)
   Magazine-style reusable template
   =========================== */
.blog-post {
  background: #faf5ef;
  color: #2b2823;
  padding-bottom: 6rem;
}

/* --- Hero / header --- */
.post-hero {
  position: relative;
  padding: 9rem 2rem 3rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #8a847c;
  text-transform: uppercase;
  margin-bottom: 3rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.post-back:hover {
  color: var(--color-dark);
  transform: translateX(-3px);
}

.post-eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b8866a;
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(184, 134, 106, 0.35);
  border-radius: 100px;
  background: rgba(184, 134, 106, 0.06);
}

.post-title {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #1f1c18;
  margin-bottom: 1.75rem;
  max-width: 800px;
}

.post-subtitle {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
  color: #6a645c;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.post-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #8a847c;
}

.post-byline-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.post-byline-meta {
  text-align: left;
  line-height: 1.35;
}

.post-byline-meta strong {
  display: block;
  color: #1f1c18;
  font-weight: 600;
  font-size: 0.92rem;
}

.post-byline-meta span {
  font-size: 0.78rem;
  color: #a8a39c;
}

.post-byline-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c9c4bc;
}

.post-original {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #8a847c;
  margin-top: 1.5rem;
  font-style: italic;
}

.post-original a {
  color: #b8866a;
  border-bottom: 1px solid rgba(184, 134, 106, 0.4);
}

.post-original a:hover {
  border-bottom-color: #b8866a;
}

.post-body code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(31, 28, 24, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: #1f1c18;
}

/* --- Featured image (full-bleed) --- */
.post-featured {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

.post-featured img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 30px 80px -20px rgba(31, 28, 24, 0.25),
              0 10px 30px -10px rgba(31, 28, 24, 0.15);
}

/* --- Body --- */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 0;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.85;
  color: #3d3832;
}

.post-body > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 500;
  float: left;
  line-height: 0.85;
  padding: 0.4rem 0.7rem 0 0;
  color: #1f1c18;
}

.post-body p {
  margin-bottom: 1.75rem;
}

.post-body h2 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #1f1c18;
  margin: 4rem 0 1.5rem;
  position: relative;
  padding-top: 2.5rem;
}

.post-body h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: #b8866a;
  border-radius: 2px;
}

.post-body h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: #1f1c18;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.post-body a {
  color: #b8866a;
  border-bottom: 1px solid rgba(184, 134, 106, 0.4);
  transition: border-color 0.2s ease;
}

.post-body a:hover {
  border-bottom-color: #b8866a;
}

.post-body strong {
  color: #1f1c18;
  font-weight: 600;
}

.post-body blockquote {
  margin: 3rem -1rem;
  padding: 0 2rem;
  border-left: 3px solid #b8866a;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.4;
  color: #1f1c18;
}

.post-body ul, .post-body ol {
  margin: 0 0 1.75rem 1.5rem;
  padding: 0;
}

.post-body li {
  margin-bottom: 0.6rem;
}

/* --- Inline figures --- */
.post-figure {
  margin: 3.5rem -4rem;
}

.post-figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 50px -15px rgba(31, 28, 24, 0.2);
}

.post-figure figcaption {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #8a847c;
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

/* --- Background art for the tech-bro essay (single piece, sits behind text) --- */
.blog-post--techbro {
  position: relative;
  isolation: isolate;
  background: #faf5ef;
}

.blog-post--techbro .blog-post-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/blog/tech-bros-blobs.svg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
}

/* Soft cream wash so the text panel reads cleanly over the art */
.blog-post--techbro .blog-post-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(250, 245, 239, 0.0) 0%,
    rgba(250, 245, 239, 0.55) 35%,
    rgba(250, 245, 239, 0.92) 70%,
    rgba(250, 245, 239, 1) 100%);
  pointer-events: none;
}

/* --- Background art for the WWCode community essay (faded image with cool tint) --- */
.blog-post--community {
  position: relative;
  isolation: isolate;
  background: #faf5ef;
}

.blog-post--community .blog-post-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/blog/communitypandemicblog.avif');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.20;
  filter: sepia(0.35) hue-rotate(170deg) saturate(0.8) contrast(1.05);
  z-index: -1;
  pointer-events: none;
}

.blog-post--community .blog-post-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(250, 245, 239, 0.30) 0%,
      rgba(250, 245, 239, 0.62) 40%,
      rgba(250, 245, 239, 0.92) 75%,
      rgba(250, 245, 239, 1) 100%),
    radial-gradient(ellipse at 50% 25%, rgba(120, 160, 200, 0.18), transparent 60%);
  pointer-events: none;
}

/* --- Background art for the Rihanna / Spark essay (faded image with hue tint) --- */
.blog-post--rihanna {
  position: relative;
  isolation: isolate;
  background: #faf5ef;
}

.blog-post--rihanna .blog-post-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/blog/rihanna_blog.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.22;
  filter: sepia(0.5) hue-rotate(-18deg) saturate(0.85) contrast(1.05);
  z-index: -1;
  pointer-events: none;
}

/* Warm cream wash + a touch of color tint so the image fades into the page */
.blog-post--rihanna .blog-post-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(250, 245, 239, 0.35) 0%,
      rgba(250, 245, 239, 0.65) 40%,
      rgba(250, 245, 239, 0.92) 75%,
      rgba(250, 245, 239, 1) 100%),
    radial-gradient(ellipse at 50% 25%, rgba(220, 130, 100, 0.18), transparent 60%);
  pointer-events: none;
}

/* --- Abstract figures (CSS-painted gradients used as inline blog art) --- */
.post-abstract {
  margin: 3.5rem -4rem;
  border-radius: 18px;
  height: 320px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(31, 28, 24, 0.18);
  isolation: isolate;
}

.post-abstract::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0, rgba(0, 0, 0, 0.18) 100%);
  mix-blend-mode: overlay;
  opacity: 0.45;
  pointer-events: none;
}

.post-abstract::before {
  content: '';
  position: absolute;
  inset: -10%;
  filter: blur(28px);
  z-index: 0;
}

.post-abstract--warm::before {
  background:
    radial-gradient(circle at 22% 28%, #ff8466 0%, transparent 38%),
    radial-gradient(circle at 78% 70%, #c43d8a 0%, transparent 42%),
    radial-gradient(circle at 50% 92%, #ffc066 0%, transparent 38%),
    linear-gradient(135deg, #fdedd2 0%, #f3c590 60%, #e89c5f 100%);
}

.post-abstract--dusk::before {
  background:
    radial-gradient(circle at 28% 38%, #8553e6 0%, transparent 42%),
    radial-gradient(circle at 76% 68%, #d058a5 0%, transparent 42%),
    radial-gradient(circle at 50% 18%, #4a83de 0%, transparent 38%),
    linear-gradient(180deg, #2d1b4e 0%, #4a2870 55%, #7d3f8a 100%);
}

.post-abstract--ocean::before {
  background:
    radial-gradient(circle at 24% 32%, #5dc6d8 0%, transparent 42%),
    radial-gradient(circle at 78% 62%, #a378dc 0%, transparent 42%),
    radial-gradient(circle at 58% 92%, #c9d465 0%, transparent 38%),
    linear-gradient(135deg, #e0f0e8 0%, #b8d8e8 60%, #94c1de 100%);
}

.post-abstract--ember::before {
  background:
    radial-gradient(circle at 30% 30%, #ff5b5b 0%, transparent 40%),
    radial-gradient(circle at 75% 65%, #ffb55b 0%, transparent 42%),
    radial-gradient(circle at 50% 95%, #6e1a1a 0%, transparent 50%),
    linear-gradient(135deg, #2a0c1a 0%, #5e1932 50%, #a13a3a 100%);
}

.post-abstract--mint::before {
  background:
    radial-gradient(circle at 25% 30%, #6ed8a8 0%, transparent 40%),
    radial-gradient(circle at 78% 65%, #97c4dc 0%, transparent 40%),
    radial-gradient(circle at 50% 92%, #f3d7a3 0%, transparent 40%),
    linear-gradient(135deg, #d8eee2 0%, #b8d8c8 60%, #8eb6a4 100%);
}

/* --- Section divider --- */
.post-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 4rem auto;
  max-width: 120px;
}

.post-divider span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8866a;
  opacity: 0.5;
}

/* --- CTA at end of post --- */
.post-cta {
  max-width: 720px;
  margin: 4rem auto 0;
  padding: 0 2rem;
}

.post-cta-inner {
  background: linear-gradient(135deg, #1f1c18 0%, #3d3832 100%);
  color: #faf5ef;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 50px -15px rgba(31, 28, 24, 0.3);
}

.post-cta-inner h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: #faf5ef;
}

.post-cta-inner p {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(250, 245, 239, 0.75);
  max-width: 480px;
  margin: 0 auto 1.75rem;
}

.post-cta-inner .btn-dark {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  background: #faf5ef;
  color: #1f1c18;
  border-radius: 100px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-cta-inner .btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* --- Tags / footer --- */
.post-footer {
  max-width: 720px;
  margin: 4rem auto 0;
  padding: 3rem 2rem 0;
  border-top: 1px solid rgba(31, 28, 24, 0.08);
  text-align: center;
}

.post-footer-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a847c;
  transition: color 0.25s ease;
}

.post-footer-back:hover {
  color: #1f1c18;
}

/* --- Responsive --- */
@media (max-width: 820px) {
  .post-hero {
    padding: 7rem 1.5rem 2rem;
  }
  .post-back {
    margin-bottom: 2rem;
  }
  .post-title {
    font-size: 2.25rem;
  }
  .post-subtitle {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }
  .post-byline {
    flex-wrap: wrap;
    gap: 0.75rem;
    row-gap: 0.5rem;
  }
  .post-byline-sep {
    display: none;
  }
  .post-featured {
    padding: 0 1rem;
    margin-top: 1.5rem;
  }
  .post-featured img {
    border-radius: 16px;
  }
  .post-body {
    padding: 3rem 1.5rem 0;
    font-size: 1.05rem;
    line-height: 1.75;
  }
  .post-body > p:first-of-type::first-letter {
    font-size: 3.5rem;
  }
  .post-body h2 {
    font-size: 1.65rem;
    margin: 3rem 0 1rem;
    padding-top: 2rem;
  }
  .post-body h3 {
    font-size: 1.3rem;
  }
  .post-figure {
    margin: 2.5rem 0;
  }
  .post-figure img {
    border-radius: 12px;
  }
  .post-abstract {
    margin: 2.5rem 0;
    height: 220px;
    border-radius: 14px;
  }
  .post-body blockquote {
    margin: 2.5rem 0;
    padding: 0 1.25rem;
    font-size: 1.3rem;
  }
  .post-divider {
    margin: 3rem auto;
  }
  .post-cta {
    padding: 0 1.5rem;
  }
  .post-cta-inner {
    padding: 2.25rem 1.75rem;
    border-radius: 18px;
  }
  .post-cta-inner h3 {
    font-size: 1.5rem;
  }
  .post-cta-inner p {
    font-size: 0.92rem;
  }
  .post-footer {
    padding: 2.5rem 1.5rem 0;
    margin-top: 3rem;
  }
}

@media (max-width: 480px) {
  .post-hero {
    padding: 6.5rem 1.25rem 1.5rem;
  }
  .post-title {
    font-size: 1.85rem;
  }
  .post-eyebrow {
    font-size: 0.68rem;
    padding: 0.35rem 0.85rem;
  }
  .post-body {
    padding: 2.5rem 1.25rem 0;
    font-size: 1rem;
  }
  .post-body > p:first-of-type::first-letter {
    font-size: 3rem;
    padding: 0.35rem 0.55rem 0 0;
  }
  .post-body h2 {
    font-size: 1.45rem;
  }
  .post-body blockquote {
    font-size: 1.15rem;
    padding: 0 1rem;
  }
  .post-byline-avatar {
    width: 38px;
    height: 38px;
  }
  .post-cta {
    padding: 0 1.25rem;
  }
  .post-cta-inner {
    padding: 2rem 1.5rem;
  }
  .post-cta-inner h3 {
    font-size: 1.3rem;
  }
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials-section {
  padding: 5rem 0;
  background: #faf5ef;
  overflow: hidden;
}

.testimonials-header {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 3rem;
  text-align: left;
}

.testimonials-header .section-title {
  text-align: left;
  margin-bottom: 1rem;
}

.testimonials-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: #888;
  max-width: 640px;
}

.testimonials-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.testimonials-track {
  display: flex;
  gap: 1.75rem;
  width: max-content;
  padding: 1rem 0;
  animation: testimonials-scroll 90s linear infinite;
}

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

@keyframes testimonials-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  flex-shrink: 0;
  width: 420px;
  padding: 2rem 2.25rem;
  background: linear-gradient(180deg, #d5eaf5 0%, #c0dcec 100%);
  border-radius: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.testimonial-card h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: #1e4d6b;
  margin-bottom: 0.4rem;
}

.testimonial-role {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  font-style: italic;
  color: #6a7a85;
  margin-bottom: 0.75rem;
}

.testimonial-body {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4a5a65;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: 4rem 3rem;
}

.footer-inner h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.footer-inner > p {
  max-width: 500px;
  margin: 0 auto 2rem;
  opacity: 0.7;
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-links a {
  font-weight: 500;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.4;
}

/* ===========================
   SCROLL-DRIVEN ANIMATIONS
   (fade-in on scroll)
   =========================== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */

/* ------ Tablet (≤ 1024px) ------ */
@media (max-width: 1024px) {
  .speaking-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stack-card {
    padding: 0 2rem;
  }
  .stack-card-inner {
    padding: 2.5rem;
  }
  .stack-card-media {
    width: 320px;
  }
  .experience-title {
    font-size: 2.5rem;
  }
}

/* ------ Small tablet / large phone (≤ 900px) ------ */
@media (max-width: 900px) {
  /* Navbar */
  .navbar {
    padding: 1rem 1.25rem;
    gap: 0.75rem;
    justify-content: space-between;
  }
  .nav-links {
    gap: 1.1rem;
  }
  .nav-links a {
    font-size: 0.78rem;
  }
  .nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.76rem;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 8rem 1.5rem 4rem;
  }
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-text h1 {
    font-size: 3.6rem;
  }
  .hero-bio {
    max-width: 100%;
    font-size: 1.25rem;
  }
  .hero-photo-card {
    width: 260px;
  }
  .hero-photo {
    height: 330px;
  }
  .hero-blob {
    width: 380px;
    height: 380px;
    filter: blur(70px);
  }

  /* Logo marquee */
  .logo-marquee {
    padding: 2.5rem 0 2rem;
  }
  .marquee-logos {
    gap: 2.5rem;
    padding: 0 1rem;
  }
  .marquee-logos img {
    height: 38px;
  }
  .marquee-logos img.logo-lg {
    height: 58px;
  }
  .marquee-heading {
    font-size: 0.75rem;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
  }

  /* Section titles */
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  /* Experience */
  .experience-section {
    padding: 4rem 1.5rem;
  }
  .experience-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .experience-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1.25rem 0;
  }
  .experience-company {
    text-align: left;
  }
  .experience-role,
  .company-name {
    font-size: 1.35rem;
  }

  /* Awards */
  .awards-section {
    padding: 4rem 1.5rem;
  }
  .awards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .award-img-wrapper img {
    height: 220px;
  }

  /* Stacking cards */
  .stacking-section {
    padding: 3rem 0 1rem;
  }
  .stack-card {
    position: relative;
    top: auto !important;
    padding: 0 1.25rem;
    margin-bottom: 1.5rem;
  }
  .stack-card-inner {
    padding: 1.75rem;
    min-height: auto;
  }
  .stack-card-content {
    flex-direction: column;
    gap: 1.75rem;
    align-items: flex-start;
  }
  .stack-card-text h3 {
    font-size: 1.5rem;
  }
  .stack-card-text p {
    font-size: 0.92rem;
    max-width: 100%;
  }
  .stack-card-media {
    width: 100%;
  }
  .newsletter-img-placeholder img {
    height: 200px;
  }
  .newsletter-stats {
    gap: 1.75rem;
  }
  .stat-number {
    font-size: 1.8rem;
  }

  /* Speaking */
  .speaking-section {
    padding: 4rem 1.5rem;
  }
  .speaking-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .speaking-card img {
    height: 220px;
  }

  /* Courses */
  .courses-section {
    padding: 4rem 1.5rem;
  }
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .course-card img {
    height: 120px;
  }

  /* Testimonials */
  .testimonials-section {
    padding: 4rem 0;
  }
  .testimonials-header {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
  }
  .testimonials-header .section-title {
    font-size: 2rem;
  }
  .testimonial-card {
    width: 320px;
    padding: 1.5rem 1.75rem;
  }
  .testimonial-card h4 {
    font-size: 1.25rem;
  }
  .testimonial-body {
    font-size: 0.85rem;
  }

  /* Blog listing */
  .blog-section {
    padding: 4rem 1.5rem;
  }
  .blog-section.blog-page {
    padding-top: 8rem;
  }
  .blog-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }
  .blog-tabs {
    gap: 0.4rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    scrollbar-width: none;
  }
  .blog-tabs::-webkit-scrollbar {
    display: none;
  }
  .blog-tab {
    font-size: 0.82rem;
    padding: 0.55rem 1rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .blog-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .blog-thumb {
    width: 100%;
    height: 200px;
  }
  .blog-heading {
    font-size: 1.2rem;
  }

  /* Footer */
  .footer {
    padding: 3rem 1.5rem;
  }
  .footer-inner h2 {
    font-size: 1.8rem;
  }
  .footer-links {
    gap: 1.25rem;
    flex-wrap: wrap;
  }
}

/* ------ Phone (≤ 600px) ------ */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  /* Navbar */
  .navbar {
    padding: 0.85rem 1rem;
  }
  .nav-links {
    gap: 0.85rem;
    font-size: 0.78rem;
  }
  .nav-cta {
    padding: 0.45rem 0.9rem;
    font-size: 0.74rem;
  }

  /* Hero */
  .hero {
    padding: 7rem 1.25rem 3.5rem;
  }
  .hero-text h1 {
    font-size: 2.9rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
  }
  .hero-bio {
    font-size: 1.18rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
  }
  .hero-photo-card {
    width: 220px;
  }
  .hero-photo {
    height: 280px;
  }
  .status-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    bottom: 18px;
    right: 14px;
  }

  /* Titles */
  .section-title {
    font-size: 1.75rem;
  }
  .experience-title,
  .blog-title {
    font-size: 1.85rem;
  }

  /* Courses: 2 col is okay, keep it */
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .course-card img {
    height: 100px;
  }
  .course-card h4 {
    font-size: 0.82rem;
    padding: 0.75rem 0.75rem 0.25rem;
  }
  .course-card p {
    font-size: 0.72rem;
    padding: 0 0.75rem 0.85rem;
  }

  /* Awards/Speaking card text */
  .award-card h3,
  .speaking-info h4 {
    font-size: 1.25rem;
  }
  .award-img-wrapper img {
    height: 200px;
  }
  .speaking-card img {
    height: 200px;
  }

  /* Experience rows */
  .experience-role,
  .company-name {
    font-size: 1.15rem;
  }

  /* Stacking cards */
  .stack-card-text h3 {
    font-size: 1.3rem;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .newsletter-stats {
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  /* Testimonials */
  .testimonial-card {
    width: 280px;
    padding: 1.35rem 1.5rem;
  }

  /* Blog listing */
  .blog-section {
    padding: 3rem 1.25rem;
  }
  .blog-thumb {
    height: 170px;
  }
  .blog-list {
    gap: 1.75rem;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 1.25rem;
  }
  .footer-inner h2 {
    font-size: 1.5rem;
  }
  .footer-inner > p {
    font-size: 0.88rem;
  }
}

/* ------ Very small phones (≤ 420px) ------ */
@media (max-width: 420px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-photo-card {
    width: 200px;
  }
  .hero-photo {
    height: 250px;
  }
  /* Stack the nav: CTA hidden, links take full row */
  .navbar {
    justify-content: center;
    padding: 0.75rem 0.75rem;
  }
  .nav-cta {
    display: none;
  }
  .nav-links {
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav-links a {
    font-size: 0.74rem;
  }
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .course-card img {
    height: 140px;
  }
  .testimonial-card {
    width: 260px;
  }
}
