:root {
  /* Light, uplifting, serene clinical palette */
  --bg: #FCFDFC;
  --bg-alt: #F2F7F6;
  --surface: #FFFFFF;
  --ink: #172126;
  --ink-muted: #52616B;
  --accent: #237A74;
  --accent-hover: #1B635E;
  --accent-soft: #E5F4F2;
  --warm: #D97A54;
  --warm-soft: #FDF0EA;
  --border: #E2ECEA;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 3px 14px rgba(23, 55, 53, 0.045);
  --shadow-md: 0 16px 38px rgba(23, 55, 53, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  transition: width 0.1s linear;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 253, 252, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(23, 55, 53, 0.05);
  background: rgba(255, 255, 255, 0.94);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.25s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after {
  width: 100%;
}

.nav-links .nav-cta {
  background: var(--accent);
  color: #FFFFFF;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-links .nav-cta:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(35, 122, 116, 0.24);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

/* Standardized Section Typography (applied uniformly across every section) */
.section {
  padding: 72px 0;
}

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

.section-header {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.section h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  color: var(--ink);
}

.section-sub {
  margin-top: 12px;
  font-size: 1.06rem;
  line-height: 1.62;
  color: var(--ink-muted);
  max-width: 820px;
}

.section-sub strong {
  color: var(--ink);
  font-weight: 600;
}

.text-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

/* Hero — Tall Vertical Portrait + Bold Editorial Credentials */
.hero {
  position: relative;
  padding: 52px 0 44px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

.hero-glow-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -60px;
  background: radial-gradient(circle, #CBECE7 0%, transparent 70%);
}

.hero-glow-2 {
  width: 340px;
  height: 340px;
  bottom: -100px;
  left: -80px;
  background: radial-gradient(circle, #FCE3D6 0%, transparent 70%);
  animation-delay: -5s;
}

@keyframes floatGlow {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(22px, 16px) scale(1.07); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 52px;
  align-items: center;
}

.portrait-frame-tall {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.portrait-frame-tall img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s var(--ease-out);
}

.portrait-frame-tall:hover img {
  transform: scale(1.025);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 4px rgba(217, 122, 84, 0.2);
}

.hero-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 5.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}

.hero-role {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 18px;
}

.hero-role-line {
  display: block;
  font-size: clamp(1.14rem, 1.85vw, 1.36rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.28;
}

.hero-role-sub {
  font-size: clamp(1.02rem, 1.55vw, 1.18rem);
  font-weight: 500;
  color: var(--ink);
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--ink-muted);
  max-width: 560px;
  margin-bottom: 22px;
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Metrics Bar beneath Hero */
.hero-metrics-bar {
  position: relative;
  z-index: 1;
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}

.metric-item {
  padding-right: 12px;
  border-right: 1px solid var(--border);
}

.metric-item:last-child {
  border-right: none;
  padding-right: 0;
}

.metric-value {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.metric-label {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

/* Horizontal University Logos Marquee (Borderless Editorial Style) */
.uni-marquee-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 48px;
  overflow: hidden;
}

.uni-marquee-eyebrow {
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 30px;
}

.marquee-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 68px;
  padding-right: 68px;
  width: max-content;
  animation: marqueeScroll 52s linear infinite;
}

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

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 0;
  flex-shrink: 0;
}

.marquee-item img {
  display: block;
  height: 76px;
  width: auto;
  max-width: none;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  flex-shrink: 0;
  mix-blend-mode: multiply;
  opacity: 0.96;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}

/* Optically balanced logo heights (all images pre-cropped edge-to-edge) */
.marquee-item img.logo-puc {
  height: 88px;
}

.marquee-item img.logo-perugia {
  height: 82px;
}

.marquee-item img.logo-cambridge {
  height: 86px;
}

.marquee-item img.logo-apa {
  height: 76px;
}

.marquee-item img.logo-ucl {
  height: 68px;
  mix-blend-mode: normal;
  border-radius: 3px;
}

.marquee-item img.logo-ubc {
  height: 72px;
}

.marquee-item img.logo-epa {
  height: 86px;
  filter: contrast(1.12) saturate(1.12);
}

.marquee-item img.logo-iseft {
  height: 74px;
  filter: contrast(1.1);
}

.marquee-item img.logo-palermo {
  height: 76px;
  mix-blend-mode: normal;
  border-radius: 4px;
}

.marquee-item img.logo-unasus {
  height: 64px;
}

.marquee-item img.logo-unisuam {
  height: 78px;
}

.marquee-item:hover img {
  opacity: 1;
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .uni-marquee-band {
    padding: 32px 0 38px;
  }
  .marquee-track {
    gap: 48px;
    padding-right: 48px;
    animation-duration: 44s;
  }
  .marquee-item img {
    height: 60px;
  }
  .marquee-item img.logo-puc {
    height: 70px;
  }
  .marquee-item img.logo-perugia {
    height: 64px;
  }
  .marquee-item img.logo-cambridge {
    height: 68px;
  }
  .marquee-item img.logo-apa {
    height: 60px;
  }
  .marquee-item img.logo-ucl {
    height: 54px;
  }
  .marquee-item img.logo-ubc {
    height: 56px;
  }
  .marquee-item img.logo-epa {
    height: 68px;
  }
  .marquee-item img.logo-iseft {
    height: 58px;
  }
  .marquee-item img.logo-palermo {
    height: 60px;
  }
  .marquee-item img.logo-unasus {
    height: 50px;
  }
  .marquee-item img.logo-unisuam {
    height: 62px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.86rem;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(35, 122, 116, 0.26);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-light {
  background: #FFFFFF;
  color: var(--accent);
}

.btn-light:hover {
  background: var(--warm-soft);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.btn-outline-light:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

/* International Band */
.intl-band {
  background: linear-gradient(90deg, #EEF7F6 0%, #FDF5F0 100%);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.intl-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.intl-text h2 {
  margin-bottom: 6px;
}

.intl-flags-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intl-flags-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.intl-text .section-sub strong {
  color: var(--accent);
}

.flag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Targeted class prevents inner .flag-svg from inheriting pill padding/border */
.flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(23, 55, 53, 0.04);
}

.flag-pill-more {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: #C7E3DF;
}

/* Inline SVG Flags (crisp across Windows, macOS, iOS & Android) */
.flag-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 15px;
  padding: 0;
  border: none;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(23, 33, 38, 0.14);
  flex-shrink: 0;
  vertical-align: middle;
}

.flag-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.testimonial footer .flag-svg {
  width: 18px;
  height: 12px;
  margin-right: 4px;
  vertical-align: -1px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 18px;
}

.about-text p {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--ink);
  font-weight: 600;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
}

.pillar:hover {
  transform: translateX(4px);
  border-color: var(--accent);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.pillar h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--ink);
}

.pillar p {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* Cards Grid — Elevated Floating Fine-Line Medallion Style */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 50px;
  padding-top: 34px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(22, 25, 29, 0.06);
  border-radius: 24px;
  padding: 52px 28px 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(22, 25, 29, 0.05), 0 2px 6px rgba(22, 25, 29, 0.02);
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(31, 78, 74, 0.1), 0 4px 12px rgba(22, 25, 29, 0.04);
  border-color: #C7E3DF;
}

.card-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(145deg, #FFFFFF 0%, var(--accent-soft) 100%);
  border: 1.5px solid #D3E6E3;
  box-shadow: 0 8px 20px rgba(31, 78, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.card-badge svg {
  width: 30px;
  height: 30px;
}

.card:hover .card-badge {
  transform: translate(-50%, -54%) scale(1.05);
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.62rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--accent);
  line-height: 1.2;
}

.card p {
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--ink-muted);
}

.card p strong {
  color: var(--ink);
  font-weight: 600;
}

/* Other Topics */
.other-topics {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  overflow: hidden;
}

.other-topics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.other-topics h3 {
  font-size: 1rem;
  font-weight: 700;
}

.session-note {
  font-size: 0.84rem;
  color: var(--accent);
  font-weight: 600;
}

.topics-marquee {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.topics-marquee-track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  animation: topicsScrollLeft 68s linear infinite;
}

.topics-marquee-row--reverse .topics-marquee-track {
  animation: topicsScrollRight 74s linear infinite;
}

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

@keyframes topicsScrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes topicsScrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.topics-marquee-track span {
  font-size: 0.84rem;
  color: var(--ink-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.topics-marquee-track span:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.other-topics-footer {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.tag-more {
  font-size: 0.82rem;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
  border: 1px solid #C7E3DF;
  padding: 5px 13px;
  border-radius: 999px;
}

/* Filter Bar & Elevated Education Cards with Crests */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

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

.timeline-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.timeline-cards.hidden {
  display: none;
}

.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s ease, border-color 0.25s ease;
  animation: fadeItem 0.35s var(--ease-out);
}

.edu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #B9DCD8;
}

@keyframes fadeItem {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.edu-card.hidden,
.edu-card.collapsed {
  display: none;
}

.edu-crest.crest-img {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(23, 55, 53, 0.04);
}

.edu-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.edu-content {
  flex: 1;
  min-width: 0;
}

.edu-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.edu-year {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.edu-flag {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.timeline-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg-alt);
  padding: 2px 9px;
  border-radius: 999px;
}

.badge-highlight {
  color: var(--accent);
  background: var(--accent-soft);
}

.badge-warm {
  color: #B4542E;
  background: var(--warm-soft);
}

.edu-content h3 {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ink);
  margin-bottom: 4px;
}

.edu-content p {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* Dedicated Talks & Conferences Tab Panel */

.talks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.talk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
}

.talk-card:hover {
  transform: translateY(-2px);
  border-color: #B9DCD8;
}

.talk-card.talk-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #FFFFFF 0%, #EEF7F6 100%);
  border-color: #C7E3DF;
}

.talk-card h3 {
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ink);
  margin-bottom: 4px;
}

.talk-card p {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.timeline-toggle-wrap {
  margin-top: 26px;
  text-align: center;
}

/* Speaking Gallery + Publications */
.speaking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}

.speaking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

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

.speaking-img-wrap {
  overflow: hidden;
  background: var(--bg);
}

.speaking-card img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.6s var(--ease-out);
}

.speaking-card:hover img {
  transform: scale(1.04);
}

.speaking-card figcaption {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.speaking-card strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.speaking-card span {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.pub-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}

.pub-block-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pub-block-header h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pub-block-header span {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.pub-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pub-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.pub-year {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.pub-card h4 {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.pub-card p {
  font-size: 0.83rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* YouTube Scientific Dissemination */
.video-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

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

.video-featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #11191C;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info {
  padding: 18px 20px;
}

.video-featured .video-info {
  padding: 28px;
}

.video-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #B4542E;
  background: var(--warm-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.video-info h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 6px;
}

.video-featured .video-info h3 {
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.video-info p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.video-side-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Testimonials Carousel — 6-Card (3x2) Panel */
.rating-highlight {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.86rem;
}

.rating-stars {
  color: #E09A2B;
  letter-spacing: 1px;
}

.rating-sub {
  color: var(--ink-muted);
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.testimonials-slide {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  animation: slideFade 0.45s var(--ease-out);
}

.testimonials-slide.active {
  display: grid;
}

@keyframes slideFade {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: #E09A2B;
  font-size: 0.92rem;
  letter-spacing: 2px;
  margin-bottom: -6px;
}

.testimonial p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.testimonial footer {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
}

.testimonial strong {
  font-size: 0.89rem;
  color: var(--ink);
}

.testimonial span {
  font-size: 0.77rem;
  color: var(--ink-muted);
}

.testimonials-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #C8DCD9;
  cursor: pointer;
  transition: width 0.25s var(--ease-out), background-color 0.25s ease;
}

.dot-btn.active {
  width: 28px;
  background: var(--accent);
}

/* Contact & Doctoralia Widget */
.contact-section {
  padding-bottom: 68px;
}

.contact-card {
  background: linear-gradient(135deg, #1E6460 0%, #2A827B 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 36px;
  align-items: start;
  box-shadow: 0 20px 44px rgba(30, 100, 96, 0.2);
}

.contact-card h2 {
  color: #FFFFFF;
  margin-bottom: 12px;
}

.contact-copy > p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.96rem;
  margin-bottom: 24px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-details {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 10px;
}

.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FCE3D6;
}

.detail-row a,
.detail-row span:last-child {
  font-size: 0.92rem;
  color: #FFFFFF;
}

.detail-row a:hover {
  text-decoration: underline;
}

.doctoralia-widget-box {
  background: #FFFFFF;
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.widget-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.widget-header span {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
}

.widget-header small {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.widget-mount {
  min-height: 250px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Animated Transitions */
.anim-hero,
.anim-hero-card {
  opacity: 0;
  animation: heroEnter 0.8s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

.anim-hero-card {
  animation-name: heroCardEnter;
}

@keyframes heroEnter {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroCardEnter {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal {
  opacity: 0;
  transition: opacity 0.72s var(--ease-out), transform 0.72s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal.fade-up { transform: translateY(26px); }
.reveal.fade-left { transform: translateX(26px); }
.reveal.fade-right { transform: translateX(-26px); }
.reveal.scale-in { transform: scale(0.95) translateY(16px); }

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .anim-hero, .anim-hero-card, .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
  .hero-glow, .marquee-track, .topics-marquee-track { animation: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-card,
  .video-featured {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-portrait-col {
    max-width: 440px;
    margin: 0 auto;
  }

  .hero-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-item:nth-child(2) {
    border-right: none;
  }

  .cards-grid,
  .speaking-grid,
  .video-side-grid,
  .testimonials-slide.active {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-cards,
  .talks-grid,
  .pub-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 30px 24px;
  }
}

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

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 14px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 36px 0 36px;
  }

  .hero-metrics-bar {
    grid-template-columns: 1fr;
  }

  .metric-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 0 12px 0;
  }

  .metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .section {
    padding: 54px 0;
  }

  .cards-grid,
  .speaking-grid,
  .video-side-grid,
  .testimonials-slide.active {
    grid-template-columns: 1fr;
  }

  .speaking-card img {
    height: 360px;
  }
}

/* Talks Block inside Presença Acadêmica */
.talks-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-bottom: 28px;
}

.talk-card.collapsed {
  display: none;
}

.talks-toggle-wrap {
  margin-top: 20px;
  text-align: center;
}

/* Subtle Floating Reviews Mini-Popup */
.reviews-popup {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #C7E3DF;
  border-radius: 999px;
  padding: 8px 10px 8px 16px;
  box-shadow: 0 12px 32px rgba(23, 55, 53, 0.14);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
}

.reviews-popup.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reviews-popup:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(35, 122, 116, 0.2);
}

.reviews-popup-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-popup-stars {
  color: #E09A2B;
  font-size: 0.78rem;
  letter-spacing: 1px;
  line-height: 1;
}

.reviews-popup-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.reviews-popup-text strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.reviews-popup-text small {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
}

.reviews-popup-arrow {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  transition: transform 0.2s var(--ease-out);
}

.reviews-popup:hover .reviews-popup-arrow {
  transform: translateX(3px);
}

.reviews-popup-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.reviews-popup-close:hover {
  background: var(--border);
  color: var(--ink);
}

@media (max-width: 720px) {
  .reviews-popup {
    right: 14px;
    bottom: 14px;
    left: 14px;
    justify-content: space-between;
    border-radius: 16px;
    padding: 10px 12px 10px 14px;
  }

  .reviews-popup-stars {
    display: none;
  }
}

/* === Quiet Luxury Aesthetic Refinement === */
:root {
  --bg: #FAF8F5;
  --bg-alt: #F3EFE9;
  --surface: #FFFFFF;
  --ink: #161B1A;
  --ink-muted: #565E5C;
  --accent: #183D3B;
  --accent-hover: #102B29;
  --accent-soft: #EBF1F0;
  --warm: #A6864C;
  --warm-soft: #F6EFE2;
  --border: #E6E0D6;
  --shadow-sm: 0 4px 18px rgba(22, 27, 26, 0.045);
  --shadow-md: 0 20px 44px rgba(22, 27, 26, 0.085);
}

.navbar {
  background: rgba(250, 248, 245, 0.9);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 22px rgba(22, 27, 26, 0.05);
}

.brand-name {
  font-size: 1.7rem;
  letter-spacing: -0.015em;
}

.brand-sub {
  color: var(--warm);
  letter-spacing: 0.11em;
}

.hero {
  padding: 64px 0 54px;
}

.hero-glow-1 {
  background: radial-gradient(circle, rgba(214, 226, 223, 0.72) 0%, transparent 70%);
}

.hero-glow-2 {
  background: radial-gradient(circle, rgba(235, 221, 198, 0.7) 0%, transparent 70%);
}

.portrait-frame-tall {
  border: 1px solid #DFD7CA;
  box-shadow: 0 24px 54px rgba(22, 27, 26, 0.1);
}

.hero-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 7.2vw, 5.95rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 2px;
  margin-bottom: 16px;
}

.hero-divider {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--warm), rgba(166, 134, 76, 0.15));
  margin-bottom: 18px;
}

.hero-role {
  gap: 4px;
  margin-bottom: 22px;
}

.hero-role-line {
  font-size: clamp(1.18rem, 1.9vw, 1.4rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.hero-role-sub {
  font-size: clamp(1.04rem, 1.55vw, 1.2rem);
  font-weight: 400;
  color: var(--ink-muted);
}

.hero-lead {
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.hero-metrics-bar {
  margin-top: 44px;
  background: var(--surface);
  border: 1px solid #E5DDD0;
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}

.metric-value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 3px;
}

.intl-band {
  background: linear-gradient(90deg, #F2EFE9 0%, #FAF6EE 100%);
  border-top: 1px solid var(--border);
}

.badge-warm {
  color: #8A6B34;
  background: var(--warm-soft);
}

.contact-card {
  background: linear-gradient(135deg, #132D2B 0%, #1D4340 100%);
  box-shadow: 0 24px 52px rgba(19, 45, 43, 0.22);
}

.section-tag-light,
.detail-label {
  color: #DFC89B;
}

/* Larger, Refined & Noticeable Floating Reviews Popup */
.reviews-popup {
  right: 26px;
  bottom: 26px;
  gap: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #D8CCB8;
  border-radius: 18px;
  padding: 14px 14px 14px 20px;
  box-shadow: 0 18px 44px rgba(22, 27, 26, 0.16);
}

.reviews-popup:hover {
  border-color: var(--warm);
  box-shadow: 0 22px 48px rgba(24, 61, 59, 0.22);
  transform: translateY(-2px);
}

.reviews-popup-link {
  gap: 14px;
}

.reviews-popup-stars {
  color: #C49B45;
  font-size: 0.98rem;
  letter-spacing: 1.5px;
}

.reviews-popup-text {
  gap: 2px;
}

.reviews-popup-text strong {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

.reviews-popup-text small {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

.reviews-popup-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.reviews-popup-close {
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
  background: var(--bg-alt);
}

@media (max-width: 720px) {
  .reviews-popup {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 13px 14px 13px 16px;
  }

  .reviews-popup-stars {
    display: inline-block;
    font-size: 0.85rem;
  }
}

/* Clean Luxury Hero Refinements */
.hero {
  padding: 56px 0 44px;
}

.hero-grid {
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.hero-content {
  max-width: 560px;
}

.hero-name {
  margin-bottom: 14px;
}

.hero-divider {
  margin-bottom: 20px;
}

.hero-role {
  margin-bottom: 24px;
}

.hero-credential {
  font-size: clamp(1.06rem, 1.55vw, 1.18rem);
  line-height: 1.52;
  color: var(--ink);
  padding-left: 16px;
  border-left: 2px solid var(--warm);
  margin-bottom: 18px;
}

.hero-credential strong {
  font-weight: 600;
  color: var(--ink);
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink-muted);
  margin-bottom: 30px;
}

.hero-metrics-bar {
  margin-top: 48px;
  background: transparent;
  border: none;
  border-top: 1px solid #DFD7CA;
  border-radius: 0;
  padding: 24px 0 0;
  box-shadow: none;
  gap: 24px;
}

.metric-item {
  padding-right: 20px;
  border-right: 1px solid #E8E1D5;
}

.metric-star {
  color: #C49B45;
  font-size: 1.15rem;
  margin-right: 2px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-metrics-bar {
    margin-top: 36px;
    padding-top: 20px;
  }
}

/* Editorial Architectural Portrait Frame (Option 2) */
.hero-portrait-col {
  position: relative;
  z-index: 1;
  padding: 6px;
}

.hero-portrait-col::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -14px;
  right: 22px;
  bottom: -14px;
  border-radius: 20px;
  background: linear-gradient(155deg, #EFE9DE 0%, #E6DDD0 100%);
  z-index: 0;
  pointer-events: none;
  transition: transform 0.6s var(--ease-out);
}

.hero-portrait-col::after {
  content: "";
  position: absolute;
  top: -12px;
  right: -14px;
  left: 22px;
  bottom: 22px;
  border-radius: 20px;
  border: 1px solid rgba(176, 148, 98, 0.58);
  z-index: 0;
  pointer-events: none;
  transition: transform 0.6s var(--ease-out), border-color 0.4s ease;
}

.hero-portrait-col:hover::before {
  transform: translate(-3px, 3px);
}

.hero-portrait-col:hover::after {
  transform: translate(3px, -3px);
  border-color: rgba(176, 148, 98, 0.85);
}

.hero-portrait-col .portrait-frame-tall {
  position: relative;
  z-index: 2;
  border-radius: 18px;
  border: 1px solid rgba(223, 215, 202, 0.95);
  box-shadow: 0 22px 48px rgba(22, 27, 26, 0.11);
}

@media (max-width: 960px) {
  .hero-portrait-col {
    max-width: 380px;
    margin: 8px auto 12px;
    padding: 4px;
  }

  .hero-portrait-col::before {
    top: 16px;
    left: -10px;
    right: 16px;
    bottom: -10px;
  }

  .hero-portrait-col::after {
    top: -10px;
    right: -10px;
    left: 16px;
    bottom: 16px;
  }
}

/* Minimalist Fine-Line SVG UI Icons */
.ui-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.14em;
}

.section-tag-icon,
.session-note,
.filter-btn,
.timeline-badge,
.heading-with-icon,
.inline-meta-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.heading-with-icon {
  gap: 10px;
}

.heading-with-icon .ui-icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--accent);
}

.pillar-icon {
  color: var(--accent);
}

.pillar-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.edu-flag-icon {
  color: var(--accent);
  font-size: 1rem;
}

.timeline-badge .ui-icon {
  width: 0.95em;
  height: 0.95em;
}

/* =========================================================
   Refinamento Editorial (Sugestão 6) & FAQ (Sugestão 4)
   ========================================================= */
.section {
  padding: 92px 0;
}

.section-alt {
  border-top: 1px solid rgba(226, 236, 234, 0.85);
  border-bottom: 1px solid rgba(226, 236, 234, 0.85);
}

.section-header {
  margin-bottom: 44px;
}

.section-header-row {
  margin-bottom: 42px;
}

.section h2 {
  color: #111A1E;
  line-height: 1.15;
  letter-spacing: -0.024em;
}

.section-sub,
.section-desc {
  color: #45535C;
  line-height: 1.68;
  margin-top: 14px;
}

.contact-section {
  padding-top: 76px;
  padding-bottom: 84px;
}

/* FAQ / Como Funciona Accordion */
.faq-section {
  background: var(--bg);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 104px;
  margin-bottom: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: #C7D9D5;
}

.faq-item.is-open {
  border-color: rgba(35, 122, 116, 0.45);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: #111A1E;
  line-height: 1.4;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease-out);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel-inner p {
  padding: 0 26px 22px;
  font-size: 0.95rem;
  line-height: 1.68;
  color: #45535C;
}

@media (max-width: 960px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-intro {
    position: static;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }

  .section-header,
  .section-header-row {
    margin-bottom: 32px;
  }

  .faq-trigger {
    padding: 18px 20px;
    font-size: 0.97rem;
  }

  .faq-panel-inner p {
    padding: 0 20px 18px;
    font-size: 0.92rem;
  }
}

/* Lazy YouTube Facade */
.yt-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: #11191C;
  cursor: pointer;
  overflow: hidden;
  display: block;
}

.yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.35s ease;
  filter: brightness(0.88);
}

.yt-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 25, 28, 0.08) 0%, rgba(17, 25, 28, 0.38) 100%);
  transition: opacity 0.3s ease;
}

.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(31, 78, 74, 0.92);
  color: #FAF9F6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.yt-play-btn svg {
  margin-left: 3px;
}

.yt-facade:hover .yt-thumb,
.yt-facade:focus-visible .yt-thumb {
  transform: scale(1.04);
  filter: brightness(0.95);
}

.yt-facade:hover .yt-play-btn,
.yt-facade:focus-visible .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: #173B38;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.yt-facade:focus-visible {
  outline: 2px solid #FAF9F6;
  outline-offset: -3px;
}

/* ===== Refinements: Doctoralia 5-Star Highlight, Card Credentials, FAQ Visual & Contact Contrast ===== */
.hero-metrics-bar.hero-metrics-bar--3col {
  grid-template-columns: 1.35fr 1fr 1fr;
  align-items: center;
  padding: 16px 22px;
}

.metric-item--featured {
  display: block;
  background: linear-gradient(135deg, #FFFBF2 0%, #F7EFE0 100%);
  border: 1px solid #E9D9B8;
  border-right: 1px solid #E9D9B8 !important;
  border-radius: 12px;
  padding: 12px 16px !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.metric-item--featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(180, 130, 40, 0.14);
  border-color: #D8BE86;
}

.metric-stars-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.metric-stars {
  color: #D4931E;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  line-height: 1;
}

.metric-score {
  font-weight: 700;
  font-size: 1.05rem;
  color: #111A1E;
}

.metric-doctoralia-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1A5C56;
  background: #E2F1EE;
  padding: 3px 8px;
  border-radius: 999px;
}

.metric-item--featured .metric-label {
  color: #3D4A52;
  font-size: 0.82rem;
}

.metric-item--featured .metric-label strong {
  color: #111A1E;
}

/* Subtle credential tag inside Diagnósticos e Tratamentos cards */
.card {
  display: flex;
  flex-direction: column;
}

.card-credential {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1F4E4A;
  border-top: 1px solid rgba(31, 78, 74, 0.1);
}

/* Minimalist Visual Summary Card in FAQ */
.faq-visual-card {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.faq-visual-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.faq-visual-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #E8F1EF;
  color: #1F4E4A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.faq-visual-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111A1E;
  line-height: 1.3;
}

.faq-visual-item span:last-child {
  display: block;
  font-size: 0.8rem;
  color: #55626B;
  line-height: 1.35;
}

/* Fix Contact Card Heading Contrast on Green Background */
.contact-section .contact-card h2 {
  color: #FFFFFF !important;
}

.contact-section .contact-card .contact-copy > p {
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 900px) {
  .hero-metrics-bar.hero-metrics-bar--3col {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-metrics-bar.hero-metrics-bar--3col .metric-item {
    border-right: none;
    padding-right: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }

  .hero-metrics-bar.hero-metrics-bar--3col .metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Language Switcher (PT | EN) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}

.lang-switch .lang-link {
  color: var(--ink-muted);
  padding: 3px 4px;
  transition: color 0.2s ease;
}

.lang-switch .lang-link::after {
  display: none !important;
}

.lang-switch .lang-link:hover {
  color: var(--ink);
}

.lang-switch .lang-link.active {
  color: var(--accent);
}

.lang-switch .lang-sep {
  color: var(--border);
  font-weight: 400;
  user-select: none;
}

@media (max-width: 720px) {
  .lang-switch {
    margin: 4px 0;
  }
}

/* ===== Hero Title Scale & Harmonious Compact Rhythm ===== */
.hero-grid {
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 0;
  max-width: 580px;
}

.hero-name {
  font-size: clamp(3.9rem, 7.6vw, 6.65rem);
  line-height: 0.94;
  letter-spacing: -0.028em;
  margin-top: 0;
  margin-bottom: 14px;
}

.hero-divider {
  width: 64px;
  margin-top: 0;
  margin-bottom: 16px;
}

.hero-role {
  gap: 4px;
  margin-bottom: 20px;
}

.hero-role-line {
  font-size: clamp(1.2rem, 1.85vw, 1.46rem);
  line-height: 1.24;
}

.hero-role-sub {
  font-size: clamp(1.04rem, 1.5vw, 1.22rem);
}

.hero-credential {
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  line-height: 1.52;
  padding: 3px 0 3px 16px;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.62;
  margin-bottom: 26px;
}

.hero-actions {
  margin-top: 0;
  margin-bottom: 0;
}

.hero-actions .btn {
  padding: 14px 26px;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .hero-grid {
    align-items: start;
  }

  .hero-content {
    justify-content: flex-start;
    max-width: 100%;
  }

  .hero-name {
    font-size: clamp(3.2rem, 11vw, 4.6rem);
    margin-bottom: 12px;
  }

  .hero-divider {
    margin-bottom: 14px;
  }

  .hero-role {
    margin-bottom: 16px;
  }

  .hero-credential {
    margin-bottom: 14px;
  }

  .hero-lead {
    margin-bottom: 22px;
  }
}

/* Doctoralia Widget Fallback */
.widget-fallback {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(22, 25, 29, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: #555E68;
}

.widget-fallback-link {
  color: #1F4E4A;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.widget-fallback-link:hover {
  color: #163835;
}

/* Course Taught for Psychologists Highlight */
.course-highlight {
  display: grid;
  grid-template-columns: 1.55fr 0.78fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.course-highlight:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.course-media {
  order: 2;
  max-width: 340px;
  justify-self: end;
  padding: 6px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  box-shadow: 0 4px 16px rgba(24, 39, 37, 0.06);
}

.course-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.course-highlight:hover .course-media img {
  transform: scale(1.025);
}

.course-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 8px;
}

.course-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
}

.course-body h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.38rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.course-body p {
  font-size: 0.94rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.course-meta span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
}

.talk-lang {
  font-weight: 400;
  font-size: 0.84em;
  color: var(--ink-muted);
}

@media (max-width: 860px) {
  .course-highlight {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }
  .course-media {
    order: 0;
    max-width: 100%;
    justify-self: stretch;
  }
  .course-body {
    padding: 0;
  }
}

/* Floating WhatsApp Pill (Right Side, Stacked with Reviews Popup) */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 96;
  background: var(--accent);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 9px 16px 9px 11px;
  box-shadow: 0 12px 32px rgba(22, 43, 41, 0.24);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), background-color 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.whatsapp-float:hover {
  background: var(--accent-hover);
  box-shadow: 0 16px 36px rgba(22, 43, 41, 0.32);
  transform: translateY(-2px);
}

.whatsapp-float-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
}

.whatsapp-float-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-float-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.whatsapp-float-text strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: #FFFFFF;
}

.whatsapp-float-text small {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
}

.whatsapp-float-arrow {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  transition: transform 0.2s var(--ease-out);
}

.whatsapp-float:hover .whatsapp-float-arrow {
  transform: translateX(3px);
}

/* Keep WhatsApp Pill cleanly above Reviews Popup */
.reviews-popup {
  right: 22px;
  bottom: 22px;
}

.whatsapp-float {
  right: 22px;
  bottom: 102px;
}

@media (max-width: 720px) {
  .reviews-popup {
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 86px;
    padding: 8px 14px 8px 10px;
  }

  .whatsapp-float-text small {
    display: none;
  }
}

/* ===== Editorial Accent Line (Filete Fino) for Section Titles ===== */
.section h2::before,
.intl-text h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: var(--warm);
  margin-bottom: 14px;
}

