/**
 * Shine Globally - Global Professional Networking Platform
 * Pixel-Perfect LinkedIn UI & UX Design System
 * Brand Identity: Shine Royal Blue (#0A66C2) & Radiant Gold (#B8860B / #D4AF37)
 * WCAG AAA Compliant Font Colors & Maximum Prominence Typography
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
    /* --------------------------------------------------------------------------
       1. Core Color System (LinkedIn-Inspired & High Contrast)
       -------------------------------------------------------------------------- */
    --brand-primary: #0a66c2;            /* Authentic LinkedIn Professional Blue */
    --brand-primary-hover: #004182;      /* Deep Navy Focus/Hover */
    --brand-primary-active: #09223b;
    --brand-primary-light: #e8f3fc;      /* Ice Blue Tint for active states */
    --brand-primary-soft: #f0f7ff;
    
    /* Prominent Gold Identity (Ensures > 5:1 contrast against white & light cards) */
    --brand-gold-text: #946c00;          /* Deep rich gold for 100% visible text */
    --brand-gold: #b8860b;               /* Radiant Warm Gold */
    --brand-gold-accent: #d4af37;        /* Metallic Gold for Badges/Logos/Borders */
    --brand-gold-light: #fffdf0;         /* Soft Gold Glow */
    --brand-gold-badge: #fef9e7;
    --brand-gold-gradient: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    --brand-blue-gradient: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
    
    /* Background Canvas & Card Surfaces */
    --bg-main: #f4f2ee;                  /* LinkedIn Signature Warm Neutral Canvas */
    --bg-card: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-hover: #ebebeb;
    --bg-active: #e1e9ee;
    
    /* Borders & Dividers */
    --border-color: #e0dfdc;             /* LinkedIn border tone */
    --border-subtle: #ebebeb;
    --border-strong: rgba(0, 0, 0, 0.25);
    
    /* Typography & Font Colors (Maximum Prominence - NEVER Hidden by Themes) */
    --text-primary: #191919;             /* 90% Deep Near-Black - Ultra Crisp & Prominent */
    --text-secondary: #404040;           /* 75% Dark Neutral - Subtitles & Headlines */
    --text-muted: #5e5e5e;               /* 60% Dark Gray - Metadata & Timestamps (WCAG AAA) */
    --text-light: #717171;               /* 50% Clear Gray - Secondary details */
    --text-on-dark: #ffffff;
    --link-color: #0a66c2;
    --link-hover: #004182;
    
    /* Semantic Status */
    --success: #057642;                  /* LinkedIn Verified / Success Green */
    --success-bg: #e6f4ea;
    --warning: #b24020;
    --warning-bg: #fdf0ec;
    --danger: #cc1016;                   /* Clear Alert Red */
    --danger-bg: #fef2f2;
    
    /* Radii & Shadows */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 24px;
    --radius-full: 9999px;
    
    --shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-dropdown: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Reset & Global Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Headings with high-contrast prominence */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 24px; letter-spacing: -0.4px; }
h2 { font-size: 20px; letter-spacing: -0.3px; }
h3 { font-size: 16px; letter-spacing: -0.2px; }
h4 { font-size: 14px; font-weight: 600; }

p {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   3. Top Navigation Bar (Authentic LinkedIn 53px Height)
   ========================================================================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    height: 53px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1128px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 12px;
}

/* 1. Brand Logo & Header Search Area */
.nav-brand-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 19px;
    color: var(--brand-primary);
    text-decoration: none !important;
    letter-spacing: -0.4px;
}

.brand-logo-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.logo-text {
    color: var(--brand-primary);
    font-weight: 800;
}

.logo-text-accent {
    color: var(--brand-gold-text);
    font-weight: 800;
}

/* LinkedIn Pill Search Bar */
.nav-search-container {
    position: relative;
    width: 280px;
    transition: width 0.2s ease;
}

.nav-search-container:focus-within {
    width: 340px;
}

.nav-search-form {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.nav-search-form .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.nav-search-form input {
    width: 100%;
    height: 34px;
    padding: 0 14px 0 36px;
    background: #edf3f8;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-search-form input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.nav-search-form input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.2);
}

/* 2. Primary Navigation Links (Stacked Icon + 12px Label) */
.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 53px;
    padding: 0 6px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
    position: relative;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.nav-item .nav-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
    fill: currentColor;
    transition: var(--transition);
}

