
/* =====================================================
   ST. AUGUSTINE SCHOOL
   PUBLIC NOTICES & EVENTS PAGE
===================================================== */

.sas-public-notices {
    --notice-green: #064b38;
    --notice-green-dark: #033b2c;
    --notice-gold: #d5a52e;
    --notice-gold-light: #f1d88b;
    --notice-red: #a83232;
    --notice-text: #26352f;
    --notice-muted: #78847e;
    --notice-border: #e8ece8;
    --notice-bg: #f7f8f5;

    color: var(--notice-text);
    background: #ffffff;
    font-family: 'DM Sans', sans-serif;
}

.sas-public-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


/* =====================================================
   PAGE HERO
===================================================== */

.sas-notices-hero {
    position: relative;
    overflow: hidden;
    padding: 105px 0 95px;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(213, 165, 46, 0.13),
            transparent 32%
        ),
        linear-gradient(
            125deg,
            #063d2f 0%,
            #07523d 55%,
            #0b6046 100%
        );
    color: #ffffff;
}

.sas-notices-hero::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    right: -160px;
    bottom: -300px;
    border: 1px solid rgba(241, 216, 139, 0.23);
    border-radius: 50%;
    box-shadow:
        0 0 0 35px rgba(241, 216, 139, 0.035),
        0 0 0 75px rgba(241, 216, 139, 0.025);
    pointer-events: none;
}

.sas-notices-hero .sas-public-container {
    position: relative;
    z-index: 1;
}

.sas-public-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    color: var(--notice-gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.3px;
}

.sas-public-eyebrow span {
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--notice-gold);
}

.sas-notices-hero h1 {
    max-width: 850px;
    margin: 0;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 5.2vw, 66px);
    font-weight: 600;
    line-height: 1.13;
    letter-spacing: -1.5px;
}

.sas-notices-hero h1 em {
    color: var(--notice-gold-light);
    font-weight: 500;
}

.sas-notices-hero > .sas-public-container > p:not(.sas-public-eyebrow) {
    max-width: 650px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 16px;
    line-height: 1.8;
}

.sas-notices-hero-accent {
    display: flex;
    gap: 6px;
    margin-top: 32px;
}

.sas-notices-hero-accent span:first-child {
    width: 48px;
    height: 3px;
    background: var(--notice-gold);
}

.sas-notices-hero-accent span:last-child {
    width: 15px;
    height: 3px;
    background: #ffffff;
    opacity: 0.8;
}


/* =====================================================
   NOTICE LISTING
===================================================== */

.sas-notices-listing {
    padding: 65px 0 100px;
    background: var(--notice-bg);
}


/* Search and filters */

.sas-notices-filter {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 55px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--notice-border);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(20, 50, 36, 0.045);
}

.sas-notices-search {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 10px;
}

.sas-notices-search input {
    width: 100%;
    min-width: 0;
    height: 49px;
    padding: 0 17px;
    border: 1px solid var(--notice-border);
    border-radius: 5px;
    outline: none;
    color: var(--notice-text);
    background: #fbfcfa;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sas-notices-search input:focus {
    border-color: var(--notice-green);
    box-shadow: 0 0 0 3px rgba(6, 75, 56, 0.08);
}

