/* Header escuro na identidade Empreender.
 * Três faixas: novidades (ticker) · logo + banner · menu com redes/busca/ajuda. */

.header-escuro {
    --he-bg: #342046;
    --he-bg-2: #2a1a3a;
    --he-bg-3: #1f1230;
    --he-ink: #f5f3ff;
    --he-ink-2: #c9c2ea;
    --he-accent: #8468ff;
    --he-highlight: #f2eeba;
    --he-border: rgba(245, 243, 255, 0.1);
    background: var(--he-bg);
    color: var(--he-ink);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}
.header-escuro a { color: inherit; }
/* As três faixas vão de ponta a ponta (o tema pai dava margem lateral). */
.header-escuro { padding: 0 !important; }
.header-escuro > div { margin: 0 !important; max-width: none !important; width: auto !important; }

/* ---------- Faixa de novidades ---------- */
.header-escuro__novidades {
    background: var(--he-bg-3);
    font-size: 13px;
    line-height: 1;
}
.header-escuro__novidades-linha {
    display: flex;
    align-items: stretch;
    gap: 16px;
    height: 36px;
}
.header-escuro__tag {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    background: var(--he-accent);
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    flex: 0 0 auto;
}
.header-escuro__ticker {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.header-escuro__ticker-trilho {
    display: flex;
    width: max-content;
    animation: he-ticker 40s linear infinite;
}
.header-escuro__ticker ul {
    display: flex;
    gap: 48px;
    margin: 0;
    padding: 0 48px 0 0;
    list-style: none;
    white-space: nowrap;
}
.header-escuro__ticker:hover .header-escuro__ticker-trilho { animation-play-state: paused; }
.header-escuro__ticker li a {
    color: var(--he-ink);
    display: inline-flex;
    gap: 10px;
    align-items: center;
}
.header-escuro__ticker li a:hover { color: var(--he-highlight); }
.header-escuro__ticker time { color: var(--he-ink-2); }
@keyframes he-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .header-escuro__ticker-trilho { animation: none; }
}

/* ---------- Logo + banner ---------- */
.header-escuro__principal-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 104px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.header-escuro__logo { flex: 0 0 auto; line-height: 0; }
.header-escuro__logo img { width: 200px; height: auto; }
.header-escuro__banner { flex: 0 1 728px; line-height: 0; }
.header-escuro__banner .banner-add { text-align: right; }
.header-escuro__banner img {
    max-width: 100%;
    height: auto;
    max-height: 90px;
    border-radius: 12px;
}

/* ---------- Menu ---------- */
.header-escuro__nav {
    background: var(--he-bg-2);
    border-top: 1px solid var(--he-border);
}
.header-escuro__nav-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 60px;
}
.header-escuro .mainmenu-nav ul.mainmenu {
    flex-wrap: nowrap;
    white-space: nowrap;
}
.header-escuro .mainmenu-nav ul.mainmenu > li { margin: 0 14px 0 0; }
.header-escuro .mainmenu-nav ul.mainmenu > li > a {
    height: 60px;
    line-height: 60px;
    color: var(--he-ink-2);
    font-size: 15px;
    font-weight: 500;
    padding: 0 6px;
}
.header-escuro .mainmenu-nav ul.mainmenu > li > a:hover,
.header-escuro .mainmenu-nav ul.mainmenu > li.current-menu-item > a {
    color: #fff;
}
.header-escuro .mainmenu-nav ul.mainmenu > li > a::after { display: none; }
.header-escuro .hamburger-menu .icon {
    background: rgba(255, 255, 255, 0.08);
    color: var(--he-ink);
    border-radius: 10px;
}
.header-escuro .hamburger-menu .icon i { color: var(--he-ink); font-size: 20px; }

/* Ações à direita */
.header-escuro__acoes {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
}
.header-escuro__redes {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.header-escuro__redes a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: var(--he-ink-2);
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}
.header-escuro__redes a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.header-escuro__busca {
    display: flex;
    align-items: center;
    margin: 0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}
.header-escuro__busca input {
    width: 0;
    padding: 0;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--he-ink);
    font-size: 14px;
    transition: width 0.25s, padding 0.25s;
}
.header-escuro__busca input::placeholder { color: var(--he-ink-2); }
.header-escuro__busca.aberta input { width: 200px; padding: 0 12px; }
.header-escuro__busca-toggle {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--he-ink-2);
    font-size: 16px;
    cursor: pointer;
}
.header-escuro__busca-toggle:hover { color: #fff; }

.header-escuro .glt-selector,
.header-escuro #glt-translate-trigger,
.header-escuro .glt-flags { color: var(--he-ink-2); }

.header-escuro__ajuda {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 4px 16px;
    border-radius: 10px;
    background: var(--he-accent);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    transition: box-shadow 0.2s, transform 0.2s;
}
.header-escuro__ajuda:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}
.header-escuro__ajuda-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--he-highlight);
    color: var(--he-bg);
    font-size: 17px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1199px) {
    .header-escuro__principal-linha { min-height: 80px; }
    .header-escuro__logo img { width: 160px; }
    .header-escuro__redes { display: none; }
}
@media (max-width: 767px) {
    .header-escuro__novidades { font-size: 12px; }
    .header-escuro__novidades-linha { gap: 10px; height: 32px; }
    .header-escuro__tag { padding: 0 10px; font-size: 10px; }
    .header-escuro__principal-linha { min-height: 64px; padding: 10px 0; }
    .header-escuro__logo img { width: 140px; }
    .header-escuro__banner { display: none; }
    .header-escuro__nav-linha { min-height: 54px; gap: 10px; }
    .header-escuro__acoes { gap: 8px; }
    .header-escuro__busca.aberta input { width: 120px; }
    .header-escuro__ajuda span:first-child { display: none; }
    .header-escuro__ajuda { padding: 4px; }
}

/* ---------- Banner no meio do post ---------- */
.banner-meio-post {
    margin: 2em 0;
    text-align: center;
}
.banner-meio-post img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ---------- Card de ajuda fixo na barra lateral ---------- */
.axil-blog-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-ajuda {
    position: -webkit-sticky;
    position: sticky;
    top: 24px;
    margin-top: 30px;
    border-radius: 24px;
    overflow: hidden;
    padding: 44px 32px 32px;
    color: #342046;
    background:
        radial-gradient(120% 80% at 20% 15%, rgba(255,255,255,0.7), transparent 55%),
        radial-gradient(90% 70% at 85% 85%, rgba(255,255,255,0.5), transparent 60%),
        linear-gradient(135deg, #dff2fb 0%, #b9dff3 48%, #d4ecf8 100%);
    isolation: isolate;
}
.card-ajuda::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("img/outline.svg") right -40px top -10px / 85% auto no-repeat;
    opacity: 0.7;
    z-index: -1;
}
.card-ajuda h3 {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 40px;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: #342046;
    margin: 0 0 14px;
}
.card-ajuda p {
    font-size: 17px;
    line-height: 1.4;
    color: #342046;
    margin: 0 0 56px;
    max-width: 220px;
}
.card-ajuda__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 6px 6px 6px 18px;
    border-radius: 14px;
    background: #342046;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card-ajuda__cta:hover { box-shadow: 0 10px 24px rgba(52, 32, 70, 0.3); transform: translateY(-1px); }
.card-ajuda__cta-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f2eeba;
    color: #342046;
    font-size: 24px;
    flex: 0 0 auto;
}
@media (max-width: 991px) {
    .axil-blog-sidebar { display: block; height: auto; }
    .card-ajuda { position: static; }
}