.contact-section .contact-card h2::before {
  background: #E2C799;
}

@media (max-width: 720px) {
  .section h2::before,
  .intl-text h2::before {
    width: 32px;
    margin-bottom: 11px;
  }
}

/* ===== Subtle SVG Hover Animations for Treatment Cards ===== */
#atuacao .card-badge svg {
  overflow: visible;
  transition: transform 0.35s var(--ease-out), filter 0.35s ease;
}

/* 1. Ansiedade e Pânico — Pulso suave e respiração */
#atuacao .cards-grid .card:nth-child(1) .card-badge svg path {
  stroke-dasharray: 46;
  stroke-dashoffset: 0;
}

#atuacao .cards-grid .card:nth-child(1) .card-badge svg circle {
  transform-origin: 12px 12px;
  transition: transform 0.4s var(--ease-out), stroke-opacity 0.4s ease;
}

#atuacao .cards-grid .card:nth-child(1):hover .card-badge svg path {
  animation: pulseWave 1.5s ease-in-out infinite;
}

#atuacao .cards-grid .card:nth-child(1):hover .card-badge svg circle {
  animation: calmBreath 2.2s ease-in-out infinite;
}

@keyframes pulseWave {
  0% { stroke-dashoffset: 46; opacity: 0.55; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes calmBreath {
  0%, 100% { transform: scale(1); stroke-opacity: 0.25; }
  50% { transform: scale(1.08); stroke-opacity: 0.6; }
}

/* 2. Depressão e Humor — Sol nascendo e se expandindo */
#atuacao .cards-grid .card:nth-child(2) .card-badge svg path {
  transition: transform 0.45s var(--ease-out), stroke 0.4s ease, filter 0.4s ease;
}

#atuacao .cards-grid .card:nth-child(2) .card-badge svg path:nth-of-type(1) {
  transform-origin: 12px 6.2px;
}

