@import url('https://fonts.googleapis.com/css2?family=Allison&family=Bebas+Neue&family=Dancing+Script:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Passion+One:wght@400;700;900&family=Petit+Formal+Script&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Tiny5&display=swap');

/* ---------------------------------------------------------------
   Animations
--------------------------------------------------------------- */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    background-color: var(--gnc-cream);
}

.newsannouncement-hero {
    position: relative;
    background-color: var(--gnc-cream);
    background-image: url('/assets/images/Section Header.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    border-bottom: 1px solid var(--gnc-border);
}

.newsannouncement-hero-inner {
    padding: 40px 15px 44px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.7s ease-out forwards;
}

.newsannouncement-hero-inner p:first-of-type {
    color: var(--gnc-gold);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.newsannouncement-hero-inner h1 {
    color: var(--gnc-green-light);
    font-weight: 700;
    font-size: 2.5rem;
    font-family: 'Noto Serif', serif;
    margin-bottom: 12px;
}

.newsannouncement-desc{
    color: var(--gnc-text-gray);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    max-width: 700px;
    margin-bottom: 0;
}

/* ---------------------------------------------------------------
   Latest Announcements feed section
--------------------------------------------------------------- */
.na-feed {
    background: var(--gnc-cream);
}

.na-feed-title {
    font-family: 'Noto Serif', serif;
    color: var(--gnc-green-light);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.na-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.na-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--gnc-border);
    border-radius:0;
    padding: 4px;
    gap: 2px;
}
.na-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius:0;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: .88rem;
    color: var(--gnc-text-gray);
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.na-tab.active {
    background: var(--gnc-green-light);
    color: #fff;
}
.na-tab:not(.active):hover {
    background: var(--gnc-cream);
    color: var(--gnc-green-light);
}

.na-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
}
.na-search, .na-select {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--gnc-border);
    border-radius:0;
    padding: 8px 14px;
    color: var(--gnc-text-gray);
    font-family: 'Inter', sans-serif;
    font-size: .88rem;
}
.na-search input, .na-select select {
    border: none;
    background: transparent;
    outline: none;
    color: var(--gnc-text-dark);
    font-family: 'Inter', sans-serif;
    font-size: .88rem;
}
.na-search { flex: 1 1 300px; min-width: 0; max-width: 100%; }
.na-search input { width: 260px; min-width: 0; flex: 1 1 auto; }
.na-select select { cursor: pointer; }