.nav-item .nav-label {
    font-size: 11.5px;
    line-height: 1;
    color: inherit;
    font-weight: 500;
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.nav-item.active .nav-icon {
    fill: var(--text-primary);
}

.nav-item.active .nav-label {
    font-weight: 600;
}

.icon-badge-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--danger);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--radius-full);
    line-height: 1.2;
    border: 1.5px solid #ffffff;
}

/* 3. Me User Menu & Dropdown (LinkedIn Style) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    border-left: 1px solid var(--border-subtle);
    padding-left: 12px;
}

.user-me-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    min-width: 60px;
    height: 53px;
    padding: 0 4px;
    color: var(--text-muted);
    transition: var(--transition);
}

.user-me-avatar {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.user-me-text {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11.5px;
    color: inherit;
    margin-top: 2px;
    line-height: 1;
}

.user-me-chevron {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.user-me-btn:hover {
    color: var(--text-primary);
}

.user-me-btn.active {
    border-bottom-color: var(--text-primary);
    color: var(--text-primary);
}

/* LinkedIn Me Dropdown Menu */
.user-menu-dropdown {
    position: relative;
}

.linkedin-me-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 2px);
    width: 280px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-dropdown);
    padding: 8px 0;
    display: none;
    z-index: 1001;
}

.linkedin-me-menu.show {
    display: block;
    animation: fadeInMenu 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.me-menu-header {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 16px 12px;
}

.me-menu-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.me-menu-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.me-menu-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.me-menu-headline {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.35;
    margin-top: 2px;
}

.me-menu-btn-wrap {
    padding: 0 16px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.dropdown-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.6px;
    padding: 10px 16px 4px;
    text-transform: uppercase;
}

.dropdown-section-title.admin-title {
    color: var(--brand-primary);
    background: var(--brand-primary-light);
    margin: 4px 0 2px;
    padding: 6px 16px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 13.5px;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none !important;
    transition: var(--transition);
}

.dropdown-link:hover {
    background: var(--bg-hover);
    color: var(--brand-primary);
}

.dropdown-link.admin-link {
    color: var(--brand-primary);
    font-weight: 600;
}

.dropdown-link.text-danger {
    color: var(--danger);
    font-weight: 600;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 6px 0;
}

/* Nav Auth Buttons for Guests */
.nav-auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile Toggle & Search */
.mobile-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 26px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-toggle-btn span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

.mobile-search-bar {
    display: none;
    padding: 8px 16px;
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
}

.mobile-nav-drawer {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
}

.mobile-nav-drawer.open {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    text-decoration: none !important;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    background: var(--brand-primary-light);
    color: var(--brand-primary);
}

.mobile-nav-item.mentor-highlight {
    background: var(--brand-primary);
    color: #ffffff;
    text-align: center;
}

.mobile-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 8px 0;
}

/* Flash Messages */
.flash-alert-container {
    max-width: 1128px;
    margin: 14px auto 0;
    padding: 0 16px;
}

.flash-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 12px;
    box-shadow: var(--shadow-card);
}

.flash-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(5, 118, 66, 0.3);
}

.flash-error, .flash-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(204, 16, 22, 0.3);
}

.flash-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(178, 64, 32, 0.3);
}

.flash-info {
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    border: 1px solid rgba(10, 102, 194, 0.3);
}

.flash-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    line-height: 1;
    padding: 0 4px;
}

/* ==========================================================================
   4. Main Layout Architecture (LinkedIn Desktop & Responsive Grids)
   ========================================================================== */
.app-main-wrapper {
    flex: 1;
    max-width: 1128px;
    width: 100%;
    margin: 20px auto 48px;
    padding: 0 16px;
}

/* Standard LinkedIn 3-Column Grid: 225px | 555px | 300px (Gaps: 24px) */
.layout-grid-3col {
    display: grid;
    grid-template-columns: 225px 555px 300px;
    gap: 24px;
    align-items: start;
}

/* 2-Column Grid (My Network, Jobs, Settings): 280px | 1fr */
.layout-grid-2col {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.layout-single-col {
    max-width: 960px;
    margin: 0 auto;
}

.sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-main-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ==========================================================================
   5. Card System & Surfaces
   ========================================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   6. Buttons & Interactive Controls (LinkedIn Pill Standards)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none !important;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
    user-select: none;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--brand-primary);
}