#atuacao .cards-grid .card:nth-child(2) .card-badge svg path:nth-of-type(2) {
  transform-origin: 7.1px 9.1px;
}

#atuacao .cards-grid .card:nth-child(2) .card-badge svg path:nth-of-type(3) {
  transform-origin: 16.9px 9.1px;
}

#atuacao .cards-grid .card:nth-child(2) .card-badge svg path:nth-of-type(4) {
  transform-origin: 12px 15px;
}

#atuacao .cards-grid .card:nth-child(2):hover .card-badge svg {
  filter: drop-shadow(0 0 6px rgba(253, 224, 71, 0.55));
}

#atuacao .cards-grid .card:nth-child(2):hover .card-badge svg path:nth-of-type(4) {
  transform: translateY(-2.4px) scale(1.22);
  stroke: #FDE68A;
  fill: rgba(253, 230, 138, 0.28);
}

#atuacao .cards-grid .card:nth-child(2):hover .card-badge svg path:nth-of-type(1) {
  stroke: #FDE68A;
  animation: rayRiseTop 1.6s ease-in-out infinite;
}

#atuacao .cards-grid .card:nth-child(2):hover .card-badge svg path:nth-of-type(2) {
  stroke: #FDE68A;
  animation: rayRiseLeft 1.6s ease-in-out infinite;
}

