/* LIBAC — Public announcements
   Page-only rules. Navigation and footer use the same public system as the rest of the site. */

.announcements-page {
    min-width: 320px;
    overflow-x: hidden;
    background: #f6f8fb;
    color: #1d2939;
}

.announcements-page main {
    min-height: 60vh;
}

/* =========================
   Hero
   ========================= */
.announcements-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(58px, 7vw, 92px) 0 clamp(62px, 8vw, 104px);
    color: #fff;
    background:
        linear-gradient(120deg, rgba(4, 32, 55, .98), rgba(0, 83, 155, .94) 58%, rgba(4, 112, 183, .90)),
        #063c65;
}

.announcements-hero::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 52px;
    background: #f6f8fb;
    clip-path: polygon(0 74%, 100% 0, 100% 100%, 0 100%);
    z-index: -1;
}

.announcements-hero-decoration {
    position: absolute;
    z-index: -2;
    border-radius: 50%;
    pointer-events: none;
}

.announcements-hero-decoration-one {
    width: 360px;
    height: 360px;
    top: -170px;
    left: -90px;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 0 0 54px rgba(255, 255, 255, .025), 0 0 0 108px rgba(255, 255, 255, .018);
}

.announcements-hero-decoration-two {
    width: 220px;
    height: 220px;
    right: 8%;
    bottom: -118px;
    background: rgba(197, 160, 89, .12);
    filter: blur(2px);
}

.announcements-hero-inner {
    position: relative;
    z-index: 1;
}

.announcements-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, .72);
    font-size: .88rem;
}

.announcements-breadcrumb a {
    color: #fff;
    font-weight: 700;
}

.announcements-breadcrumb a:hover,
.announcements-breadcrumb a:focus-visible {
    color: #f0cc80;
}

.announcements-breadcrumb i {
    font-size: .68rem;
    opacity: .62;
}

.announcements-hero-copy {
    max-width: 780px;
}

.announcements-page .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    font-size: .88rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.announcements-page .hero-kicker i {
    color: #f0cc80;
}

.announcements-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.15rem, 5vw, 3.65rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.announcements-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1rem, 2vw, 1.16rem);
    line-height: 2;
}

/* =========================
   Section heading + count
   ========================= */
.announcements-section {
    padding: 26px 0 clamp(68px, 8vw, 104px);
}

.announcements-shell {
    width: min(1180px, calc(100% - 32px));
}

.announcements-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #0069b7;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.announcements-heading-copy h2 {
    margin: 0;
    color: #0b263e;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 900;
    line-height: 1.35;
}

.announcements-heading-copy p {
    margin: 8px 0 0;
    color: #667085;
    line-height: 1.8;
}

.announcements-count {
    flex: 0 0 auto;
    min-width: 176px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid #dfe7ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 42, 67, .05);
}

.announcements-count-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #0069b7;
    background: #edf6fc;
    font-size: 1.05rem;
}

.announcements-count-copy {
    display: grid;
    line-height: 1.2;
}

.announcements-count strong {
    color: #0b263e;
    font-size: 1.2rem;
    font-weight: 900;
}

.announcements-count small {
    margin-top: 4px;
    color: #7a8998;
    font-size: .76rem;
    font-weight: 700;
}

/* =========================
   Cards
   ========================= */
.announcements-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 0 !important;
}

.ad-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e7ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 42, 67, .055);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.ad-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 105, 183, .24);
    box-shadow: 0 20px 46px rgba(16, 42, 67, .11);
}

.ad-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(145deg, #edf4f9, #e2edf5);
}

.ad-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(4, 31, 51, .20), transparent 46%);
}

.ad-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.ad-card:hover .ad-image {
    transform: scale(1.035);
}

.ad-media-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #7fa7c4;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .72), transparent 34%),
        linear-gradient(135deg, #edf5fa, #dceaf4);
    font-size: 2rem;
}

.ad-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.ad-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.ad-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #667085;
    font-size: .82rem;
    font-weight: 700;
}

.ad-date i {
    color: #0069b7;
}

