/* =========================
   HEADER
========================= */
.header.container-header.full-width {
    background: #1e3a5f !important;
    background-image: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header.container-header.full-width .mod-menu a {
    color: #ffffff !important;
}

.header.container-header.full-width .mod-menu a:hover {
    color: #f1c40f !important;
}

/* =========================
   TIPOGRAFIA
========================= */
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
}

h1 {
    font-size: 28px;
    font-weight: 700;
}

h2 {
    font-size: 22px;
}

p {
    line-height: 1.6;
}

/* =========================
   VARIÁVEIS CASSIOPEIA
========================= */
:root {
    --cassiopeia-font-family-body: 'Open Sans', sans-serif;
    --cassiopeia-font-family-headings: 'Montserrat', sans-serif;
}

/* =========================
   BANNER SLIDER
========================= */
.banner-slider {
    position: relative;
    width: 100%;
    max-width: 728px;
    height: 120px;
    overflow: hidden;
    margin: 0 auto;
}

.banner-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slider img.active {
    opacity: 1;
}

.banner-slider a {
    display: block;
    width: 100%;
    height: 100%;
}

/* =========================
   BANNERS
========================= */
.mod-banners {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* =========================
   DROPDOWN MENU
========================= */
.container-header .mod-menu .parent > ul {
    background-color: #004080 !important;
}

.container-header .mod-menu .parent > ul li a {
    color: #ffffff !important;
    padding: 8px 15px;
    display: block;
    text-decoration: none;
}

.container-header .mod-menu .parent > ul li a:hover {
    background-color: #003366 !important;
    color: #ffff00 !important;
}

/* =========================
   CATEGORIAS / ARTIGOS
========================= */
.category-box,
.article-box {
    display: inline-block;
    width: 200px;
    margin: 15px;
    text-align: center;
}

.category-box img,
.article-box img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
}

.category-box h3,
.article-box h3 {
    margin-top: 10px;
    font-size: 16px;
    color: #112855;
}

.category-box img {
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.category-box img:hover {
    transform: scale(1.05);
}

/* =========================
   INFO DO ARTIGO
========================= */
.article-info-term {
    display: none;
}

.article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.article-info dd,
.article-info dt {
    margin: 0;
    padding: 0;
}

.article-info a,
.article-info span {
    color: #666;
    text-decoration: none;
}

.article-info a:hover {
    color: #000;
}

/* =========================
   MENU (CASIOPEIA - FINAL AJUSTADO)
========================= */

/* desktop */
.container-header .mod-menu a,
.container-header .mod-menu .nav-link {
    font-size: 14px !important;
    padding: 10px 12px !important;
    line-height: 1.2;
}

/* mobile */
@media (max-width: 991px) {
    .container-header .mod-menu a,
    .container-header .mod-menu .nav-link {
        font-size: 15px !important;
        padding: 10px 14px !important;
        line-height: 1.3;
    }

    .navbar-collapse {
        background: #1e3a5f;
    }
}

/* botão hambúrguer */
.navbar-toggler {
    border: none;
}

/* ===== LOGO CENTRAL NO MOBILE ===== */

/* ===== LOGO CENTRALIZADA NO MOBILE (CASSIOPEIA FORTE) ===== */
@media (max-width: 991px) {

    /* força header a virar coluna */
    .header.container-header.full-width {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* remove alinhamento lateral do grid */
    .header .grid-child {
        width: 100% !important;
        text-align: center !important;
    }

    /* centraliza a logo */
    .navbar-brand {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .navbar-brand .brand-logo {
        margin: 0 auto !important;
    }

    .navbar-brand img {
        max-height: 60px;
        width: auto;
    }
}

/* ===== ARTIGOS: IMAGEM ACIMA DO TEXTO (PC + MOBILE) ===== */

/* remove o float da imagem */
.item-image,
figure.item-image,
figure.left.item-image,
figure.right.item-image {
    float: none !important;
    margin: 0 auto 15px auto !important;
    display: block !important;
}

/* garante que imagem fique centralizada */
.item-image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* garante texto sempre abaixo */
.item-content {
    display: block;
    width: 100%;
}
.container-header {
  padding-top: 5px;
  padding-bottom: 5px;
}

.navbar-brand img {
  max-height: 60px;
  width: auto;
}
@media (max-width: 768px) {
  .navbar-brand img {
    max-height: 50px;
  }
}