#atuacao .cards-grid .card:nth-child(2):hover .card-badge svg path:nth-of-type(3) {
  stroke: #FDE68A;
  animation: rayRiseRight 1.6s ease-in-out infinite;
}

@keyframes rayRiseTop {
  0%, 100% { transform: translateY(-2.2px) scaleY(1.25); opacity: 0.9; }
  50% { transform: translateY(-3.4px) scaleY(1.4); opacity: 1; }
}

@keyframes rayRiseLeft {
  0%, 100% { transform: translate(-1.8px, -1.8px) scale(1.2); opacity: 0.9; }
  50% { transform: translate(-2.6px, -2.6px) scale(1.32); opacity: 1; }
}

@keyframes rayRiseRight {
  0%, 100% { transform: translate(1.8px, -1.8px) scale(1.2); opacity: 0.9; }
  50% { transform: translate(2.6px, -2.6px) scale(1.32); opacity: 1; }
}

/* 3. Relacionamentos — Círculos em sintonia */
#atuacao .cards-grid .card:nth-child(3) .card-badge svg circle {
  transition: transform 0.45s var(--ease-out);
}

#atuacao .cards-grid .card:nth-child(3):hover .card-badge svg circle:nth-of-type(1) {
  animation: bondLeft 1.8s ease-in-out infinite;
}

