:root {
  --bg: #ecf2f8;
  --panel: #f9fcff;
  --surface: #ffffff;
  --text: #172132;
  --muted: #56627b;
  --line: #cfdae8;
  --brand: #0f5f77;
  --brand-strong: #0d4f64;
  --hero-base: #173d73;
  --hero-accent: #2a5a9f;
  --hero-ring: rgba(148, 196, 255, 0.16);
  --hero-kicker: #f4fafc;
  --ok: #1a7f37;
  --shadow-soft: 0 16px 34px rgba(19, 35, 69, 0.12);
  --shadow-strong: 0 24px 48px rgba(16, 32, 58, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 92% 14%, rgba(75, 126, 198, 0.1) 0%, rgba(75, 126, 198, 0) 40%),
    radial-gradient(circle at 4% 88%, rgba(17, 54, 111, 0.12) 0%, rgba(17, 54, 111, 0) 44%),
    linear-gradient(180deg, #f0f4fb 0%, #e9eff7 58%, #edf2f8 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 54vw;
  max-width: 760px;
  aspect-ratio: 1;
  right: -14vw;
  top: -14vw;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    rgba(28, 66, 131, 0.08) 0,
    rgba(28, 66, 131, 0.08) 52px,
    rgba(28, 66, 131, 0) 52px,
    rgba(28, 66, 131, 0) 98px
  );
}

body::after {
  width: 48vw;
  max-width: 640px;
  aspect-ratio: 1;
  left: -16vw;
  bottom: -20vw;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(19, 67, 144, 0.15) 0%, rgba(19, 67, 144, 0) 70%);
}

body[data-trail-slug="recursos-humanos-estrategico"] {
  --brand: #0f5f8a;
  --brand-strong: #0c4f73;
  --hero-base: #0d2b66;
  --hero-accent: #1f4f9b;
  --hero-ring: rgba(118, 173, 255, 0.2);
  --hero-kicker: #d6e8ff;
}

body[data-trail-slug="operacoes"] {
  --brand: #9c5f00;
  --brand-strong: #764900;
  --hero-base: #8c5a07;
  --hero-accent: #cc8d15;
  --hero-ring: rgba(255, 227, 158, 0.22);
  --hero-kicker: #fff3ce;
}

body[data-trail-slug="gestao-publica"] {
  --brand: #5a2fa2;
  --brand-strong: #4a2588;
  --hero-base: #4c2d82;
  --hero-accent: #7a4dca;
  --hero-ring: rgba(206, 176, 255, 0.2);
  --hero-kicker: #efe1ff;
}

.trail-hero,
.trail-main,
.idemp-client-footer,
.ida-float,
.lead-modal,
.download-notice {
  position: relative;
  z-index: 1;
}

.trail-hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 12px;
}

.trail-hero::before {
  content: "";
  position: absolute;
  inset: 12px 20px 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 14%, var(--hero-ring) 0%, var(--hero-ring) 14%, rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, 0) 29%, var(--hero-ring) 30%, var(--hero-ring) 45%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(140deg, var(--hero-base) 0%, var(--hero-accent) 100%);
  box-shadow: var(--shadow-strong);
}

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

.trail-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px 0;
}

.trail-logo {
  width: 210px;
  max-width: 46vw;
  height: auto;
  filter: brightness(0) invert(1);
}

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

.hero-btn {
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 160ms ease, filter 160ms ease, background-color 160ms ease;
}

.hero-btn:hover {
  transform: translateY(-1px);
}

.hero-btn-primary {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.hero-btn-primary:hover {
  filter: brightness(1.06);
}

.hero-btn-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  background: rgba(8, 18, 38, 0.25);
}

.trail-hero-content {
  margin-top: 28px;
  padding: 0 14px 24px;
  max-width: 980px;
}

.trail-kicker {
  margin: 0;
  display: inline-flex;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--hero-kicker);
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 14px;
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
  line-height: 1.06;
  color: #ffffff;
}

.trail-subtitle {
  margin: 0;
  max-width: 920px;
  color: rgba(240, 247, 255, 0.93);
  font-size: 1.06rem;
  line-height: 1.56;
}

.panel-subtitle {
  margin: 0;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
}

.trail-value-points {
  margin: 18px 0 0;
  padding-left: 18px;
  max-width: 920px;
  display: grid;
  gap: 8px;
}

.trail-value-points li {
  color: #f8fbff;
  line-height: 1.45;
}