.sas-notices-search button {
    flex-shrink: 0;
    min-width: 105px;
    height: 49px;
    padding: 0 22px;
    border: 0;
    border-radius: 5px;
    color: #ffffff;
    background: var(--notice-green);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.sas-notices-search button:hover {
    background: var(--notice-green-dark);
    transform: translateY(-1px);
}

.sas-notices-category-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sas-notices-category-filter label {
    color: var(--notice-muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.sas-notices-category-filter select {
    width: 185px;
    height: 49px;
    padding: 0 35px 0 13px;
    border: 1px solid var(--notice-border);
    border-radius: 5px;
    outline: none;
    color: var(--notice-text);
    background-color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.sas-notices-category-filter select:focus {
    border-color: var(--notice-green);
}


/* Results heading */

.sas-public-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--notice-border);
}

.sas-public-results-heading h2 {
    margin: 0;
    color: var(--notice-green);
    font-family: 'Playfair Display', serif;
    font-size: 29px;
    font-weight: 600;
}

.sas-public-results-heading > span {
    color: var(--notice-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}


/* =====================================================
   NOTICE CARDS
===================================================== */

.sas-public-notice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.sas-public-notice-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--notice-border);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(20, 50, 36, 0.035);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.sas-public-notice-card:hover {
    transform: translateY(-5px);
    border-color: rgba(213, 165, 46, 0.65);
    box-shadow: 0 15px 35px rgba(20, 50, 36, 0.09);
}


/* Optional notice image */

.sas-public-notice-image {
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #edf1ec;
}

.sas-public-notice-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.sas-public-notice-card:hover .sas-public-notice-image img {
    transform: scale(1.045);
}


/* Card content */

.sas-public-notice-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 23px;
}

.sas-public-card-meta,
.sas-notice-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sas-public-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 3px;
    color: var(--notice-green);
    background: rgba(6, 75, 56, 0.08);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.sas-public-featured,
.sas-public-pinned {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 3px;
    color: #795a12;
    background: #fbf2d9;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.sas-public-pinned {
    color: #ffffff;
    background: var(--notice-green);
}

.sas-public-card-date {
    display: block;
    margin-top: 17px;
    color: var(--notice-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.sas-public-notice-card h3 {
    margin: 10px 0 0;
    color: var(--notice-green);
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
}

.sas-public-notice-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.sas-public-notice-card h3 a:hover {
    color: #a77b1d;
}

.sas-public-notice-card-body > p {
    margin: 12px 0 0;
    color: #68756e;
    font-size: 13px;
    line-height: 1.8;
}

.sas-public-event-date {
    display: block;
    margin-top: 13px;
    color: var(--notice-green);
    font-size: 11px;
    font-weight: 700;
}

.sas-public-read-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 25px;
    color: var(--notice-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}

.sas-public-read-more:hover {
    gap: 17px;
    color: #a77b1d;
}


/* =====================================================
   PAGINATION
===================================================== */

.sas-notices-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 55px;
    padding-top: 25px;
    border-top: 1px solid var(--notice-border);
}

.sas-notices-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid var(--notice-border);
    border-radius: 4px;
    color: var(--notice-green);
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.sas-notices-pagination a:hover {
    border-color: var(--notice-green);
    color: #ffffff;
    background: var(--notice-green);
}

.sas-notices-pagination > span {
    color: var(--notice-muted);
    font-size: 12px;
    font-weight: 600;
}


/* =====================================================
   EMPTY STATES
===================================================== */

.sas-public-empty,
.sas-notices-not-found .sas-public-container {
    padding: 75px 25px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--notice-border);
    border-radius: 9px;
}

.sas-not-found-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #9a741f;
    background: #fbf2d9;
    font-size: 25px;
}

.sas-public-empty h2,
.sas-notices-not-found h1 {
    margin: 22px 0 0;
    color: var(--notice-green);
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 600;
}

.sas-public-empty p,
.sas-notices-not-found p {
    max-width: 540px;
    margin: 13px auto 0;
    color: var(--notice-muted);
    font-size: 14px;
    line-height: 1.8;
}

.sas-public-empty > a,
.sas-notices-not-found a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    margin-top: 25px;
    padding: 0 22px;
    border-radius: 4px;
    color: #ffffff;
    background: var(--notice-green);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.sas-public-empty > a:hover,
.sas-notices-not-found a:hover {
    background: var(--notice-green-dark);
}


/* =====================================================
   INDIVIDUAL NOTICE DETAIL
===================================================== */

.sas-notice-detail {
    padding: 45px 0 100px;
    background: var(--notice-bg);
}

.sas-notice-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: #99a39d;
    font-size: 11px;
}

.sas-notice-breadcrumb a {
    color: var(--notice-green);
    font-weight: 600;
    text-decoration: none;
}

.sas-notice-breadcrumb a:hover {
    color: #a77b1d;
}

.sas-notice-detail-article {
    overflow: hidden;
    padding: 55px;
    background: #ffffff;
    border: 1px solid var(--notice-border);
    border-radius: 9px;
    box-shadow: 0 8px 35px rgba(20, 50, 36, 0.045);
}

.sas-notice-detail-header h1 {
    max-width: 900px;
    margin: 22px 0 0;
    color: var(--notice-green);
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 49px);
    font-weight: 600;
    line-height: 1.2;
}

.sas-notice-detail-summary {
    max-width: 850px;
    margin: 18px 0 0;
    color: #66736c;
    font-size: 16px;
    line-height: 1.8;
}

.sas-notice-detail-date {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;
    margin-top: 25px;
    padding-top: 19px;
    border-top: 1px solid var(--notice-border);
    color: var(--notice-muted);
    font-size: 11px;
    font-weight: 600;
}