#atuacao .cards-grid .card:nth-child(3):hover .card-badge svg circle:nth-of-type(2) {
  animation: bondRight 1.8s ease-in-out infinite;
}

@keyframes bondLeft {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(1.6px); }
}

@keyframes bondRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-1.6px); }
}

/* 4. TDAH e Neurodiversidade — Lâmpada acendendo com brilho quente */
#atuacao .cards-grid .card:nth-child(4) .card-badge svg path {
  transition: fill 0.35s ease, stroke 0.35s ease;
}

#atuacao .cards-grid .card:nth-child(4):hover .card-badge svg {
  animation: bulbGlow 1.8s ease-in-out infinite;
}

#atuacao .cards-grid .card:nth-child(4):hover .card-badge svg path:nth-of-type(3) {
  fill: rgba(253, 224, 71, 0.28);
  stroke: #FEF08A;
}

#atuacao .cards-grid .card:nth-child(4):hover .card-badge svg path:nth-of-type(4),
#atuacao .cards-grid .card:nth-child(4):hover .card-badge svg path:nth-of-type(5) {
  stroke: #FDE047;
}

@keyframes bulbGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(253, 224, 71, 0.55)); }
  50% { filter: drop-shadow(0 0 10px rgba(253, 224, 71, 0.95)); }
}

