/* ═══════════════════════════════════════════════════════════════
   AssociaApp — Stylesheet
   Tema AC  → body.theme-ac  (verde #12723A + amarelo #FFF200 — ACIMA)
   Tema CDL → body.theme-cdl (azul vivo + verde)
═══════════════════════════════════════════════════════════════ */

/* ── TEMA AC — ACIMA (verde escuro + amarelo vivo) ────────── */
body.theme-ac, body {
    --c-primary:       #12723A;
    --c-primary-dark:  #0b4f28;
    --c-primary-light: #1a9049;
    --c-accent:        #FFF200;
    --c-accent-dark:   #d4c900;
    --c-accent-light:  #fffa4d;
    --c-nav-bg:        #12723A;
    --c-nav-text:      rgba(255,255,255,.92);
    --c-nav-hover:     #FFF200;
    --c-topbar-bg:     #0b4f28;
    --c-topbar-text:   rgba(255,255,255,.75);
    --c-hero-from:     #0b4f28;
    --c-hero-to:       #12723A;
    --c-btn-cta:       #FFF200;
    --c-btn-cta-text:  #0b4f28;
    --c-section-alt:   #f3faf6;
    --c-footer-bg:     #071f10;
    --c-footer-bar:    #030e07;
    --c-service-icon:  #12723A;
    --c-link:          #0b5c2e;
    --c-border:        #cce5d6;
    --c-tag-bg:        #e0f3e9;
    --c-tag-text:      #0b5c2e;
}

/* ── TEMA CDL ─────────────────────────────────────────────── */
body.theme-cdl {
    --c-primary:       #284d92;
    --c-primary-dark:  #1a3366;
    --c-primary-light: #3a67b8;
    --c-accent:        #00a557;
    --c-accent-dark:   #007d42;
    --c-accent-light:  #00c265;
    --c-nav-bg:        #284d92;
    --c-nav-text:      rgba(255,255,255,.88);
    --c-nav-hover:     #ffffff;
    --c-topbar-bg:     #1a3366;
    --c-topbar-text:   rgba(255,255,255,.7);
    --c-hero-from:     #284d92;
    --c-hero-to:       #0096fa;
    --c-btn-cta:       #00a557;
    --c-btn-cta-text:  #ffffff;
    --c-section-alt:   #f0f8f4;
    --c-footer-bg:     #0d1b2e;
    --c-footer-bar:    #060e1c;
    --c-service-icon:  #284d92;
    --c-link:          #284d92;
    --c-border:        #d6e8f5;
    --c-tag-bg:        #dff0eb;
    --c-tag-text:      #007d42;
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #1a1a1a;
    background: #ffffff;
}

a { color: var(--c-link); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }

img { max-width: 100%; height: auto; }

