/*
Theme Name: StudyNoteHub
Theme URI: https://studynotehub.com/
Author: StudyNoteHub
Description: A custom, responsive education, examination preparation and job information portal theme.
Version: 2.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: studynotehub
*/

/* =====================================================
   STUDYNOTEHUB - HOMEPAGE LATEST UPDATES TABLE
   ===================================================== */
.snh-home-updates { background: #f5f9fe; }
.snh-updates-section {
    padding: 54px 0 38px;
    background: linear-gradient(120deg, #eaf4ff 0%, #f7fbff 55%, #ffffff 100%);
}
.snh-updates-titlebar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.snh-updates-titlebar .eyebrow {
    display: inline-block;
    color: #0759c7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.snh-updates-titlebar h1 {
    color: #08285f;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    margin: 0 0 8px;
}
.snh-updates-titlebar p {
    color: #52657d;
    font-size: 15px;
    margin: 0;
}
.snh-updates-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #0759c7;
    background: #ffffff;
    border: 1px solid #d5e4f2;
    border-radius: 30px;
    padding: 9px 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
}
.snh-updates-live span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a36a;
    box-shadow: 0 0 0 4px #e1f5ec;
}
.snh-updates-table-wrap {
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #dce8f4;
    border-radius: 13px;
    box-shadow: 0 8px 28px rgba(8,40,95,.07);
}
.snh-updates-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    margin: 0;
    text-align: left;
}
.snh-updates-table thead th {
    background: #08285f;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    padding: 16px 19px;
    border: 0;
}
.snh-updates-table tbody td {
    padding: 15px 19px;
    color: #33465e;
    font-size: 14px;
    border-bottom: 1px solid #eaf0f7;
    vertical-align: middle;
}
.snh-updates-table tbody tr:last-child td { border-bottom: 0; }
.snh-updates-table tbody tr:hover { background: #f5f9ff; }
.snh-table-date {
    color: #64748b !important;
    white-space: nowrap;
    font-size: 13px !important;
}
.snh-table-category {
    display: inline-block;
    background: #eaf4ff;
    color: #0759c7;
    border: 1px solid #d5e7fa;
    border-radius: 5px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.snh-table-title a {
    color: #08285f;
    font-weight: 650;
    text-decoration: none;
}
.snh-table-title a:hover { color: #0759c7; }
.snh-table-view {
    color: #0759c7;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.snh-table-view:hover { color: #168af5; }
.snh-table-empty {
    padding: 28px 20px !important;
    text-align: center;
    color: #64748b !important;
}
.snh-updates-footer {
    display: flex;
    justify-content: flex-end;
    padding: 11px 3px 0;
    color: #718096;
    font-size: 12px;
}
@media (max-width: 650px) {
    .snh-updates-section { padding: 34px 0 28px; }
    .snh-updates-titlebar {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }
    .snh-updates-titlebar p { font-size: 14px; }
    .snh-updates-table thead th,
    .snh-updates-table tbody td { padding: 12px 13px; }
}