/* 5. Adicção e Dependências — Bússola girando suavemente */
#atuacao .cards-grid .card:nth-child(5) .card-badge svg polygon {
  transform-origin: 12px 12px;
}

#atuacao .cards-grid .card:nth-child(5):hover .card-badge svg polygon {
  animation: compassSpin 2.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes compassSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 6. Brasileiros no Exterior — Globo girando no próprio eixo */
#atuacao .cards-grid .card:nth-child(6) .card-badge svg {
  transform-origin: 12px 12px;
}

#atuacao .cards-grid .card:nth-child(6) .card-badge svg path:nth-of-type(2),
#atuacao .cards-grid .card:nth-child(6) .card-badge svg path:nth-of-type(3) {
  transform-origin: 12px 12px;
}

#atuacao .cards-grid .card:nth-child(6):hover .card-badge svg {
  transform: rotate(-10deg);
}

#atuacao .cards-grid .card:nth-child(6):hover .card-badge svg path:nth-of-type(2) {
  animation: meridianSpin 2.6s linear infinite;
}

#atuacao .cards-grid .card:nth-child(6):hover .card-badge svg path:nth-of-type(3) {
  animation: meridianSpin 2.6s linear infinite -1.3s;
}

@keyframes meridianSpin {
  0% { transform: scaleX(1); }
  50% { transform: scaleX(-1); }
  100% { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  #atuacao .cards-grid .card:hover .card-badge svg,
  #atuacao .cards-grid .card:hover .card-badge svg * {
    animation: none !important;
  }
}

/* ===== Subtle SVG Hover Animations for About & FAQ ===== */
#sobre .pillar-icon,
#duvidas .faq-visual-icon {
  transition: transform 0.3s var(--ease-out), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

#sobre .pillar-icon svg,
#duvidas .faq-visual-icon svg {
  overflow: visible;
  transition: transform 0.35s var(--ease-out), filter 0.35s ease;
}

#sobre .pillar:hover .pillar-icon,
#duvidas .faq-visual-item:hover .faq-visual-icon {
  background: var(--accent);
  color: #FFFFFF;
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(24, 61, 59, 0.2);
}

#duvidas .faq-visual-item {
  padding: 6px 8px;
  margin: -6px -8px;
  border-radius: 12px;
  transition: background-color 0.25s ease, transform 0.25s var(--ease-out);
}

#duvidas .faq-visual-item:hover {
  background-color: rgba(235, 241, 240, 0.55);
  transform: translateX(3px);
}

/* Sobre 1 — Baseado em Evidências (Cérebro com pulso neural suave) */
#sobre .pillars .pillar:nth-child(1) .pillar-icon svg path:nth-of-type(1) {
  transform-origin: 9px 11.5px;
}

#sobre .pillars .pillar:nth-child(1) .pillar-icon svg path:nth-of-type(2) {
  transform-origin: 15px 11.5px;
}

#sobre .pillars .pillar:nth-child(1):hover .pillar-icon svg {
  filter: drop-shadow(0 0 6px rgba(223, 200, 155, 0.6));
}

#sobre .pillars .pillar:nth-child(1):hover .pillar-icon svg path:nth-of-type(1) {
  animation: brainPulse 1.8s ease-in-out infinite;
}

#sobre .pillars .pillar:nth-child(1):hover .pillar-icon svg path:nth-of-type(2) {
  animation: brainPulse 1.8s ease-in-out infinite 0.35s;
}

@keyframes brainPulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.07); opacity: 1; stroke: #FDE68A; }
}

/* Sobre 2 & FAQ 1 — Câmera de vídeo (Foco e lente ativa) */
#sobre .pillars .pillar:nth-child(2) .pillar-icon svg,
#duvidas .faq-visual-item:nth-child(1) .faq-visual-icon svg {
  transform-origin: 11px 12px;
}

#sobre .pillars .pillar:nth-child(2) .pillar-icon svg path,
#duvidas .faq-visual-item:nth-child(1) .faq-visual-icon svg path {
  transform-origin: 16px 12px;
}

#sobre .pillars .pillar:nth-child(2):hover .pillar-icon svg,
#duvidas .faq-visual-item:nth-child(1):hover .faq-visual-icon svg {
  animation: camTilt 1.8s ease-in-out infinite;
}

#sobre .pillars .pillar:nth-child(2):hover .pillar-icon svg path,
#duvidas .faq-visual-item:nth-child(1):hover .faq-visual-icon svg path {
  animation: lensZoom 1.8s ease-in-out infinite;
}

@keyframes camTilt {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-4deg); }
}

@keyframes lensZoom {
  0%, 100% { transform: translateX(0) scale(1); }
  50% { transform: translateX(1.2px) scale(1.08); }
}

/* Sobre 3 — Idiomas / Globo girando no próprio eixo */
#sobre .pillars .pillar:nth-child(3) .pillar-icon svg {
  transform-origin: 12px 12px;
}

#sobre .pillars .pillar:nth-child(3) .pillar-icon svg path:nth-of-type(2) {
  transform-origin: 12px 12px;
}

#sobre .pillars .pillar:nth-child(3):hover .pillar-icon svg {
  transform: rotate(-10deg);
}

#sobre .pillars .pillar:nth-child(3):hover .pillar-icon svg path:nth-of-type(2) {
  animation: meridianSpin 2.4s linear infinite;
}

/* FAQ 2 — Relógio (Ponteiro girando suavemente) */
#duvidas .faq-visual-item:nth-child(2) .faq-visual-icon svg polyline {
  transform-origin: 12px 12px;
}

#duvidas .faq-visual-item:nth-child(2):hover .faq-visual-icon svg polyline {
  animation: clockSweep 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes clockSweep {
  0% { transform: rotate(0deg); }
  45% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

/* FAQ 3 — Recibo (Documento leve + linhas sendo preenchidas) */
#duvidas .faq-visual-item:nth-child(3) .faq-visual-icon svg line {
  stroke-dasharray: 10;
  stroke-dashoffset: 0;
}

#duvidas .faq-visual-item:nth-child(3):hover .faq-visual-icon svg {
  transform: translateY(-1.5px);
}

#duvidas .faq-visual-item:nth-child(3):hover .faq-visual-icon svg line:nth-of-type(1) {
  animation: receiptLine 1.6s ease-in-out infinite;
}

#duvidas .faq-visual-item:nth-child(3):hover .faq-visual-icon svg line:nth-of-type(2) {
  animation: receiptLine 1.6s ease-in-out infinite 0.25s;
}

@keyframes receiptLine {
  0% { stroke-dashoffset: 10; opacity: 0.4; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #sobre .pillar:hover .pillar-icon svg,
  #sobre .pillar:hover .pillar-icon svg *,
  #duvidas .faq-visual-item:hover .faq-visual-icon svg,
  #duvidas .faq-visual-item:hover .faq-visual-icon svg * {
    animation: none !important;
  }
}

/* Awarded conference papers */
.talk-award {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FDF8EB 0%, #F7EED4 100%);
  border: 1px solid #E5CE94;
  color: #7D5A12;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.talk-award svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: #B4831D;
}

/* Doctoralia recognition badges */
.doctoralia-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.doc-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.81rem;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.doc-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 25, 29, 0.06);
}

.doc-badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.doc-badge:hover .doc-badge-icon {
  transform: scale(1.14);
}