/* ── TOPBAR ───────────────────────────────────────────────── */
.topbar {
    background: var(--c-topbar-bg);
    color: var(--c-topbar-text);
    font-size: 12.5px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar a {
    color: var(--c-topbar-text);
    transition: color .2s;
}
.topbar a:hover { color: #fff; }
.topbar .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(255,255,255,.08);
    transition: background .2s;
    font-size: 13px;
}
.topbar .social-link:hover { background: rgba(255,255,255,.2); }

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar-site {
    background: var(--c-nav-bg);
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

/* Área do logo — fundo branco para o SVG aparecer */
.navbar-site .navbar-brand {
    background: #ffffff;
    padding: 8px 20px 8px 14px;
    margin: 0;
    display: flex;
    align-items: center;
    /* Borda direita diagonal (efeito skew) */
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
    padding-right: 34px;
    /* Altura total da navbar */
    align-self: stretch;
    border-right: none;
}
.navbar-site .navbar-brand:hover { background: #f5f5f5; }

.navbar-site .brand-sigla {
    font-size: 22px;
    font-weight: 800;
    color: var(--c-primary);
    letter-spacing: 1px;
}
.navbar-site .brand-name {
    font-size: 10px;
    color: var(--c-primary-light);
    font-weight: 400;
    letter-spacing: .3px;
    text-transform: uppercase;
}

/* Links do menu — branco sobre verde */
.navbar-site .nav-link {
    color: rgba(255,255,255,.92) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 20px 14px !important;
    transition: color .2s, background .2s;
    position: relative;
}
.navbar-site .nav-link:hover,
.navbar-site .nav-link.active {
    color: #FFF200 !important;
    background: rgba(255,255,255,.08);
}
.navbar-site .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 14px; right: 14px;
    height: 3px;
    background: #FFF200;
    border-radius: 3px 3px 0 0;
}
/* Seta dos dropdowns — branca */
.navbar-site .nav-link.dropdown-toggle::after {
    border-top-color: rgba(255,255,255,.7);
}
.navbar-site .dropdown-menu {
    border: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    padding: 8px 0;
    min-width: 220px;
    margin-top: 0;
}
.navbar-site .dropdown-item {
    font-size: 14px;
    padding: 8px 20px;
    color: #2d2d2d;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .15s, color .15s;
}
.navbar-site .dropdown-item:hover {
    background: var(--c-tag-bg);
    color: var(--c-primary);
}
.navbar-site .dropdown-item i {
    font-size: 15px;
    width: 18px;
    text-align: center;
    color: var(--c-primary-light);
}
.navbar-site .btn-acesso {
    background: var(--c-accent);
    color: var(--c-btn-cta-text);
    border: none;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 5px;
    border-bottom: 3px solid var(--c-accent-dark);
    transition: background .2s, transform .15s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.navbar-site .btn-acesso:hover {
    background: var(--c-accent-dark);
    color: var(--c-btn-cta-text);
    transform: translateY(-1px);
    text-decoration: none;
}
.navbar-site .navbar-toggler {
    border: 1px solid rgba(255,255,255,.3);
    padding: 6px 10px;
}
.navbar-site .navbar-toggler-icon { filter: invert(1); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--c-hero-from) 0%, var(--c-hero-to) 100%);
    color: #fff;
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--c-accent-light);
    margin-bottom: 14px;
    display: block;
}
.hero h1 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    color: #fff;
}
.hero p.lead {
    font-size: 17px;
    color: rgba(255,255,255,.8);
    max-width: 540px;
    margin-bottom: 32px;
}
.btn-hero-primary {
    background: var(--c-accent);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 6px;
    border-bottom: 3px solid var(--c-accent-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, transform .15s;
}
.btn-hero-primary:hover {
    background: var(--c-accent-dark);
    color: #fff;
    transform: translateY(-2px);
}
.btn-hero-secondary {
    background: rgba(255,255,255,.12);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.3);
    border-bottom: 3px solid rgba(255,255,255,.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,.22);
    color: #fff;
}
.hero-img-placeholder {
    background: rgba(255,255,255,.08);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.15);
    padding: 40px;
    text-align: center;
    color: rgba(255,255,255,.4);
    font-size: 100px;
}

/* ── SERVIÇOS (grid) ──────────────────────────────────────── */
.services-grid {
    padding: 60px 0;
    background: #fff;
}
.service-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 28px 22px;
    text-align: center;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    height: 100%;
    cursor: default;
}
.service-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
    transform: translateY(-4px);
    border-color: var(--c-primary-light);
}
.service-card .service-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: var(--c-tag-bg);
    color: var(--c-service-icon);
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: background .2s;
}
.service-card:hover .service-icon {
    background: var(--c-primary);
    color: #fff;
}
.service-card h6 {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.service-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* ── SEÇÃO GENÉRICA ───────────────────────────────────────── */
.section { padding: 60px 0; }
.section-alt { background: var(--c-section-alt); }
.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--c-primary);
    margin-bottom: 4px;
}
.section-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 32px;
}
.section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .15s;
}
.section-link:hover { gap: 8px; color: var(--c-primary-dark); }