.na-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--gnc-border);
    border-radius:0;
    padding: 8px 16px;
    font-family: 'Inter', sans-serif;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gnc-text-dark);
}
.na-filter-btn:hover { background: var(--gnc-green-light, #094024); color: #fff; }

/* --- Animated Feed Cards --- */
.na-card {
    background: #fff;
    border: 1px solid var(--gnc-border);
    border-radius:0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    /* Notice there is no fixed delay here, allowing the inline PHP style to handle staggering */
    animation: fadeInUp 0.6s ease-out backwards; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.na-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.na-ribbon {
    position: absolute;
    top: 14px;
    left: 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 5px 14px 5px 12px;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.na-ribbon span { color: var(--gnc-gold-light); margin-right: 2px; }
.na-ribbon-announcement { background: var(--gnc-green-light); }
.na-ribbon-news { background: var(--gnc-green-light); }

.na-card-img-wrap { height: 190px; width: 100%; background: var(--gnc-cream); overflow: hidden; }
.na-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.na-card:hover .na-card-img { transform: scale(1.05); }

.na-card-img-fallback {
    display: flex; align-items: center; justify-content: center;
    color: #c3cbc4; font-size: 2rem;
}

.na-card-body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; flex-grow: 1; }

.na-card-title {
    font-family: 'Noto Serif', serif;
    color: var(--gnc-text-dark);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: .4rem;
    transition: color 0.2s;
}
.na-card:hover .na-card-title { color: var(--gnc-green-light); }

.na-card-date {
    font-family: 'Inter', sans-serif;
    font-size: .8rem;
    color: var(--gnc-text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: .5rem;
}
.na-card-author {
    font-family: 'Inter', sans-serif;
    font-size: .78rem;
    color: var(--gnc-text-gray);
    margin-bottom: .4rem;
}

.na-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    color: var(--gnc-text-gray);
    flex-grow: 1;
    margin-bottom: .75rem;
    line-height: 1.5;
}

.na-card-divider { border-top: 1px solid var(--gnc-border); margin: 0 0 .6rem; }

.na-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: .75rem;
    flex-wrap: wrap;
}
.na-card-footer-date {
    font-family: 'Inter', sans-serif;
    font-size: .78rem;
    color: var(--gnc-text-gray);
}

.na-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: .68rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius:0;
}
.na-badge-fb   { background: #e7f0fe; color: #1877F2; }
.na-badge-news { background: rgba(211,166,58,0.16); color: #8a6d1f; border: 1px solid rgba(211,166,58,0.35); }
.na-badge-ann  { background: rgba(31,94,44,0.1); color: var(--gnc-green-light); border: 1px solid rgba(31,94,44,0.3); }

.na-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gnc-gold);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}
.na-read-more:hover { color: var(--gnc-gold-light); gap: 10px; }

.na-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 2.5rem;
}
.na-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    border-radius:0;
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gnc-text-gray);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.na-page-link.active { background: var(--gnc-green-light); color: #fff; }
.na-page-link:not(.active):hover { background: var(--gnc-cream); }
.na-page-next { color: var(--gnc-green-light); }

@media (max-width: 767px) {
    .na-toolbar { flex-direction: column; align-items: stretch; }
    .na-filters { justify-content: space-between; }
    .na-search input { width: 100%; }
}

/* ---------------------------------------------------------------
   Pinned announcements / news card
--------------------------------------------------------------- */
.gnc-pinned-carousel {
    animation: fadeInUp 0.7s ease-out backwards;
}
.gnc-pinned-carousel,
.gnc-pinned-carousel .carousel-inner,
.gnc-pinned-carousel .carousel-item {
    background: transparent !important;
    box-shadow: none !important;
    border: 0;
}
.gnc-pinned-carousel .carousel-inner {
    border-radius:0;
    /* room for the hover shadow so the carousel's overflow:hidden doesn't cut it off with a hard edge */
    padding: 8px 10px 26px;
    margin: -8px -10px -26px;
}
.gnc-pinned-card {
    box-shadow: none !important;
    display: flex;
    background: #fff;
    border-radius:0;
    padding: 12px;
    gap: 28px;
    height: 420px;
    overflow: hidden;
    border: 1px solid rgba(9, 64, 36, .08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.gnc-pinned-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(9, 64, 36, 0.05) !important;
    border-color: rgba(9, 64, 36, 0.15);
}
.gnc-pinned-media {
    flex: 0 0 46%;
    max-width: 46%;
    min-height: 0;
    height: 100%;
    border-radius:0;
    overflow: hidden;
    background: #eef1ee;
}
.gnc-pinned-media img {
    width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease;
}
.gnc-pinned-card:hover .gnc-pinned-media img {
    transform: scale(1.03);
}
.gnc-pinned-slide-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #c3cbc4; font-size: 3rem;
}
.gnc-pinned-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 16px 6px 0;
}
.gnc-pinned-badge {
    display: inline-block;
    background: #FBE7A6; color: #7a5a00;
    border: 1px solid #EABA3B;
    font-family: 'Inter', sans-serif;
    font-weight: 700; font-size: .68rem; letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 12px; border-radius:0;
}
.gnc-pinned-tags {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 1rem;
}
.gnc-pinned-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: .8rem; font-weight: 700;
    color: #8a6d1f;
    margin-bottom: .6rem;
}
.gnc-pinned-label i { color: #EABA3B; font-size: .95rem; }
.gnc-pinned-title {
    font-family: 'Noto Serif', serif;
    font-weight: 700; font-size: 1.7rem; line-height: 1.25;
    color: #094024;
    margin-bottom: .35rem;
}
.gnc-pinned-date {
    font-family: 'Inter', sans-serif;
    font-size: .92rem; color: #3b4a40;
    margin-bottom: 1rem;
}
.gnc-pinned-intro {
    font-family: 'Inter', sans-serif;
    font-size: .85rem; color: #33413a;
    margin-bottom: .8rem;
}
.gnc-pinned-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.gnc-pinned-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: .85rem; color: #33413a; line-height: 1.4;
}
.gnc-pinned-list li i {
    color: #1F5E2C; font-size: .95rem; margin-top: 1px; flex-shrink: 0;
}
.gnc-pinned-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-top: 1.5rem;
}
.gnc-pinned-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #094024; color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: .85rem;
    padding: 10px 20px; border-radius:0;
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s ease;
}
.gnc-pinned-btn:hover { background: #EABA3B; color: #094024; transform: translateY(-2px); }
.gnc-pinned-nav { display: flex; gap: 10px; }
.gnc-pinned-nav button {
    width: 42px; height: 42px; border-radius:0;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: #094024;
    border: 1px solid #d5dbd6; font-size: .95rem;
    transition: background .2s, border-color .2s, transform .2s ease;
}
.gnc-pinned-nav button:hover { background: #f1f5f2; border-color: #094024; transform: scale(1.05); }

@media (max-width: 768px) {
    .gnc-pinned-card {
        flex-direction: column;
        gap: 16px;
        height: auto;
        box-sizing: border-box;
    }
    .gnc-pinned-media {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }
    .gnc-pinned-body {
        flex: 1 1 auto;
        min-height: 0;
        padding: 0 8px 8px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .gnc-pinned-content {
        flex: 1 1 auto;
        min-height: 0;
    }
    .gnc-pinned-footer {
        flex-shrink: 0;
        margin-top: auto;
    }
    .gnc-pinned-title {
        font-size: 1.35rem;
        overflow-wrap: anywhere;
    }
    .gnc-pinned-intro {
        overflow-wrap: anywhere;
    }
}


@media (max-width: 576px) {
    .gnc-pinned-footer { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------
   Sidebar Animations 
--------------------------------------------------------------- */
.na-sidebar .gnc-upcoming-card {
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.na-sidebar .gnc-upcoming-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(9,64,36,0.06);
}

.na-sidebar .na-events-card {
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.na-sidebar .na-events-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(9,64,36,0.06);
}

/* ---------------------------------------------------------------
   Card refinement (matches reference video)
   Hover = card lifts 4px + larger soft shadow, image zooms slightly.
--------------------------------------------------------------- */
.na-card {
    border-radius:0;
    border-color: rgba(9, 64, 36, .08);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Same hover as .gnc-pinned-card */
.na-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(9, 64, 36, 0.05);
    border-color: rgba(9, 64, 36, 0.15);
}
.na-card .na-card-img { transition: transform 0.6s ease; }
.na-card:hover .na-card-img { transform: scale(1.03); }

.na-card-img-wrap { height: 200px; }
.na-card-img-fallback { background: #eef1ee; color: #c3cbc4; font-size: 2.2rem; }

.na-card-body { padding: 14px 16px 16px; }
.na-card-body > div:last-child {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.na-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: .6rem;
}
.na-card-meta .na-card-date { margin-bottom: 0; }
.na-card-meta .na-badge { padding: 2px 8px; }

.na-card-excerpt {
    font-size: .82rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.na-card-body .na-read-more {
    margin-top: auto;
    align-self: flex-start;
    font-size: .8rem;
}