.doc-badge--loyal {
  background: var(--accent-soft, #E8F0EE);
  border: 1px solid rgba(31, 78, 74, 0.22);
  color: var(--accent, #1F4E4A);
}

.doc-badge--loyal strong {
  font-weight: 600;
}

.doc-badge--excellence {
  background: linear-gradient(135deg, #FDF8EB 0%, #F7EED4 100%);
  border: 1px solid #E5CE94;
  color: #7D5A12;
}

.doc-badge--excellence .doc-badge-icon {
  color: #B4831D;
}

.doc-badge--excellence strong {
  font-weight: 600;
}

.doc-badge-years {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
}

.doc-badge-year {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(180, 131, 29, 0.14);
  color: #6B4B0C;
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .doc-badge:hover,
  .doc-badge:hover .doc-badge-icon {
    transform: none;
  }
}

/* International presentation tag */
.talk-intl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft, #E8F0EE);
  border: 1px solid rgba(31, 78, 74, 0.18);
  color: var(--accent, #1F4E4A);
  font-size: 0.77rem;
  font-weight: 500;
  line-height: 1.3;
}

.talk-intl svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--accent, #1F4E4A);
}

/* Featured Dual Master's Highlight Block & Topic Labels */
.masters-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.masters-highlight-grid.hidden {
  display: none;
}

.master-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: linear-gradient(145deg, #FFFFFF 0%, #EFF7F6 100%);
  border: 1.5px solid #B7DCD7;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 6px 20px rgba(23, 55, 53, 0.055);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s ease, border-color 0.25s ease;
  animation: fadeItem 0.35s var(--ease-out);
}

.master-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.master-card.hidden {
  display: none;
}

.edu-crest.crest-img.crest-lg {
  width: 78px;
  height: 78px;
  padding: 7px;
}

.master-card .edu-content h3 {
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ink);
  margin-bottom: 5px;
}

.master-card .edu-content p {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.edu-topic {
  display: inline-block;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1.5px solid rgba(31, 78, 74, 0.32);
  padding-bottom: 2px;
  margin-bottom: 7px;
}

@media (max-width: 820px) {
  .masters-highlight-grid {
    grid-template-columns: 1fr;
  }
}


/* Academic Photos Zoom Cue & Lightbox */
.speaking-img-wrap,
.course-media {
  position: relative;
  cursor: zoom-in;
}

.course-media:hover img {
  transform: scale(1.04);
}

.img-zoom-cue {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(20, 34, 33, 0.62);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
  opacity: 0.78;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.speaking-img-wrap:hover .img-zoom-cue,
.course-media:hover .img-zoom-cue,
.speaking-img-wrap:focus-visible .img-zoom-cue,
.course-media:focus-visible .img-zoom-cue {
  opacity: 1;
  transform: scale(1.06);
  background: rgba(31, 78, 74, 0.9);
}

.speaking-img-wrap:focus-visible,
.course-media:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 24, 24, 0.88);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-dialog {
  position: relative;
  max-width: min(1080px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.lightbox-overlay.is-open .lightbox-dialog {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(90vh - 68px);
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  background: #111;
  object-fit: contain;
}

.lightbox-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
  max-width: 720px;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 34, 33, 0.72);
  color: #FFFFFF;
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .intl-band {
    padding: 28px 0;
  }
  .lightbox-overlay {
    padding: 16px;
  }
  .lightbox-close {
    top: 14px;
    right: 14px;
  }
}

/* === EDITORIAL DIAGRAMS:START === */
/* 1. Minimalist World Map in International Band */
.intl-map-wrap {
  margin: 4px 0 6px;
  padding: 18px 20px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intl-world-map {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  overflow: visible;
}

.map-continents path {
  fill: #E6F0EE;
  stroke: #CFE0DD;
  stroke-width: 0.9;
  stroke-linejoin: round;
  transition: fill 0.3s var(--ease-out);
}

.map-arcs path {
  fill: none;
  stroke: rgba(35, 122, 116, 0.32);
  stroke-width: 1.15;
  stroke-dasharray: 3.5 4.5;
  stroke-linecap: round;
}

.map-pin {
  cursor: pointer;
  outline: none;
}

.map-pin-pulse {
  fill: rgba(35, 122, 116, 0.16);
  transition: transform 0.3s var(--ease-out), fill 0.3s var(--ease-out);
  transform-box: fill-box;
  transform-origin: center;
}

.map-pin-dot {
  fill: var(--accent);
  stroke: #FFFFFF;
  stroke-width: 1.4;
  transition: transform 0.3s var(--ease-out), fill 0.3s var(--ease-out);
  transform-box: fill-box;
  transform-origin: center;
}

.map-pin--origin .map-pin-pulse {
  fill: rgba(217, 122, 84, 0.22);
}

.map-pin--origin .map-pin-dot {
  fill: var(--warm);
}

.map-pin:hover .map-pin-pulse,
.map-pin:focus-visible .map-pin-pulse {
  transform: scale(1.45);
  fill: rgba(35, 122, 116, 0.28);
}

.map-pin:hover .map-pin-dot,
.map-pin:focus-visible .map-pin-dot {
  transform: scale(1.25);
}

.intl-map-caption {
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  text-align: center;
}

/* 2. CBT Editorial Model Card */
.cbt-diagram-card {
  margin-top: 44px;
  padding: 32px 36px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: center;
}

.cbt-diagram-copy h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 12px;
}

.cbt-diagram-copy p {
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--ink-muted);
  margin: 0;
}

.cbt-diagram-visual {
  display: flex;
  justify-content: center;
}

.cbt-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  overflow: visible;
}

.cbt-orbit {
  fill: none;
  stroke: rgba(35, 122, 116, 0.14);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.cbt-arc {
  fill: none;
  stroke: rgba(35, 122, 116, 0.55);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.cbt-center-kicker {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  fill: var(--accent);
}

.cbt-center-title {
  font-family: var(--font-serif);
  font-size: 16px;
  fill: var(--ink);
}

.cbt-node {
  cursor: default;
  outline: none;
}

.cbt-node-box {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1.2;
  transition: stroke 0.25s var(--ease-out), fill 0.25s var(--ease-out), filter 0.25s var(--ease-out);
  filter: drop-shadow(0 4px 12px rgba(23, 55, 53, 0.045));
}

.cbt-node-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  fill: var(--ink);
  transition: fill 0.25s var(--ease-out);
}

.cbt-node-sub {
  font-family: var(--font-sans);
  font-size: 10.5px;
  fill: var(--ink-muted);
}

.cbt-node:hover .cbt-node-box,
.cbt-node:focus-visible .cbt-node-box {
  stroke: var(--accent);
  fill: #F7FCFB;
  filter: drop-shadow(0 8px 20px rgba(35, 122, 116, 0.12));
}

.cbt-node:hover .cbt-node-title,
.cbt-node:focus-visible .cbt-node-title {
  fill: var(--accent);
}

/* 3. Therapeutic Journey Flow */
.journey-block {
  margin-bottom: 52px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}

.journey-header h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 26px;
}

.journey-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.journey-line {
  position: absolute;
  top: 22px;
  left: 36px;
  right: 36px;
  height: 1px;
  background: linear-gradient(90deg, rgba(35, 122, 116, 0.18), rgba(35, 122, 116, 0.45), rgba(35, 122, 116, 0.18));
  z-index: 0;
}