.trail-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 20px 32px;
  display: grid;
  gap: 14px;
}

.trail-section {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--panel) 0%, #ffffff 100%);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.62rem;
  line-height: 1.14;
  color: #1b2942;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.trail-journey-section {
  background:
    radial-gradient(circle at 90% -8%, rgba(20, 92, 152, 0.14) 0%, rgba(20, 92, 152, 0) 38%),
    linear-gradient(180deg, #f9fcff 0%, #ffffff 100%);
}

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

.trail-journey-card {
  border: 1px solid #d0dbeb;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.trail-journey-step {
  width: fit-content;
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #c2d2e7;
  background: #eaf4ff;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 8px;
}

.trail-journey-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.trail-journey-card p {
  margin: 0;
  color: #55617a;
  line-height: 1.46;
}

.section-head.compact h2 {
  font-size: 1.3rem;
}

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

.resource-card {
  border: 1px solid #c4d0e2;
  border-radius: 16px;
  background: var(--surface);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.resource-card::before {
  content: "";
  position: absolute;
  inset: auto -20px -38px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 89, 138, 0.14) 0%, rgba(21, 89, 138, 0) 70%);
  pointer-events: none;
}

body[data-trail-slug="operacoes"] .resource-card::before {
  background: radial-gradient(circle, rgba(201, 141, 31, 0.17) 0%, rgba(201, 141, 31, 0) 70%);
}

body[data-trail-slug="gestao-publica"] .resource-card::before {
  background: radial-gradient(circle, rgba(108, 64, 182, 0.17) 0%, rgba(108, 64, 182, 0) 70%);
}

.resource-card h3 {
  margin: 0;
  font-size: 1.06rem;
}

.resource-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.resource-free-note {
  display: inline-block;
  margin-top: 8px;
  color: #166534;
  font-weight: 700;
  font-size: 0.84rem;
}

.resource-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.resource-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
}

.resource-btn:hover {
  filter: brightness(0.95);
}

.resource-muted {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px dashed #9fb0c5;
  color: #68748b;
  font-size: 0.9rem;
}

.courses-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 14px;
}

.course-card {
  --macro-color: var(--brand);
  border: 1px solid #dde2ea;
  border-top: 6px solid var(--macro-color);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: 0 9px 20px rgba(17, 39, 72, 0.08);
}

.course-cover {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d9e1ee;
  background: #f5f9ff;
}

.course-cover-image {
  width: 100%;
  height: 132px;
  object-fit: cover;
  display: block;
}

.course-title {
  font-size: 1.33rem;
  margin: 0;
  line-height: 1.2;
}

.course-meta {
  color: #4b5366;
  font-size: 0.9rem;
  margin: 0;
}

.course-meta-macro {
  color: var(--macro-color);
  font-weight: 700;
}

.course-card.macro-rh {
  --macro-color: #123a6f;
}

.course-card.macro-lideranca {
  --macro-color: #b76308;
}

.course-card.macro-estrategia {
  --macro-color: #b42318;
}

.course-card.macro-publica {
  --macro-color: #6e3aa8;
}

.course-card.macro-empresarial {
  --macro-color: #b88709;
}

.course-card.macro-financeira {
  --macro-color: #1f7a43;
}

.course-card.macro-default {
  --macro-color: var(--brand);
}

.bar-line {
  width: 96px;
  height: 5px;
  border-radius: 99px;
  background: var(--macro-color);
}

.course-micro-areas {
  display: grid;
  gap: 6px;
}

.course-micro-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #5a6479;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.course-micro-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.course-micro-chip {
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.75rem;
  border: 1px solid #c9d7e8;
  background: #eef4fb;
  color: #214060;
  font-weight: 700;
}

.course-teacher-list {
  display: grid;
  gap: 8px;
}

.course-teacher-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
}

.course-teacher-main {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: center;
}

.course-teacher-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #cdd9e7;
  background: #e7eff8;
}

.course-teacher-avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #27415f;
}

.course-teacher-info {
  display: grid;
  gap: 2px;
}

.course-teacher-name {
  font-size: 0.92rem;
  color: #273044;
  margin: 0;
}

.course-teacher-more {
  color: #5f687e;
  font-size: 0.78rem;
  font-weight: 600;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  font-size: 0.74rem;
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 700;
  color: #ffffff;
  background: var(--macro-color);
  border: 1px solid var(--macro-color);
}

.course-macro-tag {
  display: inline-block;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 10px;
  color: #ffffff;
  background: var(--macro-color);
  border: 1px solid var(--macro-color);
}

