/* ============================================================
   JKU NOTICE BOARD STYLESHEET
   Clean Inner-Page Layout with Matching University Banner Theme
   ============================================================ */

:root {
    --jku-navy-dark: #011d40;
    --jku-navy: #012754;
    --jku-blue: #034B9F;
    --jku-blue-light: #eaf2fc;
    --jku-gold: #EDB600;
    --jku-gold-hover: #d4a300;
    --jku-red: #dc2626;
    --jku-border: #e2e8f0;
    --jku-bg-card: #ffffff;
    --jku-text-main: #1e293b;
    --jku-text-muted: #64748b;
}

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMB / INNER PAGE BANNER
   Matching all other JKU inner pages (contact, privacy, news, etc.)
   ═══════════════════════════════════════════════════════════════ */
.breadcrumb {
    background-color: #034B9F;
    background-image: url("../img/breadcrumb-bg.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 80px 0;
    margin-bottom: 0;
    position: relative;
}

.breadcrumb h1 {
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 48px;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

@media (max-width: 575.98px) {
    .breadcrumb {
        padding: 40px 15px;
    }
    .breadcrumb h1 {
        font-size: 26px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTAINER & FILTER BAR
   ═══════════════════════════════════════════════════════════════ */
.notice-page-content {
    background-color: #f8fafc;
    padding: 36px 0 65px;
    min-height: 60vh;
}

.notice-filter-card {
    background: #ffffff;
    border: 1px solid var(--jku-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.notice-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.notice-cat-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--jku-navy);
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.notice-cat-btn:hover {
    border-color: var(--jku-blue);
    background: var(--jku-blue-light);
    color: var(--jku-blue);
}

.notice-cat-btn.active {
    background: var(--jku-navy);
    border-color: var(--jku-navy);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(1, 39, 84, 0.25);
}

.notice-search-wrap {
    position: relative;
}

.notice-search-input {
    width: 100%;
    padding: 10px 40px 10px 42px;
    border-radius: 30px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
}

.notice-search-input:focus {
    border-color: var(--jku-blue);
    box-shadow: 0 0 0 3px rgba(3, 75, 159, 0.15);
}

.notice-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--jku-text-muted);
    font-size: 15px;
}

.notice-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    display: none;
}

.notice-search-clear:hover {
    color: #334155;
}

/* ═══════════════════════════════════════════════════════════════
   NOTICE CARDS
   ═══════════════════════════════════════════════════════════════ */
.notices-list-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.notice-card {
    background: #ffffff;
    border: 1px solid var(--jku-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.notice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(1, 39, 84, 0.09);
    border-color: #93c5fd;
}

/* Date Box - Background matches the inner banner background image & color */
.notice-date-badge {
    background-color: #034B9F;
    background-image: url("../img/breadcrumb-bg.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #ffffff;
    min-width: 110px;
    max-width: 110px;
    padding: 22px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.notice-date-badge::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    background: var(--jku-gold);
    border-radius: 3px 3px 0 0;
}

.notice-date-day {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.notice-date-month {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffca28;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.notice-date-year {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Card Body Content */
.notice-card-body {
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.notice-meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.notice-meta-date-text {
    color: #B84110;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.notice-meta-date-text i {
    color: #B84110;
}

.notice-new-badge {
    background: #B84110;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    animation: noticePulse 2s infinite;
}

@keyframes noticePulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
    100% { transform: scale(1); opacity: 1; }
}

.notice-dept-pill {
    background: #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 12px;
    letter-spacing: 0.4px;
}

.notice-ref-pill {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.notice-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--jku-navy);
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.notice-title:hover {
    color: var(--jku-blue);
}

.notice-description {
    font-size: 16px;
    line-height: 1.55;
    color: #475569;
    margin-bottom: 16px;
}

/* Card Actions: Clean Text Buttons with NO Icons */
.notice-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.btn-view-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #B84110;
    color: #ffffff;
    border: 1.5px solid #B84110;
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(184, 65, 16, 0.2);
}

.btn-view-notice:hover {
    background: #9b350c;
    border-color: #9b350c;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(184, 65, 16, 0.35);
    transform: translateY(-1px);
}

.btn-download-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #034B9F;
    color: #ffffff;
    border: 1.5px solid #034B9F;
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(3, 75, 159, 0.2);
}

.btn-download-notice:hover {
    background: #012754;
    border-color: #012754;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(3, 75, 159, 0.35);
    transform: translateY(-1px);
}

/* Empty State */
.notice-empty-state {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    display: none;
}

.notice-empty-icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.notice-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--jku-navy);
    margin-bottom: 6px;
}

.notice-empty-desc {
    color: var(--jku-text-muted);
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto 16px;
}

/* ═══════════════════════════════════════════════════════════════
   PDF VIEWER MODAL
   ═══════════════════════════════════════════════════════════════ */
.notice-modal-header {
    background: var(--jku-navy);
    color: #ffffff;
    border-bottom: none;
    padding: 16px 24px;
}

.notice-modal-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.notice-modal-body {
    padding: 0;
    background: #1e293b;
    height: 78vh;
    min-height: 500px;
}

.notice-iframe-viewer {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.notice-modal-footer {
    background: #f8fafc;
    border-top: 1px solid var(--jku-border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Responsive adjustments for Mobile Devices (max-width: 767.98px) - Desktop untouched */
@media (max-width: 767.98px) {
    /* 1. Filter Card: All 5 Tab Buttons fully visible and neatly aligned */
    .notice-page-content {
        padding: 20px 0 45px;
    }

    .notice-filter-card {
        padding: 14px 14px 16px;
        margin-bottom: 18px;
        border-radius: 12px;
    }

    .notice-category-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
        width: 100%;
    }

    .notice-cat-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        font-weight: 600;
        border-radius: 20px;
        text-decoration: none;
        padding: 7px 10px;
        font-size: 12.5px;
        border: 1px solid #cbd5e1;
    }

    /* Row 1: 2 buttons (50% each) */
    .notice-cat-btn:nth-child(1),
    .notice-cat-btn:nth-child(2) {
        flex: 1 1 calc(50% - 4px);
    }

    /* Row 2: 3 buttons (33.3% each) */
    .notice-cat-btn:nth-child(3),
    .notice-cat-btn:nth-child(4),
    .notice-cat-btn:nth-child(5) {
        flex: 1 1 calc(33.333% - 6px);
        font-size: 11.5px;
        padding: 7px 4px;
    }

    .notice-search-wrap {
        width: 100%;
        margin-top: 0;
    }

    .notice-search-input {
        width: 100%;
        padding: 10px 38px 10px 40px;
        font-size: 13.5px;
        border-radius: 24px;
    }

    /* 2. Notice Card: Clean mobile card layout WITHOUT the blue date box */
    .notices-list-container {
        gap: 16px;
    }

    .notice-card {
        flex-direction: column;
        border-radius: 12px;
        overflow: hidden;
    }

    /* Remove the blue background date box on mobile */
    .notice-date-badge {
        display: none !important;
    }

    .notice-card-body {
        padding: 18px 16px;
        min-width: 0;
        width: 100%;
    }

    /* Prominently show the date at top of card in user's favorite #B84110 color */
    .notice-meta-top {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
    }

    .notice-meta-date-text {
        display: inline-flex !important;
        align-items: center;
        gap: 5px;
        color: #B84110 !important;
        font-size: 12.5px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .notice-meta-date-text i {
        color: #B84110 !important;
    }

    .notice-new-badge {
        background: #B84110 !important;
        color: #ffffff;
        font-size: 9.5px;
        font-weight: 800;
        padding: 2px 7px;
        border-radius: 4px;
        letter-spacing: 0.8px;
    }

    .notice-dept-pill {
        background: #e2e8f0;
        color: #334155;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 12px;
    }

    .notice-ref-pill {
        color: #64748b;
        font-size: 11.5px;
        font-weight: 500;
    }

    .notice-title {
        font-size: 15.5px;
        font-weight: 700;
        line-height: 1.4;
        color: var(--jku-navy);
        margin-bottom: 8px;
    }

    .notice-description {
        font-size: 15px;
        line-height: 1.5;
        color: #475569;
        margin-bottom: 14px;
    }

    /* Both buttons side-by-side (50% each) */
    .notice-actions {
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin-top: auto;
        width: 100%;
    }

    .btn-view-notice, 
    .btn-download-notice {
        flex: 1 1 50%;
        padding: 9px 12px;
        font-size: 13px;
        font-weight: 600;
        text-align: center;
        justify-content: center;
        border-radius: 6px;
    }
}