/* Primary Button: Solid LinkedIn Blue */
.btn-primary {
    background: var(--brand-primary);
    color: #ffffff !important;
    border-color: transparent;
}

.btn-primary:hover {
    background: var(--brand-primary-hover);
}

.btn-primary:active {
    background: var(--brand-primary-active);
}

/* Secondary Button: Outlined Blue on White */
.btn-secondary, .btn-outline-primary {
    background: #ffffff;
    color: var(--brand-primary) !important;
    border-color: var(--brand-primary);
}

.btn-secondary:hover, .btn-outline-primary:hover {
    background: var(--brand-primary-light);
    border-color: var(--brand-primary-hover);
    color: var(--brand-primary-hover) !important;
}

/* Subtle / Ghost Button */
.btn-secondary-subtle, .btn-ghost {
    background: transparent;
    color: var(--text-secondary) !important;
    border-color: transparent;
}

.btn-secondary-subtle:hover, .btn-ghost:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary) !important;
}

/* Gold / Premium Button (High Contrast White Text) */
.btn-gold {
    background: var(--brand-gold-gradient);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(184, 134, 11, 0.3);
}

.btn-gold:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* Danger Button */
.btn-danger {
    background: var(--danger);
    color: #ffffff !important;
}

.btn-danger:hover {
    background: #a80d12;
}

/* Button Sizing */
.btn-sm {
    padding: 5px 14px;
    font-size: 13px;
    border-radius: 18px;
}

.btn-lg {
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 700;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Form Controls with High Visibility & Contrast */
.form-control, input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary) !important;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-control::placeholder, input::placeholder, textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 1;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.25);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

/* ==========================================================================
   7. Left Sidebar Components (LinkedIn Profile & Navigation Card)
   ========================================================================== */
.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-snippet-card {
    text-align: center;
    position: relative;
}

.snippet-cover {
    height: 56px;
    background: var(--brand-blue-gradient);
    background-size: cover;
    background-position: center;
}

.snippet-body {
    padding: 0 16px 16px;
    position: relative;
}

.snippet-avatar-link {
    display: inline-block;
    margin-top: -36px;
    position: relative;
    border-radius: var(--radius-full);
}

.snippet-avatar {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    border: 3px solid #ffffff;
    box-shadow: var(--shadow-card);
    object-fit: cover;
    background: #ffffff;
}

.snippet-name {
    font-size: 15.5px;
    font-weight: 700;
    margin-top: 8px;
    color: var(--text-primary);
    line-height: 1.25;
}

.snippet-name a {
    color: var(--text-primary);
    text-decoration: none !important;
}

.snippet-name a:hover {
    color: var(--brand-primary);
    text-decoration: underline !important;
}

.snippet-headline {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0 6px;
    line-height: 1.35;
}

.snippet-location {
    font-size: 11.5px;
    color: var(--text-muted);
    display: block;
}

.snippet-mentor-tag {
    margin: 4px 0;
}

.snippet-stats {
    border-top: 1px solid var(--border-subtle);
    padding: 8px 16px;
    text-align: left;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 0;
    text-decoration: none !important;
}

.stat-row:hover .stat-label {
    color: var(--brand-primary);
}

.stat-row:hover .stat-value {
    color: var(--brand-primary);
}

.stat-label {
    font-weight: 500;
    color: inherit;
}

.stat-value {
    font-weight: 700;
    color: var(--brand-primary);
}

.snippet-bookmark-row {
    border-top: 1px solid var(--border-subtle);
    padding: 10px 16px;
    text-align: left;
}

.snippet-bookmark-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none !important;
}

.snippet-bookmark-link:hover {
    color: var(--brand-primary);
}

/* Mentorship Status Card */
.mentor-cta-card {
    border-top: 3px solid var(--brand-gold-accent);
}

.mentor-cta-inner {
    padding: 16px;
    text-align: center;
}

.mentor-icon-glow {
    font-size: 24px;
    color: var(--brand-gold-text);
    margin-bottom: 6px;
    display: inline-block;
}

.mentor-cta-inner h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 4px;
}

.mentor-status-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
}

/* Left Quick Nav Card */
.sidebar-nav-card {
    padding: 12px 0;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 4px 16px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-menu-list {
    list-style: none;
}

.sidebar-menu-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none !important;
    transition: var(--transition);
}