.class-snippet-list {
  display: grid;
  gap: 8px;
}

.class-snippet {
  border: 1px solid #d9e2f0;
  border-left: 4px solid var(--macro-color);
  border-radius: 10px;
  background: #f9fbff;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
}

.class-status {
  font-weight: 800;
}

.class-snippet .enroll-btn {
  margin-top: 6px;
  width: 100%;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.btn-outline {
  border-radius: 11px;
  padding: 10px 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, filter 160ms ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.btn-outline:hover {
  transform: translateY(-1px);
}

.primary-btn {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.primary-btn.enroll-btn {
  border-color: #16a34a;
  background: #16a34a;
  color: #ffffff;
  padding: 12px 18px;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.28);
}

.primary-btn.enroll-btn:hover {
  border-color: #15803d;
  background: #15803d;
}

.secondary-btn {
  border: 1px solid var(--brand);
  background: #ffffff;
  color: var(--brand);
}

.btn-outline {
  border: 1px solid #ccd5e2;
  background: #fff;
  color: #2a3142;
}

.incompany-highlight-btn {
  border: 1px solid var(--brand-strong);
  background: var(--brand-strong);
  color: #ffffff;
  border-radius: 11px;
  padding: 10px 12px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.incompany-highlight-btn:hover {
  filter: brightness(0.9);
}

.course-price {
  color: var(--macro-color);
  font-size: 1.34rem;
  font-weight: 700;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.section-card {
  border: 1px solid #d4dceb;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

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

.ida-human-header h2 {
  margin: 0;
}

.ida-human-avatar-image {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid #d6e2f2;
  object-fit: cover;
  background: #eef6ff;
}

.ida-human-status {
  margin: 2px 0 0;
  color: #4e6785;
  font-size: 0.86rem;
  font-weight: 600;
}

.ida-hero-panel {
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 244, 214, 0.28) 0%, rgba(255, 244, 214, 0) 36%),
    linear-gradient(132deg, #b45309 0%, #c96a11 56%, #dd8b1b 100%);
  border: 1px solid #a64c07;
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(90, 44, 8, 0.24);
}

.ida-hero-panel .ida-human-status,
.ida-hero-panel .panel-subtitle,
.ida-hero-panel .chat-hint,
.ida-hero-panel .chat-input-label {
  color: #ffffff;
}

.ida-hero-panel .chat-messages {
  background: #ffffff;
  border-color: #f6d4b0;
}

.ida-hero-panel .msg.bot {
  background: #eef5ff;
  border-color: #c8daef;
  color: #153e63;
}

.ida-hero-panel .msg.user {
  background: #e5f8ee;
  border-color: #b9e2ca;
  color: #134a3a;
}

.ida-hero-panel .chat-form input {
  background: #ffffff;
  border-color: #f6d4b0;
  color: #154f73;
}

.ida-hero-panel .chat-form input::placeholder {
  color: #52779a;
}

.ida-hero-panel .chat-form button {
  background: #0f4f83;
  border-color: #0f4f83;
  color: #ffffff;
}

.ida-hero-panel .chat-form button:hover {
  background: #113f66;
  border-color: #113f66;
}

.faq-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid #d7deeb;
  border-radius: 12px;
  background: #fbfdff;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
}

.faq-answer {
  padding: 0 12px 11px;
  color: #4d5a77;
  line-height: 1.48;
}

.chat-messages {
  margin-top: 10px;
  border: 1px solid #d8dfec;
  border-radius: 12px;
  background: #f8fbff;
  min-height: 220px;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.msg {
  max-width: 92%;
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.msg.user {
  margin-left: auto;
  background: #d8f3e4;
  border: 1px solid #9bd3b1;
}

.msg.bot {
  margin-right: auto;
  background: #edf3fc;
  border: 1px solid #c9d7ed;
}

.chat-form {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chat-input-label {
  grid-column: 1 / -1;
  color: #2f4565;
  font-size: 0.95rem;
  font-weight: 700;
}

.chat-form input {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #b9c8df;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.chat-form button {
  min-height: 44px;
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.chat-hint {
  margin: 8px 0 0;
  color: #5b6f86;
  font-size: 0.82rem;
}

.teach-panel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #c7d5eb;
  background: #f6f9ff;
  display: grid;
  gap: 7px;
}

.teach-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.teach-panel p {
  margin: 0;
  color: #5c6f88;
  font-size: 0.9rem;
}

.teach-panel label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #384c6d;
}

.teach-panel select,
.teach-panel textarea {
  width: 100%;
  border: 1px solid #b8c8df;
  border-radius: 10px;
  padding: 9px 10px;
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
}

.teach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teach-actions button {
  border: none;
  border-radius: 10px;
  min-height: 40px;
  padding: 0 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.teach-actions .btn-secondary {
  background: #fff;
  border: 1px solid #9eb2cc;
  color: #1a4462;
}

.teach-status {
  margin: 0;
  font-size: 0.85rem;
  color: #31506f;
}

.hidden {
  display: none !important;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
}

.lead-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.lead-modal-card {
  position: relative;
  width: min(920px, calc(100% - 24px));
  margin: 36px auto;
  background: #ffffff;
  border: 1px solid #d2dbe8;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.24);
  max-height: calc(100vh - 72px);
  overflow: auto;
}

.lead-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 1px solid #b8c7db;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.lead-modal-subtitle {
  margin: 0 0 12px;
  color: #596682;
}

.lead-modal-quick-hint {
  margin: -6px 0 12px;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
}

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

.lead-form-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: #2b3954;
  font-weight: 600;
}

.lead-form-grid input,
.lead-form-grid select {
  border: 1px solid #c4d0e2;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
}

.lead-form-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Keep modal CTAs readable regardless of trail theme hero button styles */
.lead-form-actions #trailLeadSubmit {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #ffffff;
}

.lead-form-actions #trailLeadSubmit:hover {
  filter: brightness(0.95);
}

.lead-form-actions #trailLeadSubmit:disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

.lead-form-actions #trailLeadCancel {
  background: #ffffff;
  border: 1px solid #b8c7db;
  color: #2a3b59;
}

.lead-form-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: #365172;
  font-size: 0.88rem;
}

