.amai-noticias-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:20px;
    margin:20px 0 100px 0;
}

.amai-card{
    display:block;
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    text-decoration:none;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
    transition:.2s;
}

.amai-card:hover{
    transform:translateY(-3px);
}

.amai-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

.amai-card-content{
    padding:15px;
}

.amai-card h3{
    margin:0;
    color:#0E2345;
    font-size:18px;
    line-height:1.4;
}

.amai-post{
    max-width:900px;
    margin:auto auto 100px auto;
}

.amai-voltar{
    display:inline-block;
    margin-bottom:20px;
    text-decoration:none;
    font-weight:600;
}

.amai-post h1{
    margin-bottom:20px;
    color:#0E2345;
    font-size:16px;
    line-height:1.3;
}

.amai-thumb{
    width:100%;
    border-radius:12px;
    margin-bottom:20px;
}

.amai-content{
    line-height:1.8;
}

.amai-content img{
    max-width:100%;
    height:auto;
    border-radius:12px;
}

.amai-content iframe{
    max-width:100%;
}

.amai-pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    padding-bottom:120px;
    flex-wrap:wrap;
}

.amai-page-number,
.amai-page-nav{

    margin:60px 0;
    min-width:50px;
    height:50px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;
    font-weight:700;
    font-size:16px;

    border:2px solid #3A4F66;
    border-radius:12px;

    background:#fff;
    color:#3A4F66;

    transition:all .25s ease;
}

/* Hover */
.amai-page-number:hover,
.amai-page-nav:hover{
    background:#0069a2;
    border-color:#0069a2;
    color:#fff;
    transform:translateY(-2px);
}

/* Página atual */
.amai-page-number.active{
    background:#ff033d;
    border-color:#ff033d;
    color:#fff;
}

/* Mantém a página atual sem efeito hover */
.amai-page-number.active:hover{
    background:#ff033d;
    border-color:#ff033d;
    color:#fff;
    transform:none;
}

/* Botões anterior e próximo */
.amai-page-nav{
    border-color:#0069a2;
    color:#0069a2;
}

/* Hover dos botões */
.amai-page-nav:hover{
    background:#0069a2;
    color:#fff;
}

/* Espaçamento superior e inferior */
.amai-pagination{
    margin-top:50px;
    margin-bottom:80px;
    padding-bottom:120px;
}

.amai-notify-badge{
    position:relative;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:18px;
    height:18px;

    padding:0 5px;

    background:#ff0000;
    color:#fff;

    font-size:11px;
    font-weight:700;

    border-radius:999px;

    line-height:1;

    box-shadow:0 2px 6px rgba(0,0,0,0.2);
}

.elementor-shortcode .amai-notify-link{
    display:inline-flex;
    position:relative;
    z-index:999;
    pointer-events:auto;
}

.elementor-shortcode .xlwpf.wppb-font-bell-alt{
    font-size: 30px !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    line-height: 1;
}

.elementor-shortcode i{
    font-size: 30px !important;
}

/* FEED */
.amai-feed-notificacoes{
    display:flex !important;
    flex-direction:column !important;
    width:100%;
    border-radius:16px;
    overflow:hidden;
}

/* ITEM */
.amai-feed-notificacoes .amai-feed-item{
    display:flex !important;
    align-items:center !important;
    width:100% !important;
    padding:16px 18px !important;
    box-sizing:border-box;
    transition:all .2s ease;
}

/* Branco / cinza alternado */
.amai-feed-notificacoes .amai-feed-item:nth-child(odd){
    background:#ffffff !important;
}

.amai-feed-notificacoes .amai-feed-item:nth-child(even){
    background:#f5f5f5 !important;
}

/* Hover */
.amai-feed-notificacoes .amai-feed-item:hover{
    background:#fff4f6 !important;
}

/* Ícone */
.amai-feed-notificacoes .amai-feed-icon-wrap{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    border-radius:999px !important;

    background:#0069A233 !important;
    margin-right:14px !important;
}

/* Ícone */
.amai-feed-notificacoes .amai-feed-icon-wrap i{
    color:#0069A2 !important;
    font-size:18px !important;
}

/* Área central */
.amai-feed-notificacoes .amai-feed-content{
    flex:1 !important;
    display:flex !important;
    flex-direction:column !important;
}

/* Título */
.amai-feed-notificacoes .amai-feed-title{
    font-size:15px !important;
    font-weight:700 !important;
    color:#000 !important;
    line-height:1.4 !important;
}

/* Linha da data */
.amai-feed-notificacoes .amai-feed-data{
    margin-top:4px !important;
    font-size:12px !important;
    font-weight:700 !important;
    color:#000 !important;
}

/* Hover dos textos */
.amai-feed-notificacoes .amai-feed-item:hover .amai-feed-title,
.amai-feed-notificacoes .amai-feed-item:hover .amai-feed-data{
    color:#FF033D !important;
}

