/* -------------------------------------------
   Rodrigo Mattos — Custom Theme Layer (sobre Pixy Friendly)
   Paleta base preservada:
   - Fundo: #ECECEA | Superficie: #D8D8D8 | Grafite: #353639
   - Tech Emerald (.mil-a2): #37CC8D | Amber (.mil-a1): #FEAF62
------------------------------------------- */

html,
body {
  overflow-x: hidden;
}

/* 1. Top Panel & One-Page Nav */
.mil-top-panel {
  background-color: rgba(247, 245, 240, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  height: 76px !important;
  display: flex !important;
  align-items: center !important;
  z-index: 999999 !important;
  transition: background-color 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}

.mil-top-panel.rm-scrolled {
  background-color: rgba(247, 245, 240, 0.98) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06) !important;
}

.mil-top-panel .mil-logo {
  width: 72px !important;
  height: 72px !important;
  border-radius: 0 0 14px 14px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
  flex-shrink: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 0 !important;
  transition: height 0.35s ease;
}

.mil-top-panel .mil-logo i {
  font-size: 20px !important;
  margin-bottom: 2px !important;
}

.mil-top-panel .mil-logo span {
  font-size: 13px !important;
  line-height: 1 !important;
}

.mil-top-panel .mil-left-side {
  width: auto !important;
  flex: 1;
  align-items: center;
}

.rm-top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 26px;
}

.rm-top-nav a {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #353639;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.rm-top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #37CC8D;
  transition: width 0.25s ease;
}

.rm-top-nav a:hover,
.rm-top-nav a.rm-active {
  color: #1c1d1f;
}

.rm-top-nav a:hover::after,
.rm-top-nav a.rm-active::after {
  width: 100%;
}

/* Menu lateral / mobile comportando todas as seções com conforto */
.mil-menu-frame .mil-menu-window .mil-menu-section {
  padding: 36px 46px;
}

.mil-main-menu {
  min-height: auto;
  justify-content: flex-start;
  padding: 6px 0;
}

.mil-main-menu li {
  margin-bottom: 16px;
}

.mil-main-menu li a {
  font-size: 20px;
  display: block;
}