.sidebar-menu-list li a:hover {
    background: var(--bg-hover);
    color: var(--brand-primary);
}

.sidebar-menu-list li a .menu-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.sidebar-menu-list li a:hover .menu-icon {
    color: var(--brand-primary);
}

/* ==========================================================================
   8. Center Feed: LinkedIn Post Composer & Post Cards
   ========================================================================== */
/* LinkedIn Signature "Start a post" Widget */
.post-composer-box {
    padding: 16px;
    margin-bottom: 16px;
}

.composer-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.composer-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.post-trigger-btn {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.post-trigger-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
}

.composer-media-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
    border-top: 1px solid var(--border-subtle);
}

.media-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.media-action-item:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

.media-action-item.media-photo svg { color: #378fe9; }
.media-action-item.media-event svg { color: #c37d16; }
.media-action-item.media-article svg { color: #e06847; }

/* Feed View Separator */
.feed-sort-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 16px;
}

.feed-sort-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.feed-sort-text {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.feed-sort-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Feed Post Card (Authentic LinkedIn Experience)
   -------------------------------------------------------------------------- */
.post-card {
    padding: 16px;
    margin-bottom: 16px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.post-author-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.post-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.post-author-info {
    min-width: 0;
    line-height: 1.35;
}

.post-author-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.post-author-name {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text-primary);
    text-decoration: none !important;
}

.post-author-name:hover {
    color: var(--brand-primary);
    text-decoration: underline !important;
}

.post-author-headline {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-top: 1px;
}

.post-timestamp {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-privacy-icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Post Actions More Menu (Three-Dots) */
.post-more-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.post-more-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

.post-more-dropdown {
    position: relative;
}

.post-menu-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-dropdown);
    width: 220px;
    padding: 6px 0;
    display: none;
    z-index: 100;
}

.post-menu-dropdown.show {
    display: block;
    animation: fadeInMenu 0.15s ease;
}

.post-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none !important;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.post-menu-item:hover {
    background: var(--bg-hover);
    color: var(--brand-primary);
}

/* Post Body Content with High-Contrast Prominence */
.post-content {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-primary);
    margin-bottom: 12px;
    white-space: pre-line;
    word-break: break-word;
}

.post-see-more-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
}

.post-see-more-btn:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

/* Post Media Attachment */
.post-media-container {
    margin: 0 -16px 14px -16px;
    max-height: 520px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.post-media-container img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
}

/* Social Reaction Counts Row */
.post-stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.reaction-icons-stack {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    vertical-align: middle;
}

.reaction-icon-circle {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: -4px;
    border: 1.5px solid #ffffff;
    font-size: 9px;
    color: #ffffff;
}

.reaction-like { background: #0a66c2; }
.reaction-heart { background: #df704d; }
.reaction-clap { background: #448937; }

.stats-comments-shares {
    display: flex;
    gap: 10px;
}

.stats-comments-shares a {
    color: var(--text-muted);
    text-decoration: none !important;
}

.stats-comments-shares a:hover {
    color: var(--brand-primary);
    text-decoration: underline !important;
}

/* LinkedIn 4-Pack Action Bar (Like, Comment, Repost, Send) */
.post-actions-bar {
    display: flex;
    justify-content: space-around;
    padding: 4px 0 0;
}

.post-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    text-decoration: none !important;
}

.post-action-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: var(--transition);
}

.post-action-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

.post-action-btn.liked {
    color: var(--brand-primary);
}

.post-action-btn.liked svg {
    fill: var(--brand-primary);
    stroke: var(--brand-primary);
}

/* Comments Drawer */
.comments-container {
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 8px;
}

.comment-input-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.comment-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.comment-input-wrapper {
    flex: 1;
    display: flex;
    gap: 8px;
}

.comment-input-wrapper input {
    flex: 1;
    height: 38px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    color: var(--text-primary);
}

.comment-input-wrapper input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.2);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.comment-bubble {
    flex: 1;
    background: #f2f4f7;
    border-radius: var(--radius-md);
    padding: 10px 14px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3px;
}

.comment-author-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.comment-time {
    font-size: 11px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 13.5px;
    color: var(--text-primary);
    line-height: 1.45;
}

