/**
 * Kheda Arts and Commerce College - Dedicated Notice Board Stylesheet
 * Prefix: .notice-board-
 * Colors: Navy #01356F, Burgundy #792D43, Section Bg #F5E9EC, Charcoal #302B35, White #FFFFFF
 */

/* =========================================================================
   1. Section & Main Container
   ========================================================================= */
.notice-board-section {
    background-color: #ffffff;
    padding-top: 100px;
    padding-bottom: 100px;
}

.notice-board-container {
    max-width: 1080px;
    margin: 0 auto;
}

/* =========================================================================
   2. Filter Toolbar & Result Summary
   ========================================================================= */
.notice-board-toolbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 16px 22px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: 0 2px 10px rgba(1, 53, 111, 0.03);
}

.notice-board-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notice-board-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.notice-board-filter-btn:hover {
    background: #01356F;
    border-color: #01356F;
    color: #ffffff !important;
}

.notice-board-filter-btn.active {
    background: #01356F;
    border-color: #01356F;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(1, 53, 111, 0.25);
}

.notice-board-summary-text {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.notice-board-summary-text strong {
    color: #01356F;
}

/* =========================================================================
   3. Notice List & Row Cards
   ========================================================================= */
.notice-board-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notice-board-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #01356F;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(1, 53, 111, 0.03);
    position: relative;
}

.notice-board-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(1, 53, 111, 0.09);
    border-color: #cbd5e1;
}

/* Pinned Notice Style */
.notice-board-card.is-pinned {
    background: #fffdfd;
    border-left-color: #792D43;
    box-shadow: 0 3px 12px rgba(121, 45, 67, 0.06);
}

.notice-board-card.is-pinned:hover {
    box-shadow: 0 8px 26px rgba(121, 45, 67, 0.12);
}

/* Left Date Box */
.notice-board-date-box {
    width: 72px;
    height: 72px;
    background: #F5E9EC;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(121, 45, 67, 0.12);
    border: 1px solid rgba(121, 45, 67, 0.15);
}

.notice-board-date-day {
    font-size: 24px;
    font-weight: 800;
    color: #792D43;
    line-height: 1;
    margin-bottom: 2px;
}

.notice-board-date-month {
    font-size: 11px;
    font-weight: 700;
    color: #01356F;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Main Content Area */
.notice-board-content {
    flex: 1 1 auto;
    min-width: 0;
}

.notice-board-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.notice-board-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 3px 9px;
    text-transform: uppercase;
    line-height: 1.4;
}

.notice-board-badge-cat {
    background: #01356F;
    color: #ffffff;
}

.notice-board-badge-cat.announcements {
    background: #792D43;
    color: #ffffff;
}

.notice-board-badge-pin {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.notice-board-badge-pin i {
    font-size: 13px;
    color: #d97706;
}

.notice-board-badge-status.new {
    background: #dcfce7;
    color: #166534;
}

.notice-board-badge-status.active {
    background: #e0f2fe;
    color: #0369a1;
}

.notice-board-badge-status.upcoming {
    background: #fef9c3;
    color: #854d0e;
}

.notice-board-badge-status.archived {
    background: #f1f5f9;
    color: #64748b;
}

.notice-board-title {
    font-size: 17px;
    font-weight: 700;
    color: #01356F;
    line-height: 1.45;
    margin: 0 0 8px;
    word-break: break-word;
}

.notice-board-title a {
    color: #01356F;
    text-decoration: none;
    transition: color 0.2s ease;
}

.notice-board-title a:hover {
    color: #792D43;
}

.notice-board-meta {
    font-size: 12.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.notice-board-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.notice-board-meta-item i {
    font-size: 14px;
    color: #01356F;
}

/* Actions Right */
.notice-board-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.notice-board-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: none;
    line-height: 1.4;
}

.notice-board-btn-download {
    background: #01356F;
    color: #ffffff !important;
}

.notice-board-btn-download:hover {
    background: #0d4685;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 53, 111, 0.25);
}

.notice-board-btn-view {
    background: #F5E9EC;
    color: #792D43 !important;
    border: 1px solid rgba(121, 45, 67, 0.3);
}

.notice-board-btn-view:hover {
    background: #792D43;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(121, 45, 67, 0.25);
}

/* =========================================================================
   4. Pagination Component
   ========================================================================= */
.notice-board-pagination-nav {
    margin-top: 45px;
    display: flex;
    justify-content: center;
}

.notice-board-pagination-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.notice-board-pagination-list .page-item {
    display: inline-block;
}

.notice-board-pagination-list .page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #01356F;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    text-decoration: none !important;
    transition: all 0.2s ease;
    user-select: none;
}

.notice-board-pagination-list .page-link:hover:not(.disabled) {
    background: #01356F;
    border-color: #01356F;
    color: #ffffff;
    transform: translateY(-1px);
}

.notice-board-pagination-list .page-item.active .page-link {
    background: #01356F;
    border-color: #01356F;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(1, 53, 111, 0.25);
}

.notice-board-pagination-list .page-item.disabled .page-link {
    opacity: 0.45;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    pointer-events: none;
}

.notice-board-pagination-list .page-item.dots .page-link {
    border: none;
    background: transparent;
    color: #64748b;
    cursor: default;
    min-width: 28px;
    padding: 0;
}

/* =========================================================================
   5. Empty State & Notice Unavailable Card
   ========================================================================= */
.notice-board-empty-state {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(1, 53, 111, 0.05);
    border: 1px solid #e2e8f0;
    padding: 60px 30px;
    text-align: center;
    max-width: 600px;
    margin: 30px auto;
}

.notice-board-empty-icon {
    width: 80px;
    height: 80px;
    background: #F5E9EC;
    color: #792D43;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(121, 45, 67, 0.15);
}

.notice-board-empty-state h3 {
    font-size: 22px;
    font-weight: 700;
    color: #01356F;
    margin-bottom: 10px;
}

.notice-board-empty-state p {
    font-size: 15px;
    color: #64748b;
    margin: 0 auto 24px;
    max-width: 440px;
    line-height: 1.6;
}

.notice-board-empty-state .default-btn {
    padding: 10px 24px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #01356F;
    color: #ffffff;
    transition: all 0.25s ease;
}

.notice-board-empty-state .default-btn:hover {
    background: #0d4685;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(1, 53, 111, 0.2);
}

/* =========================================================================
   6. Responsive Design
   ========================================================================= */
@media (max-width: 991px) {
    .notice-board-section {
        padding-top: 35px;
        padding-bottom: 60px;
    }

    .notice-board-card {
        padding: 18px 20px;
    }

    .notice-board-title {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .notice-board-section {
        padding-top: 25px;
        padding-bottom: 45px;
    }

    .notice-board-toolbar {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-board-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 14px;
    }

    .notice-board-date-box {
        width: 100%;
        height: auto;
        padding: 6px 12px;
        flex-direction: row;
        gap: 8px;
        justify-content: flex-start;
    }

    .notice-board-date-day {
        font-size: 17px;
        margin-bottom: 0;
    }

    .notice-board-date-month {
        font-size: 12px;
    }

    .notice-board-actions {
        width: 100%;
        justify-content: flex-start;
        border-top: 1px solid #f1f5f9;
        padding-top: 12px;
    }

    .notice-board-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .notice-board-pagination-list .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}