@media (max-width: 1279px) {
  .rm-top-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .mil-top-panel {
    padding: 0 18px !important;
  }
  .mil-top-panel .mil-logo {
    width: 68px;
    height: 74px;
  }
  .mil-top-panel .mil-logo i {
    font-size: 22px;
    margin-bottom: 4px;
  }
  .mil-top-panel .mil-logo span {
    font-size: 14px;
  }
  .mil-top-panel.rm-scrolled .mil-logo {
    height: 66px;
  }
  .mil-top-panel .mil-buttons-tp-frame {
    padding: 6px;
  }
  .mil-menu-frame .mil-menu-window {
    padding-top: 86px;
  }
  .mil-menu-frame .mil-menu-window .mil-menu-section {
    padding: 20px 26px;
    height: calc(100vh - 186px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mil-menu-frame .mil-menu-window .mil-social-section {
    height: 90px;
    padding: 0 26px;
  }
}

/* 2. Hero Technical Stage */
.rm-hero-sub {
  font-size: 16px;
  line-height: 1.65;
  color: #55575b;
  max-width: 470px;
  margin-top: 24px;
}

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

.rm-hero-actions .mil-btn {
  height: 56px;
  padding: 0 32px;
}

/* Recorte absoluto dentro do fundo verde do Hero (evita vazar abaixo da linha dos 120px) */
.mil-hero-3 .mil-hero-main .mil-image-half .mil-image-frame,
.mil-hero-3 .mil-hero-main .mil-image-half .mil-image-frame .mil-scene-frame {
  overflow: hidden !important;
}

.mil-hero-3 .mil-hero-main .mil-image-half .mil-image-frame .mil-scene-frame .mil-scene {
  height: calc(100% - 120px) !important;
  overflow: hidden !important;
}

.mil-hero-3 .mil-hero-main .mil-image-half .mil-image-frame .mil-scene-frame:before {
  z-index: 3 !important;
}

.mil-hero-3 .mil-hero-main .mil-image-half .mil-image-frame .mil-scene-frame .mil-hero-social {
  z-index: 4 !important;
}

.rm-hero-cutout-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
  pointer-events: none;
}

.rm-hero-cutout-wrap img {
  position: relative;
  bottom: -35px;
  width: auto !important;
  height: 98% !important;
  max-width: 104%;
  max-height: 900px;
  object-fit: contain !important;
  object-position: bottom center !important;
  filter: drop-shadow(0 24px 48px rgba(24, 24, 25, 0.28));
}

@media (max-width: 992px) {
  .rm-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .rm-hero-actions {
    justify-content: center;
  }
  .mil-hero-3 .mil-hero-main .mil-image-half .mil-image-frame .mil-scene-frame .mil-scene {
    height: 100% !important;
    margin-top: 0 !important;
  }
  .rm-hero-cutout-wrap {
    padding-bottom: 0;
    align-items: flex-end;
  }
  .rm-hero-cutout-wrap img {
    bottom: -30px;
    height: 104% !important;
    max-height: 560px;
  }
}

/* Title Letter-by-Letter Reveal */
.rm-word {
  display: inline-block;
  white-space: nowrap;
}

.rm-char {
  display: inline-block;
  will-change: transform, opacity;
}

/* 3. Sobre / Carreira & Fechamento */
.rm-bio-body {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rm-bio-body p {
  font-size: 17px;
  line-height: 1.75;
  color: #494b50;
}

.rm-closing-quote {
  margin-top: 28px;
  padding: 22px 28px;
  border-radius: 18px;
  background-color: #353639;
  color: #ECECEA;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 36px rgba(53, 54, 57, 0.14);
}

.rm-closing-quote i {
  color: #37CC8D;
  font-size: 20px;
}

/* 4. Interactive Sticky Skills Section (Título fora do pin — cabe inteiro em monitores menores) */
.rm-skills-section {
  position: relative;
  padding: 90px 0 30px;
}

.rm-skills-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.rm-skills-intro p {
  max-width: 440px;
  color: #55575b;
  margin: 0;
}

.rm-skills-pin-wrap {
  height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  padding: 84px 0 20px;
}

.rm-skills-sidebar {
  padding-right: 24px;
}

.rm-skills-counter {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 10px;
  font-family: "Anton", sans-serif;
  font-size: 38px;
  line-height: 1;
  color: #353639;
}

.rm-skills-counter .rm-total {
  font-size: 18px;
  color: #808080;
}

.rm-skills-progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background-color: rgba(53, 54, 57, 0.14);
  overflow: hidden;
  margin-bottom: 16px;
}

.rm-skills-progress-bar {
  height: 100%;
  width: 16.6%;
  background: linear-gradient(90deg, #37CC8D 0%, #FEAF62 100%);
  border-radius: 999px;
  transition: width 0.12s linear;
}

.rm-skills-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rm-skills-nav-btn {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(53, 54, 57, 0.1);
  background-color: rgba(255, 255, 255, 0.55);
  border-radius: 11px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  color: #494b50;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.rm-skills-nav-btn:hover {
  background-color: #FFFFFF;
  border-color: rgba(53, 54, 57, 0.25);
  color: #1c1d1f;
}

.rm-skills-nav-btn.rm-active {
  background-color: #353639;
  border-color: #353639;
  color: #FFFFFF;
  transform: translateX(6px);
  box-shadow: 0 12px 24px rgba(53, 54, 57, 0.16);
}

.rm-skills-nav-btn .rm-nav-idx {
  font-family: "Anton", sans-serif;
  font-size: 13px;
  letter-spacing: 0.8px;
  color: #37CC8D;
  margin-right: 8px;
}

.rm-skills-nav-btn .rm-nav-meta {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.72;
  white-space: nowrap;
}

.rm-skills-viewport {
  position: relative;
  height: clamp(390px, 68vh, 520px);
  overflow: hidden;
  padding: 16px 14px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.rm-skills-track {
  display: flex;
  flex-direction: column;
  gap: 28px;
  will-change: transform;
}

.rm-skill-stage-card {
  background-color: #FFFFFF;
  border: 2px solid rgba(53, 54, 57, 0.1);
  border-radius: 22px;
  padding: 32px 34px;
  box-shadow: 0 22px 44px rgba(53, 54, 57, 0.08);
  transform-origin: center center;
  will-change: transform, opacity;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.rm-skill-stage-card.rm-active {
  border-color: #37CC8D;
  box-shadow: 0 28px 60px rgba(53, 54, 57, 0.16);
}

.rm-skill-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.rm-skill-card-head h3 {
  font-size: 28px;
  color: #353639;
  margin: 0;
}

.rm-skill-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rm-skill-stat-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background-color: #ECECEA;
  color: #353639;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.rm-skill-stat-badge.rm-green {
  background-color: rgba(55, 204, 141, 0.18);
  color: #176947;
}

.rm-skill-impact {
  font-size: 17px;
  font-weight: 700;
  color: #1f8a5c;
  margin-bottom: 12px;
}

.rm-skill-copy {
  font-size: 15px;
  line-height: 1.65;
  color: #494b50;
  margin-bottom: 18px;
}

.rm-skill-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.rm-skill-tools span {
  padding: 5px 11px;
  border-radius: 7px;
  background-color: #ECECEA;
  border: 1px solid rgba(53, 54, 57, 0.1);
  color: #353639;
  font-size: 11px;
  font-weight: 600;
}

.rm-skill-proofs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(53, 54, 57, 0.1);
}

.rm-proof-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #6b6e74;
  margin-right: 4px;
}

.rm-proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #353639;
  background-color: transparent;
  color: #353639;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rm-proof-chip:hover {
  background-color: #37CC8D;
  border-color: #37CC8D;
  color: #1c1d1f;
}