.download-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2600;
  max-width: min(420px, calc(100% - 24px));
  background: var(--brand);
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.26);
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-notice span {
  font-size: 0.84rem;
  opacity: 0.92;
}

.empty-note {
  margin: 12px 0 0;
  color: #66758f;
}

.ida-float {
  position: fixed;
  left: 20px;
  bottom: 24px;
  min-width: 90px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  z-index: 1200;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.ida-float-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  object-fit: cover;
  background: #eff6ff;
}

.ida-float:hover {
  filter: brightness(0.94);
}

@media (max-width: 1100px) {
  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .trail-journey-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .trail-hero::before {
    inset: 8px 12px 0;
    border-radius: 24px;
  }

  .trail-main {
    padding: 10px 12px 30px;
  }
}

@media (max-width: 760px) {
  .resources-grid,
  .courses-grid {
    grid-template-columns: 1fr;
  }

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

  .trail-hero {
    padding: 14px 12px 10px;
  }

  .trail-hero-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .trail-hero-actions {
    width: 100%;
  }

  .trail-hero-actions .hero-btn {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .trail-hero-content {
    margin-top: 18px;
    padding: 0 8px 18px;
  }

  .trail-kicker {
    font-size: 0.66rem;
  }

  h1 {
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: clamp(1.6rem, 9vw, 2.2rem);
  }

  .trail-subtitle {
    font-size: 0.96rem;
  }

  .trail-value-points {
    gap: 7px;
    margin-top: 12px;
  }

  .trail-section {
    padding: 14px;
    border-radius: 16px;
  }

  .section-head h2 {
    font-size: 1.34rem;
  }

  .ida-float {
    left: 14px;
    bottom: 16px;
    min-width: 78px;
    height: 56px;
    padding: 0 12px;
  }
}

.idemp-client-footer {
  margin-top: 24px;
  background: #0b4e6b;
  color: #ffffff;
  border-top: 4px solid #07384c;
}

body[data-trail-slug="operacoes"] .idemp-client-footer {
  background: #7a4a05;
  border-top-color: #613903;
}

body[data-trail-slug="gestao-publica"] .idemp-client-footer {
  background: #4f2c8b;
  border-top-color: #3f226f;
}

.idemp-client-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 16px 26px;
  display: grid;
  gap: 6px;
}

.idemp-client-footer h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.idemp-client-footer-slogan {
  margin: 0 0 4px;
  font-weight: 700;
}

.idemp-client-footer p {
  margin: 0;
  color: #ffffff;
}

.idemp-client-footer a {
  color: #ffffff;
  text-decoration: underline;
}
