/* ═══ NOTICES SECTION ═══ */
section.notices {
    background-color: #ffffff;
    padding: 0;
    width: 100%;
}

.notices-banner {
    display: flex;
    width: 100%;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.nb-title {
    flex-shrink: 0;
    width: 100%;
    /* Initially covers everything */
    background-color: #800000;
    /* Maroon initial frame */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
    transition: width 1.2s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.notices-banner.revealed .nb-title {
    width: 22%;
    /* Shrinks to left side */
    background-color: #800000;
    /* Original maroon */
}

.title-stacked {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0;
    letter-spacing: 1px;
    position: absolute;
    padding-bottom: 20px;
    width: fit-content;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86);
    pointer-events: none;
}

.title-stacked::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 105%;
    height: 15px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'><path d='M 5 18 C 20 8, 50 4, 95 6' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round'/></svg>") no-repeat center center;
    background-size: 100% 100%;
}

.title-inline {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    margin: 0;
    white-space: nowrap;
    position: relative;
    color: #ffffff;
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86);
    pointer-events: none;
}

.notices-banner.revealed .title-stacked {
    opacity: 1;
    position: relative;
    transform: scale(1);
    transition-delay: 0.4s;
}

.notices-banner.revealed .title-inline {
    opacity: 0;
    position: absolute;
    transform: scale(1.2);
}

/* Unique Custom Entrance Animation */
@keyframes noticeEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nb-item {
    flex: 1;
    min-width: 250px;
    border-left: 3px solid #000;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy hover */
    cursor: pointer;
    background: #fff;
    opacity: 0;
    /* Hidden initially */
}

/* Entrance animation triggers only when revealed */
.notices-banner.revealed .nb-item {
    animation: noticeEntrance 0.8s ease-out forwards;
}

/* Staggered delays for the 3 notice blocks */
.notices-banner.revealed .nb-item:nth-of-type(2) {
    animation-delay: 0.3s;
}

.notices-banner.revealed .nb-item:nth-of-type(3) {
    animation-delay: 0.5s;
}

.notices-banner.revealed .nb-item:nth-of-type(4) {
    animation-delay: 0.7s;
}

/* Custom Hover Effect */
.nb-item:hover {
    background: #fdfdfd;
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(209, 48, 20, 0.1);
    z-index: 2;
}

.nb-item .notice-date {
    font-size: 12px;
    color: #d13014;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.nb-item h3 {
    font-size: 16px;
    color: #000;
    margin: 0;
    line-height: 1.4;
    font-weight: 700;
}

.nb-item .notice-desc {
    margin: 8px 0 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    word-break: break-word;
}

.notice-read-toggle {
    background: none;
    border: none;
    color: #800000;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    text-decoration: underline;
    display: inline-block;
    transition: color 0.2s ease;
}

.notice-read-toggle:hover {
    color: #b30000;
}

.notice-desc .notice-text.expanded {
    max-height: 130px;
    overflow-y: auto;
    display: block;
    margin-bottom: 4px;
}

.nb-action {
    flex: 0 0 15%;
    border-left: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-more-btn {
    background-color: #800000;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    transition: transform 0.3s, background-color 0.3s;
}

.view-more-btn:hover {
    transform: scale(1.05);
    background-color: #990000;
    /* Lighter maroon on hover */
    color: #fff;
}

.view-more-btn svg {
    width: 26px;
    height: 26px;
    stroke-width: 3;
    margin-bottom: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .notices-banner {
        flex-direction: column;
    }

    .notices-banner .nb-title,
    .notices-banner.revealed .nb-title,
    .notices-banner .nb-item,
    .notices-banner .nb-action {
        width: 100%;
        flex: none;
        border-left: none;
        border-bottom: 3px solid #000;
        min-height: 120px;
    }
}

/* ═══ ALL NOTICES PAGE (notices.html) ═══ */
section.all-notices {
    padding: 160px 0 80px 0;
    /* Increased top padding */
    background-color: var(--light);
    min-height: 80vh;
}

.all-notices-list {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 20px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.notice-list-item {
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
    display: none;
    /* Hidden by default for JS pagination */
}

/* Show first 3 initially - fallback if JS fails, but JS will handle this */
.notice-list-item:nth-child(-n+3) {
    display: block;
}

.notice-list-item:last-of-type {
    border-bottom: none;
}

.notice-list-item .notice-date {
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.notice-list-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 700;
}

.notice-list-item p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 30px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.2);
}

/* ═══ NOTICE PAGE TRANSITION ANIMATION ═══ */
.notice-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #800000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    /* Start off-screen RIGHT */
    transition: transform 0.8s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

/* Hard-skip for normal navbar navigation */
html.skip-transition .notice-transition {
    display: none !important;
}

.notice-transition.active {
    transform: translateX(0);
    /* Center screen */
}

.notice-transition.slide-out {
    transform: translateX(-100%);
    /* Exit off-screen LEFT */
}

.nt-content {
    display: flex;
    gap: 15px;
    font-family: 'Playfair Display', serif;
}

.nt-item {
    overflow: hidden;
}

.nt-item span {
    display: block;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: #800000;
    transform: translateY(105%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.785, 0.135, 0.15, 0.86),
        opacity 0.6s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.notice-transition.active .nt-item span {
    transform: translateY(0);
    opacity: 1;
}

/* Hard-revealed state for seamless page loads */
.notice-transition .nt-item span.revealed {
    transform: translateY(0);
    opacity: 1;
    transition: none;
}

/* Staggered text reveals */
.notice-transition.active .nt-item:nth-child(1) span {
    transition-delay: 0.1s;
}

.notice-transition.active .nt-item:nth-child(2) span {
    transition-delay: 0.2s;
}

.notice-transition.active .nt-item:nth-child(3) span {
    transition-delay: 0.3s;
}

        /* EYE ANIMATION CSS */

        /* Premium Filter Styles */
        .filter-container {
            margin-bottom: 40px;
        }

        .filter-content {
            display: flex;
            gap: 16px;
            align-items: center;
            flex-wrap: wrap;
        }

        .filter-label {
            font-weight: 700;
            color: #2c3e50;
            font-size: 15px;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        #yearFilter {
            padding: 12px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            min-width: 180px;
            cursor: pointer;
            background-color: #ffffff;
            color: #333;
            transition: all 0.3s ease;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            padding-right: 36px;
        }

        #yearFilter:hover {
            border-color: var(--primary, #1a73e8);
            box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
        }

        #yearFilter:focus {
            outline: none;
            border-color: var(--primary, #1a73e8);
            box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
        }

        #clearFilter {
            background: transparent;
            color: var(--primary, #1a73e8);
            border: 2px solid var(--primary, #1a73e8);
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        #clearFilter:hover {
            background: var(--primary, #1a73e8);
            color: white;
            transform: translateY(-2px);
        }

        #clearFilter:active {
            transform: translateY(0);
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .filter-container {
                padding: 20px;
                margin-bottom: 30px;
            }

            .filter-content {
                gap: 12px;
            }

            .filter-label {
                width: 100%;
                margin-bottom: 8px;
                font-size: 14px;
            }

            #yearFilter,
            #clearFilter {
                flex: 1;
                min-width: 100px;
            }

            #yearFilter {
                min-width: 100%;
            }
        }

        @media (max-width: 480px) {
            .filter-container {
                padding: 16px;
                border-radius: 10px;
            }

            .filter-label {
                font-size: 13px;
            }

            #yearFilter,
            #clearFilter {
                font-size: 13px;
                padding: 10px 14px;
            }

            #clearFilter {
                padding: 10px 16px;
            }
        }
    