/* ==========================================================================
   9. Right Sidebar (News & Insights, People You May Know, Mini Footer)
   ========================================================================== */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.widget-card {
    padding: 16px;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.widget-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.widget-header-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-primary);
}

/* LinkedIn News List */
.news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-item a {
    display: block;
    text-decoration: none !important;
}

.news-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title::before {
    content: "•";
    color: var(--text-muted);
    font-size: 16px;
}

.news-item a:hover .news-title {
    color: var(--brand-primary);
}

.news-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-left: 12px;
    margin-top: 1px;
}

/* Mini Mentors / Recommendations */
.mentors-list-mini {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mentor-item-mini {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mentor-avatar-mini {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.mentor-info-mini {
    flex: 1;
    min-width: 0;
}

.mentor-name-mini {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.mentor-name-mini:hover {
    color: var(--brand-primary);
}

.mentor-headline-mini {
    font-size: 11.5px;
    color: var(--text-secondary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.btn-connect-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary) !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: var(--transition);
}

.btn-connect-mini:hover {
    border-color: var(--text-primary);
    color: var(--text-primary) !important;
    background: rgba(0, 0, 0, 0.05);
}

/* Sticky Mini Footer for Sidebar */
.sidebar-mini-footer {
    text-align: center;
    padding: 8px 12px 16px;
    position: sticky;
    top: 69px;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    margin-bottom: 8px;
}

.mini-links a {
    font-size: 11.5px;
    color: var(--text-muted);
    text-decoration: none !important;
}

.mini-links a:hover {
    color: var(--brand-primary);
    text-decoration: underline !important;
}

.copyright-mini {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   10. Floating Docked LinkedIn Messaging Widget (Bottom Right)
   ========================================================================== */
.docked-messaging-widget {
    position: fixed;
    bottom: 0;
    right: 24px;
    width: 290px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
    z-index: 1040;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.docked-messaging-widget.collapsed .docked-msg-body {
    display: none;
}

.docked-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    background: #ffffff;
    border-radius: 8px 8px 0 0;
    user-select: none;
}

.docked-msg-header:hover {
    background: var(--bg-hover);
}

.docked-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.docked-header-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    object-fit: cover;
    position: relative;
}

.docked-online-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: var(--radius-full);
    border: 1.5px solid #ffffff;
    position: absolute;
    bottom: -1px;
    right: -1px;
}

.docked-header-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.docked-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.docked-chevron-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.docked-messaging-widget.expanded .docked-chevron-icon {
    transform: rotate(180deg);
}

.docked-msg-body {
    height: 380px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-subtle);
    background: #ffffff;
}

.docked-msg-search {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.docked-msg-search input {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
    background: #f4f2ee;
    border: 1px solid transparent;
}

.docked-conv-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.docked-conv-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none !important;
    transition: var(--transition);
}

.docked-conv-item:hover {
    background: var(--bg-hover);
}

.docked-conv-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.docked-conv-info {
    flex: 1;
    min-width: 0;
}

.docked-conv-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docked-conv-snippet {
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   11. LinkedIn Post Creation Modal
   ========================================================================== */
.linkedin-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.linkedin-modal-backdrop.open {
    display: flex;
    animation: fadeInModalBackdrop 0.2s ease;
}

@keyframes fadeInModalBackdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}

.linkedin-modal {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    animation: scaleModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleModal {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    border-radius: var(--radius-full);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.modal-audience-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: #ffffff;
    cursor: pointer;
}

.modal-audience-pill:hover {
    background: rgba(0, 0, 0, 0.05);
}

.modal-textarea {
    width: 100%;
    border: none;
    resize: none;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
    min-height: 140px;
    outline: none;
}

.modal-textarea::placeholder {
    color: var(--text-muted);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}

.modal-toolbar-icons {
    display: flex;
    gap: 4px;
}

.modal-tool-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-tool-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-primary);
}

/* ==========================================================================
   12. My Network Page Components
   ========================================================================== */
.network-manage-card {
    padding: 12px 0;
}

.manage-network-header {
    padding: 6px 16px 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
}

.manage-network-list {
    list-style: none;
}

.manage-network-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none !important;
    transition: var(--transition);
}

.manage-network-item a:hover {
    background: var(--bg-hover);
    color: var(--brand-primary);
}

.manage-item-count {
    color: var(--text-muted);
    font-weight: 600;
}