.journey-step {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.journey-step:hover {
  transform: translateY(-3px);
  border-color: rgba(35, 122, 116, 0.35);
  box-shadow: var(--shadow-md);
}

.journey-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.journey-step-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.journey-step-icon svg {
  width: 18px;
  height: 18px;
}

.journey-step-num {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.8;
}

.journey-step h4 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.journey-step p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

@media (max-width: 960px) {
  .cbt-diagram-card {
    grid-template-columns: 1fr;
    padding: 24px 22px;
    gap: 24px;
  }
  .journey-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .journey-line {
    display: none;
  }
}

@media (max-width: 580px) {
  .intl-map-wrap {
    padding: 12px 10px 10px;
  }
  .journey-track {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .journey-block {
    margin-bottom: 36px;
    padding-bottom: 32px;
  }
}
/* === EDITORIAL DIAGRAMS:END === */

/* === LUXURY DECLUTTER REFINEMENTS === */
.intl-map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.legend-dot--origin {
  background: var(--warm);
  box-shadow: 0 0 0 3px rgba(217, 122, 84, 0.22);
}

.legend-dot--client {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(35, 122, 116, 0.18);
}

.legend-line {
  width: 18px;
  height: 0;
  border-top: 1.5px dashed rgba(35, 122, 116, 0.55);
  display: inline-block;
}

.intl-map-caption {
  margin: 12px 0 2px;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--ink-muted);
  text-align: center;
  max-width: 760px;
}

.intl-map-caption strong {
  color: var(--ink);
  font-weight: 600;
}

/* FAQ Embedded Diagrams */
.faq-item.is-open .faq-panel {
  max-height: 920px;
}

.faq-diagram-box {
  margin-top: 16px;
  padding: 16px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
}

.cbt-svg--compact {
  max-width: 380px;
}

.faq-journey-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-journey-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 10px);
}

.faq-journey-num {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 7px;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 1px;
}

.faq-journey-step strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.faq-journey-step span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* Sole Discreet Floating WhatsApp Pill (bottom-right) */
.whatsapp-float {
  right: 22px;
  bottom: 22px;
  padding: 8px 15px 8px 10px;
  box-shadow: 0 10px 26px rgba(22, 43, 41, 0.18);
}

@media (max-width: 720px) {
  .whatsapp-float {
    right: 14px;
    bottom: 16px;
    padding: 8px 14px 8px 10px;
  }
  .faq-journey-grid {
    grid-template-columns: 1fr;
  }
}

/* === MOBILE AUTO-CAROUSEL WITH TIMER === */
.mc-bar {
  display: none;
}

@media (max-width: 768px) {
  /* Hide desktop testimonial arrows & page dots on mobile so only the unified mobile carousel controls show */
  #depoimentos .carousel-controls,
  #depoimentos .carousel-dots {
    display: none !important;
  }

  /* Testimonials mobile single-card mode */
  #testimonialsCarousel.mc-enabled .testimonials-slide {
    display: block !important;
    margin: 0;
    padding: 0;
  }

  #testimonialsCarousel.mc-enabled .testimonials-slide + .testimonials-slide {
    margin-top: 0;
  }

  /* Generic mobile carousel item visibility */
  .mc-item-hidden {
    display: none !important;
  }

  .mc-item-active {
    display: flex !important;
    animation: mcFadeSlideNext 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .mc-item-active.mc-dir-prev {
    animation-name: mcFadeSlidePrev;
  }

  /* Preserve block display for non-flex cards like figure/li */
  figure.mc-item-active,
  li.mc-item-active {
    display: block !important;
  }

  /* Hide expand buttons on mobile so carousels show all items directly */
  #formacao .timeline-toggle-wrap,
  #palestras .talks-toggle-wrap {
    display: none !important;
  }

  /* Combined Speaking Photos + Course Taught mobile carousel */
  #academico .speaking-grid.mc-group-empty {
    display: none !important;
  }

  #academico .speaking-grid.mc-enabled,
  #academico .course-highlight.mc-enabled {
    margin-bottom: 0;
  }

  #academico .course-highlight.mc-item-active {
    display: grid !important;
  }

  #academico .mc-bar[data-mc="speaking"] {
    margin-bottom: 32px;
  }

  /* Education mobile carousel: hide empty parent grid when no active card is inside */
  #formacao .masters-highlight-grid.mc-group-empty,
  #formacao #timelineList.mc-group-empty {
    display: none !important;
  }

  #formacao .masters-highlight-grid.mc-enabled,
  #formacao #timelineList.mc-enabled {
    margin-bottom: 0;
  }

  /* Academic & Video grids single-column clean fit on mobile */
  .speaking-grid.mc-enabled,
  .talks-grid.mc-enabled,
  .pub-grid.mc-enabled,
  .video-layout.mc-enabled,
  .video-layout.mc-enabled .video-side-grid {
    display: block !important;
    gap: 0 !important;
  }

  .speaking-grid.mc-enabled .speaking-card,
  .talks-grid.mc-enabled .talk-card,
  .pub-grid.mc-enabled .pub-card,
  .video-layout.mc-enabled .video-card {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  /* Stack talk-card and video-card contents vertically on mobile so text never overflows */
  .talks-grid.mc-enabled .talk-card.mc-item-active,
  .video-layout.mc-enabled .video-card.mc-item-active {
    display: block !important;
  }

  .talks-grid.mc-enabled .talk-card .edu-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
  }

  .talks-grid.mc-enabled .talk-card h3,
  .talks-grid.mc-enabled .talk-card p {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .video-layout.mc-enabled .video-featured .video-info {
    padding: 18px 20px;
  }

  .video-layout.mc-enabled .video-featured .video-info h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }

  /* Ensure reveal animations never hide carousel items on mobile */
  .mc-enabled .reveal,
  .mc-item-active.reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Mobile Carousel Control Bar & Timer */
  .mc-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    margin-bottom: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(31, 78, 82, 0.12);
    border-radius: 14px;
    backdrop-filter: blur(6px);
  }

  .mc-progress-track {
    width: 100%;
    height: 3px;
    background: rgba(31, 78, 82, 0.14);
    border-radius: 999px;
    overflow: hidden;
  }

  .mc-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent, #1f4e52);
    border-radius: 999px;
    transform-origin: left center;
  }

  .mc-progress-fill.is-running {
    animation: mcTimerProgress var(--mc-duration, 6500ms) linear forwards;
  }

  .mc-progress-fill.is-paused {
    animation-play-state: paused;
  }

  .mc-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mc-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mc-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(31, 78, 82, 0.22);
    background: #ffffff;
    color: var(--accent, #1f4e52);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    padding: 0;
  }

  .mc-btn:active {
    transform: scale(0.94);
    background: var(--accent, #1f4e52);
    color: #ffffff;
  }

  .mc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted, #5a6564);
    font-variant-numeric: tabular-nums;
  }

  .mc-counter {
    font-weight: 600;
    color: var(--text, #1c2423);
  }

  .mc-hint {
    font-size: 0.72rem;
    opacity: 0.8;
  }

  .mc-pause-btn {
    width: 30px;
    height: 30px;
    font-size: 11px;
    border-color: rgba(31, 78, 82, 0.16);
  }

  @keyframes mcFadeSlideNext {
    from {
      opacity: 0;
      transform: translateX(18px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes mcFadeSlidePrev {
    from {
      opacity: 0;
      transform: translateX(-18px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes mcTimerProgress {
    from {
      width: 0%;
    }
    to {
      width: 100%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-item-active {
    animation: none !important;
  }
}
/* === END MOBILE AUTO-CAROUSEL === */


/* === CONTENT & IMAGE PROTECTION === */
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.footer-copyright {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  opacity: 0.72;
  letter-spacing: 0.01em;
}


.footer-legal {
  max-width: 780px;
  margin: 18px auto 6px;
  padding: 0 24px;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted, #64748b);
  opacity: 0.85;
}
