/* =========================================================
   HEADER DOMINA
   Faixa superior (.dm-utility) + cabeçalho (.dm-header):
   atalhos de concursos (badges), menu principal, mega menu, slogan e mobile.

   Breakpoints:
   - >= 1101px: badges de concursos + painéis de descoberta
   - >= 1025px: navegação desktop + mega menu (compacta até 1200px)
   - >= 768px : faixa superior com busca e slogan
   - <= 1024px: menu hambúrguer
   - <= 767px : layout mobile (busca larga, slogan compacto)
========================================================= */

.dm-utility,
.dm-header {
  --dm-green: #8fbf4f;
  --dm-green-dark: #6b9337;
  --dm-green-deep: #5a742f;
  --dm-green-deeper: #486126;
  --dm-green-soft: #eef6e7;
  --dm-ink: #231f20;
  --dm-text: #343733;
  --dm-muted: #6f756c;
  --dm-line: #e3e8de;
  --dm-font: "Poppins", Arial, sans-serif;

  color: var(--dm-ink);
  font-family: var(--dm-font);
  -webkit-font-smoothing: antialiased;
}

.dm-utility *,
.dm-header * {
  box-sizing: border-box;
}

.dm-utility a,
.dm-header a {
  color: inherit;
  text-decoration: none;
}

.dm-utility button,
.dm-utility input,
.dm-header button,
.dm-header input {
  font-family: var(--dm-font);
}

.dm-utility svg,
.dm-header svg {
  display: block;
  flex: 0 0 auto;
}

.dm-header {
  background: #fff;
}

.dm-shell {
  width: min(calc(100% - 32px), 1320px);
  margin-inline: auto;
}

.dm-utility a:focus-visible,
.dm-utility button:focus-visible,
.dm-utility input:focus-visible,
.dm-header a:focus-visible,
.dm-header button:focus-visible,
.dm-header input:focus-visible {
  outline: 2px solid rgba(107, 147, 55, .75);
  outline-offset: 2px;
}

/* =========================================================
   STICKY + PAINEL DA BUSCA AJAX (antes inline no header.php)
========================================================= */
:root {
  --busca-panel-top: 56px;
}

#search-ajax-results {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.search-overlay {
  position: fixed;
  inset: 0;
  height: 100dvh;
  background: rgba(0, 0, 0, .9);
  z-index: 1;
}

#search-ajax-results > .container {
  padding-top: var(--busca-panel-top);
}

#resultados-busca {
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}

/* No desktop/tablet apenas a faixa com a busca fica fixa */
@media (min-width: 768px) {
  #header-site-domina {
    position: relative;
    z-index: 100000;
  }

  #search-ajax-results {
    z-index: 100000;
  }

  .dm-utility {
    position: sticky;
    top: 0;
    z-index: 100001;
  }
}

/* No mobile o cabeçalho inteiro (com a busca) permanece fixo */
@media (max-width: 767.98px) {
  :root {
    --busca-panel-top: 170px;
  }

  #header-site-domina {
    position: sticky;
    top: 0;
    z-index: 100000;
  }
}

/* =========================================================
   FAIXA SUPERIOR
========================================================= */
.dm-utility {
  background: linear-gradient(90deg, #8fbf4f 0%, #97c65b 52%, #8fbf4f 100%);
  border-bottom: 1px solid rgba(74, 105, 50, .12);
}

.dm-utility-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(190px, .75fr) minmax(420px, 1.55fr) minmax(410px, 1fr);
  align-items: center;
  gap: 20px;
}

.dm-utility-links {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #263022;
  font-size: 12.5px;
  font-weight: 600;
}

.dm-utility-links a {
  transition: color .18s ease;
}

.dm-utility-links a:hover,
.dm-utility-links a:focus-visible {
  color: #173116;
}

.dm-divider {
  width: 1px;
  height: 20px;
  background: rgba(35, 31, 32, .24);
}

/* Formulário de busca (desktop e mobile) */
.dm-search-form {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  width: 100%;
  height: 42px;
  margin: 0;
  background: #fff;
  border: 1px solid rgba(107, 147, 55, .28);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(52, 72, 42, .055);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.dm-search-form:focus-within {
  border-color: var(--dm-green-dark);
  box-shadow: 0 0 0 3px rgba(143, 191, 79, .16), 0 5px 16px rgba(52, 72, 42, .06);
}

.dm-search-form input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px 0 17px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--dm-text);
  font-size: 13px;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
}