@media (max-width: 991px) {
  .rm-skills-pin-wrap {
    min-height: auto;
    display: block;
    padding: 40px 0;
  }
  .rm-skills-sidebar {
    padding-right: 0;
    margin-bottom: 32px;
  }
  .rm-skills-nav-list,
  .rm-skills-progress-track,
  .rm-skills-counter {
    display: none;
  }
  .rm-skills-viewport {
    height: auto;
    overflow: visible;
    padding: 0;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .rm-skill-stage-card {
    padding: 24px 22px;
  }
  .rm-skill-card-head {
    flex-direction: column;
  }
}

/* 5. Produtos de IA & Cases em Destaque (Nível 1 e 2) */
.rm-ai-section {
  background: linear-gradient(155deg, #1d1e21 0%, #2d2f33 100%);
  color: #ECECEA;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.rm-ai-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 204, 141, 0.16) 0%, rgba(55, 204, 141, 0) 70%);
  pointer-events: none;
}

.rm-product-card {
  height: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.rm-product-card:hover {
  transform: translateY(-6px);
  border-color: #37CC8D;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.32);
}

.rm-product-visual {
  padding: 24px 26px;
  background: linear-gradient(145deg, rgba(16, 17, 20, 0.95) 0%, rgba(36, 38, 43, 0.85) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rm-product-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rm-product-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rm-product-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.rm-product-icon i {
  font-size: 24px;
  color: #37CC8D;
}

.rm-product-metric-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(55, 204, 141, 0.15);
  border: 1px solid rgba(55, 204, 141, 0.3);
  color: #37CC8D;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.rm-product-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.rm-product-body h3 {
  color: #FFFFFF;
  font-size: 24px;
  margin-bottom: 6px;
}

.rm-product-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: #FEAF62;
  margin-bottom: 14px;
}

.rm-product-copy {
  font-size: 14px;
  line-height: 1.68;
  color: #C4C6CA;
  margin-bottom: 18px;
}

.rm-product-role {
  font-size: 12px;
  color: #ECECEA;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 16px;
}

.rm-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.rm-tech-tags span,
.rm-tech-tags button {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #ECECEA;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rm-product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rm-dark-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #37CC8D;
  background-color: #37CC8D;
  color: #181819;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.rm-dark-btn:hover {
  background-color: #FEAF62;
  border-color: #FEAF62;
  color: #181819;
}

/* Nível 2 — IA Aplicada Cards Médios */
.rm-applied-wrap {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rm-applied-card {
  height: 100%;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.rm-applied-card:hover {
  border-color: #FEAF62;
  transform: translateY(-4px);
}

.rm-applied-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.rm-applied-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rm-applied-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rm-applied-logo i {
  color: #FEAF62;
  font-size: 18px;
}

.rm-applied-card h4 {
  color: #FFFFFF;
  font-size: 18px;
  margin: 0;
}

.rm-applied-sub {
  font-size: 13px;
  font-weight: 700;
  color: #37CC8D;
  margin-bottom: 8px;
}

.rm-applied-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #B4B6BA;
  margin-bottom: 16px;
}

.rm-case-highlight {
  animation: rmCaseFlash 2.2s ease;
}

@keyframes rmCaseFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(55, 204, 141, 0.8);
    border-color: #37CC8D;
  }
  30% {
    box-shadow: 0 0 0 10px rgba(55, 204, 141, 0.25);
    border-color: #37CC8D;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(55, 204, 141, 0);
  }
}

/* 6. Services Grid */
.rm-section-header {
  margin-bottom: 50px;
}

.rm-service-card {
  height: 100%;
  background-color: #E5E5E2;
  border: 1px solid rgba(53, 54, 57, 0.1);
  border-radius: 20px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.rm-service-card:hover {
  transform: translateY(-6px);
  background-color: #FFFFFF;
  border-color: #37CC8D;
  box-shadow: 0 24px 48px rgba(53, 54, 57, 0.08);
}

.rm-service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.rm-service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background-color: #353639;
  color: #37CC8D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.rm-service-card:hover .rm-service-icon {
  background-color: #37CC8D;
  color: #1c1d1f;
}

.rm-service-num {
  font-family: "Anton", sans-serif;
  font-size: 22px;
  color: rgba(53, 54, 57, 0.28);
  letter-spacing: 1px;
}

.rm-service-card h4 {
  margin-bottom: 14px;
}

.rm-service-card p {
  color: #5a5c60;
  margin-bottom: 22px;
  line-height: 1.65;
}

.rm-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(53, 54, 57, 0.12);
}

.rm-service-list li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(53, 54, 57, 0.1);
  font-size: 12px;
  font-weight: 600;
  color: #353639;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rm-service-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rm-service-list li i {
  color: #37CC8D;
  font-size: 11px;
}

