/* =========================================================
   ANNOUNCEMENT UI / UX
   SiEbrass - Responsive / Mobile First
   ========================================================= */

:root {
    --announcement-primary: #006875;
    --announcement-primary-dark: #004f5a;
    --announcement-accent: #30afa5;

    --announcement-bg: #f6f9fb;
    --announcement-card: #ffffff;
    --announcement-text: #17202a;
    --announcement-muted: #667085;

    --announcement-border: rgba(15, 23, 42, 0.08);

    --announcement-radius: 24px;

    --announcement-shadow:
        0 12px 35px rgba(15, 23, 42, 0.08);

    --announcement-shadow-hover:
        0 22px 55px rgba(15, 23, 42, 0.13);
}


/* =========================================================
   SECTION
   ========================================================= */

.announcement-section {
    position: relative;
    width: 100%;
    margin: 70px auto 0;
    padding: 0 12px;
}


/* =========================================================
   HEADER
   ========================================================= */

.announcement-heading {
    display: flex;
    flex-direction: column;
    gap: 20px;

    margin-bottom: 28px;
}

.announcement-heading-content {
    min-width: 0;
}

.announcement-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 9px;

    color: var(--announcement-primary);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .1em;
}

.announcement-kicker i {
    font-size: 12px;
}

.announcement-heading h2 {
    margin: 0 0 10px;

    color: var(--announcement-text);

    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: -.025em;
}

.announcement-heading h2 em {
    color: var(--announcement-primary);
    font-style: normal;
}

.announcement-heading p {
    max-width: 650px;

    margin: 0;

    color: var(--announcement-muted);

    font-size: 13px;
    line-height: 1.75;
}


/* =========================================================
   COUNTER
   ========================================================= */

.announcement-counter {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;

    gap: 8px;

    padding: 9px 14px;

    border: 1px solid var(--announcement-border);
    border-radius: 999px;

    background: rgba(255,255,255,.85);

    box-shadow:
        0 7px 20px rgba(15,23,42,.06);
}

.announcement-counter-number {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    border-radius: 50%;

    background: var(--announcement-primary);

    color: #fff;

    font-size: 11px;
    font-weight: 700;
}

.announcement-counter-label {
    color: var(--announcement-muted);

    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   CAROUSEL WRAPPER
   ========================================================= */

.announcement-carousel-wrap {
    position: relative;
}


/* =========================================================
   CAROUSEL
   ========================================================= */

.announcement-carousel {
    width: 100%;
}

.announcement-carousel .owl-stage {
    display: flex;
}

.announcement-carousel .owl-item {
    display: flex;
    height: auto;
}

.announcement-carousel .owl-item > .announcement-card {
    width: 100%;
}


/* =========================================================
   CARD
   ========================================================= */

.announcement-card {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    min-height: 100%;

    overflow: hidden;

    border:
        1px solid
        var(--announcement-border);

    border-radius: var(--announcement-radius);

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfd 100%
        );

    box-shadow: var(--announcement-shadow);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.announcement-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(0, 104, 117, .13);

    box-shadow:
        var(--announcement-shadow-hover);
}


/* =========================================================
   ACCENT BAR
   ========================================================= */

.announcement-card-accent {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--announcement-primary),
            var(--announcement-accent)
        );
}


/* =========================================================
   CARD TOP
   ========================================================= */

.announcement-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 22px 20px 0;
}


/* =========================================================
   BADGE
   ========================================================= */

.announcement-badge {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    min-width: 0;

    color: var(--announcement-primary);

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .075em;
}

.announcement-badge-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    border-radius: 9px;

    background:
        rgba(0, 104, 117, .09);

    color: var(--announcement-primary);
}

.announcement-badge-icon i {
    font-size: 12px;
}


/* =========================================================
   DATE
   ========================================================= */

.announcement-date {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: var(--announcement-muted);

    font-size: 10px;
    font-weight: 500;

    white-space: nowrap;
}

.announcement-date i {
    color: var(--announcement-primary);
}

.announcement-date small {
    color: #98a2b3;

    font-size: 9px;
}


/* =========================================================
   TITLE
   ========================================================= */

.announcement-card-title {
    padding: 18px 20px 0;
}

.announcement-card-title h3 {
    margin: 0;

    color: var(--announcement-text);

    font-size: 20px;
    font-weight: 700;

    line-height: 1.35;

    letter-spacing: -.02em;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   BODY
   ========================================================= */

.announcement-card-body {
    position: relative;

    padding: 15px 20px 18px;

    flex: 1;
}

.announcement-content {
    position: relative;

    max-height: 150px;

    overflow: hidden;

    color: var(--announcement-muted);

    font-size: 13px;

    line-height: 1.8;
}


/* Normalize generated HTML content */
.announcement-content p {
    margin: 0 0 10px;

    color: inherit;

    font-size: inherit;
    line-height: inherit;
}

.announcement-content p:last-child {
    margin-bottom: 0;
}

.announcement-content strong {
    color: var(--announcement-text);

    font-weight: 650;
}

.announcement-content a {
    color: var(--announcement-primary);

    font-weight: 600;

    text-decoration: underline !important;
}

.announcement-content ul,
.announcement-content ol {
    margin: 0 0 10px;
    padding-left: 18px;
}

.announcement-content li {
    margin-bottom: 5px;
}


/* =========================================================
   CONTENT FADE
   ========================================================= */

.announcement-content-fade {
    position: absolute;

    left: 20px;
    right: 20px;

    bottom: 0;

    height: 45px;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0),
            #ffffff
        );
}


/* =========================================================
   FOOTER
   ========================================================= */