.dm-search-form input[type="search"]::placeholder {
  color: #747a70;
  opacity: 1;
}

.dm-search-form input[type="search"]:focus-visible {
  outline: 0;
}

.dm-search-form button {
  width: 34px;
  height: 34px;
  margin-right: 4px;
  padding: 0;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 0;
  border-radius: 50%;
  background: var(--dm-green);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease;
}

.dm-search-form button:hover,
.dm-search-form button:focus-visible {
  background: var(--dm-green-dark);
}

.dm-search-form button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.dm-utility-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.dm-secure {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #445043;
}

.dm-secure-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #52624e;
}

.dm-secure-icon svg {
  width: 18px;
  height: 18px;
}

.dm-secure-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  white-space: nowrap;
}

.dm-secure-copy strong {
  font-size: 10.5px;
  font-weight: 700;
}

.dm-secure-copy small {
  margin-top: 2px;
  color: #626b60;
  font-size: 9px;
  font-weight: 500;
}

.dm-top-cart {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dm-green-deep);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(49, 75, 33, .14);
  transition: transform .18s ease, background .18s ease;
}

.dm-top-cart svg {
  width: 21px;
  height: 21px;
}

.dm-login {
  min-height: 42px;
  min-width: 148px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--dm-green-deep);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(49, 75, 33, .14);
  transition: transform .18s ease, background .18s ease;
}

.dm-top-cart:hover,
.dm-top-cart:focus-visible,
.dm-login:hover,
.dm-login:focus-visible {
  transform: translateY(-1px);
  background: var(--dm-green-deeper);
}

.dm-login-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

.dm-login-icon svg {
  width: 18px;
  height: 18px;
}

.dm-login-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
  white-space: nowrap;
}

.dm-login-copy strong {
  font-size: 12px;
  font-weight: 800;
}

.dm-login-copy small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .82);
  font-size: 8.5px;
  font-weight: 600;
}

@media (max-width: 1180px) {
  .dm-utility-row {
    grid-template-columns: minmax(170px, .7fr) minmax(300px, 1.4fr) auto;
    gap: 14px;
  }

  .dm-secure-copy small {
    display: none;
  }

  .dm-login {
    min-width: 130px;
    padding-right: 11px;
  }
}

@media (max-width: 980px) {
  .dm-secure {
    display: none;
  }
}

@media (max-width: 900px) {
  .dm-utility-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .dm-utility-links {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .dm-utility {
    display: none;
  }
}

/* =========================================================
   BARRA PRINCIPAL
========================================================= */
.dm-main {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #eef1eb;
  box-shadow: 0 5px 18px rgba(35, 31, 32, .025);
}

.dm-main-row {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 42px;
}

.dm-logo {
  flex: 0 0 auto;
  width: 220px;
  height: 72px;
  display: flex;
  align-items: center;
}

.dm-logo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 66px;
  object-fit: contain;
  object-position: left center;
}

/* Navegação desktop */
.dm-nav {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.dm-dropdown,
.dm-nav-link {
  flex: 0 1 auto;
  min-width: 0;
}

.dm-dropdown {
  display: flex;
}

.dm-drop-toggle,
.dm-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 86px;
  padding: 0 14px;
  margin: 0;
  border: 0;
  border-left: 1px solid #edf0eb;
  border-radius: 0;
  background: none;
  color: #2f342f !important;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.015em;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

.dm-nav > :last-child,
.dm-nav > :last-child .dm-drop-toggle {
  border-right: 1px solid #edf0eb;
}

.dm-drop-toggle::after,
.dm-nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--dm-green);
  transform: scaleX(0);
  transition: transform .18s ease;
}

.dm-drop-toggle:hover,
.dm-nav-link:hover,
.dm-drop-toggle[aria-expanded="true"] {
  color: var(--dm-green-dark) !important;
  background: linear-gradient(180deg, #fff 0%, #f4f8f1 100%);
}

.dm-drop-toggle:hover::after,
.dm-nav-link:hover::after,
.dm-drop-toggle[aria-expanded="true"]::after {
  transform: scaleX(1);
}

.dm-nav-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #edf8e7, #dff0d7);
  color: var(--dm-green-dark);
  box-shadow: inset 0 0 0 1px rgba(69, 133, 59, .10), 0 4px 10px rgba(48, 98, 42, .06);
}