/* 7. Portfolio Cards & Screenshot Staging (Título sempre em primeiro lugar) */
.rm-work-card {
  border-radius: 18px;
  background-color: #E2E2DF;
  border: 1px solid rgba(53, 54, 57, 0.1);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.rm-work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(24, 24, 25, 0.12);
  border-color: #37CC8D;
}

.rm-work-card .mil-cover {
  padding-bottom: 62%;
  background-color: #181819;
}

.rm-work-card .mil-cover .mil-hover-frame img {
  object-fit: cover;
  object-position: top center;
}

.rm-work-meta {
  padding: 22px 24px 24px;
  background-color: #ECECEA;
}

.rm-work-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.rm-work-meta-top h4 {
  color: #353639;
  margin: 0;
}

.rm-work-score {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(55, 204, 141, 0.18);
  color: #1e7c55;
  white-space: nowrap;
}

.rm-work-meta p {
  font-size: 13px;
  line-height: 1.55;
  color: #5c5e63;
  margin-bottom: 14px;
}

.rm-work-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(53, 54, 57, 0.1);
}

.rm-work-stack {
  font-size: 11px;
  font-weight: 600;
  color: #353639;
}

.rm-work-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rm-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid #353639;
  background-color: transparent;
  color: #353639;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.rm-mini-btn:hover,
.rm-mini-btn.rm-primary {
  background-color: #353639;
  color: #ECECEA;
}

.rm-mini-btn.rm-primary:hover {
  background-color: #37CC8D;
  border-color: #37CC8D;
  color: #1c1d1f;
}

/* 8. Converging Career Timeline (Light Theme, Z-Depth Parallax & Compact Sticky Pin) */
.rm-timeline-section {
  position: relative;
  padding: 90px 0 30px;
}

.rm-timeline-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.rm-timeline-intro p {
  max-width: 440px;
  color: #55575b;
  margin: 0;
}

