
/* =========================================
   ST. AUGUSTINE SCHOOL
   NOTICE BOARD & EVENTS
========================================= */

.sas-notices {
    position: relative;
    overflow: hidden;
    padding: 105px 24px 95px;
    background: #f8f9f6;
    color: #173f32;
}

.sas-notices::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -150px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(190, 151, 55, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.sas-notices-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

/* Section heading */

.sas-notices-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 48px;
}

.sas-notices-eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 17px;
    color: #a7832e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sas-notices-eyebrow > span {
    display: inline-block;
    width: 29px;
    height: 2px;
    background: #c49a36;
}

.sas-notices-heading h2 {
    margin: 0;
    color: #164a38;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(34px, 4vw, 49px);
    font-weight: 600;
    line-height: 1.2;
}

.sas-notices-heading h2 em,
.sas-upcoming-heading h3 em {
    color: #b28b36;
    font-weight: 500;
}

.sas-notices-description {
    max-width: 560px;
    margin: 15px 0 0;
    color: #69766f;
    font-size: 15px;
    line-height: 1.8;
}

.sas-notices-view-all {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
    padding: 15px 21px;
    border: 1px solid rgba(22, 74, 56, 0.25);
    color: #164a38;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sas-notices-view-all span {
    color: #b28b36;
    font-size: 17px;
}

.sas-notices-view-all:hover {
    background: #164a38;
    border-color: #164a38;
    color: #fff;
}

/* Main content grid */

.sas-notices-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

/* Featured announcement */

.sas-notice-featured {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    overflow: hidden;
    padding: 30px;
    background: #164a38;
    color: #fff;
}

.sas-notice-featured::after {
    content: "";
    position: absolute;
    right: -85px;
    bottom: -125px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(225, 190, 103, 0.25);
    border-radius: 50%;
    box-shadow:
        0 0 0 24px rgba(225, 190, 103, 0.035),
        0 0 0 48px rgba(225, 190, 103, 0.025);
    pointer-events: none;
}

.sas-notice-featured-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sas-notice-featured-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #e4c77d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.sas-notice-featured-label > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e4c77d;
}

.sas-notice-featured-icon {
    color: #e4c77d;
    font-size: 27px;
}

.sas-notice-featured-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 38px;
}

.sas-notice-category {
    display: inline-block;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.1);
    color: #e8d39d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sas-notice-featured-content h3 {
    max-width: 480px;
    margin: 17px 0 10px;
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(23px, 2.5vw, 31px);
    font-weight: 500;
    line-height: 1.35;
}

.sas-notice-featured-content > p {
    max-width: 470px;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.8;
}

.sas-notice-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    margin-top: auto;
    padding-top: 30px;
}

.sas-notice-date {
    color: #d7c79b;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.sas-notice-featured-footer a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e7c66e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
}

.sas-notice-featured-footer a:hover {
    color: #fff;
}

/* Latest notices */

.sas-notices-latest {
    padding: 27px 28px;
    border: 1px solid #e8e9e2;
    background: #fff;
}

.sas-notices-subheading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 19px;
    border-bottom: 1px solid #eceee8;
}

.sas-notices-subheading h3 {
    margin: 0;
    color: #164a38;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
    font-weight: 600;
}

.sas-notices-subheading > span {
    color: #a7832e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.sas-notices-list {
    display: flex;
    flex-direction: column;
}

.sas-notice-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #eceee8;
}

.sas-notice-item:last-child {
    border-bottom: none;
}

.sas-notice-item-date {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 7px;
    background: #f5f4ec;
    color: #8e702b;
    text-align: center;
}

.sas-notice-item-date span {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.5;
}

.sas-notice-item-content {
    min-width: 0;
}

