/* =========================================================
   LEMON TECH ACADEMY
   ANNOUNCEMENT PAGE
   COLOR PALETTE

   GREEN  : #08A63C
   YELLOW : #F9B900
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.announcement-page {
    position: relative;
    padding: 70px 0 20px;
    background: #ffffff;
    overflow: hidden;
}


/* subtle background decoration */

.announcement-page::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: -250px;
    top: 80px;
    border-radius: 50%;
    background: rgba(8, 166, 60, 0.045);
    pointer-events: none;
}

.announcement-page::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -150px;
    bottom: 120px;
    border-radius: 50%;
    background: rgba(249, 185, 0, 0.07);
    pointer-events: none;
}


/* =========================================================
   HEADING
========================================================= */

.announcement-heading {
    position: relative;
    z-index: 2;

    max-width: 760px;
    margin: 0 auto 55px;

    text-align: center;
}


.announcement-label {
    display: inline-flex;
    align-items: center;

    padding: 8px 16px;

    margin-bottom: 16px;

    border-radius: 50px;

    background: rgba(8, 166, 60, 0.09);

    color: #08A63C;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;
}


.announcement-heading h1 {
    margin: 0 0 16px;

    color: #17202A;

    font-size: 42px;
    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -1px;
}


.announcement-heading h1 span {
    color: #08A63C;
}


.announcement-heading p {
    max-width: 650px;

    margin: 0 auto;

    color: #6B747B;

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   GRID
========================================================= */

.announcement-grid {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 38px 30px;
}


/* =========================================================
   CARD
========================================================= */

.announcement-card {
    position: relative;

    background: #ffffff;

    border: 1px solid #E7EEE9;

    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 8px 30px rgba(15, 35, 25, 0.06);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


.announcement-card:hover {
    transform: translateY(-8px);

    border-color: rgba(8, 166, 60, 0.25);

    box-shadow:
        0 20px 50px rgba(15, 35, 25, 0.12);
}


/* =========================================================
   IMAGE
========================================================= */

.announcement-image {
    position: relative;

    display: block;

    width: 100%;

    height: 245px;

    overflow: hidden;

    background: #08A63C;

    text-decoration: none;
}


.announcement-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


.announcement-card:hover
.announcement-image img {
    transform: scale(1.06);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.announcement-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.30),
            transparent 50%
        );

    pointer-events: none;
}


/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.announcement-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #08A63C;

    color: #ffffff;

    font-size: 55px;
}


/* =========================================================
   CATEGORY BADGE
========================================================= */

.announcement-category {
    position: absolute;

    left: 18px;
    bottom: 18px;

    z-index: 3;

    display: inline-flex;

    align-items: center;

    min-height: 32px;

    padding: 7px 14px;

    border-radius: 7px;

    background: #08A63C;

    color: #ffffff;

    font-size: 12px;

    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.2px;

    text-transform: uppercase;
}


/* =========================================================
   CONTENT
========================================================= */

.announcement-content {
    padding: 25px 25px 23px;
}


/* =========================================================
   DATE
========================================================= */

.announcement-date {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 12px;

    color: #08A63C;

    font-size: 13px;

    font-weight: 600;
}


.announcement-date i {
    font-size: 13px;
}


/* =========================================================
   TITLE
========================================================= */

.announcement-title {
    margin: 0 0 12px;

    min-height: 58px;

    font-size: 21px;

    line-height: 1.4;

    font-weight: 750;
}


.announcement-title a {
    color: #17202A;

    text-decoration: none;

    transition: color 0.25s ease;
}


.announcement-title a:hover {
    color: #08A63C;
}


/* =========================================================
   EXCERPT
========================================================= */

.announcement-excerpt {
    margin: 0 0 22px;

    color: #707A80;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   CARD FOOTER
========================================================= */

.announcement-card-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding-top: 18px;

    border-top: 1px solid #EDF1EE;
}


/* =========================================================
   AUTHOR
========================================================= */

.announcement-author {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #69736D;

    font-size: 13px;

    font-weight: 500;
}


.author-icon {
    width: 29px;
    height: 29px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(8, 166, 60, 0.09);

    color: #08A63C;

    font-size: 12px;
}


/* =========================================================
   READ MORE
========================================================= */

.announcement-read-more {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #08A63C;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    transition:
        color 0.25s ease,
        gap 0.25s ease;
}


.announcement-read-more:hover {
    color: #F9B900;

    gap: 11px;
}


.announcement-read-more i {
    font-size: 12px;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.announcement-empty {
    grid-column: 1 / -1;

    padding: 80px 30px;

    text-align: center;

    background: #F7FAF8;

    border: 1px solid #E5EEE8;

    border-radius: 22px;
}


.empty-icon {
    width: 75px;
    height: 75px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #08A63C;

    color: #ffffff;

    font-size: 28px;
}


.announcement-empty h3 {
    margin: 0 0 10px;

    color: #17202A;

    font-size: 25px;
}


.announcement-empty p {
    max-width: 500px;

    margin: 0 auto;

    color: #6D7771;

    line-height: 1.7;
}


/* =========================================================
   PAGINATION
========================================================= */

.announcement-pagination {
    display: flex;

    justify-content: center;

    margin-top: 55px;
}


.announcement-pagination .page-numbers {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 44px;
    height: 44px;

    margin: 0 4px;

    padding: 0 14px;

    border: 1px solid #E1E9E4;

    border-radius: 10px;

    background: #ffffff;

    color: #17202A;

    font-size: 14px;

    font-weight: 650;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.announcement-pagination
.page-numbers:hover {
    border-color: #08A63C;

    background: #08A63C;

    color: #ffffff;

    transform: translateY(-2px);
}


.announcement-pagination
.page-numbers.current {
    border-color: #08A63C;

    background: #08A63C;

    color: #ffffff;
}


.announcement-pagination
.page-numbers.next,
.announcement-pagination
.page-numbers.prev {
    padding: 0 17px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .announcement-page {
        padding: 80px 0 90px;
    }


    .announcement-heading {
        margin-bottom: 40px;
    }


    .announcement-heading h1 {
        font-size: 40px;
    }


    .announcement-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 25px;
    }


    .announcement-image {
        height: 220px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .announcement-page {
        padding: 65px 0 75px;
    }


    .announcement-heading {
        margin-bottom: 35px;

        padding: 0 10px;
    }


    .announcement-heading h1 {
        font-size: 28px;

        letter-spacing: -0.5px;
    }


    .announcement-heading p {
        font-size: 14px;

        line-height: 1.7;
    }


    .announcement-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .announcement-image {
        height: 230px;
    }


    .announcement-content {
        padding: 22px 20px;
    }


    .announcement-title {
        min-height: auto;

        font-size: 20px;
    }


    .announcement-card-footer {
        align-items: flex-start;

        flex-direction: column;

        gap: 14px;
    }


    .announcement-read-more {
        align-self: flex-start;
    }


    .announcement-pagination {
        margin-top: 40px;
    }


    .announcement-pagination
    .page-numbers {
        min-width: 40px;
        height: 40px;

        margin: 0 2px;

        padding: 0 10px;
    }
    .announcement-label {
        font-size: 11px;
    }

    .announcement-page {
        padding-bottom: 0 !important;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .announcement-heading h1 {
        font-size: 28px;
    }


    .announcement-image {
        height: 210px;
    }


    .announcement-category {
        left: 14px;
        bottom: 14px;
    }
    .announcement-label {
        font-size: 11px;
    }


}