/* Apenas o palco interativo fica pinned, cabendo inteiro em monitores menores */
.rm-timeline-pin-wrap {
  height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  padding: 84px 0 18px;
}

.rm-tva-light-stage {
  background: linear-gradient(165deg, #F6F6F4 0%, #ECECEA 100%);
  border: 1px solid rgba(53, 54, 57, 0.14);
  border-radius: 26px;
  padding: 20px 26px 20px;
  box-shadow: 0 26px 60px rgba(53, 54, 57, 0.08);
  color: #353639;
  position: relative;
  overflow: hidden;
  perspective: 1100px;
}

.rm-tva-light-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(53, 54, 57, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 54, 57, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.rm-tva-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  position: relative;
  z-index: 3;
}

.rm-tva-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #353639;
}

.rm-tva-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #37CC8D;
  box-shadow: 0 0 0 4px rgba(55, 204, 141, 0.22);
}

.rm-tva-years {
  font-family: "Anton", sans-serif;
  font-size: 14px;
  letter-spacing: 1.2px;
  color: #55575b;
}

.rm-tva-3d-canvas {
  position: relative;
  width: 100%;
  height: clamp(190px, 31vh, 270px);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  z-index: 2;
}

.rm-tva-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
  pointer-events: none;
}

.rm-tva-layer.rm-layer-back {
  filter: blur(0.4px);
}

.rm-tva-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.rm-tva-node {
  cursor: pointer;
  pointer-events: auto;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.35s ease;
}

.rm-tva-node .rm-node-inner {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  transform: scale(0.2);
  opacity: 0;
}

.rm-tva-node.rm-revealed .rm-node-inner {
  transform: scale(1);
  opacity: 1;
}

.rm-tva-node.rm-active .rm-node-inner {
  transform: scale(1.16);
}

.rm-tva-node.rm-active circle.rm-node-ring {
  stroke-opacity: 0.95;
  stroke-width: 2.5;
}

.rm-tva-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
  position: relative;
  z-index: 3;
}

.rm-tva-pill {
  text-align: left;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid rgba(53, 54, 57, 0.12);
  background: rgba(255, 255, 255, 0.65);
  color: #55575b;
  cursor: pointer;
  transition: all 0.25s ease;
}

.rm-tva-pill:hover {
  border-color: #353639;
  background: #FFFFFF;
  color: #1c1d1f;
}

.rm-tva-pill.rm-active {
  background: #353639;
  border-color: #353639;
  color: #FFFFFF;
  box-shadow: 0 10px 22px rgba(53, 54, 57, 0.14);
}

.rm-tva-pill strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #D47E28;
  margin-bottom: 1px;
}

.rm-tva-pill.rm-active strong {
  color: #37CC8D;
}

.rm-tva-pill span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
}

.rm-tva-detail-card {
  margin-top: 12px;
  padding: 18px 22px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(53, 54, 57, 0.12);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.rm-tva-detail-card h3 {
  color: #353639;
  font-size: 21px;
  margin-bottom: 4px;
}

.rm-tva-detail-period {
  font-size: 11.5px;
  font-weight: 700;
  color: #1f8a5c;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}

.rm-tva-detail-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #494b50;
  margin: 0;
}

.rm-tva-detail-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rm-tva-detail-highlights li {
  font-size: 12px;
  line-height: 1.4;
  color: #353639;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.rm-tva-detail-highlights li i {
  color: #37CC8D;
  margin-top: 3px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .rm-timeline-pin-wrap {
    height: auto;
    max-height: none;
    display: block;
    padding: 20px 0;
  }
  .rm-tva-light-stage {
    padding: 18px 16px;
  }
  .rm-tva-3d-canvas {
    height: 220px;
  }
  .rm-tva-pills {
    grid-template-columns: repeat(2, 1fr);
  }
  .rm-tva-detail-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .rm-tva-pills {
    grid-template-columns: 1fr;
  }
}

/* 9. Contact Section Override */
.rm-contact-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, #242528 0%, #353639 100%);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ECECEA;
}

.rm-contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.rm-channel-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ECECEA;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.rm-channel-link:hover {
  border-color: #37CC8D;
  background: rgba(55, 204, 141, 0.12);
  transform: translateX(4px);
}