/* Invitations Received Card */
.invitations-card {
    padding: 16px 20px;
    margin-bottom: 20px;
}

.invitation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
}

.invitation-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.invitation-left {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.invitation-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.invitation-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none !important;
}

.invitation-name:hover {
    color: var(--brand-primary);
    text-decoration: underline !important;
}

.invitation-headline {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* People You May Know Grid */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.user-connect-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.user-connect-card:hover {
    box-shadow: var(--shadow-hover);
}

.connect-cover {
    height: 54px;
    background: var(--brand-blue-gradient);
}

.connect-body {
    padding: 0 12px 14px;
    margin-top: -30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.connect-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    border: 3px solid #ffffff;
    box-shadow: var(--shadow-card);
    object-fit: cover;
    margin-bottom: 8px;
}

.connect-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.25;
}

.connect-name a {
    color: inherit;
    text-decoration: none !important;
}

.connect-name a:hover {
    color: var(--brand-primary);
    text-decoration: underline !important;
}

.connect-headline {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.35;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 30px;
}

.connect-btn-wrap {
    width: 100%;
    margin-top: auto;
}

/* ==========================================================================
   13. Jobs & Career Opportunities UI
   ========================================================================== */
.jobs-filter-card {
    padding: 20px;
    margin-bottom: 20px;
}

.jobs-filter-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr auto auto;
    gap: 12px;
    align-items: center;
}

.job-item-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    background: #ffffff;
    transition: var(--transition);
}

.job-item-card:hover {
    background: #fbfbfc;
}

.job-logo-box {
    width: 52px;
    height: 52px;
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    font-size: 18px;
    font-weight: 800;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(10, 102, 194, 0.2);
}

.job-content-wrap {
    flex: 1;
    min-width: 0;
}

.job-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.job-title-link {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none !important;
    line-height: 1.3;
}

.job-title-link:hover {
    text-decoration: underline !important;
}

.job-company {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
}