.dm-nav-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.dm-caret {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.dm-drop-toggle[aria-expanded="true"] .dm-caret {
  transform: rotate(225deg) translate(-2px, -2px);
}

.dm-free-pill {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf3e1;
  color: #5d8638;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1;
}

@media (min-width: 1441px) {
  .dm-shell {
    width: min(calc(100% - 48px), 1480px);
  }

  .dm-drop-toggle,
  .dm-nav-link {
    font-size: 14px;
  }
}

@media (min-width: 1201px) and (max-width: 1440px) {
  .dm-shell {
    width: min(calc(100% - 28px), 1320px);
  }

  .dm-main-row {
    gap: 18px;
  }

  .dm-logo {
    width: 190px;
  }

  .dm-logo-img {
    max-height: 60px;
  }

  .dm-drop-toggle,
  .dm-nav-link {
    gap: 7px;
    padding: 0 9px;
    font-size: 12.5px;
  }

  .dm-drop-toggle::after,
  .dm-nav-link::after {
    left: 9px;
    right: 9px;
  }

  .dm-nav-icon {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  .dm-nav-icon svg {
    width: 18px;
    height: 18px;
  }

  .dm-free-pill {
    padding: 3px 6px;
    font-size: 8px;
  }
}

/* Notebook compacto / Windows com escala 125%: continua desktop, mais denso */
@media (min-width: 1025px) and (max-width: 1200px) {
  .dm-shell {
    width: min(calc(100% - 20px), 1180px);
  }

  .dm-main-row {
    min-height: 74px;
    gap: 10px;
  }

  .dm-logo {
    width: 154px;
    height: 64px;
  }

  .dm-logo-img {
    max-height: 56px;
  }

  .dm-drop-toggle,
  .dm-nav-link {
    min-height: 74px;
    gap: 5px;
    padding: 0 6px;
    font-size: 11px;
    line-height: 1.18;
  }

  .dm-drop-toggle::after,
  .dm-nav-link::after {
    left: 6px;
    right: 6px;
    bottom: 8px;
  }

  .dm-nav-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border-radius: 8px;
  }

  .dm-nav-icon svg {
    width: 15px;
    height: 15px;
  }

  .dm-caret {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
  }

  .dm-free-pill {
    padding: 2px 4px;
    font-size: 7px;
  }
}

/* =========================================================
   MEGA MENU (em fluxo: empurra o conteúdo, não sobrepõe)
========================================================= */
.dm-mega-stage {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(143, 191, 79, .07), transparent 24%),
    linear-gradient(180deg, #fff 0%, #f7faf5 100%);
  border-top: 0 solid #e8ede3;
  border-bottom: 0 solid #dee5d8;
  transition: grid-template-rows .3s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}

.dm-mega-stage.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  border-top-width: 1px;
  border-bottom-width: 1px;
  box-shadow: 0 18px 40px rgba(35, 31, 32, .085);
}

.dm-mega-panel {
  min-height: 0;
  overflow: hidden;
}