.rm-channel-link i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(55, 204, 141, 0.18);
  color: #37CC8D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.rm-channel-link strong {
  display: block;
  font-size: 13px;
  color: #FFFFFF;
}

.rm-channel-link span {
  display: block;
  font-size: 12px;
  color: #B4B6BA;
}

.rm-form-light input,
.rm-form-light textarea,
.rm-form-light select {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(53, 54, 57, 0.35);
  padding: 14px 10px;
  height: auto;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.3px;
  color: #353639;
  transition: border-color 0.3s ease;
}

.rm-form-light input::placeholder,
.rm-form-light textarea::placeholder {
  color: #6b6e74;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}

.rm-form-light textarea {
  height: 120px;
  resize: vertical;
}

.rm-form-light input:focus,
.rm-form-light textarea:focus,
.rm-form-light select:focus {
  border-color: #37CC8D;
}

.rm-form-status {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1e7c55;
  display: none;
}

.rm-form-status.rm-error {
  color: #b42318;
}

.rm-form-status.rm-visible {
  display: block;
}

.rm-contact-form-box {
  padding: 76px 56px;
}

@media (max-width: 992px) {
  .rm-contact-form-box {
    padding: 40px 24px;
  }
  .rm-contact-panel {
    padding: 40px 24px;
  }
}

/* 11. Revisão Mobile Geral (<= 991px e <= 767px) */
@media (max-width: 991px) {
  .rm-skills-pin-wrap {
    height: auto;
    max-height: none;
    display: block;
    padding: 10px 0 30px;
  }
  .rm-skills-sidebar {
    padding-right: 0;
    margin-bottom: 12px;
  }
  .rm-skills-track {
    gap: 18px;
  }
  .rm-ai-section {
    padding: 80px 0;
  }
  .rm-tva-3d-canvas {
    height: auto;
    aspect-ratio: 1160 / 310;
    min-height: 165px;
  }
}

@media (max-width: 767px) {
  .mil-hero-3 .mil-hero-main .mil-hero-fix {
    height: 82px;
  }
  .mil-hero-3 .mil-hero-main .mil-hero-text {
    padding: 36px 0 32px;
  }
  .mil-hero-3 .mil-hero-main .mil-hero-text h1.mil-display4 {
    font-size: clamp(40px, 11vw, 56px);
    line-height: 1.05;
  }
  .rm-hero-sub {
    font-size: 14.5px;
    margin-top: 16px;
  }
  .rm-hero-actions {
    gap: 12px;
    margin-top: 22px;
  }
  .rm-hero-actions .mil-btn {
    width: 100%;
    justify-content: center;
    height: 52px;
    padding: 0 24px;
  }
  .mil-hero-3 .mil-hero-main .mil-image-half .mil-image-frame {
    padding-bottom: 92%;
  }
  .rm-bio-body p {
    font-size: 15px;
    line-height: 1.65;
  }
  .rm-closing-quote {
    font-size: 15px;
    padding: 16px 18px;
    text-align: left;
  }
  .rm-skill-card-head h3 {
    font-size: 22px;
  }
  .rm-skill-impact {
    font-size: 15px;
  }
  .rm-skill-copy {
    font-size: 14px;
  }
  .rm-product-visual {
    padding: 18px 20px;
    flex-wrap: wrap;
  }
  .rm-product-body {
    padding: 20px;
  }
  .rm-product-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .rm-dark-btn {
    width: 100%;
    justify-content: center;
  }
  .rm-service-card {
    padding: 26px 22px;
  }
  .rm-work-meta {
    padding: 18px;
  }
  .rm-work-meta-top {
    flex-wrap: wrap;
  }
  .rm-work-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .rm-work-actions {
    width: 100%;
  }
  .rm-work-actions .rm-mini-btn {
    flex: 1;
    justify-content: center;
  }
  .rm-tva-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .rm-tva-detail-card {
    padding: 16px;
  }
  .rm-tva-detail-card h3 {
    font-size: 19px;
  }
  .rm-video-strip {
    padding: 24px 18px;
    margin-top: 32px;
  }
  .rm-modal-backdrop {
    padding: 12px;
  }
  .rm-modal-head {
    padding: 16px 18px;
  }
  .rm-modal-head h3 {
    font-size: 19px;
  }
  .rm-modal-body {
    padding: 18px;
  }
}

/* 10. Project Details Modal */
.rm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000000;
  background: rgba(24, 25, 28, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.rm-modal-backdrop.rm-open {
  display: flex;
}

.rm-modal-dialog {
  width: 100%;
  max-width: 860px;
  background-color: #ECECEA;
  color: #353639;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.rm-modal-head {
  padding: 20px 28px;
  border-bottom: 1px solid rgba(53, 54, 57, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: #E2E2DF;
}

.rm-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: #353639;
  color: #ECECEA;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.rm-modal-close:hover {
  background-color: #37CC8D;
  color: #1c1d1f;
  transform: rotate(90deg);
}

.rm-modal-body {
  padding: 28px;
  overflow-y: auto;
}

.rm-modal-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background-color: #181819;
  border: 1px solid rgba(53, 54, 57, 0.15);
  margin-bottom: 24px;
}

.rm-modal-preview.rm-icon-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  background: radial-gradient(circle at center, #2d3036 0%, #16171a 100%);
}

.rm-modal-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.rm-modal-preview.rm-icon-preview img {
  max-width: 180px;
  max-height: 180px;
  object-fit: contain;
}

.rm-modal-icon-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: #ECECEA;
}

