/* ==========================================================================
   CampusVoice — Design System & Master Stylesheet
   Modern, Premium College Publishing Platform Design System
   ========================================================================== */

:root {
  /* Official BFGI Crimson Color Palette */
  --primary: #c22026;
  --primary-hover: #9e171c;
  --primary-light: #fef2f2;
  --primary-glow: rgba(194, 32, 38, 0.22);

  --accent: #1e293b;
  --accent-light: #f1f5f9;

  --success: #10b981;
  --success-light: #d1fae5;
  --success-dark: #047857;

  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --warning-dark: #b45309;

  --danger: #ef4444;
  --danger-light: #fee2e2;
  --danger-dark: #b91c1c;

  --gold: #f59e0b;
  --silver: #94a3b8;
  --bronze: #d97706;

  /* Neutrals & Surfaces */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #f87171;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Jost', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.2);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  color: var(--primary-hover);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
}

.container-fluid {
  max-width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

.main-content {
  flex: 1 0 auto;
  padding-bottom: 4rem;
}

/* ==========================================================================
   Navigation Bar (Public)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #eef2f6;
  transition: var(--transition);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
  transition: opacity 0.15s ease;
}

.brand-logo:hover {
  text-decoration: none;
  opacity: 0.95;
}

.brand-crest-frame {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 1px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.brand-logo:hover .brand-crest-frame {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.brand-crest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  display: block;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #c22026 0%, #881318 100%);
  color: white;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(194, 32, 38, 0.28);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.brand-title {
  display: block;
  font-family: 'Inter', var(--font-sans);
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #0b1a30;
  line-height: 1.15;
  margin: 0;
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  color: #64748b;
  font-weight: 650;
  display: block;
  line-height: 1.15;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

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

.nav-search {
  flex: 1;
  max-width: 300px;
  position: relative;
}

.nav-search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.4rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  outline: none;
  transition: var(--transition);
}

.nav-search-input:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.nav-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* User Menu Dropdown */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.user-menu-trigger:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-subtle);
}

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

.user-name-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 240px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}

.user-menu:hover .user-dropdown,
.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}

.user-dropdown-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.user-dropdown-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.user-dropdown-item:hover {
  background-color: var(--bg-subtle);
  color: var(--primary);
}

.user-dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.4rem 0;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: white;
  box-shadow: 0 4px 8px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  color: var(--text-main);
}

.btn-success {
  background-color: var(--success);
  color: white;
}

.btn-success:hover {
  background-color: var(--success-dark);
  color: white;
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-danger:hover {
  background-color: var(--danger-dark);
  color: white;
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary-light);
  color: var(--primary-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-published, .badge-active, .badge-success {
  background-color: var(--success-light);
  color: var(--success-dark);
}

.badge-pending, .badge-warning {
  background-color: var(--warning-light);
  color: var(--warning-dark);
}

.badge-draft, .badge-secondary {
  background-color: var(--bg-muted);
  color: var(--text-muted);
}

.badge-rejected, .badge-suspended, .badge-danger {
  background-color: var(--danger-light);
  color: var(--danger-dark);
}

.badge-changes_requested {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px dashed #f59e0b;
}

.badge-points {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fcd34d;
  font-family: var(--font-heading);
}

/* ==========================================================================
   1. Compact Modern Editorial Hero (Clean, Tight, Anti-Slop)
   ========================================================================== */
/* ==========================================================================
   1. Compact Split Hero Section (Authentic, Collegiate, Anti-Slop)
   ========================================================================== */
.hero-split-section {
  position: relative;
  padding: 3rem 0 2.75rem;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

/* Left Column: Heading, Description & Action Buttons */
.hero-split-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-split-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.hero-split-title {
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: #0f172a;
  margin: 0 0 1rem 0;
}

.hero-split-accent {
  color: var(--primary);
  position: relative;
}

.hero-split-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #475569;
  max-width: 540px;
  margin: 0 0 1.5rem 0;
}

.hero-split-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.btn-hero-action {
  padding: 0.75rem 1.4rem;
  font-size: 0.925rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-action.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  border: 1px solid #9e171c;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 3px 8px rgba(194, 32, 38, 0.2);
}

.btn-hero-action.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 5px 12px rgba(194, 32, 38, 0.28);
}

.btn-hero-action.btn-secondary {
  background: #ffffff;
  color: #1e293b !important;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-hero-action.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.hero-split-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.hero-split-link:hover {
  text-decoration: underline;
}

/* Right Column: Join Campus Network Card with Profiles */
.hero-network-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.65rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 20px -4px rgba(15, 23, 42, 0.06);
}

.hero-network-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.hero-network-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.hero-network-title {
  font-size: 1.25rem;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-network-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-full);
}

.hero-network-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 1.15rem 0;
}

.hero-network-profiles {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.hero-profile-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.18s ease;
}

.hero-profile-row:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transform: translateX(2px);
}

.hero-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

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

.hero-profile-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.hero-profile-dept {
  font-size: 0.74rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 750;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.hero-network-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e2e8f0;
}

.hero-network-proof {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-avatar-stack {
  display: flex;
  align-items: center;
}

.hero-avatar-stack img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  margin-left: -7px;
}

.hero-avatar-stack img:first-child {
  margin-left: 0;
}

.hero-network-proof-text {
  font-size: 0.78rem;
  color: #64748b;
}

