/* ═══════════════════════════════════════════════════════════════
   social-media.css — Comply4HR Social Feed hub
   Tokens shared with blog.css: #0B1F3A navy | #F58732 orange | #F7F9FC surface
   ═══════════════════════════════════════════════════════════════ */

:root {
    --sm-navy: #0B1F3A;
    --sm-navy-mid: #1A3358;
    --sm-navy-light: #2A4A7F;
    --sm-orange: #F58732;
    --sm-orange-hover: #D6731E;
    --sm-linkedin: #0A66C2;
    --sm-surface: #F7F9FC;
    --sm-card-bg: #FFFFFF;
    --sm-text: #2D3748;
    --sm-text-muted: #64748B;
    --sm-border: #E2E8F0;
    --sm-border-light: #F1F5F9;
    --sm-radius-lg: 12px;
    --sm-radius-sm: 8px;
    --sm-shadow-sm: 0 2px 6px rgba(11, 31, 58, 0.04);
    --sm-shadow-md: 0 4px 16px rgba(11, 31, 58, 0.07);
}

.sm-hub-page {
    background: var(--sm-surface);
    min-height: auto;
    padding-bottom: 3.5rem;
}

/* ── Hero ── */
.sm-hub-hero {
    background: linear-gradient(135deg, #0B1F3A 0%, #1A3358 60%, #2A4A7F 100%) !important;
    padding: 24px 0 28px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff !important;
}

.sm-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(245, 135, 50, 0.18);
    border: 1px solid rgba(245, 135, 50, 0.45);
    color: #FFA756;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sm-hub-hero h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 6px 0;
    color: #fff;
}

.sm-hub-hero h1 em {
    color: var(--sm-orange);
    font-style: italic;
}

.sm-hub-hero p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.5;
}

.sm-hub-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 0;
    position: relative;
    z-index: 10;
}

/* ── Filter chips ── */
.sm-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.sm-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--sm-border);
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sm-text);
    text-decoration: none;
    transition: all 0.15s ease;
}

.sm-filter-chip:hover {
    border-color: var(--sm-orange);
    color: var(--sm-navy);
    text-decoration: none;
}

.sm-filter-chip.active {
    background: var(--sm-navy);
    border-color: var(--sm-navy);
    color: #fff;
}

.sm-filter-count {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 1px 7px;
    font-size: 11px;
}

.sm-filter-chip.active .sm-filter-count {
    background: rgba(255, 255, 255, 0.2);
}

.sm-empty {
    text-align: center;
    color: var(--sm-text-muted);
    font-size: 14px;
    padding: 40px 0;
}

/* ── Card grid ── */
.sm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.sm-card {
    background: var(--sm-card-bg);
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-lg);
    box-shadow: var(--sm-shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sm-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sm-shadow-md);
    border-color: rgba(245, 135, 50, 0.4);
}

.sm-card.sm-pinned {
    border-color: rgba(245, 135, 50, 0.6);
}

.sm-pin-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: var(--sm-orange);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sm-card-img-wrap {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: var(--sm-navy);
}

.sm-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sm-card:hover .sm-card-img-wrap img {
    transform: scale(1.04);
}

.sm-embed-wrap {
    width: 100%;
    background: #f1f2f3;
    overflow: hidden;
}

.sm-embed-wrap iframe {
    display: block;
    width: 100%;
    border: 0;
}

.sm-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sm-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.sm-src-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 50px;
}

.sm-src-pill.sm-src-ss {
    background: rgba(245, 135, 50, 0.12);
    color: var(--sm-orange-hover);
}

.sm-src-pill.sm-src-li {
    background: rgba(10, 102, 194, 0.1);
    color: var(--sm-linkedin);
}

.sm-card-date {
    font-size: 11px;
    color: var(--sm-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sm-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--sm-navy);
    line-height: 1.35;
    margin: 0 0 6px 0;
    font-family: 'DM Sans', sans-serif;
}

.sm-card-desc {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 12px 0;
    flex: 1;
}

.sm-card-cta {
    font-size: 12px;
    font-weight: 700;
    color: var(--sm-navy);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    margin-top: auto;
}

.sm-card-cta:hover {
    color: var(--sm-orange);
    text-decoration: none;
}

/* ── Pagination ── */
.sm-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}

.sm-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid var(--sm-border);
    background: #fff;
    color: var(--sm-navy);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.sm-page-link:hover {
    border-color: var(--sm-orange);
    text-decoration: none;
}

.sm-page-link.active {
    background: var(--sm-navy);
    border-color: var(--sm-navy);
    color: #fff;
}

/* ── Responsive ── */
@media screen and (max-width: 1100px) {
    .sm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 640px) {
    .sm-grid {
        grid-template-columns: 1fr;
    }
}
