﻿.notice-board-wrapper {
    background: #f9fafc; /* light card background */
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin: 30px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 80%;
    max-width: 1200px;
}

/* ===== Grid Header ===== */
.notice-grid-header th {
    background-color: #2f3f6b;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #d6dbea;
}

/* Header */
.notice-grid-header th {
    background-color: rgba(26, 42, 91, 0.9) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 8px 15px;
    height: 40px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Footer */
/* ===== Grid Footer ===== */
.notice-grid-footer td {
    background-color: #2f3f6b;
    height: 30px;
    border: 1px solid #d6dbea;
}

/* Normal rows */
/* ===== Grid Rows ===== */
.notice-grid-row td {
    background-color: #ffffff;
    padding: 10px 12px;
    font-size: 14px;
    color: #1a2a5b;
    border: 1px solid #e0e4f1; /* visible cell border */
}
/* Alternate row */
.notice-grid-alt-row td {
    background-color: #eef1f7; /* alternate row color */
    padding: 10px 12px;
    font-size: 14px;
    color: #1a2a5b;
    border: 1px solid #e0e4f1;
}

/* Cell text always visible */
.cell-text {
    color: #1a2a5b;
    display: block;
}

/* Action button */
.notice-btn {
    background-color: #1a2a5b;
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

    .notice-btn:hover {
        background-color: #0d1a3c;
        color: #fff;
    }

/* Responsive */
@media screen and (max-width: 768px) {
    .notice-board-wrapper {
        width: 95%;
        padding: 15px;
    }

    .notice-grid-header th,
    .notice-grid-footer td,
    .notice-grid-row td,
    .notice-grid-alt-row td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .notice-btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    .notice-title {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .notice-grid-header th,
    .notice-grid-footer td,
    .notice-grid-row td,
    .notice-grid-alt-row td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .notice-grid-row,
    .notice-grid-alt-row {
        display: block;
        margin-bottom: 15px;
        border-bottom: 2px solid rgba(255,255,255,0.1);
    }

    .notice-btn {
        width: 100%;
        text-align: center;
    }
}
.notice-search-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.notice-search {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(26,42,91,0.5);
    width: 200px;
    margin-right: 10px;
}

.notice-search-btn {
    background-color: #1a2a5b;
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

    .notice-search-btn:hover {
        background-color: #0d1a3c;
    }
/* ===============================
   MOBILE FRIENDLY NOTICE GRID
================================ */
@media screen and (max-width: 480px) {

    /* Hide table header */
    .notice-grid-header {
        display: none;
    }

    /* Each row becomes a card */
    .notice-grid-row,
    .notice-grid-alt-row {
        display: block;
        background: #ffffff;
        margin-bottom: 16px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        overflow: hidden;
    }

        /* Each cell becomes a row */
        .notice-grid-row td,
        .notice-grid-alt-row td {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 10px 12px;
            border: none;
            border-bottom: 1px solid #e0e4f1;
            font-size: 13px;
        }

            /* Label before value */
            .notice-grid-row td::before,
            .notice-grid-alt-row td::before {
                font-weight: 600;
                color: #1a2a5b;
                margin-right: 10px;
                white-space: nowrap;
            }

            /* Column labels mapping */
            .notice-grid-row td:nth-child(1)::before,
            .notice-grid-alt-row td:nth-child(1)::before {
                content: "S. No";
            }

            .notice-grid-row td:nth-child(2)::before,
            .notice-grid-alt-row td:nth-child(2)::before {
                content: "Title";
            }

            .notice-grid-row td:nth-child(3)::before,
            .notice-grid-alt-row td:nth-child(3)::before {
                content: "Description";
            }

            .notice-grid-row td:nth-child(4)::before,
            .notice-grid-alt-row td:nth-child(4)::before {
                content: "Category";
            }

            .notice-grid-row td:nth-child(5)::before,
            .notice-grid-alt-row td:nth-child(5)::before {
                content: "Date";
            }

            .notice-grid-row td:nth-child(6)::before,
            .notice-grid-alt-row td:nth-child(6)::before {
                content: "Action";
            }

    /* Action button full width */
    .notice-btn {
        width: 100%;
        text-align: center;
        margin-top: 6px;
    }
}