.hero-network-proof-text strong {
  color: #0f172a;
}

.hero-network-cta {
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

/* ==========================================================================
   Section Universal Heading Row (Consistent Px, Spacing, Edges)
   ========================================================================== */
.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.section-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0;
}

.section-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin-top: 0.35rem;
  max-width: 620px;
}

.section-browse-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.section-browse-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   2. Trending Across Departments (Compact Grid, Algorithm-backed)
   ========================================================================== */
.section-trending {
  padding: 3rem 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.trending-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.trending-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.trending-card-item:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.06);
}

.trending-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.trending-dept-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: #fef2f2;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid #fee2e2;
}

.trending-rank-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.trending-card-title {
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
  color: #0f172a;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-card-title a {
  color: inherit;
  text-decoration: none;
}

.trending-card-title a:hover {
  color: var(--primary);
}

.trending-card-excerpt {
  font-size: 0.825rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-card-meta {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.trending-card-author {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.author-avatar-xs {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-name-xs {
  color: #334155;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-card-stats {
  color: #94a3b8;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.meta-separator {
  color: #cbd5e1;
}

/* ==========================================================================
   3. Latest from All Rooms (Social Media Like Stream Feed)
   ========================================================================== */
.section-social-feed {
  padding: 3.25rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.container-stream {
  max-width: 820px;
}

.stream-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.stream-search-form {
  position: relative;
  min-width: 240px;
}

.stream-search-form svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.stream-search-input {
  width: 100%;
  padding: 0.45rem 0.85rem 0.45rem 2rem;
  font-size: 0.85rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  outline: none;
  transition: all 0.2s ease;
}

.stream-search-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(194, 32, 38, 0.1);
}

.stream-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  -webkit-overflow-scrolling: touch;
}

.stream-pill {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.stream-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.stream-pill.active {
  background: #0f172a;
  color: #ffffff;
}

.stream-post-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stream-post-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.stream-post-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.stream-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.stream-author-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.stream-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.stream-author-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.stream-author-name {
  font-size: 0.92rem;
  font-weight: 750;
  color: #0f172a;
}

.stream-author-handle {
  font-size: 0.75rem;
  color: #64748b;
}

.stream-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.stream-dept-badge {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--primary);
  background: #fef2f2;
  border: 1px solid #fee2e2;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.stream-time {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
}

.stream-item-content {
  margin-bottom: 1rem;
}

.stream-item-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin: 0 0 0.45rem;
}

.stream-item-title a {
  color: inherit;
  text-decoration: none;
}

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

.stream-item-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

.stream-media-preview {
  margin-top: 0.85rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 260px;
  background: #0f172a;
}

.stream-media-img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

.stream-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.stream-footer-stats {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
}

.stream-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.stream-cat-tag {
  color: #b45309;
  font-weight: 600;
}

.stream-read-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.825rem;
}

.stream-read-action:hover {
  text-decoration: underline;
}

.stream-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination-indicator {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.stream-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  color: #64748b;
}

/* ==========================================================================
   4. Top 5 Contributors (Across All Departments)
   ========================================================================== */
.section-contributors {
  padding: 3.25rem 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.contributors-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.15rem;
}

.contributor-card-5 {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.35rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.contributor-card-5:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.06);
}

.contributor-rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.rank-badge-1 {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.rank-badge-2 {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.rank-badge-3 {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.rank-badge-4, .rank-badge-5 {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.contributor-avatar-wrap {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.contributor-avatar-lg {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.contributor-name-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.contributor-name-text a {
  color: inherit;
  text-decoration: none;
}

.contributor-name-text a:hover {
  color: var(--primary);
}

.contributor-dept-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.contributor-score-pill {
  font-size: 0.78rem;
  font-weight: 800;
  color: #92400e;
  background: #fef3c7;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 0.45rem;
}

.contributor-posts-count {
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 0.85rem;
}

.contributor-profile-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  background: #ffffff;
  transition: all 0.15s ease;
}

.contributor-profile-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   5. Department Rooms (Compact Modern Directory)
   ========================================================================== */
.section-rooms {
  padding: 3.25rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.rooms-grid-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.15rem;
}

.room-directory-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.room-directory-item:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -2px rgba(15, 23, 42, 0.05);
}

.room-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.room-code-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  background: #fef2f2;
  border: 1px solid #fee2e2;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.room-followers-text {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.room-item-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  margin: 0 0 0.65rem;
}

.room-item-title a {
  color: inherit;
  text-decoration: none;
}

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

.room-stats-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.room-stat-pill {
  font-size: 0.72rem;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.room-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.btn-room-follow {
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-room-follow:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-room-follow.following {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.room-enter-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.room-enter-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   6. Ready to Share Callout Banner (Compact, Sleek)
   ========================================================================== */
.section-ready-banner {
  padding: 3rem 0;
  background: #ffffff;
}

.ready-banner-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #881337 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
}

.ready-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.ready-banner-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 850;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.ready-banner-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 580px;
  margin: 0 auto 1.75rem;
  position: relative;
  z-index: 1;
}

.ready-banner-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-ready-primary {
  padding: 0.75rem 1.65rem;
  font-size: 0.925rem;
  font-weight: 750;
  color: #0f172a !important;
  background: #ffffff;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-ready-primary:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-ready-secondary {
  padding: 0.75rem 1.5rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-ready-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}


/* ==========================================================================
   Department Room Cards & Bar
   ========================================================================== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.section-header .section-title {
  padding-bottom: 0;
  margin-bottom: 0;
}

.section-header .section-title::after {
  bottom: -0.85rem;
}

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

.dept-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dept-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.dept-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dept-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.dept-code {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.dept-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.dept-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.dept-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Article Grid & Cards
   ========================================================================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-focus);
}

.article-card-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--bg-subtle);
}

.article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.article-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.article-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.55;
}

.article-card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

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

.author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.author-dept {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Leaderboard Podium & Tables
   ========================================================================== */
.leaderboard-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 1rem;
}

.podium-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-md);
  position: relative;
  text-align: center;
  width: 220px;
  transition: var(--transition);
}

.podium-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.podium-rank-1 {
  order: 2;
  border-color: #fbbf24;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 50%);
  padding-bottom: 2.5rem;
  margin-bottom: 1.5rem;
}

.podium-rank-2 {
  order: 1;
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%);
}