.rm-modal-icon-stage i {
  font-size: 64px;
  color: #37CC8D;
}

.rm-modal-icon-stage span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #B4B6BA;
}

/* Audiovisual / Video History Strip */
.rm-video-strip {
  margin-top: 50px;
  padding: 36px;
  border-radius: 22px;
  background-color: #E2E2DF;
  border: 1px solid rgba(53, 54, 57, 0.12);
}

.rm-video-card {
  border-radius: 14px;
  overflow: hidden;
  background-color: #ECECEA;
  border: 1px solid rgba(53, 54, 57, 0.1);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.rm-video-card:hover {
  transform: translateY(-4px);
  border-color: #37CC8D;
  box-shadow: 0 16px 30px rgba(53, 54, 57, 0.12);
}

.rm-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #181819;
  overflow: hidden;
}

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

.rm-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 24, 25, 0.28);
  transition: background 0.25s ease;
}

.rm-video-card:hover .rm-video-play {
  background: rgba(24, 24, 25, 0.12);
}

.rm-video-play span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #37CC8D;
  color: #181819;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.rm-video-info {
  padding: 14px 16px;
}

.rm-video-info h5 {
  font-size: 15px;
  color: #353639;
  margin-bottom: 4px;
}

.rm-video-info p {
  font-size: 12px;
  color: #5c5e63;
  margin: 0;
}

.rm-video-iframe-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background-color: #000000;
}

.rm-video-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.rm-modal-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.rm-modal-box {
  background-color: #E2E2DF;
  border-radius: 16px;
  padding: 20px;
}

.rm-modal-box h6 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #55575b;
  margin-bottom: 10px;
  font-weight: 700;
}

.rm-modal-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rm-modal-box ul li {
  font-size: 13px;
  font-weight: 500;
  color: #353639;
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.rm-modal-box ul li i {
  color: #37CC8D;
  margin-top: 3px;
}

.rm-modal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rm-modal-stack span {
  padding: 6px 12px;
  border-radius: 8px;
  background-color: #353639;
  color: #ECECEA;
  font-size: 11px;
  font-weight: 600;
}

.rm-modal-private-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 12px;
  background-color: #353639;
  color: #37CC8D;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 768px) {
  .rm-modal-grid {
    grid-template-columns: 1fr;
  }
  .rm-modal-body {
    padding: 20px;
  }
}

/* ========================================================
   6. Estilos do Blog CMS & Cards Dinâmicos
   ======================================================== */
.rm-blog-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

.rm-blog-card:hover {
  transform: translateY(-8px);
  border-color: #37CC8D;
  box-shadow: 0 16px 36px rgba(55, 204, 141, 0.12);
}

.rm-blog-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f0f2f5;
}

.rm-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.rm-blog-card:hover .rm-blog-thumb img {
  transform: scale(1.06);
}