.job-meta-row {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 4px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.job-badge {
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   14. Direct Messaging 2-Column Split Pane
   ========================================================================== */
.messages-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    height: 720px;
    overflow: hidden;
}

.conversations-sidebar {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.conversations-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversations-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none !important;
    transition: var(--transition);
    position: relative;
}

.conversation-item:hover {
    background: var(--bg-hover);
}

.conversation-item.active {
    background: var(--brand-primary-light);
    border-left: 4px solid var(--brand-primary);
}

.conversation-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.conversation-preview {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.conversation-snippet {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.chat-window {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fbfbfc;
}

.chat-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    line-height: 1.45;
    position: relative;
}

.chat-bubble.sent {
    align-self: flex-end;
    background: var(--brand-primary);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.chat-bubble.received {
    align-self: flex-start;
    background: #eef1f5;
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

.chat-timestamp {
    font-size: 10.5px;
    margin-top: 4px;
    opacity: 0.8;
    text-align: right;
}

.chat-composer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-composer textarea {
    flex: 1;
    height: 44px;
    resize: none;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 13.5px;
}

/* ==========================================================================
   15. User Profile Header & LinkedIn Layout
   ========================================================================== */
.profile-main-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    overflow: hidden;
}

.profile-cover-area {
    height: 200px;
    background: var(--brand-blue-gradient);
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-avatar-row {
    padding: 0 24px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -75px;
    margin-bottom: 16px;
}

.profile-avatar-large {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    border: 4px solid #ffffff;
    box-shadow: var(--shadow-card);
    object-fit: cover;
    background: #ffffff;
}

.profile-info-body {
    padding: 0 24px 24px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-name-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.profile-headline-text {
    font-size: 16px;
    color: var(--text-primary);
    margin: 4px 0 8px;
    line-height: 1.4;
}

.profile-meta-line {
    font-size: 13.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.profile-action-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Verified Mentor Badge Pill */
.mentor-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--brand-gold-badge);
    color: var(--brand-gold-text);
    border: 1px solid rgba(184, 134, 11, 0.35);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
}

.mentor-badge-pill svg {
    color: var(--brand-gold-accent);
}

/* Profile Hero Card & Components */
.profile-hero-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    overflow: hidden;
}

.profile-hero-cover {
    height: 190px;
    background: var(--brand-blue-gradient);
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-hero-body {
    padding: 0 24px 24px;
    position: relative;
}

.profile-hero-avatar-wrapper {
    position: relative;
    margin-top: -75px;
    margin-bottom: 14px;
    display: inline-block;
}

.profile-hero-avatar {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    border: 4px solid #ffffff;
    box-shadow: var(--shadow-card);
    object-fit: cover;
    background: #ffffff;
}

.profile-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.profile-hero-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    line-height: 1.25;
}

.profile-hero-headline {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 4px 0 0;
    line-height: 1.4;
}

.profile-hero-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.profile-hero-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.mentor-credentials-box {
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
}

.timeline-form-panel {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.timeline-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: #eef3f8;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(10, 102, 194, 0.2);
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-role {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.timeline-org {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 2px;
}

.timeline-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin: 3px 0 6px;
}

.timeline-desc {
    font-size: 13.5px;
    color: var(--text-primary);
    line-height: 1.5;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f4f2ee;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.skill-pill:hover {
    background: #e8f3fc;
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* ==========================================================================
   16. Global Footer
   ========================================================================== */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 24px;
    margin-top: auto;
}

.footer-container {
    max-width: 1128px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-primary);
    text-decoration: none !important;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.footer-subtext {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul li a {
    font-size: 12.5px;
    color: var(--text-secondary);
    text-decoration: none !important;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--brand-primary);
    text-decoration: underline !important;
}

.footer-bottom {
    max-width: 1128px;
    margin: 28px auto 0;
    padding: 16px 16px 0;
    border-top: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   17. Toast Notifications System
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #191919;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideUpToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpToast {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   18. Responsive Media Queries
   ========================================================================== */
@media (max-width: 1080px) {
    .layout-grid-3col {
        grid-template-columns: 220px 1fr;
    }
    .sidebar-col:last-child {
        display: none;
    }
}

@media (max-width: 860px) {
    .layout-grid-3col, .layout-grid-2col {
        grid-template-columns: 1fr;
    }
    .sidebar-col {
        display: none;
    }
    .messages-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    .conversations-sidebar {
        height: 280px;
    }
    .docked-messaging-widget {
        display: none;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-search-container {
        display: none;
    }
    .mobile-search-bar {
        display: block;
    }
    .nav-links {
        display: none;
    }
    .mobile-toggle-btn {
        display: flex;
    }
    .jobs-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   19. Authentication Pages (LinkedIn Style Login, Register, Verify)
   ========================================================================== */
.auth-page-container {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 16px;
    background: var(--bg-canvas);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 36px 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo-link {
    display: inline-block;
    margin-bottom: 16px;
}

.auth-logo-img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

.auth-form {
    margin-top: 20px;
}

.auth-footer {
    text-align: center;
    font-size: 13.5px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
    margin-top: 24px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.15s ease;
}

.password-toggle-btn:hover {
    color: var(--text-primary);
}

.link-subtle {
    font-size: 13px;
    color: var(--linkedin-blue);
    text-decoration: none;
    font-weight: 600;
}

.link-subtle:hover {
    text-decoration: underline;
    color: var(--linkedin-blue-hover);
}

.link-primary {
    color: var(--linkedin-blue);
    font-weight: 700;
    text-decoration: none;
}

.link-primary:hover {
    text-decoration: underline;
    color: var(--linkedin-blue-hover);
}

.auth-shield-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-primary-light);
    color: var(--linkedin-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid rgba(10, 102, 194, 0.18);
}

.auth-channel-pill {
    display: inline-block;
    background: #eef3f8;
    color: var(--linkedin-blue);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 16px;
    margin-top: 10px;
    border: 1px solid rgba(10, 102, 194, 0.15);
}

.text-highlight {
    color: var(--text-primary);
    font-weight: 700;
}

.otp-digit-input {
    width: 100%;
    max-width: 280px;
    height: 52px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 12px;
    padding-left: 12px;
    background: #ffffff;
    border: 2px solid var(--linkedin-blue);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
}

.otp-digit-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(10, 62, 130, 0.2);
}

.otp-expiry-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.auth-accordion-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-top: 16px;
}

.auth-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--linkedin-blue);
    cursor: pointer;
    user-select: none;
}

.auth-accordion-header:hover {
    color: var(--linkedin-blue-hover);
    text-decoration: underline;
}

/* ==========================================================================
   20. Profile Timeline & Education/Experience History
   ========================================================================== */
.mentor-credentials-box {
    background: #fdfbf7;
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-left: 4px solid var(--brand-gold-text);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-top: 16px;
}

.mentor-credentials-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 6px;
}

.timeline-form-panel {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 22px;
}

.profile-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 12px;
}

.profile-timeline-item {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-timeline-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--brand-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--linkedin-blue);
    border: 1px solid rgba(10, 102, 194, 0.15);
}

.profile-timeline-details {
    flex: 1;
    min-width: 0;
}

.profile-timeline-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.profile-timeline-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px;
}

