/* Plugin: Recent Posts Table for GovJobs */
/* Author: Gyanesh Kumare */
/* Description: Minimalistic styling for the recent posts table */

/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.5;
    background-color: #f8f8f8;
    color: #333;
}

/* Container for the Recent Posts Table */
.recent-posts-table {
    font-family: 'Roboto', sans-serif;
    margin: 15px auto;
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 95%;
    max-width: 1200px;
}

/* Heading for each date group (All Updates - [date]) */
.recent-posts-table .post-date {
    font-size: 1.6em;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
}

/* Table Styling */
.recent-posts-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

/* Table Header */
.recent-posts-table th {
    background-color: #f7f7f7;
    color: #333;
    padding: 12px 15px;
    font-size: 1em;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Table Data Cells */
.recent-posts-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #f2f2f2;
    color: #444;
    font-size: 1em;
}

/* Styling for Serial Number */
.recent-posts-table .serial-number {
    font-weight: bold;
    color: #555;
    text-align: center;
}

/* Links inside the table */
.recent-posts-table td a {
    color: #0073e6;
    text-decoration: none;
    transition: color 0.3s;
}

.recent-posts-table td a:hover {
    color: #005bb5;
    text-decoration: underline;
}

/* Zebra Striping for Table Rows */
.recent-posts-table table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.recent-posts-table table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .recent-posts-table {
        padding: 10px;
    }

    .recent-posts-table .post-date {
        font-size: 1.5em;
    }

    .recent-posts-table table th, .recent-posts-table table td {
        font-size: 0.95em;
        padding: 8px 10px;
    }
}

@media screen and (max-width: 768px) {
    .recent-posts-table {
        padding: 10px;
    }

    .recent-posts-table table {
        font-size: 0.9em;
    }

    .recent-posts-table .serial-number {
        font-size: 0.9em;
    }

    .recent-posts-table .post-date {
        font-size: 1.4em;
    }
}

@media screen and (max-width: 576px) {
    .recent-posts-table {
        padding: 8px;
    }

    .recent-posts-table .post-date {
        font-size: 1.3em;
    }

    .recent-posts-table table {
        font-size: 0.85em;
    }

    .recent-posts-table .serial-number {
        font-size: 0.85em;
    }
}

/* Table Hover Effects */
.recent-posts-table table tbody tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.3s ease;
}

/* Minimal Styling Tweaks */
.recent-posts-table table th, 
.recent-posts-table table td {
    border-left: 1px solid #f5f5f5;
}

.recent-posts-table table th:first-child, 
.recent-posts-table table td:first-child {
    border-left: none;
}