.sas-notice-item-category {
    color: #a7832e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.sas-notice-item-content h4 {
    margin: 5px 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.sas-notice-item-content h4 a {
    color: #214b3c;
    text-decoration: none;
}

.sas-notice-item-content h4 a:hover {
    color: #a7832e;
}

.sas-notice-item-content p {
    margin: 0;
    color: #78837d;
    font-size: 12px;
    line-height: 1.6;
}

.sas-notice-item-arrow {
    color: #b28b36;
    font-size: 17px;
}

/* Empty state */

.sas-notices-empty {
    max-width: 720px;
    margin: 0 auto;
    padding: 54px 25px;
    border: 1px solid #e9e7dc;
    background: #fff;
    text-align: center;
}

.sas-notices-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 19px;
    border: 1px solid #dfc77f;
    border-radius: 50%;
    background: #faf7ec;
    color: #a7832e;
    font-size: 24px;
}

.sas-notices-empty h3 {
    margin: 0 0 12px;
    color: #164a38;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 27px;
    font-weight: 600;
}

.sas-notices-empty p {
    max-width: 490px;
    margin: 0 auto;
    color: #758078;
    font-size: 14px;
    line-height: 1.8;
}

/* Upcoming events */

.sas-upcoming-events {
    margin-top: 76px;
}

.sas-upcoming-heading {
    margin-bottom: 26px;
}

.sas-upcoming-heading h3 {
    margin: 0;
    color: #164a38;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 33px;
    font-weight: 600;
}

.sas-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.sas-event-card {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 16px;
    padding: 22px 19px;
    border: 1px solid #e8e9e2;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sas-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(28, 65, 49, 0.07);
}

.sas-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    background: #164a38;
    color: #fff;
}

.sas-event-date strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.1;
}

.sas-event-date span {
    margin-top: 3px;
    color: #e5c979;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sas-event-date small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
}

.sas-event-content {
    min-width: 0;
}

.sas-event-content > span {
    color: #a7832e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sas-event-content h4 {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.5;
}

.sas-event-content h4 a {
    color: #164a38;
    text-decoration: none;
}

.sas-event-content p {
    margin: 0 0 7px;
    color: #78837d;
    font-size: 11px;
    line-height: 1.6;
}

.sas-event-content > small {
    color: #8b918c;
    font-size: 10px;
}

.sas-event-link {
    color: #b28b36;
    font-size: 20px;
    text-decoration: none;
}

/* Bottom link */

.sas-notices-bottom {
    display: flex;
    justify-content: center;
    margin-top: 46px;
}

.sas-notices-bottom-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 16px 25px;
    background: #164a38;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.sas-notices-bottom-link span {
    color: #e5c979;
    font-size: 17px;
}

.sas-notices-bottom-link:hover {
    background: #0d3829;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 900px) {

    .sas-notices {
        padding: 80px 22px;
    }

    .sas-notices-grid {
        grid-template-columns: 1fr;
    }

    .sas-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .sas-notices {
        padding: 65px 18px;
    }

    .sas-notices-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        margin-bottom: 32px;
    }

    .sas-notices-heading h2 {
        font-size: 34px;
    }

    .sas-notices-description {
        font-size: 13px;
    }

    .sas-notice-featured {
        min-height: 310px;
        padding: 23px;
    }

    .sas-notice-featured-content {
        margin-top: 30px;
    }

    .sas-notice-featured-content h3 {
        font-size: 25px;
    }

    .sas-notice-featured-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .sas-notices-latest {
        padding: 22px 18px;
    }

    .sas-notices-subheading h3 {
        font-size: 21px;
    }

    .sas-notice-item {
        grid-template-columns: 62px minmax(0, 1fr) 14px;
        gap: 11px;
    }

    .sas-notice-item-date {
        min-height: 45px;
    }

    .sas-notice-item-content h4 {
        font-size: 13px;
    }

    .sas-notices-empty {
        padding: 42px 20px;
    }

    .sas-notices-empty h3 {
        font-size: 24px;
    }

    .sas-notices-empty p {
        font-size: 13px;
    }

    .sas-upcoming-events {
        margin-top: 55px;
    }

    .sas-upcoming-heading h3 {
        font-size: 29px;
    }

    .sas-events-grid {
        grid-template-columns: 1fr;
    }

    .sas-notices-bottom {
        margin-top: 32px;
    }

    .sas-notices-bottom-link {
        width: 100%;
        padding: 16px 12px;
        font-size: 9px;
    }

}