.dm-mega-grid {
  display: grid;
  grid-template-columns: repeat(var(--dm-mega-cols, 4), minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0 22px;
}

.dm-mega-card {
  min-width: 0;
  min-height: 98px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 17px;
  border: 1px solid #e4e9df;
  border-radius: 15px;
  background: #fff;
  color: var(--dm-ink) !important;
  box-shadow: 0 5px 16px rgba(31, 36, 31, .035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.dm-mega-card:hover,
.dm-mega-card:focus-visible {
  transform: translateY(-2px);
  border-color: #c8dab8;
  background: #f8fbf5;
  box-shadow: 0 12px 26px rgba(31, 36, 31, .075);
}

.dm-mega-grid > .dm-mega-card:first-child {
  background: linear-gradient(135deg, #eef7e9, #fbfdf9);
  border-color: #d3e5cb;
}

.dm-drop-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(145deg, #eaf7e3, #d9efcf);
  color: var(--dm-green-dark);
  box-shadow: inset 0 0 0 1px rgba(70, 125, 53, .08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.dm-drop-badge svg {
  width: 27px;
  height: 27px;
}

.dm-mega-card b {
  display: block;
  color: #273127;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.dm-mega-card small {
  display: block;
  margin-top: 3px;
  color: var(--dm-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.dm-mega-card.dm-view-all {
  grid-column: 1 / -1;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  background: linear-gradient(90deg, #eef8e8, #f9fcf7);
  border-color: #cfe3c5;
}

.dm-view-all-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dm-view-all .dm-drop-badge {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
}

.dm-view-all .dm-drop-badge svg {
  width: 22px;
  height: 22px;
}

.dm-view-all-arrow {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dm-green);
  color: #fff;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease;
}

.dm-view-all:hover .dm-view-all-arrow {
  transform: translateX(3px);
  background: var(--dm-green-dark);
}

.dm-mega-stage.is-open .dm-mega-card {
  animation: dmMegaIn .24s ease both;
}

.dm-mega-stage.is-open .dm-mega-card:nth-child(2) { animation-delay: .035s; }
.dm-mega-stage.is-open .dm-mega-card:nth-child(3) { animation-delay: .07s; }
.dm-mega-stage.is-open .dm-mega-card:nth-child(4) { animation-delay: .105s; }
.dm-mega-stage.is-open .dm-mega-card:nth-child(5) { animation-delay: .14s; }
.dm-mega-stage.is-open .dm-mega-card:nth-child(6) { animation-delay: .175s; }

@keyframes dmMegaIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   BOTÃO E AÇÕES MOBILE
========================================================= */
.dm-mobile-btn,
.dm-mobile-actions,
.dm-mobile-search,
.dm-mobile-slogan-strip {
  display: none;
}

.dm-mobile-btn {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dm-line);
  border-radius: 12px;
  background: #fff;
  color: #283028;
  cursor: pointer;
}

.dm-mobile-btn span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 2.5px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.dm-mobile-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.dm-mobile-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.dm-mobile-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .dm-shell {
    width: min(calc(100% - 28px), 1120px);
  }

  .dm-main-row {
    min-height: 78px;
    gap: 18px;
  }

  .dm-logo {
    width: 205px;
    height: 66px;
  }

  .dm-logo-img {
    max-height: 58px;
  }

  .dm-nav,
  .dm-mega-stage {
    display: none;
  }

  .dm-mobile-btn {
    display: flex;
  }
}

/* =========================================================
   MENU MOBILE (accordion)
========================================================= */
.dm-mobile-menu {
  background: #fff;
  border-top: 1px solid #e8ede3;
  box-shadow: 0 16px 30px rgba(35, 31, 32, .08);
}

.dm-mobile-inner {
  display: grid;
  padding: 8px 0 18px;
}

.dm-mobile-parent,
.dm-mobile-direct {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #ecefe8;
  background: #fff;
  color: var(--dm-text) !important;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.dm-mobile-direct {
  grid-template-columns: 42px minmax(0, 1fr);
}

.dm-mobile-label {
  min-width: 0;
}

.dm-mobile-label .dm-free-pill {
  margin-left: 6px;
  vertical-align: middle;
}

.dm-mobile-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #eaf6e4, #dcefd3);
  color: var(--dm-green-dark);
  box-shadow: inset 0 0 0 1px rgba(63, 125, 53, .06);
}

.dm-mobile-icon svg {
  width: 22px;
  height: 22px;
}

.dm-mobile-toggle-mark,
.dm-mobile-nested-mark {
  justify-self: end;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dm-green-soft);
  color: var(--dm-green-dark);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.dm-mobile-sub {
  display: grid;
  padding: 6px 0 8px 52px;
  background: #fbfcfa;
}

.dm-mobile-sub > a,
.dm-mobile-contest-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  color: #536052 !important;
  font-size: 13px;
}

.dm-mobile-sub-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f1f7ee;
  color: #4b843f;
}

.dm-mobile-sub-icon svg {
  width: 16px;
  height: 16px;
}

.dm-mobile-item-text {
  min-width: 0;
  line-height: 1.3;
}

.dm-mobile-item-text b {
  margin-right: 4px;
  color: var(--dm-green-dark);
  font-weight: 800;
}

.dm-mobile-explore-parent {
  margin-top: 6px;
  border-top: 1px solid #e6ebe2;
}

.dm-mobile-nested-parent {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid #edf0eb;
  background: transparent;
  color: #3b4739;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.dm-mobile-nested-mark {
  width: 24px;
  height: 24px;
  font-size: 16px;
}

.dm-mobile-nested-sub {
  display: grid;
  padding: 5px 0 8px 38px;
  border-bottom: 1px solid #edf0eb;
}

.dm-mobile-nested-sub > a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 6px;
  border-bottom: 1px solid #f0f3ee;
  color: #596457 !important;
  font-size: 12.5px;
}

.dm-mobile-nested-sub > a:last-child {
  border-bottom: 0;
}

.dm-mobile-nested-sub > a.dm-mobile-view-all {
  color: #39752d !important;
  font-weight: 700;
}

.dm-mobile-nested-title {
  padding: 10px 6px 4px;
  color: var(--dm-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (min-width: 1025px) {
  .dm-mobile-menu {
    display: none !important;
  }
}

/* =========================================================
   SUBNAV "CONCURSOS"
========================================================= */
.dm-subnav {
  position: relative;
  z-index: 3;
  padding: 7px 0 8px;
  background: #f7f9f5;
  border-bottom: 1px solid #e4e9df;
}

.dm-subnav-row {
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dm-subnav-row > a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #dce4d6;
  border-radius: 999px;
  background: #fff;
  color: #465044 !important;
  box-shadow: 0 1px 2px rgba(35, 31, 32, .025);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.dm-subnav-row > a:hover,
.dm-subnav-row > a:focus-visible,
.dm-subnav-row > a.is-active {
  background: #eef6e8;
  border-color: #c8d9bb;
  color: #527f37 !important;
  transform: translateY(-1px);
}

.dm-subnav-icon {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  color: var(--dm-green-dark);
}

.dm-subnav-icon svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.8;
}

.dm-subnav-row > a.dm-highlight {
  background: var(--dm-green-dark);
  border-color: var(--dm-green-dark);
  color: #fff !important;
}

.dm-subnav-row > a.dm-highlight .dm-subnav-icon {
  color: #fff;
}

.dm-subnav-row > a.dm-highlight:hover,
.dm-subnav-row > a.dm-highlight:focus-visible,
.dm-subnav-row > a.dm-highlight.is-active {
  background: #5d8130;
  border-color: #5d8130;
  color: #fff !important;
}

/* Abaixo de 1101px os atalhos ficam no menu ("Explorar concursos") */
@media (max-width: 1100px) {
  .dm-subnav {
    display: none;
  }
}

/* Painéis de descoberta (Cargos, Bancas, Localidades...) */
.dm-discover-stage {
  display: none;
}

@media (min-width: 1101px) {
  .dm-discover-stage {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1200;
  }

  .dm-discover-stage.is-open {
    display: block;
  }

  /* Invisible bridge so the pointer can travel from the bar to the panel */
  .dm-discover-stage::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 14px;
  }

  .dm-discover-shell {
    width: min(calc(100% - 36px), 1040px);
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e7ece2;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(35, 31, 32, .10);
    overflow: hidden;
  }

  .dm-discover-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, .7fr);
    gap: 26px;
    min-height: 330px;
    padding: 24px 28px 26px;
  }

  .dm-discover-panel--no-media {
    grid-template-columns: minmax(0, 1fr);
  }

  .dm-discover-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .dm-discover-title-row {
    margin-bottom: 20px;
  }

  .dm-discover-title-row h3 {
    margin: 0 0 8px;
    color: #2b302b;
    font-family: var(--dm-font);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.035em;
  }

  .dm-discover-see-all {
    display: inline-block;
    color: var(--dm-ink) !important;
    font-size: 14px;
    text-decoration: underline !important;
    text-underline-offset: 3px;
  }

  .dm-discover-see-all:hover {
    color: var(--dm-green-dark) !important;
  }

  .dm-discover-links {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0 34px;
    align-items: start;
  }

  .dm-discover-column {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .dm-discover-column a {
    min-height: 43px;
    display: flex;
    align-items: center;
    padding: 4px 0;
    color: #2f332f !important;
    font-size: 13.5px;
    line-height: 1.3;
    transition: color .16s ease, transform .16s ease;
  }

  .dm-discover-column a:hover,
  .dm-discover-column a:focus-visible {
    color: var(--dm-green-dark) !important;
    transform: translateX(3px);
  }

  .dm-discover-group-title strong {
    display: block;
    padding: 6px 0 4px;
    color: #3e4a3c;
    font-size: 13px;
    font-weight: 700;
  }

  .dm-discover-media {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dm-discover-media img {
    width: 100%;
    max-width: 270px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 9px;
  }
}

@media (min-width: 1101px) and (max-width: 1280px) {
  .dm-discover-shell {
    width: calc(100% - 24px);
  }

  .dm-discover-panel {
    grid-template-columns: minmax(0, 1.65fr) minmax(220px, .65fr);
    gap: 22px;
    min-height: 325px;
    padding: 24px 26px;
  }

  .dm-discover-title-row h3 {
    font-size: 20px;
  }

  .dm-discover-column a {
    min-height: 42px;
    font-size: 13px;
  }
}

/* =========================================================
   SLOGAN INSTITUCIONAL
========================================================= */
.dm-slogan-bar {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(143, 191, 79, .045), transparent 34%),
    linear-gradient(90deg, #fff 0%, #fbfdf9 50%, #fff 100%);
  border-bottom: 1px solid #eef1eb;
}

.dm-slogan-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(143, 191, 79, .055), transparent);
  transform: skewX(-18deg);
  animation: dmSloganSweep 7.8s ease-in-out infinite;
  pointer-events: none;
}

.dm-slogan-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(420px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(143, 191, 79, .28), transparent);
  pointer-events: none;
}

.dm-slogan-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 24px;
  text-align: center;
}

