110 lines
3.5 KiB
CSS
110 lines
3.5 KiB
CSS
/* ==========================================================================
|
|
News hub (/<lang>/news/) — filterable feed of projects, blog and news
|
|
========================================================================== */
|
|
.news-hub { font-family: 'Inter', sans-serif; }
|
|
|
|
.newshub-hero {
|
|
background: linear-gradient(180deg, #F5FAFB 0%, #FFFFFF 100%);
|
|
padding: 112px 24px 40px; /* clears the fixed 80px header */
|
|
text-align: center;
|
|
}
|
|
.newshub-eyebrow {
|
|
display: inline-block;
|
|
color: #2D738C;
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
margin-bottom: 12px;
|
|
}
|
|
.newshub-hero h1 { max-width: 760px; margin: 0 auto 16px; font-size: 42px; line-height: 1.12; color: #101828; }
|
|
.newshub-lead { max-width: 640px; margin: 0 auto; font-size: 18px; line-height: 28px; color: #475467; }
|
|
|
|
.newshub-list { max-width: 1120px; margin: 40px auto 72px; padding: 0 24px; }
|
|
.newshub-filters {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-bottom: 28px;
|
|
padding-bottom: 24px;
|
|
border-bottom: 1px solid #EAECF0;
|
|
}
|
|
.newshub-chip {
|
|
font-family: inherit;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #475467;
|
|
background: #F2F4F7;
|
|
border: 1px solid transparent;
|
|
border-radius: 999px;
|
|
padding: 9px 16px;
|
|
cursor: pointer;
|
|
transition: background 0.15s ease, color 0.15s ease;
|
|
}
|
|
.newshub-chip:hover { background: #E4E7EC; }
|
|
.newshub-chip.is-active { background: #101828; color: #FFFFFF; }
|
|
|
|
.newshub-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 24px;
|
|
}
|
|
.newshub-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: #FFFFFF;
|
|
border: 1px solid #EAECF0;
|
|
border-radius: 16px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04);
|
|
transition: transform 0.18s ease, box-shadow 0.18s ease;
|
|
}
|
|
.newshub-card[hidden] { display: none; }
|
|
.newshub-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(16, 24, 40, 0.10); }
|
|
.newshub-media { position: relative; display: block; }
|
|
.newshub-media img { width: 100%; height: 190px; object-fit: cover; display: block; }
|
|
.newshub-media .news-ph {
|
|
height: 190px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 38px;
|
|
color: #B7BDC7;
|
|
background: linear-gradient(135deg, #F2F4F7 0%, #E4E7EC 100%);
|
|
}
|
|
.newshub-media .news-badge {
|
|
position: absolute;
|
|
top: 12px;
|
|
left: 12px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: #FFFFFF;
|
|
padding: 4px 10px;
|
|
border-radius: 999px;
|
|
background: #101828;
|
|
}
|
|
.newshub-media .news-badge i { font-size: 11px; }
|
|
.newshub-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
|
|
.newshub-date { font-size: 13px; font-weight: 600; color: #98A2B3; margin: 0; }
|
|
.newshub-card h3 { margin: 0; font-size: 19px; line-height: 1.3; }
|
|
.newshub-card h3 a { color: #101828; text-decoration: none; }
|
|
.newshub-card h3 a:hover { color: #2D738C; }
|
|
.newshub-excerpt { margin: 0; font-size: 14px; line-height: 22px; color: #667085; }
|
|
|
|
/* Pagination reuses the shared .pagination look; reset button chrome */
|
|
.newshub-pagination { margin-top: 44px; }
|
|
.newshub-pagination .pagination-arrow,
|
|
.newshub-pagination .page-number {
|
|
background: transparent;
|
|
border: none;
|
|
font-family: inherit;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.newshub-hero { padding: 92px 20px 32px; }
|
|
.newshub-hero h1 { font-size: 30px; }
|
|
}
|