.profile-timeline-org {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.profile-timeline-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 4px 0 8px;
}

.badge-emp-type, .badge-loc-type {
    background: #f1f5f9;
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
}

.profile-timeline-desc {
    font-size: 13.5px;
    color: var(--text-primary);
    line-height: 1.5;
    margin-top: 6px;
}

/* ==========================================================================
   21. Settings & Privacy Center
   ========================================================================== */
.settings-page-container {
    max-width: 1128px;
    margin: 0 auto;
    padding: 24px 16px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.settings-nav-col {
    position: sticky;
    top: 74px;
}

.settings-menu-nav {
    display: flex;
    flex-direction: column;
}

.settings-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.settings-nav-link:hover {
    background: #f3f3f3;
    color: var(--text-primary);
}

.settings-nav-link.active {
    border-left-color: var(--linkedin-blue);
    background: #eef3f8;
    color: var(--linkedin-blue);
    font-weight: 700;
}

.settings-content-col {
    min-width: 0;
}

.settings-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .settings-nav-col {
        position: static;
    }
}

/* ==========================================================================
   22. Mentors Directory Grid
   ========================================================================== */
.mentors-page-wrapper {
    max-width: 1128px;
    margin: 0 auto;
    padding: 24px 16px;
}

.mentors-hero-banner {
    background: linear-gradient(135deg, #0A3E82 0%, #061D3D 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.mentors-hero-text h1 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
}

.mentors-hero-text p {
    font-size: 14px;
    color: #e2e8f0;
    max-width: 640px;
    margin: 0;
    line-height: 1.5;
}

.mentors-filter-bar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.mentors-filter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.mentors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.mentor-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.mentor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.mentor-card-cover {
    height: 72px;
    background: var(--brand-primary);
    background-size: cover;
    background-position: center;
}

.mentor-card-body {
    padding: 0 16px 16px;
    text-align: center;
    margin-top: -36px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mentor-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow-sm);
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
}

.mentor-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.mentor-card-name:hover {
    text-decoration: underline;
    color: var(--linkedin-blue);
}

.mentor-card-headline {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mentor-card-domain-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--linkedin-blue);
    background: var(--brand-primary-light);
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.mentor-card-lessons {
    font-size: 12px;
    font-style: italic;
    color: var(--text-secondary);
    background: #f8f9fa;
    border-left: 3px solid var(--brand-gold-text);
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
    text-align: left;
    line-height: 1.4;
}

/* ==========================================================================
   23. Knowledge Hub & Editorial
   ========================================================================== */
.hub-header-card {
    background: linear-gradient(135deg, #0A3E82 0%, #061D3D 100%);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

.hub-header-card h1 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
}

.hub-header-card p {
    font-size: 15px;
    color: #cbd5e1;
    max-width: 640px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.hub-search-box {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    gap: 8px;
}

.hub-search-box input {
    flex: 1;
    padding: 10px 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: #ffffff;
    font-size: 14px;
    color: var(--text-primary);
}

.category-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
    display: none;
}

.category-chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.category-chip:hover {
    background: #f3f3f3;
    color: var(--text-primary);
}

.category-chip.active {
    background: var(--linkedin-blue);
    color: #ffffff;
    border-color: var(--linkedin-blue);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.article-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.article-card-cover {
    height: 140px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 12px;
}

.article-cat-badge {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.article-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;
}

.article-card-body p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 14px;
    flex: 1;
}

.article-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
    font-size: 12px;
}

/* ==========================================================================
   24. Groups & Business Pages Layout
   ========================================================================== */
.groups-main-col, .pages-main-col {
    flex: 1;
    min-width: 0;
}

.groups-sidebar, .pages-sidebar {
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 860px) {
    .groups-sidebar, .pages-sidebar {
        width: 100%;
    }
}