/* Seta */
.amai-feed-notificacoes .amai-feed-arrow{
    margin-left:12px !important;
    font-size:18px !important;
    color:#999 !important;
}

/* Hover da seta */
.amai-feed-notificacoes .amai-feed-item:hover .amai-feed-arrow{
    color:#FF033D !important;
}

.amai-feed-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    flex-wrap:nowrap; /* impede quebra */
}

.amai-select-all{
    display:flex;
    align-items:center;
    gap:8px;
    white-space:nowrap; /* NÃO quebra linha */
    flex-shrink:0;
}

.amai-btn-lidas{
    border:none;
    background:#0069A2;
    color:#fff;
    padding:10px 16px;
    border-radius:8px;
    cursor:pointer;
    margin-right:20px;
}

.amai-feed-check{
    display:flex;
    align-items:center;
    margin-left:12px;
}

.amai-feed-item.lido{
    opacity:.65;
}

.amai-feed-item.lido .amai-feed-title{
    text-decoration:line-through;
}

.amai-btn-lidas:hover {
    background: #fff;
    color: #0069A2;
    border: 1px solid #0069A2;
}

.amai-btn-nao-lidas {
    background: #444;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.2s ease-in-out;
}

.amai-btn-nao-lidas:hover {
    background: #fff;
    color: #444;
    border: 1px solid #444; /* 🔥 necessário para inverter suave */
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.amai-feed-notificacoes .amai-feed-link{
    display:flex !important;
    align-items:center !important;
    flex:1 !important;
    width:100% !important;
    text-decoration:none !important;
}

.amai-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    
}

.amai-actions-accordion{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:stretch; /* 🔥 era flex-end */
    width: 100%;
}

.amai-actions-toggle {
    background:#0069A2;
    color:#fff;
    border:none;
    padding:10px 14px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;

    display: inline-flex;
    align-items:center;
    flex-direction: row;   /* 🔥 garante lado a lado */
    width: 100%;
    gap:8px;
    white-space: nowrap;   /* 🔥 impede quebra */

    align-self: flex-end;
}

.amai-actions-toggle:hover{
    background:#005384;
}

.amai-actions-toggle::before {
    content: "\f147"; /* dashicons yes-alt */
    font-family: dashicons;
    font-size: 18px;
    line-height: 1;
    
    display: inline-flex;  /* 🔥 importante */
    align-items: center;
    flex-shrink: 0;
    
}

.amai-select-all {
    display: flex;
    align-items: center;
    gap: 8px;

    background: #e8f3fb;
    color: #0069A2;

    border: 1px solid #cfe6f5;
    border-radius: 8px;

    padding: 10px 14px;

    font-weight: 600;
    cursor: pointer;

    transition: 0.2s;

    width: auto;          /* 🔥 remove quebra */
    white-space: nowrap;  /* 🔥 impede quebra de linha */
    flex-shrink: 0;       /* 🔥 impede esmagamento */
}

.amai-actions-body {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;

    width: 100%;
    box-sizing: border-box;

    align-items: stretch; /* 🔥 garante filhos iguais */
}

.amai-actions-body button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;

    justify-content: flex-start;

    box-sizing: border-box;
    margin: 0; /* 🔥 evita diferenças entre botões */
}

.amai-actions-body i{
    font-size:16px;
    line-height:1;
    display:inline-flex;
    align-items:center;
}

.amai-actions-accordion.active .amai-actions-body{
    display:flex;
}

.amai-btn-nao-lidas {
    background: #444;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;

    width: 100%;
    margin-left: 0; /* 🔥 remove desalinhamento */
    box-sizing: border-box;

    display: flex;
    align-items: center;
    gap: 10px;
}

.amai-feed-item{
    border-left:4px solid transparent;
    transition:0.2s;
}

/* NÃO LIDAS */
.amai-feed-item.nao-lido{
    border-left-color:#FF033D;
}

/* LIDAS */
.amai-feed-item.lido{
    border-left-color:#0069A2;
    opacity:0.7;
}

#amai-snackbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    background: #0069A2;
    color: #fff;

    padding: 12px 16px;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;

    z-index: 999999;

    opacity: 0;
    pointer-events: none;

    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

#amai-snackbar.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

#amai-toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.55); /* 🔥 fundo escuro */
    
    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 999999;

    opacity: 0;
    pointer-events: none;

    transition: 0.25s ease;
}

#amai-toast-overlay.show {
    opacity: 1;
    pointer-events: all;
}

#amai-toast {
    background: #0069A2; /* azul */
    color: #fff;         /* texto branco */

    padding: 16px 20px;
    border-radius: 12px;

    font-size: 15px;
    font-weight: 600;

    max-width: 80%;
    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.3);

    transform: scale(0.9);
    transition: 0.25s ease;
}

#amai-toast-overlay.show #amai-toast {
    transform: scale(1);
}