.dm-slogan-line {
  position: relative;
  width: 3px;
  height: 26px;
  flex: 0 0 3px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, #231f20 0%, #231f20 55%, #8fbf4f 100%);
}

.dm-slogan-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -70%;
  height: 48%;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, #8fbf4f, transparent);
  animation: dmLinePulse 2.8s ease-in-out infinite;
}

/* frontend.css forces Inter on every <p>; the slogan keeps Poppins */
.dm-slogan-text,
.dm-mobile-slogan {
  font-family: var(--dm-font) !important;
}

.dm-slogan-text {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 6px;
  max-width: 1050px;
  color: var(--dm-text);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.dm-type-word {
  position: relative;
  display: inline-block;
  color: var(--dm-green-dark);
  font-weight: 700;
  white-space: nowrap;
  isolation: isolate;
}

.dm-type-word .dm-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(5px) scale(.96);
  filter: blur(3px);
  transition: opacity .26s ease, transform .34s cubic-bezier(.2, .8, .2, 1), filter .28s ease;
}

.dm-type-word.dm-revealing .dm-char {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.dm-type-word::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -3px;
  right: -3px;
  bottom: -3px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(143, 191, 79, 0), rgba(143, 191, 79, .22), rgba(143, 191, 79, 0));
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}

.dm-type-word.dm-complete::before {
  animation: dmWordUnderline .55s ease forwards;
}