.podium-rank-3 {
  order: 3;
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 50%);
}

.podium-badge {
  position: absolute;
  top: -16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.badge-gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.badge-silver { background: linear-gradient(135deg, #94a3b8, #64748b); }
.badge-bronze { background: linear-gradient(135deg, #d97706, #92400e); }

.podium-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
}

.podium-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.podium-dept {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.podium-score {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Dashboard Layout (Student, Editor, Admin)
   ========================================================================== */
.dashboard-wrapper {
  display: flex;
  min-height: calc(100vh - 72px);
}

.dashboard-sidebar {
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 1.5rem 1rem;
}

.dashboard-sidebar-header {
  padding: 0.5rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

.sidebar-role-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
  flex-grow: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.sidebar-link-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-link:hover {
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.sidebar-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.dashboard-body {
  flex: 1;
  background-color: var(--bg-main);
  padding: 2rem 2.5rem;
  overflow-y: auto;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 1.8rem;
  font-weight: 800;
}

.dashboard-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Stat Widgets */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-icon.blue { background: #fee2e2; color: #c22026; }
.stat-icon.emerald { background: #d1fae5; color: #059669; }
.stat-icon.amber { background: #fef3c7; color: #d97706; }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-icon.rose { background: #ffe4e6; color: #e11d48; }

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Data Tables */
.card-table {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}

.card-table-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-surface);
}

.card-table-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.table th {
  background-color: var(--bg-subtle);
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  color: var(--text-main);
}

.table tbody tr:hover {
  background-color: var(--bg-subtle);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Forms, Inputs, & WYSIWYG Editor
   ========================================================================== */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

/* Custom Live WYSIWYG Editor */
.editor-container {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: visible;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.editor-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 5;
}

.editor-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.editor-toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--border-color);
  margin: 0 0.35rem;
}

.editor-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.55rem;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.editor-btn:hover {
  background: var(--bg-surface);
  border-color: var(--border-color);
  color: var(--primary);
}

.editor-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Floating Link Popover for editing & removing links */
.editor-link-popover {
  position: absolute;
  z-index: 60;
  background: #0f172a;
  color: #ffffff;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: none;
  align-items: center;
  font-size: 0.825rem;
  font-family: var(--font-sans);
  pointer-events: auto;
  transform: translateX(-50%);
  white-space: nowrap;
}

.editor-link-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}

.editor-link-popover.popover-below::after {
  top: auto;
  bottom: 100%;
  border-width: 0 6px 6px 6px;
  border-color: transparent transparent #0f172a transparent;
}

.editor-link-popover a.link-preview {
  color: #38bdf8;
  text-decoration: underline;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.8rem;
}

.editor-link-popover a.link-preview:hover {
  color: #7dd3fc;
}

.editor-link-popover .popover-btn {
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #ffffff;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.editor-link-popover .popover-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.editor-link-popover .popover-btn.popover-btn-apply {
  background: #2563eb;
  color: #ffffff;
}

.editor-link-popover .popover-btn.popover-btn-apply:hover {
  background: #1d4ed8;
}

.editor-link-popover .popover-btn.btn-remove-link:hover {
  background: #ef4444;
  color: #ffffff;
}

.editor-link-popover .popover-input {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  width: 220px;
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.editor-link-popover .popover-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.live-editor-content {
  position: relative;
  min-height: 420px;
  max-height: 750px;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1e293b;
  font-family: var(--font-sans);
  outline: none;
  word-break: break-word;
  background: var(--bg-surface);
}

.live-editor-content:empty::before,
.live-editor-content[data-is-empty="true"]::before {
  content: attr(data-placeholder);
  position: absolute;
  top: 1.5rem;
  left: 1.75rem;
  right: 1.75rem;
  color: #94a3b8;
  font-style: italic;
  font-size: 1.05rem;
  pointer-events: none;
  line-height: 1.8;
  user-select: none;
  display: block;
}

.live-editor-content p {
  margin-bottom: 1.25rem;
}

.live-editor-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--text-main);
  font-family: var(--font-heading);
  line-height: 1.3;
}

.live-editor-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  color: var(--text-main);
  font-family: var(--font-heading);
  line-height: 1.4;
}

.live-editor-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.live-editor-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 0.85rem 1.25rem;
  background: var(--bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  margin: 1.5rem 0;
  color: var(--text-muted);
}

.live-editor-content code {
  background: var(--bg-subtle);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--primary);
}

.live-editor-content pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.live-editor-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.live-editor-content ul,
.live-editor-content ol {
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
}

.live-editor-content li {
  margin-bottom: 0.4rem;
}

.live-editor-content a {
  color: var(--primary);
  text-decoration: underline;
}

.live-editor-content hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

.editor-source-view {
  width: 100%;
  min-height: 420px;
  max-height: 750px;
  padding: 1.25rem;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.6;
  background: #0f172a;
  color: #f8fafc;
  outline: none;
  resize: vertical;
  display: none;
}

.editor-textarea {
  display: none;
}

/* Image Upload Preview Box */
.image-upload-box {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  background: var(--bg-subtle);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.image-upload-box:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.image-upload-box.has-error {
  border-color: var(--danger, #ef4444) !important;
  background-color: rgba(239, 68, 68, 0.05) !important;
}

@keyframes uploadErrorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.upload-error-shake {
  animation: uploadErrorShake 0.4s ease-in-out;
}

.upload-preview {
  max-height: 200px;
  border-radius: var(--radius-md);
  margin: 1rem auto 0;
  display: none;
}

/* ==========================================================================
   Alerts & Flash Messages
   ========================================================================== */
.flash-messages-container {
  margin-bottom: 1.5rem;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.925rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.alert-success {
  background-color: var(--success-light);
  color: var(--success-dark);
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background-color: var(--danger-light);
  color: var(--danger-dark);
  border: 1px solid #fecaca;
}

.alert-warning {
  background-color: var(--warning-light);
  color: var(--warning-dark);
  border: 1px solid #fde68a;
}

.alert-info {
  background-color: var(--primary-light);
  color: var(--primary-hover);
  border: 1px solid #bae6fd;
}

.alert-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-content {
  flex-grow: 1;
}

.alert-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}

.alert-close:hover {
  opacity: 1;
}

/* ==========================================================================
   Tabs & Navigation Filters
   ========================================================================== */
.tab-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.75rem;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ==========================================================================
   Article Detail & Magazine View
   ========================================================================== */
.article-header {
  margin-bottom: 2.5rem;
}

.article-headline {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 1rem 0 1.5rem;
  color: var(--text-main);
}

.article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}

.article-body-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #1e293b;
}

.article-body-content p {
  margin-bottom: 1.5rem;
}

.article-body-content h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
}

.article-body-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

.article-body-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  margin: 2rem 0;
}

.article-body-content code {
  background: var(--bg-subtle);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.article-body-content pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-body-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.author-bio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 3.5rem;
  box-shadow: var(--shadow-sm);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.site-footer .btn-primary {
  box-shadow: 0 4px 14px rgba(194, 32, 38, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.site-footer .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(194, 32, 38, 0.55);
  transform: translateY(-1px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Notifications & Follow Button Micro-Interactions
   ========================================================================== */
.nav-notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-md);
}

.nav-notif-btn:hover {
  color: var(--primary);
  background: var(--bg-subtle);
}

.nav-notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  padding: 2px 5px;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.btn-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.btn-follow:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-follow.following {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border-color: var(--border-color);
}

.btn-follow.following:hover {
  background: var(--danger-light);
  color: var(--danger-dark);
  border-color: #fca5a5;
}

/* ==========================================================================
   Logged-in Social Media Feed (3-Column Layout)
   ========================================================================== */
.feed-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 320px;
  gap: 1.75rem;
  align-items: flex-start;
  padding-bottom: 3.5rem;
}

/* Left Sidebar */
.feed-sidebar-left {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feed-user-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feed-user-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, #c22026 0%, #881318 100%);
  opacity: 0.95;
}

.feed-user-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--bg-surface);
  object-fit: cover;
  position: relative;
  z-index: 1;
  margin-top: 10px;
  margin-bottom: 0.6rem;
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
}

.feed-user-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.feed-user-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.feed-user-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  gap: 0.5rem;
}

