/* ==========================================================
   MHDS — ANNOUNCEMENTS
   ========================================================== */

.announcements {
    display: grid;
    gap: 22px;

    width: 100%;
}


/* ==========================================================
   CARD
   ========================================================== */

.announcements .announcement {
    position: relative;

    overflow: hidden;

    padding: 28px 30px;

    border: 1px solid #dce5ed;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 15px 38px
        rgba(16, 47, 77, 0.06);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.announcements .announcement:hover {
    border-color: rgba(14, 73, 126, 0.24);

    box-shadow:
        0 22px 48px
        rgba(16, 47, 77, 0.10);

    transform: translateY(-3px);
}


/* ==========================================================
   MARCA SUPERIOR
   ========================================================== */

.announcements .announcement::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            #0e497e,
            #69c7f2,
            #ffc400
        );
}


/* ==========================================================
   TÍTULO
   ========================================================== */

.announcements .announcement h1 {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 14px;

    margin: 0 0 10px;

    color: #173a59;

    font-size: clamp(24px, 3vw, 34px);
    font-weight: 850;

    line-height: 1.15;
}

.announcements .announcement h1 > a:first-child {
    color: #173a59;

    text-decoration: none;

    transition: color 180ms ease;
}

.announcements .announcement h1 > a:first-child:hover,
.announcements .announcement h1 > a:first-child:focus {
    color: #0e497e;

    text-decoration: none;
}


/* ==========================================================
   DATA
   ========================================================== */

.announcements .announcement .list-inline {
    margin: 0 0 18px;
    padding: 0;
}

.announcements .announcement .list-inline-item {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin: 0;

    color: #82909d !important;

    font-size: 8px;
    font-weight: 760;

    letter-spacing: .02em;
}

.announcements .announcement .list-inline-item i {
    color: #0e497e;
}


/* ==========================================================
   CONTEÚDO
   ========================================================== */

.announcements .announcement article {
    margin: 0 0 22px;

    color: #52677b;

    font-size: 10px;
    line-height: 1.75;
}

.announcements .announcement article p {
    margin: 0 0 12px;
}

.announcements .announcement article p:last-child {
    margin-bottom: 0;
}

.announcements .announcement article h1,
.announcements .announcement article h2,
.announcements .announcement article h3,
.announcements .announcement article h4 {
    color: #173a59;

    font-weight: 850;
}

.announcements .announcement article img {
    max-width: 100%;
    height: auto;

    border-radius: 12px;
}


/* ==========================================================
   BOTÃO LEIA MAIS
   ========================================================== */

.announcements .announcement > .btn {
    display: inline-flex;

    min-height: 42px;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 14px;

    border: 0;
    border-radius: 10px;

    background: #0e497e;

    color: #ffffff;

    font-size: 9px;
    font-weight: 850;

    text-decoration: none;

    transition:
        background-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.announcements .announcement > .btn:hover,
.announcements .announcement > .btn:focus {
    background: #082f53;

    color: #ffffff;

    text-decoration: none;

    transform: translateY(-1px);

    box-shadow:
        0 10px 22px
        rgba(14, 73, 126, 0.16);
}


/* ==========================================================
   BOTÃO EDITAR
   ========================================================== */

.announcements .announcement h1 .btn {
    flex: 0 0 auto;

    min-height: 32px;

    padding: 0 10px;

    border: 1px solid #dce5ed;
    border-radius: 8px;

    background: #f7f9fb;

    color: #68798a;

    font-size: 8px;

    box-shadow: none;
}

.announcements .announcement h1 .btn:hover {
    border-color: #0e497e;

    background: #ffffff;

    color: #0e497e;
}


/* ==========================================================
   PAGINAÇÃO
   ========================================================== */

.pagination,
ul.pagination {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 7px;

    margin: 28px 0 0;
    padding: 0;

    list-style: none;
}

.pagination .page-item,
.pagination li {
    margin: 0;
}

.pagination .page-link,
.pagination li a,
.pagination li span {
    display: inline-flex;

    min-width: 38px;
    min-height: 38px;

    align-items: center;
    justify-content: center;

    padding: 0 10px;

    border: 1px solid #dce5ed;
    border-radius: 9px;

    background: #ffffff;

    color: #52677b;

    font-size: 8px;
    font-weight: 800;

    text-decoration: none;
}

.pagination .page-item.active .page-link,
.pagination li.active a,
.pagination li.active span {
    border-color: #0e497e;

    background: #0e497e;

    color: #ffffff;
}

.pagination .page-link:hover,
.pagination li a:hover {
    border-color: #0e497e;

    color: #0e497e;

    text-decoration: none;
}


/* ==========================================================
   ALERTA SEM ANÚNCIOS
   ========================================================== */

.announcements .alert {
    padding: 24px;

    border: 1px dashed #cad8e3;
    border-radius: 16px;

    background: #ffffff;

    color: #68798a;

    box-shadow: none;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 650px) {

    .announcements .announcement {
        padding: 24px 20px;
    }

    .announcements .announcement h1 {
        align-items: flex-start;
        flex-direction: column;
    }

}