.dm-type-word.dm-active::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: .9em;
  margin-left: 3px;
  vertical-align: -.06em;
  border-radius: 2px;
  background: var(--dm-green);
  animation: dmTypeCursor .72s steps(1, end) infinite;
}

@keyframes dmSloganSweep {
  0%, 18% { left: -35%; opacity: 0; }
  28% { opacity: 1; }
  48% { left: 110%; opacity: .75; }
  49%, 100% { left: 110%; opacity: 0; }
}

@keyframes dmLinePulse {
  0% { top: -70%; opacity: 0; }
  25% { opacity: 1; }
  65% { top: 120%; opacity: .8; }
  100% { top: 120%; opacity: 0; }
}

@keyframes dmWordUnderline {
  0% { transform: scaleX(0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scaleX(1); opacity: .9; }
}

@keyframes dmTypeCursor {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@media (max-width: 1100px) {
  .dm-slogan-text {
    font-size: 15px;
  }
}

/* =========================================================
   MOBILE (<= 767px)
========================================================= */
@media (max-width: 767.98px) {
  .dm-shell {
    width: calc(100% - 20px);
  }

  .dm-slogan-bar {
    display: none;
  }

  .dm-main {
    border-bottom: 0;
    box-shadow: none;
  }

  .dm-main-row {
    min-height: 64px;
    gap: 8px;
    padding-block: 4px;
  }

  .dm-logo {
    width: auto;
    max-width: 190px;
    min-width: 0;
    height: 58px;
    flex: 0 1 auto;
  }

  .dm-logo-img {
    width: auto;
    max-width: 100%;
    max-height: 52px;
  }

  /* Ações: carrinho + conta + menu */
  .dm-mobile-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .dm-mobile-action {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 1px solid #c9dab9;
    border-radius: 50%;
    background: #fff;
    color: var(--dm-green-dark) !important;
  }

  .dm-mobile-action svg {
    width: 22px;
    height: 22px;
  }

  .dm-mobile-account {
    border-color: var(--dm-green);
    background: var(--dm-green);
    color: #fff !important;
  }

  .dm-mobile-btn {
    width: 40px;
    height: 40px;
    margin-left: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--dm-green-dark);
  }

  .dm-mobile-btn span {
    width: 24px;
    height: 2.5px;
    margin: 3px auto;
  }

  .dm-mobile-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .dm-mobile-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  /* Busca ampla */
  .dm-mobile-search {
    display: block;
    padding: 4px 0 9px;
  }

  .dm-mobile-search .dm-search-form {
    height: 44px;
    border-color: #d8e1d0;
    box-shadow: 0 3px 10px rgba(35, 31, 32, .035);
  }

  .dm-mobile-search .dm-search-form input[type="search"] {
    padding-left: 16px;
    font-size: 13px;
  }

  .dm-mobile-search .dm-search-form button {
    width: 36px;
    height: 36px;
  }

  /* Slogan compacto */
  .dm-mobile-slogan-strip {
    display: block;
    border-top: 1px solid #f0f3ed;
    border-bottom: 1px solid #edf1e9;
    background: linear-gradient(90deg, #fff, #fbfdf9, #fff);
  }

  .dm-mobile-slogan-strip > .dm-shell {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
  }

  .dm-mobile-slogan {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 5px;
    width: 100%;
    color: #5f665d;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
  }

  .dm-mobile-slogan > span {
    white-space: nowrap;
  }

  .dm-mobile-slogan .dm-type-word {
    font-weight: 800;
  }

  .dm-mobile-slogan .dm-type-word::before {
    left: -1px;
    right: -1px;
    bottom: -2px;
    height: 4px;
  }

  /* Menu aberto rola dentro do header fixo */
  .dm-mobile-menu {
    max-height: calc(100dvh - var(--busca-panel-top, 170px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 520px) {
  .dm-logo {
    max-width: 158px;
    height: 54px;
  }

  .dm-logo-img {
    max-height: 47px;
  }

  .dm-mobile-actions {
    gap: 5px;
  }

  .dm-mobile-action,
  .dm-mobile-btn {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
  }

  .dm-mobile-action svg {
    width: 20px;
    height: 20px;
  }

  .dm-mobile-slogan {
    font-size: 10px;
    gap: 0 4px;
  }

  .dm-mobile-parent {
    grid-template-columns: 38px minmax(0, 1fr) 26px;
  }

  .dm-mobile-direct {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .dm-mobile-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

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

  .dm-mobile-sub {
    padding-left: 46px;
  }
}

@media (max-width: 390px) {
  .dm-shell {
    width: calc(100% - 14px);
  }

  .dm-main-row {
    gap: 4px;
  }

  .dm-logo {
    max-width: 138px;
  }

  .dm-logo-img {
    max-height: 43px;
  }

  .dm-mobile-actions {
    gap: 4px;
  }

  .dm-mobile-action,
  .dm-mobile-btn {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .dm-mobile-search .dm-search-form {
    height: 42px;
  }

  .dm-mobile-search .dm-search-form input[type="search"] {
    font-size: 12px;
  }

  .dm-mobile-slogan {
    font-size: 9.5px;
    gap: 0 3px;
  }
}

@media (max-width: 340px) {
  .dm-logo {
    max-width: 116px;
  }

  .dm-mobile-action,
  .dm-mobile-btn {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .dm-mobile-slogan {
    font-size: 9px;
  }
}

/* =========================================================
   ACESSIBILIDADE
========================================================= */
@media (hover: none) {
  .dm-mega-card:hover,
  .dm-top-cart:hover,
  .dm-login:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-mega-stage,
  .dm-mega-card,
  .dm-mobile-btn span,
  .dm-type-word .dm-char {
    transition: none !important;
  }

  .dm-mega-stage.is-open .dm-mega-card,
  .dm-slogan-bar::before,
  .dm-slogan-line::after,
  .dm-type-word.dm-active::after,
  .dm-type-word.dm-complete::before {
    animation: none !important;
  }

  .dm-type-word .dm-char {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
