/* UP Editais — Interface modernizada · v1.2.0
   A camada visual respeita a identidade azul-petróleo do tema original.
   Os estilos de widgets do AdSense seguem livres de recortes e máscaras. */
:root {
    --up-navy: #0b2b40;
    --up-deep: #0f3b4f;
    --up-primary: #1f6e8c;
    --up-primary-hover: #10556f;
    --up-bright: #1689b0;
    --up-sky: #55c9ef;
    --up-tint: #eaf6fc;
    --up-ink: #193244;
    --up-muted: #63798a;
    --up-border: #dfeaf1;
    --up-surface: #ffffff;
    --up-shadow: 0 12px 35px rgba(11, 43, 64, .075);
}
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--up-ink);
    background: linear-gradient(180deg, #f4f9ff 0, #f9fcff 600px, #f4f9ff 100%);
    line-height: 1.65;
    overflow-x: clip !important;
}
a, button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid #55c9ef;
    outline-offset: 3px;
}
::selection { background: #b6e8f8; color: #073b4f; }
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.screen-reader-text:focus {
    position: absolute !important;
    width: auto !important; height: auto !important;
    padding: 12px 16px !important;
    margin: 4px !important;
    clip: auto !important;
    z-index: 100000;
    background: #fff; color: var(--up-navy);
}

/* BARRA DE SERVIÇOS E CABEÇALHO */
.top-bar {
    background: linear-gradient(110deg, #08283d, #0b3b53 72%, #105470);
    border-bottom: 1px solid rgba(255,255,255,.09);
    padding: 8px 0;
    font-size: .79rem;
    text-align: left;
}
.top-bar-container {
    width: 100%;
    max-width: 1400px;
    padding: 0 24px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.top-bar-text { font-size: .79rem; color: #d9eaf5; font-weight: 600; letter-spacing: .005em; }
.top-bar-text i { margin-right: 9px; color: #6ed3f5; }
.top-bar-search { flex: none; }
.top-bar-search form {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.17);
    background: rgba(255,255,255,.10);
    border-radius: 12px;
    padding: 3px 4px 3px 12px;
    transition: border-color .2s, background .2s;
}
.top-bar-search form:focus-within { border-color: #78d3ee; background: rgba(255,255,255,.15); }
.top-bar-search input {
    width: 220px;
    min-width: 0;
    color: #fff;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: .81rem;
    padding: 7px 4px;
    outline: none;
}
.top-bar-search input::placeholder { color: #c1d4e1; opacity: 1; }
.top-bar-search input::-webkit-search-cancel-button { filter: invert(1); }
.top-bar-search button {
    border: 0;
    color: #fff;
    background: #1b80a5;
    width: 33px;
    height: 32px;
    border-radius: 9px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s;
}
.top-bar-search button:hover { background: #0e637f; }
.header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid rgba(11,59,79,.10);
    box-shadow: 0 6px 24px rgba(11, 43, 64, .055);
}
.header-container {
    width: 100%;
    max-width: 1400px;
    padding: 13px 24px;
    min-height: 91px;
    margin: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo-area { flex: 0 1 auto; min-width: 0; }
.logo-area h1 { font-size: clamp(1.55rem, 2vw, 1.95rem); line-height: 1.2; }
.logo-area span { font-size: .73rem; margin-top: 3px; }
.logo-area .custom-logo-link { display: inline-flex; align-items: center; }
.logo-area img, .logo-area .custom-logo {
    max-width: min(100%, 330px);
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.header-navigation { flex: 0 1 auto; min-width: 0; }
.main-menu { align-items: center; gap: 4px !important; }
.main-menu > li { position: relative; }
.main-menu > li > a {
    display: inline-flex;
    align-items: center;
    border-radius: 11px;
    color: #263e4d;
    font-size: .87rem;
    font-weight: 700;
    padding: 12px 13px;
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s, background .2s;
}
.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a,
.main-menu > li.current-menu-ancestor > a,
.main-menu > li > a:focus-visible {
    color: #11688b;
    background: #eaf6fc;
}
.main-menu .menu-item-has-children > a:after { color: #3888a6; font-size: 9px; }
.main-menu .sub-menu, .main-menu .submenu {
    border: 1px solid #e0edf3;
    box-shadow: 0 18px 45px rgba(11, 43, 64, .15);
    border-radius: 14px;
    padding: 7px !important;
    min-width: 220px;
}
.main-menu .sub-menu li a, .main-menu .submenu li a {
    border-radius: 8px;
    padding: 10px 12px !important;
    white-space: normal;
    font-size: .85rem;
}
.main-menu .sub-menu li a:hover, .main-menu .submenu li a:hover { background: #eaf6fc; }
.menu-toggle {
    display: none;
    background: var(--up-primary);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 11px;
    color: #fff;
    padding: 10px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: .83rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(31,110,140,.15);
}
.menu-toggle:hover { background: #0b4f67; }
.menu-toggle i { margin-right: 7px; }

/* ESTRUTURA E BANNER: sem deformar imagens publicitárias */
.main-grid {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    gap: 30px;
    align-items: flex-start;
}
.content-area { flex: 1 1 0%; min-width: 0; }
.sidebar-ads { flex: 0 0 290px; width: 290px; max-width: 290px; top: 114px; }
.sidebar-ads .ad-placeholder {
    padding: 28px 16px !important;
    border: 1px dashed #bad7e5 !important;
    border-radius: 18px !important;
    color: #357392;
    background: #f1f8fc !important;
}
.sidebar-ads .ad-placeholder i { color: #218eb0; }
.banner-area {
    display: block;
    min-height: 0;
    cursor: default;
    padding: 0;
    margin: 28px 0 3px;
    border: 1px solid #ddebf3;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(11,43,64,.07);
}
.banner-area a { display: block; }
.banner-area img { display: block; width: 100% !important; max-width: 100%; height: auto; border-radius: 0 !important; }

/* HERO EDITORIAL DA CAPA */
.home-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(255px, .82fr);
    align-items: center;
    gap: 29px;
    min-height: 350px;
    margin-top: 30px;
    padding: clamp(26px, 3.35vw, 46px);
    background: linear-gradient(121deg, #092b43 0%, #10516d 61%, #116e8c 100%);
    color: #fff;
    border: 1px solid rgba(77,182,214,.4);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 19px 46px rgba(8, 48, 71, .18);
}
.home-hero:before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 430px; height: 430px;
    right: -95px; top: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(114,220,251,.20), transparent 68%);
}
.home-hero:after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 320px; height: 320px;
    left: -190px; bottom: -200px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(255,255,255,.018), 0 0 0 80px rgba(255,255,255,.016);
}
.home-hero__content { min-width: 0; }
.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.115);
    border: 1px solid rgba(255,255,255,.19);
    color: #b7eafa;
    padding: 7px 11px;
    border-radius: 100px;
    font-weight: 800;
    font-size: .65rem;
    line-height: 1.3;
    letter-spacing: .11em;
}
.home-hero__eyebrow i { font-size: .74rem; color: #6cddf8; }
.home-hero h1 {
    max-width: 650px;
    margin: 16px 0 12px;
    color: #fff;
    font-size: clamp(1.7rem, 2.5vw, 2.8rem);
    line-height: 1.21;
    letter-spacing: -.045em;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}
.home-hero h1 span { color: #79ddf4; }
.home-hero__content > p {
    margin-bottom: 19px;
    max-width: 550px;
    font-size: .91rem;
    line-height: 1.75;
    color: #d2e8f2;
}
.home-hero__search {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 630px;
    min-height: 53px;
    gap: 11px;
    padding: 5px 5px 5px 17px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.home-hero__search > i { color: var(--up-primary); }
.home-hero__search input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: .84rem;
    color: #173a4d;
}
.home-hero__search input::placeholder { color: #7b919e; }
.home-hero__search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: none;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    background: #197fa1;
    color: #fff;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: .79rem;
    font-weight: 700;
    transition: background .2s, transform .2s;
}
.home-hero__search button:hover { background: #0a566f; transform: translateY(-1px); }
.home-hero__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.home-hero__links span { color: #bad8e6; font-size: .73rem; font-weight: 700; margin-right: 1px; }
.home-hero__links a {
    color: #e3f6fc;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 99px;
    padding: 5px 9px;
    text-decoration: none;
    font-size: .7rem;
    font-weight: 700;
    transition: background .2s;
}
.home-hero__links a:hover { background: rgba(255,255,255,.21); }
.home-hero__links a i { font-size: .6rem; margin-left: 4px; }
.home-hero__aside {
    padding: 24px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 19px;
    background: linear-gradient(150deg, rgba(255,255,255,.14), rgba(255,255,255,.055));
    box-shadow: 0 12px 28px rgba(0,0,0,.07);
}
.home-hero__aside-icon {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    margin-bottom: 17px;
    border-radius: 12px;
    background: rgba(255,255,255,.19);
    color: #abedff;
    font-size: 1.17rem;
}
.home-hero__aside-kicker {
    color: #a9deee;
    font-family: 'Poppins', sans-serif;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.home-hero__aside h2 { font-family: 'Poppins', sans-serif; font-size: 1.22rem; line-height: 1.35; margin: 6px 0 18px; color: #fff; }
.home-hero__step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .75rem;
    line-height: 1.45;
    color: #e6f4fa;
}
.home-hero__step > span {
    flex: 0 0 27px;
    display: grid;
    place-items: center;
    width: 27px; height: 27px;
    color: #a6ebfc;
    border-radius: 8px;
    background: rgba(110,207,238,.15);
    font-size: .75rem;
}

/* TÍTULOS EDITORIAIS E LISTAGENS */
.editais-recentes { margin-top: 26px; }
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin: 31px 0 21px;
}
.section-heading__eyebrow, .page-heading__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: .68rem;
    font-weight: 800;
    color: #1b779b;
    letter-spacing: .11em;
}
.section-heading__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #17a5d4; box-shadow: 0 0 0 4px #d8eff8; }
.section-heading h2, .editais-recentes .section-heading h2 {
    color: #10364b;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.3;
    margin: 7px 0 5px;
}
.section-heading__accent { color: #1882a5; }
.section-heading p { color: var(--up-muted); font-size: .85rem; }
.section-heading__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: none;
    border: 1px solid #cce1ec;
    padding: 10px 14px;
    border-radius: 10px;
    color: #176a8a;
    background: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .78rem;
    transition: background .2s, border-color .2s;
}
.section-heading__action:hover { background: #eaf6fc; border-color: #8bc6dc; }
.page-heading {
    position: relative;
    margin: 30px 0 22px;
    padding: 24px 27px 24px 29px;
    background: #fff;
    border: 1px solid var(--up-border);
    border-left: 4px solid #1a8bae;
    border-radius: 16px;
    box-shadow: 0 6px 23px rgba(11,43,64,.04);
}
.page-heading h1, .page-heading .archive-title, .page-heading .category-title {
    margin: 5px 0 7px;
    color: #11384c;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.35rem, 2.3vw, 1.85rem);
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}
.page-heading h1 i { color: #1882a5; margin-right: 7px; }
.page-heading p, .category-description { margin: 0; color: var(--up-muted); font-size: .87rem; line-height: 1.7; }
.page-heading .category-description p { margin-bottom: 0; }
.editais-grid {
    margin: 0 0 27px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 272px), 1fr));
    align-items: stretch;
    gap: 20px;
}
.card-edital {
    height: 100%;
    border: 1px solid #e1ecf2;
    border-radius: 17px;
    box-shadow: var(--up-shadow);
    background: #fff;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.card-edital:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(11,43,64,.13);
    border-color: #abd5e5;
}
.poster-edital {
    height: 196px;
    flex: 0 0 196px;
    padding: 12px;
    border-bottom: 1px solid #e7edf2;
    background: linear-gradient(160deg, #eff7fc, #f7fbfe);
}
.poster-edital img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.poster-edital.placeholder i { color: #72acc4 !important; }
.card-edital__body { padding: 18px 18px 19px; }
.card-edital__eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.card-edital__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid #cfe8f4;
    border-radius: 7px;
    background: #e9f6fb;
    color: #176a87;
    font-family: 'Poppins', sans-serif;
    font-size: .64rem;
    line-height: 1.35;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.card-edital__tag i { color: #1696bc; }
.card-edital__title, .card-edital h3 {
    min-height: 4em;
    margin-bottom: 12px;
    color: #153b4d;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(.99rem, 1.05vw, 1.1rem);
    line-height: 1.45;
    font-weight: 750;
    letter-spacing: -.017em;
    overflow-wrap: anywhere;
}
.card-edital__title a:hover { color: #10739a; }
.info-edital {
    border-top: 1px solid #edf2f6;
    border-bottom: 1px solid #edf2f6;
    background: #fcfdff;
    padding: 10px 0;
    margin-bottom: 12px;
    gap: 6px;
    color: #62798a;
    font-size: .78rem;
}
.info-edital p { gap: 7px; }
.info-edital strong { font-weight: 700; color: #38566a; }
.info-edital i { color: #1689b0; }
.card-edital__excerpt { color: #617385; font-size: .83rem; line-height: 1.7; min-height: 4.9em; margin-bottom: 19px; }
.btn-edital, .btn-edital-grande {
    border: 1px solid transparent;
    border-radius: 10px;
    min-height: 43px;
    background: linear-gradient(135deg, #2183a4, #126582);
    box-shadow: 0 5px 12px rgba(24,111,146,.12);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: .80rem;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-edital:hover, .btn-edital-grande:hover {
    background: linear-gradient(135deg, #166d8c, #0b4a64);
    box-shadow: 0 9px 20px rgba(24,111,146,.23);
    transform: translateY(-1px);
}
.btn-edital i { margin-left: 3px; }
.btn-ver-todos, .section-heading__action { white-space: normal; }
.btn-ver-todos { border-radius: 12px; padding: 11px 20px; }

/* PAGINAÇÃO DE BUSCA, ARQUIVO E SHORTCODE */
.pagination, .paginacao, .paginacao-portal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 25px auto 32px;
}
.pagination .nav-links, .paginacao .nav-links, .paginacao-portal .nav-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; }
.pagination .page-numbers, .paginacao .page-numbers, .paginacao-portal .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 39px;
    min-height: 39px;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid #dce9f0;
    background: #fff;
    color: #20526c;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
    transition: background .2s, border-color .2s;
}
.pagination .page-numbers.current, .paginacao .page-numbers.current, .paginacao-portal .page-numbers.current {
    color: #fff;
    border-color: #126582;
    background: #197b9e;
}
.pagination a.page-numbers:hover, .paginacao a.page-numbers:hover, .paginacao-portal a.page-numbers:hover {
    background: #eaf6fc;
    border-color: #9bcddd;
}

/* LEITURA DOS EDITAIS E PÁGINAS */
.single-edital {
    position: relative;
    margin: 30px 0;
    padding: clamp(22px, 3.2vw, 37px);
    background: #fff;
    border: 1px solid var(--up-border);
    border-radius: 19px;
    box-shadow: var(--up-shadow);
}
.single-edital__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    color: #6b8191;
    font-size: .78rem;
    font-weight: 600;
}
.single-edital__eyebrow span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    background: #e9f6fb;
    color: #126a8a;
    font-family: 'Poppins', sans-serif;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .06em;
}
.single-edital h1 {
    font-size: clamp(1.5rem, 2.8vw, 2.15rem);
    line-height: 1.36;
    letter-spacing: -.035em;
    color: #0f3449;
    margin-bottom: 22px;
}
.single-edital .inscricao-data-destaque {
    background: linear-gradient(105deg, #ecf8fc, #f7fcfe) !important;
    border: 1px solid #c5e5f2 !important;
    border-left: 4px solid #1d8bae !important;
    padding: 17px 20px !important;
    border-radius: 12px !important;
    margin: 18px 0 25px !important;
    box-shadow: none !important;
    align-items: center !important;
    gap: 12px 22px !important;
}
.single-edital .inscricao-data-destaque h3, .single-edital .inscricao-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: .9rem !important;
    font-weight: 800 !important;
    color: #14536d !important;
}
.single-edital .inscricao-data-destaque h3 i { color: #218cac; font-size: 1rem; margin-right: 6px; }
.single-edital .inscricao-data-destaque .data-texto { margin: 0; font-size: .86rem; line-height: 1.7; color: #365b6c; }
.edital-banner { border-radius: 13px; border: 1px solid #e5edf2; margin-bottom: 22px; }
.edital-banner img { display: block; width: 100%; height: auto; }
.edital-meta {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    border: 1px solid #e2eef5;
    background: #f5fafc;
    padding: 18px;
    gap: 13px;
    border-radius: 14px;
    margin: 24px 0;
}
.meta-info { gap: 9px; align-items: flex-start; font-size: .86rem; color: #3a596a; overflow-wrap: anywhere; }
.meta-info i { color: #1d87a9; margin-top: 2px; }
.meta-info strong { color: #173e51; }
.edital-link .btn-edital-grande { display: flex; margin: 20px auto; max-width: 330px; }
.edital-content { color: #2b4555; font-size: .96rem; line-height: 1.85; }
.edital-content p { line-height: 1.85; margin-bottom: 18px; }
.edital-content h2 { border-left-color: #2098be; border-left-width: 4px; font-size: 1.42rem; }
.edital-content h3 { color: #136c8e; }
.edital-content blockquote {
    border-left: 4px solid #28a0c2;
    background: #eef9fd;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 23px 0;
}
.edital-content img { border-radius: 9px; }
.edital-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 18px 0; }
.edital-content th, .edital-content td { border: 1px solid #e2edf2; padding: 10px 12px; }
.edital-content th { background: #eff8fc; color: #154d68; }
.edital-content :is(a, p, span) { overflow-wrap: anywhere; }
.edital-content a { display: inline !important; word-break: break-word !important; }
.edital-content .wp-block-button__link { display: inline-flex !important; color: #fff; border: none; }
/* Comentários: preservar o sistema, melhorar a legibilidade das ações. */
.comments-area { border-top-color: #e2edf2; }
.comment-reply-title { border-bottom-color: #2098be; }
.comment-form { border-color: #dfeef5; background: #f8fbfd; }
.comment-form input, .comment-form textarea { max-width: 100%; }
.comment-list .comment { border-color: #dfebf2 !important; }

/* RODAPÉ INSTITUCIONAL */
footer {
    margin-top: 62px;
    padding: 33px 24px 24px;
    background: linear-gradient(130deg, #082738 0%, #0d364b 65%, #0c3c51 100%);
    border-top: 3px solid #1b7da2;
    color: #d9e9f0;
}
.footer-container { width: 100%; max-width: 1400px; padding: 17px 0 8px; row-gap: 25px; column-gap: 20px; }
.footer-contact a, .footer-menu a, .footer-links a { font-size: .85rem; color: #d2e4ed; }
.footer-contact i { color: #7ad6f2; }
.footer-social { gap: 12px; }
.footer-social a {
    width: 40px;
    height: 40px;
    font-size: 1.24rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 11px;
    background: rgba(255,255,255,.07);
}
.footer-social a:hover { background: rgba(255,255,255,.15); }
.copyright { color: #a8c3d0; margin-top: 5px; padding-top: 20px; font-size: .78rem; }

@media (max-width: 1200px) {
    .top-bar-container, .header-container, .main-grid { padding-left: 20px; padding-right: 20px; }
    .header-container { gap: 10px; }
    .main-menu > li > a { padding: 10px 9px; font-size: .81rem; }
    .main-grid { gap: 24px; }
    .sidebar-ads { flex-basis: 260px; width: 260px; min-width: 0; max-width: 260px; }
    .home-hero { gap: 22px; padding: 27px; grid-template-columns: minmax(0,1.4fr) minmax(225px,.8fr); }
    .home-hero__aside { padding: 18px; }
}
@media (max-width: 1000px) {
    .main-grid { flex-direction: column; }
    .content-area { width: 100%; }
    .sidebar-ads { width: 100%; max-width: 100%; flex: 0 0 auto; position: static; }
    .header-container { flex-direction: column; align-items: stretch; }
    .logo-area { align-self: center; }
    .header-navigation { align-self: center; }
    .main-menu { flex-wrap: wrap; justify-content: center; }
    .home-hero { grid-template-columns: 1.35fr .8fr; }
}
@media (max-width: 768px) {
    html { scroll-padding-top: 15px; }
    .top-bar { padding: 10px 0; }
    .top-bar-container { flex-direction: column; gap: 9px; text-align: center; }
    .top-bar-text { font-size: .73rem; line-height: 1.5; }
    .top-bar-search { width: 100%; max-width: 550px; }
    .top-bar-search form { width: 100%; }
    .top-bar-search input { flex: 1; width: 100%; }
    .header-main { position: relative !important; }
    .header-container {
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        min-height: 74px;
        padding: 12px 16px !important;
    }
    .logo-area { flex: 1 1 auto !important; align-self: center; text-align: left !important; min-width: 0; }
    .logo-area img, .logo-area .custom-logo { max-width: min(100%, 240px); max-height: 59px; }
    .logo-area h1 { font-size: 1.30rem !important; }
    .logo-area span { font-size: .65rem !important; }
    .menu-toggle { display: inline-flex !important; align-items: center; margin-left: auto !important; padding: 10px 13px; }
    .header-navigation {
        width: 100% !important;
        flex-basis: 100%;
        order: 3 !important;
        margin: 4px 0 0 !important;
        align-self: stretch;
    }
    .main-menu {
        display: none !important;
        flex-direction: column !important;
        align-items: stretch;
        flex-wrap: nowrap;
        width: 100% !important;
        gap: 0 !important;
        padding: 7px !important;
        border: 1px solid #e0edf3;
        border-radius: 13px !important;
        box-shadow: 0 14px 24px rgba(11,43,64,.09) !important;
    }
    .main-menu.active { display: flex !important; }
    .main-menu > li { width: 100% !important; border-bottom: 1px solid #edf2f5 !important; text-align: left !important; }
    .main-menu > li:last-child { border: none !important; }
    .main-menu > li > a { display: flex !important; justify-content: flex-start !important; padding: 12px 11px !important; font-size: .89rem !important; white-space: normal; }
    .main-menu .sub-menu, .main-menu .submenu {
        position: static !important;
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: #f4f9fc !important;
        box-shadow: none !important;
        padding: 4px !important;
        margin: 0 0 7px !important;
    }
    .main-menu .sub-menu.active, .main-menu .submenu.active { display: block !important; }
    .main-menu .sub-menu li a, .main-menu .submenu li a {
        margin: 3px 4px !important;
        padding: 10px 14px !important;
        background: transparent !important;
        border-left: 2px solid #2186a5 !important;
        border-radius: 7px !important;
        font-size: .82rem !important;
        text-align: left !important;
    }
    .main-grid { padding: 0 15px; margin-top: 0 !important; gap: 20px; }
    .home-hero { margin-top: 18px; grid-template-columns: 1fr; padding: 26px; gap: 20px; }
    .home-hero__aside { display: none; }
    .home-hero h1 { font-size: clamp(1.65rem, 5.2vw, 2.4rem); }
    .home-hero__content > p { font-size: .88rem; }
    .banner-area { margin-top: 20px; border-radius: 14px; }
    .section-heading { margin: 25px 0 19px; align-items: flex-start; }
    .section-heading__action { padding: 9px 11px; font-size: .72rem; }
    .editais-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 15px !important; }
    .card-edital__body { padding: 16px !important; }
    .poster-edital { height: 180px; flex-basis: 180px; }
    .card-edital h3, .card-edital__title { min-height: 0 !important; font-size: 1.03rem !important; }
    .card-edital__excerpt { min-height: 0 !important; }
    .page-heading { margin-top: 20px; padding: 22px 20px; }
    .single-edital { padding: 23px !important; margin-top: 20px; }
    .single-edital h1 { font-size: clamp(1.4rem, 4.8vw, 1.9rem) !important; }
    footer { padding: 26px 18px; }
    .footer-container { gap: 20px !important; }
    .footer-social { justify-content: center; }
}
@media (max-width: 590px) {
    .home-hero { padding: 23px 19px; border-radius: 18px; }
    .home-hero__search { padding: 5px 5px 5px 12px; gap: 7px; }
    .home-hero__search input { font-size: .76rem; }
    .home-hero__search button { padding: 0 11px; font-size: .73rem; gap: 6px; }
    .home-hero__search button i { display: none; }
    .section-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
    .editais-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 17px !important; }
    .poster-edital { height: 210px; flex-basis: 210px; }
    .card-edital__body { padding: 19px !important; }
    .card-edital h3, .card-edital__title { font-size: 1.09rem !important; }
    .single-edital { padding: 19px 17px !important; }
    .single-edital .inscricao-data-destaque { padding: 14px !important; gap: 5px 12px !important; }
    .edital-meta { grid-template-columns: 1fr !important; }
    .comment-form { padding: 17px !important; }
    .children, ul.children { margin-left: 13px !important; padding-left: 10px !important; }
}
@media (max-width: 375px) {
    .home-hero__eyebrow { font-size: .57rem; }
    .home-hero__search button { font-size: .69rem; padding: 0 9px; }
    .top-bar-container { padding: 0 14px; }
    .logo-area h1 { font-size: 1.1rem !important; }
    .menu-toggle { padding: 9px 10px; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card-edital, .card-edital:hover, .btn-edital, .btn-edital:hover { transition: none; transform: none; }
}