/* ── CARDS DE NOTÍCIA ─────────────────────────────────────── */
.news-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
    transform: translateY(-3px);
}
.news-card .news-img {
    height: 180px;
    background: var(--c-tag-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary-light);
    font-size: 48px;
    overflow: hidden;
}
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.news-card .news-tag {
    display: inline-block;
    background: var(--c-tag-bg);
    color: var(--c-tag-text);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.news-card h6 {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 8px;
    flex: 1;
}
.news-card .news-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* ── BANNER FULL WIDTH ────────────────────────────────────── */
.banner-full {
    background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
    color: #fff;
    padding: 44px 0;
    position: relative;
    overflow: hidden;
}
.banner-full::after {
    content: '';
    position: absolute;
    right: -40px; top: -40px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.banner-full h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.banner-full p  { font-size: 15px; color: rgba(255,255,255,.75); margin: 0; }
.btn-banner {
    background: var(--c-accent);
    color: #fff;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 6px;
    border-bottom: 3px solid var(--c-accent-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background .2s;
}
.btn-banner:hover { background: var(--c-accent-dark); color: #fff; }

/* ── CARDS DE VAGA ────────────────────────────────────────── */
.job-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow .2s, border-color .2s;
}
.job-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    border-color: var(--c-primary-light);
}
.job-card .job-icon {
    width: 46px; height: 46px;
    border-radius: 10px;
    background: var(--c-tag-bg);
    color: var(--c-service-icon);
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.job-card h6 { font-size: 14px; font-weight: 700; margin: 0 0 3px; }
.job-card .job-company { font-size: 13px; color: #666; margin: 0; }
.job-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--c-tag-bg);
    color: var(--c-tag-text);
    white-space: nowrap;
}

/* ── CARDS DE EVENTO ──────────────────────────────────────── */
.event-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    transition: box-shadow .2s;
}
.event-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.event-card .event-date {
    background: var(--c-primary);
    color: #fff;
    min-width: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    text-align: center;
    flex-shrink: 0;
}
.event-card .event-date .day { font-size: 26px; font-weight: 800; line-height: 1; }
.event-card .event-date .mon { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: .8; }
.event-card .event-body { padding: 14px 16px; }
.event-card h6 { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.event-card .event-local { font-size: 12px; color: #888; }

/* ── PARCEIROS (logos) ────────────────────────────────────── */
.partners { background: var(--c-section-alt); padding: 44px 0; }
.partner-logo {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    filter: grayscale(1) opacity(.6);
    transition: filter .2s;
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    text-align: center;
}
.partner-logo:hover { filter: grayscale(0) opacity(1); }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
    background: var(--c-footer-bg);
    color: rgba(255,255,255,.65);
    padding: 56px 0 0;
    font-size: 14px;
}
.site-footer .footer-brand-sigla {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}
.site-footer .footer-brand-name {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 2px;
}
.site-footer p { color: rgba(255,255,255,.55); font-size: 13px; }
.site-footer h6 {
    color: rgba(255,255,255,.9);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer a { color: rgba(255,255,255,.55); font-size: 13px; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; }
.site-footer ul li a::before { content: '→ '; opacity: .4; font-size: 11px; }
.site-footer .footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.site-footer .footer-contact li i {
    color: var(--c-accent-light);
    font-size: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}
.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.65);
    font-size: 15px;
    margin-right: 6px;
    transition: background .2s, color .2s;
}
.site-footer .footer-social a:hover {
    background: var(--c-accent);
    color: #fff;
}
.footer-bar {
    background: var(--c-footer-bar);
    padding: 14px 0;
    margin-top: 44px;
    font-size: 12px;
    color: rgba(255,255,255,.35);
    text-align: center;
}
.footer-bar a { color: rgba(255,255,255,.45); }
.footer-bar a:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════════
   ADMIN — NOVO LAYOUT (sidebar fixa + conteúdo)
══════════════════════════════════════════════════════════════ */

/* Layout raiz */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f0f2f7;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.admin-sidebar-new {
    width: 260px;
    flex-shrink: 0;
    background: #0b4f28;          /* verde escuro ACIMA */
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 1040;
    overflow: hidden;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
}

/* Logo */
.sidebar-logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}
.sidebar-logo a {
    display: flex;
    align-items: center;
}
.sidebar-logo img {
    height: 38px;
    width: auto;
    display: block;
    /* logo escuro-sobre-escuro: colocar fundo branco arredondado */
    background: #fff;
    border-radius: 6px;
    padding: 4px 8px;
}
.sidebar-logo-sub {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.4);
    margin-top: 8px;
}

/* Nav container */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.15);
    border-radius: 4px;
}