.sas-notice-detail-image {
    width: 100%;
    max-width: 100%;
    margin-top: 35px;
    overflow: hidden;
    border-radius: 6px;
    background: #edf1ec;
    aspect-ratio: 16 / 9;
}

.sas-notice-detail-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sas-notice-detail-content {
    margin-top: 38px;
    color: #46554d;
    font-size: 15px;
    line-height: 2;
    overflow-wrap: anywhere;
}

.sas-notice-attachment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding: 22px;
    border: 1px solid var(--notice-border);
    border-left: 4px solid var(--notice-gold);
    border-radius: 5px;
    background: #fbfcfa;
}

.sas-notice-attachment > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sas-notice-attachment strong {
    color: var(--notice-green);
    font-size: 14px;
}

.sas-notice-attachment span {
    color: var(--notice-muted);
    font-size: 12px;
}

.sas-notice-attachment a {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 17px;
    border-radius: 4px;
    color: #ffffff;
    background: var(--notice-green);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.sas-notice-attachment a:hover {
    background: var(--notice-green-dark);
}

.sas-notice-back {
    margin-top: 28px;
}

.sas-notice-back a {
    color: var(--notice-green);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.sas-notice-back a:hover {
    color: #a77b1d;
}


/* =====================================================
   NOT FOUND PAGE
===================================================== */

.sas-notices-not-found {
    padding: 85px 0 100px;
    background: var(--notice-bg);
}

.sas-notices-not-found .sas-public-container {
    max-width: 800px;
}


/* =====================================================
   RESPONSIVE: TABLET
===================================================== */

@media (max-width: 1000px) {

    .sas-public-notice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .sas-notice-detail-article {
        padding: 38px;
    }

}


/* =====================================================
   RESPONSIVE: MOBILE
===================================================== */

@media (max-width: 650px) {

    .sas-public-container {
        width: calc(100% - 36px);
    }

    .sas-notices-hero {
        padding: 75px 0 68px;
    }

    .sas-public-eyebrow {
        font-size: 9px;
        letter-spacing: 1.6px;
    }

    .sas-notices-hero h1 {
        font-size: clamp(35px, 10vw, 46px);
        letter-spacing: -0.7px;
    }

    .sas-notices-hero > .sas-public-container > p:not(.sas-public-eyebrow) {
        font-size: 14px;
    }

    .sas-notices-listing {
        padding: 38px 0 65px;
    }

    .sas-notices-filter {
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 35px;
        padding: 15px;
    }

    .sas-notices-search {
        width: 100%;
    }

    .sas-notices-search input,
    .sas-notices-search button {
        height: 46px;
    }

    .sas-notices-search button {
        min-width: 82px;
        padding: 0 13px;
    }

    .sas-notices-category-filter {
        align-items: center;
        justify-content: space-between;
    }

    .sas-notices-category-filter select {
        flex: 1;
        width: auto;
        height: 45px;
    }

    .sas-public-results-heading {
        margin-bottom: 18px;
    }

    .sas-public-results-heading h2 {
        font-size: 25px;
    }

    .sas-public-notice-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .sas-public-notice-card-body {
        padding: 20px;
    }

    .sas-public-notice-card h3 {
        font-size: 20px;
    }

    .sas-notices-pagination {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 35px;
    }

    .sas-notice-detail {
        padding: 28px 0 65px;
    }

    .sas-notice-breadcrumb {
        margin-bottom: 18px;
        font-size: 10px;
    }

    .sas-notice-detail-article {
        padding: 23px 19px;
    }

    .sas-notice-detail-header h1 {
        margin-top: 17px;
        font-size: 32px;
    }

    .sas-notice-detail-summary {
        font-size: 14px;
    }

    .sas-notice-detail-date {
        flex-direction: column;
        gap: 9px;
    }

    .sas-notice-detail-image {
        margin-top: 25px;
        aspect-ratio: 16 / 9;
    }

    .sas-notice-detail-content {
        margin-top: 27px;
        font-size: 14px;
        line-height: 1.85;
    }

    .sas-notice-attachment {
        align-items: flex-start;
        flex-direction: column;
        padding: 17px;
    }

    .sas-public-empty,
    .sas-notices-not-found .sas-public-container {
        padding: 55px 20px;
    }

    .sas-public-empty h2,
    .sas-notices-not-found h1 {
        font-size: 26px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

    .sas-notices-search {
        flex-direction: column;
    }

    .sas-notices-search button {
        width: 100%;
    }

    .sas-notice-detail-article {
        padding: 20px 15px;
    }

}
