/* News & Events: browse menus, search with dates, views (card / list / table / calendar) */

#all-news {
    --nb-navy: #073b4c;
    --nb-teal: #0b858d;
    --nb-gold: #e5b83d;
    --nb-ink: #31474f;
    --nb-muted: #5d7078;
    --nb-line: #d6e3e6;
    --nb-soft: #f3f8f9;
}

/* ---------- Browse ---------- */
.nb-browse {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin: 4px 0 16px; padding: 10px 12px;
    border: 1px solid var(--nb-line); border-radius: 16px; background: #fff;
    box-shadow: 0 6px 20px rgba(7, 59, 76, .05);
}
.nb-browse-label {
    margin-right: 4px; padding: 0 6px;
    color: var(--nb-muted); font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
}
.nb-browse-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border: 1px solid transparent; border-radius: 999px;
    background: var(--nb-soft); color: var(--nb-navy); font-size: 14px; font-weight: 700;
    transition: background .15s, border-color .15s, color .15s;
}
.nb-browse-btn:hover, .nb-browse-btn[aria-expanded="true"] { background: #e3f1f2; border-color: #bfdfe1; }
.nb-browse-btn.is-active { background: var(--nb-navy); color: #fff; }
.nb-browse-btn .nb-caret { font-size: 10px; opacity: .7; transition: transform .15s; }
.nb-browse-btn[aria-expanded="true"] .nb-caret { transform: rotate(180deg); }

.nb-panel {
    margin-top: 8px !important; padding: 16px; border: 1px solid var(--nb-line); border-radius: 16px;
    box-shadow: 0 18px 44px rgba(7, 59, 76, .16);
}
.nb-panel-sm { width: 340px; }
.nb-panel-md { width: min(560px, 92vw); }
.nb-panel-lg { width: min(860px, 94vw); }
.nb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 22px; }
.nb-group h6 {
    margin: 0 0 6px; color: var(--nb-teal); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.nb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }

.nb-link {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 7px 10px; border-radius: 10px; color: var(--nb-ink); font-size: 14px; text-decoration: none;
}
.nb-link:hover { background: var(--nb-soft); color: var(--nb-navy); }
.nb-link.is-current { background: #e3f1f2; color: var(--nb-navy); font-weight: 700; }
.nb-link em, .nb-chip em {
    min-width: 26px; padding: 1px 7px; border-radius: 999px; background: #eef3f5;
    color: var(--nb-muted); font-size: 11px; font-style: normal; font-weight: 700; text-align: center;
}

.nb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
    border: 1px solid var(--nb-line); border-radius: 999px; color: var(--nb-ink); font-size: 13px; text-decoration: none;
}
.nb-chip:hover { border-color: var(--nb-teal); color: var(--nb-teal); }
.nb-chip.is-current { background: var(--nb-navy); border-color: var(--nb-navy); color: #fff; }
.nb-chip.is-current em { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Search with dates (pop-up at the right of Browse) ---------- */
.nb-search-drop { margin-left: auto; }
.nb-search-toggle { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-search-panel { width: min(420px, 92vw); }
.nb-search-panel > * + * { margin-top: 10px; }
.nb-search-title { margin: 0 0 4px; color: var(--nb-navy); font-size: 15px; font-weight: 800; }
.nb-search-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nb-search-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.nb-search-actions .nb-search-btn { height: 44px; }
.nb-field {
    display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 14px; height: 48px;
    border: 1px solid var(--nb-line); border-radius: 14px; background: #fff;
}
.nb-field:focus-within { border-color: var(--nb-teal); box-shadow: 0 0 0 3px rgba(11, 133, 141, .12); }
.nb-field i { color: var(--nb-muted); }
.nb-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--nb-ink); font-size: 15px; }
.nb-field-date span { color: var(--nb-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.nb-search-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
    border: 0; border-radius: 14px; background: var(--nb-navy); color: #fff; font-weight: 700;
    transition: background .15s;
}
.nb-search-btn:hover { background: var(--nb-teal); }

/* ---------- Toolbar: type + views ---------- */
.nb-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.nb-toolbar .news-tabs { margin: 0; }
.nb-views { display: inline-flex; padding: 4px; border: 1px solid var(--nb-line); border-radius: 12px; background: #fff; }
.nb-views a {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px;
    color: var(--nb-muted); font-size: 13px; font-weight: 700; text-decoration: none;
}
.nb-views a:hover { color: var(--nb-navy); background: var(--nb-soft); }
.nb-views a.active { background: var(--nb-navy); color: #fff; }

.nb-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 10px; }
.nb-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 12px; border-radius: 999px;
    background: #e3f1f2; color: var(--nb-navy); font-size: 13px; font-weight: 600; text-decoration: none;
}
.nb-pill i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(7, 59, 76, .12); font-size: 10px; }
.nb-pill:hover i { background: var(--nb-navy); color: #fff; }
.nb-clear { color: var(--nb-teal); font-size: 13px; font-weight: 700; text-decoration: none; }
.nb-count { margin: 0 0 16px; color: var(--nb-muted); font-size: 14px; }

/* ---------- Picture-less items (no logo stand-in) ---------- */
.nb-noimg {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 18px; text-align: center; color: #fff;
    background: radial-gradient(120% 90% at 0% 0%, #0b858d 0%, #073b4c 70%);
}
.nb-noimg.is-event { background: radial-gradient(120% 90% at 0% 0%, #c99a1f 0%, #073b4c 72%); }
.nb-noimg i { font-size: 30px; opacity: .9; }
.nb-noimg b { font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; opacity: .9; }
.campus-news-image { position: relative; }

/* ---------- List ---------- */
.nb-list { display: flex; flex-direction: column; gap: 10px; }
.nb-list-item {
    display: grid; grid-template-columns: 64px 96px 1fr auto; align-items: center; gap: 16px;
    padding: 12px 16px; border: 1px solid var(--nb-line); border-radius: 16px; background: #fff;
    color: var(--nb-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.nb-list-item:hover { border-color: #bfdfe1; box-shadow: 0 10px 26px rgba(7, 59, 76, .08); transform: translateY(-1px); }
.nb-list-date { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.nb-list-date b { color: var(--nb-navy); font-size: 26px; font-weight: 800; }
.nb-list-date small { color: var(--nb-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.nb-list-thumb { position: relative; width: 96px; height: 64px; border-radius: 10px; object-fit: cover; overflow: hidden; }
.nb-list-thumb.nb-noimg { position: relative; inset: auto; padding: 0; }
.nb-list-thumb.nb-noimg i { font-size: 20px; }
.nb-list-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nb-list-body strong { color: var(--nb-navy); font-size: 16px; line-height: 1.35; }
.nb-list-kicker { color: var(--nb-teal); font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.nb-list-meta { color: var(--nb-muted); font-size: 13px; }
.nb-list-go { color: var(--nb-teal); }

/* ---------- Table ---------- */
.nb-table-wrap { overflow-x: auto; border: 1px solid var(--nb-line); border-radius: 16px; background: #fff; }
.nb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nb-table th {
    position: sticky; top: 0; padding: 12px 14px; background: var(--nb-soft); color: var(--nb-muted);
    font-size: 11px; font-weight: 800; letter-spacing: .8px; text-align: left; text-transform: uppercase;
}
.nb-table td { padding: 12px 14px; border-top: 1px solid var(--nb-line); color: var(--nb-ink); vertical-align: top; }
.nb-table tbody tr:hover { background: #f8fbfc; }
.nb-table td a { color: var(--nb-navy); font-weight: 700; text-decoration: none; }
.nb-table td a:hover { color: var(--nb-teal); }
.nb-ext { margin-left: 6px; color: var(--nb-muted); font-size: 11px; }
.nb-type { display: inline-block; padding: 2px 9px; border-radius: 6px; background: #e3f1f2; color: var(--nb-teal); font-size: 12px; font-weight: 700; }
.nb-type.is-event { background: #fbf2d9; color: #8a6400; }

/* ---------- Calendar ---------- */
.nb-cal { border: 1px solid var(--nb-line); border-radius: 18px; background: #fff; overflow: hidden; }
.nb-cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--nb-line); }
.nb-cal-head h3 { margin: 0 6px; min-width: 170px; color: var(--nb-navy); font-size: 22px; font-weight: 800; text-align: center; }
.nb-cal-nav {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
    background: var(--nb-soft); color: var(--nb-navy); text-decoration: none;
}
.nb-cal-nav:hover { background: var(--nb-navy); color: #fff; }
.nb-cal-today { color: var(--nb-teal); font-size: 13px; font-weight: 700; text-decoration: none; }
.nb-cal-count { margin-left: auto; color: var(--nb-muted); font-size: 13px; }

.nb-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.nb-cal-dow {
    padding: 10px; background: var(--nb-soft); color: var(--nb-muted);
    font-size: 11px; font-weight: 800; letter-spacing: 1px; text-align: center; text-transform: uppercase;
}
.nb-cal-day {
    display: flex; flex-direction: column; gap: 4px; min-height: 118px; padding: 8px;
    border-top: 1px solid var(--nb-line); border-left: 1px solid var(--nb-line);
}
.nb-cal-day:nth-child(7n + 1) { border-left: 0; }
.nb-cal-day.is-out { background: #fafcfc; }
.nb-cal-day.is-out .nb-cal-num { color: #b7c7cb; }
.nb-cal-num { align-self: flex-end; width: 26px; height: 26px; border-radius: 50%; color: var(--nb-ink); font-size: 13px; font-weight: 700; line-height: 26px; text-align: center; }
.nb-cal-day.is-today .nb-cal-num { background: var(--nb-gold); color: var(--nb-navy); }
.nb-cal-item {
    display: block; padding: 3px 8px; border-left: 3px solid var(--nb-teal); border-radius: 6px;
    background: #e9f5f6; color: var(--nb-navy); font-size: 12px; font-weight: 600; line-height: 1.35;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none;
}
.nb-cal-item.is-event { border-left-color: var(--nb-gold); background: #fdf5df; }
.nb-cal-item:hover { filter: brightness(.96); color: var(--nb-navy); }
.nb-cal-more { padding-left: 4px; color: var(--nb-teal); font-size: 12px; font-weight: 700; text-decoration: none; }
.nb-cal-legend { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--nb-line); color: var(--nb-muted); font-size: 12px; }
.nb-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; background: var(--nb-teal); vertical-align: -1px; }
.nb-dot.is-event { background: var(--nb-gold); }
.nb-cal-empty { margin: 0; padding: 14px 18px; border-top: 1px solid var(--nb-line); color: var(--nb-muted); font-size: 14px; }

.nb-cal-agenda { display: none; }
.nb-agenda-day { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--nb-line); }
.nb-agenda-date { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.nb-agenda-date b { color: var(--nb-navy); font-size: 22px; font-weight: 800; }
.nb-agenda-date small { color: var(--nb-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.nb-agenda-items { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nb-agenda-items .nb-cal-item { white-space: normal; font-size: 14px; padding: 6px 10px; }

/* ---------- Small screens ---------- */
@media (max-width: 991.98px) {
    .nb-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767.98px) {
    .nb-browse { padding: 8px; }
    .nb-browse-label { width: 100%; }
    .nb-browse .dropdown { flex: 1 1 calc(50% - 8px); }
    .nb-search-drop { margin-left: 0; }
    .nb-search-toggle { max-width: none; }
    .nb-search-dates { grid-template-columns: 1fr; }
    .nb-browse-btn { width: 100%; justify-content: space-between; font-size: 13px; }
    .nb-panel, .nb-panel-sm, .nb-panel-md, .nb-panel-lg { width: calc(100vw - 32px); }
    .nb-grid, .nb-cols { grid-template-columns: 1fr; }
    .nb-views a span { display: none; }
    .nb-list-item { grid-template-columns: 52px 1fr auto; }
    .nb-list-thumb { display: none; }
    .nb-cal-grid, .nb-cal-legend { display: none; }
    .nb-cal-agenda { display: block; }
    .nb-cal-head h3 { min-width: 0; font-size: 18px; }
    .nb-cal-count { width: 100%; margin: 0; }
}