.announcement-card-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin: 0 20px;

    padding: 15px 0 20px;

    border-top:
        1px solid
        rgba(15, 23, 42, .07);
}


/* =========================================================
   AUTHOR
   ========================================================= */

.announcement-author {
    display: flex;

    align-items: center;

    gap: 9px;

    min-width: 0;
}

.announcement-author-avatar {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    overflow: hidden;

    border-radius: 50%;

    border:
        2px solid
        rgba(0,104,117,.12);

    background:
        linear-gradient(
            135deg,
            #eaf7f8,
            #dcefee
        );
}

.announcement-author-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.announcement-author-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.announcement-author-label {
    color: #98a2b3;

    font-size: 8px;
    font-weight: 600;

    line-height: 1.3;

    text-transform: uppercase;
    letter-spacing: .06em;
}

.announcement-author-info strong {
    max-width: 145px;

    overflow: hidden;

    color: var(--announcement-text);

    font-size: 11px;
    font-weight: 650;

    line-height: 1.4;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   STATUS
   ========================================================= */

.announcement-status {
    flex: 0 0 auto;
}

.announcement-status span {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 6px 9px;

    border-radius: 999px;

    background: rgba(48,175,165,.08);

    color: #16877f;

    font-size: 9px;
    font-weight: 600;

    white-space: nowrap;
}

.announcement-status i {
    font-size: 9px;
}


/* =========================================================
   CONTROLS
   ========================================================= */

.announcement-carousel-controls {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-top: 20px;
}

.announcement-nav {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: 1px solid
        rgba(0,104,117,.12);

    border-radius: 50%;

    background: #fff;

    color: var(--announcement-primary);

    cursor: pointer;

    box-shadow:
        0 7px 18px
        rgba(15,23,42,.06);

    transition:
        transform .2s ease,
        color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.announcement-nav:hover {
    transform: translateY(-2px);

    background:
        var(--announcement-primary);

    color: #fff;

    box-shadow:
        0 10px 22px
        rgba(0,104,117,.18);
}

.announcement-nav:focus-visible {
    outline: 3px solid
        rgba(48,175,165,.3);

    outline-offset: 3px;
}

.announcement-nav i {
    font-size: 13px;
}


/* =========================================================
   PROGRESS
   ========================================================= */

.announcement-progress {
    display: inline-flex;

    align-items: center;

    gap: 4px;

    color: #98a2b3;

    font-size: 11px;
    font-weight: 600;
}

.announcement-progress-current {
    color: var(--announcement-primary);
    font-weight: 700;
}

.announcement-progress-divider {
    opacity: .5;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.announcement-empty-section {
    margin-top: 50px;
}

.announcement-empty-state {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 18px;

    padding: 40px 22px;

    border:
        1px dashed
        rgba(0,104,117,.18);

    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.96),
            rgba(246,249,251,.96)
        );

    text-align: center;
}

.announcement-empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    border-radius: 20px;

    background: rgba(0,104,117,.08);

    color: var(--announcement-primary);

    font-size: 24px;
}

.announcement-empty-content .announcement-kicker {
    margin-bottom: 5px;
}

.announcement-empty-content h3 {
    margin: 0 0 8px;

    color: var(--announcement-text);

    font-size: 20px;
}

.announcement-empty-content p {
    margin: 0;

    color: var(--announcement-muted);

    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 576px) {

    .announcement-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .announcement-heading {
        flex-direction: row;

        align-items: flex-end;

        justify-content: space-between;
    }

    .announcement-counter {
        align-self: auto;
    }

    .announcement-card {
        min-height: 395px;
    }
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 992px) {

    .announcement-section {
        margin-top: 100px;

        padding-left: 0;
        padding-right: 0;
    }

    .announcement-heading {
        margin-bottom: 35px;
    }

    .announcement-heading h2 {
        font-size: 35px;
    }

    .announcement-heading p {
        font-size: 14px;
    }

    .announcement-card {
        min-height: 410px;
    }

    .announcement-card-top {
        padding: 24px 24px 0;
    }

    .announcement-card-title {
        padding-left: 24px;
        padding-right: 24px;
    }

    .announcement-card-title h3 {
        font-size: 21px;
    }

    .announcement-card-body {
        padding-left: 24px;
        padding-right: 24px;
    }

    .announcement-card-footer {
        margin-left: 24px;
        margin-right: 24px;
        padding-bottom: 22px;
    }

    .announcement-content {
        max-height: 155px;
    }

    .announcement-content-fade {
        left: 24px;
        right: 24px;
    }

    .announcement-carousel-controls {
        margin-top: 25px;
    }
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    .announcement-card {
        min-height: 430px;
    }

    .announcement-card-title h3 {
        font-size: 22px;
    }

    .announcement-content {
        max-height: 165px;
        font-size: 13px;
    }
}


/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .announcement-card,
    .announcement-nav {
        transition: none;
    }

    .announcement-card:hover,
    .announcement-nav:hover {
        transform: none;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .announcement-section {
        margin-top: 50px;
    }

    .announcement-heading h2 {
        font-size: 25px;
    }

    .announcement-heading p {
        font-size: 12px;
    }

    .announcement-card-top {
        padding-left: 16px;
        padding-right: 16px;
    }

    .announcement-card-title {
        padding-left: 16px;
        padding-right: 16px;
    }

    .announcement-card-title h3 {
        font-size: 18px;
    }

    .announcement-card-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .announcement-content {
        max-height: 135px;
        font-size: 12px;
    }

    .announcement-content-fade {
        left: 16px;
        right: 16px;
    }

    .announcement-card-footer {
        margin-left: 16px;
        margin-right: 16px;
    }

    .announcement-status {
        display: none;
    }

    .announcement-date small {
        display: none;
    }
}