/* Item de nível 1 */
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    transition: background .15s, color .15s;
    position: relative;
    border-left: 3px solid transparent;
}
.sidebar-item i {
    font-size: 16px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.sidebar-item:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
    text-decoration: none;
}
.sidebar-item.active {
    background: rgba(255,242,0,.12);
    color: #FFF200;
    border-left-color: #FFF200;
    font-weight: 600;
}
.sidebar-item.active i { color: #FFF200; }
.sidebar-item-muted {
    color: rgba(255,255,255,.45);
    font-size: 13px;
}
.sidebar-item-muted:hover { color: rgba(255,255,255,.75); }

/* Grupo colapsável */
.sidebar-group { margin: 2px 0; }

.sidebar-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 9px 20px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: rgba(255,255,255,.75);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s;
    text-align: left;
}
.sidebar-group-toggle:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}
.sidebar-group-toggle.open {
    background: rgba(255,255,255,.06);
    color: #fff;
    border-left-color: rgba(255,255,255,.25);
}
.sidebar-group-toggle i { font-size: 16px; }

/* Chevron rotativo */
.sidebar-chevron {
    font-size: 12px !important;
    opacity: .6;
    transition: transform .22s ease;
}
.sidebar-group-toggle.open .sidebar-chevron {
    transform: rotate(180deg);
    opacity: .9;
}

/* Body do grupo (subitens) */
.sidebar-group-body {
    display: none;
    background: rgba(0,0,0,.15);
    padding: 4px 0;
}
.sidebar-group-body.show { display: block; }

/* Subitem */
.sidebar-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 20px 7px 44px;
    font-size: 13px;
    color: rgba(255,255,255,.62);
    text-decoration: none;
    transition: background .15s, color .15s;
    border-left: 3px solid transparent;
    position: relative;
}
.sidebar-subitem i {
    font-size: 14px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    opacity: .75;
}
.sidebar-subitem:hover {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.9);
    text-decoration: none;
}
.sidebar-subitem.active {
    background: rgba(255,242,0,.1);
    color: #FFF200;
    border-left-color: #FFF200;
    font-weight: 600;
}
.sidebar-subitem.active i { opacity: 1; color: #FFF200; }

/* Badge (ex: nº cobranças pendentes) */
.sidebar-badge {
    margin-left: auto;
    background: #e65100;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
    line-height: 1.5;
}

/* Divisor */
.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin: 10px 16px;
}