.feed-stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
}

.feed-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

.feed-nav-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.feed-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}

.feed-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.feed-nav-link:hover, .feed-nav-link.active {
  background: var(--bg-subtle);
  color: var(--primary);
  font-weight: 600;
}

.feed-dept-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-main);
  transition: var(--transition);
}

.feed-dept-pill:hover {
  background: var(--bg-subtle);
}

/* Center Feed */
.feed-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.feed-composer-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feed-composer-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.feed-composer-input {
  flex: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feed-composer-input:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}

.feed-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Segmented Feed Tabs */
.feed-tabs-bar {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 0.35rem;
  gap: 0.35rem;
  box-shadow: var(--shadow-xs);
}

.feed-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.feed-tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.feed-tab-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Feed Stream Cards */
.feed-stream {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feed-post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
  position: relative;
}

.feed-post-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feed-post-card.notice-card {
  border-left: 4px solid var(--warning);
  background: #ffffff;
}

.feed-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.feed-author-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feed-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-subtle);
}

.feed-author-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.2;
}

.feed-author-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.feed-post-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin-top: 0.2rem;
}

.feed-post-title a {
  color: var(--text-main);
}

.feed-post-title a:hover {
  color: var(--primary);
}

.feed-post-excerpt {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

.feed-post-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.feed-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feed-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  background: transparent;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.feed-action-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

/* Right Sidebar */
.feed-sidebar-right {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feed-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.feed-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.feed-widget-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.feed-trending-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}

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

.feed-trending-rank {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-subtle);
  width: 22px;
  flex-shrink: 0;
}