.rm-blog-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(29, 30, 33, 0.85);
  backdrop-filter: blur(8px);
  color: #37CC8D;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
}

.rm-blog-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rm-blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}

.rm-blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rm-blog-meta i {
  color: #37CC8D;
}

.rm-blog-title {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: #1d1e21 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rm-blog-card h4 {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.rm-blog-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rm-blog-action {
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}

.rm-blog-link {
  font-size: 13px;
  font-weight: 700;
  color: #1d1e21;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.25s ease, color 0.25s ease;
}

.rm-blog-link i {
  color: #37CC8D;
  transition: transform 0.25s ease;
}

.rm-blog-card:hover .rm-blog-link {
  color: #37CC8D;
}

.rm-blog-card:hover .rm-blog-link i {
  transform: translateX(4px);
}

/* Modal de Leitura de Artigo RichText */
.rm-post-modal-scroll::-webkit-scrollbar {
  width: 6px;
}
.rm-post-modal-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.rm-richtext-render h2 {
  font-size: 24px;
  font-weight: 800;
  color: #111;
  margin-top: 28px;
  margin-bottom: 14px;
}

.rm-richtext-render h3 {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-top: 24px;
  margin-bottom: 12px;
}

.rm-richtext-render p {
  margin-bottom: 16px;
  color: #333;
}

.rm-richtext-render ul,
.rm-richtext-render ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.rm-richtext-render li {
  margin-bottom: 8px;
  color: #333;
}

.rm-richtext-render blockquote {
  border-left: 4px solid #37CC8D;
  background: #f7faf8;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 14px 14px 0;
  font-style: italic;
  color: #222;
}

.rm-richtext-render img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 18px 0;
}

/* ========================================================
   7. Dropdown de Categorias do Blog na Barra de Navegação
   ======================================================== */
.rm-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 0; /* Aumenta a zona de hover */
}

.rm-nav-dropdown-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #353639;
  text-decoration: none;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.rm-dropdown-arrow {
  font-size: 9px !important;
  transition: transform 0.25s ease !important;
  color: #6b7280 !important;
}

.rm-nav-dropdown:hover .rm-dropdown-arrow,
.rm-nav-dropdown.rm-open .rm-dropdown-arrow {
  transform: rotate(180deg) !important;
  color: #37CC8D !important;
}

/* Menu Dropdown com Ponte de Hover Invisível */
.rm-dropdown-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 270px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 99999999 !important;
}

/* Pseudo-área invisível conectando o botão ao dropdown para o mouse nunca sair do hover */
.rm-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -24px;
  left: -20px;
  right: -20px;
  height: 30px;
  background: transparent;
}

.rm-nav-dropdown:hover .rm-dropdown-menu,
.rm-nav-dropdown.rm-open .rm-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rm-dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 12px !important;
  border-radius: 12px !important;
  color: #374151 !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: all 0.2s ease !important;
}

.rm-dropdown-item i {
  font-size: 13px !important;
  color: #37CC8D !important;
  width: 16px;
  text-align: center;
}

.rm-dropdown-item:hover {
  background: #f0fdf4 !important;
  color: #0d784a !important;
  transform: translateX(3px);
}

.rm-dropdown-item::after {
  display: none !important;
}

.rm-dropdown-all {
  background: #f9fafb !important;
  margin-bottom: 6px;
}

.rm-dropdown-all strong {
  display: block;
  font-size: 13px;
  color: #111827;
}

.rm-dropdown-all span {
  display: block;
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}

.rm-dropdown-divider {
  height: 1px;
  background: #f1f3f5;
  margin: 6px 0;
}

.rm-dropdown-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  padding: 4px 12px;
}

/* Submenu no menu lateral mobile */
.rm-mobile-categories-list {
  padding-left: 18px !important;
  margin-top: 6px !important;
  margin-bottom: 12px !important;
  border-left: 2px solid rgba(55, 204, 141, 0.4);
  list-style: none !important;
}

.rm-mobile-categories-list li {
  margin-bottom: 6px !important;
}

.rm-mobile-categories-list li a {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  display: block;
  padding: 3px 0 !important;
}

.rm-mobile-categories-list li a:hover {
  color: #37CC8D !important;
}