.ad-label {
    padding: 5px 9px;
    border-radius: 999px;
    color: #0062a8;
    background: #edf6fc;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}

.ad-title {
    margin: 0 0 11px;
    color: #102a43;
    font-size: 1.16rem;
    font-weight: 900;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.ad-excerpt {
    flex: 1;
    margin: 0 0 20px;
    color: #526477;
    font-size: .93rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.ad-btn {
    width: fit-content;
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: auto;
    padding: 9px 15px;
    border: 1px solid #cdddea;
    border-radius: 10px;
    color: #005fa8;
    background: #f8fbfd;
    font: inherit;
    font-size: .88rem;
    font-weight: 900;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.ad-btn:hover,
.ad-btn:focus-visible {
    color: #fff;
    border-color: #0069b7;
    background: #0069b7;
}

.ad-btn:active {
    transform: translateY(1px);
}

/* =========================
   Loading / empty / error
   ========================= */
.status-message {
    grid-column: 1 / -1;
    min-height: 300px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 44px 22px;
    border: 1px dashed #cfdae4;
    border-radius: 18px;
    text-align: center;
    color: #667085;
    background: rgba(255, 255, 255, .72);
}

.status-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 50%;
    color: #0069b7;
    background: #eaf4fb;
    font-size: 1.35rem;
}

.status-message h3 {
    margin: 0;
    color: #173b56;
    font-size: 1.08rem;
    font-weight: 900;
}

.status-message p {
    margin: 7px 0 0;
    line-height: 1.7;
}

/* =========================
   Modal
   ========================= */
.public-modal[hidden] {
    display: none !important;
}

.public-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: start center;
    padding: clamp(14px, 4vh, 42px) 14px;
    overflow-y: auto;
    background: rgba(6, 21, 34, .78);
    backdrop-filter: blur(9px);
}

.public-modal-content {
    position: relative;
    width: min(900px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .30);
}

.close-public-modal {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 50%;
    color: #344054;
    background: rgba(255, 255, 255, .95);
    cursor: pointer;
    font-size: 1.05rem;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .10);
}

.close-public-modal:hover,
.close-public-modal:focus-visible {
    color: #b42318;
    background: #fff;
}

.modal-cover-image {
    width: 100%;
    max-height: 430px;
    display: block;
    object-fit: cover;
    background: #eaf0f5;
}

.modal-body {
    padding: clamp(24px, 4vw, 38px);
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    margin-bottom: 12px;
}

.modal-type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #0062a8;
    background: #edf6fc;
    font-size: .76rem;
    font-weight: 900;
}

.modal-title {
    margin: 0;
    padding-left: 46px;
    color: #0b3454;
    font-size: clamp(1.45rem, 4vw, 2.15rem);
    font-weight: 900;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.modal-divider {
    width: 54px;
    height: 3px;
    margin: 18px 0 22px;
    border-radius: 999px;
    background: #c5a059;
}

.modal-text {
    color: #344054;
    font-size: 1rem;
    line-height: 2.05;
    overflow-wrap: anywhere;
}

.modal-gallery {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.modal-gallery:empty {
    display: none;
}

.modal-gallery img {
    width: 100%;
    height: auto;
    border: 1px solid #e1e8ef;
    border-radius: 12px;
    background: #f4f7fa;
}

body.modal-open {
    overflow: hidden;
}

/* Footer uses index.css so it is identical to the other public pages. */
.announcements-page footer {
    margin-top: 0;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1000px) {
    .announcements-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .announcements-hero {
        padding-top: 46px;
        padding-bottom: 82px;
    }

    .announcements-breadcrumb {
        margin-bottom: 22px;
        font-size: .8rem;
    }

    .announcements-hero p {
        line-height: 1.85;
    }

    .announcements-section {
        padding-top: 10px;
    }

    .announcements-shell {
        width: min(100% - 24px, 620px);
        padding-inline: 0;
    }

    .announcements-section-head {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .announcements-count {
        width: 100%;
        min-width: 0;
    }

    .announcements-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .ad-content {
        padding: 18px;
    }

    .ad-btn {
        width: 100%;
    }

    .public-modal {
        padding: 8px;
    }

    .public-modal-content {
        border-radius: 14px;
    }

    .modal-body {
        padding: 22px 16px;
    }

    .modal-title {
        padding-left: 38px;
    }

    .modal-gallery {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ad-card,
    .ad-image,
    .ad-btn {
        transition: none;
    }
}