.feed-trending-content {
  flex: 1;
}

.feed-trending-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  transition: var(--transition);
}

.feed-trending-item:hover .feed-trending-title {
  color: var(--primary);
}

.feed-notice-item {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border-left: 3px solid var(--warning);
  margin-bottom: 0.65rem;
}

.feed-notice-item:last-child {
  margin-bottom: 0;
}

/* Toast alert for share */
.feed-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feed-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1180px) {
  .feed-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .feed-sidebar-right {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .trending-grid-compact {
    grid-template-columns: repeat(2, 1fr);
  }
  .contributors-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-wrapper {
    flex-direction: column;
  }
  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

@media (max-width: 820px) {
  .feed-layout {
    grid-template-columns: 1fr;
  }
  .feed-sidebar-left {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-search {
    display: none;
  }
  .site-nav {
    height: 64px;
  }
  .hero-split-section {
    padding: 2.25rem 0 2rem;
  }
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-split-lead {
    align-items: center;
    text-align: center;
  }
  .hero-split-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-split-title {
    font-size: 1.95rem;
  }
  .hero-split-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-hero-action {
    width: 100%;
    justify-content: center;
  }
  .hero-network-card {
    width: 100%;
    padding: 1.25rem;
  }
  .trending-grid-compact {
    grid-template-columns: 1fr;
  }
  .contributors-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stream-header {
    flex-direction: column;
    align-items: stretch;
  }
  .stream-search-form {
    width: 100%;
  }
  .stream-item-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .stream-header-right {
    margin-top: 0.35rem;
  }
  .article-headline {
    font-size: 2rem;
  }
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
  .leaderboard-podium {
    flex-direction: column;
    align-items: center;
  }
  .podium-card {
    width: 100%;
    max-width: 320px;
  }
  .podium-rank-1 { order: 1; }
  .podium-rank-2 { order: 2; }
  .podium-rank-3 { order: 3; }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .contributors-grid-5 {
    grid-template-columns: 1fr;
  }
  .rooms-grid-directory {
    grid-template-columns: 1fr;
  }
  .ready-banner-card {
    padding: 2.25rem 1.25rem;
  }
  .btn-ready-primary, .btn-ready-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Font Awesome Icon System Utilities
   ========================================================================== */
.text-gold {
  color: #d97706 !important;
}

.text-amber {
  color: #f59e0b !important;
}

.badge i, 
.btn i, 
.nav-link i, 
.user-dropdown-item i,
.sidebar-link i,
.feed-tab-btn i {
  margin-right: 0.35rem;
}

.badge-points i {
  color: #d97706;
}

/* ==========================================================================
   HOMEPAGE PREMIUM REDESIGN (INSPIRED BY REFERENCE)
   ========================================================================== */

/* 1. Hero: Centered Editorial "Where Campus Ideas Converge" */
.hero.hero-converge-theme {
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(1200px 520px at 50% -40px, rgba(238, 244, 255, 0.95) 0%, rgba(240, 249, 255, 0.7) 42%, rgba(248, 250, 252, 0) 100%),
    radial-gradient(750px 420px at 92% 10%, rgba(243, 232, 255, 0.55) 0%, transparent 72%),
    radial-gradient(700px 400px at 8% 18%, rgba(224, 242, 254, 0.65) 0%, transparent 72%),
    #fcfdff;
  border-bottom: 1px solid #e9eff6;
  padding: 72px 0 58px;
  margin-top: 0;
}

.hero.hero-converge-theme::before {
  content: "";
  position: absolute;
  top: -90px;
  left: 15%;
  width: 480px;
  height: 320px;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.35) 0%, rgba(199, 210, 254, 0.15) 55%, transparent 75%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
}

.hero.hero-converge-theme::after {
  content: "";
  position: absolute;
  top: -60px;
  right: 12%;
  width: 440px;
  height: 300px;
  background: radial-gradient(circle, rgba(233, 213, 255, 0.3) 0%, rgba(254, 226, 226, 0.12) 60%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-centered-container {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Pill Badge - Soothing Frosted Glass Capsule */
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(199, 210, 254, 0.65);
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 24px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.06), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-pill-badge:hover {
  border-color: rgba(165, 180, 252, 0.9);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
  transform: translateY(-1px);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.hero-pill-divider {
  color: #c7d2fe;
  margin: 0 6px;
  font-weight: 400;
}

/* Main Headline */
.hero-headline {
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: 1.12;
  font-weight: 850;
  color: #0b1a30;
  letter-spacing: -0.035em;
  margin: 0 0 20px 0;
  font-family: var(--font-heading);
  max-width: 780px;
  text-wrap: balance;
}

.hero-converge {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 850;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 48%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  padding-bottom: 2px;
}

.hero-converge::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 4px;
  right: 4px;
  height: 3.5px;
  background: linear-gradient(90deg, #2563eb 0%, #6366f1 55%, #38bdf8 100%);
  border-radius: 9999px;
  opacity: 0.85;
}

/* Description */
.hero-description {
  max-width: 630px;
  margin: 0 auto 32px auto;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: #475569;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Action Buttons */
.hero-action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.btn-hero-dark {
  background: linear-gradient(135deg, #0e2248 0%, #173872 100%);
  color: #ffffff !important;
  border: 1px solid rgba(14, 34, 72, 0.9);
  padding: 11.5px 24px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 14px rgba(14, 34, 72, 0.18), 0 1px 2px rgba(14, 34, 72, 0.1);
}

.btn-hero-dark:hover {
  background: linear-gradient(135deg, #081730 0%, #0f2a58 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14, 34, 72, 0.26);
}

.btn-hero-dark i {
  font-size: 13px;
  color: #93c5fd;
}

.btn-hero-light {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1e3a8a !important;
  border: 1px solid rgba(203, 213, 225, 0.9);
  padding: 11.5px 24px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(148, 163, 184, 0.12);
}

.btn-hero-light:hover {
  background: #ffffff;
  border-color: #93c5fd;
  color: #1d4ed8 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(148, 163, 184, 0.18);
}

.btn-hero-light i {
  color: #2563eb;
  font-size: 14px;
}

/* Divider */
.hero-stats-divider {
  width: 100%;
  max-width: 820px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(203, 213, 225, 0.5) 15%, rgba(199, 210, 254, 0.85) 50%, rgba(203, 213, 225, 0.5) 85%, transparent 100%);
  margin: 0 auto 36px auto;
}

/* Stats Row - Soothing Frosted Glass Stat Cards */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 12px;
  padding: 16px 12px;
  box-shadow: 0 2px 10px rgba(148, 163, 184, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-stat-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(199, 210, 254, 0.8);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.08);
}

.hero-stat-value {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #1e3a8a;
  font-family: var(--font-heading);
  margin-bottom: 5px;
}

.hero-stat-value.hero-stat-blue {
  color: #0284c7;
}

.hero-stat-value.hero-stat-emerald {
  color: #059669;
}

.hero-stat-value.hero-stat-amber {
  color: #d97706;
}

.hero-stat-caption {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 650;
  color: #64748b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-art-img {
  width: min(100%, 460px);
  max-height: 290px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(220, 230, 242, 0.9);
  box-shadow: 0 10px 28px rgba(23, 43, 77, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-art-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(23, 43, 77, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* 2. Section Common Headings */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-top: 36px;
}

.section-head .section-title {
  margin: 0 0 8px 0;
  padding-bottom: 8px;
  position: relative;
  display: inline-block;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 780;
  color: #172b4d;
  font-family: var(--font-heading);
}

.section-head .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 999px;
}

.section-head .section-subtitle {
  margin: 4px 0 0;
  color: #65758b;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2459a9;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
}

.view-all:hover {
  color: #194987;
  text-decoration: underline;
}

/* 3. Trending Grid */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trend-card {
  min-width: 0;
  border: 1px solid #e5ebf2;
  border-radius: 10px;
  padding: 14px;
  background: white;
  box-shadow: 0 2px 10px rgba(23, 43, 77, .035);
  transition: border-color .18s ease, transform .18s ease;
  display: flex;
  flex-direction: column;
}

.trend-card:hover {
  border-color: #c8d8ee;
  transform: translateY(-2px);
}

.trend-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.trend-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #c22026;
  font-size: 11px;
  font-weight: 750;
}

.dept-pill {
  display: inline-flex;
  max-width: 100%;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #edf4ff;
  color: #2459a9;
  font-size: 10.5px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.dept-pill.green { color: #087d78; background: #e9f7f3; }
.dept-pill.purple { color: #6d42b5; background: #f2edff; }
.dept-pill.red { color: #c22026; background: #fef2f2; }

.trend-thumb {
  width: 72px;
  height: 58px;
  flex: 0 0 72px;
  object-fit: cover;
  border-radius: 6px;
  background: #edf2f7;
}

.trend-card h3 {
  margin: 9px 0 5px;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -.15px;
  font-weight: 750;
}

.trend-card h3 a {
  color: #172b4d;
  text-decoration: none;
}

.trend-card h3 a:hover {
  color: #2459a9;
}

.trend-card .excerpt {
  margin: 0;
  color: #65758b;
  font-size: 12px;
  line-height: 1.55;
  min-height: 37px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trend-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #f0f3f7;
}

.author-mini {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.author-mini-text { min-width: 0; }
.author-mini strong { display: block; color: #344761; font-size: 11px; font-weight: 650; }
.author-mini span { display: block; color: #8795a8; font-size: 10px; }

.author-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7287a3;
  font-size: 11px;
  white-space: nowrap;
}

.metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 4. Faculty & Campus Bulletins (University Registry) */
.faculty-bulletins-section {
  background: #ffffff;
  padding-top: 36px;
  padding-bottom: 36px;
}

.bulletins-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.bulletins-meta-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  font-size: 11px;
}

.bulletins-registry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c2410c;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 11px;
}

.bulletins-amber-dot {
  width: 7px;
  height: 7px;
  background: #ea580c;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.bulletins-sep {
  color: #cbd5e1;
}

.bulletins-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2563eb;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11.5px;
}

.bulletins-title {
  margin: 0;
  font-size: clamp(23px, 2.5vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #0f1f38;
  font-family: var(--font-heading);
}

.bulletins-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.bulletins-archive-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.bulletins-header-divider {
  width: 100%;
  height: 1px;
  background: #edf2f7;
  margin-bottom: 22px;
}

/* Bulletins Grid */
.bulletins-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bulletin-card {
  border: 1px solid #e5ebf2;
  border-radius: 12px;
  padding: 22px 20px 18px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 31, 56, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bulletin-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 31, 56, 0.06);
}

.bulletin-card.is-pinned {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}

/* Top Row */
.bulletin-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.bulletin-dept-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3.5px 9px;
  border-radius: 5px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e40af;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  max-width: 100%;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s ease;
}

.bulletin-dept-pill:hover {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #bfdbfe;
  text-decoration: none;
}

.bulletin-dept-pill i {
  color: #2563eb;
  font-size: 11px;
}

.bulletin-dept-pill.pinned-pill {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #1e40af;
}

.bulletin-time-text {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #8795a8;
  font-weight: 500;
  white-space: nowrap;
}

/* Title */
.bulletin-card-title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 750;
}

.bulletin-card-title a {
  color: #0f1f38;
  text-decoration: none;
  transition: color 0.15s ease;
}

.bulletin-card-title a:hover {
  color: #2563eb;
}

/* Excerpt */
.bulletin-card-excerpt {
  margin: 0 0 18px;
  font-family: var(--font-sans);
  color: #52647d;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 56px;
}

/* Footer */
.bulletin-card-footer {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bulletin-author-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.01em;
  text-transform: none;
  max-width: 62%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bulletin-author-info i {
  color: #64748b;
  font-size: 11.5px;
  flex-shrink: 0;
}

.bulletin-read-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2563eb;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.bulletin-read-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.bulletin-read-link i {
  font-size: 11px;
}

/* Backward compatibility classes */
.announcements-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.announcement-card { border: 1px solid #e5ebf2; border-radius: 12px; padding: 22px 20px 18px; background: #ffffff; }

/* 5. Latest Feed Stream */
.feed {
  border-top: 1px solid #e5ebf2;
}

.feed-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 130px 82px 14px;
  align-items: center;
  gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid #e5ebf2;
}

.feed-item:hover .feed-title {
  color: #2459a9;
}

.feed-avatar {
  align-self: start;
  margin-top: 2px;
}

.feed-content {
  min-width: 0;
}

.feed-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #8795a8;
  font-family: var(--font-sans);
  font-size: 11.5px;
}

.feed-byline strong {
  color: #2c4669;
  font-family: var(--font-heading);
  font-weight: 700;
}

.feed-byline .dot {
  color: #b2bdca;
}

.feed-title {
  display: inline-block;
  margin-top: 3px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: #172b4d;
  text-decoration: none;
  transition: color .15s ease;
}

.feed-excerpt {
  margin: 3px 0 0;
  max-width: 680px;
  font-family: var(--font-sans);
  color: #65758b;
  font-size: 12.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-thumb {
  width: 130px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  background: #edf2f7;
}

.feed-arrow {
  color: #8ca0ba;
  font-size: 13px;
}

/* 6. Contributors */
.contributors-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.contributor {
  position: relative;
  min-width: 0;
  padding: 15px 10px 13px;
  border: 1px solid #e5ebf2;
  border-radius: 9px;
  text-align: center;
  background: white;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease;
  display: block;
}

.contributor:hover {
  border-color: #c8d8ee;
  transform: translateY(-2px);
}

.rank {
  position: absolute;
  top: 9px;
  left: 9px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  background: #edf1f6;
  color: #62738a;
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 800;
}

.rank.first { color: #fff; background: #f4bd3f; }
.rank.second { color: #52647a; background: #dce4ed; }
.rank.third { color: #fff; background: #df8951; }

.contributor .avatar-lg {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contributor-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #172b4d;
}

.contributor-dept {
  margin-top: 3px;
  font-family: var(--font-sans);
  color: #65758b;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contributor-stats {
  margin-top: 9px;
  font-family: var(--font-sans);
  color: #526782;
  font-size: 10.5px;
}

.contributor-stats strong {
  font-family: var(--font-heading);
  font-weight: 750;
  color: #172b4d;
}
.contributor-stats span { padding-inline: 4px; color: #b4bfcc; }

/* ==========================================================================
   7. Explore & Follow Department Rooms (Campus Channels)
   ========================================================================== */
.rooms-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.rooms-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.rooms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2563eb;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.rooms-eyebrow i {
  font-size: 11.5px;
}

.rooms-section-title {
  margin: 0 0 6px 0;
  font-size: clamp(25px, 2.8vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #0f1f38;
  font-family: var(--font-heading);
}

.rooms-section-subtitle {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: #64748b;
  max-width: 640px;
}

.rooms-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1d4ed8;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, transform 0.18s ease;
}

.rooms-view-all:hover {
  color: #1e40af;
  transform: translateX(2px);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.room-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(15, 31, 56, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  position: relative;
}

.room-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 31, 56, 0.06);
}

.room-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.room-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.room-card:hover .room-icon-box {
  transform: scale(1.05);
}

.room-action-wrap {
  flex-shrink: 0;
}

.btn-room-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 650;
  padding: 6px 16px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-room-follow:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-room-follow.following {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
  font-weight: 600;
}

.btn-room-follow.following:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.room-card-title {
  margin: 0 0 7px 0;
  font-family: var(--font-heading);
  font-size: 16.5px;
  line-height: 1.32;
  letter-spacing: -0.015em;
  font-weight: 750;
}

.room-card-title a {
  color: #0f1f38;
  text-decoration: none;
  transition: color 0.15s ease;
}

.room-card-title a:hover {
  color: #2563eb;
}

.room-card-desc {
  margin: 0 0 16px 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.55;
  color: #64748b;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.room-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.room-scholars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.room-scholars i {
  font-size: 11px;
  color: #94a3b8;
}

.room-activity {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Backward compatibility classes */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.department-name {
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 750;
}

.department-desc {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: #64748b;
}

.btn-dept-follow {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 650;
}

/* 8. Call to Action Banner */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  margin-bottom: 24px;
  padding: 20px 24px;
  border: 1px solid #d8eee8;
  border-radius: 10px;
  background: #edf8f5;
}

.cta-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cta-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d7eee8;
  color: #087d78;
  font-size: 18px;
}

.cta h2 {
  margin: 0;
  color: #124e50;
  font-size: 18px;
  letter-spacing: -0.02em;
  font-weight: 780;
  font-family: var(--font-heading);
}

.cta p {
  margin: 4px 0 0;
  color: #55716f;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
}

.btn-teal {
  color: white !important;
  background: #087b73;
  border-color: #087b73;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 9px 18px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
  transition: all .18s ease;
}

.btn-teal:hover {
  background: #06665f;
  transform: translateY(-1px);
}

@media (max-width: 1000px) {
  .hero-inner { gap: 24px; }
  .feed-item { grid-template-columns: 34px minmax(0, 1fr) 110px 70px 14px; gap: 11px; }
  .feed-thumb { width: 110px; }
  .metrics { gap: 8px; }
  .trending-grid { grid-template-columns: repeat(2, 1fr); }
  .announcements-grid, .bulletins-grid { grid-template-columns: repeat(2, 1fr); }
  .rooms-grid, .departments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 768px) {
  .site-nav {
    height: 60px;
  }
  .brand-crest-img {
    width: 36px;
    height: 36px;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-sub {
    font-size: 0.65rem;
    max-width: 175px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Hero Converge Theme Mobile Optimization */
  .hero-converge-theme {
    padding: 40px 0 32px;
  }
  .hero-centered-container {
    padding-inline: 16px;
  }
  .hero-pill-badge {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    font-size: 11px;
    padding: 6px 12px;
    line-height: 1.4;
    margin-bottom: 18px;
  }
  .hero-headline {
    font-size: clamp(26px, 7.5vw, 38px);
    line-height: 1.18;
    margin-bottom: 14px;
    letter-spacing: -0.025em;
  }
  .hero-description {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 24px;
    padding-inline: 4px;
  }
  .hero-action-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    margin-bottom: 28px;
    gap: 10px;
  }
  .btn-hero-dark, .btn-hero-light {
    width: 100%;
    justify-content: center;
    padding: 11px 18px;
    font-size: 13.5px;
  }
  .hero-stats-divider {
    margin-bottom: 24px;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
    max-width: 360px;
    margin-inline: auto;
  }
  .hero-stat-value {
    font-size: 26px;
  }
  .hero-stat-caption {
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  /* Bulletins / Faculty Updates Mobile */
  .faculty-bulletins-section {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .bulletins-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
  }
  .bulletins-meta-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .bulletins-title {
    font-size: clamp(20px, 5.5vw, 24px);
  }
  .bulletins-archive-link {
    font-size: 12px;
  }
  .announcements-grid, .bulletins-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bulletin-card {
    padding: 18px 16px 14px;
  }
  .bulletin-card-title {
    font-size: 15px;
  }
  .bulletin-card-excerpt {
    font-size: 12.5px;
    min-height: unset;
    margin-bottom: 14px;
  }
  .bulletin-card-footer {
    padding-top: 11px;
  }
  .bulletin-author-info {
    max-width: 65%;
    font-size: 11px;
  }
  .bulletin-read-link {
    font-size: 11.5px;
  }

  /* Department Rooms Section Mobile */
  .rooms-section {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .rooms-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
  }
  .rooms-title {
    font-size: clamp(20px, 5.5vw, 24px);
  }
  .rooms-grid, .departments-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .room-card {
    padding: 18px 16px;
  }

  /* Feed & General Section Headers */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 24px;
  }
  .section-head .section-title {
    font-size: 19px;
  }
  .trending-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .feed-item {
    grid-template-columns: 32px minmax(0, 1fr) 13px;
    gap: 10px;
    padding: 12px 0;
    align-items: start;
  }
  .feed-thumb, .feed-item > .metrics {
    display: none;
  }
  .contributors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .contributor:last-child {
    grid-column: 1 / -1;
  }
  .cta {
    margin-top: 24px;
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .btn-teal {
    align-self: stretch;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-pill-badge {
    font-size: 10px;
    padding: 5px 10px;
  }
  .hero-stats-grid {
    gap: 14px 8px;
    max-width: 100%;
  }
  .hero-stat-value {
    font-size: 24px;
  }
  .hero-stat-caption {
    font-size: 9.5px;
  }
  .hero-action-buttons {
    max-width: 100%;
  }
  .bulletin-card {
    padding: 16px 14px 12px;
  }
  .bulletin-author-info {
    max-width: 58%;
  }
  .room-card {
    padding: 16px 14px;
  }
  .nav-actions .btn-sm {
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
  }
  .contributor {
    padding-inline: 7px;
  }
}

