/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #ffffff;
    color: #1f2937;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    width: 100%;
    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;
}

.nav-container {
    max-width: 1450px;

    margin: auto;

    padding: 20px 45px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #145c3c;

    text-decoration: none;

    font-size: 21px;
    font-weight: 700;
}

.nav-links {
    list-style: none;

    display: flex;
    align-items: center;

    gap: 35px;
}

.nav-links a {
    color: #374151;

    text-decoration: none;

    font-size: 15px;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: #168a56;
}


/* =========================================
   PAGE HEADER
========================================= */

.page-header {
    background: #15573f;

    padding: 60px 40px;

    color: white;
}

.header-container {
    max-width: 1400px;

    margin: auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: #d1fae5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.back-link:hover {
    color: #145c3c;
    background: #f3f4f6;
}

.school-name {
    font-size: 14px;

    text-transform: uppercase;

    letter-spacing: 1px;

    opacity: 0.8;

    margin-bottom: 8px;
}

.page-header h1 {
    font-size: 42px;

    margin-bottom: 10px;
}

.header-description {
    font-size: 16px;

    opacity: 0.85;
}


/* =========================================
   MAIN ANNOUNCEMENT SECTION
========================================= */

.announcement-section {
    padding: 55px 40px 80px;
}

.announcement-container {
    max-width: 1400px;

    margin: auto;
}


/* =========================================
   SECTION HEADING
========================================= */

.section-heading {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 20px;

    margin-bottom: 35px;
}

.section-heading h2 {
    color: #145c3c;

    font-size: 30px;

    margin-bottom: 5px;
}

.section-heading p {
    color: #6b7280;

    font-size: 14px;
}

.announcement-count {
    background: #e7f7ee;

    color: #166534;

    padding: 8px 14px;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================
   ANNOUNCEMENT GRID
========================================= */

.announcement-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 35px;
}


/* =========================================
   ANNOUNCEMENT CARD
========================================= */

.announcement-card {
    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    overflow: hidden;

    transition: 0.2s;
}

.announcement-card:hover {
    transform: translateY(-3px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}


/* =========================================
   IMAGE
========================================= */

.announcement-image-container {
    width: 100%;
    height: 260px;

    overflow: hidden;

    background: #eeeeee;
}

.announcement-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.no-image {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #6b7280;

    background: #eeeeee;

    font-size: 14px;
}


/* =========================================
   CONTENT
========================================= */

.announcement-content {
    padding: 25px;
}

.announcement-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 14px;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.4px;
}

.announcement-date {
    color: #6b7280;
}

.separator {
    color: #9ca3af;
}

.announcement-category {
    color: #168a56;
}

.announcement-content h3 {
    color: #145c3c;

    font-size: 20px;

    line-height: 1.35;

    margin-bottom: 13px;
}

.announcement-content p {
    color: #4b5563;

    font-size: 14px;

    line-height: 1.7;
}

/* =========================
           ANNOUNCEMENT FILTER
        ========================= */

.announcement-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px 0;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.filter-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-label label {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.filter-label span {
    font-size: 13px;
    color: #6b7280;
}

#category-filter {
    width: 260px;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#category-filter:focus {
    border-color: #064d40;
    box-shadow: 0 0 0 3px rgba(6, 77, 64, 0.12);
}

#category-filter:hover {
    border-color: #064d40;
}

/* FILTERED ANNOUNCEMENT COUNT */

.announcement-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* EMPTY FILTER RESULTS */

.filter-empty-message {
    grid-column: 1 / -1;
    width: 100%;
    padding: 45px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.filter-empty-message h3 {
    margin-bottom: 10px;
    color: #1f2937;
}

.filter-empty-message p {
    color: #6b7280;
}

.back-link {
    display: inline-flex;
    align-items: center;

    margin-bottom: 25px;
    padding: 10px 14px;

    color: #000000;
    background: transparent;
    border-radius: 6px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}


/* MOBILE RESPONSIVENESS */

@media screen and (max-width: 600px) {

    .announcement-filter {
        align-items: stretch;
        flex-direction: column;
        padding: 15px;
        gap: 12px;
    }

    #category-filter {
        width: 100%;
    }

    .announcement-count {
        font-size: 13px;
    }

}

/* =========================================
   EMPTY MESSAGE
========================================= */

.empty-message {
    grid-column: 1 / -1;

    padding: 70px 20px;

    text-align: center;

    background: #f8fafc;

    border-radius: 10px;
}

.empty-message h3 {
    color: #145c3c;

    margin-bottom: 8px;
}

.empty-message p {
    color: #6b7280;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .announcement-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .nav-container {
        padding: 18px 20px;

        flex-direction: column;

        gap: 15px;
    }

    .nav-links {
        gap: 18px;

        flex-wrap: wrap;

        justify-content: center;
    }

    .page-header {
        padding: 40px 20px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .announcement-section {
        padding: 35px 20px;
    }

    .section-heading {
        flex-direction: column;

        align-items: flex-start;
    }

    .announcement-grid {
        grid-template-columns: 1fr;
    }

    .announcement-image-container {
        height: 230px;
    }

}

@media (max-width: 420px) {
    .announcement-container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .announcement-card {
        min-width: 0;
    }

    .announcement-card h2,
    .announcement-card p {
        overflow-wrap: anywhere;
    }
}

img,
iframe {
    max-width: 100%;
}

.announcement-container>*,
.announcement-card,
.announcement-filter>* {
    min-width: 0;
}