/* Footer do sidebar (usuário + logout) */
.sidebar-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 14px 16px;
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,.2);
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-role {
    font-size: 11px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.sidebar-logout {
    background: transparent;
    border: none;
    color: rgba(255,255,255,.45);
    font-size: 18px;
    padding: 4px;
    cursor: pointer;
    transition: color .15s;
    display: flex;
    align-items: center;
}
.sidebar-logout:hover { color: #ff6b6b; }

/* Overlay para mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1039;
}
.sidebar-overlay.show { display: block; }

/* ── MAIN CONTENT ─────────────────────────────────────────── */
.admin-main {
    flex: 1;
    margin-left: 260px;    /* espaço para sidebar fixa */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

/* Topbar */
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e5e9f0;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    flex-shrink: 0;
}
.admin-sidebar-toggle {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #555;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 6px;
    display: none;        /* visível só mobile */
    line-height: 1;
    transition: background .15s;
}
.admin-sidebar-toggle:hover { background: #f0f2f7; color: #222; }

.admin-topbar-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.admin-topbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #666;
    font-size: 17px;
    transition: background .15s, color .15s;
    text-decoration: none;
    position: relative;
}
.admin-topbar-btn:hover { background: #f0f2f7; color: var(--c-primary); }

.admin-notif-dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #e65100;
    border: 2px solid #fff;
}

.admin-topbar-user {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px;
    border-radius: 8px;
    color: #333;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
}
.admin-topbar-user:hover { background: #f0f2f7; color: #111; text-decoration: none; }

.admin-user-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Área de conteúdo das páginas */
.admin-content {
    flex: 1;
    padding: 28px 32px;
    background: #f0f2f7;
}

/* ── ADMIN — KPI CARDS ────────────────────────────────────── */
.kpi-card {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--c-primary);
}
.kpi-card.accent  { border-left-color: var(--c-accent); }
.kpi-card.success { border-left-color: #2e7d32; }
.kpi-card.warning { border-left-color: #e65100; }
.kpi-value { font-size: 28px; font-weight: 800; color: var(--c-primary); line-height: 1; }
.kpi-card.accent  .kpi-value { color: var(--c-accent); }
.kpi-card.success .kpi-value { color: #2e7d32; }
.kpi-card.warning .kpi-value { color: #e65100; }
.kpi-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #999;
    margin-top: 4px;
}
.kpi-icon {
    position: absolute;
    right: 16px; bottom: 10px;
    font-size: 42px;
    opacity: .07;
    color: #000;
}

/* ── ADMIN — TABELA ───────────────────────────────────────── */
.table thead th {
    background: var(--c-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    border: none;
    padding: 11px 14px;
}
.table tbody td { font-size: 13.5px; vertical-align: middle; }
.table tbody tr:hover td { background: #f8f9ff; }

/* ── ADMIN — TOGGLE MÓDULO ────────────────────────────────── */
.module-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    margin-bottom: 8px;
}
.module-toggle .module-info { display: flex; align-items: center; gap: 12px; }
.module-toggle .module-icon { font-size: 20px; color: var(--c-primary-light); width: 26px; text-align: center; }
.module-toggle h6 { margin: 0; font-size: 14px; font-weight: 600; }
.module-toggle small { font-size: 12px; color: #999; }

/* ── FORM CONTROL ─────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
    border-color: var(--c-primary-light);
    box-shadow: 0 0 0 3px rgba(30,80,160,.12);
}
.form-label { font-size: 13px; font-weight: 600; color: #333; }

/* ── ALERTS ───────────────────────────────────────────────── */
.alert { border-radius: 8px; border-left-width: 4px; font-size: 14px; }
.alert-success { border-left-color: #2e7d32; }
.alert-danger  { border-left-color: #c62828; }
.alert-warning { border-left-color: #e65100; }
.alert-info    { border-left-color: var(--c-primary); }

/* ── MISC ─────────────────────────────────────────────────── */
.page-header {
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e9f0;
    margin-bottom: 24px;
}
.page-header h1 { font-size: 22px; font-weight: 800; color: var(--c-primary); margin: 0; }
.page-header p  { font-size: 13px; color: #888; margin: 4px 0 0; }
.badge-ativo        { background: #e8f5e9; color: #2e7d32; font-weight: 600; }
.badge-inadimplente { background: #fff3e0; color: #e65100; font-weight: 600; }
.badge-suspenso     { background: #fce4ec; color: #880e4f; font-weight: 600; }
.badge-cancelado    { background: #eceff1; color: #546e7a; font-weight: 600; }
.divider { border: none; border-top: 1px solid #e5e9f0; margin: 28px 0; }

/* ══════════════════════════════════════════════════════════════
   AUTH — Tela de Login
══════════════════════════════════════════════════════════════ */
.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 50%, var(--c-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
}
.auth-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.auth-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}
.auth-header img {
    height: 52px;
    width: auto;
    margin-bottom: 20px;
    display: inline-block;
}
.auth-header h1 {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.auth-header p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.auth-input-group .input-group-text {
    background: #f8f9fc;
    border-color: #dde2ed;
    color: #999;
    font-size: 15px;
}
.auth-input-group .form-control {
    border-color: #dde2ed;
    font-size: 14px;
}
.auth-input-group .form-control:focus {
    border-color: var(--c-primary-light);
    box-shadow: 0 0 0 3px rgba(18,114,58,.12);
}
.auth-eye {
    background: #f8f9fc;
    border-color: #dde2ed;
    cursor: pointer;
    color: #999;
    transition: color .15s;
}
.auth-eye:hover { color: var(--c-primary); }

.auth-forgot {
    font-size: 12px;
    color: var(--c-primary);
    font-weight: 500;
    text-decoration: none;
}
.auth-forgot:hover { color: var(--c-primary-dark); text-decoration: underline; }

.auth-remember {
    font-size: 13px;
    color: #555;
}

.auth-btn {
    background: var(--c-primary);
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    padding: 11px;
    border-radius: 8px;
    border: none;
    border-bottom: 3px solid var(--c-primary-dark);
    transition: background .2s, transform .15s;
}
.auth-btn:hover {
    background: var(--c-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}
.auth-btn:disabled {
    opacity: .7;
    transform: none;
    cursor: not-allowed;
}

.auth-back {
    text-align: center;
    font-size: 13px;
}
.auth-back a {
    color: #999;
    transition: color .15s;
}
.auth-back a:hover { color: var(--c-primary); }

/* ── ADMIN — SHOW (visualização) ─────────────────────────── */
.show-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #aaa;
    margin-bottom: 3px;
}
.show-value {
    font-size: 14px;
    color: #1a1a1a;
    word-break: break-word;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .navbar-site .nav-link { padding: 12px 16px !important; }
    .navbar-site .nav-link.active::after { display: none; }
    .hero { padding: 50px 0 40px; }

    /* Admin sidebar: oculta por padrão, desliza pelo overlay */
    .admin-sidebar-new {
        transform: translateX(-100%);
    }
    .admin-sidebar-new.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-sidebar-toggle {
        display: inline-flex;
    }
    .admin-content {
        padding: 18px 16px;
    }
}
@media (max-width: 575.98px) {
    .hero h1 { font-size: 26px; }
    .section-title { font-size: 20px; }
    .admin-topbar { padding: 0 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   SITE PÚBLICO — layout.public
═══════════════════════════════════════════════════════════════ */

/* ── Topbar superior ──────────────────────────────────────── */
.public-topbar {
    background: var(--c-primary-dark);
    color: var(--c-topbar-text);
    padding: 6px 0;
    font-size: 13px;
}
.public-topbar-link {
    color: rgba(255,255,255,.65);
    font-size: 16px;
    text-decoration: none;
    transition: color .2s;
}
.public-topbar-link:hover { color: #fff; }
.public-topbar-portal {
    background: var(--c-accent);
    color: var(--c-primary-dark) !important;
    border: none;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
}
.public-topbar-portal:hover { background: var(--c-accent-dark); }

/* ── Navbar ───────────────────────────────────────────────── */
.public-navbar {
    background: #fff;
    border-bottom: 2px solid var(--c-border);
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.public-navbar .navbar-brand { font-weight: 800; color: var(--c-primary); }
.public-logo { height: 48px; width: auto; }
.public-navbar .nav-link {
    color: #333;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: var(--c-primary);
    background: var(--c-tag-bg);
}

/* ── Hero ─────────────────────────────────────────────────── */
.public-hero {
    background: linear-gradient(135deg, var(--c-hero-from) 0%, var(--c-hero-to) 100%);
    padding: 72px 0 64px;
    color: #fff;
}
.public-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.public-hero-title {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
}
.public-hero-title span { color: var(--c-accent); }
.public-hero-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,.82);
    margin-bottom: 32px;
    line-height: 1.6;
}
.public-hero-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    max-width: 320px;
    width: 100%;
}

/* ── Cards de Serviços ────────────────────────────────────── */
.public-service-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    height: 100%;
}
.public-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
    border-color: var(--c-primary);
}
.public-service-icon {
    width: 64px;
    height: 64px;
    background: var(--c-tag-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
    color: var(--c-primary);
    transition: background .2s;
}
.public-service-card:hover .public-service-icon { background: var(--c-primary); color: #fff; }
.public-service-title { font-weight: 700; font-size: 15px; color: #1a1a1a; margin-bottom: 8px; }
.public-service-desc { font-size: 13px; color: #777; margin: 0; }

/* ── Cards de Notícias ────────────────────────────────────── */
.public-news-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    color: inherit;
    height: 100%;
}
.public-news-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.13); transform: translateY(-3px); }

/* ── Cards de Vagas ───────────────────────────────────────── */
.public-job-card { color: inherit; }
.public-job-card .card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1) !important; transform: translateY(-2px); }

/* ── CTA Section ──────────────────────────────────────────── */
.public-cta {
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
}

/* ── Rodapé ───────────────────────────────────────────────── */
.public-footer {
    background: var(--c-footer-bg);
    padding: 60px 0 0;
    color: rgba(255,255,255,.75);
}
.public-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    color: rgba(255,255,255,.75);
    font-size: 18px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.public-footer-social:hover { background: var(--c-primary); color: #fff; }

/* ── Responsividade ───────────────────────────────────────── */
@media (max-width: 991.98px) {
    .public-hero { padding: 48px 0; }
    .public-hero-title { font-size: 32px; }
}
@media (max-width: 575.98px) {
    .public-hero-title { font-size: 26px; }
    .public-topbar .d-flex { flex-wrap: wrap; gap: 6px; }
}
